/* Grundlayout der öffentlichen Seite (nach Entwurf aus Claude Design).
   Die Markenfarben (--p, --pd, --tint, --a, --bg, --hd, --hi) setzt der Seitenrahmen je Marke. */

@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-hyperlegible-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/atkinson-hyperlegible-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-hyperlegible-latin-400-italic.woff2) format('woff2'); }

:root {
	--text: #1c2424;
	--text-2: #3d4747;
	--text-3: #5b6464;
	--rahmen: #e2ded5;
	--rahmen-hell: #ece8df;
	--breite: 1160px;
	--rand: clamp(16px, 4vw, 32px);
	--einzug: 46px; /* Platz links für die Raute */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
	font-size: 18px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--p); }
a:hover { color: var(--a); }
/* Verlinkte Spielernamen: durch die Farbe erkennbar, Unterstrich nur beim Überfahren */
a.spieler-link { text-decoration: none; text-underline-offset: 3px; }
a.spieler-link:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.innen { width: 100%; max-width: var(--breite); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }

.sprungmarke { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.sprungmarke:focus { left: 8px; top: 8px; }

/* ---------- Kopf ---------- */

.kopf { background: var(--hd); }
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }

.marke { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; min-height: 44px; padding-left: 20px; text-decoration: none; }
.marke-kurz { font-weight: 700; font-size: 26px; letter-spacing: -0.5px; color: #1c2424; }
.marke-name { font-weight: 700; font-size: 20px; color: var(--hi); }

.kopf-links { display: flex; align-items: center; gap: 22px; font-size: 16px; }
.kopf-links a { color: var(--hi); font-weight: 700; text-decoration: none; }
.kopf-links a:hover { text-decoration: underline; }
.knopf-login { display: inline-flex; align-items: center; background: var(--pd); color: #fff; border-radius: 8px; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.kopf-links .knopf-login { color: #fff; }
.knopf-login:hover { color: #fff; filter: brightness(1.2); text-decoration: none; }

.menue-knopf { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 12px 16px; border-radius: 8px; background: var(--tint); color: var(--pd); font-size: 17px; font-weight: 700; text-decoration: none; }
.menue-knopf:hover { color: var(--pd); }
.burger { display: flex; flex-direction: column; gap: 4px; }
.burger span { width: 18px; height: 2px; background: currentColor; }

/* Gruppen-Reiter */
.gruppen { display: flex; gap: 4px; padding-left: calc(var(--rand) + var(--einzug)); }
.gruppen a { display: block; padding: 12px 20px; border-radius: 8px 8px 0 0; color: var(--hi); font-size: 18px; font-weight: 700; text-decoration: none; }
.gruppen a:hover { background: color-mix(in srgb, var(--tint) 45%, transparent); color: var(--pd); }
.gruppen a[aria-expanded="true"] { background: var(--tint); color: var(--pd); }

/* Rote Linie mit Raute (Link zur Startseite) */
.linie { position: relative; z-index: 5; height: 3px; background: var(--a); }
.linie .innen { position: relative; height: 3px; }
/* Mitte der Raute steht über der linken Kante des Inhalts; auf schmalen Bildschirmen nicht über den Rand hinaus */
.raute { position: absolute; top: -19px; left: max(0px, calc(var(--rand) - 20px)); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.raute::before { content: ''; display: block; width: 29px; height: 29px; border-radius: 3px; background: var(--a); transform: rotate(45deg); }

/* Unterpunkte der gewählten Gruppe */
.unterleiste { background: var(--tint); }
.unterleiste ul { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; padding-bottom: 10px; padding-left: calc(var(--rand) + var(--einzug) + 6px); }
.unterleiste ul[hidden] { display: none; }
.unterleiste li.rechts { margin-left: auto; }
.unterleiste a { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 6px; color: var(--pd); font-size: 16px; font-weight: 700; text-decoration: none; }
.unterleiste a:hover { background: #fff; color: var(--pd); }
.unterleiste a.ist-aktiv { box-shadow: inset 0 0 0 2px var(--p); }
.unterleiste a[aria-current="page"] { background: var(--p); color: #fff; }
.zusatz { font-size: 13px; font-weight: 400; opacity: .75; }

/* Handy-Menü */
.menue-handy { display: none; flex-direction: column; gap: 18px; padding: 8px 16px 20px; background: #fff; border-bottom: 1px solid var(--rahmen); }
.handy-gruppe h2 { margin: 0; padding: 8px 4px; color: var(--text-3); font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.handy-gruppe a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 12px; border-radius: 8px; color: var(--pd); font-size: 18px; font-weight: 700; text-decoration: none; }
.handy-gruppe a:hover { background: var(--tint); }
.handy-gruppe a.ist-aktiv { box-shadow: inset 0 0 0 2px var(--p); }
.handy-gruppe a[aria-current="page"] { background: var(--p); color: #fff; }
.handy-gruppe .zusatz { font-size: 14px; }
.handy-kopf { display: flex; gap: 12px; padding: 12px 4px 0; }
.handy-kopf a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 8px; border-radius: 8px; font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; }
.handy-extern { border: 2px solid var(--pd); background: #fff; color: var(--pd); }
.handy-extern:hover { background: var(--tint); color: var(--pd); }

@media (max-width: 819px) {
	.kopf-links, .gruppen, .unterleiste { display: none; }
	.menue-knopf { display: flex; }
	.menue-handy.offen, .menue-handy:target { display: flex; }
}

/* ---------- Inhalt ---------- */

.inhalt { flex: 1; width: 100%; max-width: var(--breite); margin: 0 auto; padding: clamp(20px, 4vw, 40px) var(--rand) 56px; }

.krumen ol { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; color: var(--text-3); font-size: 15px; }
.krumen li + li::before { content: '›'; margin-right: 8px; }

h1 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.3px; }
.dachzeile { margin: 0 0 8px; color: var(--a); font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* Seitenkopf mit Titel links und Aktionen/Legende rechts */
.seitenkopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.seitenkopf h1 { margin-bottom: 8px; }
.einleitung { margin: 0 0 20px; max-width: 680px; color: var(--text-2); font-size: 18px; }
.nachsatz { margin: 16px 0 0; max-width: 680px; color: var(--text-2); }
.seitenkopf .einleitung { margin-bottom: 0; }
.vermerk { margin: 10px 0 0; color: var(--a); font-weight: 700; }
.hinweis { max-width: 640px; padding: 20px 24px; border: 1px solid var(--rahmen); border-radius: 12px; background: #fff; color: var(--text-2); }
h2.abschnitt { margin: 0 0 14px; font-size: 24px; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border: 2px solid var(--p); border-radius: 8px; background: var(--p); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.knopf:hover { background: var(--pd); border-color: var(--pd); color: #fff; }
.knopf-rand { background: #fff; color: var(--p); }
.knopf-rand:hover { background: var(--tint); border-color: var(--p); color: var(--pd); }
.knopf-klein { min-height: 38px; padding: 7px 14px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; }
.mehr { font-weight: 700; white-space: nowrap; text-decoration: none; }
.mehr:hover { text-decoration: underline; }

/* Serientyp-Kennzeichen */
.typ { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 15px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.typ-1 { background: #dcebe3; color: #1d5a3c; }
.typ-5 { background: #fbe6c8; color: #7a4a07; }
.typ-9 { background: #e8e6e1; color: #4a4740; }
.typ-legende { display: flex; flex-wrap: wrap; gap: 8px; }

/* Tabellen: breite Tabellen scrollen in ihrem eigenen Kasten */
.tabelle-kasten { position: relative; overflow-x: auto; border: 1px solid var(--rahmen); border-radius: 12px; background: #fff; }
.tabelle-schmal { max-width: 760px; }
.zentriert { margin-left: auto; margin-right: auto; }
.tabelle { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 17px; font-variant-numeric: tabular-nums; }
.tabelle th { padding: 14px 16px; background: var(--tint); font-size: 16px; text-align: left; white-space: nowrap; }
.tabelle td { padding: 12px 16px; border-top: 1px solid var(--rahmen-hell); background: #fff; white-space: nowrap; }
.tabelle tbody tr:nth-child(even) td { background: #faf9f6; }
.tabelle .rechts { text-align: right; }
.tabelle th a.sortier { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.tabelle th a.sortier:hover { color: var(--pd); text-decoration: underline; }
.sortier-pfeil { color: var(--text-3); font-size: 12px; }
.sortier-aktiv .sortier-pfeil { color: var(--pd); }
.tabelle .fett, a.fett { font-weight: 700; }
.negativ { color: var(--a); }
.wisch-hinweis { display: none; margin: 0 0 8px; color: var(--text-3); font-size: 15px; }
/* Spalten, die auf dem Handy entfallen */
@media (max-width: 600px) {
	.tabelle .nicht-handy { display: none; }
}

/* Ligatabelle: 11 Spalten, daher engere Abstände; Pos und Name bleiben beim seitlichen Scrollen stehen */
.tabelle-liga { font-size: 16px; }
.tabelle-liga th { padding: 12px 10px; font-size: 15px; }
.tabelle-liga td { padding: 10px 10px; }
.tabelle-liga th:last-child, .tabelle-liga td:last-child { padding-right: 14px; }
.tabelle-liga .fest-1 { position: sticky; left: 0; z-index: 1; width: 48px; padding-left: 12px; padding-right: 8px; }
.tabelle-liga .fest-2 { position: sticky; left: 48px; z-index: 1; padding-left: 8px; box-shadow: inset -1px 0 0 var(--rahmen); }
.tabelle-liga th.fest-1, .tabelle-liga th.fest-2 { z-index: 2; }
/* Ganze Namenszelle ist der Link zum Spielerverlauf */
.tabelle-liga td.namenszelle { padding: 0; }
.tabelle-liga .name { display: block; padding: 10px 10px 10px 8px; font-weight: 700; text-underline-offset: 3px; }
.tabelle-liga .name:hover { background: var(--tint); color: var(--pd); }
.tabelle-liga .name:focus-visible { outline-offset: -3px; }

@media (max-width: 819px) {
	.tabelle-liga .name { max-width: 8.3em; overflow: hidden; text-overflow: ellipsis; font-size: 15px; letter-spacing: -0.2px; }
}

/* Reiter (Liga 1–3) */
.reiter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.reiter a { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; border: 2px solid var(--p); border-radius: 8px; background: #fff; color: var(--p); font-size: 18px; font-weight: 700; text-decoration: none; }
.reiter a:hover { background: var(--tint); color: var(--pd); }
.reiter a[aria-current="page"] { background: var(--p); color: #fff; }

/* Seriendetails: zwei Karten mit den Serienwerten */
.serienkopf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; max-width: 760px; margin: 0 auto 28px; }
.werte { margin: 0; padding: 14px 20px; border: 1px solid var(--rahmen); border-radius: 12px; background: #fff; }
.werte div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.werte div + div { border-top: 1px solid var(--rahmen-hell); }
.werte dt { color: var(--text-3); }
.werte dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* Seriendetails: je Tisch senkrechte Ergebnisliste, Spieler als Spalten */
.tische { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.tabelle-tisch th[scope="row"] { width: 1%; padding-right: 12px; background: var(--tint); color: var(--pd); font-size: 16px; text-align: left; }
.tabelle-tisch tbody th[scope="row"] { border-top: 1px solid #fff; }
.tabelle-tisch td { text-align: center; }
.tabelle-tisch thead th { font-size: 17px; }
.tabelle-tisch .tischname { text-align: center; }
.tabelle-tisch .gepasste { color: var(--text-3); font-weight: 400; text-align: right; }
.tabelle-tisch .gepasste b { color: var(--text); }
.tabelle-tisch .spielerzeile td { font-weight: 700; }
.tabelle-tisch .punktezeile td { font-weight: 700; }
.tabelle-tisch tbody tr:nth-child(even) td { background: #fff; }

@media (max-width: 819px) {
	.wisch-hinweis { display: block; }
}

/* Formulare */
div.einleitung p { margin: 0 0 10px; }
.formular { max-width: 760px; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--rahmen); border-radius: 12px; background: #fff; }
.feldreihe { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.feldreihe-breit-schmal { grid-template-columns: 3fr 1fr; }
.feldreihe-schmal-breit { grid-template-columns: 1fr 3fr; }
.feldreihe-einzeln { grid-template-columns: 1fr; }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld label { font-size: 16px; font-weight: 700; }
.feld input, .feld select, .feld textarea, .suchleiste input, .suchleiste select { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid #cfc9bc; border-radius: 8px; background: #fff; color: var(--text); font: inherit; }
.feld textarea { min-height: 140px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus, .suchleiste input:focus, .suchleiste select:focus { border-color: var(--p); outline: none; box-shadow: 0 0 0 3px var(--tint); }
.feld-hinweis { color: var(--text-3); font-size: 14px; font-weight: 400; }
.formular-titel { margin: 0 0 16px; font-size: 22px; }
.erfolgskasten { margin-bottom: 20px; padding: 14px 18px; border: 2px solid #2f7d4f; border-radius: 8px; background: #eaf6ee; color: #1d5a3c; font-weight: 700; }
h2.abschnitt-abstand { margin-top: 36px; }
td.umbrechen { white-space: normal; min-width: 180px; }

/* Suchleiste (Mitgliederliste) */
.suchleiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 760px; margin-bottom: 14px; }
.suchleiste label { font-weight: 700; }
.suchleiste select { width: auto; }
.suchleiste input { flex: 1; min-width: 160px; width: auto; }
.suchleiste .feld-hinweis { flex-basis: 100%; margin: 0; }
/* Blättern unter langen Listen */
.blaettern { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.blaettern [aria-disabled="true"] { opacity: .4; pointer-events: none; }
.blaettern-stand { color: var(--text-2); }

/* Pinnwand: Zettel in der gewählten Farbe (abgeschwächt) */
.pinnwand { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.zettel { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--rahmen); border-top: 6px solid var(--zettel); border-radius: 10px; background: color-mix(in srgb, var(--zettel) 22%, #fff); }
.zettel header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.zettel h2, .zettel h3 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.zettel > .spieler-link { align-self: flex-start; }
.zettel header span { color: var(--text-3); font-size: 14px; }
.zettel p { flex: 1; margin: 0; overflow-wrap: anywhere; }
.zettel form { align-self: flex-end; }

/* Ergebnis melden: je Spieler eine Zeile; auf schmalen Bildschirmen je Spieler ein Block */
.formular-ergebnis { max-width: 860px; }
.ergebnis-tabelle { margin-bottom: 18px; }
.ergebnis-kopf, .ergebnis-zeile { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 12px; }
.ergebnis-kopf { padding: 0 2px 6px; font-weight: 700; font-size: 16px; }
.ergebnis-zeile { margin-bottom: 12px; }
/* Suchauswahl (site.js): Eingabefeld mit Trefferliste */
.suchauswahl { position: relative; }
.suchauswahl::after { content: ''; position: absolute; top: 50%; right: 14px; margin-top: -3px; border: 6px solid transparent; border-top-color: var(--text-3); pointer-events: none; }
.feld .suchauswahl input { padding-right: 36px; }
.suchauswahl-liste { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 264px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; border: 2px solid var(--p); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.suchauswahl-liste li { padding: 10px 12px; border-radius: 6px; cursor: pointer; overflow-wrap: anywhere; }
.suchauswahl-liste li:hover, .suchauswahl-liste li[aria-selected="true"] { background: var(--tint); color: var(--pd); }
.suchauswahl-liste b { text-decoration: underline; }
.suchauswahl-liste .suchauswahl-leer { color: var(--text-3); cursor: default; }
.suchauswahl-liste .suchauswahl-leer:hover { background: none; color: var(--text-3); }
.ergebnis-zeile label, .unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Spielername statt Auswahlfeld (Spielleitung, Tisch bearbeiten) */
.ergebnis-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 600px) {
	.ergebnis-kopf { display: none; }
	.ergebnis-zeile { grid-template-columns: 1fr 1fr 1fr; padding: 12px; border: 1px solid var(--rahmen); border-radius: 10px; }
	.ergebnis-zeile .feld:first-child, .ergebnis-zeile .ergebnis-name { grid-column: 1 / -1; }
	.ergebnis-name { min-height: 0; }
	.ergebnis-zeile label { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 14px; }
}
.feld .feld-kurz { max-width: 120px; }
.formular-schmal { max-width: 440px; }
.feld-block { margin-bottom: 18px; }
.pflichthinweis { margin: 0 0 18px; color: var(--text-3); font-size: 15px; }
.formular button.knopf { min-height: 52px; padding: 12px 26px; font-family: inherit; font-size: 18px; cursor: pointer; }
.fehlerkasten { margin-bottom: 20px; padding: 14px 18px; border: 2px solid var(--a); border-radius: 8px; background: #fdf0f1; color: #7a0a1c; }
.fehlerkasten ul { padding-left: 1.2em; list-style: disc; }
/* vorübergehend: Ansicht als Mitglied (app/ansicht.php) */
.ansicht-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; padding: 12px 16px; border: 2px dashed var(--a); border-radius: 8px; background: #fff8e1; }
.ansicht-leiste span { flex: 1; min-width: 200px; }
.ansicht-leiste button { font-family: inherit; cursor: pointer; }
button.knopf { font-family: inherit; line-height: inherit; cursor: pointer; }
.feldreihe-drei { grid-template-columns: repeat(3, 1fr); }

/* Spielleitung: Serienaktionen, Status, Tischliste */
.serien-aktionen { justify-content: center; margin-bottom: 8px; }
.serien-aktionen + .feld-hinweis { max-width: 760px; margin: 0 auto; text-align: center; }
.status-ok { color: #2f7d4f; font-weight: 700; }
.status-gestoppt { color: var(--a); font-weight: 700; }
.tabelle .werte-klein { display: block; color: var(--text-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.zellen-knoepfe { display: flex; gap: 8px; }

@media (max-width: 600px) {
	.feldreihe { grid-template-columns: 1fr; }
	.feldreihe-breit-schmal { grid-template-columns: 2fr 1fr; }
	.feldreihe-schmal-breit { grid-template-columns: 1fr 2fr; }
}

/* Fließtext-Seiten (Impressum, Datenschutz …) */
.textblock { max-width: 760px; padding: clamp(20px, 4vw, 36px); border: 1px solid var(--rahmen); border-radius: 12px; background: #fff; }
.textblock > :first-child { margin-top: 0; }
.textblock > :last-child { margin-bottom: 0; }
.textblock h2 { margin: 28px 0 8px; font-size: 21px; line-height: 1.3; }
.textblock p { margin: 0 0 14px; }
.textblock ul { margin: 0 0 14px; padding-left: 1.4em; list-style: disc; }
.textblock li { margin-bottom: 4px; }

/* Dokumentliste (PDFs) */
.dokumente { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; max-width: 900px; }
.dokumente a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding: 16px 20px; border: 1px solid var(--rahmen); border-radius: 12px; background: #fff; color: var(--pd); text-decoration: none; }
.dokumente a:hover { border-color: var(--p); box-shadow: inset 0 0 0 1px var(--p); color: var(--pd); }
/* Karten einer Reihe gleich hoch: die Karte füllt den Rasterplatz aus */
.dokumente li { display: flex; min-width: 0; }
.dokumente li > a { flex: 1; }
/* Lange Dateinamen ohne Leerzeichen dürfen umbrechen, damit die Kennzeichnung in der Karte bleibt */
.dokument-titel { min-width: 0; font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.dokument-art { flex: none; padding: 4px 10px; border-radius: 20px; background: var(--tint); color: var(--pd); font-size: 14px; font-weight: 700; }

/* News-Seite */
.nachrichten { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.nachricht { padding: 18px 22px; border: 1px solid var(--rahmen); border-radius: 12px; background: #fff; scroll-margin-top: 16px; }
.nachricht:target { border-color: var(--p); box-shadow: inset 0 0 0 1px var(--p); }
.nachricht-datum { margin: 0 0 4px; color: var(--text-3); font-size: 15px; }
.nachricht h2 { margin: 0; font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; }
.nachricht h2 a { color: var(--pd); text-underline-offset: 3px; }
.nachricht h2 .dokument-art { margin-left: 6px; font-size: 13px; vertical-align: 2px; }
.nachricht-text { margin: 10px 0 0; color: var(--text-2); }

/* Startseite */
.start-kopf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 4vw, 40px); align-items: center; margin-bottom: 40px; }
.start-titel { margin: 0 0 4px; font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.5px; }
.start-gruss { margin: 0 0 18px; color: var(--pd); font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
.start-einleitung { max-width: 520px; margin-bottom: 24px; color: var(--text-2); font-size: 19px; line-height: 1.55; }
.start-einleitung p { margin: 0 0 10px; }
.start-bild img { display: block; width: 100%; max-width: 410px; height: auto; margin: 0 auto; filter: drop-shadow(rgba(0, 0, 0, 0.18) 0px 6px 14px);}
.knopf-gross { min-height: 52px; padding: 12px 22px; font-size: 18px; }

/* Startseite: Kästen (Nächste Spieltermine, Aktuelles, Letzte Ergebnisse) */
.start-kaesten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.kasten { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--rahmen); border-radius: 12px; background: #fff; }
.kasten h2 { margin: 0 0 8px; font-size: 22px; }
.kasten-liste li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rahmen-hell); }
.kasten-liste li:has(> .kasten-link) { padding: 0; }
.kasten-link { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; color: var(--text); text-decoration: none; }
.kasten-link:hover { color: var(--text); }
.kasten-link:hover .mehr { text-decoration: underline; }
.kasten-eintrag { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
/* Links der Eintrag (lange Wörter brechen um), rechts ggf. Kennzeichen */
.kasten-eintrag b { font-size: 18px; overflow-wrap: anywhere; }
.kasten-eintrag span { color: var(--text-3); font-size: 15px; }
.kasten-leer { margin: 0; padding: 12px 0; border-top: 1px solid var(--rahmen-hell); color: var(--text-3); }
.kasten-link .dokument-art, .kasten-liste .typ { flex: none; }
.kasten-link:hover b { text-decoration: underline; text-underline-offset: 3px; }
/* Kleine Tabelle im Kasten (Liga 1 – Platz 1 bis 10) */
.kasten-tabelle { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.kasten-tabelle th { padding: 2px 6px 5px; color: var(--text-3); font-size: 13px; text-align: left; }
.kasten-tabelle td { padding: 4px 6px; border-top: 1px solid var(--rahmen-hell); }
.kasten-tabelle .rechts { text-align: right; }
.kasten-tabelle .fett { font-weight: 700; }
.kasten-tabelle td a { font-weight: 700; overflow-wrap: anywhere; }
.kasten-mehr { margin-top: auto; padding-top: 10px; font-size: 17px; font-weight: 700; }

.platzhalter { max-width: 640px; padding: 28px; border: 1px dashed #cfc9bc; border-radius: 12px; background: #fff; color: var(--text-2); }

/* ---------- Fuß ---------- */

.fuss { background: var(--pd); color: #fff; }
.fuss-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-top: 28px; padding-bottom: 28px; font-size: 16px; }
.fuss-marke { display: flex; align-items: center; gap: 12px; }
.raute-klein { width: 14px; height: 14px; border-radius: 2px; background: var(--a); transform: rotate(45deg); }
.fuss-links { display: flex; flex-wrap: wrap; gap: 22px; }
.fuss a { color: #fff; }
.fuss a:hover { color: #fff; text-decoration-thickness: 2px; }
