/* =========================================================
   KSG Quadt – Startseite
   Leitidee: „Moderne Meisterwerkstatt“ – präzise wie ein Messgerät
   ========================================================= */

/* ---------- Fonts (lokal, DSGVO) ---------- */
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-semi-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Marke – aus logo_ksg.png pipettiert: #0051A9 (7,6:1 auf Weiß) */
  --brand: #0051A9;
  --brand-700: #003F86;
  --brand-300: #6FA8E6;
  --brand-50: #EAF2FB;

  --graphite-950: #15181C;
  --graphite-900: #1D2126;
  --graphite-800: #2A3038;
  --graphite-600: #4A525C;
  --graphite-400: #8A929C;
  --steel-300: #CDD3DA;
  --steel-200: #E2E6EA;
  --steel-100: #F2F4F6;
  --white: #FFFFFF;
  --signal: #FFC400;          /* nie als Text auf Weiß */
  --signal-300: #FFD54D;

  --ok: #17A34A;
  --off: #8A929C;

  --text: var(--graphite-950);
  --text-muted: var(--graphite-600);
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #B9C0C8;
  --focus: var(--brand);

  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --font-ui: "Barlow", "Roboto", system-ui, sans-serif;

  --topbar-h: 40px;
  --nav-h: 72px;
  --header-h: calc(var(--topbar-h) + var(--nav-h));
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(21 24 28 / .06), 0 2px 8px rgb(21 24 28 / .04);
  --shadow: 0 2px 4px rgb(21 24 28 / .05), 0 12px 32px rgb(21 24 28 / .08);
  --shadow-lg: 0 8px 16px rgb(21 24 28 / .06), 0 32px 64px rgb(21 24 28 / .12);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --dur: .5s;

  --z-header: 50;
  --z-menu: 100;
  --z-bar: 40;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--graphite-950); /* Overscroll oben/unten dunkel statt weiß */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px); /* WCAG 2.4.11 */
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + .2vw, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  /* feine Körnung als normales Hintergrundmuster – bewusst KEIN fixiertes Overlay:
     Safari (iOS 26) würde ein fixiertes, transparentes Vollflächen-Element zum Einfärben
     der Browserleisten heranziehen und dann Inhalt durchscheinen lassen. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0/160px 160px, var(--white);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-700); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; }
address { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }
.tnum { font-variant-numeric: tabular-nums; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 2000;
  padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--graphite-950); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; color: #fff; --focus: var(--signal); }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
.icon-xl { width: 44px; height: 44px; stroke-width: 1.4; }
.icon-xxl { width: 64px; height: 64px; stroke-width: 1.3; }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--font-ui); font-weight: 600; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 28px; height: 10px; flex: none;
  background: linear-gradient(var(--signal), var(--signal)) left center/100% 2px no-repeat,
              repeating-linear-gradient(90deg, currentColor 0 1.5px, transparent 1.5px 7px) left bottom/100% 10px no-repeat; }
.eyebrow-light { color: #fff; }
.eyebrow-signal { color: var(--signal); }
.h2 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); font-weight: 700; color: inherit; }
.h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.45rem); font-weight: 700; }
.lead { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3rem); color: var(--text-muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .h2 { margin-bottom: 16px; }
.section-foot { margin-top: 40px; display: flex; justify-content: center; }

.ph { display: inline-block; margin-top: 4px; padding: 0 6px; border: 1px dashed var(--graphite-400); border-radius: 6px; font-size: .8125rem; color: var(--graphite-600); background: var(--steel-100); }
.placeholder-tag {
  position: absolute; left: 16px; top: 16px; z-index: 3; margin: 0; max-width: calc(100% - 32px);
  padding: 6px 10px; border: 1px dashed var(--graphite-400); border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; line-height: 1.4;
  color: var(--graphite-600); background: rgb(255 255 255 / .85);
}
.placeholder-dark { color: var(--text-on-dark-muted); background: rgb(21 24 28 / .7); border-color: #5B636D; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--brand); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-family: var(--font-ui); font-weight: 600; font-size: 1.0625rem; letter-spacing: .01em; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .25s var(--ease-out), translate .35s var(--ease-out);
  touch-action: manipulation;
}
.btn:hover { color: var(--fg); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 1.125rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { box-shadow: 0 6px 20px -6px rgb(0 81 169 / .55); }
.btn-primary:hover { --bg: var(--brand-700); }
.btn-ghost { --bg: transparent; --fg: var(--graphite-950); --bd: var(--steel-300); }
.btn-ghost:hover { --bd: var(--graphite-950); --bg: #fff; }
.btn-outline { --bg: transparent; --fg: var(--brand); --bd: var(--brand); }
.btn-outline:hover { --bg: var(--brand); --fg: #fff; }
.btn-signal { --bg: var(--signal); --fg: var(--graphite-950); box-shadow: 0 8px 28px -8px rgb(255 196 0 / .6); }
.btn-signal:hover { --bg: var(--signal-300); }
.btn-light { --bg: #fff; --fg: var(--brand-700); }
.btn-light:hover { --bg: var(--steel-100); }
.btn-dark { --bg: var(--graphite-950); --fg: #fff; }
.btn-dark:hover { --bg: var(--graphite-800); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-ui); font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .25s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-light { color: #fff; }
.link-light:hover { color: var(--signal); }

/* Live-Status */
.status-pill {
  --dot: var(--off);
  display: inline-flex; align-items: center; gap: 9px; margin: 0;
  padding: 6px 14px 6px 12px; min-height: 36px; border-radius: 999px;
  background: #fff; border: 1px solid var(--steel-200);
  font-family: var(--font-ui); font-weight: 600; font-size: .9375rem; line-height: 1.2; color: var(--graphite-950);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.status-pill[data-state="open"] { --dot: var(--ok); }
.status-pill[data-state="pause"] { --dot: var(--signal); }
.status-pill[data-state="closed"] { --dot: var(--off); }
.status-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; }
.status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--dot); opacity: 0; }
.status-pill[data-state="open"] .status-dot::after,
.status-pill[data-state="pause"] .status-dot::after { animation: pulse 1.4s var(--ease-out) 3; } /* < 5 s, WCAG 2.2.2 */
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.8); opacity: 0; } }
.status-pill-lg { min-height: 44px; font-size: 1rem; padding-inline: 14px 18px; }
.status-pill-dark { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .22); color: #fff; }

