/* ============================================================
   SOFT-OVERLAY  —  wird NACH style.css geladen.
   Auf ALLEN Seiten eingebunden.
   Ziel: weniger erdrückend, mehr Luft, mobile-first.
   ============================================================ */

/* ---------- Farb-Palette: neutral charcoal, kein Braun-Stich ---------- */
:root {
    /* Sagt dem Browser: Seite hat ein eigenes Dark-Theme. Samsung Internet &
       Chrome wenden dann KEINE eigene Force-Dark-Abdunklung mehr an. */
    color-scheme: dark;

    --bg:           #121212;
    --bg-elev:      #1a1a1a;
    --bg-card:      #1f1f1f;
    --bg-card-2:    #262626;
    --line:         #2a2a2a;
    --line-2:       #363636;

    /* Text-Töne neutralisiert + heller — bessere Lesbarkeit auf neutralem Grau */
    --text:         #ececec;   /* Haupttext: helles Neutralweiß  (Kontrast ~14:1) */
    --text-dim:     #c8c8c8;   /* Fließtext / Body              (Kontrast ~10:1) */
    --text-soft:    #909090;   /* Labels / Hints / Meta          (Kontrast ~5.5:1) */
}

/* ---------- Hintergrund: keine Scanlines mehr, leichter Glow ---------- */
.bg-grid {
    display: none;
}
.bg-glow {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%, var(--gold-dim) 50%, transparent 100%);
    opacity: 0.5;
}

body { background: var(--bg); font-size: 19px; }

/* ---------- Schriftgrößen: deutlich größer für gute Lesbarkeit @ 100% ---------- */
.legal-card p          { font-size: 17.5px; line-height: 1.7; }
.legal-list li         { font-size: 17px; line-height: 1.65; }
.legal-dl dt           { font-size: 13px; }
.legal-dl dd           { font-size: 17px; }
.legal-dl-compact dt   { font-size: 12px; }
.legal-dl-compact dd   { font-size: 15.5px; }
.legal-h3              { font-size: 1.2rem; }

/* ---------- Layout: etwas breiter, mehr Atem (mobile zuerst) ---------- */
main {
    max-width: 620px;
    padding: 22px 18px 72px;
    gap: 18px;
}

/* ---------- Header: schlanker ---------- */
.site-header { padding: 10px 16px; }

/* ---------- Hero: kompakt, ohne Glow-Wolke ---------- */
.hero-with-mark {
    padding-top: 12px;
    padding-bottom: 0;
}
.hero-with-mark::before { display: none; }
.hero-mark {
    width: 120px;
    margin-bottom: 14px;
    filter: none;
    mask-image: none;
    -webkit-mask-image: none;
    opacity: 0.92;
}
.hero-eyebrow {
    font-size: 12px;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}
.hero-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 14px;
}
.hero-sub {
    font-size: 17.5px;
    line-height: 1.55;
    color: var(--text-dim);
}

/* ---------- Event-facts: leichter, weniger Box-Look ---------- */
.event-facts {
    background: transparent;
    border: none;
    grid-template-columns: 1fr;
    margin-bottom: 18px;
}
.event-fact {
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 4px 12px;
    align-items: baseline;
}
.event-fact:last-child { border-bottom: none; }
.event-fact dt {
    font-size: 12.5px;
    letter-spacing: 0.18em;
    color: var(--text-soft);
}
.event-fact dd {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 17.5px;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--text);
}

/* ---------- Seat-board: kompakt zu einer Zeile + Progress ---------- */
.seat-board {
    background: transparent;
    border: none;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 0;
}
.seat-stat {
    border: none;
    padding: 6px 0;
    gap: 2px;
}
.seat-num { font-size: 2rem; }
.seat-label {
    font-size: 13px;
    letter-spacing: 0.18em;
}
.seat-bar {
    height: 3px;
    border-radius: 99px;
    border: none;
    background: var(--bg-card);
    margin-top: 8px;
}

