/*
 * landing.css — DanceIQ 2.0 V2-Landingpage
 *
 * Seitenspezifische Regeln der Landingpage. Die acht verbindlichen
 * V2-Tokens (Farben), der Box-Sizing-Reset, die gemeinsamen Body-
 * Basiseigenschaften und :focus-visible kommen jetzt aus
 * /css/danceiq-v2.css, das vor dieser Datei geladen wird.
 *
 * Hier verbleiben: seitenspezifische Tokens (Danger-Farbe, Schatten,
 * Radien, Schriftstapel, Layoutmaße), sowie alle Landingpage-Layouts
 * (Hero, Prinzip, Fokus, Training, Trainer, Content Studio, Datenschutz-
 * Sektion, Pilot, Footer).
 */

:root {
  /* Funktional ergänzt für die Pilotformular-Validierung — Wert wie in V1,
     da V1 als Komponentenreferenz gilt. Weicht bewusst vom in
     turnier-report-start.css verwendeten Danger-Ton ab (siehe dortige
     Datei) und wird deshalb nicht global geführt. */
  --diq-danger:     #b84040;

  /* Schatten — seitenspezifisches Dreistufen-System, abweichend von
     turnier-report.css' einzelnem --diq-shadow. */
  --sh-sm: 0 1px 4px rgba(17,24,39,0.09), 0 1px 2px rgba(17,24,39,0.05);
  --sh-md: 0 4px 16px rgba(17,24,39,0.10), 0 2px 4px rgba(17,24,39,0.06);
  --sh-lg: 0 12px 36px rgba(17,24,39,0.12), 0 4px 8px rgba(17,24,39,0.07);

  /* Radien — seitenspezifische Werte, abweichend von den in
     turnier-report.css bzw. turnier-report-start.css verwendeten Radien. */
  --r-sm:   6px;
  --r:      10px;
  --r-lg:   16px;   /* wie Dashboard --diq-radius-md */
  --r-xl:   24px;   /* wie Dashboard --diq-radius-lg */
  --r-pill: 999px;

  /* Layout — seitenspezifische Breite/Abstände. */
  --page-max: 1160px;
  --page-pad: clamp(20px, 4vw, 40px);
  --nav-h:    60px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--diq-dark); color: #fff;
  font-weight: 500; font-size: .85rem;
  padding: 10px 18px; border-radius: var(--r);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

h1, h2, h3 {
  margin: 0 0 14px;
  font-family: var(--font);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.12;
  color: var(--diq-ink);
}
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
h2 { font-size: clamp(1.75rem, 4.4vw, 2.6rem); margin-bottom: 20px; }

/* Gold-Akzent unter Abschnittsüberschriften (Designsprache des Paar-Dashboards) */
.text-col h2::after,
.sec-head h2::after {
  content: "";
  display: block;
  width: 44px; height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--diq-gold);
}
.sec-head--center h2::after { margin-inline: auto; }
h3 { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }

em { font-style: normal; color: var(--diq-dark); border-bottom: 1.5px solid var(--diq-gold); padding-bottom: 1px; }

p { margin: 0 0 16px; max-width: 62ch; color: var(--diq-ink); }
.lead { font-size: 1.08rem; color: var(--diq-muted); }
.fine-print { font-size: .88rem; color: var(--diq-muted); margin-bottom: 0; }
.fine-print--light { color: rgba(255,255,255,.6); }

.pg {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

/* ── Kicker / Eyebrow (wie V1 .hero-kicker) ──────────────────────────── */

.kicker, .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--diq-bronze);
}
.kicker-dot, .hero-kicker-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--diq-gold);
  flex-shrink: 0;
}
.kicker--light { color: var(--diq-gold); }
.kicker--center { justify-content: center; }

/* ── Header / Nav (wie V1 .v4-nav) ───────────────────────────────────── */

.v4-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(245,245,244,0.97);
  border-bottom: 1px solid var(--diq-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.v4-nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--nav-h);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 900; letter-spacing: -.03em;
  color: var(--diq-ink); text-decoration: none; margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--diq-gold); color: #fff;
  font-size: .9rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.v4-nav-links { display: flex; align-items: center; gap: 2px; }
