@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap");

/* ==========================================================================
   Sportschützengau Freising — Design-Tokens
   Alle Werte hier zentral austauschbar.
   ========================================================================== */
:root {
  /* Farben */
  --primary: #0f3d63;
  --primary-deep: #0b2e4c;
  --accent: #2563eb;
  --surface: #eef4fa;
  --ink: #102a43;
  --paper: #ffffff;
  --border: #cbd5e1;
  --border-strong: #94a3b8;
  --muted: #64748b;
  --muted-on-surface: #52627a;
  --rule-on-navy: #ffffff35;
  --error: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;

  /* Typografie */
  --font: Inter, "Segoe UI", Arial, sans-serif;
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --text-display: clamp(2.1rem, 5vw, 4.4rem);
  --text-h1: clamp(1.9rem, 4vw, 3.1rem);
  --text-h2: clamp(1.45rem, 2.6vw, 2rem);
  --text-h3: 1.05rem;
  --text-stat: clamp(2rem, 4vw, 2.5rem);
  --text-lead: 1.12rem;
  --text-body: 1rem;
  --text-nav: 0.88rem;
  --text-small: 0.8rem;
  --text-meta: 0.78rem;
  --text-caption: 0.76rem;
  --text-overline: 0.73rem;
  --text-brand-kicker: 0.72rem;
  --leading-body: 1.55;
  --leading-heading: 1.1;
  --tracking-display: -0.04em;
  --tracking-overline: 0.14em;

  /* Abstände */
  --space-1: 0.3rem;
  --space-2: 0.45rem;
  --space-3: 0.5rem;
  --space-4: 0.7rem;
  --space-5: 0.85rem;
  --space-6: 1rem;
  --space-7: 1.2rem;
  --space-8: 1.3rem;
  --space-9: 1.5rem;
  --space-10: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --container: 1240px;
  --container-pad: 1rem;
  --container-pad-sm: 0.75rem;
  --sidebar-width: 240px;
  --shell-gap: 2rem;

  /* Radien */
  --radius-flat: 0;
  --radius-button: 8px;
  --radius-rail: 14px;
  --radius-card: 16px;
  --radius-panel: 22px;
  --radius-pill: 99px;
  --radius-round: 50%;

  /* Linien */
  --rule-accent: 5px;
  --hairline: 1px solid var(--border);
}

/* ==========================================================================
   Basis
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  text-wrap: pretty;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
/* Verweise im Textfluss */
main p > a, main td > a, main li > p a, figcaption a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
main p > a:hover, main td > a:hover, figcaption a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: var(--leading-heading); text-wrap: balance; }
p { margin: 0 0 var(--space-6); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space-6);
  top: -4rem;
  z-index: 20;
  background: var(--primary);
  color: #fff;
  padding: var(--space-4) var(--space-7);
  border-radius: var(--radius-button);
  font-size: var(--text-meta);
  font-weight: var(--weight-extrabold);
  transition: top 120ms ease;
}
.skip-link:focus { top: var(--space-6); color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad-sm) var(--space-16);
}

.section { margin: var(--space-12) 0 0; }
.section-tight { margin: var(--space-10) 0 0; }

.eyebrow {
  margin: 0;
  font-size: var(--text-overline);
  text-transform: uppercase;
  letter-spacing: var(--tracking-overline);
  font-weight: var(--weight-extrabold);
  color: var(--primary);
}

.display {
  font-size: var(--text-display);
  letter-spacing: var(--tracking-display);
  line-height: 0.98;
  margin: var(--space-4) 0 0;
  max-width: 850px;
}

.page-title {
  font-size: var(--text-h1);
  letter-spacing: -0.03em;
  margin: var(--space-4) 0 0;
  max-width: 20ch;
}

h2 { font-size: var(--text-h2); letter-spacing: -0.02em; margin: 0 0 var(--space-6); }
h3 { font-size: var(--text-h3); margin: 0 0 var(--space-2); }

.lead {
  font-size: var(--text-lead);
  color: var(--muted-on-surface);
  max-width: 62ch;
  margin: var(--space-6) 0 0;
}

.meta { font-size: var(--text-caption); color: var(--muted-on-surface); margin: 0; }
.card .meta, .dates .meta, .panel .meta { color: var(--muted); }