/* ---------- Cards: weiche Kanten, kein lauter Gold-Streifen ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 22px;
}
.card::before { display: none; }

.card-head {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.card-head h2 {
    font-size: 1.4rem;
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 700;
    color: var(--text);
}
.card-head p {
    font-family: var(--font-ui);
    font-size: 15.5px;
    letter-spacing: 0;
    color: var(--text-dim);
}

/* ---------- Form: ruhigere Labels, weichere Inputs ---------- */
.field { margin-bottom: 16px; }
.field label {
    font-family: var(--font-ui);
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
    margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
    border-radius: 10px;
    background: var(--bg-elev);
    border-color: var(--line);
    padding: 14px 14px;
    font-size: 16px;
    min-height: 48px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--gold-dim);
    background: var(--bg);
}
.field .hint {
    font-family: var(--font-ui);
    font-size: 14.5px;
    color: var(--text-soft);
    letter-spacing: 0;
}

/* ---------- Buttons: weichere Kanten ---------- */
.btn { border-radius: 10px; min-height: 48px; }

/* ---------- Consent-Checkbox: ruhiger ---------- */
.consent-field {
    border-radius: 12px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--gold-dim);
    background: var(--bg-card);
    padding: 14px 14px;
}
.consent-field label {
    font-size: 15.5px;
    line-height: 1.55;
}

/* ---------- Countdown: kompakt, ohne Doppelpunkte ---------- */
.countdown-card {
    padding: 16px 14px;
    border-radius: 14px;
    border-left-width: 1px;
    border-left-color: var(--gold-dim);
}
.countdown-grid { gap: 8px; }
.countdown-cell {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 4px 8px;
}
.countdown-num { font-size: 2.1rem; color: var(--text); }
.countdown-sep { display: none; }
.countdown-unit { font-size: 13px; letter-spacing: 0.14em; }
.countdown-label, .countdown-deadline {
    font-size: 14px;
    letter-spacing: 0.14em;
}

/* ---------- Roster: schlichter, Höhe begrenzt ---------- */
.roster-card { padding: 18px 16px; }
.roster {
    grid-template-columns: 1fr;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-2) transparent;
}
.roster::-webkit-scrollbar { width: 6px; }
.roster::-webkit-scrollbar-thumb {
    background: var(--line-2);
    border-radius: 99px;
}
.roster li.roster-item {
    background: transparent;
    border: 1px solid var(--line);
    border-left: 2px solid var(--line-2);
    border-radius: 8px;
    padding: 10px 12px;
}
.roster li.roster-item:hover {
    border-left-color: var(--gold-dim);
}
.roster .blader { font-size: 17px; font-weight: 700; }
.roster .roster-no   { font-size: 13px; letter-spacing: 0.08em; }
.roster .roster-date { font-size: 12.5px; }
.roster-more {
    margin-top: 10px;
    border-radius: 8px;
    letter-spacing: 0.14em;
}

/* ---------- Success-Card: weicher ---------- */
.success-card { border-radius: 14px; }
.success-card::before { display: none; }
.next-steps-block {
    border-radius: 10px;
    padding: 14px 14px 10px;
}
.next-steps-title { font-size: 14px; letter-spacing: 0.14em; }
.next-steps li { font-size: 16.5px; line-height: 1.6; }

/* ---------- Footer: leiser ---------- */
.site-footer {
    padding: 20px 14px 32px;
    margin-top: 16px;
    font-size: 12.5px;
    letter-spacing: 0.1em;
}

/* ============================================================
   Mikro-Animationen — minimal, lebendig, nicht nervig
   ============================================================ */

@keyframes softFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

main > section {
    animation: softFadeIn 0.4s ease-out both;
}
main > section:nth-child(1) { animation-delay: 0ms; }
main > section:nth-child(2) { animation-delay: 60ms; }
main > section:nth-child(3) { animation-delay: 120ms; }
main > section:nth-child(4) { animation-delay: 180ms; }
main > section:nth-child(5) { animation-delay: 240ms; }
/* ab dem 6. Element kein Delay mehr — sonst wird's bei Regeln/Datenschutz zu langsam */

