/* =====================================================================
   WIKING Alarm-Service-Center – Stylesheet
   Farbwelt und Schrift angelehnt an wiking-sicherheit.de
   (Helvetica, Petrol #324a4e / #1a2223), Akzent aus dem ASC-Logo.
   ===================================================================== */

@view-transition { navigation: auto; }

:root {
  --font: "Helvetica Neue", "Helvetica", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Schriftskala: sechs Stufen für Fließtext und Bedienelemente */
  --fs-xs: 12px;
  --fs-sm: 13.5px;
  --fs-md: 15px;
  --fs-base: 17px;
  --fs-lg: 19px;
  --fs-xl: 22px;

  /* Text auf dunklem Grund: zwei Stufen */
  --on-dark: #d3dcde;
  --on-dark-muted: #a7b6b9;

  /* Radien: Flächen und Buttons 4px, Chips als Pille, Symbole rund */
  --radius: 4px;
  --pill: 999px;

  --petrol-900: #1a2223;
  --petrol-800: #1e2729;
  --petrol-700: #263438;
  --petrol-600: #324a4e;
  --petrol-500: #45565c;
  --petrol-400: #4c7a8a;
  --petrol-300: #5d9bb1;

  /* Eine Akzentfarbe für die ganze Seite: Magenta wie wiking-sicherheit.de */
  --red: #e80868;
  --red-ink: #e80868;
  --red-hover: #c4065a;
  --focus: #d80064;

  --bg: #ffffff;
  --bg-soft: #f3f5f5;
  --surface: #ffffff;
  --surface-2: #f7f9f9;
  --text: #1f2f32;
  --muted: #56676b;
  --line: #e1e7e8;
  --accent-text: #e80868;
  --link: var(--petrol-600);
  --link-line: rgba(50, 74, 78, .35);
  --shadow: 0 18px 50px rgba(50, 74, 78, .12);
  --map-land: #e6ecec;
  --map-line: #ffffff;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #1a2223;
  --bg-soft: #1e2729;
  --surface: #263438;
  --surface-2: #222e31;
  --text: #f1f5f5;
  --muted: #a7b6b9;
  --line: #34454a;
  --accent-text: #ff5ca8;
  --link: #fff;
  --link-line: rgba(255, 255, 255, .35);
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --map-land: #263438;
  --map-line: #1a2223;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a2223;
    --bg-soft: #1e2729;
    --surface: #263438;
    --surface-2: #222e31;
    --text: #f1f5f5;
    --muted: #a7b6b9;
    --line: #34454a;
    --accent-text: #ff5ca8;
    --link: #fff;
    --link-line: rgba(255, 255, 255, .35);
    --shadow: 0 18px 50px rgba(0, 0, 0, .35);
    --map-land: #263438;
    --map-line: #1a2223;
    color-scheme: dark;
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a, li a, dd a, .msg a, .location a { color: var(--link); text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .2s; }
p a:hover, li a:hover, dd a:hover, .msg a:hover, .location a:hover { text-decoration-color: var(--red); }
.section--dark p a, .cta p a { color: #fff; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
strong, b, summary, th { font-weight: 500; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-links { position: absolute; left: 0; top: 0; z-index: 1000; list-style: none; }
.skip-links a {
  position: fixed; left: 12px; top: -60px; background: var(--petrol-600); color: #fff;
  padding: 10px 16px; text-decoration: none; transition: top .2s;
}
.skip-links a:focus { top: 12px; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 500; letter-spacing: -.015em; overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; }
/* Silbentrennung nur am Handy und nur für sehr lange Wörter, die sonst über den Rand laufen */
@media (max-width: 620px) {
  h1, h2, h3, h4 { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 18 7 7; -webkit-hyphenate-limit-before: 7; -webkit-hyphenate-limit-after: 7; }
}
.h-display { font-size: clamp(38px, 6.4vw, 84px); text-transform: uppercase; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.2vw, 54px); }
h2 { font-size: clamp(25px, 2.9vw, 38px); }
.eyebrow + h2, .eyebrow + h1 { margin-top: 14px; }
h2 + .lead, .section__head .lead { margin-top: 16px; }
.section__head .lead { margin-top: 0; }
h3 { font-size: clamp(19px, 1.7vw, 22px); }
.lead { font-size: clamp(17px, 1.45vw, 20px); color: var(--muted); max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--red); }
.mark {
  background: var(--red); color: #fff; padding: 0 .16em; margin: 0 -.04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.prose p + p { margin-top: 1em; }
.prose h2 { margin: 1.6em 0 .6em; font-size: clamp(22px, 2.4vw, 30px); }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ul { margin: .8em 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose { max-width: 780px; }

/* ---------- Buttons (Form wie wiking-sicherheit.de) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: .6rem 2rem; min-height: 44px; border-radius: var(--radius);
  font-weight: 500; font-size: var(--fs-md); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  background: var(--red); color: #fff; border: 2px solid var(--red);
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); }
/* Auf dunklem Grund: wie im WIKING-Hero, primär wird beim Hover transparent mit weißem Rand */
.hero .btn:not(.btn--ghost):hover, .pagehead .btn:not(.btn--ghost):hover, .cta .btn:not(.btn--ghost):hover, .section--dark .btn:not(.btn--ghost):hover, .site-header .btn:not(.btn--ghost):hover {
  background: transparent; border-color: #fff; color: #fff;
}
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--red); border-color: var(--red); color: #fff; }
.hero .btn--ghost, .pagehead .btn--ghost, .cta .btn--ghost, .site-header .btn--ghost, .section--dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.btn--dark { background: #1e2729; border-color: #1e2729; color: #fff; box-shadow: 0 4px 10px rgba(50,74,78,.3); }
.btn--dark:hover { background: var(--petrol-600); border-color: var(--petrol-600); transform: translateY(-3px); box-shadow: 0 4px 10px rgba(50,74,78,.4); }
.btn--light { background: #fff; color: var(--petrol-900); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.link-arrow { font-weight: 500; text-decoration: none; color: var(--link); display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--petrol-900); color: #fff;
  transition: background .3s, box-shadow .3s;
}
.site-header.is-over-hero { background: rgba(26, 34, 35, 0); }
.site-header.menu-open { background: var(--petrol-900); }
.site-header.is-scrolled { background: rgba(26, 34, 35, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-header .wrap { max-width: 1400px; display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { flex: none; display: block; line-height: 0; }
.brand img { height: 28px; width: auto; max-width: none; aspect-ratio: 285 / 30; }
.nav { margin-left: auto; }
.nav > ul { display: flex; list-style: none; gap: 4px; }
.nav > ul > li { position: relative; }
.nav a, .nav button.nav-top {
  display: flex; align-items: center; gap: 6px; height: var(--header-h); padding: 0 11px;
  color: #fff; text-decoration: none; font-size: var(--fs-md); background: none; border: 0; white-space: nowrap;
}
.nav a:hover, .nav button.nav-top:hover, .nav [aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--red); }
.nav button.nav-top::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translateY(-3px); }
.mega {
  position: absolute; top: 100%; left: 50%; translate: -50% 8px; min-width: 520px;
  background: var(--petrol-800); border-top: 3px solid var(--red); box-shadow: 0 30px 60px rgba(0,0,0,.35);
  padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px;
  opacity: 0; visibility: hidden; transition: opacity .2s, translate .2s, visibility .2s;
}
.mega.mega--wide { min-width: 640px; grid-template-columns: repeat(3, 1fr); }
.nav li:hover > .mega, .nav li:focus-within > .mega, .nav li.open > .mega { opacity: 1; visibility: visible; translate: -50% 0; }
.mega a { height: auto; padding: 8px 10px; display: block; font-size: var(--fs-md); border-radius: var(--radius); }
.mega a small { display: block; color: var(--on-dark-muted); font-size: var(--fs-xs); }
.mega a:hover { background: rgba(255,255,255,.06); color: #fff; }
.mega .mega-title { grid-column: 1 / -1; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); padding: 0 10px 6px; }
.header-cta { white-space: nowrap; }
.header-tel { padding: .5rem 1.1rem; gap: 8px; }
.header-tel svg { width: 17px; height: 17px; }
.nav-theme { display: none; }
.nav-top--plain::after { display: none; }
.nav-theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; width: 44px; height: 44px; }
.menu-toggle svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2; fill: none; }

@media (max-width: 1200px) {
  .header-cta { display: none; }
}
@media (max-width: 1560px) {
  .header-tel span { display: none; }
  .header-tel { padding: .5rem .7rem; }
}
@media (max-width: 960px) {
  .header-tel { margin-left: auto; }
  .menu-toggle { margin-left: 4px; }
}
@media (max-width: 960px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--petrol-900);
    overflow-y: auto; padding: 12px var(--gutter) 40px; display: none;
  }
  .site-header.menu-open .nav { display: block; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav a, .nav button.nav-top { height: auto; padding: 14px 0; font-size: var(--fs-lg); width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .mega, .mega.mega--wide { position: static; translate: none; min-width: 0; opacity: 1; visibility: visible; display: none; grid-template-columns: 1fr; box-shadow: none; padding: 8px 0 12px 12px; border-top: 0; background: transparent; }
  .nav li.open > .mega { display: grid; translate: none; }
  .nav li:hover > .mega { translate: none; }
  .mega a { font-size: var(--fs-base); }
  .nav-theme { display: block; }
  .nav .nav-top--plain { gap: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--petrol-900); overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 80px) 0 72px;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02) translate(-.4%, .2%); } to { transform: scale(1.09) translate(.4%, -.3%); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(17,24,25,.92) 0%, rgba(17,24,25,.65) 45%, rgba(17,24,25,.15) 100%),
    linear-gradient(0deg, rgba(17,24,25,.85) 0%, transparent 45%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
/* Startseite: Bild über die ganze Fläche, Text nah an den linken Rand statt im zentrierten Satzspiegel */
.hero > .wrap { max-width: none; padding-left: clamp(20px, 4vw, 72px); padding-right: clamp(20px, 4vw, 72px); }
.hero__content { max-width: 1120px; }
/* Headline wie bei wiking-sicherheit.de: eine Zeile, Schlüsselwort im roten Kasten.
   Die Schriftgröße richtet sich nach der Breite, damit "ALARMZENTRALE." nie im Wort umbricht. */
.hero h1 {
  text-transform: uppercase; font-weight: 600;
  hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; word-break: keep-all;
  font-size: min(84px, 6.1vw); line-height: 1.12; letter-spacing: -.02em; margin: 18px 0 26px;
}
.hero h1 .mark { display: inline-block; padding: .02em .14em .04em; margin-left: .06em; animation: markwipe .9s cubic-bezier(.7,0,.2,1) .25s both; }
.hero h1 .mark span { display: inline-block; animation: markin .5s ease-out .85s both; }
@keyframes markwipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes markin { from { opacity: 0; transform: translateY(.18em); } }
.hero .lead { color: var(--on-dark); max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .eyebrow { color: var(--on-dark); }

/* Leitstellen-Monitor-Anmutung: Scanlinie und Kamera-Einblendung oben rechts */
.hero__scan { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero__scan::before {
  content: ""; position: absolute; left: 0; right: 0; height: 140px; top: -140px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .045) 85%, rgba(255, 255, 255, .12) 100%);
  animation: scan 7s linear infinite;
}
.hero__scan::after {
  content: ""; position: absolute; inset: 0; opacity: .22;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 1px, transparent 1px 3px);
}
@keyframes scan { to { transform: translateY(calc(100vh + 280px)); } }


