/* ==========================================================================
   Schriften · IBM Plex Sans und IBM Plex Mono
   SIL Open Font License 1.1, Lizenztext unter assets/fonts/
   Lokal eingebettet, keine Drittanfrage (Kanon 7.6). Latin-Subset,
   sechs Schnitte, zusammen 128 KB.
   ========================================================================== */

@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

/* ==========================================================================
   SGS Sicherheitstechnik — Prototyp-Stylesheet
   Version: PROTO-0.2 · 2026-07-27 · eyedee
   Farbwerte aus der Logo-Vorlage abgeleitet, Kontraste gemessen (WCAG 2.x).
   ========================================================================== */

:root {
  /* Flächen */
  --paper:        #F4F6F8;
  --surface:      #FFFFFF;
  --dark:         #16181C;
  --dark-2:       #22252B;

  /* Tinte */
  --ink:          #16181C;   /* 16,41:1 auf paper  */
  --ink-2:        #4E545E;   /*  7,04:1 auf paper  */
  --on-dark:      #E9ECF1;   /* 15,01:1 auf dark   */
  --on-dark-2:    #A8B0BC;   /*  8,13:1 auf dark   */

  /* Marke */
  --blue-deep:    #253579;   /* 10,40:1 auf paper  */
  --blue:         #3754AC;   /*  6,41:1 auf paper  */
  --blue-on-dark: #93ABEA;   /*  7,83:1 auf dark   */
  --amber:        #E8A317;   /*  8,19:1 zu ink     */

  /* Linien */
  --line:         #D8DDE3;   /* dekorativ          */
  --line-strong:  #6E747E;   /* funktional (Felder) */

  /* Raster */
  /* Spacing-Skala — Faktor ~1,5, jede Stufe hat eine Zuständigkeit.
     Provisorisch: ersetzen, sobald die Spacing-Token-Dokumentation
     aus Manifest v1.1 vorliegt (Abschnitt M, offener Punkt).
       s-1  Abstand innerhalb einer Zeile (Icon zu Text)
       s-2  Abstand zwischen Textblöcken
       s-3  Innenabstand von Karten und Feldern
       s-4  Abstand zwischen Gruppen innerhalb einer Sektion
       s-5  Abstand Kopfblock zu Inhalt
       s-6  Sektionsabstand mobil
       s-7  Sektionsabstand Desktop                                     */
  --wrap:  76rem;
  --gut:   clamp(1.5rem, 5vw, 3rem);
  --s-1:   .5rem;
  --s-2:   1rem;
  --s-3:   1.5rem;
  --s-4:   2.5rem;
  --s-5:   3.75rem;
  --s-6:   5.5rem;
  --s-7:   7.5rem;
  --rule:  1px;

  /* Radien: je groesser die Flaeche, desto weicher die Ecke */
  --radius:    6px;   /* Karten, Bilder, Formularkarte */
  --radius-s:  5px;   /* Buttons, Felder, Chips */
  --radius-l: 10px;   /* Panels, Bildbaender */
  --header-h: clamp(5rem, 10.5vh, 6.5rem);
  --logo-h: clamp(3.9rem, 8.2vh, 5.4rem);
  --header-pad: 1.1rem;
  --header-pad-compact: .35rem;

  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
               Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Hoher Kontrast (BFSG-Panel) */
[data-contrast="high"] {
  --paper:        #FFFFFF;
  --surface:      #FFFFFF;
  --dark:         #000000;
  --dark-2:       #000000;
  --ink:          #000000;
  --ink-2:        #1F232A;
  --on-dark:      #FFFFFF;
  --on-dark-2:    #FFFFFF;
  --blue-deep:    #1B2860;
  --blue:         #1B2860;
  --blue-on-dark: #BFD0FF;
  --line:         #000000;
  --line-strong:  #000000;
}

/* Schriftgrößen-Stufen (BFSG-Panel) */
html                      { font-size: 100%; }
[data-textsize="l"]       { font-size: 112.5%; }
[data-textsize="xl"]      { font-size: 125%; }

/* --------------------------------------------------------------- Basis -- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[data-motion="off"] html, html[data-motion="off"] { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  text-rendering: optimizeLegibility;
}

/* Globaler Overflow-Gürtel auf innerem Wrapper, nicht auf html/body (K1) */
.viewport { overflow-x: clip; }

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 var(--s-2);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 6vw, 3.85rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -0.02em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

p  { margin: 0 0 var(--s-2); max-width: 62ch; }
.lead { font-size: clamp(1.125rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 56ch; }

a { color: var(--blue-deep); text-underline-offset: .18em; text-decoration-thickness: from-font; }
/* 5.29 · zweites Merkmal gehoert in den Fliesstext, nicht in Navigationslisten.
   Vorher trug jeder Link eine Unterstreichung — das erzeugte optisches Rauschen. */
:is(p, li, dd, figcaption, .hint, .prose, .note) a:not(.btn) {
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: .18em;
}
a:not(.btn):not(.logo) { text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}
[data-contrast="high"] :focus-visible { outline-color: #000; outline-width: 4px; }

.skip {
  position: absolute; left: var(--s-2); top: -8rem; z-index: 200;
  background: var(--blue-deep); color: #fff; padding: .75rem 1.25rem;
  border-radius: var(--radius); font-weight: 600;
}
.skip:focus { top: var(--s-2); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* Technisches Eyebrow — Auszeichnung, nicht Dekoration */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 var(--s-2);
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; inline-size: 1.75rem; block-size: 1px;
  background: currentColor; flex: none;
}
.on-dark .eyebrow { color: var(--on-dark-2); }

/* ------------------------------------------------------------- Header -- */

.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.header__inner {
  min-height: var(--header-h);
  padding-block: var(--header-pad);
  display: flex; align-items: center; gap: var(--s-3);
  transition: padding-block .32s var(--ease);
}
.header.is-compact .header__inner {
  padding-block: var(--header-pad-compact);
  min-height: calc(var(--header-h) * .76);
}
.logo { display: flex; align-items: center; flex: none; color: #fff; }
.logo img {
  block-size: var(--logo-h); inline-size: auto;
  transform-origin: left center;
  transform: scale(1);
  transition: transform .32s var(--ease);
  will-change: transform;
}
/* Verkleinerung über transform, nicht über block-size — bleibt compositbar (Klasse 1) */
.header.is-compact .logo img {
  transform: scale(calc(var(--logo-shrink, .68)));
}
@media (prefers-reduced-motion: reduce) {
  .header__inner, .logo img { transition: none; }
}
html[data-motion="off"] .header__inner,
html[data-motion="off"] .logo img { transition: none; }
.logo__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(.5rem, 1.6vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: flex; align-items: center;
  min-block-size: 3.25rem;          /* 5.3 */
  padding: .25rem .1rem;
  color: var(--on-dark); font-size: .95rem; font-weight: 500;
  text-decoration: none; border-bottom: 2px solid transparent;
}
.nav__link[aria-current="page"] { color: #fff; border-bottom-color: var(--blue-on-dark); }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { border-bottom-color: var(--blue-on-dark); }
}

.header__cta { flex: none; }
.nav__toggle { display: none; }
/* CTA existiert zweimal im Markup — je Breakpoint ist genau einer sichtbar */
@media (min-width: 62rem) { .nav > .btn { display: none; } }

@media (max-width: 61.999rem) {
  .nav__toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    margin-left: auto; background: transparent; color: var(--on-dark);
    border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius);
    min-block-size: 3.25rem; padding: .55rem 1rem;   /* 5.3 */
    font: inherit; font-size: .95rem; cursor: pointer;
  }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    background: var(--dark); padding: var(--s-3) var(--gut);
    padding-bottom: calc(var(--s-4) + env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  .nav[hidden] { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: .95rem 0; font-size: 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }
  .nav__link[aria-current="page"] { border-bottom-color: var(--blue-on-dark); }
  .header__cta { display: none; }
  .nav .btn { margin-top: var(--s-3); width: 100%; justify-content: center; }
}

/* -------------------------------------------------------------- Buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-block-size: 3.25rem;          /* 52 px bei 16 px Basis — Kanon 5.3 */
  padding: .9rem 1.5rem;
  border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-size: .975rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn--primary { background: var(--blue-deep); color: #fff; }
.btn--ghost   { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.on-dark .btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,.45); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #1B2860; }
  .btn--ghost:hover   { border-color: currentColor; }
}

/* ------------------------------------------------------------ Sektionen -- */

.section {
  padding-block: clamp(3.75rem, 8vw, var(--s-7));
  /* Klemmung nach K1: clip-path statt overflow-x auf Sections */
  clip-path: inset(-200vh 0);
}
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--surface { background: var(--surface); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--s-5)); }
.section + .section--surface { border-top: 1px solid var(--line); }

.section__head { max-width: 46rem; margin-bottom: var(--s-5); }

/* Sprungziele unter fixiertem Header (M7.4) */
[id] { scroll-margin-top: clamp(5rem, 11vh, 6.5rem); }

/* ---------------------------------------------------------------- Hero -- */

.hero { background: var(--dark); color: var(--on-dark); clip-path: inset(-200vh 0); }
.hero__inner {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 9vw, 6rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__inner { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); }
}
.hero h1 { color: #fff; }
.hero .lead { color: var(--on-dark-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3);
  margin: var(--s-4) 0 0; padding: var(--s-2) 0 0;
  border-top: 1px solid rgba(255,255,255,.16);
  list-style: none;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em;
  color: var(--on-dark-2);
}

/* ----------------------------------------- Signature: Sicherungsschalen -- */

.shells { inline-size: 100%; block-size: auto; display: block; }
.shells .shell-plate { fill: none; stroke: rgba(147,171,234,.45); stroke-width: 1; }
.shells .shell-fill  { fill: rgba(147,171,234,.05); }
.shells .shell-label { fill: var(--on-dark-2); font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; }
.shells .shell-index { fill: var(--blue-on-dark); font-family: var(--font-mono); font-size: 9px; }
.shells .shell-core  { fill: rgba(147,171,234,.16); stroke: var(--blue-on-dark); stroke-width: 1.2; }
.shells .shell-tick  { stroke: rgba(233,236,241,.3); stroke-width: 1; }
.shells .shell-node  { fill: var(--amber); }
[data-contrast="high"] .shells .shell-plate { stroke: #FFF; }
[data-contrast="high"] .shells .shell-label { fill: #FFF; }

.shells__caption {
  margin: var(--s-2) 0 0; font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .06em; color: var(--on-dark-2);
}

/* --------------------------------------------------------------- Karten -- */

.grid { display: grid; gap: var(--s-3); }
@media (min-width: 40rem)  { .grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 56rem)  { .grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 56rem)  { .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 76rem)  { .grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.card {
  container-type: inline-size;      /* 5.19 · Typografie am Container, nicht am Viewport */
  display: flex; flex-direction: column; gap: .35rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-3);
  text-decoration: none; color: inherit;
}
.card__meta {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2);
}
.card p { margin: 0; font-size: .975rem; color: var(--ink-2); }
.card__more { margin-top: auto; padding-top: var(--s-2); font-weight: 600; color: var(--blue-deep); font-size: .95rem; }
.card__more::after { content: " →"; }
@media (hover: hover) and (pointer: fine) {
  a.card:hover { border-color: var(--blue); }
}
.section--dark .card { background: var(--dark-2); border-color: rgba(255,255,255,.16); }
.section--dark .card p, .section--dark .card__meta { color: var(--on-dark-2); }
.section--dark .card__more { color: var(--blue-on-dark); }

/* ---------------------------------------------------------------- Liste -- */

.speclist { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.speclist li {
  display: grid; grid-template-columns: 1.9rem 1fr; gap: .5rem;
  padding-block: .6rem; border-bottom: 1px solid var(--line);
}
.speclist li::before {
  content: attr(data-idx);
  font-family: var(--font-mono); font-size: .78rem; color: var(--blue-deep);
  padding-top: .2rem;
}
.section--dark .speclist li { border-bottom-color: rgba(255,255,255,.14); }
.section--dark .speclist li::before { color: var(--blue-on-dark); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: var(--s-2) 0; font-weight: 600; font-size: 1.05rem;
  list-style: none; display: flex; gap: var(--s-2); align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-family: var(--font-mono); color: var(--blue-deep); }
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding-bottom: var(--s-2); }

/* -------------------------------------------------------------- Kontakt -- */

.contactbar {
  display: grid; gap: var(--s-3);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: var(--s-3);
}
@media (min-width: 52rem) { .contactbar { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.contactbar dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.contactbar dd { margin: .25rem 0 0; font-size: 1.05rem; font-weight: 600; }
.contactbar a { color: var(--blue-deep); }

.badge-24 {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--amber); color: var(--ink);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .3rem .6rem; border-radius: 2px;
}

/* ------------------------------------------------------------ Formular -- */

.form { display: grid; gap: var(--s-3); max-width: 39.999rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  min-block-size: 3.25rem;          /* 5.3 */
  padding: .8rem .9rem; width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.check { display: grid; grid-template-columns: 1.4rem 1fr; gap: .6rem; align-items: start; }
.check { grid-template-columns: 3.25rem 1fr; align-items: center; min-block-size: 3.25rem; }
.check input { inline-size: 1.5rem; block-size: 1.5rem; margin: 0 auto; }   /* 5.3 */
.form__note { font-size: .875rem; color: var(--ink-2); max-width: 46ch; }

/* --------------------------------------------------------------- Footer -- */

.footer { background: var(--dark); color: var(--on-dark-2); padding-block: var(--s-5) var(--s-3); }
.footer__grid { display: grid; gap: var(--s-4); }
@media (min-width: 52rem) {
  /* 5.15 · explizite Platzierung statt Auto-Flow */
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; }
  .footer__grid > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .footer__grid > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .footer__grid > :nth-child(3) { grid-column: 3; grid-row: 1; }
  .footer__grid > :nth-child(4) { grid-column: 4; grid-row: 1; }
}
.footer h2 { font-size: .78rem; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: var(--s-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
/* 5.29 · nicht allein ueber Farbe erkennbar */
.footer a {
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: rgba(233,236,241,.35);
  text-underline-offset: .22em;
}
@media (hover: hover) and (pointer: fine) {
  .footer a:hover { text-decoration-color: currentColor; }
}
.footer ul a { display: inline-flex; align-items: center; min-block-size: 2.6rem; }
.footer__bottom {
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3);
  align-items: center; font-size: .85rem;
}
.footer__bottom .credit { margin-left: auto; }
/* 1.2 · ausschliesslich das Herz in der Markenfarbe */
.credit__heart { color: #D70E54; font-style: normal; }
.credit sup { font-size: .7em; vertical-align: super; line-height: 0; }   /* 1.3 */
.footer address { font-style: normal; }

/* -------------------------------------------------------- BFSG-Bedienung -- */

.a11y-open {
  position: fixed; right: 1rem; z-index: 120;
  min-block-size: 3.25rem;          /* 5.3 */
  bottom: calc(1rem + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--dark); color: #fff; border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px; padding: .7rem 1rem; font: inherit; font-size: .9rem;
  font-weight: 600; cursor: pointer;
}
[data-contrast="high"] .a11y-open { border-color: #fff; }

.a11y-panel {
  position: fixed; z-index: 130; inset: auto 1rem calc(1rem + env(safe-area-inset-bottom)) 1rem;
  max-width: 24rem; margin-left: auto;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: var(--s-3); box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 1.05rem; margin-bottom: var(--s-2); }
.a11y-group { margin-bottom: var(--s-3); }
.a11y-group legend { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 0; margin-bottom: .5rem; }
.a11y-options { display: flex; gap: .4rem; flex-wrap: wrap; }
.a11y-options label {
  display: inline-flex; align-items: center;
  min-block-size: 3.25rem;          /* 5.3 — auch im Bedienpanel */
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: .45rem 1rem; font-size: .95rem; cursor: pointer;
}
.a11y-options input { position: absolute; opacity: 0; pointer-events: none; }
.a11y-options input:checked + span { font-weight: 700; }
.a11y-options label:has(input:checked) { border-color: var(--blue-deep); box-shadow: inset 0 0 0 1px var(--blue-deep); }
.a11y-options label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.a11y-panel fieldset { border: 0; padding: 0; margin: 0; }
.a11y-panel__foot { display: flex; gap: var(--s-2); align-items: center; }

/* ------------------------------------------------------------- Bewegung -- */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
}
html[data-motion="off"] .reveal,
html[data-motion="off"] .reveal.is-in { opacity: 1; transform: none; transition: none; }
html[data-motion="off"] * { animation: none !important; transition: none !important; }

/* ------------------------------------------------------------ Utilities -- */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.stack > * + * { margin-top: var(--s-2); }
.mt-4 { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-4); }
.prose h3 { margin-top: var(--s-3); }
.note {
  border-left: 3px solid var(--amber); background: var(--surface);
  padding: var(--s-2) var(--s-3); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
}

/* ==========================================================================
   Nachtrag · Medien, FAQ-Affordanz, scrollgebundene Bewegung
   ========================================================================== */

/* ------------------------------------------------------------- Medien --- */

.media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-2);
}
.section--dark .media { border-color: rgba(255,255,255,.16); }
.media img {
  display: block; inline-size: 100%; block-size: auto;
  /* Seitenverhältnis am Motiv, nicht am Container (RS-7) */
}
.media figcaption {
  padding: .7rem var(--s-2);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  color: var(--ink-2); background: var(--surface);
  border-top: 1px solid var(--line);
}
.section--dark .media figcaption {
  color: var(--on-dark-2); background: var(--dark-2);
  border-top-color: rgba(255,255,255,.16);
}

/* Medienhöhe mobil deckeln (RS-7) */
@media (max-width: 47.999rem) {
  .media img { max-block-size: min(52vh, 440px); object-fit: cover; }
}

.media-band { display: grid; gap: var(--s-3); }
@media (min-width: 56rem) {
  .media-band { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: center; }
}

.card__media { margin: calc(var(--s-3) * -1) calc(var(--s-3) * -1) var(--s-2); }
.card__media img { display: block; inline-size: 100%; block-size: auto; }

/* Sanfte Parallaxe — ausschließlich transform, ohne Pin (Kostenklasse 1/2) */
.js-drift { will-change: transform; }

/* ------------------------------------------------------- FAQ-Affordanz --- */

.faq summary {
  padding: var(--s-2) 0;
  min-block-size: 3rem;
  align-items: center;
}
.faq summary::after {
  content: "";
  margin-left: auto; flex: none;
  inline-size: 2rem; block-size: 2rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background:
    linear-gradient(currentColor, currentColor) center/.75rem 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px .75rem no-repeat;
  color: var(--blue-deep);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(135deg);
  background:
    linear-gradient(currentColor, currentColor) center/.75rem 2px no-repeat;
}
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
html[data-motion="off"] .faq summary::after { transition: none; }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover::after { border-color: var(--blue-deep); }
}
.faq details[open] { background: var(--surface); }
.faq details[open] summary { border-bottom: 0; }
.faq details > p { padding: 0 0 var(--s-3); max-width: 62ch; }
.faq summary:focus-visible { outline-offset: -3px; }

/* -------------------------------------------------- Orchestrierter Start -- */

.hero__inner > * { --in-delay: 0ms; }
.is-ready .hero h1,
.is-ready .hero .lead,
.is-ready .hero .hero__actions,
.is-ready .hero .hero__facts,
.is-ready .hero .eyebrow { animation: sgs-rise .62s var(--ease) both; }
.is-ready .hero .eyebrow       { animation-delay: .02s; }
.is-ready .hero h1             { animation-delay: .08s; }
.is-ready .hero .lead          { animation-delay: .16s; }
.is-ready .hero .hero__actions { animation-delay: .24s; }
.is-ready .hero .hero__facts   { animation-delay: .32s; }

/* 13.5.2 · H1 und Lead sind ab First Paint deckend sichtbar.
   Animiert wird ausschliesslich die Transform-Achse, nie die Opazitaet.
   Belegter Anlass: LCP-Regression 12,7 s (Kanon 13.5). */
@keyframes sgs-rise {
  from { transform: translate3d(0, 16px, 0); }
  to   { transform: none; }
}

/* H1 und Lead sind ab First Paint deckend sichtbar, sobald Bewegung aus ist (M4) */
@media (prefers-reduced-motion: reduce) {
  .is-ready .hero :is(h1, .lead, .eyebrow, .hero__actions, .hero__facts) { animation: none; }
}
html[data-motion="off"] .is-ready .hero :is(h1,.lead,.eyebrow,.hero__actions,.hero__facts) { animation: none; }

/* Sicherungsschalen · sich selbst zeichnende Kontur (Kanon 12.11).
   Oberhalb des Folds animiert ausschliesslich CSS (13.5.1); die Opazitaet
   bleibt unangetastet (13.5.2 / 14.5). Umfaenge gemessen aus der Geometrie:
   424x364 = 1576 · 328x276 = 1208 · 232x188 = 840 · 84x68 = 304. */
.shells .shell-plate rect,
.shells .shell-core { stroke-dashoffset: 0; }

.is-ready .shells .shell-plate rect:nth-of-type(1) {
  stroke-dasharray: 1576; animation: sgs-draw-1 1.15s var(--ease) .18s both;
}
.is-ready .shells .shell-plate rect:nth-of-type(2) {
  stroke-dasharray: 1208; animation: sgs-draw-2 1.05s var(--ease) .38s both;
}
.is-ready .shells .shell-plate rect:nth-of-type(3) {
  stroke-dasharray: 840;  animation: sgs-draw-3 .95s var(--ease) .58s both;
}
.is-ready .shells .shell-core {
  stroke-dasharray: 304;  animation: sgs-draw-4 .8s var(--ease) .78s both;
}

@keyframes sgs-draw-1 { from { stroke-dashoffset: 1576; } to { stroke-dashoffset: 0; } }
@keyframes sgs-draw-2 { from { stroke-dashoffset: 1208; } to { stroke-dashoffset: 0; } }
@keyframes sgs-draw-3 { from { stroke-dashoffset: 840; }  to { stroke-dashoffset: 0; } }
@keyframes sgs-draw-4 { from { stroke-dashoffset: 304; }  to { stroke-dashoffset: 0; } }

/* Sensorpunkte: Transform-Achse, kein Opazitaetswechsel */
.shells .shell-node circle { transform-box: fill-box; transform-origin: center; }
.is-ready .shells .shell-node circle { animation: sgs-node .45s var(--ease) both; }
.is-ready .shells .shell-node circle:nth-of-type(1) { animation-delay: 1.02s; }
.is-ready .shells .shell-node circle:nth-of-type(2) { animation-delay: 1.09s; }
.is-ready .shells .shell-node circle:nth-of-type(3) { animation-delay: 1.16s; }
.is-ready .shells .shell-node circle:nth-of-type(4) { animation-delay: 1.23s; }
.is-ready .shells .shell-node circle:nth-of-type(5) { animation-delay: 1.30s; }

@keyframes sgs-node {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .is-ready .shells :is(.shell-plate rect, .shell-core, .shell-node circle) {
    animation: none; stroke-dashoffset: 0; transform: none;
  }
}
html[data-motion="off"] .is-ready .shells :is(.shell-plate rect,.shell-core,.shell-node circle) {
  animation: none; stroke-dashoffset: 0; transform: none;
}

/* ==========================================================================
   Feinschliff PROTO-0.3
   ========================================================================== */

/* ------------------------------------------------- FAQ, neu aufgebaut ---- */

.faq { border-top: 0; display: grid; gap: var(--s-1); }

.faq details {
  border: var(--rule) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .24s var(--ease), background-color .24s var(--ease);
}
.faq details[open] {
  border-color: var(--line-strong);
  box-shadow: inset 3px 0 0 var(--blue-deep);
}
.section--surface .faq details { background: var(--paper); }

.faq summary {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3);
  min-block-size: 3.5rem;
  font-weight: 600; font-size: 1.05rem; line-height: 1.35;
  letter-spacing: -.01em;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -4px; border-radius: var(--radius); }