/* Hazard-Badge (Warnschraffur als Akzent) */
.hazard-badge {
  position: relative; display: inline-flex; align-items: center;
  padding: 3px 8px 3px 20px; border-radius: 6px; overflow: hidden;
  background: var(--signal); color: var(--graphite-950);
  font-family: var(--font-ui); font-weight: 600; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3;
}
.hazard-badge::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 13px;
  background: repeating-linear-gradient(-45deg, var(--graphite-950) 0 3px, var(--signal) 3px 6px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: var(--z-header); background: var(--graphite-950); }
/* Deckende Farbe ist Absicht: Safari (iOS 26) übernimmt die Hintergrundfarbe fixierter Leisten
   für den Bereich hinter Statusleiste/Adressleiste – nur mit Volltonfarbe, nicht transparent. */

/* Info-Leiste ganz oben: Status, Öffnungszeiten, Adresse, Telefon */
.topbar { height: var(--topbar-h); background: var(--graphite-950); color: #fff; --focus: var(--signal); font-family: var(--font-ui); font-weight: 500; font-size: .875rem; }
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 22px; white-space: nowrap; overflow: hidden; }
.topbar p { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.topbar .icon { color: var(--signal); width: 16px; height: 16px; }
.topbar-status { --dot: var(--off); font-weight: 600; }
.topbar-status[data-state="open"] { --dot: var(--ok); }
.topbar-status[data-state="pause"] { --dot: var(--signal); }
.topbar-hours, .topbar-address { color: var(--text-on-dark-muted); }
.topbar-hours { padding-left: 22px; border-left: 1px solid rgb(255 255 255 / .18); }
.topbar-address { display: none !important; }
.topbar-phone { display: none; align-items: center; gap: 8px; min-height: 32px; margin-left: auto; color: #fff; font-weight: 600; text-decoration: none; }
.topbar-phone:hover { color: var(--signal); }
.topbar-hours-long { display: none; }
@media (max-width: 639px) { .topbar-inner { justify-content: space-between; gap: 12px; font-size: .8125rem; } .topbar-hours { padding-left: 12px; } }
/* Stufen: lange Zeiten ab 760, Telefon ab 960, Adresse ab 1240 – nie abgeschnitten */
@media (min-width: 760px) { .topbar-hours-short { display: none; } .topbar-hours-long { display: inline; } }
@media (min-width: 960px) { .topbar-phone { display: inline-flex; } }
@media (min-width: 1240px) { .topbar-address { display: inline-flex !important; } }

.header-main { height: var(--nav-h); background: #fff; transition: box-shadow .3s; }
.site-header.is-scrolled .header-main { box-shadow: 0 1px 0 var(--steel-200), 0 8px 24px -12px rgb(21 24 28 / .12); }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--brand); min-height: 44px; flex: none; }
.brand-logo { width: 184px; height: 37px; fill: currentColor; stroke: none; }
.brand-light { color: #fff; }

.main-nav { display: none; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 10px; background: none;
  font-family: var(--font-ui); font-weight: 600; font-size: 1rem; color: var(--graphite-950); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav-link:hover { background: var(--steel-100); color: var(--brand); }
.nav-link[aria-current="true"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--signal); border-radius: 10px 10px 0 0; }

.card-ico, .svc-ico {
  display: grid; place-items: center; flex: none; width: 40px; height: 44px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--brand-50); color: var(--brand); transition: background-color .25s, color .25s;
}

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-actions .btn { display: none; }
.menu-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid var(--steel-300); background: #fff; color: var(--graphite-950);
}
.menu-btn:hover { border-color: var(--graphite-950); }

