/* DSL – Demokratische Schweizer Liga · Saison 2027 */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  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;
}

:root {
  --asphalt: #1f2329;
  --asphalt-2: #2a2f36;
  --asphalt-line: #414851;
  --concrete: #edeff1;
  --paper: #ffffff;
  --ink: #16191d;
  --muted: #59626d;
  --line: #d3d8dd;
  --red: #d4202a;
  --red-dark: #a81720;
  --yellow: #f2b705;
  --green: #18794a;
  --paint: #f4f5f6;
  --wrap: 72rem;
  --gap: clamp(1rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--concrete);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-stretch: 68%; font-weight: 800; line-height: 1.02; margin: 0 0 0.6em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; font-stretch: 80%; font-weight: 700; line-height: 1.15; margin-bottom: 0.3em; }
p { margin: 0 0 1em; }
small { font-size: 0.85em; }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: 0.6rem 1rem; z-index: 10; font-weight: 700; }
.skip:focus { left: 0; }
.muted { color: var(--muted); }
.fine { font-size: 0.9rem; color: var(--muted); max-width: 46rem; }
.nowrap { white-space: nowrap; }
.lead { font-size: 1.2rem; max-width: 44rem; }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.link:hover { color: var(--red-dark); }

/* ---------- Kopf ---------- */
.site-header { background: var(--asphalt); color: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; min-width: 0; }
.brand-logo { height: 2.75rem; width: auto; display: block; }
.brand-mark { font-stretch: 62%; font-weight: 900; font-size: 1.9rem; line-height: 1; background: var(--red); color: #fff; padding: 0.28rem 0.55rem 0.2rem; letter-spacing: 0.02em; }
.brand-text { font-stretch: 80%; font-weight: 700; font-size: 1.02rem; line-height: 1.15; }
.brand-text small { display: block; font-weight: 400; font-stretch: 100%; color: #b9c0c8; font-size: 0.82rem; }
.lang { display: flex; gap: 0.15rem; flex-shrink: 0; }
.lang a { text-decoration: none; font-weight: 600; font-size: 0.85rem; padding: 0.3rem 0.5rem; color: #b9c0c8; border: 1px solid transparent; }
.lang a:hover { color: #fff; }
.lang a[aria-current] { color: #fff; border-color: var(--asphalt-line); background: var(--asphalt-2); }
.main-nav { border-top: 1px solid var(--asphalt-line); background: var(--asphalt-2); }
.nav-row { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.nav-row::-webkit-scrollbar { display: none; }
.nav-row a { flex-shrink: 0; text-decoration: none; font-stretch: 88%; font-weight: 600; padding: 0.8rem 0.9rem 0.7rem; border-bottom: 3px solid transparent; color: #dfe3e7; }
.nav-row a:first-child { padding-left: 0; }
.nav-row a:hover { color: #fff; border-bottom-color: var(--asphalt-line); }
.nav-row a[aria-current] { color: #fff; border-bottom-color: var(--red); }

/* ---------- Hero mit Startaufstellung ---------- */
.hero { background: var(--asphalt); color: #fff; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero h1 { font-size: clamp(3rem, 8.4vw, 6.4rem); font-stretch: 62%; font-weight: 900; line-height: 0.9; margin-bottom: 0.25em; }
.hero-season { font-stretch: 62%; font-weight: 300; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1; margin-bottom: 0.9em; color: #cfd5db; }
.hero-text { font-size: 1.2rem; max-width: 34rem; color: #e6e9ec; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }

.btn { display: inline-block; font: inherit; font-stretch: 88%; font-weight: 700; text-decoration: none; padding: 0.8rem 1.35rem; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--asphalt-2); }
.btn-small { padding: 0.4rem 0.75rem; font-size: 0.9rem; }
.btn-line { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

.gridbox-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; margin-bottom: 1rem; }
.gridbox-head h2 { font-size: 1.35rem; font-stretch: 80%; font-weight: 700; margin: 0; }
.gridbox-head p { margin: 0; color: #cfd5db; }
.startgrid { list-style: none; margin: 0; padding: 0 0 1.6rem; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.85rem 0.6rem; }
.slot { position: relative; aspect-ratio: 5 / 3; display: flex; align-items: flex-end; justify-content: center; padding: 0 0.3rem; }
.slot:nth-child(even) { transform: translateY(42%); }
/* Aufgemalte Startbox: Linie vorn, kurze Linien seitlich */
.slot::before { content: ""; position: absolute; inset: 0 0 45% 0; border: 3px solid var(--asphalt-line); border-bottom: 0; }
.slot span { position: relative; width: 100%; text-align: center; font-stretch: 62%; font-weight: 800; font-size: clamp(0.95rem, 2vw, 1.3rem); line-height: 1; padding: 0.32em 0 0.22em; font-variant-numeric: tabular-nums; }
.slot-free span { visibility: hidden; }
.slot-approved::before, .slot-pending::before { border-color: var(--paint); }
.slot-approved span { background: var(--paint); color: var(--ink); }
.slot-pending span { color: var(--yellow); box-shadow: inset 0 0 0 2px var(--yellow); }
.gridbox-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; align-items: center; margin: 1.5rem 0 0; font-size: 0.9rem; color: #cfd5db; }
.gridbox-legend a { margin-left: auto; color: #fff; font-weight: 600; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.key::before { content: ""; display: inline-block; width: 1.1rem; height: 0.7rem; margin-right: 0.4rem; vertical-align: -0.02rem; }
.key-approved::before { background: var(--paint); }
.key-pending::before { box-shadow: inset 0 0 0 2px var(--yellow); }
.key-free::before { box-shadow: inset 0 0 0 2px var(--asphalt-line); }

/* ---------- Nächstes Rennen ---------- */
.nextrace { background: var(--red); color: #fff; }
.nextrace-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.nextrace p { margin: 0; }
.nextrace-label { font-weight: 600; }
.nextrace-track { font-stretch: 62%; font-weight: 800; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1; }
.nextrace-date { margin-top: 0.3rem; }
.countdown { display: flex; gap: 1.5rem; margin: 0; }
.countdown div { text-align: center; min-width: 3.2rem; }
.countdown dd { margin: 0; font-stretch: 62%; font-weight: 800; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown dt { font-size: 0.85rem; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(2.25rem, 6vw, 4rem) 0; }
.section-alt { background: var(--paper); }
.page-head { background: var(--asphalt); color: #fff; padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(1.5rem, 4vw, 2.25rem); }
.page-head h1 { font-stretch: 62%; font-weight: 900; margin-bottom: 0.3em; }
.page-head .lead { color: #e6e9ec; margin-bottom: 0; }
.page-head .window { font-weight: 600; padding-left: 0.9rem; border-left: 5px solid var(--asphalt-line); }
.page-head .window-open { border-left-color: #3fd08a; }
.page-head .window-closed { border-left-color: var(--yellow); }

/* Rennkalender */
.calendar { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.cal-row { display: grid; grid-template-columns: 3.5rem 7.5rem minmax(0, 1fr) auto; gap: 0 1rem; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.cal-round { font-stretch: 62%; font-weight: 800; font-size: 2.2rem; line-height: 1; }
.cal-date { font-variant-numeric: tabular-nums; font-weight: 600; }
.cal-track { font-stretch: 75%; font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
.cal-track small { display: block; font-stretch: 100%; font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-top: 0.15rem; }
.cal-state { font-size: 0.9rem; font-weight: 600; text-align: right; }
.cal-done { color: var(--muted); }
.cal-done .cal-track { font-weight: 500; }
.cal-next .cal-round { color: var(--red); }
.cal-next .cal-state { background: var(--red); color: #fff; padding: 0.2rem 0.6rem; }

/* Rennabend */
.evening { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.evening li { padding: 1.1rem 1.5rem 0.4rem 0; }
.evening li + li { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.evening time { display: block; font-stretch: 62%; font-weight: 800; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.evening h3 { margin-top: 0.5rem; }
.evening p { color: var(--muted); margin: 0; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 2.5rem 0 0; }
.facts dt { font-size: 0.9rem; color: var(--muted); }
.facts dd { margin: 0.15rem 0 0; font-stretch: 85%; font-weight: 700; font-size: 1.15rem; line-height: 1.25; }

/* Abstimmung */
.vote { background: var(--asphalt); color: #fff; }
.vote-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--gap) clamp(2rem, 6vw, 5rem); align-items: start; }
.vote h2 { font-stretch: 62%; font-weight: 900; font-size: clamp(2.6rem, 6.5vw, 4.5rem); line-height: 0.92; margin: 0; }
.vote p { font-size: 1.15rem; max-width: 40rem; }
.vote .fine { color: #b9c0c8; font-size: 0.95rem; }

/* Sponsor und Veranstalter */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); }
.partner h2 { font-size: 1.1rem; font-stretch: 88%; font-weight: 600; color: var(--muted); margin-bottom: 1rem; }
.partner-logo { display: block; text-decoration: none; margin-bottom: 1rem; }
.partner-logo img { max-height: 5.5rem; width: auto; display: block; }
.wordmark { font-stretch: 62%; font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.3rem); line-height: 0.95; display: block; }
.partner-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ---------- Tabellen ---------- */
.table-scroll { overflow-x: auto; margin: 0 0 1rem; }
.table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 1rem; }
.table th { text-align: left; font-size: 0.88rem; font-weight: 600; color: var(--muted); padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--ink); white-space: nowrap; vertical-align: bottom; }
.table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .col-plate { width: 4.5rem; }
.table-compact { font-size: 0.95rem; }
.table-compact td { padding: 0.45rem 0.75rem; vertical-align: top; }
.section-alt .table { background: transparent; }
.table-meta { color: var(--muted); margin-bottom: 0.6rem; }
.table small.team { display: block; color: var(--muted); font-size: 0.85rem; }
.table .rank { font-stretch: 62%; font-weight: 800; font-size: 1.5rem; line-height: 1; }
.table .col-final { font-weight: 800; background: #f6f1e4; }
.table th.col-final { color: var(--ink); }
.table .dropped { text-decoration: line-through; color: var(--muted); }
.rstatus { font-size: 0.78rem; font-weight: 700; color: var(--red-dark); text-decoration: none; }
.mark { font-size: 0.72rem; font-weight: 700; text-decoration: none; background: var(--ink); color: #fff; padding: 0.05rem 0.3rem; }

.plate { display: inline-block; min-width: 3.1rem; text-align: center; font-stretch: 62%; font-weight: 800; font-size: 1.3rem; line-height: 1; padding: 0.3rem 0.4rem 0.2rem; background: var(--ink); color: #fff; font-variant-numeric: tabular-nums; }
.plate-pending, .plate-waitlist { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.plate-none { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); }

.badge { display: inline-block; font-size: 0.85rem; font-weight: 700; padding: 0.15rem 0.55rem; white-space: nowrap; border-left: 5px solid var(--muted); background: #e8ebee; }
.badge-approved, .badge-p-decided { border-left-color: var(--green); background: #dff1e7; color: #0f5131; }
.badge-pending, .badge-p-new, .badge-p-review { border-left-color: var(--yellow); background: #fdf1cc; color: #5c4500; }
.badge-waitlist { border-left-color: var(--muted); }
.badge-rejected, .badge-p-rejected, .badge-withdrawn { border-left-color: var(--red); background: #fbe1e2; color: #7d1118; }

.consequence { display: block; font-size: 0.92rem; line-height: 1.35; padding: 0.1rem 0; }
.consequence em { font-style: normal; font-weight: 700; margin-left: 0.3rem; }
.consequence.is-open em { color: var(--red-dark); }
.consequence.is-served { color: var(--muted); }

.race-result { border-bottom: 1px solid var(--line); }
.race-result:first-of-type { border-top: 2px solid var(--ink); }
.race-result summary { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: 0.85rem 0; cursor: pointer; }
.rr-round { font-stretch: 62%; font-weight: 800; font-size: 1.8rem; line-height: 1; }
.rr-track { font-stretch: 75%; font-weight: 700; font-size: 1.3rem; }
.rr-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.race-result[open] summary { border-bottom: 1px solid var(--line); }
.race-result > .fine { padding: 0.75rem 0; margin: 0; }
details.desc summary { cursor: pointer; font-size: 0.88rem; font-weight: 600; margin-top: 0.25rem; }
details.desc p { margin: 0.4rem 0 0; max-width: 34rem; }

/* ---------- Liga-Seite ---------- */
.briefing { margin: 1.5rem 0 0; border-top: 2px solid var(--ink); }
.briefing div { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.briefing dt { font-weight: 700; font-stretch: 88%; }
.briefing dd { margin: 0; max-width: 46rem; }
.points-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(1.5rem, 5vw, 4rem); margin-top: 1.5rem; }
.points-strip { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-left: 1px solid var(--line); background: var(--paper); }
.points-strip li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; padding: 0.4rem 0.7rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.points-strip span { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.points-strip b { font-stretch: 62%; font-weight: 800; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.points-notes h3 { margin-top: 1.25rem; }
.points-notes h3:first-child { margin-top: 0; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); }
.two-col-wide { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.plain-list { margin: 0 0 1rem; padding-left: 1.1rem; }
.plain-list li { margin-bottom: 0.55rem; }
.docs { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.docs a { display: flex; align-items: baseline; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-stretch: 80%; font-weight: 700; font-size: 1.25rem; }
.docs a:hover { color: var(--red-dark); }
.doc-kind { font-stretch: 100%; font-size: 0.8rem; font-weight: 700; background: var(--ink); color: #fff; padding: 0.1rem 0.45rem; min-width: 2.9rem; text-align: center; }

/* ---------- Formulare ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.aside h2 { font-size: 1.5rem; }
.steps { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.steps li { margin-bottom: 0.7rem; }
.steps .link { display: inline-block; margin-right: 0.75rem; }
.form { background: var(--paper); padding: clamp(1.25rem, 3.5vw, 2rem); border-top: 4px solid var(--ink); }
.field { margin-bottom: 1.15rem; min-width: 0; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea, .admin input[type=text], .admin input[type=email], .admin input[type=password], .admin input[type=number], .admin input[type=date], .admin input[type=time], .admin input[type=url], .admin select, .admin textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid #9aa3ad; padding: 0.6rem 0.7rem; border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { resize: vertical; }
.field .static { margin: 0; padding: 0.4rem 0; }
.hint { font-size: 0.88rem; color: var(--muted); margin: 0.3rem 0 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.15rem; }
.field-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-number input { font-stretch: 62%; font-weight: 800; font-size: 1.6rem; text-align: center; padding: 0.3rem; font-variant-numeric: tabular-nums; }
.wishes { border: 0; padding: 0; margin: 0 0 1.15rem; min-width: 0; }
.wishes legend { padding: 0; margin-bottom: 0.7rem; font-size: 0.95rem; color: var(--muted); }
.wishes .field { margin-bottom: 0.4rem; }
.wishes .field label { font-size: 0.92rem; }
.wishes .taken { overflow-wrap: anywhere; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0 0 1.4rem; }
.check input { width: 1.3rem; height: 1.3rem; margin: 0.15rem 0 0; flex-shrink: 0; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { background: var(--paper); border-left: 6px solid var(--muted); padding: 1rem 1.25rem; margin: 0 0 1.5rem; max-width: 46rem; }
.notice h2 { font-size: 1.6rem; margin-bottom: 0.4em; }
.notice > :last-child { margin-bottom: 0; }
.notice ul { margin: 0; padding-left: 1.1rem; }
.notice-ok { border-left-color: var(--green); }
.notice-warn { border-left-color: var(--yellow); }
.notice-error { border-left-color: var(--red); }
.section-alt .notice { background: var(--concrete); }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }

/* ---------- Fuss ---------- */
.site-footer { background: var(--asphalt); color: #dfe3e7; padding: 2.5rem 0 3rem; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.footer-brand { font-stretch: 62%; font-weight: 900; font-size: 2rem; line-height: 1; color: #fff; margin-bottom: 0.6rem; }
.site-footer .fine { color: #9ba4ae; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Admin ---------- */
.admin { background: var(--concrete); }
.admin-bar { background: var(--asphalt); color: #fff; }
.admin-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.25rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.admin-bar .title { font-stretch: 62%; font-weight: 900; font-size: 1.5rem; margin-right: 1rem; text-decoration: none; }
.admin-bar a.tab { text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.4rem 0.7rem; color: #dfe3e7; }
.admin-bar a.tab:hover { color: #fff; background: var(--asphalt-2); }
.admin-bar a.tab[aria-current] { background: var(--red); color: #fff; }
.admin-bar .spacer { flex: 1; }
.admin-bar form { margin: 0; }
.admin-main { --wrap: 86rem; padding: 1.75rem 0 4rem; }
.admin h1 { font-size: 2.3rem; margin-bottom: 0.5em; }
.admin h2 { font-size: 1.5rem; margin: 1.6em 0 0.6em; }
.admin .card { background: var(--paper); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; border-top: 3px solid var(--ink); }
.admin .card > h2:first-child { margin-top: 0; }
.admin .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.admin .stat { background: var(--paper); padding: 1rem 1.25rem; border-top: 3px solid var(--ink); text-decoration: none; display: block; }
.admin .stat b { display: block; font-stretch: 62%; font-weight: 800; font-size: 2.6rem; line-height: 1; }
.admin label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 0.2rem; }
.admin .table td, .admin .table th { padding: 0.4rem 0.5rem; font-size: 0.93rem; }
.admin .table input, .admin .table select { padding: 0.3rem 0.4rem; border-width: 1px; }
.admin .table input.narrow { width: 4.5rem; }
.admin .table select { min-width: 8.5rem; }
.admin .table input[type=text] { min-width: 6.5rem; }
.admin .table input.narrow { min-width: 0; }
.admin .inline { display: inline-flex; gap: 0.3rem; align-items: center; margin: 0; flex-wrap: wrap; }
.admin .inline select, .admin .inline input { width: auto; }
.admin .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.25rem; }
.admin .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem 1.25rem; }
.admin .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem 1.25rem; }
.admin .span2 { grid-column: span 2; }
.admin .span-all { grid-column: 1 / -1; }
.admin .actions { margin-top: 1rem; display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.admin .check { margin: 0; align-items: center; font-weight: 600; }
.admin .check input { width: 1.1rem; height: 1.1rem; margin: 0; }
.admin .todo { padding-left: 1.1rem; margin: 0; }
.admin .todo li { margin-bottom: 0.35rem; }
.admin .danger { color: var(--red-dark); border-color: var(--red); }
.admin .login { max-width: 26rem; margin: 3rem auto; }
.admin .thumb { max-height: 3rem; display: block; margin-bottom: 0.4rem; background: #cfd5db; }
.admin .hint { margin-bottom: 0; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 60rem) {
  .hero-grid, .vote-grid, .form-layout, .points-grid, .two-col, .two-col-wide { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > div { grid-column: 1 / -1; }
  .admin .grid3, .admin .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .brand-text { display: none; }
  .partners, .evening { grid-template-columns: minmax(0, 1fr); }
  .evening li, .evening li + li { border-left: 0; padding: 1rem 0 0.9rem; border-bottom: 1px solid var(--line); }
  .cal-row { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .cal-date { grid-column: 2; grid-row: 2; font-weight: 400; font-size: 0.92rem; color: var(--muted); }
  .cal-round { grid-row: 1 / span 2; font-size: 1.9rem; }
  .cal-track { font-size: 1.25rem; }
  .cal-state { grid-row: 1 / span 2; grid-column: 3; }
  .briefing div { grid-template-columns: minmax(0, 1fr); }
  .points-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .field-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 0.6rem; }
  .startgrid { gap: 0.7rem 0.4rem; }
  .gridbox-legend a { margin-left: 0; width: 100%; }
  .admin .grid2, .admin .grid3, .admin .grid4 { grid-template-columns: minmax(0, 1fr); }
  .admin .span2 { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer, .hero-actions, .btn { display: none; }
  body { background: #fff; }
}