.faq details > p {
  margin: 0;
  padding: 0 var(--s-3) var(--s-3);
  padding-inline-end: clamp(var(--s-3), 8vw, 4.5rem);
  max-width: 62ch;
  color: var(--ink-2);
}
/* Trennlinie zwischen Frage und Antwort, nur im geöffneten Zustand */
.faq details[open] summary { padding-bottom: var(--s-2); }
.faq details[open] > p { border-top: var(--rule) solid var(--line); padding-top: var(--s-3); }

@media (hover: hover) and (pointer: fine) {
  .faq details:not([open]):hover { border-color: var(--line-strong); }
}

/* ------------------------------------------ Kanten und Innenabstände ---- */

.note {
  padding: var(--s-3);
  padding-inline-start: calc(var(--s-3) + 3px);
  border-left-width: 3px;
  margin-block: var(--s-3);
}
.note p { margin: 0; }
.contactbar { padding: var(--s-4); gap: var(--s-4); }
.media figcaption { padding: var(--s-2) var(--s-3); }
.card { padding: var(--s-4) var(--s-3) var(--s-3); }
.card__media { margin: calc(var(--s-4) * -1) calc(var(--s-3) * -1) var(--s-3); }
.speclist li { padding-block: var(--s-2); gap: var(--s-3); grid-template-columns: 2.25rem 1fr; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-inline-start: 1.35rem; max-width: 62ch; }
.prose li { margin-block: .35rem; }

