/* ========================================
   Contact + Legal Page Styles
   ======================================== */

/* ---- Contact Hero ---- */
.ct-hero {
  background: var(--color-primary-dark);
  background-image: var(--surface-texture);
  padding: 3rem var(--side-padding);
  color: var(--color-white);
}
.ct-hero .section-inner { max-width: var(--max-width); margin: 0 auto; }
.ct-hero .kicker { color: var(--color-accent); }
.ct-hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}
.ct-hero-sub {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
}

/* ---- Contact Grid ---- */
.ct-main {
  padding: var(--section-padding) var(--side-padding);
  background: var(--color-bg);
  color: var(--color-text);
}
.ct-main .section-inner { max-width: var(--max-width); margin: 0 auto; }
.ct-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

/* ---- Contact Form ---- */
.ct-form-wrap {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2.5rem;
}
.ct-form-wrap h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: 2rem;
}
.ct-field { margin-bottom: 1.25rem; }
.ct-label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
  color: var(--color-muted);
}
.ct-label span { color: var(--color-accent); }
.ct-input {
  width: 100%;
  padding: 0.95rem 1.125rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-inner);
  background: var(--color-primary);
  color: var(--color-text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  transition: border-color var(--transition);
}
.ct-input::placeholder { color: rgba(255, 255, 255, 0.25); }
.ct-input:hover { border-color: rgba(193, 233, 78, 0.25); }
.ct-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #0c0c0c;
  box-shadow: 0 0 0 3px rgba(193, 233, 78, 0.15);
}
.ct-select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%23c1e94e' stroke-width='2.5'><path d='M5 8l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}
.ct-select option { background: var(--color-bg-alt); color: var(--color-text); }
.ct-textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
button.ct-submit,
.ct-form button.ct-submit,
.ct-form-wrap button.ct-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 16px 42px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
  color: #050505;
  background: linear-gradient(90deg, #10b981, #c1e94e);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(193, 233, 78, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
button.ct-submit:hover,
button.ct-submit:focus,
button.ct-submit:focus-visible,
.ct-form button.ct-submit:hover,
.ct-form-wrap button.ct-submit:hover {
  background: linear-gradient(90deg, #10b981, #c1e94e);
  color: #050505;
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 0 60px rgba(193, 233, 78, 0.5), 0 0 20px rgba(16, 185, 129, 0.4);
  outline: none;
}
button.ct-submit:active {
  background: linear-gradient(90deg, #10b981, #c1e94e);
  color: #050505;
  transform: scale(1.02) translateY(-1px);
}
.ct-hp { position: absolute; left: -9999px; }

/* ---- Contact Info Card ---- */
.ct-info { display: grid; gap: 1.25rem; align-content: start; }
.ct-info-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.ct-info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
}
.ct-info-card h3 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}
.ct-info-card > .ct-info-row:first-of-type strong {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-transform: uppercase;
}
.ct-info-row {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-border);
}
.ct-info-row:last-child { border-bottom: none; }
.ct-info-row a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(193, 233, 78, 0.35);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.ct-info-row a:hover { color: var(--color-accent); border-color: var(--color-accent); }
.ct-info-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 0.25rem;
}
.ct-info-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}
.ct-info-card-note {
  background: rgba(193, 233, 78, 0.06);
  border-color: rgba(193, 233, 78, 0.18);
}
.ct-info-card-note p { font-size: 0.9375rem; color: var(--color-muted); margin: 0; }

/* ---- Legal Hero ---- */
.lg-hero {
  background: var(--color-primary-dark);
  background-image: var(--surface-texture);
  padding: 3rem var(--side-padding) 2rem;
  color: var(--color-white);
}
.lg-hero .section-inner { max-width: var(--max-width); margin: 0 auto; }
.lg-hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}
.lg-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.lg-nav a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}
.lg-nav a:hover { color: var(--color-accent); }

/* ---- Legal Sections ---- */
.lg-section { padding: var(--section-padding) var(--side-padding); }
.lg-section .section-inner { max-width: var(--max-width); margin: 0 auto; }
.lg-section-alt { background: var(--color-bg); }
.lg-section .kicker { color: var(--color-accent-text); }
.lg-section h2 { margin-bottom: 1.5rem; }

.lg-updated {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

/* ---- Legal Card (Impressum) ---- */
.lg-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.lg-section-alt .lg-card {
  background: var(--color-white);
}
.lg-card h3 { font-size: 1rem; margin-bottom: 1rem; }

.lg-details {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.5rem 1rem;
}
.lg-details dt {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-muted);
}
.lg-details dd { margin: 0; font-size: 0.9375rem; }

/* ---- Legal Prose ---- */
.lg-prose h3 {
  font-size: 1rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.lg-prose h3:first-child { margin-top: 0; }
.lg-prose p { font-size: 0.9375rem; color: var(--color-muted); }
.lg-prose ul { font-size: 0.9375rem; color: var(--color-muted); padding-left: 1.25rem; }
.lg-prose li { margin-bottom: 0.375rem; }

/* ---- Legal Table (Cookies) ---- */
.lg-table-wrap { overflow-x: auto; margin: 1rem 0; }
.lg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.lg-table th {
  text-align: left;
  padding: 0.625rem 0.75rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}
.lg-table th:first-child { border-radius: var(--radius-inner) 0 0 0; }
.lg-table th:last-child { border-radius: 0 var(--radius-inner) 0 0; }
.lg-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

/* ---- Contact Form States ---- */
.ct-success {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
.ct-success svg { margin: 0 auto 1.5rem; stroke: var(--color-accent) !important; }
.ct-success h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.ct-success p { color: var(--color-muted); }

.ct-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-inner);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.ct-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .ct-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ct-form-wrap { padding: 1.75rem 1.5rem; }
  .ct-info-card { padding: 1.5rem; }
  .lg-details { grid-template-columns: 1fr; }
  .lg-details dt { margin-top: 0.5rem; }
}