@media (min-width: 640px) { .header-actions .btn { display: inline-flex; } }
@media (min-width: 1080px) {
  .main-nav { display: block; }
  .header-actions { margin-left: 8px; }
  .menu-btn { display: none; }
}

/* ---------- Mobiles Menü ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 clamp(16px, 4vw, 40px) calc(24px + env(safe-area-inset-bottom));
  background: #fff;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .25s var(--ease-out), transform .35s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu[hidden] { display: none; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); flex: none; }
.mobile-nav { margin-top: 8px; }
.mobile-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 64px; padding: 0;
  border: 0; border-bottom: 1px solid var(--steel-200); background: none; text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: 1.85rem; color: var(--graphite-950); text-decoration: none;
}

.mobile-menu-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 14px; justify-items: start; }
.mobile-menu-address { margin: 0; color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(12px, 4vw, 56px)); overflow: hidden; background: #fff; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--steel-200) 1px, transparent 1px) 0 0/48px 48px,
    linear-gradient(90deg, var(--steel-200) 1px, transparent 1px) 0 0/48px 48px;
  -webkit-mask-image: radial-gradient(90% 70% at 70% 30%, #000 0, transparent 75%);
          mask-image: radial-gradient(90% 70% at 70% 30%, #000 0, transparent 75%);
  opacity: .7;
}
.hero-inner { position: relative; display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; padding-bottom: clamp(40px, 6vw, 80px); }
.hero-title {
  font-weight: 800; font-size: clamp(2.75rem, 1.6rem + 4.4vw, 5.25rem); line-height: .96; letter-spacing: -.015em;
  margin-bottom: 22px; color: var(--graphite-950);
}
.hero-kicker { display: flex; width: fit-content; margin-bottom: 18px; line-height: 1.35; letter-spacing: .14em; }
.hero-title .hl { color: var(--brand); background: linear-gradient(var(--signal), var(--signal)) 0 88%/100% .14em no-repeat; }
.hero-sub { font-size: clamp(1.125rem, 1.04rem + .45vw, 1.375rem); color: var(--graphite-600); max-width: 36ch; margin-bottom: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.trust-badges li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--brand-50); border: 1px solid #D3E2F4; font-family: var(--font-ui); font-weight: 600; font-size: .9375rem; line-height: 1.25; color: var(--graphite-950); }
.trust-badges .icon { color: var(--brand); }

/* Info-Karte: Öffnungszeiten + Adresse */
.hero-info {
  display: grid; gap: 20px 28px; grid-template-columns: 1fr; padding: 22px 24px; border-radius: 20px;
  background: rgb(21 24 28 / .92); color: #fff; --focus: var(--signal);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-lg);
}
.hero-info-col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.hero-info-h { display: flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-weight: 600; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.hero-info-h .icon { color: var(--signal); }
.hero-hours { margin: 0; width: 100%; display: grid; gap: 4px; font-size: 1rem; }
.hero-hours div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 4px; border-bottom: 1px dashed rgb(255 255 255 / .18); }
.hero-hours dt { color: var(--text-on-dark-muted); }
.hero-hours dd { margin: 0; font-weight: 500; }
.hero-address { font-size: 1.0625rem; line-height: 1.5; }
.link-signal { color: var(--signal); }
.link-signal:hover { color: var(--signal-300); }
@media (min-width: 560px) { .hero-info { grid-template-columns: 1.1fr 1fr; } }