/* ==========================================================================
   Kopfbereich
   ========================================================================== */
.site-head {
  background: var(--paper);
  border-bottom: var(--rule-accent) solid var(--accent);
  position: relative;
  z-index: 20;
}
.site-head__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-5) var(--container-pad-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.brand { display: flex; align-items: center; gap: var(--space-4); }
.brand img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.brand span {
  display: block;
  font-size: var(--text-brand-kicker);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand b {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.head-tools {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.searchbox {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: var(--hairline);
  border-radius: var(--radius-pill);
  padding: 0 var(--space-3) 0 var(--space-5);
  background: var(--paper);
  min-width: 0;
}
.searchbox input {
  border: 0;
  background: none;
  padding: var(--space-3) 0;
  font-size: var(--text-meta);
  width: 100%;
  min-width: 6rem;
}
.searchbox input::placeholder { color: var(--muted); }
.searchbox button {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-round);
}
.searchbox button:hover { color: var(--accent); }
.searchbox:focus-within { border-color: var(--accent); }

.utility { display: flex; gap: var(--space-6); font-size: var(--text-meta); color: var(--muted); }

.mainnav__list {
  display: flex;
  gap: var(--space-7);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}
.mainnav__list > li > a {
  display: block;
  font-size: var(--text-nav);
  font-weight: var(--weight-bold);
  padding: var(--space-4) 0;
  min-height: 44px;
}
.mainnav__list > li > a:hover { text-decoration: underline; text-underline-offset: 0.35rem; }
.mainnav__list > li > a[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent);
}

/* Zweite Zeile: Unterpunkte der Rubrik */
.subnav { display: none; }
.subnav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-4) var(--container-pad-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3) var(--space-7);
}
.subnav a {
  font-size: var(--text-meta);
  font-weight: var(--weight-bold);
  color: var(--primary);
}
.subnav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.3rem; }
.subnav a[aria-current="true"] { color: var(--accent); text-decoration: underline; text-underline-offset: 0.3rem; }
.subnav__group { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-4); }
.subnav__kids { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.subnav__kids a { font-weight: var(--weight-regular); color: var(--muted); }
.subnav__kids a::before { content: "· "; color: var(--border-strong); }

.subnav--static {
  display: block;
  border-top: var(--hairline);
}
.subnav--static .subnav__inner {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Filterzeile für Beiträge und Termine */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.filters a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--space-5);
  border: var(--hairline);
  border-radius: var(--radius-pill);
  font-size: var(--text-meta);
  font-weight: var(--weight-bold);
  color: var(--primary);
  background: var(--paper);
}
.filters a:hover { border-color: var(--accent); color: var(--accent); }
.filters a[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ==========================================================================
   Portal-Schale mit Navy-Leiste
   ========================================================================== */
.shell { display: flex; flex-direction: column; gap: var(--shell-gap); padding: var(--space-10) 0 0; }
.shell > .rail { order: 2; }
.shell > div { order: 1; min-width: 0; }

.rail {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-rail);
  padding: var(--space-8);
  align-self: start;
}
.rail h2 {
  font-size: var(--text-h3);
  margin: 0;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--rule-on-navy);
}
.rail a {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--rule-on-navy);
  font-size: var(--text-nav);
  font-weight: var(--weight-bold);
  min-height: 44px;
}
.rail li:last-child a { border-bottom: 0; }
.rail a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.35rem; }
.rail a span { color: #ffffffb0; }

/* ==========================================================================
   Kacheln, Karten, Listen
   ========================================================================== */
.quick { display: flex; flex-wrap: wrap; gap: var(--space-6); margin: var(--space-10) 0 0; }
.quick > a {
  flex: 0 1 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-1);
  background: var(--paper);
  border: var(--hairline);
  padding: var(--space-7);
  transition: border-color 120ms ease, transform 120ms ease;
}
.quick a:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.quick b { font-size: 1rem; }
.quick span { font-size: var(--text-small); color: var(--muted); }

.card {
  background: var(--paper);
  border: var(--hairline);
  padding: var(--space-8);
}
.card h3 { font-size: var(--text-h3); }
.card p:last-child { margin-bottom: 0; }