/* Roster-Einträge gestaffelt einblenden */
.roster li.roster-item {
    animation: softFadeIn 0.32s ease-out both;
    transition: transform 0.15s ease, border-left-color 0.15s ease;
}
.roster li.roster-item:nth-child(1)  { animation-delay: 40ms; }
.roster li.roster-item:nth-child(2)  { animation-delay: 80ms; }
.roster li.roster-item:nth-child(3)  { animation-delay: 120ms; }
.roster li.roster-item:nth-child(4)  { animation-delay: 160ms; }
.roster li.roster-item:nth-child(5)  { animation-delay: 200ms; }
.roster li.roster-item:nth-child(6)  { animation-delay: 240ms; }
.roster li.roster-item:nth-child(7)  { animation-delay: 280ms; }
.roster li.roster-item:nth-child(8)  { animation-delay: 320ms; }
.roster li.roster-item:hover {
    transform: translateY(-1px);
}

/* Hero-Logo atmet ganz dezent */
@keyframes softBreath {
    0%, 100% { opacity: 0.88; }
    50%      { opacity: 1; }
}
.hero-mark {
    animation: softBreath 8s ease-in-out infinite;
}

/* ============================================================
   Desktop ≥ 720px — nur dezente Erweiterung
   ============================================================ */
@media (min-width: 720px) {
    main {
        max-width: 760px;
        padding: 40px 28px 88px;
        gap: 24px;
    }
    .hero-mark { width: 170px; }
    .hero-title { font-size: clamp(2.4rem, 4.6vw, 3.1rem); }
    .hero-sub { font-size: 18.5px; max-width: 520px; margin: 0 auto; }

    .event-facts {
        grid-template-columns: repeat(3, 1fr);
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--bg-card);
        padding: 4px 0;
    }
    .event-fact {
        grid-template-columns: 1fr;
        gap: 4px;
        border-bottom: none;
        border-right: 1px solid var(--line);
        padding: 12px 16px;
        text-align: left;
    }
    .event-fact:last-child { border-right: none; }

    .seat-bar { height: 4px; }

    .card { padding: 32px 28px; }
    .roster { max-height: none; }
}

/* ============================================================
   Desktop ≥ 1024px — Deck-Editor breiter, damit alle 3
   Beyblades in einer Reihe stehen. Nur diese Card bricht aus
   der schmalen Spaltenbreite aus und bleibt mittig zentriert.
   ============================================================ */
@media (min-width: 1024px) {
    #deckCard,
    #galleryCard {
        max-width: none;
        width: min(980px, calc(100vw - 64px));
        /* Viewport-zentriert ohne transform (die softFadeIn-Animation auf
           main > section überschreibt sonst jedes transform). Da main mittig
           sitzt, zentriert diese Margin-Mathe die Card exakt im Viewport. */
        margin-left: calc(50% - min(490px, calc(50vw - 32px)));
    }
    #deckCard .deck-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   Desktop ≥ 1024px — Admin-Kacheln breiter, damit die Tabelle
   mit allen Spalten nicht so gequetscht ist. Gleiche
   transform-freie Viewport-Zentrierung wie beim Deck.
   ============================================================ */
@media (min-width: 1024px) {
    #dashboardCard,
    #challongeCard,
    #publishCard {
        max-width: none;
        width: min(1100px, calc(100vw - 64px));
        margin-left: calc(50% - min(550px, calc(50vw - 32px)));
    }
}

/* ============================================================
   Soft-Overrides: Galerie & Schluss-Banner weicher abrunden
   ============================================================ */
.closed-banner {
    border-radius: 14px;
}

.blader-detail {
    border-radius: 14px;
}

.gallery-blader {
    border-radius: 14px;
    padding: 20px 20px 22px;
}

.gallery-bey {
    border-radius: 10px;
}

.gallery-blader-name {
    font-size: 19px;
}
