/* Stau A2 – eigenes Design: Asphalt, Signalgelb, Verkehrsleittafel. Mobil zuerst, kein Framework. */
:root {
  --yellow: #ffc61a; --yellow-ink: #1a1400;
  --blue: #0b4fa8; --blue-2: #0a3f86;
  --asphalt: #0f1720; --asphalt-2: #18232f;
  --bg: #f3f1ea; --card: #fff; --line: #e0dccf; --ink: #141a22; --muted: #5a6572; --soft: #ece9df;
  --ok: #1c9b5c; --works: #3d79c9; --slow: #e0a100; --jam: #dc3b2c; --closed: #e11d2e;
  --radius: 12px; --shadow: 0 1px 2px rgba(15, 23, 32, .06), 0 6px 18px rgba(15, 23, 32, .05);
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1016; --card: #141c26; --line: #263243; --ink: #e9eef4; --muted: #9aa7b7; --soft: #1b2634;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { --bg: #0b1016; --card: #141c26; --line: #263243; --ink: #e9eef4; --muted: #9aa7b7; --soft: #1b2634; color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 2px; }
:root[data-theme="dark"] a { color: #7db3ff; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--yellow); color: var(--yellow-ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* ---- Kopf ---- */
.site-header { background: var(--asphalt); color: #fff; border-bottom: 4px solid var(--yellow); position: relative; z-index: 30; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; flex: 1 1 0; }
.brand img { flex: none; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-size: 1.45rem; font-weight: 900; letter-spacing: -.01em; }
.brand-tag { font-size: .74rem; color: #a9b6c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.theme-toggle, .nav-toggle { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #2c3a4a; background: var(--asphalt-2); color: #fff; cursor: pointer; padding: 0; }
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--yellow); }
.theme-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nt-bars, .nt-bars::before, .nt-bars::after { display: block; width: 20px; height: 2.5px; background: currentColor; border-radius: 2px; content: ""; position: relative; transition: transform .2s; }
.nt-bars::before { position: absolute; top: -7px; left: 0; }
.nt-bars::after { position: absolute; top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nt-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nt-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nt-bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav { flex-basis: 100%; display: none; }
.nav.is-open { display: block; padding-bottom: 6px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-item > a { display: block; padding: 11px 10px; color: #fff; text-decoration: none; font-weight: 700; border-radius: 8px; white-space: nowrap; }
.nav-item > a:hover, .nav-item > a.is-current { background: var(--asphalt-2); color: var(--yellow); }
.dropdown { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 0 0 6px 14px; }
.dropdown a { padding: 7px 10px; color: #c7d2de; text-decoration: none; font-size: .92rem; border-radius: 6px; }
.dropdown a:hover { background: var(--asphalt-2); color: var(--yellow); }

/* Schnellleiste (mobil, klebt oben) */
.tabs { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 25; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.tabs-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-top: 6px; padding-bottom: 6px; }
.tabs-row::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 9px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.tabs a.is-current { background: var(--yellow); color: var(--yellow-ink); }

@media (min-width: 960px) {
  .header-row { flex-wrap: nowrap; padding-top: 12px; padding-bottom: 12px; gap: 20px; }
  .nav-toggle { display: none; }
  .nav { display: block; flex: 1 1 auto; flex-basis: auto; }
  .nav-list { display: flex; justify-content: flex-end; gap: 2px; }
  .nav-item { position: relative; }
  .nav-item > a { padding: 9px 11px; font-size: .94rem; }
  .has-dd > a::after { content: "▾"; margin-left: 5px; font-size: .7em; opacity: .7; }
  .dropdown { display: none; position: absolute; right: 0; top: 100%; min-width: 230px; grid-template-columns: 1fr; padding: 8px; background: var(--asphalt); border: 1px solid #2c3a4a; border-top: 3px solid var(--yellow); border-radius: 0 0 10px 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
  .has-dd:hover .dropdown, .has-dd:focus-within .dropdown { display: grid; }
  .header-tools { order: 3; }
  .brand { flex: 0 0 auto; }
  .tabs { display: none; }
}

/* ---- Inhalt ---- */
.main { padding-top: 14px; padding-bottom: 40px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 10px; padding: 0; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.page-head { margin: 8px 0 16px; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(1.45rem, 5.2vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 900; margin: 0 0 10px; }
.lead { font-size: clamp(.95rem, 2.6vw, 1.05rem); color: var(--ink); margin: 0; max-width: 72ch; }
.lead strong { color: var(--ink); }
.block { margin: 30px 0; }
h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.01em; font-weight: 800; margin: 0 0 14px; padding-left: 14px; position: relative; }
h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px; border-radius: 3px; background: var(--yellow); }
h3 { font-size: 1.05rem; line-height: 1.3; margin: 18px 0 6px; font-weight: 800; }
.sec-h { font-size: 1.1rem; padding-left: 0; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.sec-h::before { display: none; }
.count { display: inline-block; min-width: 1.7em; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: var(--card); font-size: .78rem; font-weight: 800; text-align: center; vertical-align: 2px; }
.hint, .intro { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.intro { font-size: 1rem; margin: 0 0 12px; }
.updated { color: var(--muted); font-size: .88rem; margin: 0 0 10px; }
.notice { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); margin: 0 0 12px; }
.notice-ok { border-left: 6px solid var(--ok); }
.notice-warn { border-left: 6px solid var(--slow); }
.subhead { margin: 22px 0 8px; }
.sub-h { font-size: 1.2rem; }
.prose p, .prose li { max-width: 75ch; }
.prose h3 { margin-top: 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 12px; }
.ticks li { position: relative; padding: 4px 0 4px 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 12px; height: 7px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg) translateY(-50%); }
.timeline { padding-left: 20px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 12px; }
.facts div { min-width: 140px; }
.facts dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 0; font-weight: 700; }
blockquote { margin: 12px 0; padding: 4px 16px; border-left: 5px solid var(--yellow); background: var(--soft); border-radius: 0 8px 8px 0; }

/* ---- Autobahnschild ---- */
.sign { display: inline-block; background: var(--blue); color: #fff; border: 2px solid #fff; border-radius: 5px; padding: 0 7px; font: 800 .82rem/1.45 var(--sans); letter-spacing: .02em; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }

/* ---- Verkehrsleittafel ---- */
.board { background: #090d12; background-image: radial-gradient(rgba(255, 198, 26, .09) 1px, transparent 1.3px); background-size: 6px 6px; color: #ffc61a; border: 3px solid #26323f; border-radius: 14px; padding: 12px 14px 14px; box-shadow: inset 0 0 0 2px #000, var(--shadow); font-family: var(--mono); margin: 0 0 6px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #8d9aaa; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.board-title { display: inline-flex; align-items: center; gap: 8px; }
.board-time { color: #ffc61a; }
.board-cells { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bc a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 6px 2px; border-radius: 8px; color: inherit; text-decoration: none; }
.bc a:hover { background: rgba(255, 255, 255, .06); }
.bc strong { font-size: clamp(1.9rem, 8vw, 2.9rem); line-height: 1; font-weight: 800; color: #3ddc97; text-shadow: 0 0 12px currentColor; }
.bc span { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: #a9b6c4; }
.bc-jam strong { color: #ff5a47; } .bc-closed strong { color: #ff3b3b; } .bc-accident strong { color: #ff8a3c; }
.bc:last-child strong { color: #6fb0ff; }
.bc:last-child strong:is(:not(:empty)) { color: #6fb0ff; }
.board-line { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed #2f3c4b; font-size: .86rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: #dfe7f0; }
.bl-k { color: #8d9aaa; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.bl-v { color: #ff8a3c; font-size: 1.25rem; text-shadow: 0 0 10px currentColor; }
.bl-ok { color: #3ddc97; }
.board-msg { margin: 12px 0 0; color: #ffa63c; }

/* ---- Streckenband (West -> Ost, mobil wischbar) ---- */
.strip-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 0 12px; box-shadow: var(--shadow); }
.strip-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding: 0 14px; }
.strip { list-style: none; margin: 0 auto; padding: 44px 34px; min-width: 960px; display: flex; align-items: center; }
.st-node { display: block; flex: 0 0 0; width: 0; position: relative; height: 0; }
.st-dot { position: absolute; left: -8px; top: -8px; z-index: 2; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 4px solid var(--ink); box-shadow: 0 0 0 3px var(--card); }
.st-name { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: .74rem; font-weight: 700; }
.st-up .st-name { bottom: 16px; } .st-dn .st-name { top: 16px; }
.st-seg { flex: var(--w, 3) 1 0; min-width: 34px; margin: 0; }
.st-seg > a, .st-seg > span { display: flex; flex-direction: column; justify-content: center; gap: 4px; color: inherit; text-decoration: none; }
.lane { display: flex; align-items: center; justify-content: center; height: 14px; border-radius: 7px; background: var(--ok); color: #fff; font: 800 10px/1 var(--mono); }
.lane i { display: block; font-style: normal; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); overflow: hidden; }
.st-text { display: none; }
.lane.st-ok { background: var(--ok); opacity: .75; }
.lane.st-works { background: repeating-linear-gradient(45deg, #3d79c9 0 5px, #2b5fa8 5px 10px); }
.lane.st-slow { background: var(--slow); }
.lane.st-jam { background: var(--jam); }
.lane.st-closed { background: repeating-linear-gradient(45deg, #111 0 5px, var(--closed) 5px 10px); }
.st-seg > a:hover .lane { filter: brightness(1.15); }
.st-seg > a:focus-visible { outline-offset: 4px; }
.strip-hint { margin: 2px 14px 0; font-size: .78rem; color: var(--muted); text-align: center; }
.strip-notes { list-style: none; margin: 12px 14px 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: .88rem; }
.strip-notes li { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.strip-notes strong { font-weight: 800; }
.strip-notes .sn-d { color: var(--muted); }
.strip-legend { list-style: none; margin: 12px 14px 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--muted); }
.strip-legend .lg { width: 14px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: 0; display: inline-block; }
.strip-legend .lg.st-ok { background: var(--ok); } .strip-legend .lg.st-works { background: #3d79c9; } .strip-legend .lg.st-slow { background: var(--slow); }
.strip-legend .lg.st-jam { background: var(--jam); } .strip-legend .lg.st-closed { background: repeating-linear-gradient(45deg, #111 0 3px, var(--closed) 3px 6px); }
.lg-lanes { flex-basis: 100%; }
@media (min-width: 900px) { .strip-hint { display: none; } .strip-box { padding: 14px 0 12px; } .strip-scroll { padding: 0 18px; } }

/* ---- Filter ---- */
.filters { display: grid; gap: 10px; margin: 0 0 16px; }
.fgroup { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: flex-start; }
.fg-label { flex: 0 0 auto; min-width: 64px; padding-top: 9px; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; flex: 1 1 0; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 600; text-decoration: none; cursor: pointer; }
a.chip:hover, button.chip:hover { border-color: var(--ink); }
.chip-static { cursor: default; background: var(--soft); }
.chip.is-on.chip-dir { background: var(--ink); color: var(--card); border-color: var(--ink); }
.chip.is-on.chip-state { background: var(--soft); border-color: var(--ink); }
.chip-state:not(.is-on) { opacity: .55; text-decoration: line-through; }
.chip-toggle { position: relative; padding-left: 28px; }
.chip-toggle::before { content: ""; position: absolute; left: 11px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--dot, #8a95a3); }
.chip-toggle:not(.is-on) { opacity: .55; }
.chip-toggle:not(.is-on) .lbl { text-decoration: line-through; }
.chip-stau, .chip-closed { --dot: var(--jam); } .chip-slow { --dot: #e8741a; } .chip-dense { --dot: #d9a400; }
.chip-accident { --dot: #9b1c1c; } .chip-hazard { --dot: #8a5cc2; } .chip-works { --dot: var(--works); }
.chip-weather { --dot: #6b7f99; } .chip-ramp { --dot: #6b7480; }
.chip .n, .n-plain { opacity: .75; font-weight: 700; }
.sf-reset { border: 0; background: none; color: var(--blue); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; padding: 8px 6px; text-decoration: underline; }
:root[data-theme="dark"] .sf-reset { color: #7db3ff; }
.works-summary { margin: 0 0 12px; }

/* ---- Meldungen ---- */
.inc-list { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.sec { margin: 22px 0; scroll-margin-top: 70px; }
.inc { --c: #8a95a3; position: relative; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); min-width: 0; }
.inc-jam { --c: var(--ok); }
.inc-jam.sev-1 { --c: #d9a400; } .inc-jam.sev-2 { --c: #e8741a; } .inc-jam.sev-3 { --c: var(--jam); }
.inc-closed { --c: var(--closed); } .inc-accident { --c: #9b1c1c; }
.inc-works, .inc-lane { --c: var(--works); } .inc-weather { --c: #6b7f99; } .inc-hazard { --c: #8a5cc2; }
.inc-expired { opacity: .62; filter: grayscale(.6); }
.inc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--c); color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.inc-jam.sev-1 .tag { color: var(--yellow-ink); }
.tag-expired { background: #6b7480; }
.dir { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: .78rem; font-weight: 700; background: var(--soft); white-space: nowrap; }
.delay-box { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.delay { font-family: var(--mono); font-weight: 800; font-size: 1.02rem; padding: 2px 9px; border-radius: 6px; background: #090d12; color: #ffc61a; letter-spacing: .02em; }
.delay-3 { color: #ff6a56; } .delay-2 { color: #ffa63c; } .delay-1 { color: #ffe066; }
.trend { font-size: .76rem; font-weight: 700; }
.trend-up { color: var(--jam); } .trend-down { color: var(--ok); }
.inc-route { margin: 9px 0 0; font-size: 1.04rem; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.inc-sub { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.inc-roads { margin: 6px 0 0; display: flex; gap: 4px; }
.roadtag { padding: 1px 7px; border-radius: 4px; font-size: .74rem; font-weight: 800; color: #fff; background: #4b5563; }
.roadtag-a { background: var(--blue); } .roadtag-b { background: #b8860b; color: #fff; } .roadtag-l, .roadtag-k { background: #6b7480; }
.inc-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; font-size: .85rem; }
.inc-facts div { display: flex; gap: 6px; }
.inc-facts dt { color: var(--muted); }
.inc-facts dd { margin: 0; font-weight: 700; }
.inc-more { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
details.more { margin-top: 10px; }
details.more > summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--blue); }
:root[data-theme="dark"] details.more > summary { color: #7db3ff; }
.ad-slot { grid-column: 1 / -1; background: var(--soft); border-radius: var(--radius); padding: 6px 8px 8px; text-align: center; min-height: 110px; }
.ad-label { display: block; text-align: left; font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ad-end { margin-top: 18px; }

/* Karte unter einer Meldung */
.inc[data-k] { cursor: pointer; }
.inc.is-open { grid-column: 1 / -1; }
.inc-mapbox { margin-top: 10px; border-radius: 8px; overflow: hidden; cursor: default; min-height: 120px; }
.inc-mapbox.osmap.is-live { height: min(60vh, 340px); min-height: 240px; }
.inc-mapbox .map-consent { padding: 14px; }
.inc-geo { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 8px 0 0 auto; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--blue); cursor: pointer; transition: background .15s, border-color .15s; }
:root[data-theme="dark"] .inc-geo { color: #7db3ff; }
.inc-geo:hover { background: var(--soft); border-color: var(--blue); }
.inc-geo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inc-geo .ic-close, .inc-geo .ic-spin { display: none; }
.inc-geo[aria-expanded="true"] .ic-pin { display: none; }
.inc-geo[aria-expanded="true"] .ic-close { display: block; }
.inc-geo.is-loading svg { display: none; }
.inc-geo.is-loading .ic-spin { display: block; width: 20px; height: 20px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: a2-spin .7s linear infinite; }
@keyframes a2-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .inc-geo.is-loading .ic-spin { animation-duration: 2s; } html { scroll-behavior: auto; } }

@media (min-width: 760px) {
  .inc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .block { margin: 38px 0; }
}

/* ---- Karte ---- */
.map { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 240px; }
.map-consent { padding: 20px 16px; max-width: 60ch; }
.btn { display: inline-block; padding: 11px 20px; border: 0; border-radius: 10px; background: var(--yellow); color: var(--yellow-ink); font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 2px 0 #c79a00; }
.btn:hover { filter: brightness(1.05); }
.osmap.is-live { min-height: 380px; height: min(75vh, 560px); z-index: 0; }
.osmap .leaflet-container { height: 100%; width: 100%; font: inherit; background: #dfe6ea; }
.osmap .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.06); }
:root[data-theme="dark"] .osmap .leaflet-tile-pane { filter: grayscale(1) invert(1) contrast(.9) brightness(.88); }
:root[data-theme="dark"] .osmap.leaflet-container { background: #1f2124; }
.mk { display: block; }
.mk span { display: inline-block; transform: translate(-50%, -50%); padding: 2px 7px; border-radius: 999px; border: 2px solid #fff; color: #fff; font: 700 12px/1.3 system-ui, Arial, sans-serif; white-space: nowrap; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.mk-dot span { width: 14px; height: 14px; padding: 0; min-width: 0; }
.mk-jam span { background: #2e7d32; } .mk-jam.v1 span { background: #b8860b; } .mk-jam.v2 span { background: #e65100; } .mk-jam.v3 span { background: #c62828; }
.mk-closed span { background: #c62828; } .mk-accident span { background: #8e0000; } .mk-works span, .mk-lane span { background: #3d79c9; }
.mk-weather span { background: #4a6fa5; } .mk-hazard span { background: #7b4fa0; }
.osm-pop strong { display: block; margin-bottom: 2px; }
.osm-pop div { margin: 1px 0; }
.dir-arrow { background: none; border: 0; pointer-events: none; }
.dir-arrow svg { display: block; }
.legend { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; color: var(--muted); }
.lg-jam, .lg-closed, .lg-accident, .lg-works, .lg-hazard { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.lg-jam { background: #e65100; } .lg-closed { background: #c62828; } .lg-accident { background: #8e0000; } .lg-works { background: #3d79c9; } .lg-hazard { background: #7b4fa0; }

/* ---- Stauschwerpunkte, Kacheln ---- */
.hotspots { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: hs; }
.hotspots li { counter-increment: hs; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px 62px; box-shadow: var(--shadow); }
.hotspots li::before { content: counter(hs); position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.05rem; }
.hotspots h3 { margin: 0; }
.hotspots p { margin: 4px 0 0; }
.hs-where { color: var(--muted); font-size: .84rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hs-link { font-weight: 700; font-size: .9rem; }
@media (min-width: 760px) { .hotspots { grid-template-columns: 1fr 1fr; } }
.linkcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.linkcards a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.linkcards a:hover { border-color: var(--ink); }
.linkcards strong { font-weight: 800; }
.linkcards span { color: var(--muted); font-size: .85rem; }

/* ---- FAQ ---- */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 8px; }
.faq summary { cursor: pointer; padding: 13px 16px; font-weight: 700; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin: 0; padding: 0 16px 14px; max-width: 75ch; }

/* ---- Tabellen, Ferien, Heatmap ---- */
.tablewrap { overflow-x: auto; margin: 0 0 10px; }
.ftable { border-collapse: collapse; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: .94rem; }
.ftable th, .ftable td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.ftable thead th { background: var(--soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ftable tbody th { font-weight: 700; }
.fnote td { color: var(--muted); font-style: italic; }
.waves { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.wave { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 10px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--w, var(--ok)); }
.wave-1 { --w: var(--ok); } .wave-2 { --w: #d9a400; } .wave-3 { --w: #e8741a; } .wave-4 { --w: var(--jam); }
.wave-date { font-weight: 800; } .wave-level { font-weight: 700; color: var(--muted); }
.wave-states { grid-column: 1 / -1; font-size: .86rem; color: var(--muted); }
.two-col { display: grid; gap: 12px; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } }
.goodbad { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.goodbad h4 { margin: 0 0 4px; }
.goodbad ul { margin: 0; padding-left: 20px; }
.goodbad.good { border-left: 6px solid var(--ok); } .goodbad.bad { border-left: 6px solid var(--jam); }
.heatwrap { position: relative; overflow-x: auto; margin: 0 0 12px; }
.heat { border-collapse: separate; border-spacing: 2px; font-size: .75rem; margin: 0; }
.heat th { font-weight: 600; color: var(--muted); padding: 0 4px; text-align: center; }
.heat tbody th { text-align: right; padding-right: 6px; }
.heat td { width: 15px; min-width: 15px; height: 20px; border-radius: 3px; padding: 0; }
.heat .hh { font-weight: 400; width: 15px; padding: 0; }
.h0 { background: #e3f2e6; } .h1 { background: #c5e1a5; } .h2 { background: #ffe082; } .h3 { background: #ffb74d; } .h4 { background: #ef6c00; } .h5 { background: #b71c1c; }
:root[data-theme="dark"] .h0 { background: #1f3a2a; } :root[data-theme="dark"] .h1 { background: #3d5a2a; } :root[data-theme="dark"] .h2 { background: #7a6420; }
:root[data-theme="dark"] .h3 { background: #a8661a; } :root[data-theme="dark"] .h4 { background: #c75a00; } :root[data-theme="dark"] .h5 { background: #e04545; }
.heat-legend { margin: 6px 0 0; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.heat-legend i { width: 18px; height: 12px; border-radius: 2px; display: inline-block; }
.legal { max-width: 80ch; overflow-wrap: anywhere; }
.legal ol, .legal ul { padding-left: 22px; }
.legal img { height: auto; }

/* ---- Fuß ---- */
.site-footer { background: var(--asphalt); color: #c7d2de; border-top: 5px dashed var(--yellow); padding: 28px 0 36px; margin-top: 30px; }
.site-footer a { color: #e7eef6; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.foot-cols { display: grid; gap: 22px 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .foot-cols { grid-template-columns: repeat(4, 1fr); } }
.foot-h { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--yellow); margin: 0 0 8px; padding: 0; font-weight: 800; }
.foot-h::before { display: none; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-cols a { display: inline-block; padding: 4px 0; font-size: .92rem; }
.foot-note, .foot-copy { margin: 20px 0 0; font-size: .82rem; color: #93a1b1; }
.foot-copy { margin-top: 6px; }
.link-btn { background: none; border: 0; color: #e7eef6; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

@media print { .site-header, .tabs, .filters, .site-footer, .map, .ad-slot { display: none !important; } body { background: #fff; color: #000; } }

/* ---- Stau in meiner Nähe ---- */
.near-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 8px; }
.near-pick { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.near-pick select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; }
.btn:disabled { opacity: .6; cursor: wait; }
.near-out { margin-top: 16px; }
.near-sum { padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--yellow); border-radius: var(--radius); margin: 0 0 14px; }
.near-cols { display: grid; gap: 14px; }
@media (min-width: 760px) { .near-cols { grid-template-columns: 1fr 1fr; } }
.near-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.near-col h3 { margin: 0 0 10px; font-size: 1.1rem; }
.near-delay { margin: 0 0 10px; }
.near-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nl { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 8px 10px; border-left: 5px solid #8a95a3; background: var(--soft); border-radius: 8px; }
.nl-traffic, .nl-closed { border-left-color: var(--jam); } .nl-slow { border-left-color: #e8741a; } .nl-dense { border-left-color: #d9a400; }
.nl-accident { border-left-color: #9b1c1c; } .nl-hazard, .nl-breakdown { border-left-color: #8a5cc2; }
.nl-d { font-family: var(--mono); font-weight: 800; font-size: .88rem; padding-top: 2px; }
.nl-m { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.delay { white-space: nowrap; }