.cards { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.cards > * { flex: 0 1 100%; min-width: 0; }

.rows { border-top: var(--hairline); }
.rows a, .rows li > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-6) 0;
  border-bottom: var(--hairline);
}
.rows a { transition: padding-left 120ms ease; }
.rows a:hover { padding-left: var(--space-3); }
.rows b { font-weight: var(--weight-bold); }
.rows span { font-size: var(--text-small); color: var(--muted-on-surface); }
.card .rows span { color: var(--muted); }

.dates { display: flex; flex-direction: column; gap: var(--space-2); }
.dates article {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-4);
  background: var(--paper);
  border: var(--hairline);
}
.dates article > div { flex: 1 1 auto; min-width: 0; }
.dates time {
  flex: 0 0 68px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}
.dates time b { font-size: 1.4rem; line-height: 1; display: block; }
.dates small { font-size: var(--text-caption); color: var(--muted); }
.dates h3 { margin: 0; }
.dates p { margin: 0; font-size: var(--text-caption); color: var(--muted); }

.two { display: flex; flex-direction: column; gap: var(--space-12); }
.two > * { min-width: 0; }

/* Zahlen / Statistik-Leiste */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--border);
  border: var(--hairline);
  margin: var(--space-12) 0 0;
}
.stats div { flex: 0 1 100%; min-width: 0; background: var(--paper); padding: var(--space-8); }
.stats b {
  display: block;
  font-size: var(--text-stat);
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
}
.stats span {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-caption);
  color: var(--muted);
  max-width: 22ch;
}

/* Hinweisband */
.ticker {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
  flex-wrap: wrap;
  background: var(--paper);
  border: var(--hairline);
  border-left: var(--rule-accent) solid var(--error);
  padding: var(--space-5) var(--space-7);
  margin: var(--space-10) 0 0;
  font-size: var(--text-small);
}
.ticker b { color: var(--error); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--text-overline); }

/* Navy-Panel */
.panel {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-rail);
  padding: var(--space-10);
  margin: var(--space-12) 0 0;
}
.panel h2 { color: #fff; }
.panel p { color: #ffffffcc; max-width: 60ch; }
.panel a:hover { color: #fff; }

/* Tasten */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-button);
  font-size: var(--text-meta);
  font-weight: var(--weight-extrabold);
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--accent); }
.btn--outline { background: none; color: var(--primary); border-color: var(--border-strong); }
.btn--outline:hover { color: var(--accent); border-color: var(--accent); }
.btn--on-navy { background: #fff; color: var(--primary); }
.btn--on-navy:hover { color: var(--primary); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-8) 0 0; }
.chips a {
  border: var(--hairline);
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-meta);
  background: var(--paper);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.chips a:hover { border-color: var(--accent); }

/* Tabelle */
.table-wrap { overflow-x: auto; border: var(--hairline); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 620px; }
caption {
  text-align: left;
  padding: var(--space-6) var(--space-7);
  font-size: var(--text-caption);
  color: var(--muted);
  border-bottom: var(--hairline);
}
th, td {
  text-align: left;
  padding: var(--space-5) var(--space-7);
  border-bottom: var(--hairline);
  font-size: var(--text-small);
  vertical-align: top;
}
thead th {
  font-size: var(--text-overline);
  text-transform: uppercase;
  letter-spacing: var(--tracking-overline);
  color: var(--primary);
  font-weight: var(--weight-extrabold);
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: var(--weight-bold); }

/* Zeitleiste */
.timeline { display: flex; flex-direction: column; border-top: var(--hairline); }
.timeline li {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-7) 0;
  border-bottom: var(--hairline);
  align-items: flex-start;
}
.timeline li > i { flex: 0 0 3.2rem; }
.timeline li > div { flex: 1 1 auto; min-width: 0; }
.timeline i {
  font-style: normal;
  font-weight: var(--weight-extrabold);
  font-size: var(--text-overline);
  letter-spacing: var(--tracking-overline);
  color: var(--accent);
  padding-top: 0.15rem;
}
.timeline h3 { margin: 0; }
.timeline p { margin: var(--space-1) 0 0; font-size: var(--text-small); color: var(--muted-on-surface); max-width: 60ch; }