.hero__status {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 56px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.18); font-size: var(--fs-sm); color: var(--on-dark);
}
.hero__status b { color: #fff; font-variant-numeric: tabular-nums; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; margin-right: 8px; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: live 2s infinite; vertical-align: 1px; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

/* Kleiner Seitenkopf für Unterseiten */
.pagehead { position: relative; color: #fff; background: var(--petrol-900); overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 70px) 0 64px; }
.pagehead__media { position: absolute; inset: 0; opacity: .5; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,24,25,.95), rgba(17,24,25,.55)); }
.pagehead .wrap { position: relative; z-index: 2; }
.pagehead h1 { margin: 14px 0 16px; max-width: 900px; }
.pagehead .lead { color: var(--on-dark); }
.pagehead .eyebrow { color: var(--on-dark); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: var(--fs-sm); color: var(--on-dark-muted); margin-bottom: 26px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: #fff; text-decoration: none; }
@media (hover: hover) { .crumbs a:hover { text-decoration: underline; } }

/* ---------- Sektionen ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--petrol-900); color: #fff; }
.section--dark .lead, .section--dark .muted { color: var(--on-dark-muted); }
.section--dark .eyebrow { color: var(--on-dark-muted); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head h2 { margin-top: 14px; }
.section__head--single { grid-template-columns: 1fr; max-width: 820px; }
.muted { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--center { align-items: center; }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 56px; }
.stat { padding: 28px 24px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(28px, 3vw, 42px); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }
.stat span { color: var(--muted); font-size: var(--fs-md); }

/* ---------- Leistungen als Kacheln: oberes Drittel Bild (Mini-Hero), darunter Text ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile__media { position: relative; aspect-ratio: 16 / 7.5; overflow: hidden; background: var(--petrol-900); isolation: isolate; }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.8); transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s; }
.tile__media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,24,25,.05) 20%, rgba(17,24,25,.85) 100%); }
.tile__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.tile:hover .tile__media img, .tile:focus-visible .tile__media img { transform: scale(1.06); filter: saturate(1); }
.tile:hover .tile__media::after, .tile:focus-visible .tile__media::after { transform: scaleX(1); }
.tile__num { position: absolute; top: 16px; left: 20px; display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-xs); letter-spacing: .14em; color: rgba(255,255,255,.9); }
.tile__num::before { content: ""; width: 22px; height: 2px; background: var(--red); }
.tile__media h3 { position: absolute; left: 20px; right: 20px; bottom: 16px; font-size: var(--fs-lg); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.tile__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 22px; flex: 1; }
.tile__text { color: var(--muted); font-size: var(--fs-md); line-height: 1.55; }
.tile__more { display: inline-flex; gap: 8px; align-items: center; margin-top: auto; font-size: var(--fs-md); font-weight: 500; color: var(--link); }
.tile__more::after { content: "→"; transition: transform .25s; }
.tile:hover .tile__more::after { transform: translateX(4px); }

/* ---------- USP-Leiste unter dem Hero ---------- */
.usps { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.usps__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp { padding: 34px 28px 32px 0; }
.usp + .usp { padding-left: 28px; border-left: 1px solid var(--line); }
.usp__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.usp__icon { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; }
.usp__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.usp h3 { font-size: var(--fs-base); line-height: 1.3; }
.usp p { color: var(--muted); font-size: var(--fs-md); line-height: 1.55; }

/* ---------- Zielgruppen ---------- */
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.segment {
  display: flex; flex-direction: column; gap: 8px; padding: 28px; text-decoration: none; color: inherit;
  border-left: 3px solid var(--red); background: var(--bg-soft); transition: background .3s, transform .3s;
}
a.segment:hover { background: var(--surface); transform: translateY(-3px); box-shadow: var(--shadow); }
.segment__sub { font-size: var(--fs-sm); color: var(--muted); }
.segment h3 { font-size: var(--fs-lg); }
.segment p { color: var(--muted); font-size: var(--fs-md); }
.segment .link-arrow { margin-top: auto; padding-top: 8px; }
.segment--cta { background: var(--petrol-900); color: #fff; border-left-color: var(--red); }
.segment--cta p { color: var(--on-dark); }
.segment--cta .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Alarmkette (Scroll-Fortschritt) ---------- */
.chain { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.chain::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: rgba(255,255,255,.14); }
.chain::after {
  content: ""; position: absolute; left: 0; top: 23px; height: 2px; background: var(--red);
  width: calc(var(--progress, 0) * 100%); transition: width .15s linear; box-shadow: 0 0 12px var(--red);
}
.chain__step { position: relative; padding: 0 20px 0 0; z-index: 1; }
.chain__dot {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; font-size: var(--fs-md);
  background: var(--petrol-800); border: 2px solid rgba(255,255,255,.2); color: #fff; transition: background .3s, border-color .3s, transform .3s;
}
.chain__step.is-on .chain__dot { background: var(--red-ink); border-color: var(--red); transform: scale(1.06); }
.chain__step h3 { margin: 20px 0 8px; font-size: var(--fs-lg); }
.chain__step p { color: var(--on-dark-muted); font-size: var(--fs-md); }
.chain__time { display: block; font-size: var(--fs-xs); letter-spacing: .12em; color: #ff5ca8; margin-top: 14px; font-variant-numeric: tabular-nums; }

/* ---------- Karte ---------- */
.mapbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.map { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map .land { fill: var(--map-land); stroke: var(--map-line); stroke-width: 1.2; }
.map .focus { fill: rgba(232, 8, 104, .28); stroke: var(--red); stroke-width: 1; transition: fill .3s; cursor: pointer; }
.map .focus.is-active, .map .focus:hover { fill: rgba(232, 8, 104, .55); }
.map .partner { fill: var(--petrol-400); opacity: .75; }
.map .partner-pulse { fill: none; stroke: var(--petrol-400); opacity: 0; transform-box: fill-box; transform-origin: center; animation: partner 6s ease-out infinite; }
@keyframes partner { 0% { opacity: .8; transform: scale(.2); } 60%, 100% { opacity: 0; transform: scale(2.4); } }
.map .base { fill: var(--red); stroke: #fff; stroke-width: 2; }
.map .base-ring { fill: none; stroke: var(--red); transform-box: fill-box; transform-origin: center; animation: basering 2.6s ease-out infinite; }
@keyframes basering { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.6); } }
.map .link { fill: none; stroke: var(--red); stroke-width: 1; stroke-dasharray: 3 5; opacity: .55; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.map .lbl { font: 500 var(--fs-sm) var(--font); fill: var(--text); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-sm); color: var(--muted); margin-top: 16px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.region-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.region-tabs button {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--pill); padding: 8px 16px; font-size: var(--fs-sm); font-weight: 500; color: var(--muted);
}
.region-tabs button[aria-selected="true"] { background: var(--petrol-600); border-color: var(--petrol-600); color: #fff; }
.region-panel { border-left: 3px solid var(--red); padding: 4px 0 4px 20px; min-height: 150px; }
.region-panel h3 { margin-bottom: 6px; }
.region-panel p { color: var(--muted); }
.region-panel .towns { margin-top: 10px; font-size: var(--fs-md); }
.chips a { color: inherit; }
.region-panel .link-arrow { margin-top: 14px; }

/* ---------- Regionen / Orte ---------- */
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.region-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 30px 26px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.region-card:hover { border-color: var(--red); transform: translateY(-3px); }
.region-card .badge { align-self: flex-start; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: var(--pill); }
.region-card h3 { font-size: var(--fs-xl); }
.region-card p { color: var(--muted); font-size: var(--fs-md); }
.region-card .link-arrow { margin-top: auto; }
/* Ortslisten: Name und Art untereinander, alle Einträge linksbündig im gleichen Raster */
.townlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; list-style: none; }
.townlist li { border-bottom: 1px solid var(--line); }
.townlist a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--text); text-decoration: none; }
.townlist a::after { content: "→"; color: var(--muted); transition: transform .2s, color .2s; }
.townlist a:hover::after { transform: translateX(4px); color: var(--red); }
.townlist a span { display: grid; gap: 2px; }
.townlist a strong { font-weight: 500; }
.townlist small { color: var(--muted); font-size: var(--fs-sm); font-weight: 400; }
@media (max-width: 900px) { .townlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .townlist { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 12px; font-size: var(--fs-sm); border-radius: var(--pill); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: var(--fs-md); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 500; }
.infobox { background: var(--surface); border: 1px solid var(--line); padding: 28px; box-shadow: var(--shadow); }
.infobox h3 { margin-bottom: 16px; font-size: var(--fs-lg); }

/* ---------- Vorteile / Liste ---------- */
.ticks { list-style: none; display: grid; gap: 0; }
.ticks li { position: relative; padding: 16px 0 16px 38px; border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat;
}
.ticks strong { display: block; }
.ticks span { color: var(--muted); font-size: var(--fs-md); }
.section--dark .ticks li { border-color: rgba(255,255,255,.12); }
.section--dark .ticks span { color: var(--on-dark-muted); }

/* ---------- Zertifikate ---------- */
.certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cert { background: var(--surface); padding: 26px 22px; }
.cert b { display: block; font-size: var(--fs-xl); font-weight: 500; letter-spacing: -.01em; }
.cert span { color: var(--muted); font-size: var(--fs-md); display: block; }
.cert__owners { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.cert small { display: block; font-size: var(--fs-xs); letter-spacing: .04em; color: var(--muted); }

/* ---------- Kundenlogos (Endlosband) ---------- */
.logos { position: relative; overflow: hidden; }
/* Seitliches Ausblenden über Verläufe in Flächenfarbe (statt mask-image),
   damit die Logos per multiply mit dem Hintergrund verschmelzen können */
.logos::before, .logos::after { content: ""; position: absolute; top: 0; bottom: 0; width: 10%; z-index: 1; pointer-events: none; }
.logos::before { left: 0; background: linear-gradient(90deg, var(--ref-bg), transparent); }
.logos::after { right: 0; background: linear-gradient(270deg, var(--ref-bg), transparent); }
.logos__track { display: flex; gap: 48px; width: max-content; animation: logos 60s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos__track { align-items: center; gap: 56px; mix-blend-mode: multiply; }
.ref { height: 64px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.ref:hover { filter: none; opacity: 1; }
/* Referenzen bleiben in beiden Farbmodi hell, damit die Original-Logos sauber wirken */
.section--light {
  --ref-bg: #ffffff;
  --bg: #ffffff; --bg-soft: #f3f5f5; --surface: #ffffff; --text: #1f2f32; --muted: #56676b; --line: #e1e7e8;
  --link: var(--petrol-600); --link-line: rgba(50, 74, 78, .35);
  background: var(--ref-bg); color: var(--text); color-scheme: light;
}
/* Im Dunkelmodus: neutrales Mittelgrau, Schrift wie im Dunkelmodus (weiß) */
:root[data-theme="dark"] .section--light { --ref-bg: #5a6b6f; --text: #ffffff; --muted: #e3e8e9; --line: rgba(255,255,255,.18); --link: #fff; --link-line: rgba(255,255,255,.4); color-scheme: dark; }
:root[data-theme="dark"] .section--light .ref { opacity: .95; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section--light { --ref-bg: #5a6b6f; --text: #ffffff; --muted: #e3e8e9; --line: rgba(255,255,255,.18); --link: #fff; --link-line: rgba(255,255,255,.4); color-scheme: dark; }
  :root:not([data-theme="light"]) .section--light .ref { opacity: .95; }
}
@keyframes logos { to { transform: translateX(-50%); } }

/* ---------- Partner / Gruppe ---------- */
.group { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.group__logos { display: grid; gap: 28px; justify-items: start; }
.group__logos img { max-height: 120px; width: auto; }
.group__logos .light-only { display: block; }
.group__logos .dark-only { display: none; }
:root[data-theme="dark"] .group__logos .light-only { display: none; }
:root[data-theme="dark"] .group__logos .dark-only { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .group__logos .light-only { display: none; }
  :root:not([data-theme="light"]) .group__logos .dark-only { display: block; }
}
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.audience article { padding: 36px 32px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--red); }
.audience h3 { margin: 10px 0 12px; font-size: var(--fs-xl); }
.audience p { color: var(--muted); }
.audience .ticks { margin: 18px 0 24px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 500; font-size: var(--fs-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 28px; font-weight: 300; color: var(--red); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 820px; }
.faq details > div p + p { margin-top: .8em; }

/* ---------- CTA-Band ---------- */
.cta {
  position: relative; overflow: hidden; background: var(--petrol-900); color: #fff; padding: clamp(56px, 8vw, 96px) 0;
}
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background: radial-gradient(600px 300px at 85% 30%, rgba(232, 8, 104,.5), transparent 70%);
}
.cta .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { max-width: 640px; }
.cta .tel-big { display: block; font-size: clamp(30px, 4vw, 48px); font-weight: 500; color: #fff; text-decoration: none; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cta small { color: var(--on-dark-muted); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.location { padding: 22px; border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-md); }
.location h3 { font-size: var(--fs-base); margin-bottom: 6px; }

.form { display: grid; gap: 14px; }
.form label { font-size: var(--fs-sm); font-weight: 500; display: grid; gap: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: var(--fs-base); color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.form .hp { position: absolute; left: -9999px; }
.form-status { font-weight: 500; }

/* ---------- Footer (Aufbau wie wiking-sicherheit.de) ---------- */
.site-footer { background: var(--petrol-900); color: var(--on-dark); font-size: var(--fs-md); line-height: 1.6; padding-top: 64px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.f-top { display: grid; grid-template-columns: 1.15fr 1fr 1.1fr 1fr; gap: 40px; padding-bottom: 48px; }
.f-head { font-size: var(--fs-md); font-weight: 500; color: #fff; text-transform: none; letter-spacing: 0; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.f-brand img { width: 260px; height: auto; margin-bottom: 18px; }
.f-claim { font-style: italic; color: var(--on-dark); }
.f-small { font-style: italic; margin-top: 12px; font-size: var(--fs-sm); }
.f-assist {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 9px 14px; font-size: var(--fs-sm); font-weight: 500;
}
.f-assist:hover { background: rgba(255,255,255,.08); }
.f-lines { display: grid; gap: 8px; margin-top: 14px; }
.f-ico { display: inline-flex; align-items: center; gap: 10px; }
.f-locs { list-style: none; display: grid; gap: 14px; }
.f-locs strong { color: #fff; font-weight: 500; }
.muted-link { color: var(--on-dark-muted) !important; font-size: var(--fs-sm); }
.f-nsl { border-left: 3px solid var(--red); background: rgba(255,255,255,.04); padding: 16px 18px; }
.f-nsl__state { display: flex; align-items: center; color: #fff; font-weight: 500; margin-bottom: 8px; }
.f-nsl__tel { margin-top: 12px; font-size: var(--fs-lg); font-weight: 500; font-variant-numeric: tabular-nums; }
.f-nsl__tel svg { width: 20px; height: 20px; }

.f-form { padding: 40px 0 48px; border-top: 1px solid rgba(255,255,255,.1); }
.f-title { font-size: var(--fs-base); font-weight: 400; text-transform: none; letter-spacing: 0; color: #fff; margin-bottom: 18px; }
.form--dark input, .form--dark textarea, .form--dark label { font-weight: 400; }
.form--dark input, .form--dark textarea {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16); color: #fff;
  border-radius: var(--radius); padding: 13px 14px; transition: border-color .2s, background .2s;
}
.form--dark input:hover, .form--dark textarea:hover { border-color: rgba(255, 255, 255, .3); }
.form--dark input:focus, .form--dark textarea:focus { outline: none; border-color: var(--red); background: rgba(255, 255, 255, .07); }
.form--dark input::placeholder, .form--dark textarea::placeholder { color: var(--on-dark-muted); }
.form--dark textarea { min-height: 110px; }
.form--dark .check { color: var(--on-dark); font-size: var(--fs-sm); }
.form--dark .check input { accent-color: var(--red); }
.form--dark .check a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.form--dark .check a:hover { text-decoration-color: var(--red); }
/* Senden-Button wie die übrigen Hauptbuttons: Magenta, beim Überfahren dunkler und leicht angehoben */
.f-submit { width: 100%; font-weight: 500; }
.f-submit:hover, .f-submit:focus-visible { background: var(--red-hover); border-color: var(--red-hover); color: #fff; transform: translateY(-2px); }
.f-submit:disabled { opacity: .7; transform: none; cursor: wait; }
.f-form__foot { display: flex; justify-content: space-between; gap: 16px; font-size: var(--fs-sm); color: var(--on-dark-muted); }

.form--dark .form-status { color: #fff; }

.f-links { padding: 28px 0; border-top: 1px solid rgba(255,255,255,.1); }
.f-links ul { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 24px; }
.f-links li a { display: flex; gap: 10px; color: #fff; }
.f-links li a::before { content: "→"; color: var(--on-dark); flex: none; }
.f-links--meta { border-top: 0; padding-top: 0; }
.f-links--meta ul { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }

.f-end { padding: 48px 0 120px; border-top: 1px solid rgba(255,255,255,.1); }
.f-end__brandrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; }
.f-end__brand img { display: block; width: 285px; max-width: 86vw; height: auto; aspect-ratio: 285 / 30; }
.f-end__group { font-size: var(--fs-md); color: var(--on-dark); }
.f-end__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-sm); color: var(--on-dark-muted); }
.f-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: var(--fs-sm); }
@media (max-width: 760px) {
  .f-end__brandrow { flex-direction: column; text-align: center; }
  .f-end__bar { flex-direction: column; text-align: center; }
  .f-legal { justify-content: center; gap: 8px 20px; }
}

@media (max-width: 1080px) {
  .f-top { grid-template-columns: 1fr 1fr; }
  .f-links ul { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .f-top { grid-template-columns: 1fr; gap: 32px; }
  .f-links ul { grid-template-columns: 1fr 1fr; }
  .f-form__foot { flex-direction: column; }
}

/* ---------- Schwebende Aktionsleiste (wie wiking-sicherheit.de) ---------- */
.rail { position: fixed; right: 18px; bottom: 22px; z-index: 70; display: grid; gap: 10px; }
.rail button, .rail a {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 0;
  background: var(--surface); color: var(--text); box-shadow: 0 6px 20px rgba(0,0,0,.18); text-decoration: none;
  transition: transform .2s, background .2s;
}
.rail button:hover, .rail a:hover { transform: translateY(-2px); }
.rail svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail [data-top] { opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s, transform .2s; }
.rail.show-top [data-top] { opacity: 1; visibility: visible; }
.rail .rail-chat { background: var(--red-ink); color: #fff; width: 56px; height: 56px; }
.rail .rail-chat svg { width: 26px; height: 26px; }
.rail [aria-pressed="true"] { background: var(--petrol-600); color: #fff; }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-light { display: none; }
  :root:not([data-theme="light"]) .theme-icon-dark { display: block; }
}

/* ---------- Kontaktassistent ---------- */
.assistant {
  position: fixed; right: 18px; bottom: 22px; z-index: 80; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 40px));
  display: flex; flex-direction: column; background: var(--surface); color: var(--text); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35); transform-origin: bottom right;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s;
}
.assistant[hidden] { display: flex; transform: scale(.6) translateY(30px); opacity: 0; pointer-events: none; visibility: hidden; }
.assistant__head { background: var(--petrol-900); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.assistant__head img { height: 18px; width: auto; }
.assistant__head p { font-size: var(--fs-xs); color: var(--on-dark-muted); line-height: 1.3; }
.assistant__head strong { display: block; font-size: var(--fs-md); color: #fff; }
.assistant__close { margin-left: auto; background: none; border: 0; color: #fff; width: 36px; height: 36px; font-size: 24px; line-height: 1; }
.assistant__progress { height: 3px; background: rgba(255,255,255,.08); }
.assistant__progress span { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s; }
.assistant__log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: var(--radius); font-size: var(--fs-md); line-height: 1.5; white-space: pre-line; animation: msg .25s ease-out; }
@keyframes msg { from { opacity: 0; transform: translateY(6px); } }
.msg--bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 2px; align-self: flex-start; }
.msg--me { background: var(--petrol-600); color: #fff; border-bottom-right-radius: 2px; align-self: flex-end; }
.msg a { font-weight: 500; }
.msg--typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; } .msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: .4; } }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button { border: 1px solid var(--petrol-400); background: var(--surface); color: var(--text); padding: 7px 12px; border-radius: var(--pill); font-size: var(--fs-sm); }
.quick button:hover { background: var(--petrol-600); color: #fff; border-color: var(--petrol-600); }
.assistant__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.assistant__form input { flex: 1; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: var(--fs-base); background: var(--bg); color: var(--text); }
.assistant__form button { width: 46px; border: 0; border-radius: var(--radius); background: var(--red-ink); color: #fff; display: grid; place-items: center; }
.assistant__form button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.assistant__note { font-size: var(--fs-xs); color: var(--muted); padding: 0 14px 10px; background: var(--surface); }

/* ---------- Scroll-Reveal ---------- */
/* Nur Bewegung, keine Transparenz: Text bleibt jederzeit voll lesbar (Kontrast, auch für Prüfwerkzeuge) */
.reveal { transform: translateY(16px); transition: transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-in { transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- Theme-Wechsel mit Kreis-Animation ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-switching::view-transition-new(root) { animation: reveal-theme .6s cubic-bezier(.4,0,.2,1); }
@keyframes reveal-theme { from { clip-path: circle(0 at var(--tx, 100%) var(--ty, 100%)); } to { clip-path: circle(150vmax at var(--tx, 100%) var(--ty, 100%)); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards, .segments { grid-template-columns: 1fr 1fr; }
  .usps__grid { grid-template-columns: 1fr 1fr; }
  .usp:nth-child(3) { border-left: 0; padding-left: 0; }
  .usp { border-bottom: 1px solid var(--line); }
  .region-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .section__head, .split, .mapbox, .group, .contact-grid, .audience { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .chain { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .chain::before, .chain::after { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .chain::after { height: calc(var(--progress, 0) * 100%); width: 2px; }
  .chain__step { display: grid; grid-template-columns: 48px 1fr; gap: 0 20px; padding: 0; }
  .chain__step h3 { margin: 10px 0 6px; }
  .chain__step > :not(.chain__dot) { grid-column: 2; }
  .certs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: var(--fs-base); }
  .cards, .region-grid, .locations, .segments, .usps__grid { grid-template-columns: 1fr; }
  .usp, .usp + .usp { padding: 24px 0; border-left: 0; }
  .form .row { grid-template-columns: 1fr; }
  .brand img { height: auto; width: min(220px, 52vw); }
  .hero { min-height: 100vh; min-height: 100svh; padding-bottom: 48px; }
  .hero h1 { font-size: calc((100vw - 2 * var(--gutter)) / 10.2); }
  .hero__status { margin-top: 36px; }
  .rail { right: 12px; bottom: 14px; }
  .rail .rail-extra { display: none; }
  .assistant { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .rail, .assistant, .cta, .site-footer .f-form, .site-footer .f-links { display: none !important; }
  .hero, .pagehead { color: #000; background: none; margin: 0; padding: 20px 0; min-height: 0; }
  .hero::after, .pagehead::after, .hero__media, .pagehead__media, .hero__scan { display: none; }
  .hero .lead, .pagehead .lead { color: #333; }
}

/* ---------- Hero-Variante: animierte Einsatzkarte statt Foto ---------- */
.hero--map {
  align-items: center;
  background:
    radial-gradient(900px 620px at 76% 46%, rgba(76, 122, 138, .30), transparent 62%),
    radial-gradient(420px 320px at 84% 34%, rgba(232, 8, 104, .10), transparent 70%),
    var(--petrol-900);
}
.hero--map::after { display: none; }
.hero-map__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
/* Headline bleibt einzeilig: Größe richtet sich nach der Breite der linken Spalte */
.hero-map__grid > .hero__content { container-type: inline-size; }
.hero--map h1 { font-size: min(78px, 8.8cqi); white-space: nowrap; }
/* Hero so breit wie die Kopfzeile, damit die Headline mehr Platz hat */
.hero--map > .wrap { max-width: 1400px; }
.hero-map { position: relative; }
.hero-map svg { width: 100%; height: auto; max-height: 68vh; overflow: visible; }
.hm-land { fill: rgba(255, 255, 255, .045); stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.hm-focus { fill: rgba(232, 8, 104, .20); stroke: rgba(232, 8, 104, .65); stroke-width: 1; }
.hm-partner { fill: rgba(255, 255, 255, .35); }
.hm-base { fill: var(--red); }
.hm-base-ring { fill: none; stroke: var(--red); transform-box: fill-box; transform-origin: center; animation: basering 2.8s ease-out infinite; }
.hm-hub { fill: #fff; }
.hm-hub-ring { fill: none; stroke: rgba(255, 255, 255, .7); transform-box: fill-box; transform-origin: center; animation: basering 3.4s ease-out infinite; }
.hm-lbl { font: 500 var(--fs-sm) var(--font); fill: #fff; letter-spacing: .04em; }
.hm-ping { fill: none; stroke: #fff; stroke-width: 1.5; }
.hm-dot { fill: #fff; }
.hm-sig { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 1.5; }
.hm-disp { fill: none; stroke: var(--red); stroke-width: 2; }
.hero-map__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 10px; font-size: var(--fs-xs); color: var(--on-dark-muted); }
.hero-map__legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.lg-alarm { background: #fff; }
.lg-team { background: var(--red); }
.lg-partner { background: rgba(255, 255, 255, .35); }
@media (max-width: 900px) {
  .hero-map__grid { grid-template-columns: 1fr; }
  .hero--map h1 { font-size: calc((100vw - 2 * var(--gutter)) / 10.2); white-space: normal; }
  .hero-map { position: absolute; right: -28%; top: 8%; width: 95%; opacity: .32; pointer-events: none; z-index: 0; }
  .hero-map__legend { display: none; }
  .hero--map .hero__content { position: relative; z-index: 1; }
}

/* ---------- Markenlogos (Farbe hell, Weiß dunkel) ---------- */
.brand-d { display: none; }
:root[data-theme="dark"] .brand-l { display: none; }
:root[data-theme="dark"] .brand-d { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-l { display: none; }
  :root:not([data-theme="light"]) .brand-d { display: block; }
}
.brand-card .brand-l, .brand-card .brand-d { max-width: 100%; object-fit: contain; margin: 4px auto 22px; }
.brand-card > p:first-of-type { padding-top: 18px; border-top: 1px solid var(--line); }
.brand-card h3 { margin-top: auto; padding-top: 14px; font-size: var(--fs-lg); }
.brand-card .link-arrow { margin-top: 2px; }


/* Heller Button auf dunklem Grund (z. B. „Anfrage online starten“): beim Überfahren Magenta statt durchsichtig */
.btn.btn--light:hover, .cta .btn.btn--light:not(.btn--ghost):hover, .section--dark .btn.btn--light:not(.btn--ghost):hover {
  background: var(--red); border-color: var(--red); color: #fff;
}

.section__head--single .lead { margin-top: 16px; }

/* Ortsseiten: Fließtext beginnt bündig mit der Überblickskachel */
.split > .prose > h2:first-child { margin-top: 0; }

/* Ortsseiten: Kartenausschnitt des Einsatzgebiets */
.mapzoom svg { width: 100%; height: auto; display: block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.mz-land { fill: var(--map-land); stroke: var(--map-line); }
.mz-focus { fill: rgba(232, 8, 104, .10); stroke: rgba(232, 8, 104, .55); }
.mz-area { fill: rgba(232, 8, 104, .07); stroke: rgba(232, 8, 104, .30); }
.mz-town { fill: var(--muted); transition: fill .2s; }
.mapzoom a:hover .mz-town { fill: var(--red); }
.mz-cur { fill: var(--red); stroke: #fff; }
.mz-ring { fill: none; stroke: var(--red); opacity: .5; }
.mz-base { fill: #fff; stroke: var(--red); }
.mz-lbl { font-family: var(--font); fill: var(--text); paint-order: stroke; stroke: var(--bg-soft); }
.mz-lbl--cur { font-weight: 500; }
.mz-lbl--base { fill: var(--muted); }

/* ---------- Angebotskonfigurator ---------- */
.konfig-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.konfig-intro .ticks { margin-top: 22px; }
.konfig { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--red); box-shadow: var(--shadow); padding: clamp(22px, 3.4vw, 40px); scroll-margin-top: calc(var(--header-h) + 20px); min-height: 420px; }
.konfig__meta { display: flex; justify-content: space-between; gap: 16px; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 10px; }
.konfig__crumbs { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.konfig__count { flex: none; font-variant-numeric: tabular-nums; }
.konfig__bar { height: 3px; background: var(--line); margin-bottom: 30px; }
.konfig__bar i { display: block; height: 100%; background: var(--red); transition: width .4s ease; }
.kstep__h { font-size: var(--fs-xl); outline: none; }
.kstep__p { color: var(--muted); margin: 8px 0 22px; font-size: var(--fs-md); }
.kgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kchoice {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  padding: 18px 18px 20px; font: inherit; color: var(--text); background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 3px solid transparent; border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.kchoice:hover { border-color: var(--muted); border-left-color: var(--red); transform: translateY(-2px); }
.kchoice:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.kchoice.is-on { border-color: var(--red); border-left-color: var(--red); background: var(--surface); }
.kchoice__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kchoice__icon { margin-bottom: 6px; }
.kchoice__title { font-size: var(--fs-base); font-weight: 500; }
.kchoice__desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.kchoice__badge { position: absolute; top: 12px; right: 12px; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--red); padding: 3px 8px; border-radius: var(--pill); }
.kchoice--rec .kchoice__title { padding-right: 96px; }
.kchoice__more { margin-top: 4px; font-size: var(--fs-sm); color: var(--link); text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }
.kchoice__more:hover { text-decoration-color: var(--red); }
.ktags { display: flex; flex-wrap: wrap; gap: 10px; }
.ktag { font: inherit; font-size: var(--fs-md); color: var(--text); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--pill); padding: 10px 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.ktag:hover { border-color: var(--muted); }
.ktag.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.ktag:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.knav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.knav--solo { justify-content: flex-start; }
.knav .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.kdrop { display: grid; gap: 4px; place-items: center; text-align: center; padding: 30px 20px; border: 1px dashed var(--muted); border-radius: var(--radius); background: var(--bg-soft); cursor: pointer; transition: border-color .2s, background .2s; }
.kdrop:hover, .kdrop.is-drag { border-color: var(--red); background: var(--surface); }
.kdrop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kdrop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.kdrop__t { font-weight: 500; }
.kdrop__s { font-size: var(--fs-sm); color: var(--muted); }
.kfiles { list-style: none; display: grid; gap: 8px; margin: 12px 0 18px; }
.kfiles li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-sm); }
.kfiles li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kfiles small { color: var(--muted); }
.kfiles__x { font: inherit; font-size: 20px; line-height: 1; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 4px; }
.kfiles__x:hover { color: var(--red); }
.kfiles .kfiles__sum { border: 0; padding: 0; color: var(--muted); }
.kfiles .kfiles__sum.is-err { color: var(--red); }
.kfield { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 500; }
.kfield textarea { width: 100%; padding: 13px 14px; font: inherit; font-size: var(--fs-base); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); resize: vertical; }
.kform .muted { font-weight: 400; }
.kform [aria-invalid="true"] { border-color: var(--red); }
.kform .check input { accent-color: var(--red); }
.kdone { text-align: center; padding: 30px 0; }
.kdone__icon svg { width: 54px; height: 54px; fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kdone p { color: var(--muted); max-width: 46ch; margin: 12px auto 0; }

/* Einstieg "Was möchten Sie schützen?" */
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pick a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 26px; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; border-radius: var(--radius); }
.pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.pick a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,28,30,.15) 0%, rgba(20,28,30,.6) 45%, rgba(20,28,30,.95) 100%); }
.pick a:hover img { transform: scale(1.05); }
.pick svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.pick h3 { font-size: var(--fs-xl); }
.pick p { color: var(--on-dark); font-size: var(--fs-md); margin-top: 4px; }
.pick .link-arrow { color: #fff; margin-top: 14px; }
.pick a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (max-width: 960px) {
  .konfig-wrap { grid-template-columns: 1fr; }
  .konfig-wrap .konfig { order: -1; }
  .pick { grid-template-columns: 1fr; }
  .pick a { min-height: 220px; }
}
@media (max-width: 620px) {
  .kgrid, .kgrid--3 { grid-template-columns: 1fr; }
  .kgrid--3 .kchoice { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .kgrid--3 .kchoice__icon { margin: 0; }
  .kgrid--3 .kchoice__desc { flex-basis: 100%; }
  .konfig__crumbs { display: none; }
}
.pick a.pick__plain { background: linear-gradient(150deg, var(--petrol-600) 0%, var(--petrol-800) 70%); border-top: 3px solid var(--red); }
.pick a.pick__plain::before { display: none; }
.pick .pick__mark { position: absolute; right: -28px; top: -18px; width: 210px; height: 210px; margin: 0; stroke: rgba(255,255,255,.08); stroke-width: 1; z-index: -1; transition: transform .6s ease; }
.pick a.pick__plain:hover .pick__mark { transform: translateX(-10px); }

/* Abschnittskopf: Einleitung rechts beginnt auf Höhe der Überschrift, nicht am unteren Rand */
@media (min-width: 901px) {
  .section__head:not(.section__head--single) { align-items: start; row-gap: 0; }
  .section__head:not(.section__head--single) > div { display: contents; }
  .section__head:not(.section__head--single) > div > .eyebrow { grid-column: 1; grid-row: 1; }
  .section__head:not(.section__head--single) > div > h2 { grid-column: 1; grid-row: 2; }
  .section__head:not(.section__head--single) > .lead { grid-column: 2; grid-row: 2; margin-top: 22px; }
}

/* ---------- Leitstellen-Lexikon ---------- */
.lex-wrap { max-width: 980px; }
.lex-tools { position: sticky; top: var(--header-h); z-index: 5; display: grid; gap: 14px; padding: 16px 0; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.lex-search input { width: 100%; padding: 13px 16px; font: inherit; font-size: var(--fs-base); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lex-search input:focus { outline: none; border-color: var(--red); }
.lex-az { display: flex; flex-wrap: wrap; gap: 4px; }
.lex-az a, .lex-az span { display: grid; place-items: center; min-width: 32px; height: 32px; font-size: var(--fs-sm); font-weight: 500; border-radius: var(--radius); text-decoration: none; }
.lex-az a { color: var(--text); border: 1px solid var(--line); }
.lex-az a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.lex-az span { color: var(--line); }
.lex-letter { scroll-margin-top: calc(var(--header-h) + 130px); padding-top: 28px; }
.lex-letter > h2 { font-size: var(--fs-xl); color: var(--red); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.lex-item { scroll-margin-top: calc(var(--header-h) + 130px); padding: 22px 0; border-bottom: 1px solid var(--line); }
.lex-item:last-child { border-bottom: 0; }
.lex-item h3 { font-size: var(--fs-lg); margin-bottom: 8px; }
.lex-item p { max-width: 75ch; }
.lex-item:target h3 { color: var(--red); }
.lex-wir { margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--red); color: var(--muted); font-size: var(--fs-md); }
.lex-wir span { display: block; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 2px; }
.lex-see { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }
.lex-item .link-arrow { margin-top: 10px; }
.lex-chips { margin-top: 12px; }
.lex-chips a { text-decoration: none; }
.lex-chips li:hover { border-color: var(--red); }
.lex-empty { padding: 30px 0; }


/* ---------- Mobile Korrekturen (UX-Review) ---------- */
/* Seitliches Überlaufen nur im Inhalt abschneiden (am html-Element würde es das fixierte Menü stören) */
#inhalt, .site-footer { overflow-x: clip; }
@media (min-width: 901px) { .chain--4 { grid-template-columns: repeat(4, 1fr); } }
.group > * { min-width: 0; }
.certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cert__owners small { overflow-wrap: anywhere; }
@media (max-width: 520px) { .certs { grid-template-columns: 1fr; } }

/* Menü: Schließen-Symbol und Aktionen */
.menu-toggle .i-close { display: none; }
.site-header.menu-open .menu-toggle svg:first-child { display: none; }
.site-header.menu-open .menu-toggle .i-close { display: block; }
.nav-mobile-cta { display: none; }
@media (max-width: 960px) {
  .nav > ul > .nav-mobile-cta { display: grid; gap: 10px; padding: 22px 0 6px; }
  .nav .nav-mobile-cta a { border-bottom: 0; justify-content: center; padding: 14px 18px; font-size: var(--fs-base); }
}

/* Hero-Karte: auf dem Handy sichtbar unter dem Text statt blasser Hintergrund */
@media (max-width: 900px) {
  .hero--map { min-height: 0; padding-bottom: 40px; }
  .hero-map { position: relative; right: auto; top: auto; width: 100%; max-width: 440px; margin: 28px auto 0; opacity: 1; pointer-events: none; }
  .hero-map svg { max-height: 46vh; }
  .hero-map__legend { display: flex; }
}

/* Kontaktassistent auf dem Handy als Vollbild */
@media (max-width: 620px) {
  .assistant { inset: 0; right: 0; bottom: 0; width: 100%; height: 100dvh; border-radius: 0; }
  .assistant__close { width: 44px; height: 44px; }
  .quick button { padding: 10px 14px; }
}

/* Größere Tippflächen */
.chips li:has(> a) { padding: 0; }
.chips li > a { display: block; padding: 8px 14px; text-decoration: none; color: inherit; }
.lex-az a, .lex-az span { min-width: 40px; height: 40px; }
@media (max-width: 620px) {
  .f-links li a { padding: 6px 0; }
  .f-legal a, .f-lines a { display: inline-block; padding: 6px 0; }
  .f-lines a.f-ico { display: inline-flex; justify-self: start; }
  .crumbs a { display: inline-block; padding: 6px 0; }
}

/* Kacheln auf dem Handy seitlich wischbar */
@media (max-width: 620px) {
  .cards--scroll, .segments {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .cards--scroll > *, .segments > * { scroll-snap-align: start; }
  .cards--scroll .reveal, .segments .reveal { opacity: 1; transform: none; }
}
/* Footer-Linkliste: auf dem Desktop immer offen, auf dem Handy einklappbar */
.f-acc > summary { display: none; }
@media (max-width: 620px) {
  .f-acc > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; padding: 6px 0; color: #fff; font-size: var(--fs-base); }
  .f-acc > summary::-webkit-details-marker { display: none; }
  .f-acc > summary::after { content: "+"; font-size: 22px; color: var(--on-dark-muted); }
  .f-acc[open] > summary::after { content: "−"; }
  .f-acc[open] > ul { margin-top: 14px; }
}
/* Offenes Menü: ohne Unschärfe-Effekt, sonst bezieht sich das fixierte Menü auf die Kopfzeile statt aufs Fenster */
.site-header.menu-open, .site-header.is-scrolled.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--petrol-900); }
@media (max-width: 960px) {
  .nav .nav-mobile-cta a.btn { display: flex; background: var(--red); border: 1px solid var(--red); color: #fff; border-radius: var(--radius); }
  .nav .nav-mobile-cta a.btn--ghost { background: transparent; border-color: rgba(255,255,255,.5); }
}

/* ---------- Hero mobil: eigene, kompakte Fassung ---------- */
.hm-m { display: none; }
@media (max-width: 620px) {
  .hero--map .hm-d { display: none; }
  .hero--map .hm-m { display: revert; }
  .hero--map { padding-top: calc(var(--header-h) + 16px); padding-bottom: 32px; }
  .hero--map .eyebrow.hm-m { display: inline-flex; }
  .hero--map h1 { margin-top: 14px; line-height: 1; }
  .hero--map .h1-die { display: block; font-size: .5em; letter-spacing: .12em; margin-bottom: 8px; }
  .hero--map h1 .mark { display: inline-block; max-width: 100%; font-size: calc((100vw - 2 * var(--gutter)) / 9.9); }
  .hero-live { display: flex !important; align-items: center; gap: 8px; margin-top: 16px; font-size: var(--fs-sm); color: var(--on-dark); font-variant-numeric: tabular-nums; }
  .hero-live b { font-weight: 500; color: #fff; }
  .hero--map .lead.hm-m { display: block; margin-top: 14px; font-size: var(--fs-base); }
  .hero--map .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .hero--map .hero__actions .btn { justify-content: center; padding-inline: 12px; }
  .hero--map .hero__actions .btn span.hm-m { display: inline; }
  .hero--map .hero__actions .btn.hm-m { display: inline-flex; gap: 8px; }
  .hero-map { margin-top: 18px; }
  .hero__status { margin-top: 20px; }
}

/* Kontaktseite: Standort der Leitstelle hervorheben */
.location--main { border-color: var(--red); border-top-width: 3px; }
.location--main h3 { display: flex; align-items: center; gap: 8px; }
/* Chips im Fließtext: ohne Listeneinzug, alle gleich (Regionen, Lexikon-Begriffe, Ortsteile) */
.prose .chips { margin: 14px 0 0; padding: 0; }
.prose .chips li { margin: 0; }
.chips li:has(> a) { transition: border-color .2s; }
.chips li:has(> a):hover { border-color: var(--red); }

/* Datenschutzhinweis am Formular (statt Checkbox) */
.form-note { font-size: var(--fs-sm); color: var(--muted); }
.form--dark .form-note { color: var(--on-dark-muted); }
.form--dark .form-note a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }

/* Hinweisgeberseite: Kontaktspalten im Footer ausblenden */
.site-footer--quiet .f-top { display: none; }
.site-footer--quiet .f-links:first-of-type { border-top: 0; }

/* Feste Kontaktleiste am Handy */
.mbar { display: none; }
@media (max-width: 620px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; display: grid; grid-template-columns: auto 1fr 48px; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(0,0,0,.12); transform: translateY(110%); visibility: hidden; transition: transform .25s, visibility .25s;
  }
  .mbar.is-on { transform: none; visibility: visible; }
  .mbar .btn { min-height: 48px; padding: 0 18px; }
  .mbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mbar__chat { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--red-ink); color: #fff; cursor: pointer; }
  .mbar__chat svg { width: 24px; height: 24px; }
  body.mbar-on .rail { opacity: 0; visibility: hidden; }
  body.has-mbar .site-footer { padding-bottom: 80px; }
}
@media print { .mbar { display: none !important; } }

/* Telefonnummern nie umbrechen */
a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 340px) { .facts a[href^="tel:"] { white-space: normal; } }

/* Rechts Platz für die schwebenden Knöpfe lassen, wenn der Seitenrand dafür nicht reicht (Tablet, kleiner Laptop) */
@media (min-width: 621px) {
  .wrap { padding-right: max(var(--gutter), calc(80px - max(0px, (100vw - var(--wrap)) / 2))); }
  .site-header .wrap { padding-right: var(--gutter); }
  .hero--map > .wrap { padding-right: max(var(--gutter), calc(80px - max(0px, (100vw - 1400px) / 2))); }
}

/* ---------- Hero mobil: Karte als gedimmter Hintergrund, Nordosten im Bild ---------- */
@media (max-width: 620px) {
  .hero--map { overflow: hidden; padding-bottom: 28px; }
  .hero-map { position: absolute; top: 40px; right: -14vw; width: 112vw; max-width: none; margin: 0; opacity: .9; z-index: 0; }
  .hero-map .hm-lbl { display: none; }
  .hero-map svg { max-height: none; }
  .hero-map__legend { display: none; }
  .hero--map .hero__content, .hero--map .hero__status { position: relative; z-index: 1; }
  /* Text bleibt auf der Karte gut lesbar */
  .hero--map .hero-map__grid { position: relative; }
  .hero--map .hero-map__grid::before { content: ""; position: absolute; inset: -40px calc(-1 * var(--gutter)) -20px; z-index: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(20, 30, 32, .7) 0%, rgba(20, 30, 32, .4) 50%, rgba(20, 30, 32, 0) 85%); }
  .hero--map .h1-die { display: none; }
  .hero--map .lead.hm-m { max-width: 32ch; }
  .hero--map .hero__status { display: grid; gap: 6px; margin-top: 26px; padding-top: 16px; font-size: var(--fs-xs); }
}
/* Hero mobil füllt den ersten Bildschirm, Status sitzt unten */
@media (max-width: 620px) {
  .hero--map { min-height: 100svh; display: flex; align-items: stretch; }
  .hero--map > .wrap { display: flex; flex-direction: column; }
  .hero--map .hero__status { margin-top: auto; }
  .hero--map .hero-map__grid { margin-bottom: 26px; }
}
/* Karte im freien Raum zwischen Knöpfen und Status: eigene Regionen im Bild */
@media (max-width: 620px) {
  .hero--map .hero-map__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; flex: 1 1 auto; margin-bottom: 0; }
  .hero--map .hero-map__grid::before { display: none; }
  .hero-map { position: relative; top: auto; right: auto; flex: 1 1 auto; min-height: 150px; width: auto; opacity: 1;
    margin: 8px calc(-1 * var(--gutter)) 0; overflow: hidden; }
  .hero-map svg { position: absolute; left: -42vw; top: -4%; width: 135vw; max-width: none; height: auto; opacity: .9; }
  .hero-map { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%); }
}
/* Text vertikal mittig über der Karte, Karte füllt den ganzen Hero */
@media (max-width: 620px) {
  .hero--map .hero-map__grid { justify-content: center; }
  .hero--map .hero__content { position: relative; z-index: 1; padding: 24px 0; }
  .hero-map { position: absolute; inset: 0 calc(-1 * var(--gutter)); min-height: 0; margin: 0; z-index: 0;
    -webkit-mask-image: none; mask-image: none; }
  .hero-map svg { left: -40vw; top: 50%; transform: translateY(-38%); width: 135vw; opacity: .8; }
  .hero-map::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(110% 45% at 35% 50%, rgba(20, 30, 32, .7), rgba(20, 30, 32, .15) 75%, transparent); }
}

/* Leistungsübersicht in Gruppen, Infobox-Titel, Wechselblock */
.section--tight { padding-top: 0; }
.group-title { font-size: var(--fs-lg); margin-bottom: 22px; }
.infobox .infobox__title { margin: 0 0 16px; font-size: var(--fs-lg); }
.switch-box { margin: 28px 0; padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent-text); }
.prose .switch-box h2 { margin-top: 0; }
.switch-box ol { margin: 12px 0 14px; padding-left: 1.3em; display: grid; gap: 6px; }
.f-title a { color: inherit; white-space: nowrap; }

/* Seitenkopf geteilt: Text links, Foto rechts mit weichem Übergang (ab Tablet) */
@media (min-width: 901px) {
  .pagehead__media { left: auto; right: 0; width: 58%; opacity: .75;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); mask-image: linear-gradient(90deg, transparent 0, #000 35%); }
  .pagehead::after { background: linear-gradient(90deg, rgba(17,24,25,.96) 30%, rgba(17,24,25,.35) 70%, rgba(17,24,25,.15)); }
}

/* Startseite (wiking-sicherheit.de): steht am Ende, damit es die allgemeinen Hero-Regeln überschreibt */
/* Ab Tablet steht die Headline in einer Zeile, das Schlüsselwort bricht nicht um */
@media (min-width: 768px) {
  /* Schrift nach der Textbreite: die Zeile ist rund 15,6 em breit, mit Reserve für den Kasten */
  .hero__content { max-width: none; container-type: inline-size; }
  .hero h1 { white-space: nowrap; font-size: min(84px, calc(100cqi / 15.6)); }
}

/* Übersichtskarte: Deutschland läuft hinter dem Text weiter, endet aber am Rand des Abschnitts */
/* Seitlich abschneiden, nach unten darf Deutschland in den nächsten Abschnitt ragen */
.section--mapbg { position: relative; z-index: 0; overflow-x: clip; overflow-y: visible; padding-bottom: clamp(24px, 3vw, 40px); }
/* Karte etwas größer, damit Süddeutschland in den folgenden Abschnitt reicht */
@media (min-width: 900px) { .section--mapbg .locations--row { margin-top: clamp(96px, 9vw, 150px); } .section--mapbg .map svg { transform: translateY(12%) scale(1.4); transform-origin: 60% 10%; } }
.section--mapbg + .section:not(.section--soft):not(.section--dark):not(.section--light) { position: relative; z-index: 1; background: transparent; }
.section--mapbg .map svg { overflow: visible; }
.section--mapbg .mapbox > div:not(.map) { position: relative; z-index: 1; }
.section--mapbg .locations--row { position: relative; z-index: 1; }
/* Niederlassungen als volle Reihe unter Karte und Text, damit Adressen nicht im Wort umbrechen */
.locations--row { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: clamp(32px, 4vw, 56px); }
.location__kind { display: block; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
/* Adresszeilen bleiben ganz: Straße mit Hausnummer, PLZ mit Ort */
.location .addr { display: block; white-space: nowrap; }

/* Footer: BDSW-Mitgliedschaft und Auszeichnung Nachwuchsförderung */
.f-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-left: auto; }
.f-badges img { display: block; height: auto; max-width: 100%; }
.f-badges img:first-child { width: 200px; }
.f-badges img:last-child { width: 72px; }
@media (max-width: 620px) { .f-badges { margin-left: 0; margin-top: 18px; } }

/* Bildausschnitt der Seitenköpfe: eigener Fokuspunkt fürs Handy (aus build.py) */
.pagehead__media img, .hero__media img { object-position: var(--fp, 50% 50%); }
@media (max-width: 620px) { .pagehead__media img, .hero__media img { object-position: var(--fpm, var(--fp, 50% 50%)); } }

/* ---------- Farbmix (wiking-sicherheit.de): Petrol aus dem Logo für ruhige Elemente zwischen Hero und Footer,
   Magenta bleibt für Handlungen (Buttons, Hover, Karte, Chat) und das markierte Wort im Hero ---------- */
:root { --petrol-accent: #3d7387; --petrol-accent-bg: #3d7387; }
:root[data-theme="dark"] { --petrol-accent: #7dbdd2; --petrol-accent-bg: #4d8298; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --petrol-accent: #7dbdd2; --petrol-accent-bg: #4d8298; } }
main .section .eyebrow::before, main .usps .eyebrow::before { background: var(--petrol-accent); }
main .section:not(.section--dark) .ticks li::before { background-color: var(--petrol-accent-bg); }
.usp__icon { background: var(--petrol-accent-bg); }
.faq summary::after { color: var(--petrol-accent); }
.lex-letter > h2 { color: var(--petrol-accent); }
.lex-wir { border-left-color: var(--petrol-accent); }
.location__kind { color: var(--petrol-accent); }
.region-card:hover, .chips li:has(> a):hover, .lex-chips li:hover { border-color: var(--petrol-accent); }
.stat b { color: var(--petrol-accent); }

/* /gesetzliche-angaben/: Überschriften eine Ebene tiefer, Abstände wie auf /impressum/ und /datenschutz/ */
.prose--ga > h2 { margin: 2em 0 .6em; font-size: clamp(26px, 3vw, 38px); }
.prose--ga h3 { margin: 1.6em 0 .6em; font-size: clamp(22px, 2.4vw, 30px); }
.prose--ga h4 { margin: 1.4em 0 .4em; font-size: 22px; font-weight: 500; }
.prose--ga .infobox h3 { margin-top: 0; }

/* Stationäre Dienste: ganz Berlin, Brandenburg, MV (petrol); mobile Teamgebiete darüber (magenta) */
.map .land.stat { fill: rgba(61, 115, 135, .30); stroke: rgba(61, 115, 135, .7); }
.mz-land.mz-stat { fill: rgba(61, 115, 135, .2); stroke: rgba(61, 115, 135, .5); }
.mz-area { fill: rgba(232, 8, 104, .16); stroke: rgba(232, 8, 104, .4); }
.mz-focus { fill: rgba(232, 8, 104, .22); stroke: rgba(232, 8, 104, .7); }

/* Konfigurator: Detailblöcke und Leistungsgruppen (wie interventions-team.de) */
.kdetails { display: grid; gap: 16px; }
.kblock { display: grid; gap: 18px; padding: 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.kblock h4 { font-size: var(--fs-lg); font-weight: 500; }
.kblock__field { display: grid; gap: 8px; }
.kblock__label { font-size: var(--fs-sm); font-weight: 500; }
.kblock__label .muted { font-weight: 400; }
.kblock__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kblock__plan { display: grid; gap: 18px; }
.kblock__plan[hidden] { display: none; }
.kblock__hint { font-size: var(--fs-sm); color: var(--muted); }
.kblock .ktag { background: var(--surface); padding: 8px 14px; font-size: var(--fs-sm); }
.kblock .ktag.is-on { background: var(--red); }
.kinput { width: 100%; padding: 11px 12px; font: inherit; font-size: var(--fs-base); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color-scheme: inherit; }
.kinput:disabled { opacity: .45; }
.kcheck { display: flex; gap: 10px; align-items: center; font-size: var(--fs-sm); cursor: pointer; }
.kcheck input { width: 18px; height: 18px; accent-color: var(--red); }
.kregion { font-size: var(--fs-sm); color: var(--petrol-accent, var(--red)); }
.kregion:empty { display: none; }
.kservices { display: grid; gap: 12px; }
.kgroup { font-size: var(--fs-base); font-weight: 500; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.kgroup:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.kgroup .muted { font-weight: 400; font-size: var(--fs-sm); }
@media (max-width: 520px) { .kblock__row { grid-template-columns: 1fr; } .kblock { padding: 16px; } }

/* Konfigurator: gewählte Leistungen mit „Weitere Leistung hinzufügen“ */
.kchosen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: -6px 0 18px; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); background: var(--surface); font-size: var(--fs-sm); }
.kchosen__add { font: inherit; font-weight: 500; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }
.kchosen__add:hover { text-decoration-color: var(--red); }

/* Kontaktblock im Fuß: kurze Überschrift, Hinweis als Absatz */
.f-sub { margin: -6px 0 18px; font-size: var(--fs-sm); opacity: .85; }
.f-sub a { color: inherit; }

/* Kontaktformular: E-Mail oder Telefon als Pflichtgruppe */
.form fieldset.reach { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.form fieldset.reach legend { padding: 0; font-weight: 500; font-size: var(--fs-sm); margin-bottom: 4px; }

/* Zertifikatskacheln: Link zur passenden Leistung (Audit p050) */
.cert__link { margin-top: 10px; font-size: var(--fs-sm); color: var(--link); text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }
.cert__link:hover { text-decoration-color: var(--red); }
