/* astastrall.digital – Thema „Technische Zeichnung / Blaupause“
   Schriften lokal (SIL Open Font License): Saira Semi Condensed, Azeret Mono, Public Sans */
@font-face { font-family: 'Saira SC'; src: url('../fonts/saira-sc-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Saira SC'; src: url('../fonts/saira-sc-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Saira SC'; src: url('../fonts/saira-sc-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Azeret Mono'; src: url('../fonts/azeret-mono.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('../fonts/public-sans.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('../fonts/public-sans-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --bp-950: #071d3a;
  --bp-900: #0a2547;
  --bp-800: #0c315e;
  --bp-700: #123f75;
  --bp-600: #1b5294;
  --line: #dce9ff;
  --line-2: rgba(220, 233, 255, .55);
  --line-3: rgba(220, 233, 255, .24);
  --line-4: rgba(220, 233, 255, .12);
  --text: #eef4ff;
  --text-2: #bfd2ec;
  --cyan: #8fdcff;
  --mark: #ffd166;
  --mark-ink: #13243c;
  --paper: #eef1ea;
  --paper-2: #e3e8e0;
  --ink: #163d6f;
  --ink-2: #3a5b86;
  --ink-line: rgba(22, 61, 111, .22);
  --f-head: 'Saira SC', 'Arial Narrow', sans-serif;
  --f-mono: 'Azeret Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --f-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gut: clamp(18px, 4vw, 32px);
  --hh: 100px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--hh) + 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--f-body);
  color: var(--text);
  background-color: var(--bp-800);
  background-image:
    linear-gradient(rgba(176, 206, 255, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 206, 255, .13) 1px, transparent 1px),
    linear-gradient(rgba(176, 206, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 206, 255, .055) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(60, 130, 220, .32), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(4, 16, 36, .55));
}
img, svg { max-width: 100%; }
a { color: var(--cyan); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px dashed var(--mark); outline-offset: 3px; }
.paper :focus-visible { outline-color: #b3561c; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; hyphens: manual; overflow-wrap: break-word; }
h1 { font-size: clamp(2.15rem, 5.4vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.28rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p, li, dd { overflow-wrap: break-word; }
@media (max-width: 600px) { h2, h3 { hyphens: auto; } }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--f-mono); }
.small { font-size: .86rem; }
.muted { color: var(--text-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--mark); color: var(--mark-ink); padding: 10px 14px; font: 600 .9rem var(--f-mono);
}
.skip:focus { top: 10px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 31, 61, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-3);
}
.bar { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font: 700 1.3rem/1 var(--f-head); letter-spacing: .02em; }
.brand-sub { display: block; font: 400 .62rem/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); margin-top: 3px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav-pages { display: flex; gap: 4px; }
.nav-pages a {
  display: block; padding: 8px 12px; color: var(--text); text-decoration: none;
  font: 500 .8rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid transparent;
}
.nav-pages a:hover { border-color: var(--line-3); }
.nav-pages a[aria-current="page"] { border-color: var(--line-2); background: rgba(220, 233, 255, .06); }
.nav-pages a.nav-cta { background: var(--mark); color: var(--mark-ink); border-color: var(--mark); }
.nav-pages a.nav-cta:hover { background: #ffe39b; }
.subbar { border-top: 1px solid var(--line-4); }
.nav-anchors { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; min-height: 34px; overflow-x: auto; scrollbar-width: none; }
.nav-anchors::before { content: 'Auf diesem Blatt'; font: 400 .62rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-right: 10px; white-space: nowrap; }
.nav-anchors a { display: block; padding: 6px 10px; font: 400 .76rem var(--f-mono); color: var(--text-2); text-decoration: none; white-space: nowrap; }
.nav-anchors a::before { content: '§ '; color: var(--cyan); }
.nav-anchors a:hover { color: #fff; }
.ruler {
  position: relative; height: 10px; margin: 0;
  background:
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 40px) bottom / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--line-3) 0 1px, transparent 1px 8px) bottom / 100% 4px no-repeat;
}
.ruler-mark {
  position: absolute; left: 0; bottom: 0; width: 12px; height: 10px;
  background: var(--mark); clip-path: polygon(50% 100%, 0 0, 100% 0);
  will-change: transform;
}
.burger { display: none; }

@media (max-width: 979.98px) {
  .bar { min-height: 60px; gap: 12px; }
  .burger {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px;
    background: transparent; color: var(--text); border: 1px solid var(--line-2); font: 500 .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  }
  .burger svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; }
  .burger .b-x { display: none; }
  .nav-open .burger .b-x { display: inline; }
  .nav-open .burger .b-m { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bp-950); border-bottom: 1px solid var(--line-2);
    max-height: calc(100vh - 70px); overflow-y: auto; padding: 10px var(--gut) 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  }
  .nav-open .nav { display: block; }
  .nav-pages { flex-direction: column; gap: 0; }
  .nav-pages a { padding: 14px 4px; font-size: .9rem; border: 0; border-bottom: 1px solid var(--line-4); }
  .nav-pages a.nav-cta { margin-top: 12px; text-align: center; border: 0; }
  .nav-mobile-anchors { margin-top: 14px; }
  .nav-mobile-anchors p { font: 400 .62rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin: 0 0 4px; }
  .nav-mobile-anchors a { display: block; padding: 10px 4px; color: var(--text); text-decoration: none; font: 400 .86rem var(--f-mono); }
  .nav-mobile-anchors a::before { content: '§ '; color: var(--cyan); }
  .subbar { display: none; }
}
@media (min-width: 980px) { .nav-mobile-anchors { display: none; } }

