/* ==========================================================================
   asrailed: Schilderwald
   Helle Alpenflächen, Autobahnschild-Blau, Rot aus der Flagge.
   Big Shoulders Display (schmal) für Überschriften, Overpass für Text,
   Overpass Mono für Zahlen.
   ========================================================================== */

@font-face { font-family: 'Big Shoulders Display'; src: url('../fonts/display-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Big Shoulders Display'; src: url('../fonts/display-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Overpass'; src: url('../fonts/text-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Overpass'; src: url('../fonts/text-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Overpass Mono'; src: url('../fonts/mono-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Overpass Mono'; src: url('../fonts/mono-latin-ext.woff2') format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F; }

:root {
  --snow: #f1f4f3;
  --frost: #e3e9e8;
  --white: #ffffff;
  --ink: #0b1d33;
  --ink-soft: #46586b;
  --line: #ccd6d9;
  --sign: #0a4fa3;
  --sign-deep: #083c7d;
  --red: #d0021b;
  --red-deep: #a80016;
  --green: #1d8a5c;
  --vig: #1667d4;
  --slate: #6c7c88;
  --amber: #f2b400;
  --wrap: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --mono: 'Overpass Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, .9, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--snow); color: var(--ink); font: 400 1.0625rem/1.6 'Overpass', system-ui, sans-serif; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0 0 .5em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
h1, h2 { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: .005em; }
h1 { font-size: clamp(3.2rem, 8vw, 6.6rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
p { margin: 0 0 1rem; max-width: 66ch; }
a { color: var(--sign); text-underline-offset: .2em; }
a:hover { color: var(--sign-deep); }
address { font-style: normal; margin-bottom: 1rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 60; background: var(--red); color: #fff; padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }
.fine { font-size: .9rem; color: var(--ink-soft); }
.notice { background: #fff6d6; border-left: 6px solid var(--amber); padding: .8rem 1rem; max-width: none; }

/* ---------- Schaltflächen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; text-align: center; min-height: 50px; padding: .65rem 1.4rem; border: 2px solid transparent; border-radius: 6px; font: inherit; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-go { background: var(--red); color: #fff; }
.btn-go:hover { background: var(--red-deep); color: #fff; }
.btn-sign { background: var(--sign); color: #fff; box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 4px #fff; }
.btn-sign:hover { background: var(--sign-deep); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); min-height: 42px; padding: .4rem 1rem; font-size: .95rem; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--sign); }
.btn-white:hover { background: var(--snow); color: var(--sign-deep); }
.btn-ghost-w { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost-w:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { min-height: 40px; padding: .35rem 1rem; font-size: .95rem; }
.btn:disabled { opacity: .6; cursor: progress; }
.wide { width: 100%; }

/* ---------- Kopf ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 1rem 2rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.85rem; line-height: 1; letter-spacing: .01em; }
.menu { margin-right: auto; }
.menu ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: .4rem 0; text-decoration: none; font-weight: 700; font-size: .98rem; color: var(--ink); border-bottom: 3px solid transparent; }
.menu a:hover { color: var(--ink); border-bottom-color: var(--red); }
.top-end { display: flex; align-items: center; gap: .8rem; margin-left: auto; }
.langs { display: flex; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; font-weight: 800; font-size: .85rem; }
.langs > * { padding: .25rem .65rem; text-decoration: none; }
.langs span { background: var(--ink); color: #fff; }
.langs a { color: var(--ink); }
.langs a:hover { background: var(--frost); }
.burger { display: none; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; padding: 0; place-items: center; }
.burger i, .burger i::before, .burger i::after { display: block; width: 18px; height: 2.5px; background: currentColor; position: relative; transition: transform .25s, background-color .2s; }
.burger i::before, .burger i::after { content: ''; position: absolute; left: 0; }
.burger i::before { top: -6px; }
.burger i::after { top: 6px; }
.burger[aria-expanded='true'] i { background: transparent; }
.burger[aria-expanded='true'] i::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] i::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    repeating-radial-gradient(ellipse at 88% -10%, transparent 0 34px, rgba(10, 79, 163, .07) 34px 35px),
    linear-gradient(180deg, #fff 0%, var(--snow) 100%);
}
.hero-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem var(--gap); align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.hero h1 { margin: 0; }
.hero h1 em { font-style: normal; color: var(--red); }
.trace { display: block; width: min(100%, 520px); height: 34px; margin-top: 1rem; overflow: visible; }
.trace path { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: trace 1.6s var(--ease) .2s forwards; }
.trace circle { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.trace circle.pin { fill: var(--red); }
.trace .pin { opacity: 0; animation: pin .4s ease-out 1.6s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes pin { to { opacity: 1; } }
.hero-side p { font-size: 1.15rem; color: var(--ink-soft); }
.ticks { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; margin: 0; padding: 0; font-weight: 700; font-size: .92rem; }
.ticks li { display: flex; align-items: center; gap: .4rem; }
.ticks svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* Planer als Autobahnschild */
.sign { background: var(--sign); color: #fff; padding: 6px; border-radius: 14px; box-shadow: 0 22px 44px -26px rgba(8, 60, 125, .9); }
.sign fieldset { border: 3px solid #fff; border-radius: 10px; margin: 0; padding: clamp(1rem, 2.4vw, 1.6rem); min-width: 0; }
.sign :focus-visible { outline-color: var(--amber); }
.sign-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; }
.sign-head h2 { font-size: 1.9rem; margin: 0; }
.shield-lg { display: inline-grid; place-items: center; min-width: 54px; height: 34px; padding: 0 .5rem; background: var(--red); color: #fff; border: 2px solid #fff; border-radius: 6px; font: 800 1.15rem/1 var(--display); }
.row { display: grid; gap: 1rem; align-items: end; }
.row-where { grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
.row-where .field { margin: 0; }
.row-where > :nth-child(1) { grid-column: 1; grid-row: 1; }
.row-where > :nth-child(2) { grid-column: 2; grid-row: 1; }
.row-where > :nth-child(3) { grid-column: 3; grid-row: 1; }
.row-where > :nth-child(4) { grid-column: 4; grid-row: 1; }
.row-where > :nth-child(5) { grid-column: 5; grid-row: 1; }
.reversed .row-where > :nth-child(1) { grid-column: 3; }
.reversed .row-where > :nth-child(3) { grid-column: 1; }
.sign select, .sign input[type='date'] { border-color: #fff; min-height: 54px; }
.sign .row-where select { font-size: 1.15rem; font-weight: 800; }
.swap { width: 50px; height: 50px; margin-bottom: 2px; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; transition: background-color .2s, color .2s; }
.swap svg { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.swap:hover, .swap[aria-pressed='true'] { background: #fff; color: var(--sign); }
.swap[aria-pressed='true'] svg { transform: rotate(180deg); }
.row-how { grid-template-columns: auto minmax(0, 1fr) auto; margin-top: 1.2rem; }
.sign .seg-title, .sign .field > span { color: #d6e4f7; }
.sign .seg > div { background: var(--sign-deep); }
.sign .seg label span { color: #fff; }
.sign .seg input:checked + span { background: #fff; color: var(--sign-deep); }
.sign .btn-go { min-height: 54px; padding-inline: 1.8rem; font-size: 1.05rem; }
.sign .check { margin-top: 1rem; }
.sign .check input { accent-color: #fff; }
.readout { display: grid; grid-template-columns: repeat(3, auto) minmax(0, 1fr); gap: .5rem 2rem; align-items: center; margin-top: 1.2rem; padding-top: 1rem; border-top: 2px dashed rgba(255, 255, 255, .45); }
.readout div { display: flex; flex-direction: column; }
.readout dt { order: 2; font-size: .78rem; color: #c3d6f2; }
.readout dd { order: 1; margin: 0; font: 600 1.45rem/1.1 var(--mono); }
.readout dl { display: contents; }
.readout p { margin: 0; font-size: .92rem; color: #e4ecf8; justify-self: end; text-align: right; }
.q-badge { display: inline-block; margin-right: .4rem; padding: .05rem .55rem; border-radius: 4px; font-size: .82rem; font-weight: 800; }
.q-badge.free { background: #fff; color: var(--green); }
.q-badge.vig { background: var(--red); color: #fff; }

/* Felder */
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; margin-bottom: 1rem; }
.field > span, .seg-title { font-size: .88rem; font-weight: 700; }
.field small { font-size: .85rem; color: var(--ink-soft); line-height: 1.35; }
input:not([type='radio']):not([type='checkbox']), select, textarea { width: 100%; min-width: 0; min-height: 50px; padding: .55rem .8rem; font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 2px solid #9fb0bb; border-radius: 6px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sign); box-shadow: 0 0 0 3px rgba(10, 79, 163, .25); }
.sign input:focus, .sign select:focus { box-shadow: 0 0 0 3px var(--amber); }
select { appearance: none; padding-right: 2.4rem; text-overflow: ellipsis; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230b1d33' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat right .85rem center; }
textarea { font-weight: 400; font-size: .9rem; }
[aria-invalid='true'] { border-color: var(--red) !important; box-shadow: 0 0 0 2px rgba(208, 2, 27, .2); }
.err { display: block; color: var(--red); font-style: normal; font-weight: 700; font-size: .9rem; }
.err:empty { display: none; }
.seg > div { display: flex; gap: 3px; padding: 3px; border-radius: 8px; margin-top: .3rem; background: var(--frost); }
.seg label { flex: 1 1 auto; position: relative; display: flex; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label span { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 42px; padding: .3rem .85rem; border-radius: 6px; font-weight: 700; font-size: .95rem; line-height: 1.2; pointer-events: none; color: var(--ink-soft); }
.seg input:checked + span { background: var(--sign); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 1px; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--sign); }

/* ---------- Abschnitte ---------- */
.band { padding: clamp(3.5rem, 8vw, 6.5rem) 0; background: var(--white); }
.band.alt { background: var(--snow); }
.title { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.title p { font-size: 1.12rem; color: var(--ink-soft); }
.title h2 { border-left: 8px solid var(--red); padding-left: .9rem; }

/* ---------- Ergebnis ---------- */
.result { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); background: var(--snow); }
.route-head h2 { margin-bottom: .2rem; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.route-head p { color: var(--ink-soft); max-width: none; }
.route-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--gap); align-items: start; margin-top: .5rem; }
.mapcol { position: sticky; top: 88px; }
.mapbox { background: #d9e3e6; border-radius: 10px; overflow: hidden; height: min(74vh, 640px); min-height: 420px; border: 2px solid var(--ink); }
#map { display: block; width: 100%; height: 100%; }
#map path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
#map .land path { fill: #eef2f0; stroke: #a9b9be; stroke-width: 1; }
#map .land path.at { fill: #fff; stroke: var(--red); stroke-width: 1.8; }
#map .roads path { stroke: #c2ced3; stroke-width: 1.2; }
#map .casing { stroke: var(--ink); stroke-width: 10; }
#map .seg { stroke-width: 6; stroke-linecap: butt; }
#map .seg.de, #map .seg.exempt, #map .seg.local { stroke: #2fae74; }
#map .seg.vig { stroke: var(--vig); }
#map .seg.section { stroke: #ff3347; }
#map .seg.abroad { stroke: #fff; stroke-dasharray: 9 6; }
#map .reveal { vector-effect: none !important; stroke: #fff; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: trace 1.3s var(--ease) forwards; }
#map circle { vector-effect: non-scaling-stroke; stroke: var(--ink); stroke-width: 2; fill: #fff; }
#map circle.start { stroke-width: 4; }
#map circle.goal { fill: var(--red); stroke-width: 3; }
#map circle.border { fill: var(--amber); }
#map text { font-family: 'Overpass', sans-serif; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-linejoin: round; }
#map text.main { font-weight: 900; }
#map text.place { font-weight: 700; }
#map text.country { fill: #7b8c95; font-family: var(--display); font-weight: 700; letter-spacing: .06em; stroke: none; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; padding: 0; margin: .8rem 0 0; font-size: .9rem; font-weight: 700; }
.legend li { display: flex; align-items: center; gap: .5rem; }
.legend li::before { content: ''; width: 28px; height: 8px; background: #2fae74; outline: 1.5px solid var(--ink); }
.legend .vig::before { background: var(--vig); }
.legend .section::before { background: #ff3347; }
.legend .abroad::before { background: repeating-linear-gradient(90deg, #fff 0 6px, var(--slate) 6px 10px); }

.stripcol { background: var(--white); border-radius: 10px; padding: 1.4rem 1.3rem 1.6rem; border: 2px solid var(--ink); }
.stripcol h3 { margin-bottom: 1rem; font: 800 1.6rem/1 var(--display); }
.strip { list-style: none; margin: 0; padding: 0; --track: 62px; }
.node, .leg { display: grid; grid-template-columns: var(--track) minmax(0, 1fr) auto; align-items: center; position: relative; }
.node { min-height: 30px; }
.node::before { content: ''; grid-column: 1; justify-self: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); position: relative; z-index: 1; }
.node.goal::before { background: var(--red); }
.node.is-border::before { border-radius: 3px; background: var(--amber); border-width: 3px; }
.node-name { font-weight: 800; line-height: 1.25; }
.node-name small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .8rem; }
.node-km { font: 600 .82rem var(--mono); color: var(--ink-soft); padding-left: .6rem; white-space: nowrap; }
.leg { grid-template-columns: var(--track) minmax(0, 1fr); margin-block: -7px; --c: #2fae74; }
.leg.vig { --c: var(--vig); }
.leg.section { --c: #ff3347; }
.leg::before { content: ''; position: absolute; left: calc(var(--track) / 2 - 7px); top: 0; bottom: 0; width: 14px; background: var(--c); border-inline: 2px solid var(--ink); }
.leg.abroad::before { background: repeating-linear-gradient(180deg, #fff 0 9px, var(--slate) 9px 15px); }
.leg .shield { grid-column: 1; grid-row: 1; justify-self: center; position: relative; z-index: 1; }
.leg-text { grid-column: 2; grid-row: 1; line-height: 1.3; padding-block: .7rem; }
.leg-text strong { display: block; font-size: .95rem; }
.leg-text span { font-size: .85rem; color: var(--ink-soft); }
.leg.section .leg-text strong { color: var(--red); }
.shield { display: inline-block; min-width: 46px; text-align: center; padding: .12rem .35rem; background: var(--sign); color: #fff; border: 2px solid #fff; outline: 1.5px solid var(--sign); border-radius: 5px; font-weight: 800; font-size: .82rem; line-height: 1.35; white-space: nowrap; }
.shield.land { background: var(--amber); color: var(--ink); border-color: var(--amber); outline-color: var(--ink); }

.bill { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); margin-top: var(--gap); background: var(--white); border-radius: 10px; border: 2px solid var(--ink); overflow: hidden; }
.bill.solo { grid-template-columns: minmax(0, 1fr); }
.bill.solo .bill-side { display: none; }
.bill-main { padding: clamp(1.2rem, 3vw, 2rem); }
.bill-main h3 { font: 800 1.6rem/1 var(--display); }
.bill-side { padding: clamp(1.2rem, 3vw, 2rem); background: var(--snow); border-left: 2px dashed var(--line); }
#bill-rows, #sum-rows { list-style: none; margin: 0; padding: 0; }
#bill-rows li, #sum-rows li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
#bill-rows li { padding-left: 1.4rem; position: relative; }
#bill-rows li::before { content: ''; position: absolute; left: 0; top: 1.05rem; bottom: 1.05rem; width: 6px; background: #2fae74; }
#bill-rows li.vig::before { background: var(--vig); }
#bill-rows li.section::before { background: #ff3347; }
.what { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.what span { font-size: .9rem; color: var(--ink-soft); }
.amount { font: 600 1rem var(--mono); white-space: nowrap; }
.bill-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1rem; font-weight: 800; }
.bill-total strong { font: 800 clamp(2.6rem, 5vw, 3.4rem)/1 var(--display); color: var(--red); }
.bill-notes { list-style: none; padding: 0; margin: 1rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.bill-notes li { margin-bottom: .6rem; line-height: 1.45; }
.compare { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.bill-notes:empty + .compare { border-top: 0; margin-top: 0; padding-top: 0; }
.compare p { font-weight: 700; margin-bottom: .75rem; line-height: 1.4; }

/* ---------- Vignette als Ticket ---------- */
.tariffs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.tariff {
  position: relative; display: flex; flex-direction: column; padding: 0 0 1.3rem; background: var(--white); border: 2px solid var(--ink); border-radius: 10px;
  -webkit-mask: radial-gradient(circle 11px at 0 112px, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 112px, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 112px, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 112px, transparent 98%, #000) right / 51% 100% no-repeat;
  transition: transform .25s var(--ease);
}
.tariff:hover { transform: rotate(-1deg) translateY(-3px); }
.ticket-top { height: 112px; padding: 1rem 1.3rem; background: var(--red); color: #fff; border-radius: 8px 8px 0 0; border-bottom: 2px dashed rgba(255, 255, 255, .7); display: flex; flex-direction: column; justify-content: space-between; }
.ticket-top .tag { margin: 0; font-size: .85rem; font-weight: 700; opacity: .9; }
.ticket-top h3 { margin: 0; font: 800 1.75rem/1 var(--display); }
.tariff.feat .ticket-top { background: var(--sign); }
.ticket-body { padding: 1.1rem 1.3rem 0; display: flex; flex-direction: column; flex: 1; }
.tariff .valid { font-size: .9rem; color: var(--ink-soft); margin-bottom: .6rem; }
.price { margin: 0; font: 800 clamp(2.6rem, 3.6vw, 3.2rem)/1 var(--display); }
.price .num { font: inherit; }
.price-next { margin: .35rem 0 .9rem; font-size: .88rem; color: var(--ink-soft); }
.moto { display: flex; justify-content: space-between; gap: .5rem; margin: 0 0 .9rem; padding: .55rem 0; border-block: 1px solid var(--line); font-size: .88rem; }
.price-next .num, .moto .num { font-family: inherit; font-weight: 800; }
.moto dt { color: var(--ink-soft); }
.moto dd { margin: 0; text-align: right; }
.when { font-size: .88rem; font-weight: 800; margin-bottom: 1.1rem; padding-left: 1.4rem; position: relative; }
.when::before { content: ''; position: absolute; left: 0; top: .2rem; width: 14px; height: 14px; border-radius: 50%; }
.when.now { color: var(--green); }
.when.now::before { background: var(--green); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--green); }
.when.later { color: #8a5d00; }
.when.later::before { background: var(--amber); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--amber); }
.tariff .btn { margin-top: auto; width: 100%; background: var(--ink); color: #fff; }
.tariff .btn:hover { background: var(--red); }
.info { display: flex; gap: .7rem; margin: 1.5rem 0 0; font-size: .9rem; color: var(--ink-soft); max-width: none; }
.info svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; }

.wait { margin-top: 3rem; padding: clamp(1.3rem, 3vw, 2rem); border: 2px solid var(--ink); border-radius: 10px; background: var(--snow); }
.wait h3 { font: 800 clamp(1.7rem, 3vw, 2.2rem)/1 var(--display); }
.wait p { color: var(--ink-soft); max-width: 80ch; margin: 0; }
.wait-days { display: grid; grid-template-columns: repeat(18, 1fr); gap: 4px; margin: 1.2rem 0 .6rem; }
.wait-days i { height: 44px; display: grid; place-items: end center; padding-bottom: 4px; background: var(--white); border: 1.5px solid var(--line); font: 600 .78rem var(--mono); font-style: normal; color: var(--ink-soft); position: relative; isolation: isolate; overflow: hidden; }
.wait-days i::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease) calc(var(--i) * 60ms); }
.wait-days i:nth-child(-n + 14)::before { background: rgba(208, 2, 27, .16); }
.wait-days i:nth-child(n + 15)::before { background: rgba(108, 124, 136, .2); }
.wait-days i.go { border-color: var(--green); color: #fff; font-weight: 700; }
.wait-days i.go::before { background: var(--green); }
.wait.on .wait-days i::before { transform: none; }
.wait-key { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .85rem; color: var(--ink-soft); }
.wait-key li::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: .4rem; vertical-align: -1px; background: rgba(208, 2, 27, .3); }
.wait-key li:nth-child(2)::before { background: rgba(108, 124, 136, .35); }
.wait-key li:nth-child(3)::before { background: var(--green); }

/* ---------- Streckenmaut ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.tolllist { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.tolllist li { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.tolllist .shield, .free-box .shield { justify-self: start; }
.tolllist strong { font: 600 1.05rem var(--mono); }
.tolllist + .fine { margin-top: 1rem; }
.free-box { background: var(--white); border: 2px solid var(--green); border-radius: 10px; padding: 1.5rem; }
.free-box h3 { font: 800 1.9rem/1 var(--display); color: var(--green); }
.free-box p { color: var(--ink-soft); }
.free-box ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.free-box li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: .8rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); font-weight: 700; line-height: 1.35; }

/* ---------- Regeln als Verkehrszeichen ---------- */
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.rule svg { width: 88px; height: 88px; margin-bottom: 1rem; display: block; }
.rule h3 { font: 800 1.6rem/1 var(--display); margin-bottom: .4rem; }
.rule p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* ---------- Schritte ---------- */
.steps { list-style: none; counter-reset: s; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.steps li { counter-increment: s; padding: 1.3rem 1.3rem 1.4rem; background: var(--white); border-top: 6px solid var(--sign); border-radius: 0 0 10px 10px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; background: var(--sign); color: #fff; border-radius: 6px; box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 5px #fff; font: 800 1.9rem/1 var(--display); }
.steps h3 { font: 800 1.6rem/1 var(--display); }
.steps p { color: var(--ink-soft); margin: 0; }

/* ---------- Fragen ---------- */
.faq { border-top: 3px solid var(--ink); }
details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.15rem 0; font-weight: 800; font-size: 1.1rem; line-height: 1.35; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 12px; height: 12px; margin-right: 6px; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
details[open]::details-content { block-size: auto; }
details p { padding-bottom: 1rem; color: var(--ink-soft); }

/* ---------- Abschluss: Richtungstafel ---------- */
.cta-band { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--snow); }
.direction { padding: 8px; background: var(--sign); color: #fff; border-radius: 16px; }
.direction-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: center; padding: clamp(1.4rem, 4vw, 2.6rem); border: 4px solid #fff; border-radius: 10px; }
.direction svg.arrow { width: clamp(64px, 9vw, 110px); height: auto; color: #fff; }
.direction h2 { margin: 0 0 .3rem; }
.direction p { margin: 0; color: #d6e4f7; font-size: 1.1rem; }
.direction .ctas { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Fuß ---------- */
.foot { background: var(--ink); color: #b9c6d2; padding: 3.5rem 0 2rem; font-size: .95rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.foot .brand { color: #fff; }
.foot-brand p { margin: 1rem 0 0; max-width: 38ch; }
.foot h2 { font: 800 1.3rem/1 var(--display); color: #fff; margin: 0 0 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot .cancel { display: inline-block; margin-top: .3rem; border: 2px solid #fff; border-radius: 6px; padding: .3rem .8rem; font-weight: 800; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.3rem; font-size: .85rem; }
.foot-base p { margin: 0; }

/* ---------- Bestellung und Rechtsseiten ---------- */
.pagehead { padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }
.pagehead h1, .prose h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
.pagehead p { color: var(--ink-soft); font-size: 1.12rem; }
.order { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--gap); align-items: start; padding-block: 1rem clamp(3rem, 7vw, 5rem); }
.card { background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: clamp(1.2rem, 3vw, 1.8rem); }
fieldset.card { margin: 0 0 var(--gap); min-width: 0; }
fieldset.card legend { float: left; width: 100%; font: 800 2rem/1 var(--display); padding: 0; margin-bottom: 1.1rem; }
fieldset.card legend + * { clear: both; }
.order .seg { margin-bottom: 1.1rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; align-items: start; }
.order input.plate { text-transform: uppercase; font: 700 1.4rem var(--mono); letter-spacing: .06em; padding-left: 2.8rem; border: 2.5px solid var(--ink); background: linear-gradient(90deg, #1d4fb5 0 2rem, #fff 2rem); }
.item { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; align-items: start; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.remove { grid-column: 1 / -1; justify-self: start; background: none; border: 0; padding: 0; margin: -.4rem 0 .9rem; font: inherit; font-size: .92rem; font-weight: 700; color: var(--red); text-decoration: underline; cursor: pointer; }
.order-side { position: sticky; top: 88px; }
.summary { margin-bottom: 1rem; border-top: 10px solid var(--red); }
.summary h2 { font-size: 2rem; margin-bottom: .3rem; }
.summary .check { margin-top: 1rem; }
.summary .fine { margin-top: .8rem; }
.stepper { display: flex; flex-wrap: wrap; gap: .5rem 0; list-style: none; margin: 1.6rem 0 0; padding: 0; counter-reset: none; }
.stepper li { display: flex; align-items: center; gap: .6rem; padding: .55rem 1.2rem .55rem .7rem; font-weight: 800; color: var(--ink-soft); background: var(--white); border: 2px solid var(--line); }
.stepper li:first-child { border-radius: 8px 0 0 8px; }
.stepper li:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.stepper li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; background: var(--frost); font: 800 1.1rem/1 var(--display); }
.stepper li[aria-current] { color: #fff; background: var(--sign); border-color: var(--sign); }
.stepper li[aria-current] span { background: #fff; color: var(--sign); }
.review h2 { font-size: 2.2rem; margin-bottom: .3rem; }
.review h2:focus { outline: none; }
.rev-block { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.rev-block:last-child { padding-bottom: 0; }
.rev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.rev-head h3 { margin: 0; font: 800 1.5rem/1 var(--display); }
.link-btn { background: none; border: 0; padding: .2rem 0; font: inherit; font-weight: 800; font-size: .95rem; color: var(--sign); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.link-btn:hover { color: var(--red); }
.review dl { margin: 0; display: grid; gap: .35rem; }
.rev-row { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: 1rem; }
.rev-row dt { color: var(--ink-soft); }
.rev-row dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.plate-view { display: inline-flex; align-items: stretch; margin: 0 0 1rem; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; background: #fff; }
.plate-view::before { content: ''; width: 26px; background: #1d4fb5; }
.plate-view span { padding: .3rem 1rem; font: 700 1.7rem/1.2 var(--mono); letter-spacing: .08em; }
.rev-items { list-style: none; margin: 0; padding: 0; }
.rev-items li, #rev-sum li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.rev-items li:last-child { border-bottom: 0; }
#rev-sum { list-style: none; margin: .5rem 0 0; padding: 0; }
#step-review .summary .btn-line { margin-top: .7rem; }
.status { font-weight: 700; margin-top: .8rem; }
.status:empty { display: none; }
.prose { padding-block: clamp(2.5rem, 6vw, 4rem) 5rem; }
.prose h2 { font-size: 1.9rem; margin-top: 2.2rem; }
.withdraw { margin-top: 3rem; }
.prose .withdraw h2 { margin-top: 0; }
.withdraw .btn + .fine { margin-top: .8rem; }

/* ---------- 404: Straßensperre ---------- */
.lost { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem); background: repeating-radial-gradient(ellipse at 10% 110%, transparent 0 34px, rgba(10, 79, 163, .07) 34px 35px), var(--snow); }
.barrier { display: block; width: min(100%, 560px); height: auto; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.barrier .lamp { animation: blink 1.2s steps(1, end) infinite; }
.barrier .lamp-2 { animation-delay: .6s; }
@keyframes blink { 50% { fill: #5b4a12; } }
.lost-text { max-width: 680px; }
.lost h1 { font-size: clamp(3rem, 7vw, 5.4rem); margin-bottom: .35em; }
.lost-text p { font-size: 1.12rem; color: var(--ink-soft); }
.lost-en { font-size: 1rem !important; padding-left: .9rem; border-left: 4px solid var(--line); }
.exits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 2rem; }
.exit { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 64px; padding: .8rem 1.1rem; background: var(--sign); color: #fff; border-radius: 8px; box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 5px #fff; font: 800 1.35rem/1.05 var(--display); text-decoration: none; transition: background-color .2s; }
.exit:hover { background: var(--sign-deep); color: #fff; }
.exit svg { width: 22px; height: 22px; flex: none; transition: transform .25s var(--ease); }
.exit:hover svg { transform: translateX(4px); }
.page-404 .foot { padding-top: 0; }
@media (max-width: 920px) { .exits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .exits { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hinweis „Keine Cookies“ ---------- */
.notice-cookie {
  position: fixed; left: var(--gap); bottom: var(--gap); z-index: 70; width: min(380px, calc(100% - 2 * var(--gap)));
  padding: 1.1rem 1.2rem 1.2rem; background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-top: 8px solid var(--red); border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(11, 29, 51, .55);
  animation: notice-in .35s var(--ease) both;
}
.notice-cookie p { margin: 0 0 .9rem; font-size: .92rem; line-height: 1.5; color: var(--ink-soft); }
.notice-cookie .notice-cookie-title { margin-bottom: .35rem; font: 800 1.45rem/1 var(--display); color: var(--ink); }
.notice-cookie.is-leaving { animation: notice-out .25s ease-in both; }
@keyframes notice-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes notice-out { to { opacity: 0; transform: translateY(16px); } }

/* ---------- Schmalere Bildschirme ---------- */
@media (max-width: 1080px) {
  .row-where { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .row-where > :nth-child(4) { grid-column: 1; grid-row: 2; }
  .row-where > :nth-child(5) { grid-column: 3; grid-row: 2; }
  .row-how { grid-template-columns: auto minmax(0, 1fr); }
  .row-how .btn-go { grid-column: 1 / -1; }
  .tariffs, .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout { grid-template-columns: repeat(3, auto); justify-content: start; }
  .readout p { grid-column: 1 / -1; justify-self: start; text-align: left; }
}
@media (max-width: 920px) {
  .burger { display: grid; }
  .top-cta { display: none; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: .4rem var(--gap) 1rem; background: var(--white); border-bottom: 2px solid var(--ink); display: none; }
  .menu.is-open { display: block; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu a { padding: .8rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .hero-top, .route-grid, .bill, .split, .order { grid-template-columns: minmax(0, 1fr); }
  .row-how { grid-template-columns: minmax(0, 1fr); }
  .direction-in { grid-template-columns: auto minmax(0, 1fr); }
  .direction .ctas { grid-column: 1 / -1; }
  .mapcol, .order-side { position: static; }
  .mapbox { height: 62vh; min-height: 340px; max-height: 520px; }
  .bill-side { border-left: 0; border-top: 2px dashed var(--line); }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .row-where { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .row-where > :nth-child(n) { grid-column: 1 / -1; }
  .row-where > :nth-child(1) { grid-row: 1; }
  .row-where > :nth-child(2) { grid-row: 2; justify-self: center; }
  .row-where > :nth-child(3) { grid-row: 3; }
  .row-where > :nth-child(4) { grid-column: 1; grid-row: 4; }
  .row-where > :nth-child(5) { grid-column: 2; grid-row: 4; }
  .reversed .row-where > :nth-child(1) { grid-column: 1 / -1; grid-row: 3; }
  .reversed .row-where > :nth-child(3) { grid-column: 1 / -1; grid-row: 1; }
  .swap { width: 44px; height: 44px; }
  .swap svg { transform: rotate(90deg); }
  .swap[aria-pressed='true'] svg { transform: rotate(270deg); }
  .sign input[type='date'] { padding-inline: .5rem; font-size: .95rem; }
  .sign fieldset { padding-inline: .8rem; }
  .sign .seg > div { flex-direction: column; }
  .tariffs, .rules { grid-template-columns: minmax(0, 1fr); }
  .pair, .item { grid-template-columns: 1fr; }
  .rev-row { grid-template-columns: 1fr; gap: 0; }
  .stepper li { padding-right: .8rem; font-size: .9rem; }
  .wait-days { grid-template-columns: repeat(9, 1fr); }
  .tolllist li { grid-template-columns: 52px minmax(0, 1fr) auto; gap: .7rem; }
  .strip { --track: 54px; }
  .stripcol { padding-inline: .9rem; }
  .readout { gap: .5rem 1.2rem; }
  .readout dd { font-size: 1.2rem; }
  .direction-in { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.55rem; }
  .top-in { gap: .6rem; min-height: 64px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .trace path, #map .reveal { stroke-dashoffset: 0; }
  .trace .pin { opacity: 1; }
  .wait-days i::before { transform: none; }
}
