/* schwanzlastig.de – „Prüfstelle für Schwanzlastigkeit“
   Metapher: amtliches Prüfprotokoll × Schwerpunkt im Flugzeugbau × deutsches Verkehrsschild.
   Schriften: Barlow Semi Condensed (Schilder/Überschriften), Barlow (Text), B612 Mono (Cockpit-Schrift, Zahlen/Aktenzeichen). */

@font-face { font-family: "BSC"; src: url(/fonts/barlow-semi-condensed-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "BSC"; src: url(/fonts/barlow-semi-condensed-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "BSC"; src: url(/fonts/barlow-semi-condensed-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "BSC"; src: url(/fonts/barlow-semi-condensed-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "B612M"; src: url(/fonts/b612-mono-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "B612M"; src: url(/fonts/b612-mono-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F3F4F1;      /* Messpapier */
  --paper-2: #FFFFFF;    /* Formular */
  --grid: rgba(24, 21, 28, .045);
  --line: #D6D8D2;
  --ink: #18151C;
  --ink-2: #47434D;
  --mute: #6A6670;
  --aub: #4A1E4F;        /* Aubergine – Hausfarbe, „schwanzlastig“ */
  --aub-2: #6D3472;
  --aub-soft: #F1E6F0;
  --teal: #0F6F6E;       /* Petrol – Frauen, „kopflastig“ */
  --teal-soft: #E1F0EE;
  --sign: #F2C200;       /* Ortsschild-Gelb */
  --red: #B5121B;        /* Prüfstempel */
  --radius: 10px;
  --shadow: 0 1px 0 rgba(24,21,28,.06), 0 6px 18px -10px rgba(24,21,28,.25);
  --f-sign: "BSC", "Barlow", "Arial Narrow", sans-serif;
  --f-text: "Barlow", system-ui, sans-serif;
  --f-mono: "B612M", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }   /* nie seitlich scrollen (Betreiber); breite Inhalte bekommen eigene Lösungen */
body {
  margin: 0; color: var(--ink); font: 400 17px/1.55 var(--f-text);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
a { color: var(--aub); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--aub-2); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-sign); line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.005em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.kicker { font: 700 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--aub); margin: 0 0 12px; }
.btn { display: inline-block; font: 700 16px/1 var(--f-sign); letter-spacing: .02em; text-decoration: none; color: #fff; background: var(--aub); padding: 12px 18px; border-radius: 999px; }
.btn:hover { background: var(--aub-2); color: #fff; }

/* ---------- Kopf */
.top { background: var(--paper-2); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.top__band { background: var(--aub); color: #EBDDEA; font: 400 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.top__band-in { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.top__in { display: flex; align-items: center; gap: 24px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark { width: 44px; height: 44px; }
.logo__word { font: 800 26px/1 var(--f-sign); letter-spacing: -.01em; }
.logo__word b { color: var(--aub); font-weight: 800; }
.logo__word small { font-size: .6em; color: var(--mute); font-weight: 600; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { font: 600 16px/1 var(--f-sign); color: var(--ink-2); text-decoration: none; padding: 9px 10px; border-radius: 6px; }
.nav a:hover { background: var(--aub-soft); color: var(--aub); }
.nav a[aria-current] { color: var(--aub); box-shadow: inset 0 -3px 0 var(--sign); }
.top .finder { margin-left: auto; width: 260px; }

/* ---------- Ortssuche */
.finder { position: relative; }
.finder input { width: 100%; font: 500 16px/1 var(--f-text); padding: 11px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.finder input:focus { outline: none; border-color: var(--aub); }
.finder label:not(.sr) { display: block; font: 700 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-bottom: 8px; }
.finder__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; max-height: 360px; overflow: auto; min-width: 260px; }
.finder__list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.finder__list li[aria-selected="true"], .finder__list li:hover { background: var(--aub-soft); }
.finder__list b { font: 600 16px/1.2 var(--f-text); }
.finder__list small { grid-column: 1; color: var(--mute); font-size: 13px; }
.finder__list .val { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 700 16px/1 var(--f-sign); font-variant-numeric: tabular-nums; padding: 6px 8px; border-radius: 6px; color: #fff; }
.finder--big { display: flex; gap: 8px; max-width: 520px; }
.finder--big input { font-size: 18px; padding: 15px 18px; }
.finder--big button { font: 700 17px/1 var(--f-sign); border: 0; border-radius: 999px; background: var(--ink); color: #fff; padding: 0 22px; cursor: pointer; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--mute); padding: 14px 0 0; }
.crumbs a { color: var(--mute); }

/* ---------- Startseite */
.hero { padding: 40px 0 24px; }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero__h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -.02em; }
.hero__lead { font-size: 19px; max-width: 34em; color: var(--ink-2); margin: 0 0 24px; }
.hero__big { color: var(--aub); font-weight: 700; box-shadow: inset 0 -0.42em 0 rgba(242, 194, 0, .45); }

.block { padding: 28px 0; }
.block--tight { padding-top: 16px; }
.block__head { max-width: 760px; margin-bottom: 18px; }
.block__h { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.block__h--page { font-size: clamp(34px, 4.6vw, 54px); }
.block__lead { color: var(--ink-2); font-size: 18px; margin: 0; }
.block__more { margin: 16px 0 0; }
.block--two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.block__more--span { grid-column: 1 / -1; margin: 0; }

/* ---------- Panels / Karten */
.panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); min-width: 0; }
.panel--wide { margin: 20px 0; }
.panel__h { font-size: 24px; font-weight: 800; }
.panel__h small { font: 400 14px/1 var(--f-mono); color: var(--mute); margin-left: 6px; }
.panel__lead { color: var(--ink-2); margin: 0 0 14px; }
.panel__more { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }

/* ---------- Prüfprotokoll (Karte mit Index, Stempel, Wippe) */
.protokoll { position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px 16px 38px; box-shadow: var(--shadow); overflow: hidden; }
.protokoll::before { /* Lochrand wie ein Formular */
  content: ""; position: absolute; left: 12px; top: 18px; bottom: 18px; width: 10px;
  background: radial-gradient(circle, var(--paper) 4px, transparent 4.5px) 0 0 / 10px 34px repeat-y;
}
.protokoll__h { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font: 700 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.protokoll__h span { color: var(--mute); font-weight: 400; }

.idx { display: grid; gap: 4px; }
.idx__label { font: 700 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.idx__val { font: 800 76px/0.95 var(--f-sign); letter-spacing: -.02em; color: var(--aub); font-variant-numeric: tabular-nums; }
.idx__scale { position: relative; height: 10px; border-radius: 5px; margin-top: 8px;
  background: linear-gradient(90deg, #0B5F62 0%, #3E9592 30%, #9CCBC5 40%, #DAD7D3 45%, #DAD7D3 55%, #E2CDE0 62%, #CFAFCD 75%, #BC91B9 82%, #A874A6 86%, #945992 89%, #7B3C79 92%, #5E245E 95%, #3D103D 100%); }
.idx__scale i { position: absolute; top: -6px; width: 4px; height: 22px; margin-left: -2px; background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px var(--paper-2); }
.idx__ends { display: flex; justify-content: space-between; font: 400 11px/1 var(--f-mono); color: var(--mute); margin-top: 6px; }

.stempel { position: absolute; right: 18px; top: 58px; display: grid; justify-items: center; gap: 2px; padding: 8px 12px; border: 3px solid currentColor; outline: 1.5px solid currentColor; outline-offset: 2px; border-radius: 6px; color: var(--red); transform: rotate(-9deg); text-transform: uppercase; mix-blend-mode: multiply; opacity: .9; }
.stempel__top { font: 700 10px/1 var(--f-mono); letter-spacing: .2em; }
.stempel__main { font: 800 20px/1 var(--f-sign); letter-spacing: .02em; text-align: center; max-width: 9em; }
.stempel__az { font: 400 9px/1 var(--f-mono); letter-spacing: .1em; }
.stempel--kopflastig, .stempel--ausgetrimmt { color: var(--teal); }

.relbox { display: grid; gap: 5px; margin: 14px 0 4px; padding: 12px 0 0; border-top: 1px dashed var(--line); }
.relbox__k { font: 700 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.relbox__name { justify-self: start; font: 800 22px/1.1 var(--f-sign); color: var(--ci, #fff); background: var(--c); padding: 5px 10px 6px; border-radius: 6px; }
.relbox__txt { font-size: 15px; color: var(--ink-2); }
.relbar { position: relative; height: 10px; border-radius: 5px; margin-top: 6px; background: linear-gradient(90deg, #0B5F62 0%, #7FB8B2 20%, #DAD7D3 50%, #B07AAD 80%, #4A1E4F 100%); }
.relbar i { position: absolute; top: -6px; width: 4px; height: 22px; margin-left: -2px; background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px var(--paper-2); }
.relbox__ends { display: flex; justify-content: space-between; font: 400 11px/1 var(--f-mono); color: var(--mute); }
.hist { display: block; width: 100%; height: auto; }
.hist__t { font: 400 11px/1 var(--f-mono); fill: var(--mute); text-anchor: middle; }
.hist__cap { font: 700 11px/1 var(--f-sign); fill: #fff; text-anchor: middle; }
.hist rect:hover { opacity: 1 !important; }
.wippe { margin: 8px 0 0; }
.wippe svg { display: block; width: 100%; height: auto; }
.wippe svg { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wippe__n { font: 700 18px/1 var(--f-sign); fill: #fff; font-variant-numeric: tabular-nums; }
.wippe figcaption { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 13px; color: var(--mute); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.dot--w { background: var(--teal); } .dot--m { background: var(--aub); }

/* ---------- Ortsschild */
.schild { display: inline-grid; gap: 2px; background: var(--sign); color: #111; padding: 10px 22px 9px; border-radius: 9px; box-shadow: inset 0 0 0 4px var(--sign), inset 0 0 0 7px #111, 0 2px 0 rgba(0,0,0,.08); margin: 0 0 18px; text-align: center; min-width: 220px; }
.schild__name { font: 700 clamp(30px, 4.2vw, 46px)/1.05 var(--f-sign); letter-spacing: .005em; }
.schild__sub { font: 600 15px/1.2 var(--f-sign); }

/* ---------- Einheiten-Seite */
.entity { padding: 18px 0 30px; }
.entity__head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; margin-bottom: 20px; }
.entity__h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.entity__befund { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.entity__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }

.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts dl > div { background: var(--paper-2); padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.facts dt { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; font: 400 11.5px/1.3 var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.facts dt .ico { width: 28px; height: 28px; color: var(--ink-2); }
.facts .c-m dt .ico { color: var(--aub); } .facts .c-w dt .ico { color: var(--teal); }
.facts dd { margin: 0; font: 800 30px/1 var(--f-sign); font-variant-numeric: tabular-nums; }
.facts dd small { font: 500 14px/1 var(--f-text); color: var(--mute); }
.facts__small { font: 600 16px/1.3 var(--f-text) !important; }
.c-m dd, dd.c-m { color: var(--aub); } .c-w dd, dd.c-w { color: var(--teal); }

/* Zollstock */
.zoll { margin: 10px 0; }
.zoll__head { font: 600 15px/1.2 var(--f-text); margin-bottom: 5px; }
.zoll__head small { color: var(--mute); font-weight: 400; }
.zoll__track { background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line) calc(10% - 1px) 10%); border-radius: 3px; }
.zoll__bar { position: relative; height: 26px; min-width: 2px; border-radius: 3px; background-color: var(--sign);
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,.55) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.75) 0 1.5px, transparent 1.5px 50px);
  background-size: 100% 7px, 100% 12px; background-repeat: no-repeat; background-position: 0 0, 0 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); animation: aus 1s ease-out both; }
@keyframes aus { from { width: 0; } }
@media (prefers-reduced-motion: reduce) { .zoll__bar { animation: none; } }
.zoll__val { position: absolute; right: 6px; bottom: 3px; font: 700 15px/1 var(--f-sign); color: #111; font-variant-numeric: tabular-nums; }

/* Mini-Karte */
.minimap { display: block; width: 100%; height: auto; max-height: 460px; }
.m-shape { stroke: var(--paper-2); stroke-width: .8; transition: opacity .15s; }
.minimap a:hover .m-shape { opacity: .75; }
.m-shape.is-hi { stroke: var(--ink); stroke-width: 3.5; filter: drop-shadow(0 0 0 var(--sign)) drop-shadow(0 0 3px var(--sign)); }
.legende { display: flex; align-items: center; gap: 10px; font: 400 12px/1 var(--f-mono); color: var(--mute); margin-top: 10px; }
.legende__bar { display: flex; flex: 1; height: 12px; border-radius: 3px; overflow: hidden; max-width: 420px; }
.legende__bar i { flex: 1; }

/* Listen */
.streets { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.streets li { display: grid; gap: 3px; justify-items: start; align-content: start; }
.streets__sign { display: inline-block; background: #fff; color: #111; font: 700 16px/1 var(--f-sign); padding: 7px 12px; border-radius: 5px; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3.5px #111; }
.streets--w .streets__sign { background: var(--teal-soft); box-shadow: inset 0 0 0 2px var(--teal-soft), inset 0 0 0 3.5px var(--teal); }
.streets__who { font-size: 13px; color: var(--mute); padding-left: 4px; }
.honor { margin: 0; padding: 0; list-style: none; counter-reset: h; }
.honor li { counter-increment: h; display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.honor li::before { content: counter(h); font: 700 13px/1 var(--f-mono); color: var(--mute); width: 22px; flex: none; }
.honor span:not(.honor__pic) { flex: 1; font-weight: 500; }
.honor li { align-items: center; }
.honor__pic { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; box-shadow: 0 0 0 2px var(--paper-2), 0 0 0 3px var(--line); }
.mono { color: var(--aub); }
.honor--w .mono, .gallery__side--w .mono { color: var(--teal); }
.mono__t { font: 800 22px/1 var(--f-sign); fill: #fff; }
.honor__proxy, .gallery__proxy { display: block; font-size: 12px; color: var(--mute); font-weight: 400; }
.honor__pic--none { background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 4px, var(--line) 4px, var(--line) 5px); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.gallery__side { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px 12px; }
.gallery__item { display: grid; gap: 4px; justify-items: center; text-align: center; }
.gallery__img { width: min(100%, 140px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.gallery__item img, .gallery__none { width: min(100%, 140px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 5px var(--aub); }
.gallery__side--w .gallery__item img, .gallery__side--w .gallery__none { box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 5px var(--teal); }
.gallery__img--none { display: block; background: var(--paper); border-radius: 50%; }
.gallery__none { display: grid; place-items: center; background: var(--paper); font: 800 40px/1 var(--f-sign); color: var(--mute); }
.gallery__name { font: 700 15px/1.2 var(--f-sign); margin-top: 6px; }
.gallery__n { font-size: 13px; color: var(--mute); }
.credits { font-size: 13px; color: var(--mute); margin: 20px 0; }
.credits summary { cursor: pointer; font-weight: 600; }
.credits ul { columns: 2; padding-left: 18px; }
.honor b { font: 700 16px/1 var(--f-sign); font-variant-numeric: tabular-nums; }
.honor--m b { color: var(--aub); } .honor--w b { color: var(--teal); }
.honor--long { columns: 1; }

.ranks { list-style: none; margin: 0; padding: 0; }
.ranks--cols { columns: 2; column-gap: 32px; }
.mp { width: 34px; height: 20px; vertical-align: middle; margin-right: 6px; flex: none; }
.rank { display: grid; grid-template-columns: 30px minmax(0, 1fr) 90px 34px 48px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); break-inside: avoid; }
.rank__n { font: 700 13px/1 var(--f-mono); color: var(--mute); }
.rank__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank__sub { display: none; }
.rank__bar { height: 8px; background: var(--paper); border-radius: 4px; overflow: hidden; }
.rank__bar i { display: block; height: 100%; border-radius: 4px; }
.rank__val { font: 700 16px/1 var(--f-sign); text-align: right; font-variant-numeric: tabular-nums; }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font: 700 12px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--mute); padding: 8px 10px; border-bottom: 2px solid var(--ink); }
.table td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr:target { background: #FFF6CC; }
.tablewrap { overflow-x: auto; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* Stufen */
.plane { width: 96px; height: 48px; color: var(--aub); }
.plane--big { width: 180px; height: 90px; flex: none; }
.stufebox { display: flex; gap: 28px; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-left: 8px solid var(--aub); border-radius: var(--radius); padding: 22px 26px; margin: 20px 0; box-shadow: var(--shadow); }
.stufebox--kopflastig, .stufebox--ausgetrimmt { border-left-color: var(--teal); }
.stufebox--kopflastig .plane, .stufebox--ausgetrimmt .plane { color: var(--teal); }
.stufebox__k { font: 700 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 0 0 6px; }
.stufebox__h { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.stufebox p { margin: 0 0 8px; }
.stufebox__ex { font-size: 15px; color: var(--ink-2); }
.skala { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.skala a { display: grid; gap: 6px; height: 100%; text-decoration: none; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.skala a:hover { border-color: var(--aub); }
.skala .plane { width: 100%; height: 56px; }
.skala__item--kopflastig .plane, .skala__item--ausgetrimmt .plane { color: var(--teal); }
.skala__name { font: 800 20px/1.05 var(--f-sign); }
.skala__range { font: 600 14px/1 var(--f-sign); color: var(--mute); font-variant-numeric: tabular-nums; }
.skala__kurz { font-size: 14px; color: var(--ink-2); }

/* Bundestag */
.sparkbars { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 6px; }
.sparkbars__b { flex: 1; height: var(--h); background: var(--c); border-radius: 3px 3px 0 0; }
.sparkbars__b:hover { filter: brightness(1.2); }
.sparkbars__line { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--teal); }
.sparkbars__line span { position: absolute; left: 0; top: -22px; border-radius: 4px; box-shadow: 0 0 0 1px var(--teal); font: 700 11px/1 var(--f-mono); color: var(--teal); background: var(--paper-2); padding: 0 4px; }
.sparkbars__axis { display: flex; justify-content: space-between; font: 400 12px/1 var(--f-mono); color: var(--mute); margin-top: 6px; }
.btchart__plot { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 300px; padding-left: 34px; }
.btchart__grid { position: absolute; left: 34px; right: 0; border-top: 1px solid var(--line); }
.btchart__grid span { position: absolute; left: -34px; top: -7px; font: 400 11px/1 var(--f-mono); color: var(--mute); }
.btchart__grid--mid { border-top: 2px dashed var(--teal); }
.btchart__bar { position: relative; flex: 1; height: var(--h); background: var(--c); border-radius: 4px 4px 0 0; z-index: 1; }
.btchart__bar:hover, .btchart__bar:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.btchart__axis { display: flex; gap: 6px; padding-left: 34px; margin-top: 6px; }
.btchart__axis span { flex: 1; min-width: 0; overflow: hidden; text-align: center; font: 400 11px/1 var(--f-mono); color: var(--mute); }
.btchart__bar { min-width: 0; }
.table__sub { display: block; font-size: 12px; color: var(--mute); }
.trend p { max-width: 62em; }
.trend__calc { background: var(--paper); border-left: 4px solid var(--sign); padding: 10px 14px; border-radius: 4px; }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: #fff; font: 500 13px/1.35 var(--f-text); padding: 8px 10px; border-radius: 8px; max-width: 260px; box-shadow: var(--shadow); }

/* Karte (Startseite + /karte/) */
.mapbox { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; height: 540px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mapbox__map { position: relative; min-width: 0; }
.map { height: 100%; background: #E9EBE6; }
.leaflet-container { font-family: var(--f-text); background: #E9EBE6; }
/* Pfeil statt Greif-Hand: man soll sehen, wohin man klickt (Betreiber). Beim Ziehen bleibt die Faust. */
.leaflet-container, .leaflet-grab, .leaflet-container .leaflet-interactive { cursor: default !important; }
.leaflet-dragging .leaflet-grab, .leaflet-dragging .leaflet-container { cursor: grabbing !important; }
.leaflet-tooltip.sl-tip { font: 600 13px/1.3 var(--f-text); border-radius: 6px; border: 0; box-shadow: var(--shadow); }
.maphint { position: absolute; z-index: 500; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px 10px 12px; background: var(--ink); color: #fff; border-radius: 999px; font-size: 15px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); pointer-events: none; animation: hintpuls 2.4s ease-in-out infinite; white-space: nowrap; }
.maphint b { color: var(--sign); }
.maphint__ico { width: 26px; height: 26px; color: #fff; flex: none; }
.maphint[hidden] { display: none; }
@media (hover: none), (max-width: 980px) { .maphint { display: none; } }   /* Touch: Tippen/Zoomen ist selbsterklärend */
@keyframes hintpuls { 0%, 100% { box-shadow: 0 8px 24px -8px rgba(0,0,0,.5), 0 0 0 0 rgba(242,194,0,.55); } 50% { box-shadow: 0 8px 24px -8px rgba(0,0,0,.5), 0 0 0 9px rgba(242,194,0,0); } }
@media (prefers-reduced-motion: reduce) { .maphint { animation: none; } }
.map__info { border-left: 1px solid var(--line); padding: 12px 18px 16px; overflow: auto; color: var(--aub); min-height: 0; }
.mapbox:not(.mapbox--full) .mi__lists { display: none; }   /* Startseite: schlanke Tafel, Listen nur auf /karte/ */
.mapbox:not(.mapbox--full) .mi__plane { max-width: 190px; }
.map__info.is-kopf { color: var(--teal); }
.mi__plane { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto 6px; }
.mi__body { color: var(--ink); }
.mi__kicker { font: 700 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin: 0 0 6px; }
.mi__name { font-size: 28px; font-weight: 800; margin: 0; }
.mi__sub { font-size: 14px; color: var(--mute); margin: 2px 0 0; }
.mi__val { font: 800 58px/1 var(--f-sign); color: var(--aub); margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.is-kopf .mi__val { color: var(--teal); }
.mi__st { display: inline-block; font: 700 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--red); border: 2px solid currentColor; border-radius: 4px; padding: 5px 7px; margin: 8px 0 10px; transform: rotate(-3deg); }
.mi__mw { font-weight: 600; margin: 0 0 8px; }
.mi__cmp { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; }
.mi__more { margin: 8px 0 0; font-size: 15px; }
.mi__lists { display: grid; gap: 14px; margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.mi__h { font: 700 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin: 0 0 6px; }
.mi__lists ol { list-style: none; margin: 0; padding: 0; }
.mi__lists li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.mi__lists button, .linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--aub); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.mi__lists b { font: 700 15px/1.3 var(--f-sign); font-variant-numeric: tabular-nums; }
.c-m { color: var(--aub); } .c-w { color: var(--teal); }

.mapmode { position: absolute; z-index: 500; right: 12px; top: 12px; display: flex; background: var(--paper-2); border-radius: 999px; padding: 3px; box-shadow: var(--shadow); }
.mapmode button { font: 700 14px/1 var(--f-sign); border: 0; background: none; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.mapmode button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.maplegend { position: absolute; z-index: 500; left: 12px; bottom: 22px; width: min(320px, calc(100% - 24px)); background: rgba(255,255,255,.92); border-radius: 8px; padding: 8px 10px; box-shadow: var(--shadow); }
.maplegend__h { font: 700 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 0 0 6px; }
.maplegend .legende__bar { display: flex; height: 10px; border-radius: 3px; overflow: hidden; max-width: none; }
.maplegend__ends { display: flex; justify-content: space-between; font: 400 11px/1.2 var(--f-mono); color: var(--mute); margin-top: 4px; }
.mi__rel { display: inline-block; font: 800 15px/1 var(--f-sign); padding: 5px 8px; border-radius: 5px; margin: 0 0 6px; }

/* /karte/ als eigene Vollbildseite */
.page-map .crumbs { display: none; }
.mappage { padding: 10px 0 0; }
.mappage__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 8px 0 12px; }
.mappage__h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 0; }
.mappage__head .legende { margin: 0; min-width: 280px; flex: 0 1 460px; }
.mappage__stage { padding: 0 16px; }
.mapbox--full { max-width: 1680px; margin: 0 auto; }
.mapbox--full { height: calc(100vh - 190px); min-height: 520px; }

/* Vergleich */
.vs { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 30px; }
.vs__pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; }
.vs__gegen { font: 800 22px/1 var(--f-sign); color: var(--aub); padding-bottom: 12px; }
.vs__result { margin-top: 22px; }
.vs__empty { color: var(--mute); }
.vs__verdict { font: 700 22px/1.3 var(--f-sign); margin: 16px 0 0; }
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.duel__side { position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.duel__side.is-win { border: 2px solid var(--aub); }
.duel__side .stempel { top: 22px; }
.duel__idx { font: 800 64px/1 var(--f-sign); color: var(--aub); margin: 0; }
.pairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pairs__item { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.pairs__item > a { font: 600 19px/1.2 var(--f-sign); text-decoration: none; color: var(--ink); }
.pairs--links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.tabs a { font: 600 15px/1 var(--f-sign); text-decoration: none; padding: 9px 14px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card--geplant { background: transparent; box-shadow: none; border-style: dashed; }
.card__status { font: 700 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin: 0 0 8px; }
.card--live .card__status { color: var(--red); }
.card__h { font-size: 24px; font-weight: 800; }
.card__idx { font-size: 15px; color: var(--ink-2); }
.verz__h { font: 700 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 14px 0 6px; }
.verz { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 15px; }

.about { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; }
.about__seal { width: 200px; height: 200px; }
.seal__text { font: 700 12.5px/1 var(--f-mono); letter-spacing: .14em; fill: var(--ink); }
.prose { max-width: 820px; }
.prose h2 { font-size: 26px; font-weight: 800; margin-top: 1.4em; }
.prose li { margin-bottom: 6px; }
.footnote { font-size: 14px; color: var(--mute); max-width: 60em; margin: 18px 0; }
.notfound { text-align: center; }
.notfound .plane { color: var(--aub); }

.seo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px 40px; margin: 34px 0 10px; padding-top: 26px; border-top: 2px solid var(--ink); }
.seo__h { font-size: 24px; font-weight: 800; }
.seo__part p { color: var(--ink-2); margin: 0 0 12px; }
.faq { grid-column: 1 / -1; max-width: 900px; }
.faq__item { background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; margin: 0 0 8px; }
.faq__item summary { cursor: pointer; padding: 13px 16px; font: 700 17px/1.3 var(--f-sign); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font: 700 20px/1 var(--f-sign); color: var(--aub); }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin: 0; padding: 0 16px 14px; color: var(--ink-2); }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 22px 0 36px; font-size: 14px; }
.share__label { font: 700 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.share__btn { font: 600 14px/1 var(--f-text); color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; text-decoration: none; cursor: pointer; }
.share__btn:hover { border-color: var(--aub); color: var(--aub); }

/* ---------- Fuß */
.foot { background: var(--ink); color: #CFC8D2; margin-top: 30px; font-size: 15px; }
.foot__in { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1fr; gap: 28px; padding: 36px 0 20px; }
.foot a { color: #EDE6EF; text-decoration: none; display: block; padding: 3px 0; }
.foot a:hover { color: var(--sign); }
.foot__about a { display: inline; text-decoration: underline; }
.foot__logo { display: flex; align-items: center; gap: 8px; font: 800 24px/1 var(--f-sign); color: #fff; margin: 0 0 12px; }
.foot__logo b { color: var(--sign); }
.foot__mark { width: 34px; height: 34px; }
.foot__h { font: 700 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: #8E8594; margin: 0 0 10px; }
.foot__cols { columns: 2; column-gap: 16px; }
.foot__src { font-size: 13px; color: #8E8594; }
.foot__copy { font: 400 12px/1 var(--f-mono); color: #8E8594; padding: 14px 0 26px; border-top: 1px solid #2E2934; }
.foot__btn { background: none; border: 0; color: #EDE6EF; font: inherit; padding: 3px 0; cursor: pointer; }

/* ---------- Handy */
@media (max-width: 980px) {
  .top__in { flex-wrap: wrap; gap: 10px 16px; }
  .top .finder { order: 3; width: 100%; margin: 0; }
  .nav { order: 2; width: 100%; overflow-x: auto; flex-wrap: nowrap; margin: 0 -6px; }
  .hero__in, .entity__head, .entity__grid, .block--two, .duel, .gallery { grid-template-columns: 1fr; }
  /* Startseite Handy: erst Text, dann Prüfprotokoll mit Waage, dann die Suche (Betreiber) */
  .hero__in { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .hero__text { display: contents; }
  .hero__text > * { order: 1; margin-bottom: 0; }
  .protokoll--hero { order: 2; }
  .hero__search { order: 3; }
  .page-home .top .finder { display: none; }   /* Startseite: Suche steht unter der Waage, oben nicht doppelt */
  .mapbox { grid-template-columns: 1fr; height: auto; }
  .mapbox .map { height: 440px; }
  .map__info { border-left: 0; border-top: 1px solid var(--line); max-height: none !important; }
  .mi__plane { max-width: 200px; }
  .skala { grid-template-columns: repeat(2, 1fr); }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .top__band-in .top__az { display: none; }
  .logo__word { font-size: 22px; }
  .logo__mark { width: 36px; height: 36px; }
  .hero { padding-top: 24px; }
  .mapbox .map { height: 400px; }
  .mapbox--full { height: auto; min-height: 0; }
  .mapbox--full .map { height: 62vh; min-height: 360px; }
  .mappage__stage { padding: 0; }
  .mapbox--full { border-radius: 0; border-left: 0; border-right: 0; }
  .maphint { font-size: 12px; top: 56px; padding: 7px 10px 7px 8px; white-space: normal; width: max-content; max-width: calc(100% - 24px); }
  .mapmode { left: 50%; right: auto; transform: translateX(-50%); }
  .ranks--cols { columns: 1; }
  .rank { grid-template-columns: 26px minmax(0, 1fr) 50px 30px 44px; }
  .stufebox { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; }
  .plane--big { width: 140px; height: 70px; }
  .skala { grid-template-columns: 1fr; }
  .vs__pick { grid-template-columns: 1fr; }
  .vs__gegen { padding: 0; text-align: center; }
  .about { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .about__seal { width: 160px; height: 160px; }
  .panel { padding: 18px; }
  .stempel { position: static; justify-self: start; margin: 26px 0 6px 8px; width: max-content; }
  .protokoll { display: grid; }
  .idx__val { font-size: 64px; }
  .finder--big { flex-direction: column; }
  .finder--big button { padding: 14px; }
  .foot__in { grid-template-columns: 1fr; }
  .schild { min-width: 0; }
  .btchart__plot { gap: 2px; padding-left: 26px; height: 220px; }
  .btchart__grid { left: 26px; } .btchart__grid span { left: -26px; }
  .btchart__axis { gap: 2px; padding-left: 26px; }
  .btchart__axis span { visibility: hidden; overflow: visible; }
  .btchart__axis span:nth-child(4n+1) { visibility: visible; }   /* 1949, 1965, 1980, 1994, 2009, 2025 */
  .table .opt { display: none; }
  .table td, .table th { padding: 8px 6px; }
  .table .mp { width: 26px; height: 16px; margin-right: 3px; }
}

/* ---------- Labor: Fuhrpark (nur Dev) */
.fuhrpark { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.fuhrpark__item { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.fuhrpark__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fuhrpark__teal .fz { color: var(--teal); }
.fuhrpark__name { font: 800 20px/1 var(--f-sign); margin: 10px 0 0; }
.fz { display: block; width: 100%; height: auto; color: var(--aub); }
.fuhrpark__parade { display: flex; flex-wrap: wrap; gap: 6px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.fz--mini { width: 120px; }