.v4-nav-links a:not(.btn) {
  font-size: .8rem; color: var(--diq-muted);
  padding: 7px 11px; border-radius: 8px;
  text-decoration: none;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.v4-nav-links a:not(.btn):hover { color: var(--diq-ink); background: var(--diq-line); text-decoration: none; }
.v4-nav-links .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--diq-line);
  color: var(--diq-ink);
  font-size: 1.1rem;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; align-items: center; }
  .v4-nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--diq-surface);
    border-bottom: 1px solid var(--diq-line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
  }
  .v4-nav-links.is-open { display: flex; }
  .v4-nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--diq-line); }
  .v4-nav-links .btn { margin: 12px 0 0; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
/* .btn, .btn-sun (Gold), .btn-outline, .btn-outline--light, .btn-sm und
   .btn-group kommen zentral aus /css/danceiq-v2.css (früher hier doppelt). */

/* ── Section rhythm ───────────────────────────────────────────────────── */

.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec--surface { background: var(--diq-surface); }
.sec--compact { padding: clamp(32px, 5vw, 56px) 0; }

.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head--center { max-width: 720px; margin-inline: auto; text-align: center; }
.sec-head--center .lead { margin-inline: auto; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
/* Vollbreites Hintergrundbild, zentrierter Inhalt. Das Bild ist ein <img>
   (object-fit: cover), kein CSS-Background: bessere Ladepriorität, die Höhe
   folgt dem Inhalt und dem Viewport (clamp), nicht dem Bildformat. */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(560px, 84svh, 800px);
  padding: 72px 0 84px;
  overflow: hidden;
  background: var(--diq-dark);            /* Fallback, solange das Bild lädt */
  color: #fff;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(14,16,20,.30) 0%, rgba(14,16,20,0) 100%),
    linear-gradient(180deg, rgba(14,16,20,.58) 0%, rgba(14,16,20,.64) 55%, rgba(14,16,20,.86) 100%);
}
.hero-inner { max-width: 960px; }

.hero .hero-kicker { color: var(--diq-gold); margin-bottom: 18px; }
.hero h1 {
  margin: 0 auto 22px;
  color: #fff;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0,0,0,.35);
}
.hero h1 em { color: var(--diq-gold); border-bottom: 0; padding-bottom: 0; }
.hero-lead {
  margin: 0 auto 32px;
  max-width: 52ch;
  font-size: clamp(1.02rem, .95rem + .5vw, 1.25rem);
  color: rgba(255,255,255,.9);
}
.hero .btn-group { justify-content: center; margin-bottom: 20px; }
.hero .fine-print { margin-inline: auto; color: rgba(255,255,255,.72); }

/* Größerer Button für den Hero */
.btn--lg { min-height: 50px; padding: 14px 28px; font-size: .95rem; }

/* Der Hero soll sofort sichtbar sein (kein Einblenden über .sec-Reveal) */
.hero[data-reveal] { opacity: 1; transform: none; transition: none; }

/* Schmale Viewports zeigen nur einen Bildausschnitt: Kleid (links) statt reiner Dunkelfläche */
@media (max-width: 899px) {
  .hero-bg { object-position: 24% 40%; }
}

@media (max-width: 559px) {
  .hero { padding: 56px 0 64px; }
  .hero .btn-group { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; }
}

/* Ankernavigation: Ziel nicht unter der sticky Navigation verstecken */
section[id], form[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ── Two-column product sections ─────────────────────────────────────── */

.sec-grid { display: grid; gap: 28px; }
.text-col { display: flex; flex-direction: column; }
.visual-col { display: flex; }

@media (min-width: 900px) {
  .sec-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
  .sec-grid.reverse .visual-col { order: -1; }
}

.visual-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--diq-line);
  border-radius: var(--r-lg);
  background: var(--diq-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 24px;
  color: var(--diq-muted);
}
.visual-placeholder span {
  font-family: var(--font);
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--diq-dark);
}
.visual-placeholder strong { font-weight: 700; color: var(--diq-ink); }

.feature-list { display: grid; gap: 18px; margin-top: 8px; }
.feature-list p { margin-bottom: 0; color: var(--diq-muted); font-size: .95rem; }

