/* ============================================================
   TSC Wämpledon – helles Wimbledon-Theme (nur Startseite + Login)
   ------------------------------------------------------------
   Wird NACH css/style.css (und nach dem <style>-Block der Startseite)
   geladen und wirkt nur, wenn <body class="hell"> gesetzt ist. Alle
   anderen Seiten bleiben im dunklen Standard-Design unberührt.

   Idee: Rasen-Hero mit weißen Platzlinien und einer Anzeigetafel,
   darunter Kreideweiß mit Aubergine als Schriftfarbe. Überschriften in
   Serifenschrift (Programmheft statt App-Look), nur Systemschriften,
   keine externen Fonts (DSGVO).

   Farben:
     Kreide   #FBFBF7  Seitengrund
     Rasen    #1D5E3A  Hero, Buttons, Akzent
     Tinte    #2B0E45  Text (Aubergine)
     Ball     #D9E94A  nur auf Rasen: Netz, Anzeigetafel
   ============================================================ */

body.hell {
    --kreide: #FBFBF7;
    --kreide-2: #EEF2EC;
    --rasen: #1D5E3A;
    --rasen-tief: #164A2D;
    --tinte: #2B0E45;
    --tinte-2: #5A4A6B;
    --ball: #D9E94A;
    --haar: rgba(43, 14, 69, .16);
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

    /* Tokens der Startseite (<style> in index.php) */
    --dunkel: var(--kreide);
    --dunkel-2: var(--kreide-2);
    --dunkel-3: #fff;
    --text: var(--tinte);
    --gedimmt: var(--tinte-2);
    --rand: var(--haar);
    --card: #fff;
    --gruen: var(--rasen);
    --gruen-hell: var(--rasen);
    --lila: #5B2A8C;
    --gold: #7A5B00;
    --glow-gruen: none;
    --glow-lila: none;
    --glow-gold: none;

    /* Tokens von css/style.css (Login) */
    --seite: var(--kreide);
    --flaeche: #fff;
    --flaeche-2: rgba(43, 14, 69, .04);
    --flaeche-3: var(--kreide-2);
    --linie: var(--haar);
    --linie-stark: rgba(43, 14, 69, .38);
    --text-2: #43315A;
    --text-3: var(--tinte-2);
    --gelb: var(--rasen);
    --gelb-tint: rgba(29, 94, 58, .12);
    --lila-hell: #5B2A8C;
    --rot: #B3261E;
    --rot-tint: rgba(179, 38, 30, .08);
    --r: 4px;
    --r-klein: 3px;

    background: var(--kreide);
    color: var(--tinte);
    cursor: auto;
}
body.hell::before { display: none; }              /* Platzlinien-Hintergrund von style.css */
body.hell a, body.hell button, body.hell .btn, body.hell label,
body.hell input[type=checkbox] { cursor: pointer; }

/* ---------- Typografie ---------- */
body.hell h1, body.hell h2, body.hell h3,
body.hell .hero-title, body.hell .sec-title, body.hell .cta-card h2 {
    font-family: var(--serif);
    font-stretch: normal;
    text-transform: none;
    letter-spacing: -.01em;
    color: var(--tinte);
}
body.hell h1 { font-weight: 700; line-height: 1.08; font-size: 2.2rem; }