/* Bildslots */
figure { margin: 0; }
.shot { background: var(--paper); border: var(--hairline); }
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.shot figcaption { padding: var(--space-5) var(--space-7); font-size: var(--text-caption); color: var(--muted); }
.section > figcaption, details p { color: var(--muted); }
.band img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* Artikel */
.article-lead { display: flex; flex-direction: column; gap: var(--space-8); }
.article-lead > * { min-width: 0; }
.article-lead .shot img { aspect-ratio: 16 / 9; }

/* Formular */
.form { display: flex; flex-direction: column; gap: var(--space-6); max-width: 34rem; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-meta); font-weight: var(--weight-bold); }
.field input, .field select, .field textarea {
  border: var(--hairline);
  background: var(--paper);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-flat);
  min-height: 44px;
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--accent); }
.field small { font-size: var(--text-caption); color: var(--muted-on-surface); }
.field-check { display: flex; gap: var(--space-4); align-items: flex-start; }
.field-check input { width: 20px; height: 20px; min-height: 20px; margin-top: 0.2rem; flex: none; }
.field-check label { font-weight: var(--weight-regular); font-size: var(--text-small); }
.req { color: var(--error); }

/* FAQ */
details {
  background: var(--paper);
  border: var(--hairline);
  padding: var(--space-6) var(--space-7);
}
details + details { border-top: 0; }
summary {
  cursor: pointer;
  font-weight: var(--weight-bold);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 32px;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "›"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "⌄"; }
details p { margin: var(--space-5) 0 0; font-size: var(--text-small); color: var(--muted); max-width: 70ch; }

/* ==========================================================================
   Fußbereich
   ========================================================================== */
.site-foot {
  background: var(--paper);
  border-top: var(--hairline);
  margin-top: var(--space-10);
}
.site-foot__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-10) var(--container-pad-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}
.foot-brand { display: flex; gap: var(--space-4); align-items: center; }
.foot-brand img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.foot-brand b { display: block; font-size: 1rem; }
.foot-brand span { display: block; font-size: var(--text-meta); color: var(--muted); }
.foot-cols { display: flex; flex-wrap: wrap; gap: var(--space-9); }
.foot-cols > * { flex: 0 1 100%; min-width: 0; }
.foot-cols h2 {
  font-size: var(--text-overline);
  text-transform: uppercase;
  letter-spacing: var(--tracking-overline);
  color: var(--primary);
  margin: 0 0 var(--space-5);
}
.foot-cols li { font-size: var(--text-meta); padding: var(--space-2) 0; }
.foot-cols p { font-size: var(--text-meta); color: var(--muted); margin: 0 0 var(--space-3); }
.social { display: flex; gap: var(--space-3); }
.social a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: var(--hairline);
  border-radius: var(--radius-round);
  color: var(--primary);
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  justify-content: space-between;
  border-top: var(--hairline);
  padding-top: var(--space-6);
  font-size: var(--text-meta);
  color: var(--muted);
}
.foot-base ul { display: flex; gap: var(--space-6); flex-wrap: wrap; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 600px) {
  .page, .site-head__inner, .site-foot__inner { padding-left: var(--container-pad); padding-right: var(--container-pad); }
  .quick > a { flex-basis: calc((100% - var(--space-6)) / 2); }
  .cards > * { flex-basis: calc((100% - var(--space-6)) / 2); }
  .stats div { flex-basis: calc((100% - 1px) / 2); }
  .brand img { width: 56px; height: 56px; }
  .foot-cols > * { flex-basis: calc((100% - var(--space-9)) / 2); }
}

