/* =====================================================================
   TuS Müssen-Billinghausen – Vereinsdesign auf Basis von UIkit 3
   Farben/Schriften zentral als Variablen: hier ändern, wirkt überall.
   ===================================================================== */

/* Schriften lokal (keine Anfragen an Google → kein Einwilligungsbanner nötig) */
@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url('../fonts/oswald-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url('../fonts/oswald-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url('../fonts/oswald-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-display: swap; src: url('../fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-style: italic; font-display: swap; src: url('../fonts/source-sans-3-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 600; font-display: swap; src: url('../fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 700; font-display: swap; src: url('../fonts/source-sans-3-latin-700-normal.woff2') format('woff2'); }

:root {
    --green: #007d40;
    --green-deep: #045c30;
    --green-tint: #eaf5ee;
    --green-soft: #dcecdf;
    --paper: #fbfaf7;
    --ink: #17221d;
    --ink-soft: #4c5850;
    --ink-mute: #6b776f;
    --line: #e1e8e2;
    --red: #b3261e;
    --radius: 0;
    --font-head: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Grundlagen ---------- */
html { font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
body { background: var(--paper); }
h1, h2, h3, h4, .uk-h1, .uk-h2, .uk-h3 { font-family: var(--font-head); color: var(--ink); font-weight: 600; letter-spacing: .01em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
a, .uk-link { color: var(--green-deep); }
a:hover, .uk-link:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
img { height: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; top: 8px; }
.leer { color: var(--ink-mute); font-style: italic; }
.hinweis-klein { font-size: .8rem; color: var(--ink-mute); }
em { color: inherit; } /* UIkit färbt <em> sonst pink */

/* UIkit-Farben auf Vereinsgrün umstellen */
.uk-button-primary, .uk-button-primary:focus { background: var(--green); color: #fff; }
.uk-button-primary:hover { background: var(--green-deep); color: #fff; }
.uk-button { border-radius: 0; font-family: var(--font-body); font-weight: 600; text-transform: none; font-size: .95rem; }
.uk-button-default { border-color: var(--line); background: #fff; color: var(--ink); }
.uk-button-default:hover { border-color: var(--green); color: var(--green-deep); background: #fff; }
.uk-subnav > * > :first-child { text-transform: none; font-weight: 600; font-size: .9rem; }
.uk-subnav-pill > .uk-active > a { background: var(--green); }
.uk-pagination > .uk-active > * { color: var(--green-deep); font-weight: 700; }
.uk-label { background: var(--green); border-radius: 0; text-transform: none; }
.uk-alert-primary { background: var(--green-tint); color: var(--green-deep); border-radius: var(--radius); }
.uk-breadcrumb > * > * { color: var(--ink-mute); font-size: .85rem; }
.uk-breadcrumb > * > a:hover { color: var(--green-deep); }
.uk-input:focus, .uk-select:focus, .uk-textarea:focus { border-color: var(--green); }

/* ---------- Kopfbereich ---------- */
.site-header-inner { background: #fff; border-bottom: 1px solid var(--line); }
.site-header-inner.is-sticky { box-shadow: 0 4px 16px rgba(23, 34, 29, .08); }
.uk-navbar-container:not(.uk-navbar-transparent) { background: #fff; }
.brand { gap: 12px; padding-left: 0; min-height: 76px; }
.brand-badge { display: flex; align-items: center; flex: none; }
.brand-badge img { height: 54px; width: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .15)); }
@media (max-width: 640px) { .brand-badge img { height: 44px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.brand-tag { font-size: .75rem; color: var(--green-deep); font-weight: 600; font-family: var(--font-body); }
@media (max-width: 400px) { .brand-tag { display: none; } .brand-name { font-size: .95rem; } }

.main-nav > li > a { min-height: 76px; padding: 0 10px; font-family: var(--font-body); font-weight: 600; font-size: .92rem; text-transform: none; color: var(--ink); cursor: pointer; }
.main-nav > li:hover > a, .main-nav > li > a[aria-expanded="true"] { color: var(--green-deep); }
.main-nav > li.uk-active > a { color: var(--green); box-shadow: inset 0 -3px 0 var(--green); }
.uk-navbar-dropdown { border-radius: var(--radius); box-shadow: 0 12px 32px rgba(23, 34, 29, .14); padding: 20px; }
.uk-navbar-dropdown-nav > li > a { color: var(--ink-soft); padding: 4px 0; }
.nav-mega { width: calc(var(--spalten) * 190px); max-width: calc(100vw - 40px); box-sizing: border-box; }
.nav-mega-grid { display: grid; grid-template-columns: repeat(var(--spalten), minmax(0, 1fr)); gap: 0 24px; }
.uk-navbar-dropdown-nav > li > a:hover { color: var(--green-deep); }
.uk-navbar-dropdown-nav .uk-nav-header { font-family: var(--font-head); color: var(--green-deep); font-size: .85rem; letter-spacing: .04em; }
.uk-navbar-toggle { color: var(--ink); font-weight: 600; min-height: 76px; }

.mobil-nav { background: var(--green-deep); width: 300px; }
.mobil-nav .uk-nav-default > li > a { font-weight: 600; font-size: 1rem; padding: 8px 0; }
.mobil-nav .uk-nav-default > li.uk-active > a { color: #fff; }
.mobil-nav .mobil-zwischen { font-family: var(--font-head); color: rgba(255,255,255,.6); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; margin-top: 10px; }
.mobil-nav .mobil-einzug { padding-left: 12px; }
.uk-offcanvas-bar.mobil-nav .uk-nav-sub a { color: rgba(255,255,255,.82); }
.uk-offcanvas-bar.mobil-nav .uk-nav-default > li > a { color: rgba(255,255,255,.9); }
.mobil-nav .uk-nav-sub > .uk-active > a { color: #fff; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--green-deep), var(--green) 70%); color: #fff; }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .25; mix-blend-mode: luminosity; }
.hero-inner { position: relative; padding-top: 56px; padding-bottom: 56px; }
.hero-kicker { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .8); margin: 0 0 8px; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.1; max-width: 720px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-hell { background: #fff; color: var(--green-deep); }
.btn-hell:hover { background: var(--green-tint); color: var(--green-deep); }
.btn-rahmen { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); }
.btn-rahmen:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Seitenkopf ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0 22px; }
.page-title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 6px 0 0; line-height: 1.15; }
.page-sub { color: var(--ink-soft); margin: 6px 0 0; font-size: 1.05rem; }
.page-body { padding-top: 32px; padding-bottom: 56px; }

/* Grüner Kopf (z. B. Mannschaften ohne Foto) und Kopf mit Foto */
.page-head-gruen, .page-head-bild { background: var(--green); border-bottom: 0; color: #fff; }
.page-head-gruen .page-title, .page-head-bild .page-title { color: #fff; }
.page-head-gruen .page-sub, .page-head-bild .page-sub { color: rgba(255, 255, 255, .85); }
.page-head-gruen .uk-breadcrumb > * > *, .page-head-bild .uk-breadcrumb > * > * { color: rgba(255, 255, 255, .8); }
.page-head-gruen .uk-breadcrumb > :last-child > *, .page-head-bild .uk-breadcrumb > :last-child > * { color: rgba(255, 255, 255, .8); }
.page-head-gruen .uk-breadcrumb > * > a:hover, .page-head-bild .uk-breadcrumb > * > a:hover { color: #fff; }
.page-head-gruen .uk-breadcrumb > :nth-child(n+2):not(.uk-first-column)::before,
.page-head-bild .uk-breadcrumb > :nth-child(n+2):not(.uk-first-column)::before { color: rgba(255, 255, 255, .6); }
.page-head-bild { padding: 0; position: relative; }
.page-head-foto { display: block; max-width: 1400px; margin: 0 auto; }
.page-head-foto img { display: block; width: 100%; max-height: 580px; object-fit: cover; object-position: center 30%; }
.page-head-bild .page-head-text { padding-top: 18px; padding-bottom: 20px; }
@media (min-width: 960px) {
    /* Titel unten auf dem Foto, Verlauf in TuS-Grün */
    .page-head-bild .page-head-text { position: absolute; left: 0; right: 0; bottom: 0; padding-top: 80px; padding-bottom: 26px;
        background: linear-gradient(to bottom, rgba(4, 92, 48, 0), rgba(4, 92, 48, .88) 70%); pointer-events: none; }
    .page-head-bild .page-head-text a { pointer-events: auto; }
}

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 1.5rem; }
.section-head a { font-size: .85rem; font-weight: 600; white-space: nowrap; }

/* ---------- News ---------- */
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.news-card:hover { border-color: var(--green); }
.news-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.news-card-link:hover { color: inherit; text-decoration: none; }
.news-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--green-tint), var(--green-soft)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb-leer { display: flex; align-items: center; justify-content: center; }
.news-thumb .news-thumb-leer img { width: 64px; height: auto; object-fit: contain; }
.news-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--ink-mute); }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green-deep); background: var(--green-tint); padding: 3px 8px; border-radius: 0; }
.news-title { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.news-sub { font-size: .85rem; color: var(--green-deep); font-weight: 600; margin: 0; }
.news-teaser { font-size: .9rem; color: var(--ink-soft); margin: 0; }

.artikel { font-size: 1.05rem; }
.artikel-bild { margin: 0 0 24px; }
.artikel-bild img { border-radius: var(--radius); width: 100%; }
.artikel-bild figcaption, .baustein-bild figcaption { font-size: .85rem; color: var(--ink-mute); margin-top: 6px; }
.artikel-teaser { font-weight: 600; }
.artikel-quelle { color: var(--ink-mute); font-size: .9rem; margin-top: 24px; }

.chip-leiste { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-block; padding: 6px 14px; border-radius: 0; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink); }
.chip:hover { border-color: var(--green); color: var(--green-deep); text-decoration: none; }

/* ---------- Spiele ---------- */
.woche-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 600; }
.woche-nav a { color: var(--ink); }
.woche-heute { font-size: .85rem; margin-left: auto; }
.match-list { display: flex; flex-direction: column; gap: 8px; }
.match-row { display: grid; grid-template-columns: 92px 1fr auto; grid-template-areas: "time teams result" "info info info"; gap: 4px 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.match-row.is-sieg { border-left-color: var(--green); }
.match-row.is-niederlage { border-left-color: var(--red); }
.match-row.is-remis { border-left-color: #c9a82d; }
.match-time { grid-area: time; display: flex; flex-direction: column; font-size: .82rem; color: var(--ink-mute); line-height: 1.3; }
.match-time b { color: var(--ink); font-size: .88rem; }
.match-teams { grid-area: teams; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.match-team { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; min-width: 0; }
.match-team > span:last-child, .match-team > a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-team > a { color: var(--ink); }
.match-team > a:hover { color: var(--green-deep); text-decoration: underline; }
.match-info a.match-halle { font-weight: 400; color: var(--ink-mute); }
.match-info a.match-halle:hover { color: var(--green-deep); }
.team-logo { width: 24px; height: 24px; object-fit: contain; flex: none; }
.team-logo-leer { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--green-tint); color: var(--green-deep); font-family: var(--font-head); font-size: .6rem; }
.match-result { grid-area: result; font-family: var(--font-head); font-size: 1.05rem; text-align: right; white-space: nowrap; }
.match-vs { color: var(--ink-mute); }
.match-info { grid-area: info; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--ink-mute); }
.match-info a { font-weight: 600; }
@media (min-width: 960px) {
    .match-row { grid-template-columns: 100px 1fr 190px auto; grid-template-areas: "time teams info result"; }
    .match-info { flex-direction: column; gap: 0; }
}
.bilanz { font-weight: 600; font-size: .9rem; }
.bilanz .is-sieg { color: var(--green); }
.bilanz .is-niederlage { color: var(--red); }

/* ---------- Seitenleiste / Widgets ---------- */
.side-col > * + * { margin-top: 20px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.widget h3 { font-size: 1.05rem; margin: 0 0 12px; }
.widget-cta { background: var(--green-tint); border-color: var(--green-soft); }
.widget-aktion { padding: 0; overflow: hidden; }
.widget-aktion img { width: 100%; display: block; }
.countdown { display: flex; align-items: baseline; gap: 4px; justify-content: center; padding: 10px; font-size: .75rem; color: var(--ink-mute); }
.countdown .uk-countdown-number { font-family: var(--font-head); font-size: 1.3rem; color: var(--green-deep); margin-left: 6px; }

.termin-liste { list-style: none; margin: 0; padding: 0; }
.termin-liste li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.termin-liste li:first-child { border-top: 0; padding-top: 0; }
.termin-datum { flex: none; width: 46px; text-align: center; background: var(--green-tint); border-radius: 0; padding: 4px 0; font-size: .7rem; text-transform: uppercase; color: var(--green-deep); font-weight: 700; line-height: 1.1; }
.termin-datum b { display: block; font-family: var(--font-head); font-size: 1.2rem; }
.termin-liste strong { display: block; font-size: .92rem; line-height: 1.3; }
.termin-liste small { color: var(--ink-mute); }

.zeiten { font-size: .92rem; margin: 0; }
.zeiten-tag { font-weight: 700; display: inline-block; min-width: 92px; }
.zeiten-ort { display: block; color: var(--ink-mute); font-size: .85rem; }
.zeiten-hinweis { font-size: .85rem; color: var(--ink-soft); }
.kontakt-zeile { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.kontakt-zeile:first-of-type { border-top: 0; padding-top: 0; }
.kontakt-zeile small { color: var(--ink-mute); }
.kontakt-zeile a { word-break: break-all; }
.kontakt-text { font-size: .92rem; }

.team-foto { margin: 0 0 24px; }
.team-foto img { border-radius: var(--radius); width: 100%; }

/* ---------- Personen ---------- */
.person-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; height: 100%; box-sizing: border-box; }
.person-foto { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.person-foto-leer { display: flex; align-items: center; justify-content: center; background: var(--green-tint); color: var(--green-deep); font-family: var(--font-head); font-size: 1.1rem; }
.person-name { font-weight: 700; }
.person-funktion { color: var(--green-deep); font-size: .88rem; font-weight: 600; margin-bottom: 4px; }
.person-kontakt { font-size: .85rem; overflow-wrap: anywhere; }

/* ---------- Kacheln, Sponsoren ---------- */
.kachel { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); font-weight: 600; height: 100%; box-sizing: border-box; }
.kachel:hover { border-color: var(--green); color: var(--green-deep); text-decoration: none; }
.sponsor-band { background: #fff; border-top: 1px solid var(--line); padding: 36px 0; }
.sponsor-logo, .sponsor-kachel { display: flex; align-items: center; justify-content: center; height: 80px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-sizing: border-box; }
.sponsor-kachel { height: 110px; text-align: center; font-weight: 600; color: var(--ink); }
.sponsor-kachel-gross { height: 160px; padding: 16px; }
.sponsor-logo img, .sponsor-kachel img { max-height: 100%; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.sponsor-logo:hover img, .sponsor-kachel:hover img { filter: none; opacity: 1; }

/* ---------- Bausteine ---------- */
.baustein { margin-bottom: 24px; }
.baustein-bild img { border-radius: var(--radius); }
blockquote.baustein { border-left: 4px solid var(--green); padding-left: 16px; font-style: italic; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--green); color: rgba(255, 255, 255, .88); padding: 44px 0 0; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-family: var(--font-head); font-size: 1.2rem; color: #fff; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.footer-copy { margin: 36px 0 0; padding: 14px 0; font-size: .8rem; color: rgba(255, 255, 255, .75); border-top: 1px solid rgba(255, 255, 255, .25); }

/* ---------- Backend ---------- */
body.admin { background: #f4f6f4; }
.admin-header { background: var(--ink); padding: 10px 0; }
.admin-header a { color: #fff; }
.admin-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.2rem; }
.admin-brand img { height: 36px; width: auto; }
.login-logo { display: block; margin: 0 auto 10px; }
.login-box { max-width: 400px; margin: 48px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--green-deep); }
.stat span { font-size: .8rem; color: var(--ink-mute); }

/* Sprungmarken nicht unter dem fixierten Kopfbereich verstecken */
[id] { scroll-margin-top: 96px; }

/* ---------- Slider Startseite ---------- */
.slider { background: var(--ink); }
.slider-verlauf { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(4,40,22,.85) 100%); }
.slider-text { padding-bottom: 44px; color: #fff; }
.slider-text h2 { margin: 10px 0 6px; font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.1; max-width: 820px; }
.slider-text h2 a, .slider-text h2 a:hover { color: #fff; text-decoration: none; }
.slider-text p { max-width: 680px; margin: 0 0 18px; color: rgba(255,255,255,.9); font-size: 1.05rem; }
.tag-hell { background: rgba(255,255,255,.92); color: var(--green-deep); }
.slider-pfeil { color: #fff; background: rgba(0,0,0,.25); border-radius: 50%; padding: 12px 14px; }
.slider-pfeil:hover { color: #fff; background: rgba(0,0,0,.45); }
.slider .uk-dotnav > * > * { border-color: rgba(255,255,255,.8); }
.slider .uk-dotnav > .uk-active > * { background: #fff; }
@media (max-width: 639px) { .slider-text p { display: none; } .slider-text { padding-bottom: 24px; } }

/* ---------- Backend: Bereiche ---------- */
.admin-nav { background: #fff; border-bottom: 1px solid var(--line); }
.admin-nav .uk-subnav { margin: 0; padding: 6px 0; flex-wrap: wrap; }
.admin-nav .uk-subnav > * > :first-child { padding: 8px 4px; color: var(--ink-soft); }
.admin-nav .uk-subnav > .uk-active > a { color: var(--green-deep); box-shadow: inset 0 -2px 0 var(--green); }
.admin-nav .uk-subnav > .uk-disabled > a { color: #b8c2bb; }
.admin-user { color: rgba(255, 255, 255, .7); font-size: .85rem; }
.admin-logout { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.admin-logout:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-kopf { gap: 12px; margin-bottom: 16px; }
.admin-kopf h1 { margin: 4px 0 0; font-size: 1.8rem; }
.admin-filter { margin-bottom: 8px; }
.admin-tabelle { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.admin-tabelle .uk-table th { text-transform: none; font-size: .8rem; color: var(--ink-mute); }
.admin-titel { font-weight: 600; color: var(--ink); }
.admin-thumb { width: 64px; height: 42px; object-fit: cover; border-radius: 0; display: block; }
.admin-thumb-leer { background: var(--green-tint); }
.label-grau { background: #8a958e; }
.admin-karte { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.admin-karte h3 { font-size: 1.05rem; margin: 0 0 12px; }
.admin-karte-fehler { border-color: var(--red); }
.admin-vorschau { max-height: 180px; border-radius: 0; }
.admin-text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.5; }
.admin .uk-form-label { font-weight: 600; font-size: .88rem; }
.uk-label-success { background: var(--green); }
.uk-label-warning { background: #c77d12; }
.uk-label-danger { background: var(--red); }
.admin-unter { font-size: .95rem; margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-unter:first-of-type { border-top: 0; padding-top: 0; margin-top: 4px; }
.admin-auswahl label { font-size: .88rem; padding: 3px 0; }
tr.admin-inaktiv td { opacity: .55; }

/* Backend: Termine, Plakate, Zeilen-Editor */
tr.admin-gruppe th { background: var(--green-tint); color: var(--green-deep); font-size: .85rem; text-transform: none; padding: 6px 12px; }
.admin-datum { width: 1%; }
.admin-plakat { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; color: var(--ink); height: 100%; box-sizing: border-box; }
.admin-plakat:hover { text-decoration: none; border-color: var(--green); }
.admin-plakat img, .admin-plakat-leer { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0; background: var(--green-tint); }
.admin-plakat-leer { display: flex; align-items: center; justify-content: center; color: var(--ink-mute); font-size: .8rem; }
.admin-plakat strong { font-size: .9rem; line-height: 1.25; }
.admin-plakat .uk-label { align-self: flex-start; }
.admin-vorschau-hoch { max-height: 320px; }
.admin-logo { max-width: 110px; max-height: 50px; object-fit: contain; display: block; }
.admin-zeile { display: grid; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.admin-zeile:last-child { border-bottom: 0; }
.admin-zeile .uk-form-label { font-size: .75rem; margin-bottom: 2px; }
.admin-zeile-knoepfe { display: flex; gap: 4px; padding-bottom: 6px; }
.admin-zeile-knoepfe a { color: var(--ink-mute); }
.admin-zeile-knoepfe a:hover { color: var(--green-deep); }
.admin-zeile-knoepfe a[data-zeile-weg]:hover { color: var(--red); }
.zeilen-zeit { grid-template-columns: 130px 100px 100px 1fr 1fr auto; }
.zeilen-person { grid-template-columns: 1fr 170px auto; }
.zeilen-gremium { grid-template-columns: 1fr 1fr auto; }
.zeilen-liga { grid-template-columns: 90px 1fr 1.6fr 1fr auto; }
.zeilen-paket { grid-template-columns: 1fr 90px 90px 110px auto; align-items: center; }
@media (max-width: 959px) {
    .zeilen-zeit, .zeilen-liga { grid-template-columns: 1fr 1fr; }
    .zeilen-person, .zeilen-gremium { grid-template-columns: 1fr 1fr; }
    .admin-zeile-knoepfe { grid-column: 1 / -1; justify-content: flex-end; }
}
.admin-chip { display: inline-block; font-size: .75rem; background: var(--green-tint); color: var(--green-deep); border-radius: 0; padding: 1px 6px; margin: 1px 2px 1px 0; }
.admin-nur-lesen { background: #f6f8f7; }
.admin-logo-vorschau { background: repeating-conic-gradient(#f1f3f2 0% 25%, #fff 0% 50%) 50% / 16px 16px; border: 1px solid var(--line); border-radius: 0; padding: 12px; display: inline-block; }
.admin-logo-vorschau img { max-height: 120px; max-width: 320px; }
body.admin { min-height: 100vh; }

/* Backend: Seiten und Bausteine */
.admin-baum td { vertical-align: middle; }
.admin-baum-icon { color: var(--ink-mute); margin-right: 4px; }
.admin-baum-oben { font-size: 1.05rem; }
.admin-baum .uk-label { font-size: .65rem; margin-left: 4px; }
.admin-icon-knopf { background: none; border: 0; padding: 2px; cursor: pointer; color: var(--ink-mute); }
.admin-icon-knopf:hover { color: var(--green-deep); }
.admin-bausteine { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.admin-baustein { border: 1px solid var(--line); border-radius: 0; background: #fbfcfb; }
.admin-baustein-kopf { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-soft); background: var(--green-tint); border-radius: 0; }
.admin-baustein-kopf .admin-zeile-knoepfe { padding: 0; }
.admin-baustein-inhalt { padding: 12px; }
.admin-baustein-bild { max-width: 160px; max-height: 110px; border-radius: 0; }
.admin-baustein-neu { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-top: 1px dashed var(--line); padding-top: 12px; }
.admin-baustein-neu .uk-button { text-transform: none; font-size: .8rem; padding: 0 10px; }
.admin-galerie { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.admin-galerie-bild { position: relative; }
.admin-galerie-bild img { width: 96px; height: 72px; object-fit: cover; border-radius: 0; display: block; }
.admin-galerie-bild a { position: absolute; top: 2px; right: 2px; background: rgba(255,255,255,.9); border-radius: 50%; color: var(--red); }
.admin-abschnitt { border-left: 3px solid var(--green-tint); padding: 6px 0 6px 10px; margin-bottom: 8px; }
[hidden] { display: none !important; }
@media (min-width: 960px) { .admin-klebt { position: sticky; top: 12px; z-index: 2; } }


/* Hallenbelegung */
.belegung-kopf { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.belegung-kopf .uk-subnav { margin: 0; }
.belegung-legende { display: flex; gap: 14px; font-size: .85rem; }
.belegung-art::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 0; margin-right: 6px; vertical-align: -1px; }
.belegung-art.is-handball::before { background: var(--green); }
.belegung-art.is-breitensport::before { background: #d9861c; }
.belegung-raster { display: grid; grid-template-columns: 52px repeat(var(--spalten), minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.belegung-zeitachse { position: relative; margin-top: 40px; height: var(--hoehe); border-right: 1px solid var(--line); }
.belegung-zeitachse span { position: absolute; right: 6px; transform: translateY(-50%); font-size: .72rem; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.belegung-tag { border-right: 1px solid var(--line); min-width: 0; }
.belegung-tag:last-child { border-right: 0; }
.belegung-tag-name { height: 40px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line); background: var(--green-tint); color: var(--green-deep); }
.belegung-tag-flaeche { position: relative; height: var(--hoehe); }
.belegung-linie { position: absolute; left: 0; right: 0; border-top: 1px dashed #e3e8e5; }
.belegung-eintrag { position: absolute; box-sizing: border-box; padding: 3px 6px; margin: 1px; border-radius: 0; overflow: hidden; font-size: .75rem; line-height: 1.25; color: #fff; border-left: 3px solid rgba(0,0,0,.2); }
.belegung-eintrag b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.belegung-eintrag span { display: block; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.belegung-eintrag:hover { color: #fff; text-decoration: none; filter: brightness(1.08); }
.belegung-eintrag.is-handball { background: var(--green); }
.belegung-eintrag.is-breitensport { background: #d9861c; }
.belegung-eintrag.is-offen { background-image: linear-gradient(to bottom, transparent 60%, rgba(255,255,255,.25)); }
.belegung-liste h3 { margin: 18px 0 4px; font-size: 1.05rem; }
.belegung-liste li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding-left: 10px; border-left: 3px solid var(--green); }
.belegung-liste li.is-breitensport { border-left-color: #d9861c; }
.belegung-zeit { font-variant-numeric: tabular-nums; min-width: 92px; color: var(--ink-soft); }
.belegung-liste small { color: var(--ink-mute); }

/* Öffentliche Formulare */
.hp-feld { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formular-karte { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-top: 24px; }
.formular-karte h2 { margin-top: 0; font-size: 1.4rem; }
.news-einreichen-hinweis { text-align: right; margin: -6px 0 12px; font-size: .9rem; }

/* Backend: Spiele und Vereine */
.admin-ergebnis { display: flex; gap: 30px; flex-wrap: wrap; }
.admin-ergebnis .uk-input { width: 60px; text-align: center; font-size: 1.1rem; }
.admin-vereinslogo { width: 36px; height: 36px; object-fit: contain; display: block; border-radius: 0; }
.admin-zuordnen { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.admin-zuordnen .uk-select { width: auto; max-width: 280px; }
.zeilen-alias { grid-template-columns: 1fr auto; padding: 4px 0; }
.match-hinweis { color: var(--red); }
.match-bericht { font-weight: 600; }
.admin-team { display: inline-flex; align-items: center; gap: 8px; }
.admin-team .admin-vereinslogo { width: 26px; height: 26px; flex: none; }
.admin-logo-fehlt { display: inline-flex; align-items: center; justify-content: center; background: #fdecea; color: var(--red); font-weight: 700; font-size: .8rem; border: 1px dashed var(--red); }
tr.admin-problem td { background: #fffaf0; }
.admin-problem-text { font-size: .75rem; color: #a15c00; margin-top: 2px; }
.admin-ligen summary { cursor: pointer; }
.admin-ligen .uk-table th { text-transform: none; font-size: .8rem; }
.admin-sammel { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
/* Kopfbereich: Logo/Name nie zusammenschieben, Menü bei knappem Platz enger */
.site-header .uk-navbar-left { flex: none; }
/* Volles Menü erst ab 1300 px, darunter der Menü-Knopf */
.nav-desktop { display: none !important; }
@media (min-width: 1300px) {
    .nav-desktop { display: flex !important; margin-left: 16px; }
    .nav-mobil-knopf { display: none !important; }
}
@media (min-width: 1300px) and (max-width: 1439px) { .main-nav > li > a { padding: 0 5px; font-size: .88rem; } }

/* ---------- Meilensteine: Zeitstrahl ----------
   Handy: Linie links, alle Karten rechts daneben.
   Ab 960 px: Linie mittig, Karten abwechselnd links/rechts, Jahreszahl gegenüber. */
.zs-einleitung { max-width: 760px; margin-bottom: 36px; color: var(--ink-soft); }
.zeitstrahl { --zs-linie: 3px; --zs-spalte: 34px; list-style: none; margin: 0; padding: 0 0 8px; position: relative; }
.zeitstrahl::before { content: ""; position: absolute; top: 6px; bottom: 26px; left: calc(var(--zs-spalte) / 2 - var(--zs-linie) / 2); width: var(--zs-linie); background: var(--green-soft); }

.zs-eintrag { position: relative; display: grid; grid-template-columns: var(--zs-spalte) minmax(0, 1fr); column-gap: 14px; margin: 0 0 22px; }
.zs-punkt { grid-column: 1; grid-row: 1; justify-self: center; margin-top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--green); box-sizing: border-box; position: relative; z-index: 1; }
.zs-gross .zs-punkt { width: 24px; height: 24px; margin-top: 13px; background: var(--green); border-color: var(--green); box-shadow: 0 0 0 5px var(--green-tint); }
.zs-jahr { display: none; }

.zs-karte { grid-column: 2; grid-row: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.zs-gross .zs-karte { border-top: 3px solid var(--green); }
.zs-bild { display: block; background: var(--green-tint); }
.zs-bild img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.zs-inhalt { padding: 14px 18px 16px; }
.zs-titel { font-size: 1.15rem; line-height: 1.25; margin: 0; }
.zs-jahr-klein { display: block; font-family: var(--font-head); font-weight: 700; color: var(--green); font-size: 1.05rem; letter-spacing: .03em; margin-bottom: 2px; }
.zs-gross .zs-jahr-klein { font-size: 1.4rem; }
.zs-text { color: var(--ink-soft); margin-top: 6px; }
.zs-text > :last-child { margin-bottom: 0; }
.zs-link { display: inline-block; margin-top: 8px; font-weight: 600; }

.zs-abschnitt { position: relative; z-index: 1; margin: 34px 0 20px; padding-left: calc(var(--zs-spalte) + 14px); }
.zs-abschnitt:first-child { margin-top: 0; }
.zs-abschnitt h2 { display: inline-block; margin: 0; padding: 4px 14px; background: var(--green); color: #fff; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.zs-abschnitt::before { content: ""; position: absolute; left: calc(var(--zs-spalte) / 2 - 7px); top: 50%; width: 14px; height: 3px; background: var(--green); }

.zs-ende { position: relative; padding-left: calc(var(--zs-spalte) + 14px); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--green-deep); }
.zs-ende::before { content: ""; position: absolute; left: calc(var(--zs-spalte) / 2 - 9px); top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--green-deep); }

@media (min-width: 960px) {
    .zeitstrahl { --zs-spalte: 64px; }
    .zeitstrahl::before { left: 50%; margin-left: calc(var(--zs-linie) / -2); }
    .zs-eintrag { grid-template-columns: minmax(0, 1fr) var(--zs-spalte) minmax(0, 1fr); column-gap: 0; margin-bottom: 8px; }
    .zs-punkt { grid-column: 2; }
    .zs-jahr { display: block; grid-row: 1; align-self: start; margin-top: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1.2; color: var(--green); letter-spacing: .02em; }
    .zs-gross .zs-jahr { font-size: 2.4rem; margin-top: 0; }
    .zs-jahr-klein { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .zs-links .zs-karte { grid-column: 1; }
    .zs-links .zs-jahr { grid-column: 3; padding-left: 18px; }
    .zs-rechts .zs-karte { grid-column: 3; }
    .zs-rechts .zs-jahr { grid-column: 1; padding-right: 18px; text-align: right; }
    /* kleiner Zeiger von der Karte zur Linie */
    .zs-karte { position: relative; overflow: visible; }
    .zs-bild { overflow: hidden; }
    .zs-links .zs-karte::after, .zs-rechts .zs-karte::after { content: ""; position: absolute; top: 20px; width: 10px; height: 10px; background: #fff; border: 1px solid var(--line); transform: rotate(45deg); }
    .zs-links .zs-karte::after { right: -6px; border-left: 0; border-bottom: 0; }
    .zs-rechts .zs-karte::after { left: -6px; border-right: 0; border-top: 0; }
    .zs-gross .zs-karte::after { top: 18px; }
    .zs-abschnitt { padding-left: 0; text-align: center; margin: 40px 0 28px; }
    .zs-abschnitt::before { display: none; }
    .zs-ende { padding-left: 0; padding-top: 30px; text-align: center; }
    .zs-ende::before { left: 50%; top: 0; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .zeitstrahl .zs-karte { animation: none !important; } }

/* Backend-Startseite: Projekt-To-dos */
.todo-liste { padding: 8px 20px; }
.todo-liste > li { border-bottom: 1px solid var(--line); padding: 10px 0; margin: 0; }
.todo-liste > li:last-child { border-bottom: 0; }
.todo-liste .uk-accordion-title { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.todo-liste .uk-label { margin-left: 6px; vertical-align: 2px; }
.todo-liste .uk-accordion-content { margin-top: 8px; }
.todo-liste .uk-accordion-content .uk-list > li { margin-top: 4px; }
.todo-fortschritt { height: 6px; margin: 0 0 10px; }
.todo-fortschritt::-webkit-progress-value { background-color: var(--green); }
.todo-fortschritt::-moz-progress-bar { background-color: var(--green); }
.todo-punkte > li { margin-top: 2px !important; }
.todo-punkte form { margin: 0; }
.todo-punkte label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 3px 0; }
.todo-punkte .uk-checkbox { flex: none; margin-top: 4px; }
.todo-erledigt span { color: var(--ink-mute); text-decoration: line-through; }
.todo-speichert { opacity: .5; }