/* ---------- Buttons: rechteckig, Satzschreibung, 44px ---------- */
body.hell button, body.hell .btn {
    min-height: 44px;
    border-radius: 3px;
    text-transform: none;
    letter-spacing: 0;
    font-size: .95rem;
    font-weight: 600;
    background: var(--rasen);
    border: 2px solid var(--rasen);
    color: #fff;
    padding: .6rem 1.4rem;
    box-shadow: none;
    transition: background .15s ease, color .15s ease;
}
body.hell button:hover, body.hell .btn:hover {
    background: var(--rasen-tief);
    border-color: var(--rasen-tief);
    transform: none;
    box-shadow: none;
}
body.hell .btn-secondary,
body.hell .btn-hell {
    background: transparent;
    color: var(--rasen);
    border: 2px solid var(--rasen);
}
body.hell .btn-secondary:hover,
body.hell .btn-hell:hover { background: var(--rasen); color: #fff; border-color: var(--rasen); }

/* ---------- Navigation ---------- */
body.hell .progress-rail { display: none; }
body.hell .navbar,
body.hell .navbar.gescrollt {
    background: var(--kreide);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--haar);
}
body.hell .nav-logo .name { color: var(--tinte); }
body.hell .nav-logo .accent { color: var(--rasen); }
body.hell .nav-logo .tagline { color: var(--tinte-2); }
body.hell .nav-logo-bild { background: #fff; border: 1px solid var(--haar); }
body.hell .nav-links a,
body.hell .nav-links-registrieren { color: var(--tinte); min-height: 44px; display: inline-flex; align-items: center; }
body.hell .nav-links a:hover,
body.hell .nav-links-registrieren:hover { color: var(--rasen); text-decoration: underline; text-underline-offset: 4px; }
body.hell .nav-login {
    background: var(--rasen);
    color: #fff;
    border: 2px solid var(--rasen);
    border-radius: 3px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    box-shadow: none;
}
body.hell .nav-login:hover { background: var(--rasen-tief); border-color: var(--rasen-tief); color: #fff; }

/* ---------- Hero: Rasen mit Platzlinien ---------- */
body.hell #hero {
    background: var(--rasen);
    color: #fff;
    min-height: 0;
    padding: 9rem 1.4rem 5rem;
    perspective: none;
}
body.hell .hero-glow,
body.hell .ball-parallax,
body.hell .hero-rotator,
body.hell .eyebrow { display: none; }

body.hell .hero-hintergrund {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
}
body.hell .hero-hintergrund svg line { stroke: #fff; stroke-opacity: .5; }
body.hell .hero-hintergrund svg line.netz-linie { stroke: var(--ball); stroke-opacity: 1; }

body.hell .hero-inner { max-width: 760px; }
body.hell .hero-logo {
    width: 96px; height: 96px;
    animation: none;
    box-shadow: none;
    border: 3px solid #fff;
    margin-bottom: 1.6rem;
}
body.hell .hero-title {
    color: #fff;
    font-weight: 700;
    font-size: clamp(2.8rem, 8vw, 5rem);
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: .6rem;
}
body.hell .hero-title .strich { color: var(--ball); -webkit-text-stroke: 0; }
body.hell .hero-motto {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0;
    color: #E6F0E8;
    margin-bottom: 1.6rem;
}
body.hell .hero-sub {
    color: #F2F7F3;
    font-size: 1.1rem;
    max-width: 30rem;
    margin-bottom: 2rem;
}

/* Anzeigetafel: der eine Spaß auf der Seite */
body.hell .anzeigetafel {
    margin: 0 auto 2.2rem;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--tinte);
    color: #fff;
    border-radius: 3px;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .85);
    overflow: hidden;
}
body.hell .anzeigetafel { width: auto; display: table; }
body.hell .anzeigetafel th,
body.hell .anzeigetafel td {
    padding: .55rem .9rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    text-transform: none;
    letter-spacing: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    text-align: center;
}
body.hell .karte-neu {
    background: var(--ball);
    color: var(--tinte);
    border-radius: 3px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}
body.hell .anzeigetafel tr:last-child > * { border-bottom: 0; }
body.hell .anzeigetafel th { text-align: left; padding-right: 2rem; font-weight: 600; }
body.hell .anzeigetafel td.spiel { background: var(--ball); color: var(--tinte); min-width: 3.4rem; border-bottom-color: rgba(43, 14, 69, .2); }
body.hell .tafel-notiz {
    margin: -1.4rem 0 2rem;
    font-size: .85rem;
    color: #E6F0E8;
}

/* Buttons im Hero: weiß auf Rasen */
body.hell #hero .btn-primary {
    background: #fff;
    color: var(--rasen);
    border-color: #fff;
}
body.hell #hero .btn-primary:hover { background: var(--ball); border-color: var(--ball); color: var(--tinte); }
body.hell #hero .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
body.hell #hero .btn-secondary:hover { background: #fff; color: var(--rasen); }