.hero-media { position: relative; }
.media-frame {
  position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: var(--graphite-900); box-shadow: var(--shadow-lg);
}
.media-zoom { position: absolute; inset: 0; animation: slowzoom 18s ease-in-out infinite alternate; will-change: transform; }
.media-zoom img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 45%; }
.media-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(21 24 28 / .25), transparent 30%), linear-gradient(0deg, rgb(21 24 28 / .35), transparent 35%); }
@keyframes slowzoom { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.is-motion-paused .media-zoom { animation-play-state: paused; }
.media-pause {
  position: absolute; right: 14px; top: 14px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--steel-300); background: rgb(255 255 255 / .9); color: var(--graphite-950);
}
.media-pause:hover { background: #fff; border-color: var(--graphite-950); }
.media-plate { position: absolute; left: 16px; top: 16px; z-index: 2; }
.plate-mini {
  display: inline-flex; align-items: stretch; height: 36px; overflow: hidden;
  border: 2px solid var(--graphite-950); border-radius: 6px; background: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; line-height: 32px; padding-right: 10px; gap: 8px;
  box-shadow: var(--shadow);
}
.plate-mini .plate-eu { display: grid; place-items: end center; width: 20px; padding-bottom: 2px; background: #003399; color: #fff; font-size: .7rem; line-height: 1; }

/* Blueprint-Zeichnungen */
.blueprint { width: 100%; height: auto; overflow: visible; }
.blueprint path, .blueprint circle { stroke-linecap: round; stroke-linejoin: round; }
.js .blueprint :is(path, circle) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .is-drawn .blueprint :is(path, circle) { animation: draw 1.8s var(--ease-out) forwards; }
.js .is-drawn .blueprint .bp-line { animation-delay: .35s; }
.js .is-drawn .blueprint .bp-lift { animation-delay: .7s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (min-width: 640px) and (max-width: 1079px) { .media-frame { aspect-ratio: 16 / 9; } }
@media (min-width: 1080px) {
  .hero-inner { grid-template-columns: 1.02fr .98fr; grid-template-areas: "copy media"; align-items: stretch; }
  .hero-copy { grid-area: copy; align-self: center; }
  .hero-media { grid-area: media; }
  .media-frame { aspect-ratio: auto; height: 100%; min-height: 600px; }
  .hero-info { grid-area: media; align-self: end; margin: 0 18px 18px; position: relative; z-index: 2; }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; display: flex; align-items: center; background: var(--graphite-950); color: #fff; --focus: var(--signal); overflow: hidden; }
.marquee-viewport { display: flex; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 90%, transparent); }
.marquee-track { display: flex; flex: none; align-items: center; min-width: 100%; padding-block: 18px; animation: marquee 48s linear infinite; }
.marquee-track li { display: flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); letter-spacing: .04em; text-transform: uppercase; }
.marquee-track li::before { content: ""; width: 14px; height: 16px; flex: none; background: var(--signal); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-pause {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 clamp(12px, 3vw, 32px) 0 8px;
  border-radius: 50%; border: 1px solid rgb(255 255 255 / .3); background: transparent; color: #fff;
}
.marquee-pause:hover { border-color: var(--signal); color: var(--signal); }

/* ---------- Sektionen ---------- */
.section { position: relative; padding-block: clamp(72px, 9vw, 136px); }
.section-steel { background: var(--steel-100); }
.section-dark { background: var(--graphite-950); color: var(--text-on-dark); --focus: var(--signal); }
.section-dark .lead { color: var(--text-on-dark-muted); }
.section-dark .eyebrow:not(.eyebrow-signal) { color: var(--brand-300); }
.tread { position: relative; isolation: isolate; }
.tread::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='40' viewBox='0 0 56 40'%3E%3Cpath d='M0 8 14 0h14L14 8zM28 8 42 0h14L42 8zM0 28l14-8h14l-14 8zM28 28l14-8h14l-14 8z' fill='%23fff'/%3E%3C/svg%3E");
  background-size: 56px 40px; }

/* Messskala-Ticks als Divider */
.ticks { height: 26px; background-color: #fff;
  background-image:
    repeating-linear-gradient(90deg, var(--steel-300) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, var(--graphite-600) 0 2px, transparent 2px 120px),
    linear-gradient(var(--signal), var(--signal));
  background-size: 100% 10px, 100% 22px, 60px 3px;
  background-position: left bottom, left bottom, clamp(16px, 4vw, 40px) 0;
  background-repeat: no-repeat; }

/* ---------- Leistungen (kompakt) ---------- */
.section-tight { padding-block: clamp(56px, 7vw, 104px); }
.section-head-row { max-width: none; display: grid; gap: 12px 48px; }
.section-head-row .lead { margin: 0; }
@media (min-width: 1000px) { .section-head-row { grid-template-columns: 1fr 1fr; align-items: end; } }
.svc-list { display: grid; gap: 8px; grid-template-columns: 1fr; }
.svc {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px;
  border-radius: 14px; background: #fff; border: 1px solid var(--steel-200);
}
.svc::before, .bento-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgb(255 196 0 / .2), transparent 65%);
}
.svc:hover { border-color: var(--steel-300); box-shadow: var(--shadow-sm); }
.svc:hover::before, .bento-tile:hover::before { opacity: 1; }
.bento-tile:hover { --lift: -4px; box-shadow: var(--shadow); border-color: var(--steel-300); }
.svc:hover .svc-ico { background: var(--brand); color: #fff; }
.svc-ico { width: 40px; height: 46px; }
.svc-ico .icon { width: 22px; height: 22px; }
.svc-title { margin: 3px 0 4px; font-size: 1.15rem; font-weight: 700; line-height: 1.15; }
.svc p { margin: 0; color: var(--text-muted); font-size: .96875rem; line-height: 1.45; }
.card-ico { width: 48px; height: 54px; }
.card-ico-lg { width: 60px; height: 68px; }
.card-ico-lg .icon { width: 28px; height: 28px; }
@media (max-width: 639px) {
  .svc { gap: 12px; padding: 12px 14px; border-radius: 12px; }
  .svc-ico { width: 34px; height: 38px; }
  .svc-ico .icon { width: 19px; height: 19px; }
  .svc-title { font-size: 1.05rem; margin: 1px 0 2px; }
  .svc p { font-size: .9375rem; line-height: 1.4; }
}
@media (min-width: 640px) { .svc-list { gap: 12px; grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .svc-list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.bento-tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px; padding: 28px;
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--steel-200);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0));
  transition: transform .45s var(--ease-out), box-shadow .3s, border-color .3s, opacity .6s var(--ease-out);
}
.bento-tile p { margin: 0; color: var(--text-muted); max-width: 44ch; }
.bento-a { background: linear-gradient(160deg, #fff 40%, var(--brand-50)); }
.bento-a .h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.bento-deco { margin-top: auto; width: min(100%, 320px); align-self: flex-end; fill: none; stroke: var(--brand); stroke-width: 1.5; opacity: .45; }
.bento-dark { background: var(--graphite-950); border-color: var(--graphite-950); color: #fff; --focus: var(--signal); }
.bento-dark p { color: var(--text-on-dark-muted); }
.bento-dark .h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.bento-dark::before { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgb(255 196 0 / .18), transparent 65%); }
.bento-e { flex-direction: column; justify-content: space-between; }
.size-row { display: flex; align-items: flex-end; gap: 18px; color: var(--signal); }
.size-row .icon:nth-child(1) { width: 40px; height: 40px; }
.size-row .icon:nth-child(2) { width: 54px; height: 54px; }
.size-row .icon:nth-child(3) { width: 72px; height: 72px; }

@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-a, .bento-d, .bento-e { grid-column: span 2; }
  .bento-e { flex-direction: row; align-items: center; }
}
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); }
  .bento-a { grid-column: 1 / span 2; grid-row: span 2; }
  .bento-b { grid-column: 3; }
  .bento-c { grid-column: 4; }
  .bento-d { grid-column: 3 / span 2; }
  .bento-e { grid-column: 1 / -1; }
}

