/*
 * danceiq-v2.css — DanceIQ 2.0 gemeinsames Grund-CSS für öffentliche Seiten
 *
 * Wird von index.html, turnier-report-start.html und turnier-report.html
 * VOR der jeweiligen seitenspezifischen CSS-Datei geladen.
 *
 * Enthält ausschließlich Regeln, die in mindestens zwei der bisherigen
 * Stylesheets (landing.css, turnier-report-start.css, turnier-report.css)
 * nachweislich identisch vorkamen. Werte, die zwischen den Dateien nur
 * ÄHNLICH, aber nicht identisch sind (z. B. Radien, Schatten, Danger-Farbe,
 * Anthrazit-Ton, Schriftstapel, Button-Systeme), wurden bewusst NICHT
 * vereinheitlicht, um die bestehende Optik jeder Seite nicht zu verändern —
 * siehe Abschlussdokumentation für die Details je Fall.
 *
 * Enthält keine seitenspezifischen Produktlayouts.
 */

/* ── 1. Verbindliche V2-Tokens ────────────────────────────────────────── */
/* Identisch in landing.css und turnier-report.css bereits vorhanden;
   turnier-report-start.css nutzte bislang eigene Fallback-Werte (siehe
   dortige Restdatei) und übernimmt ab jetzt ebenfalls diese Werte. */

:root {
  --diq-bg:         #f7f5f1;
  --diq-surface:    #ffffff;
  --diq-line:       #ded9d0;
  --diq-gold:       #d8ad67;
  --diq-gold-light: #f4ead8;
  --diq-dark:       #20242a;
  --diq-ink:        #111827;
  --diq-muted:      #687078;

  /* Typografie — Bunny Fonts, jetzt von allen V2-Seiten genutzt, die keine
     eigene abweichende Schrift festlegen (Report-Seiten setzen ihre
     bisherige Schrift weiterhin selbst, siehe dortige Dateien). */
  --font: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── 1b. Basis-Linkfarbe ──────────────────────────────────────────────── */
/* Aus landing.css übernommen; auf Seiten mit eigener a{}-Regel
   (turnier-report.css, turnier-report-start.css) unverändert, da deren
   eigene, später geladene Regel weiterhin gewinnt. */

a { color: var(--diq-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── 2. Reset ─────────────────────────────────────────────────────────── */
/* Vollständige Form (inkl. ::before/::after) aus landing.css übernommen —
   technisch korrekter als die verkürzte Form aus den beiden anderen
   Dateien, ohne sichtbaren Unterschied für die dort verwendeten
   Pseudo-Elemente (reine Farbflächen ohne Innenabstand/Rahmen). */

*, *::before, *::after { box-sizing: border-box; }

/* ── 3. Body-Basis ────────────────────────────────────────────────────── */
/* margin/background/color/antialiasing sind in allen drei bisherigen
   Dateien identisch. font-family kommt jetzt zusätzlich aus dem globalen
   --font-Token — auf turnier-report.css/turnier-report-start.css bleibt
   die bisherige Optik erhalten, weil deren eigene, später geladene
   body{font-family:...}-Regel die gleiche Eigenschaft erneut setzt und
   damit gewinnt. line-height bleibt bewusst seitenspezifisch (unterschiedliche
   Werte je Datei), wird also weiterhin von jeder Seiten-CSS selbst gesetzt. */

body {
  margin: 0;
  background: var(--diq-bg);
  color: var(--diq-ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ── 4. Bilder ────────────────────────────────────────────────────────── */

img, svg { display: block; max-width: 100%; }

/* ── 5. Fokuszustände ─────────────────────────────────────────────────── */
/* Bisher nur in landing.css vorhanden; additive, rein sichtbarkeits-
   verbessernde Ergänzung für Tastaturbedienung auf allen V2-Seiten. */

:focus-visible { outline: 3px solid var(--diq-gold); outline-offset: 2px; }

/* ── 6. Verbindlicher globaler Header + Footer ───────────────────────── */
/* Werte 1:1 aus der V2-Landingpage (landing.css) übernommen — dort
   unverändert belassen (Landingpage bleibt geschützt). Ab jetzt außerdem
   von turnier-report-start.html, turnier-report.html, datenschutz.html,
   impressum.html und login.html genutzt. Ersetzt die im vorherigen Schritt
   eingeführte "schlanke" Kopf-/Fußzeile vollständig (nicht mehr referenziert). */

:root {
  --r:        10px;
  --page-max: 1160px;
  --page-pad: clamp(20px, 4vw, 40px);
  --nav-h:    60px;
}

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

/* — Navigation — */

.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 {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font);
  font-size: .88rem; font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--r);
  border: none; cursor: pointer;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
  letter-spacing: .02em;
}
.btn:active { transform: scale(.97); }

.btn-sun { background: var(--diq-dark); color: #fff; }
.btn-sun:hover { opacity: .88; text-decoration: none; color: #fff; }

.btn-outline { background: transparent; color: var(--diq-ink); border: 1px solid var(--diq-line); }
.btn-outline:hover { background: var(--diq-line); color: var(--diq-ink); text-decoration: none; }
.btn-outline--light { color: #f0f1f3; border-color: rgba(255,255,255,.28); }
.btn-outline--light:hover { background: rgba(255,255,255,.08); color: #fff; }

.btn-sm { font-size: .8rem; padding: 8px 15px; border-radius: 8px; }

.btn-group { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

/* — 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; }
}

/* ── 7. Rechtliche Seiten (Datenschutz/Impressum) ────────────────────── */
/* Neu, da es für diesen Seitentyp bislang kein V2-Layout gab. Nutzt
   ausschließlich bestehende globale Tokens, keine neue Farbpalette. */

.legal-section { padding: 40px 0 64px; }

.legal-eyebrow {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--diq-dark);
}

.legal-section h1 {
  margin: 0 0 28px;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--diq-ink);
}

.legal-card {
  max-width: 760px;
  background: var(--diq-surface);
  border: 1px solid var(--diq-line);
  border-radius: var(--r-xl, 20px);
  box-shadow: 0 16px 40px rgba(17,24,39,.07);
  padding: clamp(24px, 5vw, 44px);
}

.legal-card > section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--diq-line);
}
.legal-card > section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--diq-ink);
}

.legal-card p {
  margin: 0 0 10px;
  color: var(--diq-muted);
  font-size: .96rem;
  line-height: 1.75;
}
.legal-card p:last-child { margin-bottom: 0; }

.legal-card a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.legal-lead { margin: 0 0 24px; color: var(--diq-muted); font-size: 1rem; }

/* ── 8. Login/Reset (login.html) ─────────────────────────────────────── */
/* Neue, eigenständige Klassennamen — keine Überschneidung mit bestehenden
   Regeln. Formularfelder, IDs, name-Attribute und die gesamte Login-/
   Reset-Logik in login.html bleiben unverändert; hier wird ausschließlich
   die Darstellung definiert. */

.auth-body { display: flex; flex-direction: column; min-height: 100vh; }
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--page-pad);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--diq-surface);
  border: 1px solid var(--diq-line);
  border-radius: var(--r-xl, 20px);
  box-shadow: 0 16px 40px rgba(17,24,39,.08);
  padding: clamp(28px, 5vw, 40px);
}