/* ---------- Abschnitte ---------- */
body.hell .content-section { padding: 5.5rem 0; }
body.hell .sec-kopf { max-width: 38rem; }
body.hell .sec-eyebrow {
    color: var(--rasen);
    text-transform: none;
    letter-spacing: 0;
    font-size: .95rem;
    font-weight: 700;
}
body.hell .sec-title { font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); }
body.hell .sec-text { color: var(--tinte-2); }

/* Karten: Haarlinie statt Schatten, keine Hover-Hüpfer */
body.hell .card,
body.hell .turnier-karte,
body.hell .ank-karte {
    background: #fff;
    border: 1px solid var(--haar);
    border-radius: 3px;
    box-shadow: none;
}
/* Grüner Strich oben nur auf der Startseite; innen bleibt es bei der Haarlinie */
body.start.hell .card,
body.start.hell .turnier-karte,
body.start.hell .ank-karte { border-top: 3px solid var(--rasen); }
body.hell .card:hover,
body.hell .turnier-karte:hover { transform: none; box-shadow: none; border-color: var(--haar); }
body.start.hell .card:hover,
body.start.hell .turnier-karte:hover { border-top-color: var(--rasen); }
body.hell .card:hover .card-icon { transform: none; }
body.hell .card h3,
body.hell .turnier-inhalt h3 { font-family: var(--serif); font-weight: 700; }
body.hell .card p,
body.hell .turnier-meta { color: var(--tinte-2); }
body.hell .card-icon,
body.hell .card-icon.c2,
body.hell .card-icon.c3 {
    background: transparent;
    color: var(--rasen);
    border-radius: 0;
    border: 0;
    padding: 0;
    justify-content: flex-start;
}
body.hell .angebot-gruppen-label,
body.hell .angebot-gruppe.kasse .angebot-gruppen-label,
body.hell .angebot-gruppe.liga .angebot-gruppen-label { color: var(--rasen); text-transform: none; letter-spacing: 0; font-weight: 700; }