/* ---------- Groß? Kein Problem. ---------- */
.split { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split .h2 { margin-bottom: 20px; }
.split .lead strong { color: #fff; font-weight: 700; }
.split-cta { margin-top: 32px; }
.hex-list { display: grid; gap: 14px; margin-top: 28px; }
.hex-list li { position: relative; padding-left: 36px; }
.hex-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 22px;
  background: radial-gradient(circle at 50% 50%, var(--graphite-950) 0 3.5px, var(--signal) 4px);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.split-visual { position: relative; margin: 0; padding: clamp(24px, 4vw, 48px) clamp(12px, 3vw, 32px); border-radius: var(--radius-lg); border: 1px solid rgb(255 255 255 / .1);
  background:
    linear-gradient(rgb(111 168 230 / .08) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, rgb(111 168 230 / .08) 1px, transparent 1px) 0 0/28px 28px,
    radial-gradient(70% 70% at 50% 40%, rgb(0 81 169 / .3), transparent 70%), #101317; }
.split-visual .placeholder-tag { top: auto; bottom: 16px; }
.blueprint-camper { margin-top: 28px; }
.blueprint-camper .bp-main { stroke: #fff; stroke-width: 2.5; }
.blueprint-camper .bp-line { stroke: var(--brand-300); stroke-width: 1.6; }
.blueprint-camper .bp-lift { stroke: var(--signal); stroke-width: 3; }
.bp-label { position: absolute; top: 18px; right: 18px; display: inline-flex; overflow: hidden; border-radius: 8px; font-family: var(--font-head); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.bp-label-k { padding: 6px 10px; background: #fff; color: var(--graphite-950); font-size: .9rem; }
.bp-label-v { padding: 6px 12px; background: var(--signal); color: var(--graphite-950); font-size: .9rem; }
@media (min-width: 1000px) { .split { grid-template-columns: .9fr 1.1fr; } }

/* ---------- Ablauf + Reifenspur ---------- */
.process { display: grid; gap: 40px; }
.process-head .h2 { margin-bottom: 16px; }
.process-track-wrap { position: relative; }
.steps { position: relative; display: grid; gap: 18px; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; padding: 4px 0 18px; }
.step-num {
  position: relative; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: #fff; border: 2px solid var(--steel-300);
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--graphite-600); font-variant-numeric: tabular-nums;
  transition: background-color .35s, border-color .35s, color .35s, transform .45s var(--ease-spring);
}
.step.is-passed .step-num { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.06); }
.step .h3 { margin: 14px 0 6px; }
.step p { margin: 0; color: var(--text-muted); }
.track { position: absolute; left: 25px; top: 32px; bottom: 50px; width: 14px; border-radius: 4px; background: var(--steel-100); overflow: visible; }
.track-fill { position: absolute; inset: 0; border-radius: 4px; transform-origin: top; transform: scaleY(var(--p, 0));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16'%3E%3Cpath d='M0 0h6v5H0zM8 8h6v5H8z' fill='%2315181C'/%3E%3C/svg%3E") 0 0/14px 16px repeat-y; }
.track-car { position: absolute; left: 50%; top: 0; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; margin-left: -20px; margin-top: -20px;
  border-radius: 50%; background: var(--signal); color: var(--graphite-950); box-shadow: 0 4px 14px rgb(21 24 28 / .2);
  transform: translateY(var(--y, 0px)); }
.track-car .icon { width: 22px; height: 22px; transform: rotate(90deg); }
@media (min-width: 1000px) {
  .process { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
  .process-head { position: sticky; top: calc(var(--header-h) + 40px); }
  .step { grid-template-columns: 64px 1fr; padding-bottom: 28px; }
}

/* ---------- Über uns ---------- */
.about { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--graphite-900); }
.about-photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 48% 50%; }
.about-photo-tag {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 10px; background: var(--signal); color: var(--graphite-950);
  font-family: var(--font-ui); font-weight: 600; font-size: .9375rem; line-height: 1.2;
}
.about-photo-town { display: none; }
@media (min-width: 700px) { .about-photo img { aspect-ratio: 2000 / 668; } .about-photo-tag { left: 20px; bottom: 20px; } .about-photo-town { display: inline; } }
@media (min-width: 1000px) { .about-photo { grid-column: 1 / -1; } }
.about-copy .h2 { margin-bottom: 24px; }
.about-copy > p { color: var(--text-muted); max-width: 58ch; margin-top: 24px; }
.plate {
  display: inline-flex; align-items: center; gap: 14px; height: 72px; padding-right: 22px; overflow: hidden;
  border: 3px solid var(--graphite-950); border-radius: 10px; background: #fff; box-shadow: var(--shadow), inset 0 0 0 2px #fff, inset 0 0 0 3px var(--steel-300);
}
.plate-eu { display: flex; flex-direction: column; align-items: center; justify-content: space-between; align-self: stretch; width: 38px; padding: 9px 0 6px;
  background: #003399; color: #fff; font-family: var(--font-ui); font-weight: 600; font-size: 1rem; line-height: 1; }
.plate-stars { width: 18px; height: 18px; border-radius: 50%; border: 2.5px dotted var(--signal); }
.plate-text { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; letter-spacing: .06em; line-height: 1; color: var(--graphite-950); }
.plate-seals { display: grid; gap: 4px; }
.plate-seals span { width: 20px; height: 20px; border-radius: 50%; }
.plate-seals span:first-child { background: conic-gradient(var(--signal) 0 75%, #e9a800 0); }
.plate-seals span:last-child { background: radial-gradient(circle, #fff 0 3px, var(--steel-300) 3.5px); border: 1px solid var(--graphite-400); }

.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gauge { position: relative; display: flex; flex-direction: column; align-items: center; padding: 18px 14px 20px; border-radius: var(--radius-lg); text-align: center;
  background: radial-gradient(90% 70% at 50% 30%, #222831, var(--graphite-950)); color: #fff; box-shadow: var(--shadow); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.gauge-svg { width: 100%; max-width: 220px; margin-bottom: -38px; }
.gauge-ticks line { stroke: rgb(255 255 255 / .35); stroke-width: 1.5; stroke-linecap: round; }
.gauge-ticks line.major { stroke: rgb(255 255 255 / .75); stroke-width: 2.5; }
.gauge-track { fill: none; stroke: #2E353E; stroke-width: 8; stroke-linecap: round; }
.gauge-val { fill: none; stroke: var(--brand-300); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--off, 0); transition: stroke-dashoffset 1.6s var(--ease-out); }
.gauge-needle { stroke: var(--signal); stroke-width: 4; stroke-linecap: round; transform-box: view-box; transform-origin: 100px 100px; transform: rotate(var(--a, 0deg)); transition: transform 1.6s var(--ease-spring); }
.gauge-hub { fill: var(--graphite-950); stroke: var(--signal); stroke-width: 3; }
.gauge-num { position: relative; margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.gauge-label { margin: 6px 0 0; font-family: var(--font-ui); font-weight: 600; font-size: .9375rem; color: var(--text-on-dark-muted); }
@media (min-width: 1000px) { .about { grid-template-columns: 1fr 1fr; } }

/* Über uns: Geschichte, Team, Zitat */
.about-history, .about-team { min-width: 0; }
.about-sub { margin: clamp(8px, 2vw, 24px) 0 20px; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 700; }
.timeline { position: relative; display: grid; gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; width: 3px; border-radius: 3px;
  background: repeating-linear-gradient(180deg, var(--graphite-950) 0 8px, transparent 8px 14px); opacity: .2; }
.tl-item { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--steel-200); box-shadow: var(--shadow-sm); }
.tl-item > p:last-child { margin: 0; color: var(--text-muted); }
.tl-year { align-self: flex-start; margin: 0; padding: 4px 14px; border-radius: 10px; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.75rem; line-height: 1.1; letter-spacing: .02em; }
.tl-item-now .tl-year { background: var(--signal); color: var(--graphite-950); }
.tl-title { margin: 4px 0 0; font-size: clamp(1.3rem, 1.2rem + .5vw, 1.6rem); font-weight: 700; }
.tl-facts { margin: 0; display: grid; gap: 8px; }
.tl-facts dt { font-family: var(--font-ui); font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.tl-facts dd { margin: 0; font-weight: 500; }
.tl-item .hex-list, .team-card .hex-list { margin-top: 4px; gap: 10px; }
.about-team { display: grid; gap: 16px; }
.team-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--steel-200); box-shadow: var(--shadow-sm); }
.team-card p { margin: 0; color: var(--text-muted); }
.team-card p strong, .tl-item p strong { color: var(--graphite-950); }
.team-title { font-size: clamp(1.3rem, 1.2rem + .5vw, 1.6rem); font-weight: 700; }
.about-quote { position: relative; margin: 0; display: flex; align-items: flex-end; padding: 92px 28px 36px; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: var(--graphite-950); color: #fff; }
.about-quote::before { content: "“"; position: absolute; left: 24px; top: 22px; height: 56px; font-family: var(--font-head); font-weight: 800; font-size: 6rem; line-height: .8; color: var(--signal); }
.about-quote::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--graphite-950) 0 8px, var(--signal) 8px 16px); }
.about-quote p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.15; }
@media (min-width: 1000px) {
  .about-history, .about-team { grid-column: 1 / -1; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .timeline::before { left: 0; right: 0; top: 42px; bottom: auto; width: auto; height: 3px;
    background: repeating-linear-gradient(90deg, var(--graphite-950) 0 8px, transparent 8px 14px); }
  .about-team { grid-template-columns: 1fr 1fr .9fr; }
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 920px; }
.faq { border-top: 1px solid var(--steel-200); }
.faq-item { border-bottom: 1px solid var(--steel-200); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.faq-q { font-size: inherit; }
.faq-q button {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: 72px; padding: 18px 0;
  border: 0; background: none; text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); line-height: 1.2; color: var(--graphite-950);
}
.faq-q button:hover { color: var(--brand); }
.faq-icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--steel-300); transition: background-color .25s, border-color .25s, transform .4s var(--ease-out); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease-out); }
.faq-icon::after { transform: rotate(90deg); }
.faq-q button[aria-expanded="true"] .faq-icon { background: var(--signal); border-color: var(--signal); color: var(--graphite-950); transform: rotate(180deg); }
.faq-q button[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out), visibility 0s linear .4s; visibility: hidden; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 64px 24px 0; color: var(--text-muted); max-width: 68ch; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
html:not(.js) .faq-a { grid-template-rows: 1fr; visibility: visible; }

/* ---------- Kontakt ---------- */
.contact { padding-bottom: clamp(72px, 9vw, 136px); }
.contact-card {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 40px;
  padding: clamp(28px, 5vw, 64px); border-radius: 28px; color: #fff; --focus: var(--signal);
  background:
    radial-gradient(70% 90% at 0% 0%, rgb(255 255 255 / .14), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgb(0 0 0 / .25), transparent 60%),
    var(--brand);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.contact-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; z-index: -1; opacity: .35;
  background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 12px) left bottom/100% 10px no-repeat,
              repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 120px) left bottom/100% 22px no-repeat; }
.contact-card .h2 { margin-bottom: 18px; }
.contact-phone { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem); line-height: 1; letter-spacing: -.01em; }
.contact-phone .icon { width: .7em; height: .7em; stroke-width: 1.6; color: var(--signal); }
.contact-phone:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 4px; }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 10px 0 20px; color: #fff; font-weight: 500; font-size: 1.125rem; }
.contact-mail:hover { color: #fff; text-decoration-color: var(--signal); }
.contact-main { display: flex; flex-direction: column; align-items: flex-start; }
.contact-side { display: grid; gap: 28px; align-content: start; }
.contact-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--font-ui); font-weight: 600; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .85); }
.hours { margin: 0; display: grid; gap: 6px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 6px; border-bottom: 1px dashed rgb(255 255 255 / .25); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; }
.hours-note { margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: var(--signal); color: var(--graphite-950); font-weight: 500; font-size: .9375rem; }
.contact-side address { font-size: 1.0625rem; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
@media (min-width: 1000px) { .contact-card { grid-template-columns: 1.2fr .8fr; align-items: center; } }

/* ---------- Abschluss-CTA ---------- */
.final-cta { position: relative; padding-block: clamp(56px, 7vw, 96px); background: var(--signal); color: var(--graphite-950); --focus: var(--graphite-950); }
.final-cta::before, .final-cta::after { content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: repeating-linear-gradient(-45deg, var(--graphite-950) 0 12px, var(--signal) 12px 24px); }
.final-cta::before { top: 0; }
.final-cta::after { bottom: 0; }
.final-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.final-title { font-weight: 800; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem); line-height: 1; max-width: 16ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite-950); color: var(--text-on-dark-muted); --focus: var(--signal); padding-top: clamp(56px, 7vw, 96px); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--signal); text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 48px; }
.footer-claim { margin: 18px 0 20px; max-width: 34ch; }
.footer-seal { width: 66px; height: auto; opacity: .95; }
.footer-h { margin-bottom: 14px; font-family: var(--font-ui); font-weight: 600; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-text { margin-bottom: 16px; line-height: 1.8; }
.footer-text a { display: inline-block; padding-block: 4px; }
.footer-links { display: grid; gap: 2px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 24px; border-top: 1px solid rgb(255 255 255 / .12); font-size: .9375rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-on-dark-muted); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Mobile Bottom-Bar ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #fff; /* deckend, damit Safari die Werkzeugleiste weiß einfärbt */
  border-top: 1px solid var(--steel-200);
}
.bottom-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px;
  font-family: var(--font-ui); font-weight: 600; font-size: 1.0625rem; text-decoration: none; color: var(--graphite-950); border: 1px solid var(--steel-300); background: #fff; }
