/* mmb-summerchallenge.de – öffentliche Seiten im Sommerlicht-Design */

@font-face {
    font-family: "Rubik";
    src: url("../fonts/rubik-latin.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Rubik";
    src: url("../fonts/rubik-latin-ext.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --tinte: #16161a;
    --text: #3d3d45;
    --leise: #4a4a52;
    --pink: #d1157a;
    --pink-dunkel: #b3125f;
    --pink-hell: #fff0f7;
    --pink-mittel: #ffd1e8;
    --blau: #0a7aa8;
    --himmel: #eaf8fd;
    --himmel-mittel: #bfeaf7;
    --grau: #eef1f4;
    --grau-rand: #9aa3ad;
    --weiss: #ffffff;
    --schatten: 0 14px 30px -12px rgba(22, 22, 26, .30), 0 3px 8px rgba(22, 22, 26, .07);
    --schatten-gross: 0 22px 44px -16px rgba(22, 22, 26, .32), 0 4px 10px rgba(22, 22, 26, .07);
    --rand: 3px solid var(--tinte);
    --breite: 1240px;
    --rand-seite: clamp(16px, 3vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.oeffentlich {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Rubik", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    color: var(--tinte);
    background: var(--weiss);
}
.oeffentlich main { flex: 1 0 auto; }
.oeffentlich a { color: var(--blau); }
.oeffentlich h1, .oeffentlich h2, .oeffentlich h3 { font-family: inherit; color: var(--tinte); letter-spacing: -0.02em; }
.oeffentlich :focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.s-nurleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopf ---------- */
.s-kopf { background: var(--weiss); border-bottom: var(--rand); }
.s-kopf__innen { max-width: var(--breite); margin: 0 auto; padding: 12px var(--rand-seite); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.s-kopf__logo { display: flex; align-items: center; flex: none; }
.s-kopf__logo img { height: 62px; width: auto; display: block; }
.s-kopf__nav { display: flex; gap: 4px; flex: 1 1 380px; min-width: 0; padding: 4px 0; overflow-x: auto; }
.s-kopf__nav a { padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; color: var(--tinte); }
.s-kopf__nav a:hover { background: var(--himmel); }
.s-kopf__nav a[aria-current="page"] { background: var(--tinte); color: var(--weiss); }
.s-kopf__aktionen { display: flex; gap: 10px; flex: none; }

/* ---------- Knöpfe ---------- */
.s-knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 48px; padding: 10px 18px; border-radius: 12px;
    font: inherit; font-weight: 800; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
    color: var(--tinte); background: var(--weiss); border: var(--rand); cursor: pointer;
}
.oeffentlich a.s-knopf { color: var(--tinte); }
.s-knopf:hover { background: var(--himmel); }
.s-knopf--haupt, .oeffentlich a.s-knopf--haupt { color: var(--weiss); background: var(--pink); box-shadow: 0 8px 18px -6px rgba(209, 21, 122, .55); }
.s-knopf--haupt:hover { background: var(--pink-dunkel); }
.s-knopf--dunkel, .oeffentlich a.s-knopf--dunkel { color: var(--weiss); background: var(--tinte); }
.s-knopf--klein { min-height: 44px; padding: 6px 14px; font-size: 15px; font-weight: 700; }
.s-knopf--breit { width: 100%; }
.s-knopf--link { border: 0; background: transparent; padding: 6px 0; min-height: 44px; color: var(--pink-dunkel); }
.s-knopf--link:hover { background: transparent; text-decoration: underline; }
.s-knopf:disabled { cursor: not-allowed; color: var(--leise); background: var(--grau); border-style: dashed; border-color: var(--grau-rand); box-shadow: none; }

/* ---------- Leiste unten (Handy) ---------- */
.s-leiste, .s-mehr, .s-mehr-hinter { display: none; }

@media (max-width: 1099px) {
    .s-kopf__innen { padding: 10px 16px; }
    .s-kopf__logo img { height: 48px; }
    .s-kopf__nav, .s-kopf__aktionen { display: none; }
    .s-leiste {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 42;
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        background: var(--weiss); border-top: var(--rand);
        box-shadow: 0 -8px 20px -12px rgba(22, 22, 26, .30);
    }
    .s-leiste a, .s-leiste button {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        min-height: 56px; padding: 4px 2px; border: 0; background: transparent; cursor: pointer;
        font: inherit; font-size: 12px; font-weight: 700; line-height: 1.1; text-align: center; text-decoration: none;
        color: #3d3d45;
    }
    .s-leiste [aria-current="page"], .s-leiste .ist-aktiv { color: var(--pink-dunkel); }
    .s-leiste__buchen { font-weight: 800 !important; color: var(--tinte) !important; }
    .s-leiste__buchen[aria-current="page"] { color: var(--pink-dunkel) !important; }
    .s-leiste__plus {
        display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-top: -10px;
        border-radius: 50%; color: var(--weiss); background: var(--pink); border: var(--rand);
    }
    .s-mehr-offen .s-mehr-hinter { display: block; position: fixed; inset: 0; z-index: 40; border: 0; padding: 0; background: rgba(22, 22, 26, .40); cursor: pointer; }
    .s-mehr-offen .s-mehr {
        display: grid; gap: 4px; position: fixed; left: 12px; right: 12px; z-index: 41;
        bottom: calc(84px + env(safe-area-inset-bottom, 0px)); padding: 8px;
        border-radius: 20px; background: var(--weiss); border: var(--rand); box-shadow: var(--schatten-gross);
    }
    .s-mehr a {
        display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px;
        border-radius: 14px; font-weight: 800; font-size: 18px; text-decoration: none; color: var(--tinte); background: var(--himmel);
    }
    .s-mehr a[aria-current="page"] { background: var(--tinte); color: var(--weiss); }
    .s-fuss { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Fuß ---------- */
.s-fuss { background: var(--tinte); color: #d9d9de; font-size: 15px; line-height: 1.55; }
.s-fuss__innen { max-width: var(--breite); margin: 0 auto; padding: 40px var(--rand-seite); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.s-fuss__marke { flex: 1 1 260px; }
.s-fuss__marke strong { display: block; font-weight: 900; font-size: 20px; color: var(--weiss); }
.s-fuss nav { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.oeffentlich .s-fuss a { color: var(--weiss); text-decoration: none; }
.oeffentlich .s-fuss a:hover { text-decoration: underline; }

/* ---------- Bausteine ---------- */
.s-band { background: var(--himmel); border-bottom: var(--rand); }
.s-band--rosa { background: var(--pink-hell); }
.s-band--unten { border-bottom: 0; border-top: var(--rand); }
.s-innen { max-width: var(--breite); margin: 0 auto; padding: clamp(28px, 4vw, 48px) var(--rand-seite); }
.s-innen--eng { padding-top: 36px; padding-bottom: 56px; }
.s-krumen { font-size: 15px; color: var(--leise); margin: 0; }
.s-krumen a { font-weight: 700; text-decoration: none; }
.s-titel { margin: 10px 0 0; font-weight: 900; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.s-titel--mittel { font-size: clamp(30px, 4vw, 44px); }
.s-titel--lang { font-size: clamp(28px, 8vw, 64px); }
.s-unter { margin: 10px 0 0; color: var(--text); overflow-wrap: anywhere; }
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.s-chip { padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 15px; background: var(--weiss); border: 2px solid var(--tinte); }
.s-chip--rosa { background: var(--pink-mittel); }
.s-chip--klein { padding: 1px 8px; font-size: 12px; border: 0; background: var(--himmel-mittel); }
.s-chip--klein.s-chip--rosa { background: var(--pink-mittel); }

.s-karte { padding: 22px; border-radius: 22px; background: var(--weiss); border: var(--rand); box-shadow: var(--schatten); min-width: 0; }
.s-karte--gross { box-shadow: var(--schatten-gross); padding: clamp(22px, 3vw, 36px); border-radius: 24px; }
.s-karte--rosa { background: var(--pink-hell); }
.s-karte--grau { background: var(--grau); box-shadow: none; }
.s-karte h2 { margin: 0 0 12px; font-weight: 900; font-size: 24px; line-height: 1.15; }
.s-karte p { margin: 0 0 12px; }
.s-karte p:last-child { margin-bottom: 0; }
.s-leise { color: var(--leise); font-size: 15px; }

.s-spalten { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.s-spalten__haupt { flex: 999 1 600px; min-width: 0; display: grid; gap: 24px; }
.s-spalten__seite { flex: 1 1 340px; min-width: 0; display: grid; gap: 24px; }
.s-mitte { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 32px; }

/* ---------- Formulare ---------- */
.s-form { display: grid; gap: 14px; }
.s-feld { display: flex; flex-direction: column; gap: 6px; }
.s-feld > span:first-child { font-weight: 700; font-size: 15px; }
.s-feld input, .s-feld select {
    font: inherit; min-height: 50px; padding: 8px 14px; border-radius: 14px;
    border: var(--rand); background: var(--weiss); color: var(--tinte); width: 100%;
}
.s-feld input:focus, .s-feld select:focus { outline: 3px solid var(--himmel-mittel); outline-offset: 0; }
.s-feld--code input { font-weight: 800; font-size: 30px; letter-spacing: .35em; text-align: center; min-height: 64px; }
.s-feld__hilfe { font-size: 14px; color: var(--leise); }
.s-feld__fehler { font-size: 15px; font-weight: 700; color: var(--pink-dunkel); }
.s-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.s-haken { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.s-haken input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--pink); }
.s-schritte { display: flex; gap: 8px; margin-bottom: 18px; }
.s-schritte span { flex: 1 1 0; height: 8px; border-radius: 999px; background: var(--grau); }
.s-schritte .ist-an { background: var(--pink); }

/* ---------- Meldungen ---------- */
.s-meldung { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--blau); background: var(--himmel); font-weight: 700; }
.s-meldung--fehler { border-color: var(--pink-dunkel); background: var(--pink-hell); color: var(--pink-dunkel); }
.s-meldungen { max-width: var(--breite); margin: 0 auto; padding: 20px var(--rand-seite) 0; }
.s-meldungen .s-meldung { margin: 0 0 8px; }

/* ---------- Startzeiten ---------- */
.s-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.s-plan__tag h3 { margin: 0 0 10px; padding: 6px 12px; border-radius: 12px; font-weight: 800; font-size: 16px; letter-spacing: 0; color: var(--weiss); background: var(--tinte); }
.s-plan__starts { display: flex; flex-direction: column; gap: 10px; }
.s-start { position: relative; display: block; padding: 12px; border-radius: 16px; background: var(--weiss); border: var(--rand); color: var(--tinte); }
label.s-start { cursor: pointer; box-shadow: 0 8px 18px -10px rgba(22, 22, 26, .35); }
label.s-start:hover { background: #fafdff; }
.s-start input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.s-start:has(input:checked) { background: var(--pink-hell); border-color: var(--pink); box-shadow: 0 10px 20px -8px rgba(209, 21, 122, .45); }
.s-start:has(input:focus-visible) { outline: 3px solid var(--blau); outline-offset: 2px; }
.s-start__kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.s-start__nr { font-weight: 900; font-size: 19px; }
.s-start__haken { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--tinte); background: var(--weiss); color: transparent; }
.s-start:has(input:checked) .s-start__haken { background: var(--pink); color: var(--weiss); }
.s-start__zeit { display: block; font-weight: 600; color: var(--text); }
.s-start__balken { display: block; margin: 8px 0 6px; height: 10px; border-radius: 999px; background: var(--grau); border: 2px solid var(--tinte); overflow: hidden; }
.s-start__balken > span { display: block; height: 100%; background: var(--blau); }
.s-start__frei { display: block; font-size: 14px; font-weight: 700; color: var(--blau); }
.s-start__marken { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.s-start--schon { background: var(--himmel); border-color: var(--blau); }
.s-start--schon .s-start__haken { background: var(--blau); border-color: var(--blau); color: var(--weiss); }
.s-start--voll, .s-start--zu { background: var(--grau); border-style: dashed; border-color: var(--grau-rand); color: var(--leise); }
.s-start--voll .s-start__nr, .s-start--zu .s-start__nr { color: var(--tinte); }
.s-start__info { display: block; margin-top: 8px; font-size: 14px; font-weight: 800; }
.s-start--schon .s-start__info { color: var(--blau); }
.s-start form { margin-top: 8px; }

/* Balkenbreiten in 5-%-Schritten (keine Inline-Styles wegen Content-Security-Policy) */
.b0{width:0}.b5{width:5%}.b10{width:10%}.b15{width:15%}.b20{width:20%}.b25{width:25%}.b30{width:30%}.b35{width:35%}.b40{width:40%}.b45{width:45%}.b50{width:50%}
.b55{width:55%}.b60{width:60%}.b65{width:65%}.b70{width:70%}.b75{width:75%}.b80{width:80%}.b85{width:85%}.b90{width:90%}.b95{width:95%}.b100{width:100%}
.s-start__balken > .ist-knapp { background: var(--pink); }

.s-auswahl { position: sticky; top: 16px; }
.s-auswahl .s-form { margin-top: 14px; }
.s-auswahl > .s-knopf--breit { margin: 6px 0 14px; }
.s-buchleiste { display: none; }
@media (max-width: 1099px) {
    .s-buchleiste:not([hidden]) {
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        position: fixed; left: 8px; right: 8px; z-index: 39;
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
        padding: 8px 8px 8px 14px; border-radius: 16px; background: var(--weiss); border: var(--rand); box-shadow: var(--schatten-gross);
        font-size: 15px;
    }
    .s-buchleiste span { min-width: 0; }
    .s-buchleiste [data-mini-summe], .s-buchleiste .s-knopf { white-space: nowrap; }
}
.s-auswahl__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.s-auswahl__liste li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--grau); }
.s-auswahl__liste li.ist-neu { background: var(--pink-hell); }
.s-auswahl__liste .s-auswahl__text { flex: 1 1 auto; min-width: 0; }
.s-auswahl__liste strong { display: block; }
.s-auswahl__liste small { display: block; font-size: 14px; color: var(--text); }
.s-auswahl__preis { flex: none; font-weight: 800; }
.s-summe { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--pink-hell); }
.s-summe__zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.s-summe__zeile strong { font-weight: 900; font-size: 30px; }
.s-summe__klein { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--text); margin-top: 4px; }
.s-spielerwahl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.s-spielerwahl a, .s-spielerwahl button {
    display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; border-radius: 999px;
    font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; color: var(--tinte); background: var(--weiss); border: var(--rand); cursor: pointer;
}
.oeffentlich .s-spielerwahl a { color: var(--tinte); }
.s-spielerwahl a span { font-weight: 600; margin-left: 4px; }
.oeffentlich .s-spielerwahl a[aria-current="true"] { background: var(--tinte); color: var(--weiss); }
.s-spielerwahl .s-spielerwahl__neu { border-style: dashed; }

/* ---------- Mein Bereich ---------- */
.s-startkarte { padding: 16px; border-radius: 18px; background: var(--weiss); border: var(--rand); }
.s-startkarte--zu { background: #f6f7f9; }
.s-startkarte__kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.s-startkarte__titel { font-weight: 900; font-size: 21px; }
.s-startkarte__info { font-size: 15px; color: var(--text); }
.s-startkarte__frist { margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--blau); }
.s-startkarte--zu .s-startkarte__frist { color: var(--text); }
.s-schloss { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--grau); color: var(--text); }
.s-umbuchen { margin-top: 12px; }
.s-umbuchen[open] { padding-top: 14px; border-top: 2px dashed var(--grau-rand); }
.s-umbuchen[open] > summary { margin-bottom: 12px; }
.s-umbuchen summary { list-style: none; }
.s-umbuchen summary::-webkit-details-marker { display: none; }
.s-ziele { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.s-ziele button { text-align: left; display: block; width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 14px; border: var(--rand); background: var(--weiss); color: var(--tinte); font: inherit; cursor: pointer; }
.s-ziele button:hover { background: var(--himmel); }
.s-ziele strong { display: block; font-weight: 800; }
.s-ziele small { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--blau); font-weight: 700; }
.s-ziele .plus { color: var(--pink-dunkel); }
.s-zeilen { display: grid; gap: 10px; }
.s-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--pink-hell); }
.s-posten { display: grid; gap: 8px; }
.s-posten div { display: flex; justify-content: space-between; gap: 12px; }
.s-posten span:last-child { flex: none; font-weight: 700; }
.s-posten__summe { margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--tinte); display: grid; gap: 4px; }
.s-posten__summe div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.s-posten__summe strong { font-weight: 900; font-size: 30px; }
.s-daten { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; }
.s-daten dt { color: var(--leise); }
.s-daten dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.s-aufklapp > summary { cursor: pointer; font-weight: 800; color: var(--blau); list-style: none; margin-top: 14px; }
.s-aufklapp > summary::-webkit-details-marker { display: none; }
.s-aufklapp[open] > summary { margin-bottom: 14px; }
.s-liste { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text); }
.s-text { max-width: 820px; }
.s-text h2 { margin-top: 28px; }
.s-text h3 { margin: 22px 0 6px; font-size: 1.05rem; font-weight: 800; }
.s-text { overflow-wrap: anywhere; }
.s-text ul { padding-left: 22px; }

/* ---------- Ergebnisse ---------- */
.e-kopf { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.e-kopf__text { min-width: 0; }
.e-kopf .s-titel { margin-top: 0; }
.e-stand { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 600; color: var(--text); }
.e-live { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: .06em; color: var(--weiss); background: var(--pink); border: 2px solid var(--tinte); }
.e-live span { width: 9px; height: 9px; border-radius: 50%; background: var(--weiss); }
.oeffentlich a.e-pdf { min-height: 52px; padding: 12px 20px; border-radius: 14px; box-shadow: 0 8px 18px -8px rgba(22, 22, 26, .35); }
.e-zahlen { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.e-zahlen > div { padding: 12px 16px; border-radius: 18px; background: var(--weiss); border: var(--rand); min-width: 0; }
.e-zahlen span { display: block; font-size: 14px; font-weight: 700; color: var(--leise); }
.e-zahlen strong { display: block; font-weight: 900; font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }
.e-zahlen small { font-size: 15px; font-weight: 700; }
.e-zahlen > .e-zahlen--rosa { background: var(--pink-hell); }
.e-zahlen .e-zahlen__name { font-size: 22px; line-height: 1.25; }

.e-wahl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.e-reiter { display: flex; flex-wrap: wrap; gap: 8px; }
.e-reiter a, .e-umschalter a { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; background: var(--weiss); border: var(--rand); }
.oeffentlich .e-reiter a, .oeffentlich .e-umschalter a { color: var(--tinte); }
.oeffentlich .e-reiter a[aria-current="page"], .oeffentlich .e-umschalter a[aria-current="page"] { background: var(--tinte); color: var(--weiss); }
.e-umschalter { display: flex; flex-wrap: wrap; padding: 3px; gap: 3px; border-radius: 24px; border: var(--rand); background: var(--weiss); }
.e-umschalter a { min-height: 40px; padding: 6px 14px; font-size: 14px; border: 0; }
.e-suche { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.e-suche span { font-weight: 700; }
.e-suche input { font: inherit; min-height: 46px; width: 240px; max-width: 100%; padding: 8px 14px; border-radius: 12px; border: var(--rand); background: var(--weiss); color: var(--tinte); }
.e-hinweis { margin-top: 16px; padding: 12px 16px; border-radius: 16px; background: var(--pink-hell); border: 3px solid var(--pink); display: flex; align-items: flex-start; gap: 12px; }
.e-hinweis svg { flex: none; margin-top: 2px; color: var(--pink-dunkel); }

.e-runde { margin-top: 26px; }
.e-runde h2 { margin: 0 0 6px; font-weight: 900; font-size: 30px; }
.e-runde__kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; }
.e-runde__kopf h2 { margin: 0; }
.e-legende { display: flex; flex-wrap: wrap; gap: 6px; }
.e-legende .e-chip { padding: 3px 10px; font-size: 13px; }
.e-text { margin: 0 0 16px; color: var(--text); }
.e-werkzeug { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.e-fuss { margin: 14px 0 0; font-size: 15px; color: var(--leise); }

.e-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; background: var(--grau); color: var(--tinte); white-space: nowrap; }
.e-chip--finale { background: var(--pink); color: var(--weiss); }
.e-chip--hf { background: var(--himmel-mittel); }
.e-chip--hg { background: var(--pink-mittel); }
.e-chip--grau { background: var(--grau); }

.e-rahmen { border-radius: 20px; border: var(--rand); overflow-x: auto; box-shadow: var(--schatten); background: var(--weiss); }
.e-tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.e-tabelle--vr { min-width: 980px; }
.e-tabelle--hf { min-width: 920px; }
.e-tabelle--hg, .e-tabelle--fi, .e-tabelle--end { min-width: 640px; }
.e-tabelle th { padding: 11px 6px; background: var(--tinte); color: var(--weiss); font-weight: 800; font-size: 14px; text-align: left; white-space: nowrap; }
.e-tabelle td { padding: 9px 6px; vertical-align: middle; }
.e-tabelle th:first-child, .e-tabelle td:first-child { padding-left: 16px; width: 52px; }
.e-tabelle th:last-child, .e-tabelle td:last-child { padding-right: 16px; }
.e-tabelle .e-haupt td { border-top: 2px solid #e3e8ee; }
.e-tabelle .e-z { text-align: right; }
.e-sp--finale .e-haupt td, .e-zeile--rosa td { background: var(--pink-hell); }
.e-sp--finale .e-name strong { color: var(--pink-dunkel); }
.e-platz { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 900; border: 2px solid transparent; }
.e-platz--1 { background: var(--pink); color: var(--weiss); border-color: var(--tinte); }
.e-platz--2 { background: #21b5e2; border-color: var(--tinte); }
.e-platz--3 { background: var(--weiss); border-color: var(--tinte); }
.e-name { min-width: 0; }
.e-auf { display: block; width: 100%; padding: 0; border: 0; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.e-name__zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 800; }
.e-unter { display: block; font-size: 13px; color: var(--leise); }
.e-total { font-weight: 900; font-size: 22px; }
.e-fett { font-weight: 700; }
.e-leise { color: var(--text); }
.e-hdc { color: #9a5b00; }
.e-serie, .e-karte-zeile { display: none; }
.e-serie { font-size: 14px; color: var(--text); }
.e-tabelle .e-serie td { padding-top: 3px; padding-bottom: 3px; }
.e-serie td:nth-child(n+4) { text-align: right; }
.e-serie td:nth-child(8), .e-serie td:nth-child(10) { font-weight: 700; color: var(--tinte); }
.e-serie:not(.e-serie--zaehlt) td { color: #8a8a92; font-weight: 400; }
.e-tabelle td.e-zaehlt { font-size: 12px; font-weight: 700; color: var(--blau); text-align: right; }
.e-trenner td { padding: 7px 16px; background: var(--tinte); color: var(--weiss); font-weight: 800; font-size: 14px; }
.e-trenner--grau td { background: var(--grau); color: var(--tinte); border-top: 2px solid #e3e8ee; }
.e-sucht .e-trenner { display: none; }
.e-keiner { padding: 22px 16px; color: var(--leise); border-top: 2px solid #e3e8ee; }
.e-karte { display: grid; gap: 1px; margin: 0 0 0 30px; padding: 8px 10px; border-radius: 10px; background: #f2f5f8; font-size: 13px; line-height: 1.4; color: var(--tinte); }

@media (min-width: 900px) {
    .e-s { display: none !important; }
    .e-tabelle--vr .ist-offen .e-serie { display: table-row; }
    .e-auf[data-nur-schmal] { cursor: default; }
}
@media (max-width: 899px) {
    .e-b { display: none !important; }
    .e-rahmen { border-radius: 18px; box-shadow: none; }
    .e-tabelle { min-width: 0 !important; }
    .e-tabelle th { padding: 9px 4px; font-size: 12px; }
    .e-tabelle td { padding: 9px 4px; font-size: 14px; }
    .e-tabelle th:first-child, .e-tabelle td:first-child { padding-left: 10px; width: 38px; }
    .e-tabelle th:last-child, .e-tabelle td:last-child { padding-right: 10px; }
    .e-platz { width: 28px; height: 28px; font-size: 14px; }
    .e-name__zeile { font-size: 15px; line-height: 1.2; }
    .e-name .e-chip { margin-top: 2px; font-size: 11px; padding: 0 6px; }
    .e-unter { font-size: 12px; }
    .e-total { font-size: 18px; }
    .ist-auf .e-karte-zeile { display: table-row; }
    .e-tabelle .e-karte-zeile td { padding: 0 10px 6px; }
        .e-karte-zeile .e-karte--info { margin-top: 0; background: transparent; padding-top: 0; color: var(--leise); font-size: 12px; }
    .e-trenner td { padding: 6px 10px; font-size: 13px; }
    .e-runde h2 { font-size: 26px; }
    .e-suche, .e-suche input { width: 100%; }
}

.e-leer { margin-top: 12px; padding: 24px; border-radius: 22px; background: var(--himmel); border: 3px dashed var(--blau); }
.e-leer--rosa { background: var(--pink-hell); border-color: var(--pink-dunkel); }
.e-leer p { margin: 8px 0 16px; color: var(--text); }
.e-leer .e-leer__titel { margin: 0; font-weight: 800; font-size: 22px; color: var(--tinte); }
.e-leer .e-leer__klein { margin: 0 0 8px; font-weight: 700; color: var(--tinte); }
.e-feld { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.e-feld li { padding: 3px 10px; border-radius: 999px; background: var(--weiss); border: 2px solid var(--tinte); font-size: 14px; }
.e-feld li span { font-weight: 800; color: var(--leise); }

.e-podest { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.e-podest li { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; padding: 18px; border-radius: 22px; border: var(--rand); background: var(--weiss); box-shadow: var(--schatten-gross); }
.e-podest .e-podest--1 { order: 2; padding-top: 40px; background: var(--pink); color: var(--weiss); }
.e-podest .e-podest--2 { order: 1; padding-top: 24px; background: #21b5e2; }
.e-podest .e-podest--3 { order: 3; padding-top: 18px; }
@media (max-width: 699px) {
    .e-podest { gap: 10px; }
    .e-podest li, .e-podest .e-podest--1, .e-podest .e-podest--2, .e-podest .e-podest--3 { order: 0; flex-basis: 100%; padding: 12px 16px; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
    .e-podest__platz { font-size: 30px; }
    .e-podest strong { margin-top: 0; font-size: 19px; }
    .e-podest li > span:last-child { margin-top: 0; flex-basis: 100%; font-size: 15px; }
}
.e-podest__platz { font-weight: 900; font-size: 44px; line-height: 1; }
.e-podest strong { margin-top: 8px; font-weight: 900; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.e-podest li > span:last-child { margin-top: 4px; font-weight: 600; }

.oeffentlich a.e-hoch { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; min-height: 44px; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; color: var(--tinte); background: var(--weiss); border: var(--rand); }

.e-archiv { background: var(--grau); }
.e-archiv__raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.e-archiv__jahr { padding: 18px 20px; border-radius: 20px; background: var(--weiss); border: var(--rand); box-shadow: var(--schatten); min-width: 0; }
.e-archiv__jahr h3 { margin: 0 0 10px; font-weight: 900; font-size: 28px; }
.e-archiv__jahr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.e-archiv__jahr a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 700; text-decoration: none; }
.e-archiv__jahr svg { flex: none; width: 18px; height: 18px; }
.e-archiv__mehr > summary { margin-top: 18px; font-weight: 800; color: var(--pink-dunkel); cursor: pointer; list-style: none; }
.e-archiv__mehr > summary::-webkit-details-marker { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
    .s-kopf, .s-leiste, .s-fuss, .s-mehr, .e-wahl, .e-hoch, .e-archiv, .e-werkzeug, .e-pdf { display: none !important; }
    .e-rahmen { box-shadow: none; overflow: visible; }
}

/* ---------- News ---------- */
.s-ueberschrift { margin: 0 0 18px; font-size: clamp(24px, 3vw, 32px); font-weight: 900; }
.s-newsliste { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-bottom: 28px; }
.s-news { display: flex; flex-direction: column; border-radius: 22px; background: var(--weiss); border: var(--rand); box-shadow: var(--schatten); overflow: hidden; min-width: 0; }
.s-news__bild { display: block; aspect-ratio: 16 / 9; background: var(--himmel); border-bottom: var(--rand); }
.s-news__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.s-news__inhalt { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.s-news__inhalt p { margin: 0; }
.s-news__datum { font-size: 14px; font-weight: 700; color: var(--leise); }
.s-news__titel { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 900; }
.s-news__titel a { color: var(--tinte); text-decoration: none; }
.s-news__titel a:hover { text-decoration: underline; }
.s-news__text { color: var(--text); }
.s-news__inhalt p:last-child { margin-top: auto; padding-top: 6px; }
.s-news-gross { margin: 0 0 28px; max-width: 820px; }
.s-news-gross img { display: block; width: 100%; height: auto; border-radius: 22px; border: var(--rand); box-shadow: var(--schatten); }
.s-news-text p { margin: 0 0 1.1em; }
.s-seiten { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }

/* ---------- Turnier, Ölmuster ---------- */
.s-tabelle-rahmen { overflow-x: auto; margin: 0 0 14px; }
.s-tabelle { width: 100%; border-collapse: collapse; font-size: 16px; }
.s-tabelle th { text-align: left; font-weight: 800; padding: 8px 10px; border-bottom: 3px solid var(--tinte); white-space: nowrap; }
.s-tabelle td { padding: 9px 10px; border-bottom: 1px solid var(--grau-rand); vertical-align: top; }
.s-tabelle__tag { font-weight: 800; white-space: nowrap; }
.s-tabelle--preise td:not(:first-child), .s-tabelle--preise th:not(:first-child) { text-align: right; white-space: nowrap; }
.s-nowrap { white-space: nowrap; }
.s-oelliste { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.s-oelbild { display: block; width: 100%; height: auto; border-radius: 14px; border: 2px solid var(--tinte); margin: 0 0 14px; }
@media (max-width: 599px) {
    .s-tabelle:not(.s-tabelle--preise) thead { display: none; }
    .s-tabelle:not(.s-tabelle--preise), .s-tabelle:not(.s-tabelle--preise) tbody,
    .s-tabelle:not(.s-tabelle--preise) tr, .s-tabelle:not(.s-tabelle--preise) td { display: block; width: 100%; }
    .s-tabelle:not(.s-tabelle--preise) tr { padding: 8px 0; border-bottom: 1px solid var(--grau-rand); }
    .s-tabelle:not(.s-tabelle--preise) td { border: 0; padding: 2px 0; }
    .s-tabelle:not(.s-tabelle--preise) td:empty { display: none; }
}
.s-tabelle--preise td, .s-tabelle--preise th { padding-left: 6px; padding-right: 6px; }
.s-tabelle--preise td:first-child { min-width: 9em; }

/* ---------- Kontakt ---------- */
.s-kontakt { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }

/* Köderfeld gegen Spam-Programme: für Menschen unsichtbar, per Tastatur nicht erreichbar */
.s-falle { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