@media (min-width: 900px) {
  .site-head__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding-top: var(--space-6);
    padding-bottom: 0;
    column-gap: var(--space-10);
  }
  .head-tools { flex: 1 1 auto; justify-content: flex-end; }
  .mainnav { flex: 1 1 100%; }
  .mainnav__list { justify-content: flex-start; gap: var(--space-9); overflow: visible; }
  .mainnav__list > li.has-sub:hover > .subnav,
  .mainnav__list > li.has-sub:focus-within > .subnav {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + var(--rule-accent));
    background: var(--paper);
    border-bottom: var(--hairline);
  }
  /* unsichtbare Brücke, damit der Zeiger die Leiste erreicht */
  .mainnav__list > li.has-sub > .subnav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-12px - var(--rule-accent));
    height: calc(12px + var(--rule-accent));
  }
  /* Wenn die Rubrik eine eigene zweite Zeile hat, wird diese überdeckt */
  .mainnav:has(.subnav--static) .mainnav__list > li.has-sub:hover > .subnav,
  .mainnav:has(.subnav--static) .mainnav__list > li.has-sub:focus-within > .subnav {
    top: auto;
    bottom: 0;
    border-bottom: 0;
    border-top: var(--hairline);
  }
  .mainnav:has(.subnav--static) .mainnav__list > li.has-sub > .subnav::before {
    top: -12px;
    height: 12px;
  }
  .mainnav:has(.mainnav__list > li.has-sub:hover) .subnav--static > .subnav__inner,
  .mainnav:has(.mainnav__list > li.has-sub:focus-within) .subnav--static > .subnav__inner { visibility: hidden; }
  .subnav__inner { padding-left: var(--container-pad); padding-right: var(--container-pad); }
  .subnav--static .subnav__inner { padding-left: 0; padding-right: 0; }
  .brand img { width: 64px; height: 64px; }
  .brand b { font-size: 1.45rem; }
  .two { flex-direction: row; }
  .two > * { flex: 1 1 0; }
  .article-lead { flex-direction: row; align-items: flex-start; }
  .article-lead > *:first-child { flex: 1.4 1 0; }
  .article-lead > *:last-child { flex: 1 1 0; }
  .cards--three > * { flex-basis: calc((100% - 2 * var(--space-6)) / 3); }
  .stats div { flex-basis: calc((100% - 3px) / 4); }
  .foot-cols > *:first-child { flex: 1.2 1 0; }
  .foot-cols > *:last-child { flex: 1.3 1 0; }
}

@media (min-width: 1040px) {
  .shell { flex-direction: row; }
  .shell > .rail { order: 0; flex: 0 0 var(--sidebar-width); }
  .shell > div { order: 0; flex: 1 1 auto; }
  .quick--four > a { flex-basis: calc((100% - 3 * var(--space-6)) / 4); }
  .split-sidebar { display: flex; gap: var(--space-12); align-items: flex-start; }
  .split-sidebar > *:first-child { flex: 1 1 auto; min-width: 0; }
  .split-sidebar > aside { flex: 0 0 320px; }
}

/* ==========================================================================
   Mobiles Menü
   ========================================================================== */
.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: 0 var(--space-5);
  border: var(--hairline);
  border-radius: 7px;
  background: var(--paper);
  color: var(--primary);
  font: inherit;
  font-size: var(--text-nav);
  font-weight: var(--weight-bold);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.sub-toggle { display: none; }

@media (max-width: 899px) {
  .site-head__inner { row-gap: var(--space-4); }
  .head-tools { gap: var(--space-4); align-items: stretch; flex-direction: column; }
  .searchbox { width: 100%; }
  .utility { gap: var(--space-5); flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; align-self: flex-start; }
  .mainnav {
    display: none;
    border-top: var(--hairline);
    margin-top: var(--space-3);
  }
  .mainnav.mainnav--offen { display: block; }
  .mainnav__list {
    display: block;
    white-space: normal;
    overflow: visible;
    min-width: 0;
  }
  .mainnav__list > li {
    position: relative;
    border-bottom: var(--hairline);
  }
  .mainnav__list > li > a {
    display: flex;
    align-items: center;
    padding: var(--space-4) 0;
    padding-right: 56px;
  }
  .mainnav__list > li > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: var(--space-4); }
  .sub-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 52px;
    border: 0;
    border-left: var(--hairline);
    background: none;
    color: var(--primary);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
  }
  .sub-toggle[aria-expanded="true"] { color: var(--accent); transform: rotate(90deg); }
  .has-sub--offen > .subnav { display: block; }
  .has-sub--offen > .subnav .subnav__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    padding: 0 0 var(--space-6) var(--space-5);
  }
  .subnav__group { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .subnav__kids { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding-left: var(--space-5); }
  .subnav a { min-height: 32px; display: flex; align-items: center; }
  .subnav--static { border-top: 0; }
  .subnav--static .subnav__inner { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