.feature-list--compact { grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .feature-list--compact { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

.callout {
  margin-top: 24px; padding: 20px;
  border-radius: var(--r-lg);
  background: var(--diq-bg);
  border: 1px solid var(--diq-line);
}
.callout p { margin-bottom: 0; color: var(--diq-muted); font-size: .95rem; }

/* ── DanceIQ-Prinzip: Fluss statt Karten ──────────────────────────────── */

.flow { display: grid; gap: 0; justify-items: center; }
.flow-node {
  width: 100%; max-width: 420px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: var(--diq-surface);
  border: 1px solid var(--diq-line);
  text-align: center;
}
.flow-node p { margin: 0 auto; font-size: .92rem; color: var(--diq-muted); }

.flow-node--result { background: var(--diq-dark); border-color: var(--diq-dark); color: #fff; }
.flow-node--result h3 { color: var(--diq-gold); }
.flow-node--result p { color: #d7dbe0; }

.flow-connector { width: 2px; height: 28px; background: var(--diq-line); }
.flow-connector--result { background: var(--diq-gold); }

@media (min-width: 900px) {
  .flow { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1.15fr; align-items: center; }
  .flow-connector { width: 28px; height: 2px; }
}

/* ── Datenschutz ──────────────────────────────────────────────────────── */

.sec--dark { background: var(--diq-dark); color: #fff; padding: clamp(64px, 9vw, 104px) 0; text-align: center; }
.sec--dark h2 { color: #fff; }
.sec--dark .lead { color: #c6cbd2; }

.privacy-grid { display: grid; gap: 20px; margin: 8px 0 32px; text-align: left; }
.privacy-item h3 { font-size: 1rem; color: var(--diq-gold); }
.privacy-item p { color: #d7dbe0; font-size: .95rem; margin-bottom: 0; }

.privacy-close { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; color: #f0f1f3; }

@media (min-width: 720px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .privacy-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Content Studio ───────────────────────────────────────────────────── */

.content-studio-card {
  display: grid; gap: 18px;
  padding: 24px;
  border: 1px solid var(--diq-line);
  border-radius: var(--r-xl);
  background: var(--diq-surface);
}
.content-studio-note {
  padding: 10px 14px;
  border-radius: var(--r-lg);
  background: var(--diq-gold-light);
  color: var(--diq-ink);
  font-size: .88rem;
  margin: 0;
}

@media (min-width: 900px) {
  .content-studio-card { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 32px; }
}

/* ── Pilot CTA ────────────────────────────────────────────────────────── */

.sec--pilot { padding-bottom: clamp(64px, 9vw, 104px); }
.cta-card {
  background: var(--diq-dark); color: #fff;
  border-radius: var(--r-xl);
  padding: 32px 24px;
  box-shadow: var(--sh-lg);
}
.cta-card h2 { color: #fff; }
.cta-card p:not(.fine-print) { color: #d7dbe0; }

.benefits { margin: 20px 0 24px; display: grid; gap: 8px; }
.benefits li { position: relative; padding-left: 20px; color: #f0f1f3; font-size: .95rem; }
.benefits li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--diq-gold);
}

@media (min-width: 720px) { .cta-card { padding: 44px 48px; } }

/* ── Footer (wie V1 .v4-footer) ───────────────────────────────────────── */

.v4-footer { border-top: 1px solid var(--diq-line); background: var(--diq-surface); }
.v4-footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px var(--page-pad) 24px;
  display: grid;
  gap: 32px;
}
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.v4-footer-brand { display: inline-block; font-weight: 800; color: var(--diq-ink); text-decoration: none; }
.v4-footer-brand:hover { color: var(--diq-dark); text-decoration: underline; }
.v4-footer-copy { color: var(--diq-muted); font-size: .9rem; }

.v4-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.v4-footer-links a { text-decoration: none; color: var(--diq-ink); font-size: .92rem; }
.v4-footer-links a:hover { color: var(--diq-dark); text-decoration: underline; }

.footer-bottom {
  padding: 16px var(--page-pad) 32px;
  border-top: 1px solid var(--diq-line);
  font-size: .85rem;
}
.footer-bottom p { margin-bottom: 0; color: var(--diq-muted); font-size: .82rem; }

@media (min-width: 720px) {
  .v4-footer-inner { grid-template-columns: 1fr auto; align-items: start; }
}

/* ── Reveal on scroll (ein dezenter Durchlauf, JS-gesteuert) ─────────── */

[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ── Pilotformular (funktional aus V1 übernommen, nur neu gestaltet) ─── */

.pilot-form-panel {
  margin-top: 24px;
  padding: 28px 24px;
  background: var(--diq-surface);
  border: 1px solid var(--diq-line);
  border-radius: var(--r-xl);
}

.pilot-form-row { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 560px) {
  .pilot-form-row { grid-template-columns: 1fr 1fr; }
}

.pilot-field { margin-bottom: 16px; }
.pilot-lbl {
  display: block;
  margin-bottom: 6px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--diq-ink);
}
.pilot-lbl-req::after { content: " *"; color: var(--diq-danger); }
.pilot-optional { color: var(--diq-muted); font-weight: 400; }

.pilot-field input[type="text"],
.pilot-field input[type="email"],
.pilot-field select,
.pilot-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--diq-ink);
  background: var(--diq-bg);
  border: 1px solid var(--diq-line);
  border-radius: var(--r);
  padding: 12px 14px;
}
.pilot-field textarea { resize: vertical; }
.pilot-field input:focus-visible,
.pilot-field select:focus-visible,
.pilot-field textarea:focus-visible {
  outline: 3px solid var(--diq-gold);
  outline-offset: 1px;
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: .82rem;
  color: var(--diq-danger);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .85rem;
  color: var(--diq-muted);
  padding: 4px;
  border-radius: var(--r-sm);
}
.consent-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.consent-row a { color: var(--diq-dark); text-decoration: underline; }

.pilot-hint { font-size: .82rem; color: var(--diq-muted); margin-top: -4px; margin-bottom: 16px; }

.honeypot { display: none; }

/* ── Turnier-Report Vorschaubild (ersetzt den bisherigen Platzhalter) ── */

.report-preview {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--diq-surface);
  border: 1px solid var(--diq-line);
  box-shadow: var(--sh-lg);
}
.report-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Mobile Reihenfolge nur für diese Sektion: Text zuerst, Bild danach —
   unabhängig von der geteilten .reverse-Klasse (die andere Sektionen wie
   "Training im Alltag" ebenfalls nutzen und die hier nicht verändert wird). */
.report-grid .text-col { order: 1; }
.report-grid .visual-col { order: 2; }
@media (min-width: 900px) {
  .report-grid .visual-col { order: -1; }
}

/* Hochkantes Vorschaubild (Training) — gleiche Rundung/Schatten wie
   .report-preview, nur höheres Seitenverhältnis statt künstlichem
   Querformat-Zuschnitt. */
.report-preview--portrait { aspect-ratio: 2 / 3; }
@media (min-width: 900px) {
  .report-preview--portrait {
    max-width: 380px;
    margin-inline: auto;
  }
}

/* ~7% mehr Höhe für das Fokus-Bild, reine Höhenänderung, keine
   Breiten-/Grid-Auswirkung. */
.report-preview--fokus { aspect-ratio: 7 / 5; }

/* ── Mobile-Feinarbeit: Training-Sektion (< 900px) ───────────────────── */

/* Text vor Screenshot auf Mobile (Desktop-Reverse-Layout bleibt über die
   bestehende .reverse-Regel ab 900px unverändert erhalten). */
.training-grid .text-col { order: 1; }
.training-grid .visual-col { order: 2; }
@media (min-width: 900px) {
  .training-grid .visual-col { order: -1; }
}

/* Kompakterer Screenshot auf Mobile: Höhe begrenzt statt volle Breite,
   weiterhin vollständig sichtbar (object-fit: contain kommt bereits aus
   der Basisklasse .report-preview). */
@media (max-width: 899px) {
  .training-grid .report-preview--portrait {
    width: auto;
    max-height: 560px;
    margin-inline: auto;
  }
}

/* Stärkere visuelle Abgrenzung zu "Fokus & Entwicklung" auf kleinen
   Bildschirmen — Desktop und die Fokus-Sektion selbst bleiben unverändert. */
@media (max-width: 699px) {
  #training {
    border-top: 1px solid var(--diq-line);
    padding-top: 56px;
  }
}

/* ── Konsistente Inhaltsbreite für Karten ────────────────────────────── */
/* Karten, die zugleich .pg-Container sind (Content Studio, Pilot-CTA,
   Pilotformular), lagen bisher randlos auf der Viewport-Breite bzw. 80px
   breiter als der Fließtext. Jetzt gleiche Seitenränder wie alle Abschnitte. */
.pg.content-studio-card,
.pg.cta-card,
.pg.pilot-form-panel {
  width: calc(100% - 2 * var(--page-pad));
  max-width: calc(var(--page-max) - 2 * var(--page-pad));
}

/* CTA in Textspalten: auf Desktop so breit wie sein Text, nicht als Vollbreiten-Balken */
@media (min-width: 560px) {
  .text-col > .btn { align-self: flex-start; }
}