body.hell .turnier-bild,
body.hell .turnier-bild-leer { background: var(--kreide-2); color: var(--rasen); }
body.hell .turnier-plaetze { background: var(--rasen); color: #fff; border-radius: 3px; font-size: .85rem; }
body.hell .turnier-plaetze.voll { background: var(--kreide-2); color: var(--tinte); border: 1px solid var(--haar); }
body.hell .alle-link { color: var(--rasen); font-weight: 600; }

body.hell .cta-card {
    background: var(--rasen);
    color: #fff;
    border: 0;
    border-radius: 3px;
}
body.hell .cta-card h2 { color: #fff; }
body.hell .cta-card p { color: #F2F7F3; }
body.hell .cta-card .btn-primary { background: #fff; color: var(--rasen); border-color: #fff; }
body.hell .cta-card .btn-primary:hover { background: var(--ball); border-color: var(--ball); color: var(--tinte); }
body.hell .cta-card .btn-secondary { background: transparent; color: #fff; border-color: #fff; }

body.hell .app-schalter { background: #fff; border-color: var(--haar); border-radius: 3px; }
body.hell .app-tab { border: 0; border-radius: 2px; min-height: 44px; margin: 0; background: transparent; color: var(--tinte); }
body.hell .app-tab:hover { background: var(--kreide-2); color: var(--tinte); }
body.hell .app-tab.aktiv,
body.hell .app-tab.aktiv:hover { background: var(--rasen); color: #fff; }

body.hell footer { border-top: 1px solid var(--haar); color: var(--tinte-2); }
body.hell footer a { color: var(--tinte); min-height: 44px; display: inline-flex; align-items: center; padding: 0 .4rem; }

/* ---------- Login ---------- */
body.hell .login-box {
    background: #fff;
    border: 1px solid var(--haar);
    border-top: 4px solid var(--rasen);
    border-radius: 3px;
    max-width: 420px;
    box-shadow: none;
}
body.hell .login-marke .name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--tinte); }
body.hell .login-marke .tag { color: var(--tinte-2); font-family: var(--serif); font-style: italic; font-size: .9rem; letter-spacing: 0; }
body.hell label { color: var(--tinte); font-size: .9rem; }
body.hell input[type=text], body.hell input[type=password], body.hell input[type=email] {
    background: #fff;
    border: 1px solid var(--linie-stark);
    color: var(--tinte);
    min-height: 46px;
    border-radius: 3px;
}
body.hell input:focus,
body.hell input:focus-visible { background: #fff; border-color: var(--rasen); box-shadow: 0 0 0 3px rgba(29, 94, 58, .45); outline: none; }
body.hell .checkbox-zeile { display: flex; align-items: center; gap: .7rem; min-height: 44px; font-weight: 400; }
body.hell .checkbox-zeile input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--rasen); flex-shrink: 0; margin: 0; }
body.hell .login-box form button { width: 100%; }
body.hell .byline { color: var(--tinte-2); font-size: .9rem; text-align: center; }
body.hell .byline a { color: var(--rasen); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
body.hell .fehler { background: var(--rot-tint); color: var(--rot); border-color: rgba(179, 38, 30, .35); }

/* ---------- Fokus & Bewegung ---------- */
body.hell a:focus-visible, body.hell button:focus-visible, body.hell input:focus-visible {
    outline: 3px solid var(--tinte);
    outline-offset: 2px;
}
body.hell #hero a:focus-visible { outline-color: #fff; }

@media (max-width: 760px) {
    body.hell #hero { padding: 7rem 1.2rem 3.5rem; }
    body.hell .content-section { padding: 3.5rem 0; }
    body.hell .navbar, body.hell .navbar.gescrollt { padding-left: 16px; padding-right: 16px; }
    body.hell .nav-logo .tagline,
    body.hell .nav-links-registrieren { display: none; }
    body.hell .nav-login { white-space: nowrap; padding: .4rem .9rem; }
}

/* ============================================================
   Innenbereich (Mitglieder-Seiten, Gast-Turnierseiten, Rechtliches)
   Überschreibt die Stellen von css/style.css, die feste Weiß-/Dunkel-
   töne statt der Tokens nutzen (auf hellem Grund sonst unsichtbar).
   ============================================================ */

/* Kopfleiste: bündig, Haarlinie statt Schwebe-Schatten */
body.hell .topbar-neu,
body.hell header.topbar {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--haar);
    background: var(--kreide);
    top: 0;
    --text: var(--tinte);
    --gruen-hell: var(--rasen);
}
body.hell .topbar-neu-logo .marke-name { font-family: var(--serif); font-size: 1.05rem; }
body.hell .topbar-neu-logo .marke-tag { color: var(--tinte-2); font-family: var(--serif); font-style: italic; letter-spacing: 0; font-size: .72rem; }
body.hell .topbar-neu-label { text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--rasen); }
body.hell .topbar-neu-link { border-radius: 3px; min-height: 44px; }
body.hell .topbar-neu-link.aktiv { color: var(--rasen); border-color: var(--rasen); }
body.hell .topbar-neu-group.kasse .topbar-neu-link.aktiv { color: #5B2A8C; border-color: #5B2A8C; }
body.hell .topbar-neu-group.liga .topbar-neu-link.aktiv { color: #7A5B00; border-color: #7A5B00; }
body.hell .topbar-neu-boost-label { text-transform: none; letter-spacing: 0; }
body.hell .topbar-neu-boost-link { border-radius: 3px; background: var(--kreide-2); color: var(--tinte); border: 1px solid var(--haar); }
body.hell .topbar-neu-boost-link:hover { background: var(--rasen); color: #fff; }
body.hell .profile-btn { background: var(--rasen); border-radius: 3px; }
body.hell .profile-btn:hover { background: var(--rasen-tief); }
body.hell .profile-dropdown-item.gefahr { color: var(--rot); }

/* Seiteninhalt: ruhige Schriftgrößen, Serife nur in Überschriften */
body.hell h2 { font-size: 1.3rem; }
body.hell h3 { font-size: 1.02rem; }
body.hell .stat { background: #fff; border: 1px solid var(--haar); border-radius: 3px; }
body.hell .stat .zahl, body.hell .stat strong { font-family: var(--serif); }

/* Tabellen: kein Versal-Kopf, leichter Hover */
body.hell th { text-transform: none; letter-spacing: 0; font-size: .82rem; color: var(--tinte-2); border-bottom-color: var(--linie-stark); }
body.hell tbody tr:hover td, body.hell tr:hover td { background: rgba(29, 94, 58, .06); }

/* Pills, Chips, Zähler: rechteckiger, mit Kontrast */
body.hell .tag { border-radius: 3px; }
body.hell .tag-gelb { background: var(--rasen); color: #fff; }
body.hell .tag-lila { background: rgba(91, 42, 140, .12); color: #5B2A8C; }
body.hell .tag-neutral,
body.hell .liga-countdown,
body.hell .rang-niederlagen,
body.hell .chip-absage { background: var(--kreide-2); color: var(--tinte-2); }
body.hell .chip-offen { background: var(--tinte); color: #fff; }
body.hell .chip-vielleicht { background: #5B2A8C; color: #fff; }
body.hell .liga-countdown.bald { background: #F2D25C; color: var(--tinte); animation: none; }
body.hell .liga-countdown.heute { background: var(--rot); color: #fff; animation: none; }
body.hell .eckdaten-chip { background: var(--kreide-2); border: 1px solid var(--haar); border-radius: 3px; }
body.hell .eckdaten-chip span { text-transform: none; letter-spacing: 0; font-size: .75rem; opacity: 1; color: var(--tinte-2); }

/* Flächen, die auf Dunkel mit 3 % Weiß getönt waren */
body.hell .kal-tag,
body.hell .kaessle-segment,
body.hell .kaessle-person,
body.hell .kaessle-summe,
body.hell .turnier-beschreibung,
body.hell .bild-ganz { background: var(--kreide-2); }
body.hell .kaessle-segment { border-radius: 3px; }
body.hell .rang-bilanz span { background: var(--kreide-2); color: var(--tinte-2); }
body.hell .bausteine-auswahl label:hover { background: var(--kreide-2); }

/* Sterne-Bewertung: leere Sterne auf hellem Grund sichtbar */
body.hell .sterne label.stern,
body.hell .sterne-anzeige .stern-leer { color: rgba(43, 14, 69, .2); }

/* Meldungen */
body.hell .erfolg { background: var(--gelb-tint); color: var(--rasen); border-color: rgba(29, 94, 58, .35); }

/* Zeilenmarkierungen, die Seiten inline mit rgba(255,255,255,.04) setzen */
body.hell tr[style*="rgba(255,255,255"] { background: rgba(29, 94, 58, .08) !important; }

body.hell .byline { color: var(--tinte-2); }

/* ============================================================
   Korrekturen aus der Live-Prüfung (Dezember)
   ============================================================ */

/* 1) Gast-Kopf (Turnier-Seiten, Impressum): Login-Link als 44-px-Fläche */
body.hell header.topbar a { display: inline-flex; align-items: center; min-height: 44px; }
body.hell header.topbar > div > a {
    padding: 0 1rem;
    border: 2px solid var(--rasen);
    border-radius: 3px;
    color: var(--rasen);
    font-weight: 600;
    text-decoration: none;
}
body.hell header.topbar > div > a:hover { background: var(--rasen); color: #fff; }

/* 2) Startseiten-Navigation bei mittleren Breiten: nichts bricht mehr um */
body.hell .nav-links a { white-space: nowrap; }
@media (max-width: 1080px) {
    body.hell .nav-links-registrieren { display: none; }
    body.hell .nav-links { gap: 1.4rem; }
    body.hell .navbar, body.hell .navbar.gescrollt { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 900px) {
    body.hell .nav-logo .tagline { display: none; }
}

/* 4) Turnier-Eckdaten: Beschriftung mindestens 12 px, Töne für helle Seite */
body.hell .eckdaten-chip span { font-size: .8rem; }
body.hell .eckdaten-chip.geld  { background: rgba(29, 94, 58, .1);  border-color: rgba(29, 94, 58, .45); }
body.hell .eckdaten-chip.preis { background: rgba(122, 91, 0, .1);  border-color: rgba(122, 91, 0, .45); }
body.hell .eckdaten-chip.frist { background: rgba(179, 38, 30, .08); border-color: rgba(179, 38, 30, .4); }
body.hell .eckdaten-haupt { font-family: var(--serif); }

/* 5) Gruppen-Beschriftung der Mitglieder-Leiste lesbar */
body.hell .topbar-neu-label { font-size: .82rem; }