/* Der letzte Block einer Sektion darf nicht am Rand kleben */
.section > .wrap > :last-child { margin-bottom: 0; }

/* -------------------------------------------------- Typografie-Feinheit -- */

h2 + .lead, h1 + .lead { margin-top: var(--s-2); }
.section__head .lead { margin-bottom: 0; }
.speclist strong { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hero__facts li { font-variant-numeric: tabular-nums; }
.card h3 {
  margin-bottom: .35rem;
  font-size: clamp(1.15rem, 7.4cqi, 1.45rem);   /* 5.19 */
}
.card__more { padding-top: var(--s-3); }

/* Eyebrow-Linie zeichnet sich beim Erscheinen */
.eyebrow::before { transform-origin: left center; }
.reveal .eyebrow::before,
.reveal.eyebrow::before { transform: scaleX(0); }
.is-in .eyebrow::before,
.is-in.eyebrow::before {
  transform: scaleX(1);
  transition: transform .55s var(--ease) .1s;
}

/* ------------------------------------------------------- Bewegung, neu -- */

/* Reveal: spürbarer Weg, Scale innerhalb der Vorgabe (≤2,5 %) */
.reveal { opacity: 0; transform: translate3d(0, 22px, 0) scale(.988); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
/* Staffelung wird am Kind beobachtet, nicht am Container (RS-6) */
.reveal[data-step="1"].is-in { transition-delay: .07s; }
.reveal[data-step="2"].is-in { transition-delay: .14s; }
.reveal[data-step="3"].is-in { transition-delay: .21s; }
.reveal[data-step="4"].is-in { transition-delay: .28s; }
.reveal[data-step="5"].is-in { transition-delay: .35s; }
.reveal[data-step="6"].is-in { transition-delay: .42s; }

@media (max-width: 47.999rem) {
  /* Wege mobil begrenzen, nicht streichen — Dauer steigt statt zu fallen */
  .reveal { transform: translate3d(0, 14px, 0) scale(.99); }
  .reveal.is-in { transition-duration: .62s; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .is-in .eyebrow::before, .is-in.eyebrow::before { transform: none; transition: none; }
}
html[data-motion="off"] .reveal,
html[data-motion="off"] .reveal.is-in { opacity: 1; transform: none; transition: none; }
html[data-motion="off"] .eyebrow::before { transform: none !important; }

/* --------------------------------------------------------- Footer, fein -- */

.footer { padding-block: var(--s-6) var(--s-4); }
.footer__grid { gap: var(--s-5) var(--s-4); }
.footer h2 { margin-bottom: var(--s-3); }
.footer ul { gap: .6rem; }
.footer address { line-height: 1.7; }

.footer__bottom {
  margin-top: var(--s-5); padding-top: var(--s-3);
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: var(--s-2) var(--s-4);
  font-size: .85rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.footer__copy, .credit { margin: 0; color: var(--on-dark-2); }
.credit { margin-left: auto; }
/* 1.2 · ausschliesslich das Herz in der Markenfarbe */
.credit__heart { color: #D70E54; font-style: normal; }
.credit sup { font-size: .7em; vertical-align: super; line-height: 0; }   /* 1.3 */
.credit a { border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 1px; }
@media (max-width: 39.999rem) { .credit { margin-left: 0; } }

/* ==========================================================================
   Kompakter Anfrageblock am Ende der Leistungsseiten (PROTO-0.6)
   Liegt in der dunklen Abschluss-Sektion. Kontraste gemessen:
   Feldtext 17,77:1 · Hinweis 7,63:1 · Label 16,41:1 · Button 11,27:1
   ========================================================================== */

.closer { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 62rem) {
  .closer { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: var(--s-6); }
  /* 5.15 · explizit platzieren statt Auto-Flow */
  .closer > :nth-child(1) { grid-column: 1; }
  .closer > :nth-child(2) { grid-column: 2; }
}

.quickform {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-3) var(--s-3);
}
[data-contrast="high"] .quickform { border: 2px solid var(--ink); }

.quickform h3 {
  margin-bottom: .35rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}
.quickform__intro {
  margin-bottom: var(--s-3);
  font-size: .95rem;
  color: var(--ink-2);
  max-width: 40ch;
}
.quickform .form { gap: var(--s-2); max-width: none; }
.quickform .field label { font-size: .9rem; }
.quickform .btn { width: 100%; }
.quickform__note {
  margin: var(--s-2) 0 0;
  font-size: .8rem;
  color: var(--ink-2);
}
.quickform__note a { color: var(--blue-deep); }

/* Der Direktweg bleibt gleichwertig sichtbar */
.closer__direct {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-top: var(--s-3);
}
.closer__meta {
  margin: var(--s-3) 0 0; padding-top: var(--s-3);
  border-top: var(--rule) solid rgba(255,255,255,.16);
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em;
  color: var(--on-dark-2);
}

/* ==========================================================================
   Feinschliff PROTO-0.8 · Anmutung, Gliederung, Karte
   ========================================================================== */

/* ---------------------------------------------------- Weichere Kanten --- */

.media, .card, .contactbar, .faq details, .quickform { border-radius: var(--radius); }
.btn, .field input, .field textarea, .field select,
.a11y-options label, .nav__toggle { border-radius: var(--radius-s); }
.a11y-panel { border-radius: var(--radius-l); }
.media-band .media { border-radius: var(--radius-l); }
.card__media img { border-radius: 0; }
.card__media { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }

/* ------------------------------------------------ Navigation, gefasst --- */

@media (min-width: 62rem) {
  .nav__list { gap: clamp(.75rem, 2.2vw, 2rem); }
  .nav__link {
    font-size: .9rem; font-weight: 500;
    letter-spacing: .005em;
    color: var(--on-dark-2);
    border-bottom: 0;
    position: relative;
  }
  /* Zustandsmarke als eigene Linie statt Rahmen — laesst die Zeile ruhig */
  .nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .85rem;
    block-size: 2px; background: var(--blue-on-dark);
    transform: scaleX(0); transform-origin: left center;
    transition: transform .28s var(--ease);
  }
  .nav__link[aria-current="page"] { color: #fff; }
  .nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .nav__link:focus-visible { color: #fff; }
  @media (hover: hover) and (pointer: fine) {
    .nav__link:hover { color: #fff; }
    .nav__link:hover::after { transform: scaleX(1); }
  }
  /* Der Handlungspfad wird vom Informationspfad getrennt */
  .header__cta { padding-left: clamp(1rem, 2.5vw, 2rem); margin-left: .5rem; position: relative; }
  .header__cta::before {
    content: ""; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    inline-size: 1px; block-size: 1.75rem;
    background: rgba(255,255,255,.18);
  }
  .header__cta .btn { min-block-size: 3rem; padding-inline: 1.25rem; font-size: .925rem; }
}
html[data-motion="off"] .nav__link::after { transition: none; }
@media (prefers-reduced-motion: reduce) { .nav__link::after { transition: none; } }

/* Mobiles Overlay gliedern */
@media (max-width: 61.999rem) {
  .nav { padding-top: var(--s-4); }
  .nav__list::before {
    content: "Leistungen und Unternehmen";
    display: block; padding-bottom: .75rem;
    font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--on-dark-2);
  }
  .nav__link { font-size: 1.1rem; padding-block: 1.05rem; }
}

/* ------------------------------- Anfrageblock: ruhiger auf dunklem Grund - */

.quickform {
  background: #1E2126;                 /* 1,10:1 zur Sektion, Kante traegt die Abgrenzung */
  color: var(--on-dark);
  border: var(--rule) solid rgba(233,236,241,.16);
  padding: var(--s-4) var(--s-4) var(--s-3);
}
.quickform h3 { color: #fff; }
.quickform__intro { color: var(--on-dark-2); }
.quickform .field label { color: var(--on-dark); }
.quickform .field input,
.quickform .field textarea,
.quickform .field select {
  background: #2A2E35;                 /* Feldtext 11,51:1 */
  color: var(--on-dark);
  border-color: #767D89;               /* Rahmen 3,29:1 zur Feldflaeche */
}
.quickform .field input::placeholder,
.quickform .field textarea::placeholder { color: #8B929D; }
.quickform .hint { color: var(--on-dark-2); }
.quickform .check label { color: var(--on-dark-2); }
.quickform .check a { color: var(--blue-on-dark); }
.quickform .btn--primary {
  background: #3B5AB8;
  border-color: var(--blue-on-dark);   /* Flaechengrenze 7,11:1 */
}
.quickform__note { color: var(--on-dark-2); }
[data-contrast="high"] .quickform {
  background: #000; border-color: #fff;
}
[data-contrast="high"] .quickform :is(input, textarea, select) {
  background: #000; color: #fff; border-color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .quickform .btn--primary:hover { background: #4767CC; }
}

/* ------------------------------------------ Hinweistexte kleiner setzen - */

.field .hint {
  font-size: .78rem;
  line-height: 1.5;
  margin: .1rem 0 0;
  max-width: 46ch;
}
.check label { font-size: .82rem; line-height: 1.55; }
.form__note, .quickform__note { font-size: .76rem; }
.media figcaption { font-size: .7rem; }

/* ------------------------------------------- BFSG-Bedienung auffindbar -- */

.a11y-open {
  gap: .6rem;
  padding: .7rem 1.15rem .7rem .95rem;
  background: var(--dark-2);
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.a11y-open svg { inline-size: 1.35rem; block-size: 1.35rem; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .a11y-open:hover { border-color: #fff; }
}
@media (max-width: 39.999rem) {
  .a11y-open span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .a11y-open { padding: .7rem; border-radius: 999px; }
}
.a11y-panel { box-shadow: 0 18px 60px rgba(0,0,0,.35); }
.a11y-panel h2 { font-size: 1.1rem; }

/* --------------------------------------------------------------- Karte -- */

.karte { inline-size: 100%; block-size: auto; display: block; }
.karte .map-ring   { fill: none; stroke: rgba(147,171,234,.28); stroke-width: 1; }
.karte .map-spoke  { stroke: rgba(147,171,234,.13); stroke-width: 1; }
.karte .map-km     { fill: var(--on-dark-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; }
.karte .map-label  { fill: var(--on-dark); font-family: var(--font-sans); font-size: 14px; font-weight: 500; }
.karte .map-dist   { fill: var(--on-dark-2); font-family: var(--font-mono); font-size: 11px; }
.karte .map-dot    { fill: var(--blue-on-dark); }
.karte .map-dot--weit { fill: none; stroke: var(--blue-on-dark); stroke-width: 1.6; }
.karte .map-needle { fill: var(--on-dark-2); }
.karte .map-home__dot  { fill: var(--amber); }
.karte .map-home__halo { fill: none; stroke: var(--amber); stroke-width: 1.4; opacity: .55; }
.karte .map-label--home { fill: #fff; font-weight: 700; }
[data-contrast="high"] .karte :is(.map-ring, .map-spoke) { stroke: #fff; }
[data-contrast="high"] .karte :is(.map-label, .map-km, .map-dist) { fill: #fff; }

.karte-rahmen { display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 62rem) {
  .karte-rahmen { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }
  .karte-rahmen > :nth-child(1) { grid-column: 1; }
  .karte-rahmen > :nth-child(2) { grid-column: 2; }
}
.karte-legende { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: .5rem; }
.karte-legende li { display: flex; align-items: center; gap: .65rem; font-size: .9rem; color: var(--on-dark-2); }
.karte-legende i {
  inline-size: .7rem; block-size: .7rem; border-radius: 999px; flex: none;
  background: var(--blue-on-dark); font-style: normal;
}
.karte-legende .ist-weit { background: transparent; border: 1.6px solid var(--blue-on-dark); }
.karte-legende .ist-heim { background: var(--amber); }

/* ------------------------------------------- Signets der Kernbereiche --- */
/* Kostenklasse 1: CSS-Keyframes auf transform, opacity und stroke-dashoffset.
   Jede Sequenz spielt einmal beim Erscheinen und bleibt danach stehen
   (13.6.4) — kein dauerhaft laufender Loop (13.3.2). */

.signet {
  inline-size: 3.25rem; block-size: 3.25rem;
  display: block; margin-bottom: var(--s-2);
  color: var(--blue-deep);
  flex: none;
}
.section--dark .signet, .on-dark .signet { color: var(--blue-on-dark); }
.signet .sg-line { fill: none; stroke: currentColor; stroke-width: 2.2;
                   stroke-linecap: round; stroke-linejoin: round; }
.signet .sg-soft { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .4; }
.signet .sg-fill { fill: currentColor; }

/* Sichtfeld schwenkt einmal auf */
.signet--video .sg-kegel { transform-box: fill-box; transform-origin: 50% 12%; }
.is-in .signet--video .sg-kegel { animation: sg-schwenk 1.1s var(--ease) .15s both; }
@keyframes sg-schwenk {
  0%   { transform: rotate(-26deg); opacity: 0; }
  35%  { opacity: .4; }
  100% { transform: rotate(22deg); opacity: .4; }
}

/* Melderkreis zeichnet sich, Kontakt schliesst */
.is-in .signet--ema .sg-ring { animation: sg-zeichnen 1s var(--ease) .2s both; }
.is-in .signet--ema .sg-punkt { animation: sg-auf .4s var(--ease) 1s both; }
@keyframes sg-zeichnen { from { stroke-dashoffset: 176; } to { stroke-dashoffset: 0; } }
@keyframes sg-auf { from { transform: scale(0); } to { transform: scale(1); } }
.signet--ema .sg-ring  { stroke-dasharray: 176; }
.signet--ema .sg-punkt { transform-box: fill-box; transform-origin: center; }

/* Buegel klappt zu */
.signet--zutritt .sg-buegel { transform-box: fill-box; transform-origin: 50% 100%; }
.is-in .signet--zutritt .sg-buegel { animation: sg-schliessen .75s var(--ease) .25s both; }
.is-in .signet--zutritt .sg-riegel { animation: sg-auf .35s var(--ease) .9s both; }
.signet--zutritt .sg-riegel { transform-box: fill-box; transform-origin: center; }
@keyframes sg-schliessen {
  from { transform: translateY(-5px) scaleY(1.35); }
  to   { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .is-in .signet :is(.sg-kegel, .sg-ring, .sg-punkt, .sg-buegel, .sg-riegel) {
    animation: none; stroke-dashoffset: 0; transform: none; opacity: .4;
  }
  .is-in .signet :is(.sg-punkt, .sg-riegel) { opacity: 1; }
}
html[data-motion="off"] .is-in .signet :is(.sg-kegel,.sg-ring,.sg-punkt,.sg-buegel,.sg-riegel) {
  animation: none; stroke-dashoffset: 0; transform: none;
}

/* Fussleisten-Einstieg in die BFSG-Bedienung */
.footer__a11y {
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--on-dark); cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(233,236,241,.35);
  text-underline-offset: .22em;
}
@media (hover: hover) and (pointer: fine) {
  .footer__a11y:hover { text-decoration-color: currentColor; }
}

/* ==========================================================================
   Planzeichnungen im Hero der Unterseiten (PROTO-0.9)
   Eine Bildsprache für alle: Haarlinienraster, Kontur, Bernsteinknoten.
   Kostenklasse 1 — Keyframes auf opacity, transform, stroke-dashoffset.
   ========================================================================== */

.plan { inline-size: 100%; block-size: auto; display: block; }

.plan .pl-grid   { stroke: rgba(147,171,234,.09); stroke-width: 1; fill: none; }
.plan .pl-plot   { fill: none; stroke: rgba(147,171,234,.42); stroke-width: 1.2; }
.plan .pl-bau    { fill: rgba(147,171,234,.05); stroke: rgba(147,171,234,.55); stroke-width: 1.4; }
.plan .pl-huelle { fill: rgba(147,171,234,.05); stroke: var(--blue-on-dark); stroke-width: 1.8; }
.plan .pl-tor,
.plan .pl-binder,
.plan .pl-boden  { stroke: rgba(233,236,241,.35); stroke-width: 1.4; fill: none; }
.plan .pl-achse  { stroke: rgba(147,171,234,.35); stroke-width: 1.2; fill: none; }

.plan .pl-kegel__f { fill: rgba(147,171,234,.10); stroke: rgba(147,171,234,.34); stroke-width: 1; }
.plan .pl-sektor__f{ fill: rgba(147,171,234,.10); stroke: rgba(147,171,234,.34); stroke-width: 1; }
.plan .pl-kam circle,
.plan .pl-schritt circle { fill: var(--amber); }
.plan .pl-melder rect { fill: rgba(233,236,241,.85); }
.plan .pl-weg { fill: none; stroke: var(--amber); stroke-width: 1.4; stroke-dasharray: 5 5; }

.plan .pl-zellen rect { fill: none; stroke: rgba(147,171,234,.28); stroke-width: 1; }
.plan .pl-frei   rect { fill: rgba(147,171,234,.22); stroke: var(--blue-on-dark); stroke-width: 1.2; }
.plan .pl-zeit   rect { fill: rgba(232,163,23,.20); stroke: var(--amber); stroke-width: 1.2; }

.plan .pl-num   { fill: var(--blue-on-dark); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }
.plan .pl-label { fill: var(--on-dark-2); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .13em; }
.plan .pl-label--zeile { font-size: 9px; }
.plan .pl-schrittlabel text { fill: var(--on-dark); font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; }
.plan .pl-schrittlabel .pl-sub { fill: var(--on-dark-2); font-weight: 400; font-size: 11.5px; letter-spacing: .01em; }

[data-contrast="high"] .plan :is(.pl-plot,.pl-bau,.pl-huelle,.pl-zellen rect) { stroke: #fff; }
[data-contrast="high"] .plan :is(.pl-num,.pl-label) { fill: #fff; }
[data-contrast="high"] .plan .pl-grid { stroke: rgba(255,255,255,.3); }

/* Aufbau: Kontur zuerst, dann Flächen, dann Knoten. Einmalig. */
.is-ready .plan :is(.pl-plot, .pl-bau, .pl-huelle, .pl-binder, .pl-boden, .pl-achse) {
  animation: pl-kontur .85s var(--ease) .2s both;
}
.is-ready .plan :is(.pl-kegel__f, .pl-sektor__f, .pl-frei rect, .pl-zellen rect) {
  animation: pl-flaeche .7s var(--ease) both;
}
.is-ready .plan .pl-kegel__f:nth-child(1) { animation-delay: .55s; }
.is-ready .plan .pl-kegel__f:nth-child(2) { animation-delay: .70s; }
.is-ready .plan .pl-kegel__f:nth-child(3) { animation-delay: .85s; }
.is-ready .plan .pl-sektor__f:nth-child(1){ animation-delay: .60s; }
.is-ready .plan .pl-sektor__f:nth-child(2){ animation-delay: .78s; }
.is-ready .plan .pl-zellen rect { animation-delay: .35s; }
.is-ready .plan .pl-frei rect   { animation-delay: .65s; }
.is-ready .plan .pl-zeit        { animation: pl-flaeche .7s var(--ease) .95s both; }

.is-ready .plan :is(.pl-kam circle, .pl-schritt circle, .pl-melder rect) {
  transform-box: fill-box; transform-origin: center;
  animation: pl-knoten .45s var(--ease) both;
}
.is-ready .plan .pl-kam circle:nth-child(1),
.is-ready .plan .pl-schritt circle:nth-child(1) { animation-delay: 1.00s; }
.is-ready .plan .pl-kam circle:nth-child(2),
.is-ready .plan .pl-schritt circle:nth-child(2) { animation-delay: 1.08s; }
.is-ready .plan .pl-kam circle:nth-child(3),
.is-ready .plan .pl-schritt circle:nth-child(3) { animation-delay: 1.16s; }
.is-ready .plan .pl-schritt circle:nth-child(4) { animation-delay: 1.24s; }
.is-ready .plan .pl-schritt circle:nth-child(5) { animation-delay: 1.32s; }
.is-ready .plan .pl-melder rect { animation-delay: .95s; }
.is-ready .plan .pl-weg { stroke-dasharray: 5 5; animation: pl-weg 1s var(--ease) 1.2s both; }
.is-ready .plan :is(.pl-num, .pl-label, .pl-schrittlabel) { animation: pl-flaeche .6s var(--ease) 1.25s both; }

@keyframes pl-kontur  { from { opacity: 0; transform: translate3d(0,6px,0); } to { opacity: 1; transform: none; } }
@keyframes pl-flaeche { from { opacity: 0; } to { opacity: 1; } }
@keyframes pl-knoten  { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes pl-weg     { from { stroke-dashoffset: 60; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .is-ready .plan * { animation: none !important; opacity: 1; transform: none; stroke-dashoffset: 0; }
}
html[data-motion="off"] .is-ready .plan * { animation: none !important; opacity: 1; transform: none; }

/* ==========================================================================
   Feinschliff PROTO-0.9 · Typografie, Rhythmus, Detail
   ========================================================================== */

/* --------------------------------------------------- Typografie feiner -- */

body { font-size: 1.05rem; line-height: 1.68; letter-spacing: -0.003em; }

h1 {
  font-size: clamp(2.35rem, 5.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.026em;
  line-height: 1.12;
}
h3 { font-weight: 620; letter-spacing: -0.018em; line-height: 1.24; }

p { text-wrap: pretty; }
.lead {
  font-size: clamp(1.1rem, 1.55vw, 1.24rem);
  line-height: 1.58;
  letter-spacing: -0.008em;
  color: var(--ink-2);
}
.hero .lead { color: var(--on-dark-2); }

/* Eyebrow zurückhaltender */
.eyebrow { font-size: .69rem; letter-spacing: .2em; gap: .75rem; margin-bottom: var(--s-3); }
.eyebrow::before { inline-size: 2.25rem; }

/* Fließtext atmet */
.prose p, .card p, .faq details > p { line-height: 1.7; }
.speclist li { padding-block: .8rem; line-height: 1.62; }

/* ------------------------------------------------------- Karten feiner -- */

.card {
  border-color: rgba(22,24,28,.10);
  box-shadow: 0 1px 2px rgba(22,24,28,.04);
  transition: border-color .24s var(--ease), box-shadow .24s var(--ease),
              transform .24s var(--ease);
}
.section--dark .card { border-color: rgba(233,236,241,.14); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  a.card:hover {
    border-color: rgba(37,53,121,.4);
    box-shadow: 0 10px 30px rgba(22,24,28,.09);
    transform: translate3d(0,-2px,0);
  }
  .section--dark a.card:hover {
    border-color: var(--blue-on-dark); box-shadow: none;
  }
}
html[data-motion="off"] .card { transition: none; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

.card__meta { font-size: .67rem; letter-spacing: .16em; }
.card__more { font-size: .9rem; font-weight: 620; }
.card__more::after { content: " \2192"; display: inline-block; transition: transform .24s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  a.card:hover .card__more::after { transform: translate3d(4px,0,0); }
}

/* Buttons weniger wuchtig, Höhe bleibt bei 52 px (5.3) */
.btn { font-size: .93rem; font-weight: 620; letter-spacing: -.004em; padding-inline: 1.4rem; }

/* Haarlinien statt Kanten */
.section + .section--surface { border-top-color: rgba(22,24,28,.08); }
.speclist li { border-bottom-color: rgba(22,24,28,.09); }
.faq details { border-color: rgba(22,24,28,.11); }
.contactbar { border-color: rgba(22,24,28,.11); box-shadow: 0 1px 2px rgba(22,24,28,.04); }

/* ------------------------------------------------------- Brotkrume ------ */

.krume { background: var(--surface); border-bottom: var(--rule) solid rgba(22,24,28,.08); }
.krume ol {
  max-inline-size: var(--wrap); margin-inline: auto;
  padding: .85rem var(--gut);
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2);
}
.krume li + li::before { content: "/"; margin-right: .5rem; opacity: .55; }
.krume a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .krume a:hover { color: var(--blue-deep); } }
.krume [aria-current="page"] { color: var(--ink); }

/* ------------------------------------------- Formular kompakt & sauber -- */

.form--kompakt { gap: var(--s-2); }
.feldpaar { display: grid; gap: var(--s-2); }
@media (min-width: 26rem) { .feldpaar { grid-template-columns: 1fr 1fr; } }
.form--kompakt .field textarea { min-height: 5.5rem; }
.form--kompakt .btn { width: auto; min-inline-size: 13rem; }

/* Pflichtfeldmarke: dezent, nie allein am Zeilenende */
.field label abbr,
.check label abbr {
  color: var(--blue-deep); text-decoration: none;
  font-size: .9em; margin-left: .1em;
}
.quickform .field label abbr,
.quickform .check label abbr { color: var(--blue-on-dark); }
.nowrap { white-space: nowrap; }
.check label { text-wrap: pretty; }

/* ------------------------------------------------------- Hero-Aside ----- */

.hero__aside { position: relative; }
@media (max-width: 61.999rem) {
  .hero__aside { max-inline-size: 30rem; margin-inline: auto; }
}

/* ==========================================================================
   PROTO-1.0 · Textur dunkler Flächen, belegte Bildbänder
   ========================================================================== */

/* ------------------------------------- Feine Textur auf dunklem Grund --- */
/* Statisch, kein Loop, keine Renderkosten. Dekor bleibt weit unter Vollton
   (12.9): Haarlinienraster bei 3,5 % und eine sehr flache Eckabdunklung. */

.hero, .section--dark { position: relative; isolation: isolate; }
.hero::before, .section--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(147,171,234,.035) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg,  rgba(147,171,234,.035) 0 1px, transparent 1px 88px),
    radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,.35) 100%);
}
[data-contrast="high"] .hero::before,
[data-contrast="high"] .section--dark::before { background-image: none; }

/* Akzentkante am Sektionskopf, zeichnet sich einmal */
.section--dark > .wrap { position: relative; }
.section--dark .section__head::after,
.hero__inner > div:first-child::after { content: none; }

.akzentlinie {
  display: block; block-size: 2px; inline-size: 4.5rem;
  background: var(--amber); margin-bottom: var(--s-3);
  transform-origin: left center; transform: scaleX(0);
}
.is-in .akzentlinie, .is-ready .hero .akzentlinie {
  transform: scaleX(1);
  transition: transform .6s var(--ease) .15s;
}
@media (prefers-reduced-motion: reduce) { .akzentlinie { transform: scaleX(1); transition: none; } }
html[data-motion="off"] .akzentlinie { transform: scaleX(1); transition: none; }

/* ------------------------------------------------ Bildband mit Aussage -- */

.band { position: relative; border-radius: var(--radius-l); overflow: hidden; }
.band img { display: block; inline-size: 100%; block-size: auto; }
.band__inhalt {
  position: absolute; inset-block-end: 0; inset-inline-start: 0;
  max-inline-size: min(30rem, 78%);
  margin: clamp(1rem, 3vw, 2rem);
  /* Solide Fläche statt Verlauf — Kontrast ist damit gerechnet, nicht geraten,
     und 5.18 (keine Verlaufsverblendungen) bleibt unberührt. */
  background: rgba(16,18,22,.94);
  border: var(--rule) solid rgba(233,236,241,.16);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  color: var(--on-dark);
}
.band__titel {
  color: #fff; margin: 0 0 .45rem;
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  font-weight: 620; line-height: 1.24; letter-spacing: -.018em;
}
.band__inhalt p  { margin: 0; font-size: .95rem; color: var(--on-dark-2); max-width: 42ch; }
.band__zahlen {
  list-style: none; margin: var(--s-2) 0 0; padding: var(--s-2) 0 0;
  border-top: var(--rule) solid rgba(233,236,241,.16);
  display: flex; flex-wrap: wrap; gap: .35rem 1.4rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  color: var(--on-dark-2);
}
@media (max-width: 39.999rem) {
  .band__inhalt { position: static; max-inline-size: none; margin: 0; border-radius: 0; border-inline: 0; border-block-end: 0; }
  .band { border-radius: var(--radius-l) var(--radius-l) 0 0; }
}
[data-contrast="high"] .band__inhalt { background: #000; border-color: #fff; }

/* Honigtopf: fuer Menschen unsichtbar, fuer Bots vorhanden.
   Bewusst nicht display:none — das ueberspringen viele Bots gezielt. */
.honigtopf {
  position: absolute; inline-size: 1px; block-size: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ==========================================================================
   PROTO-1.1 · Typografische Skala und Vertikalrhythmus für IBM Plex
   Plex läuft schmaler als der bisherige Systemstack und hat eine ruhigere
   x-Höhe. Grade, Zeilenabstände und Laufweiten sind darauf neu gerechnet.
   ========================================================================== */

:root {
  /* Skala Faktor ~1,22, Zeilenabstand fällt mit steigendem Grad */
  --t-xs:  .7rem;     --lh-xs:  1.45;
  --t-sm:  .82rem;    --lh-sm:  1.55;
  --t-md:  .93rem;    --lh-md:  1.6;
  --t-base: 1.0625rem;--lh-base:1.64;
  --t-lg:  clamp(1.08rem, 1.4vw, 1.2rem);   --lh-lg: 1.56;
  --t-h3:  clamp(1.14rem, 1.7vw, 1.3rem);   --lh-h3: 1.3;
  --t-h2:  clamp(1.6rem, 3vw, 2.2rem);      --lh-h2: 1.16;
  --t-h1:  clamp(2.15rem, 4.9vw, 3.35rem);  --lh-h1: 1.07;
}

body { font-size: var(--t-base); line-height: var(--lh-base); letter-spacing: 0; }

h1 { font-size: var(--t-h1); line-height: var(--lh-h1); letter-spacing: -.028em; font-weight: 600; }
h2 { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: -.02em;  font-weight: 600; }
h3 { font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: -.012em; font-weight: 600; }
h4 { font-size: var(--t-md); line-height: var(--lh-md); letter-spacing: 0;       font-weight: 600; }

.lead { font-size: var(--t-lg); line-height: var(--lh-lg); letter-spacing: -.004em; }
p, li, dd { letter-spacing: 0; }
.prose p, .card p, .faq details > p { line-height: var(--lh-base); }

/* Monolabels: Plex Mono trägt mehr Weite, Sperrung darf zurückgehen */
.eyebrow    { font-size: var(--t-xs); letter-spacing: .16em; font-weight: 500; }
.card__meta { font-size: var(--t-xs); letter-spacing: .13em; font-weight: 500; }
.krume ol   { font-size: var(--t-xs); letter-spacing: .09em; }
.hero__facts, .closer__meta, .band__zahlen,
.contactbar dt, .a11y-group legend { font-size: var(--t-xs); letter-spacing: .1em; }
.media figcaption { font-size: var(--t-xs); letter-spacing: .06em; }

.btn { font-size: var(--t-md); font-weight: 600; letter-spacing: 0; }
.nav__link { font-size: var(--t-md); }
.field label { font-size: var(--t-md); font-weight: 600; }
.field .hint { font-size: var(--t-sm); line-height: var(--lh-sm); }
.check label { font-size: var(--t-sm); line-height: var(--lh-sm); }
.card p { font-size: var(--t-md); line-height: var(--lh-md); }
.card__more { font-size: var(--t-md); }
.faq summary { font-size: var(--t-base); line-height: 1.4; }
.speclist li { font-size: var(--t-md); line-height: var(--lh-md); padding-block: .7rem; }
.speclist li::before { font-size: var(--t-sm); }

/* Ziffern in technischen Angaben laufen tabellarisch */
.hero__facts, .band__zahlen, .karte, .plan, .speclist strong,
.contactbar dd, .closer__meta { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------- Footer kompakt --- */

.footer { padding-block: clamp(2.75rem, 5vw, 3.75rem) var(--s-3); }
.footer__grid { gap: var(--s-4) var(--s-4); }
@media (min-width: 52rem) { .footer__grid { gap: var(--s-3) var(--s-4); } }

.footer h2 {
  font-size: var(--t-xs); letter-spacing: .14em; font-weight: 500;
  margin-bottom: .7rem; color: var(--on-dark);
}
.footer ul { gap: .1rem; }
.footer ul a,
.footer ul li { font-size: var(--t-sm); line-height: 1.45; }
.footer ul a { min-block-size: 2.1rem; }   /* Fußzeile ist Sekundärnavigation */
.footer address { font-size: var(--t-sm); line-height: 1.55; }
.footer .badge-24 { font-size: .66rem; padding: .22rem .5rem; }

.footer__bottom {
  margin-top: var(--s-4); padding-top: var(--s-2);
  gap: .4rem var(--s-3); font-size: var(--t-xs);
}
.footer__legal { gap: .4rem var(--s-3); }
.footer__bottom a, .footer__a11y { font-size: var(--t-xs); }

/* -------------------------------------------------- Rhythmus straffen -- */

.section__head { margin-bottom: var(--s-4); }
.section__head .lead { margin-top: .6rem; }
h2 + .lead, h1 + .lead { margin-top: .7rem; }
.eyebrow { margin-bottom: .85rem; }
p { margin-bottom: .85rem; }
.stack > * + * { margin-top: .85rem; }
.contactbar { padding: var(--s-3); gap: var(--s-3); }
.contactbar dd { margin-top: .15rem; font-size: var(--t-base); }

/* ==========================================================================
   PROTO-1.3 · BFSG-Bedienpanel neu aufgebaut
   Fehler in 1.2: Die Radiobuttons lagen auf position:absolute ohne
   positioniertes Elternelement und flohen damit in das fixierte Panel.
   ========================================================================== */

.a11y-panel {
  inline-size: min(24rem, calc(100vw - 2rem));
  padding: 0;
  border: var(--rule) solid rgba(22,24,28,.14);
  box-shadow: 0 24px 70px rgba(16,18,22,.30), 0 2px 6px rgba(16,18,22,.10);
  overflow: hidden;
}

.a11y-panel__kopf {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3);
  border-bottom: var(--rule) solid rgba(22,24,28,.10);
  background: var(--paper);
}
.a11y-panel__kopf h2 {
  margin: 0; font-size: var(--t-md); font-weight: 600; letter-spacing: -.01em;
}
.a11y-schliessen {
  margin-inline-start: auto; flex: none;
  inline-size: 2.5rem; block-size: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: var(--rule) solid rgba(22,24,28,.16);
  border-radius: var(--radius-s); color: var(--ink-2); cursor: pointer;
}
.a11y-schliessen svg { inline-size: 1rem; block-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .a11y-schliessen:hover { border-color: var(--ink); color: var(--ink); }
}

.a11y-panel__koerper { padding: var(--s-3); display: grid; gap: var(--s-3); }

.a11y-group { margin: 0; border: 0; padding: 0; }
.a11y-group legend {
  padding: 0; margin-bottom: .5rem;
  font-family: var(--font-mono); font-size: var(--t-xs);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}

/* Segmentierte Schalter statt loser Chips */
.a11y-options {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 0;
  border: var(--rule) solid rgba(22,24,28,.18);
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--surface);
}
.a11y-options label {
  position: relative;                 /* haelt den Radiobutton im Segment */
  display: flex; align-items: center; justify-content: center;
  min-block-size: 3rem; padding: .4rem .5rem;
  margin: 0; border: 0; border-radius: 0;
  font-size: var(--t-sm); font-weight: 500; color: var(--ink-2);
  cursor: pointer; text-align: center; line-height: 1.2;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.a11y-options label + label { border-inline-start: var(--rule) solid rgba(22,24,28,.14); }
.a11y-options input {
  position: absolute; inset: 0;
  inline-size: 100%; block-size: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.a11y-options label:has(input:checked) {
  background: var(--blue-deep); color: #fff; font-weight: 600;
}
.a11y-options label:has(input:focus-visible) {
  outline: 3px solid var(--blue); outline-offset: -3px;
}
@media (hover: hover) and (pointer: fine) {
  .a11y-options label:has(input:not(:checked)):hover { background: var(--paper); color: var(--ink); }
}
html[data-motion="off"] .a11y-options label { transition: none; }
@media (prefers-reduced-motion: reduce) { .a11y-options label { transition: none; } }

.a11y-panel__fuss {
  display: flex; gap: var(--s-2); align-items: center;
  padding: var(--s-3); border-top: var(--rule) solid rgba(22,24,28,.10);
  background: var(--paper);
}
.a11y-panel__fuss .btn { flex: 1; min-block-size: 3rem; }
.a11y-hinweis {
  margin: 0; padding: 0 var(--s-3) var(--s-3);
  font-size: var(--t-xs); line-height: 1.5; color: var(--ink-2);
}

[data-contrast="high"] .a11y-panel { border-color: #000; border-width: 2px; }
[data-contrast="high"] .a11y-options { border-color: #000; }
[data-contrast="high"] .a11y-options label + label { border-inline-start-color: #000; }

/* ---------------------------------------- Umbruch in Kurzangaben sperren - */
/* Rufnummern und Zeitspannen enthalten Leerzeichen und brachen mitten
   im Wert um, obwohl Platz war. */
.closer__meta span, .hero__facts li, .band__zahlen li,
.contactbar dd, .footer address { white-space: nowrap; }
.footer address { white-space: normal; }
.footer address br + * { white-space: nowrap; }
.closer__meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }

/* ==========================================================================
   PROTO-1.3 · Rechtsseiten
   Lange Fließtexte brauchen eine eigene Fassung: engeres Maß, nummerierte
   Abschnitte, Inhaltsverzeichnis, sichtbarer Stand.
   ========================================================================== */

.recht { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 62rem) {
  .recht { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: var(--s-6); }
  .recht > :nth-child(1) { grid-column: 1; position: sticky; top: 7.5rem; }
  .recht > :nth-child(2) { grid-column: 2; }
}

.recht__nav h2 {
  font-family: var(--font-mono); font-size: var(--t-xs);
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 500; margin-bottom: .8rem;
}
.recht__nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; counter-reset: rn; }
.recht__nav li { counter-increment: rn; }
.recht__nav a {
  display: flex; gap: .7rem; align-items: baseline;
  padding: .42rem 0; font-size: var(--t-sm); line-height: 1.4;
  color: var(--ink-2); text-decoration: none;
}
.recht__nav a::before {
  content: counter(rn, decimal-leading-zero);
  font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--blue-deep); flex: none;
}
@media (hover: hover) and (pointer: fine) { .recht__nav a:hover { color: var(--ink); } }

.recht__stand {
  margin: var(--s-3) 0 0; padding-top: var(--s-2);
  border-top: var(--rule) solid rgba(22,24,28,.10);
  font-family: var(--font-mono); font-size: var(--t-xs);
  letter-spacing: .06em; color: var(--ink-2);
}

.recht__text { max-inline-size: 42rem; counter-reset: ra; }
.recht__abschnitt { counter-increment: ra; }
.recht__abschnitt > h2 {
  counter-increment: ra;
  display: flex; gap: .85rem; align-items: baseline;
  margin-top: var(--s-5); margin-bottom: .7rem;
  font-size: clamp(1.2rem, 1.9vw, 1.4rem); line-height: 1.28;
  padding-top: var(--s-3);
  border-top: var(--rule) solid rgba(22,24,28,.10);
  scroll-margin-top: clamp(5rem, 11vh, 6.5rem);
}
.recht__abschnitt > h2::before {
  content: counter(ra, decimal-leading-zero);
  font-family: var(--font-mono); font-size: var(--t-sm); font-weight: 400;
  color: var(--blue-deep); flex: none; padding-top: .18em;
}
.recht__abschnitt:first-child > h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.recht__text h3 { margin-top: var(--s-3); font-size: var(--t-base); }
.recht__text p, .recht__text li { font-size: var(--t-md); line-height: 1.72; }
.recht__text p { margin-bottom: .8rem; max-width: 68ch; }
.recht__text ul { padding-inline-start: 1.2rem; margin-bottom: .9rem; max-width: 68ch; }
.recht__text li { margin-block: .3rem; }
.recht__text dl { margin: 0 0 .9rem; }
.recht__text dt {
  font-family: var(--font-mono); font-size: var(--t-xs);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  margin-top: .7rem;
}
.recht__text dd { margin: .15rem 0 0; font-size: var(--t-md); line-height: 1.6; }

/* Offene Angaben sichtbar, aber nicht schreiend */
.pruefen {
  display: inline-block;
  background: rgba(232,163,23,.16);
  border-bottom: 2px solid var(--amber);
  padding: .05em .35em; border-radius: 2px;
  font-family: var(--font-mono); font-size: .88em;
}

/* ------------------------------------------------- Kontaktkacheln ------- */

.kontaktkacheln { display: grid; gap: var(--s-2); }
@media (min-width: 40rem) { .kontaktkacheln { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 68rem) { .kontaktkacheln { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.kachel {
  background: var(--surface);
  border: var(--rule) solid rgba(22,24,28,.11);
  border-radius: var(--radius);
  padding: var(--s-3);
  display: flex; flex-direction: column; gap: .25rem;
  box-shadow: 0 1px 2px rgba(22,24,28,.04);
}
.kachel__rolle {
  margin: 0;
  font-family: var(--font-mono); font-size: var(--t-xs);
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2);
}
.kachel__wert {
  margin: 0; font-size: var(--t-lg); font-weight: 600;
  line-height: 1.3; letter-spacing: -.012em;
  /* Kein pauschales nowrap: das hat vorher die Mailadresse abgeschnitten.
     Die Sperre gilt nur dort, wo ein Wert nicht getrennt werden darf. */
  overflow-wrap: break-word;
}
.kachel__wert--zahl {
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.kachel__wert--mail {
  font-size: var(--t-md); line-height: 1.35;
  overflow-wrap: anywhere; hyphens: none;
}
.kachel__wert a { color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .kachel__wert a:hover { color: var(--blue-deep); }
}
.kachel__zusatz {
  margin: var(--s-2) 0 0; padding-top: 0;
  font-size: var(--t-sm); line-height: 1.45; color: var(--ink-2);
  white-space: normal;
}
.kachel--signal { border-color: rgba(232,163,23,.55); box-shadow: inset 3px 0 0 var(--amber); }
.kachel--signal .kachel__rolle { color: var(--ink); }
@media (max-width: 39.999rem) { .kachel__wert--zahl { white-space: normal; } }
/* Bei sehr schmalen Spalten darf auch die Rufnummer umbrechen, bevor sie
   ueber den Kachelrand laeuft. */
@container (max-width: 12rem) { .kachel__wert--zahl { white-space: normal; } }
[data-contrast="high"] .kachel { border-color: #000; border-width: 2px; }

/* Kacheln: gleiche Hoehe, Inhalt oben ausgerichtet */
.kontaktkacheln { align-items: stretch; }
.kachel { container-type: inline-size; }
.kachel__rolle { margin-bottom: .35rem; }

/* Blickrichtung der Melder und Kameras — belegt die gegenlaeufige Ausrichtung */
.plan .pl-richtung {
  fill: none; stroke: var(--amber); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; opacity: .85;
}
.is-ready .plan .pl-richtung { animation: pl-flaeche .6s var(--ease) 1.15s both; }
[data-contrast="high"] .plan .pl-richtung { stroke: #fff; }