.bottom-bar a:first-child { background: var(--brand); border-color: var(--brand); color: #fff; }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 1080px) { .bottom-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- Textseiten (Impressum, Bedingungen …) ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(32px, 5vw, 64px)) 0 clamp(32px, 4vw, 56px); background: var(--steel-100); }
.page-hero .hero-grid-bg { opacity: .55; }
.page-hero .container { position: relative; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 14px; font-family: var(--font-ui); font-weight: 500; font-size: .9375rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--graphite-400); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--brand); }
.page-title { font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.75rem); line-height: 1; }
.page-meta { margin: 14px 0 0; color: var(--text-muted); font-size: 1rem; }

.prose { max-width: 74ch; padding-block: clamp(48px, 6vw, 88px); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.2em 0 .6em; font-size: clamp(1.35rem, 1.2rem + .7vw, 1.75rem); font-weight: 700; }
.prose p, .prose li, .prose address { color: var(--graphite-800); }
.prose p { margin: 0 0 1em; }
.prose ol { margin: 0 0 1.2em; padding-left: 1.6em; list-style: decimal; display: grid; gap: .7em; }
.prose ol ol { margin: .6em 0 0; list-style: lower-alpha; }
.prose li::marker { font-weight: 600; color: var(--brand); }
.prose ul { margin: 0 0 1.2em; padding-left: 1.4em; list-style: square; display: grid; gap: .45em; }
.prose address { margin: 0 0 1em; }
.prose .facts { margin: 0; display: grid; gap: 14px; }
.prose .facts div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--steel-200); }
.prose .facts dt { font-family: var(--font-ui); font-weight: 600; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.prose .facts dd { margin: 0; }
.prose .note { font-size: .9375rem; color: var(--text-muted); }
.toc { margin: 0 0 2.4em; padding: 20px 24px; border-radius: var(--radius); background: var(--steel-100); border: 1px solid var(--steel-200); }
.toc h2 { margin: 0 0 10px; font-family: var(--font-ui); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px 24px; }
.toc a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 700px) { .toc ol { grid-template-columns: 1fr 1fr; } .prose .facts div { grid-template-columns: 220px 1fr; gap: 24px; } }
.footer-legal a[aria-current="page"] { color: #fff; }

/* ---------- Reveal-Animationen (nur mit JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .bento-tile[data-reveal].is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); }
.js .bento-tile.is-in { transition: transform .45s var(--ease-out), box-shadow .3s, border-color .3s, opacity .7s var(--ease-out); }

.js [data-words] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js [data-words] .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-words].is-in .w > span { transform: none; }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-words] .w > span { transform: none !important; transition: opacity .3s linear !important; }
  .js [data-words] .w > span { opacity: 1; }
  .media-zoom, .marquee-track { animation: none !important; }
  .marquee-track { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-viewport { -webkit-mask-image: none; mask-image: none; }
  .marquee-pause { display: none; }
  .media-pause { display: none; }
  .js .blueprint :is(path, circle) { stroke-dashoffset: 0 !important; animation: none !important; }
  .gauge-needle, .gauge-val, .track-fill, .track-car { transition: none !important; }
  .bento-tile { --rx: 0deg !important; --ry: 0deg !important; }
  .status-dot::after { display: none; }
}

/* Windows High Contrast / forced colors */
@media (forced-colors: active) {
  .status-dot { forced-color-adjust: none; }
  .btn, .status-pill { border: 1px solid CanvasText; }
}