.login-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--diq-ink);
}
.login-title em { font-style: normal; color: var(--diq-dark); }
.login-sub { margin: 0 0 24px; color: var(--diq-muted); font-size: .95rem; }

.form-grid { display: grid; gap: 16px; }
.field-wrap { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: .85rem; font-weight: 700; color: var(--diq-ink); }

.field-wrap input {
  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, 10px);
  padding: 12px 14px;
}
.field-wrap input:focus-visible { outline: 3px solid var(--diq-gold); outline-offset: 1px; }

.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 6px;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: none; border: none; border-radius: 8px;
  color: var(--diq-muted); cursor: pointer;
}
.pw-toggle:hover { color: var(--diq-ink); background: var(--diq-line); }

.feedback { min-height: 1.2em; font-size: .85rem; }
.feedback.error { color: var(--diq-danger, #b84040); }
.feedback.ok { color: #1f7a4d; }

.login-footer {
  margin-top: 20px;
  font-size: .85rem;
  color: var(--diq-muted);
  text-align: center;
  line-height: 1.7;
}
.login-footer a { color: var(--diq-dark); text-decoration: underline; }

.reset-panel {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--diq-line);
}
.reset-panel.open { display: block; }
.reset-panel-title { font-weight: 800; margin-bottom: 12px; color: var(--diq-ink); }

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  animation: diq-spin .7s linear infinite;
}
@keyframes diq-spin { to { transform: rotate(360deg); } }

/* ── 9. Skip-Link ─────────────────────────────────────────────────────── */
/* Für den bestehenden Skip-Link-Anker (<a class="skip-link" href="#main-content">),
   der auf mehreren V2-Seiten bereits im HTML vorhanden ist. Standardmäßig
   visuell ausgeblendet, erscheint ausschließlich bei Tastatur-Fokus
   (:focus-visible statt :focus, damit ein Mausklick ihn nicht einblendet).
   Kein HTML-Text, keine Ziel-ID und keine Navigation wurden dafür geändert. */

.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-visible { top: 12px; }