/* ---------- Bausteine ---------- */
.sec { position: relative; padding: clamp(64px, 9vw, 118px) 0; }
.sec + .sec { border-top: 1px dashed var(--line-4); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin: 0 0 16px;
}
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.paper .kicker { color: #2e6aa8; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-2); max-width: 64ch; }
.paper .lead { color: var(--ink-2); }
.sec-head { max-width: 820px; margin-bottom: clamp(30px, 5vw, 52px); }

/* Maßlinie mit Pfeilen */
.dimline {
  position: relative; display: block; height: 22px; max-width: 460px; margin: 14px 0 0;
  color: var(--line-2); transform-origin: left center;
}
.dimline::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; border-top: 1px solid currentColor; }
.dimline::after { content: ''; position: absolute; left: 0; right: 0; top: 2px; bottom: 2px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; }
.dimline i { position: absolute; top: 7px; width: 9px; height: 9px; background: currentColor; }
.dimline i:first-child { left: 1px; clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.dimline i:last-of-type { right: 1px; clip-path: polygon(100% 50%, 0 0, 0 100%); }
.dimline span {
  position: absolute; left: 50%; top: 2px; transform: translateX(-50%);
  padding: 0 8px; font: 400 .66rem/18px var(--f-mono); letter-spacing: .12em; color: var(--text-2);
  background: var(--bp-800); white-space: nowrap;
}
.paper .dimline { color: var(--ink-line); }
.paper .dimline span { background: var(--paper); color: var(--ink-2); }
.js .dimline.rv { transform: scaleX(.05); opacity: .2; transition: transform 1s var(--ease), opacity .6s; }
.js .dimline.rv.in { transform: none; opacity: 1; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px;
  font: 600 .82rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--line-2); color: var(--text); background: transparent; cursor: pointer;
  position: relative; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.btn:hover { border-color: var(--line); color: #fff; background: rgba(220, 233, 255, .07); }
.btn-primary { background: var(--mark); color: var(--mark-ink); border-color: var(--mark); }
.btn-primary:hover { background: #ffe39b; color: var(--mark-ink); border-color: #ffe39b; }
.btn-primary::after { content: ''; position: absolute; inset: 4px -6px -6px 4px; border: 1px solid rgba(255, 209, 102, .45); z-index: -1; transition: inset .2s; }
.btn-primary:hover::after { inset: 2px -3px -3px 2px; }
.paper .btn { color: var(--ink); border-color: var(--ink-2); }
.paper .btn:hover { background: rgba(22, 61, 111, .07); }
.paper .btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.paper .btn-primary::after { border-color: rgba(22, 61, 111, .35); }
.paper .btn-primary:hover { background: #1f4f8c; color: #fff; }

/* Karten mit Passermarken */
.card {
  position: relative; padding: 26px 24px 24px; border: 1px solid var(--line-3);
  background: rgba(8, 31, 61, .55);
  transition: border-color .25s, transform .25s, background .25s;
}
.card::before, .card::after { content: ''; position: absolute; width: 14px; height: 14px; border-color: var(--line); border-style: solid; }
.card::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.card::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.card:hover { border-color: var(--line-2); background: rgba(8, 31, 61, .75); }
.card h3 { margin-top: 6px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.callout {
  position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center; font: 500 .8rem var(--f-mono); color: var(--line);
}
.card .ico { width: 64px; height: 64px; stroke: var(--line); fill: none; stroke-width: 1.4; margin-bottom: 8px; }
.card .ico .thin { stroke-width: .8; stroke: var(--line-2); }
.card .ico .acc { stroke: var(--mark); }
.paper .card { background: rgba(255, 255, 255, .55); border-color: var(--ink-line); }
.paper .card::before, .paper .card::after { border-color: var(--ink); }
.paper .card .ico { stroke: var(--ink); }
.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.grid-3 > .rv:nth-child(3n+2), .grid-2 > .rv:nth-child(2n) { transition-delay: .08s; }
.grid-3 > .rv:nth-child(3n) { transition-delay: .16s; }

/* Zeichenblatt mit Rahmen und Zonenmarken */
.sheet { position: relative; border: 1px solid var(--line-2); padding: 14px; background: rgba(7, 29, 58, .55); }
.sheet::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--line-3); pointer-events: none; }
.zones { position: absolute; inset: 0; pointer-events: none; font: 400 .55rem var(--f-mono); color: var(--line-2); }
.zones span { position: absolute; }
.zones .zt { top: -1px; transform: translate(-50%, -100%); padding-bottom: 2px; }
.zones .zl { left: -1px; transform: translate(-100%, -50%); padding-right: 3px; }
.paper .sheet { border-color: var(--ink-2); background: transparent; }
.paper .sheet::before { border-color: var(--ink-line); }
.paper .zones { color: var(--ink-2); }

/* Schriftfeld (Titelblock) */
.tblock { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line-2); font-size: .9rem; }
.tblock > div { border-right: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); padding: 6px 9px 7px; min-width: 0; }
.tblock dt, .tblock .lbl { display: block; font: 400 .58rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.tblock dd, .tblock .val { margin: 2px 0 0; font: 600 .98rem/1.25 var(--f-head); color: var(--text); overflow-wrap: anywhere; }
.tblock .c2 { grid-column: span 2; }
.tblock .c3 { grid-column: span 3; }
.tblock .c4 { grid-column: span 4; }
.tblock .c6 { grid-column: span 6; }
.paper .tblock { border-color: var(--ink-2); }
.paper .tblock > div { border-color: var(--ink-line); }
.paper .tblock dt, .paper .tblock .lbl { color: var(--ink-2); }
.paper .tblock dd, .paper .tblock .val { color: var(--ink); }

/* Transparentpapier */
.paper {
  color: var(--ink);
  background-color: rgba(238, 241, 234, .965);
  background-image:
    linear-gradient(rgba(22, 61, 111, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 61, 111, .07) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 30px 60px rgba(0, 0, 0, .35);
}
.paper a { color: #1d5aa0; }
.paper a:hover { color: var(--ink); }
.sec.paper + .sec { border-top: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 86px) 0 clamp(56px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--mark); }
.hero .lead { margin-top: 18px; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 30px 0 0; border-top: 1px solid var(--line-3); border-left: 1px solid var(--line-3); max-width: 600px; }
.specs div { padding: 10px 12px; border-right: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); }
.specs dt { font: 400 .6rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.specs dd { margin: 3px 0 0; font: 600 .98rem/1.25 var(--f-head); }
.hero-sheet { position: relative; overflow: hidden; }
.hero-sheet svg.drawing { display: block; width: 100%; height: auto; }
.hero-sheet .tblock { margin-top: 12px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .specs { grid-template-columns: minmax(0, 1fr); }
  .tblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tblock .c3, .tblock .c4, .tblock .c6 { grid-column: span 2; }
  .tblock .c2 { grid-column: span 1; }
}

/* Zeichnungs-SVG */
.drawing { color: var(--line); }
.drawing .ln { fill: none; stroke: var(--line); stroke-width: 1.4; }
.drawing .ln-2 { fill: none; stroke: var(--line-2); stroke-width: 1; }
.drawing .ln-3 { fill: none; stroke: var(--line-3); stroke-width: 1; }
.drawing .route { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.drawing .route-de { stroke-dasharray: 10 7; }
.drawing .toll-band { fill: url(#h-hatch); stroke: var(--mark); stroke-width: 1; }
.drawing .hatch-ln { stroke: var(--mark); stroke-width: 1.2; }
.drawing .acc { stroke: var(--mark); }
.drawing text { font-family: var(--f-mono); fill: var(--line); font-size: 11px; }
.drawing .t-lg { font-family: var(--f-head); font-weight: 600; font-size: 17px; }
.drawing .t-sm { font-size: 9.5px; fill: var(--text-2); letter-spacing: .06em; }
.drawing .t-acc { fill: var(--mark); }
.drawing .dot { fill: var(--bp-900); stroke: var(--line); stroke-width: 1.6; }
.drawing .fill-line { fill: var(--line); }
.drawing .fill-mark { fill: var(--mark); }
.js .drawing .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
.js .drawing .fade { opacity: 0; animation: fadein .8s ease forwards; }
.drawing .d1 { animation-delay: .2s; } .drawing .d2 { animation-delay: .7s; } .drawing .d3 { animation-delay: 1.2s; }
.drawing .d4 { animation-delay: 1.7s; } .drawing .d5 { animation-delay: 2.2s; } .drawing .d6 { animation-delay: 2.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.pen { offset-rotate: 0deg; animation: pen 9s linear 2.4s infinite; opacity: 0; }
.pen.is-off, .pen.is-hidden { animation-play-state: paused; }
@keyframes pen { 0% { offset-distance: 0%; opacity: 0; } 4% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* Fadenkreuz */
.crosshair { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 3; }
.ch-on .crosshair { opacity: 1; }
.ch-x, .ch-y { position: absolute; background: rgba(255, 209, 102, .55); }
.ch-x { left: -2000px; width: 4000px; top: 0; height: 1px; }
.ch-y { top: -2000px; height: 4000px; left: 0; width: 1px; }
.ch-read { position: absolute; left: 10px; top: 8px; font: 500 .66rem var(--f-mono); color: var(--mark-ink); background: var(--mark); padding: 2px 6px; white-space: nowrap; }

/* ---------- Leistungen / Kennzahlen ---------- */
.facts-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-3); }
.facts-strip > div { padding: 22px 20px; border-right: 1px solid var(--line-3); }
.facts-strip > div:last-child { border-right: 0; }
.facts-strip b { display: block; font: 700 clamp(2rem, 4vw, 2.9rem)/1 var(--f-head); color: var(--line); }
.facts-strip span { display: block; margin-top: 8px; font-size: .9rem; color: var(--text-2); }
.facts-strip small { display: block; margin-top: 6px; font: 400 .6rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
@media (max-width: 800px) {
  .facts-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-strip > div:nth-child(2) { border-right: 0; }
  .facts-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-3); }
}

/* Ablauf als Flussdiagramm */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px; counter-reset: step; }
.flow li { position: relative; border: 1px solid var(--line-2); padding: 22px 20px; background: rgba(7, 29, 58, .6); }
.flow li::before {
  counter-increment: step; content: 'Schritt ' counter(step, decimal-leading-zero);
  display: block; font: 400 .66rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px;
}
.flow li:not(:last-child)::after {
  content: ''; position: absolute; top: 50%; right: -38px; width: 32px; height: 10px; transform: translateY(-50%);
  background: var(--line);
  clip-path: polygon(0 45%, calc(100% - 9px) 45%, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, calc(100% - 9px) 55%, 0 55%);
}
.flow h3 { font-size: 1.15rem; }
.flow p { color: var(--text-2); font-size: .95rem; margin: 0; }
.paper .flow li { background: rgba(255, 255, 255, .5); border-color: var(--ink-2); }
.paper .flow li::before { color: #2e6aa8; }
.paper .flow li:not(:last-child)::after { background: var(--ink); }
.paper .flow p { color: var(--ink-2); }
@media (max-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 34px; max-width: 560px; }
  .flow li:not(:last-child)::after {
    top: auto; bottom: -30px; right: auto; left: 32px; width: 10px; height: 26px; transform: none;
    clip-path: polygon(45% 0, 55% 0, 55% calc(100% - 9px), 100% calc(100% - 9px), 50% 100%, 0 calc(100% - 9px), 45% calc(100% - 9px));
  }
}

/* Trassenplan */
.netmap { display: block; width: 100%; height: auto; }
.netmap .frame { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.netmap .gridln { stroke: var(--ink-line); stroke-width: .6; stroke-dasharray: 2 4; }
.netmap .gridlbl { font: 400 9px var(--f-mono); fill: var(--ink-2); }
.netmap .edge { fill: none; stroke: var(--ink); stroke-linecap: round; }
.netmap .e-vignette { stroke-width: 3.2; }
.netmap .e-free { stroke-width: 2; stroke-dasharray: 8 6; }
.netmap .e-foreign { stroke-width: 2; stroke-dasharray: 12 5 2 5; stroke: var(--ink-2); }
.netmap .e-toll { stroke-width: 9; stroke: url(#n-hatch); }
.netmap .e-toll-c { fill: none; stroke: #b3561c; stroke-width: 1.2; }
.netmap .n-hatch-ln { stroke: #b3561c; stroke-width: 1.6; }
.netmap .node circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }
.netmap .node.cc-at circle { fill: var(--ink); }
.netmap .node text { font: 500 11px var(--f-mono); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.netmap .node, .netmap .tlbl { transition: opacity .5s; }
.netmap.drawing .node.pending { opacity: 0; }
.netmap .tlbl { font: 600 9.5px var(--f-mono); fill: #9a4512; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }
.netmap.drawing .tlbl { opacity: 0; }
.netmap.drawn .tlbl { opacity: 1; }
.netmap .north path { fill: var(--ink); }
.netmap .north text { font: 600 11px var(--f-head); fill: var(--ink); }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.legend { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.legend svg { width: 54px; height: 14px; flex: none; }
.legend .lg { fill: none; stroke: var(--ink); }
.paper .note { border-left: 3px solid #b3561c; padding: 10px 14px; background: rgba(179, 86, 28, .06); font-size: .95rem; }
@media (max-width: 900px) { .map-wrap { grid-template-columns: minmax(0, 1fr); } }

/* Pakete */
.pkg { display: flex; flex-direction: column; }
.pkg .pkg-name { font: 700 1.7rem/1 var(--f-head); margin: 4px 0 6px; }
.pkg .price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; }
.pkg .price b { font: 700 2.5rem/1 var(--f-head); color: var(--mark); }
.paper .pkg .price b { color: var(--ink); }
.pkg .price small { font: 400 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.pkg ul { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 9px; }
.pkg li { position: relative; padding-left: 26px; font-size: .95rem; }
.pkg li::before { content: ''; position: absolute; left: 0; top: .32em; width: 13px; height: 13px; border: 1px solid var(--line-2); }
.pkg li::after { content: ''; position: absolute; left: 3px; top: calc(.32em + 3px); width: 7px; height: 4px; border-left: 1.6px solid var(--mark); border-bottom: 1.6px solid var(--mark); transform: rotate(-45deg); }
.pkg li.plus { color: var(--text-2); }
.pkg .btn { margin-top: auto; }
.pkg.is-rec { border-color: var(--mark); }
.pkg.is-rec::before, .pkg.is-rec::after { border-color: var(--mark); }
.pkg .stampmark {
  position: absolute; right: 18px; top: -13px; background: var(--mark); color: var(--mark-ink);
  font: 600 .64rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; padding: 7px 9px;
}
.pkg.is-chosen { box-shadow: 0 0 0 2px var(--cyan) inset; }

/* Zitate (Demo) */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 16px; font-size: 1.02rem; }
.quote figcaption { font: 400 .78rem var(--f-mono); color: var(--text-2); }
.demo-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px dashed var(--line-2); font: 400 .62rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.paper .demo-tag { color: #2e6aa8; border-color: var(--ink-2); }

/* Tabellen */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-2); }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl caption { caption-side: top; text-align: left; padding: 10px 14px; font: 500 .7rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); border-bottom: 1px solid var(--line-2); }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-3); vertical-align: top; }
.tbl thead th { font: 500 .66rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.tbl tbody th { font-weight: 600; }
.tbl .num { text-align: right; font-family: var(--f-mono); white-space: nowrap; }
.tbl tr:last-child > * { border-bottom: 0; }
.tbl small { display: block; color: var(--text-2); font-size: .8rem; margin-top: 2px; }
.paper .tbl-wrap { border-color: var(--ink-2); }
.paper .tbl caption { color: #2e6aa8; border-color: var(--ink-2); }
.paper .tbl th, .paper .tbl td { border-color: var(--ink-line); }
.paper .tbl thead th, .paper .tbl small { color: var(--ink-2); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 18px; height: 1px; background: var(--cyan); }
.ticks li::after { content: ''; position: absolute; left: 14px; top: calc(.55em - 3px); width: 7px; height: 7px; border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan); transform: rotate(45deg); }
.paper .ticks li::before { background: var(--ink); }
.paper .ticks li::after { border-color: var(--ink); }
.box { border: 1px solid var(--line-2); padding: 20px 22px; background: rgba(7, 29, 58, .55); }
.box h3 { font-size: 1.1rem; }
.box-mark { border-color: var(--mark); }

/* FAQ */
.faq { border-top: 1px solid var(--line-3); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line-3); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 20px 56px 20px 64px;
  font: 600 1.12rem/1.35 var(--f-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .no { position: absolute; left: 0; top: 21px; font: 400 .7rem var(--f-mono); letter-spacing: .1em; color: var(--cyan); }
.faq summary::after {
  content: ''; position: absolute; right: 10px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border: 1px solid var(--line-2); border-radius: 50%;
  background: linear-gradient(var(--line), var(--line)) center / 10px 1px no-repeat, linear-gradient(var(--line), var(--line)) center / 1px 10px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 56px 22px 64px; color: var(--text-2); }
.faq .ans p:last-child { margin: 0; }
.paper .faq, .paper .faq details { border-color: var(--ink-line); }
.paper .faq summary .no { color: #2e6aa8; }
.paper .faq summary::after { border-color: var(--ink-2); background: linear-gradient(var(--ink), var(--ink)) center / 10px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1px 10px no-repeat; }
.paper .faq .ans { color: var(--ink-2); }
@media (max-width: 560px) {
  .faq summary { padding: 18px 44px 18px 0; }
  .faq summary .no { position: static; display: block; margin-bottom: 4px; }
  .faq .ans { padding: 0 0 20px; }
}

/* Abschluss-CTA */
.final { text-align: left; }
.final .sheet { padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 30px; align-items: center; }
@media (max-width: 860px) { .final .sheet { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Formulare ---------- */
.form-sheet { padding: clamp(20px, 4vw, 36px); }
fieldset { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 14px; font: 600 1.15rem var(--f-head); }
legend small { display: block; font: 400 .66rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px; }
.paper legend small { color: #2e6aa8; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .lbl-txt { font: 500 .68rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.paper .field label, .paper .lbl-txt { color: var(--ink-2); }
.field .opt { text-transform: none; letter-spacing: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; font: 400 1rem var(--f-body); color: var(--text);
  background: rgba(4, 18, 40, .55); border: 1px solid var(--line-3); border-bottom-color: var(--line-2); border-radius: 0;
  transition: border-color .2s, background .2s;
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--line) 50%), linear-gradient(135deg, var(--line) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input::placeholder, textarea::placeholder { color: rgba(191, 210, 236, .6); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--mark); background: rgba(4, 18, 40, .8); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px dashed var(--mark); outline-offset: 2px; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.9); }
.paper input[type="text"], .paper input[type="email"], .paper input[type="tel"], .paper input[type="date"], .paper input[type="number"], .paper select, .paper textarea {
  color: var(--ink); background-color: rgba(255, 255, 255, .8); border-color: var(--ink-line); border-bottom-color: var(--ink-2);
}
.paper select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); }
.paper input::placeholder, .paper textarea::placeholder { color: #6f86a6; }
.paper input:focus, .paper select:focus, .paper textarea:focus { border-color: var(--ink); background-color: #fff; }
.paper input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: #ff9d6b; border-bottom-width: 2px; }
.paper .field.is-bad input { border-color: #b3561c; }
.field-err { margin: 0; font-size: .84rem; color: #ffb48c; min-height: 0; }
.paper .field-err { color: #9a3f0c; }
.field-err:empty { display: none; }
.form-msg { margin: 14px 0 0; font-size: .95rem; }
.form-msg:not(:empty) { padding: 12px 14px; border: 1px solid #ff9d6b; color: #ffd8c4; background: rgba(255, 157, 107, .08); }
.paper .form-msg:not(:empty) { color: #8a370a; border-color: #b3561c; background: rgba(179, 86, 28, .07); }

/* Auswahlfelder als Kacheln */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line-3);
  font: 500 .86rem var(--f-mono); color: var(--text-2); transition: border-color .2s, color .2s, background .2s;
}
.choice > span::before { content: ''; width: 12px; height: 12px; border: 1px solid var(--line-2); border-radius: 50%; flex: none; }
.choice input[type="checkbox"] + span::before { border-radius: 0; }
.choice input:checked + span { border-color: var(--mark); color: var(--text); background: rgba(255, 209, 102, .07); }
.choice input:checked + span::before { background: var(--mark); border-color: var(--mark); box-shadow: inset 0 0 0 2px var(--bp-900); }
.choice input:focus-visible + span { outline: 2px dashed var(--mark); outline-offset: 2px; }
.paper .choice > span { border-color: var(--ink-line); color: var(--ink-2); }
.paper .choice > span::before { border-color: var(--ink-2); }
.paper .choice input:checked + span { border-color: var(--ink); color: var(--ink); background: rgba(22, 61, 111, .06); }
.paper .choice input:checked + span::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }

/* Planer */
.planner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .planner { grid-template-columns: minmax(0, 1fr); } }
.ft { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: end; }
.swap { width: 48px; height: 48px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line-3); color: var(--line); cursor: pointer; }
.swap svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.swap:hover { border-color: var(--mark); color: var(--mark); }
@media (max-width: 560px) {
  .ft { grid-template-columns: minmax(0, 1fr); }
  .swap { justify-self: start; transform: rotate(90deg); }
}
.via-list { display: grid; gap: 10px; margin: 14px 0 10px; }
.via-list:empty { margin: 8px 0 0; }
.via-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 48px; gap: 8px; align-items: center; }
.via-no { font: 500 .78rem var(--f-mono); color: var(--cyan); text-align: center; border: 1px dashed var(--line-3); height: 48px; line-height: 46px; }
.via-del { height: 48px; background: transparent; border: 1px solid var(--line-3); color: var(--line); cursor: pointer; display: grid; place-items: center; }
.via-del svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; }
.via-del:hover { border-color: #ff9d6b; color: #ffb48c; }
.link-btn { background: none; border: 1px dashed var(--line-3); color: var(--cyan); font: 500 .78rem var(--f-mono); padding: 10px 14px; cursor: pointer; min-height: 44px; }
.link-btn:disabled { opacity: .45; cursor: not-allowed; }
.link-btn:not(:disabled):hover { border-color: var(--cyan); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.examples button { background: transparent; border: 1px solid var(--line-3); color: var(--text); font: 400 .78rem var(--f-mono); padding: 8px 12px; cursor: pointer; min-height: 40px; }
.examples button:hover { border-color: var(--mark); color: var(--mark); }
.aside-box h3 { margin-top: 0; }

/* Ergebnis: technischer Plan */
.result { margin-top: clamp(30px, 5vw, 50px); }
.result-sheet { padding: clamp(16px, 3vw, 28px); }
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; align-items: baseline; margin-bottom: 14px; }
.result-head h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 0; }
.result-head .code { font: 500 .78rem var(--f-mono); color: var(--cyan); letter-spacing: .1em; }
.plan { border: 1px solid var(--line-3); background: rgba(4, 18, 40, .4); margin-bottom: 18px; }
.plan-svg { display: block; width: 100%; height: auto; }
.plan-svg.is-vertical { max-width: 420px; margin: 0 auto; }
.plan-svg .axis { stroke: var(--line-4); stroke-width: 1; stroke-dasharray: 2 5; }
.plan-svg .leg { stroke: var(--line); stroke-linecap: butt; fill: none; }
.plan-svg .leg-vig { stroke-width: 4; }
.plan-svg .leg-free { stroke-width: 3; stroke-dasharray: 12 8; }
.plan-svg .leg-foreign { stroke-width: 3; stroke-dasharray: 16 6 3 6; stroke: var(--text-2); }
.plan-svg .leg-toll { stroke-width: 1.5; stroke: var(--mark); }
.plan-svg .leg-toll-band { fill: url(#hatch); stroke: var(--mark); stroke-width: 1; }
.plan-svg .hatch-line { stroke: var(--mark); stroke-width: 1.4; }
.plan-svg .ext { stroke: var(--line-3); stroke-width: 1; }
.plan-svg .lead { stroke: var(--line-3); stroke-width: 1; stroke-dasharray: 2 3; }
.plan-svg .dim { stroke: var(--line-2); stroke-width: 1; }
.plan-svg .dim-total { stroke: var(--line); }
.plan-svg .arrowhead { fill: var(--line); }
.plan-svg text { font-family: var(--f-mono); fill: var(--line); }
.plan-svg .t-name { font-family: var(--f-head); font-weight: 600; font-size: 17px; }
.plan-svg .t-road { font-size: 11px; fill: var(--cyan); }
.plan-svg .t-dim { font-size: 12px; }
.plan-svg .t-total { font-size: 13px; font-weight: 600; fill: var(--mark); }
.plan-svg .t-st { font-size: 10px; fill: var(--text-2); }
.plan-svg .st circle { fill: var(--bp-900); stroke: var(--line); stroke-width: 1.6; }
.plan-svg .st line { stroke: var(--line); stroke-width: 1; }
.plan-svg .st-stop circle { stroke: var(--mark); stroke-width: 2; }
.plan-svg.is-vertical .t-name { font-size: 16px; }
.result .tblock { margin-bottom: 18px; }
.result-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .result-cols { grid-template-columns: minmax(0, 1fr); } }
.result h4 { font-size: 1.05rem; margin: 0 0 8px; }
.result .tbl td small { max-width: 34ch; }
.tag { display: inline-block; padding: 2px 7px; font: 500 .66rem var(--f-mono); letter-spacing: .06em; border: 1px solid var(--line-3); white-space: nowrap; }
.tag-vignette { border-color: var(--line); }
.tag-toll { border-color: var(--mark); color: var(--mark); }
.tag-free { border-style: dashed; }
.tag-foreign { border-style: dotted; color: var(--text-2); }
.vig-mini { list-style: none; padding: 0; margin: 10px 0; border-top: 1px solid var(--line-3); }
.vig-mini li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-3); font-size: .93rem; }
.vig-mini b { font-family: var(--f-mono); font-weight: 500; white-space: nowrap; }
.notes { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .93rem; }
.notes .hint { color: var(--mark); }
.result-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-3); }
.result-cta p { margin: 0; color: var(--text-2); max-width: 54ch; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -6px 0 18px; font: 400 .72rem var(--f-mono); color: var(--text-2); }
.legend-inline span { display: inline-flex; align-items: center; gap: 8px; }
.legend-inline svg { width: 36px; height: 12px; }
.result.plotting .result-sheet { animation: plotin .5s ease; }
@keyframes plotin { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Service-Formular */
.booking { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 40px); align-items: start; }
@media (max-width: 960px) { .booking { grid-template-columns: minmax(0, 1fr); } }
.pkg-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pkg-choices .choice > span { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px 12px 36px; position: relative; }
.pkg-choices .choice > span::before { position: absolute; left: 14px; top: 16px; }
.pkg-choices .choice b { font: 700 1.15rem var(--f-head); color: inherit; }
@media (max-width: 520px) { .pkg-choices { grid-template-columns: minmax(0, 1fr); } }
.summary { position: sticky; top: calc(var(--hh) + 18px); }
.summary dl { margin: 0 0 16px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ink-line); }
.summary dt { font: 500 .66rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.summary dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 0 4px; border-top: 2px solid var(--ink); margin-top: 6px; }
.total-row span { font: 600 .74rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.total-row b { font: 700 2rem/1 var(--f-head); }
.summary .btn { width: 100%; margin-top: 16px; }
.pay-notice { margin-top: 16px; padding: 14px 16px; border: 2px solid var(--ink); position: relative; font-size: .94rem; }
.pay-notice b { display: block; font: 600 .72rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.pay-notice.stamp { animation: stamp .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes stamp { from { transform: scale(1.15) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Fußzeile ---------- */
.site-footer { margin-top: 0; border-top: 1px solid var(--line-2); background: rgba(7, 29, 58, .85); padding: 48px 0 30px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-2); }
.foot > div { padding: 20px 20px 22px; border-right: 1px solid var(--line-3); min-width: 0; }
.foot > div:last-child { border-right: 0; }
.foot h2 { font: 500 .66rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot a { color: var(--text); text-decoration: none; font-size: .92rem; }
.foot a:hover { color: var(--mark); text-decoration: underline; }
.foot .indep { font-size: .9rem; color: var(--text-2); margin: 12px 0 0; }
.foot-brand { font: 700 1.4rem var(--f-head); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; border: 1px solid var(--line-2); border-top: 0; padding: 12px 20px; font: 400 .74rem var(--f-mono); color: var(--text-2); }
.foot-row ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; }
.inert { color: var(--text-2); cursor: not-allowed; }
.cookie-link { background: none; border: 0; padding: 0; color: var(--cyan); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot > div:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line-3); }
  .foot > div:nth-child(2) { border-bottom: 1px solid var(--line-3); }
  .foot > div:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--line-3); }
}
@media (max-width: 520px) {
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot > div { border-right: 0; border-bottom: 1px solid var(--line-3); }
  .foot > div:last-child { border-bottom: 0; }
}

/* ---------- Cookie-Hinweis ---------- */
.cookie {
  position: fixed; left: 18px; bottom: 18px; z-index: 80; width: min(460px, calc(100vw - 36px));
  max-height: calc(100vh - 36px); overflow-y: auto;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  transform: translateY(12px); opacity: 0; transition: transform .35s var(--ease), opacity .35s;
}
.cookie.is-in { transform: none; opacity: 1; }
.cookie[hidden] { display: none; }
.cookie-head { display: grid; grid-template-columns: auto 1fr; border-bottom: 1px solid var(--ink); }
.cookie-head span { padding: 7px 12px; font: 500 .62rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; border-right: 1px solid var(--ink); }
.cookie-head span:last-child { border-right: 0; }
.cookie-body { padding: 16px 18px 18px; }
.cookie h2 { font-size: 1.25rem; margin: 0 0 6px; }
.cookie p { font-size: .9rem; color: var(--ink-2); margin-bottom: 12px; }
.cookie-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie .btn { min-height: 42px; padding: 9px 13px; font-size: .72rem; color: var(--ink); border-color: var(--ink-2); }
.cookie .btn:hover { background: rgba(22, 61, 111, .08); color: var(--ink); }
.cookie .btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.cookie .btn-primary::after { display: none; }
.cookie .btn-primary:hover { background: #1f4f8c; color: #fff; }
.cookie-panel { margin: 4px 0 14px; border-top: 1px solid var(--ink-line); }
.cookie-panel[hidden] { display: none; }
.cat { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--ink-line); }
.cat b { font: 600 1rem var(--f-head); }
.cat small { grid-column: 1; font-size: .82rem; color: var(--ink-2); }
.switch { position: relative; grid-row: 1 / span 2; grid-column: 2; width: 46px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.switch span { position: absolute; inset: 0; border: 1px solid var(--ink); background: #fff; transition: background .2s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: var(--ink-2); transition: transform .2s, background .2s; }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(20px); background: #fff; }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { outline: 2px dashed #b3561c; outline-offset: 2px; }
@media (max-width: 520px) {
  .cookie { left: 10px; right: 10px; bottom: 10px; width: auto; }
}

/* ---------- Kleinkram ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 60px); }
.page-hero .hero-grid { align-items: end; }
.crumb { font: 400 .74rem var(--f-mono); color: var(--text-2); margin-bottom: 14px; }
.crumb a { color: var(--text-2); }
.stamp-box { border: 1px solid var(--line-2); padding: 16px 18px; font-size: .95rem; }
.stamp-box b { display: block; font: 600 .7rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.pill-list li { border: 1px solid var(--line-3); padding: 5px 10px; font: 400 .78rem var(--f-mono); }
.paper .pill-list li { border-color: var(--ink-line); }
.teaser { display: flex; flex-direction: column; }
.teaser .btn { align-self: flex-start; margin-top: auto; }
.teaser p { margin-bottom: 20px; }
.price-inline { font-family: var(--f-mono); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js .rv, .js .dimline.rv { opacity: 1; transform: none; }
  .js .drawing .draw { stroke-dashoffset: 0; }
  .js .drawing .fade { opacity: 1; }
  .pen { display: none; }
}
@media print {
  .site-header, .cookie, .site-footer .foot-row { display: none; }
  body { background: #fff; color: #000; }
}
@media (max-width: 480px) {
  .card { padding: 22px 18px 20px; }
  .tbl th, .tbl td { padding: 10px 10px; }
}

.result .tbl { min-width: 560px; }
@media (max-width: 480px) {
  .brand-sub { font-size: .56rem; letter-spacing: .08em; white-space: nowrap; }
  .brand-name { font-size: 1.15rem; }
}

/* Kontakt als Schriftfeld der Zeichnung */
.titleblock { font-style: normal; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr); border: 1px solid var(--line-2); border-top: 0; }
.tb-cell { padding: 12px 20px; border-right: 1px solid var(--line-3); min-width: 0; display: grid; gap: 4px; }
.tb-cell:last-child { border-right: 0; }
.tb-k { font: 500 .66rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.tb-v { color: var(--text); font-size: .92rem; overflow-wrap: anywhere; }
.titleblock a.tb-v { text-decoration: none; }
.titleblock a.tb-v:hover { color: var(--mark); text-decoration: underline; }
.tb-cell--head .tb-v { font: 700 1rem var(--f-head); }
@media (max-width: 959px) { .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tb-cell { border-bottom: 1px solid var(--line-3); } .tb-cell:nth-child(2n) { border-right: 0; } .tb-cell:nth-child(n+3) { border-bottom: 0; } }
@media (max-width: 559px) { .titleblock { grid-template-columns: minmax(0, 1fr); } .tb-cell { border-right: 0; border-bottom: 1px solid var(--line-3); } .tb-cell:last-child { border-bottom: 0; } }
