/* ------------------------------------------------------------------
   EMU Electronic AG — Design-System
   Layout: durchgehendes 1200px-Raster, Weissraum-getrieben; Abschnitte
   wechseln zwischen Weiss, Hellblau (#e5edf2) und Navy-Panel. Wiederkehrende
   Form: Karte mit drei gerundeten und einer rechtwinkligen Ecke
   (Styleguide: Eckenradius 10 mm / 0 mm). Punktraster-Globus als Signatur.
   ------------------------------------------------------------------ */

:root {
  /* Farben — EMU Brand & Design Guidelines 2026 */
  --brand:        #0069b4;  /* Pantone 300 C */
  --brand-80:     #3388c0;
  --brand-30:     #b2d2e7;
  --deep:         #142c46;  /* Pantone 2768 C */
  --deep-80:      #3a465f;
  --accent:       #e30613;  /* Pantone 185 C */
  --ink:          #1d1d1b;
  --ink-70:       #58585a;
  --mist:         #e5edf2;

  /* Rollen */
  --bg:           #ffffff;
  --bg-alt:       var(--mist);
  --fg:           var(--ink);
  --fg-muted:     var(--ink-70);
  --line:         rgba(20, 44, 70, .22);
  --line-strong:  rgba(20, 44, 70, .28);
  --card:         #ffffff;
  --card-line:    rgba(20, 44, 70, .12);
  --panel:        var(--deep);
  --panel-fg:     #ffffff;
  --panel-muted:  rgba(255, 255, 255, .72);
  --panel-blue:   var(--brand);
  /* Flaechenrollen: in der Dunkelfassung umdefiniert, damit Panels mitgehen */
  --on-mist:      var(--deep);     /* Text auf der Mist-Flaeche */
  --surface-blue: var(--brand);    /* blaue Panelflaeche */
  --surface-navy: var(--deep);     /* Navy-Panelflaeche */
  --surface:      #ffffff;         /* weisse Karten- und Panelflaeche */
  --on-mist-muted: #44546b;        /* Fliesstext auf der Mist-Flaeche */
  --on-panel:     var(--brand-30); /* Akzentschrift auf Navy-Panels */
  --on-brand:     #ffffff;         /* Schrift auf der Markenflaeche */
  --link:         var(--brand);
  --shadow:       0 18px 48px -28px rgba(20, 44, 70, .45);
  --dot:          #0069b4;

  /* Typenskala — 8 Stufen statt 28 Einzelwerte */
  --fs-2xs: .7rem;
  --fs-xs:  .8rem;
  --fs-sm:  .9rem;
  --fs-base: 1rem;
  --fs-md:  1.125rem;
  --fs-lg:  1.3rem;
  --fs-xl:  1.75rem;
  --fs-2xl: 2.25rem;

  /* Typografie */
  --font-display: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Arimo", "Liberation Sans", Arial, Helvetica, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Form */
  --r:            26px;         /* 10 mm Eckenradius */
  --r-sm:         14px;
  --wrap:         1280px;

  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0c1522;
    --bg-alt:      #121f31;
    --fg:          #e9eff5;
    --fg-muted:    #a3b3c4;
    --line:        rgba(178, 210, 231, .26);
    --line-strong: rgba(178, 210, 231, .32);
    --card:        #132032;
    --card-line:   rgba(178, 210, 231, .14);
    --panel:       #0a1420;
    --panel-fg:    #eef4f9;
    --panel-muted: rgba(233, 239, 245, .72);
    --panel-blue:  #0b4472;
    --brand:       #4e9fd6;
    --brand-30:    #2a4e6b;
    --link:        #6fb6e4;
    --shadow:      0 18px 48px -28px rgba(0, 0, 0, .8);
    --mist:        #16263b;
    --on-mist:     var(--fg);
    --surface-blue: #0b4472;
    --surface-navy: #0a1420;
    --surface:     #16263b;
  --on-mist-muted: var(--fg-muted);
  --on-panel:    #8fc4ea;
  --on-brand:    #08192b;
    --on-mist-muted: var(--fg-muted);
    --on-panel:    #8fc4ea;
    --on-brand:    #08192b;
    --dot:         #4e9fd6;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:          #0c1522;
  --bg-alt:      #121f31;
  --fg:          #e9eff5;
  --fg-muted:    #a3b3c4;
  --line:        rgba(178, 210, 231, .26);
  --line-strong: rgba(178, 210, 231, .32);
  --card:        #132032;
  --card-line:   rgba(178, 210, 231, .14);
  --panel:       #0a1420;
  --panel-fg:    #eef4f9;
  --panel-muted: rgba(233, 239, 245, .72);
  --panel-blue:  #0b4472;
  --brand:       #4e9fd6;
  --brand-30:    #2a4e6b;
  --link:        #6fb6e4;
  --shadow:      0 18px 48px -28px rgba(0, 0, 0, .8);
  --mist:    #16263b;
  --on-mist:   var(--fg);
  --surface-blue: #0b4472;
  --surface-navy: #0a1420;
  --surface:   #16263b;
  --dot:         #4e9fd6;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-wrap: balance;
  margin: 0;
}
h1 { font-weight: 300; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.015em; }
h2 { font-weight: 300; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.14; letter-spacing: -.01em; }
h3 { font-weight: 500; font-size: clamp(var(--fs-md), 1.8vw, var(--fs-lg)); line-height: 1.25; }
h4 { font-weight: 500; font-size: var(--fs-base); line-height: 1.35; }
p  { margin: 0; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

a, button, summary, label, input, select, .btn { touch-action: manipulation; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

section { padding-inline: 20px; }
.sec { padding-block: clamp(38px, 4.4vw, 64px); padding-inline: 20px; position: relative; }
.sec--tight { padding-block: clamp(26px, 3vw, 40px); }
.sec--mist { background: var(--bg-alt); }

/* dezentes Punktraster, damit weisse Flächen nicht leer wirken */
.sec--deco { overflow: hidden; }
.sec--deco > .deco {
  position: absolute; pointer-events: none; z-index: 0;
  width: min(54vw, 620px); aspect-ratio: 1;
  opacity: .22;
}
.sec--deco > .deco svg { width: 100%; height: 100%; }
.deco--tr { top: -14%; right: -12%; }
.deco--bl { bottom: -18%; left: -14%; }
.sec--deco > .wrap { position: relative; z-index: 1; }
@media (max-width: 760px) { .sec--deco > .deco { display: none; } }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
.panel .eyebrow { color: var(--on-panel); }

.lede { font-size: clamp(var(--fs-base), 1.4vw, var(--fs-md)); color: var(--fg-muted); max-width: 62ch; }
.panel .lede { color: var(--panel-muted); }

.rule {
  width: 44px; height: 2px; border: 0; margin: 15px 0;
  background: var(--accent);
}

/* ---------- Karte mit einer rechtwinkligen Ecke ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r) 0 var(--r) var(--r);
  padding: clamp(18px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.card--flip { border-radius: 0 var(--r) var(--r) var(--r); }
.card--raised { box-shadow: var(--shadow); }

.panel {
  background: var(--panel);
  color: var(--panel-fg);
}
.panel h1, .panel h2, .panel h3, .panel h4 { color: var(--panel-fg); }
.panel a { color: var(--on-panel); }

.blue { background: var(--panel-blue); color: #fff; }
.blue .eyebrow { color: rgba(255,255,255,.9); }
/* Eyebrow auf blauem Grund: .78 ergibt nur 4,1:1, zu wenig fuer 13 px */
.eyebrow--on-blue, .p--blue .eyebrow, .p--navy .eyebrow { color: rgba(255,255,255,.9); }
.blue .lede { color: rgba(255,255,255,.86); }

/* Ankerziele bleiben unter der klebenden Navigation sichtbar */
[id] { scroll-margin-top: 88px; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
/* Dekorative Flaechen (Punktraster, Farbverlaeufe) ragen bewusst ueber den
   Rand hinaus. clip statt hidden, damit die klebende Navigation bleibt. */
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Sprunglink ---------- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 500; text-decoration: none;
  transition: top .12s ease;
}
.skip:focus-visible { top: 0; outline: 2px solid #fff; outline-offset: -4px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.nav__logo { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
/* Die Wortmarke mit Emu-Kopf braucht Hoehe, sonst ist "ELECTRONIC" unlesbar */
.nav__logo img { height: 46px; width: auto; }
@media (max-width: 560px) { .nav__logo img { height: 40px; } }
.nav__logo .dark-only { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav__logo .light-only { display: none; }
  :root:not([data-theme="light"]) .nav__logo .dark-only  { display: block; }
}
:root[data-theme="dark"] .nav__logo .light-only { display: none; }
:root[data-theme="dark"] .nav__logo .dark-only  { display: block; }

.nav__links { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav__links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--fg);
  text-decoration: none;
  padding: 11px 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav__links a:hover { background: var(--bg-alt); }
.nav__links a[aria-current="page"] { color: var(--brand); background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm);
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-80); }
.btn--ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn--ghost:hover { background: var(--bg-alt); }
.panel .btn--ghost, .blue .btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.panel .btn--ghost:hover, .blue .btn--ghost:hover { background: rgba(255,255,255,.1); }
.blue .btn--primary { background: #fff; color: #0069b4; }

/* Buttons auf farbigen Flaechen: var(--brand) auf blauer Flaeche waere unsichtbar */
.p--blue .btn--primary, .p--navy .btn--primary { background: #fff; color: #0069b4; }
.p--blue .btn--primary:hover, .p--navy .btn--primary:hover { background: var(--mist); }
.p--blue .btn--ghost, .p--navy .btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.p--blue .btn--ghost:hover, .p--navy .btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Raster ---------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--panel); color: var(--panel-fg); }

/* Grafik-Element nur in der rechten Hälfte, damit es nie unter der Schrift liegt */
.hero__bg {
  position: absolute; inset: 0 -8% 0 38%;
  pointer-events: none; opacity: .62;
}
.hero__bg svg { width: 100%; height: 100%; }

/* Schleier über dem Grafik-Element: garantiert den Kontrast der Textspalte,
   unabhängig davon, wie hell das Punktraster an einer Stelle gerade ist. */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(100deg,
    rgba(8, 19, 32, .97) 0%,
    rgba(8, 19, 32, .93) 40%,
    rgba(8, 19, 32, .55) 68%,
    rgba(8, 19, 32, .18) 88%,
    rgba(8, 19, 32, .10) 100%);
}
@media (max-width: 899.98px) {
  .hero__bg { inset: 42% -20% -10% 20%; opacity: .5; }
  .hero::after {
    background: linear-gradient(180deg,
      rgba(8, 19, 32, .97) 0%,
      rgba(8, 19, 32, .93) 52%,
      rgba(8, 19, 32, .68) 78%,
      rgba(8, 19, 32, .4) 100%);
  }
}
.hero__in {
  position: relative; z-index: 2;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(38px, 4.6vw, 68px) 20px;
  display: grid;
  gap: clamp(24px, 3.2vw, 44px);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
}
@media (max-width: 899.98px) { .hero__in { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero p { color: var(--panel-muted); }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero__shot {
  background: rgba(255,255,255,.96);
  border-radius: var(--r) 0 var(--r) var(--r);
  padding: 22px;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.8);
}
/* Kennzahlenstreifen direkt im Hero — füllt die Fläche unter dem Text */
.hero__facts {
  grid-column: 1 / -1;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 20px; margin-top: 4px;
}
.hero__shot img { width: 100%; height: auto; }
.hero__shot figcaption {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .04em;
  color: #58585a;
  margin-top: 14px;
}

/* ---------- Swiss-Band ---------- */
.swiss {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-xs); letter-spacing: .01em;
}
.swiss__cross {
  width: 20px; height: 20px; border-radius: 3px;
  background: var(--accent);
  position: relative; flex: none;
}
.swiss__cross::before, .swiss__cross::after {
  content: ""; position: absolute; background: #fff; border-radius: 1px;
}
.swiss__cross::before { left: 8.5px; top: 4px; width: 3px; height: 12px; }
.swiss__cross::after  { top: 8.5px; left: 4px; height: 3px; width: 12px; }

/* ---------- Prozesskette ---------- */
.chain { counter-reset: step; display: grid; gap: 2px; }
.chain__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.chain__item:last-child { border-bottom: 1px solid var(--line); }
.panel .chain__item { border-color: rgba(255,255,255,.18); }
.chain__no {
  counter-increment: step;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--brand);
  padding-top: 4px;
}
.panel .chain__no { color: var(--on-panel); }
.chain__no::before { content: counter(step, decimal-leading-zero); }

/* ---------- Kennzahlen ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__n {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.panel .stat__n, .blue .stat__n, .hero .stat__n { color: #fff; }
.hero .stat__l { color: var(--panel-muted); }
.stat__l { font-size: var(--fs-sm); color: var(--fg-muted); }
.panel .stat__l, .blue .stat__l { color: var(--panel-muted); }
.blue .stat__l { color: rgba(255,255,255,.82); }

/* ---------- Listen ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 10px; height: 10px; border-radius: 2px;
  background: var(--brand);
}
.panel .ticks li::before, .blue .ticks li::before { background: var(--brand-30); }
.blue .ticks li::before { background: #fff; }

.dl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; }
.dl-list li { border-top: 1px solid var(--line); }
.dl-list li:last-child { border-bottom: 1px solid var(--line); }
.dl-list a {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 13px 2px; text-decoration: none; color: var(--fg);
}
.dl-list a:hover { color: var(--brand); }
.dl-list .kind {
  font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .08em;
  text-transform: uppercase; color: var(--fg-muted); flex: none;
}

/* ---------- Tabellen (Specs) ---------- */
/* Scrollbarer Bereich muss per Tastatur erreichbar sein (WCAG 2.1.1) */
.tablewrap { overflow-x: auto; }
.tablewrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
table.spec {
  width: 100%; border-collapse: collapse;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
table.spec th, table.spec td {
  text-align: left; padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.spec th {
  font-family: var(--font-display); font-weight: 500;
  color: var(--fg); width: 38%; min-width: 180px;
}
table.spec td { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--fg-muted); }
table.spec caption {
  text-align: left; font-family: var(--font-display); font-weight: 500;
  padding-bottom: 10px; color: var(--fg);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-base);
  padding: 16px 36px 16px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 13px;
  font-family: var(--font-display); font-weight: 300; font-size: var(--fs-lg);
  color: var(--brand); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 18px; color: var(--fg-muted); max-width: 72ch; }

.faq__jump {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 22px;
}
.faq__jump a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--bg-alt); color: var(--fg);
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-sm); text-decoration: none;
}
.faq__jump a:hover, .faq__jump a:focus-visible { background: var(--brand-30); }
.faq__g { margin-top: clamp(30px, 3.4vw, 46px); scroll-margin-top: 90px; }
.faq__g > h3 {
  font-size: var(--fs-md); font-weight: 600;
  color: var(--brand); margin-bottom: 12px;
  scroll-margin-top: 90px;
}
.faq__src {
  margin-top: clamp(28px, 3vw, 40px);
  font-size: var(--fs-xs); color: var(--fg-muted); max-width: 80ch;
}
.faq__src a { color: inherit; text-decoration: underline; }

/* ---------- Nerd Mode ---------- */
.nerdbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px;
  border: 1px solid var(--card-line);
  border-radius: var(--r-sm);
  background: var(--card);
}
.nerdbar__txt { font-size: var(--fs-sm); color: var(--fg-muted); min-width: 0; }
.nerdbar--sticky {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  z-index: 30;
  box-shadow: var(--shadow);
}
.switch { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; margin-right: auto; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  width: 52px; height: 29px; border-radius: 999px;
  background: var(--line-strong); position: relative;
  transition: background .18s ease; flex: none;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 23px; height: 23px; border-radius: 50%;
  background: #fff; transition: transform .18s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(23px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 3px; }
.switch__label {
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm);
}
.switch__label code { font-family: var(--font-mono); font-size: .85em; }

.nerd { display: none; }
:root[data-nerd="on"] .nerd { display: block; }
:root[data-nerd="on"] .nerd.nerd--grid { display: grid; }
:root[data-nerd="on"] .nerd.nerd--flex { display: flex; }
:root[data-nerd="on"] .nerd.nerd--inline { display: inline; }
:root[data-nerd="on"] .nerd-hide { display: none; }

.nerdnote {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  max-width: 70ch;
}

/* ---------- Footer ---------- */
.foot { background: var(--panel); color: var(--panel-fg); padding: clamp(48px,6vw,76px) 20px 28px; }
.foot a { color: var(--panel-muted); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot h4 { margin-bottom: 12px; font-size: var(--fs-xs); letter-spacing: .01em; font-weight: 600; color: var(--on-panel); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: var(--fs-sm); }
.foot__bottom {
  margin-top: 44px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  font-size: var(--fs-xs); color: var(--panel-muted);
}
.foot img { height: 48px; width: auto; }

/* ---------- Media-Objekt ---------- */
.media {
  display: grid; gap: clamp(22px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  align-items: center;
}
.media__img {
  border-radius: var(--r) 0 var(--r) var(--r);
  overflow: hidden;
  min-width: 0;
}
.media__img img { width: 100%; height: 100%; object-fit: cover; }
.media--flip .media__img { border-radius: 0 var(--r) var(--r) var(--r); }

/* In Grid- und Flex-Containern wuerde die Pille sonst volle Breite ziehen */
.card > .tag, .pcard__body > .tag, .shot > .tag { justify-self: start; align-self: start; }
.tag {
  display: inline-block;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-xs);
  padding: 4px 11px; border-radius: 999px;
  background: var(--brand-30); color: var(--deep);
}
:root[data-theme="dark"] .tag { color: #dce9f3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag { color: #dce9f3; } }

.prodshot {
  background: #fff;
  border-radius: var(--r-sm);
  padding: 18px;
  display: grid; place-items: center;
  min-height: 190px;
}

/* ---------- Scroll-Fortschritt ---------- */
.progress {
  position: absolute; left: 0; bottom: -1px; height: 2px;
  background: var(--accent); width: 0;
  transition: width .08s linear;
}

/* ---------- Verlaufsflächen statt flächigem Navy ---------- */
/* Dunkel, wo die Schrift steht; das Blau glüht nur rechts, beim Grafik-Element. */
.panel--grad {
  background:
    radial-gradient(85% 75% at 96% 18%, color-mix(in srgb, var(--brand) 62%, transparent) 0%, transparent 62%),
    radial-gradient(70% 60% at 78% 112%, color-mix(in srgb, var(--brand) 26%, transparent) 0%, transparent 60%),
    linear-gradient(104deg, #081320 0%, #0d1f33 46%, #15395c 100%);
}
@media (max-width: 899.98px) {
  .panel--grad {
    background:
      radial-gradient(90% 55% at 70% 100%, color-mix(in srgb, var(--brand) 48%, transparent) 0%, transparent 66%),
      linear-gradient(180deg, #081320 0%, #0d1f33 58%, #13314f 100%);
  }
}
.blue--grad {
  background:
    radial-gradient(100% 120% at 100% 0%, color-mix(in srgb, #ffffff 22%, transparent) 0%, transparent 60%),
    var(--panel-blue);
}

/* ---------- Bildbehandlung ---------- */
.duo { position: relative; overflow: hidden; min-width: 0; }
.duo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.duo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, color-mix(in srgb, var(--brand) 42%, transparent), color-mix(in srgb, var(--deep) 72%, transparent));
  mix-blend-mode: multiply;
}
.duo--soft::after { opacity: .55; }
.duo__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 18px 20px;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(to top, rgba(10,20,32,.78), transparent);
}

/* ---------- Bento ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bento > * { grid-column: span 6; }
@media (min-width: 760px) {
  .bento > * { grid-column: span 3; }
  .bento .b-wide { grid-column: span 6; }
}
@media (min-width: 1040px) {
  .bento > * { grid-column: span 2; }
  .bento .b-wide  { grid-column: span 4; }
  .bento .b-tall  { grid-row: span 2; }
  .bento .b-full  { grid-column: span 6; }
}
.bento .card { height: 100%; }

/* ---------- Referenz-Laufband ---------- */
.marquee-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 10px;
  border-block: 1px solid var(--line);
}
.marquee {
  overflow: hidden; position: relative;
  padding-block: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.panel .marquee-row, .hero .marquee-row { border-color: rgba(255,255,255,.2); }
.marquee__track { display: flex; width: max-content; gap: 0; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: slide 42s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
}
@keyframes slide { to { transform: translateX(-50%) } }
.marquee-row.is-paused .marquee__track { animation-play-state: paused; }

/* Pause-/Weiter-Schalter: WCAG 2.2.2 verlangt eine Steuerung fuer
   Inhalte, die laenger als fuenf Sekunden automatisch laufen. */
.marquee__pause {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--fg);
  box-shadow: 0 0 0 1px var(--line);
}
.marquee__pause:hover { color: var(--brand); }
.marquee__ico {
  width: 12px; height: 13px; flex: none;
  background: currentColor;
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 4px 13px no-repeat,
                linear-gradient(#000 0 0) 8px 0 / 4px 13px no-repeat;
          mask: linear-gradient(#000 0 0) 0 0 / 4px 13px no-repeat,
                linear-gradient(#000 0 0) 8px 0 / 4px 13px no-repeat;
}
.marquee-row.is-paused .marquee__ico {
  -webkit-mask: none; mask: none;
  width: 0; height: 0; background: transparent;
  border-left: 12px solid currentColor;
  border-block: 7px solid transparent;
}
@media (prefers-reduced-motion: reduce) { .marquee__pause { display: none; } }
.marquee__item {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  white-space: nowrap; padding-inline: 26px;
  display: flex; align-items: center; gap: 26px;
  color: var(--fg-muted);
}
.panel .marquee__item, .hero .marquee__item { color: var(--panel-muted); }
.marquee__item::after {
  content: ""; width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent); flex: none;
}

/* ---------- Sprungnavigation auf Produktseiten ---------- */
.jump {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-block: 12px;
}
.jump a {
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm);
  padding: 10px 16px; border-radius: 999px; min-height: 44px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong);
  color: var(--fg); text-decoration: none;
}
.jump a:hover { border-color: var(--brand); color: var(--brand); }

.btn__arrow { transition: transform .16s ease; display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Produktkachel auf der Übersicht ---------- */
.pcard {
  display: grid; gap: 0;
  grid-template-rows: auto 1fr auto;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r) 0 var(--r) var(--r);
  overflow: hidden;
  text-decoration: none; color: var(--fg);
  min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pcard:nth-child(even) { border-radius: 0 var(--r) var(--r) var(--r); }
.pcard:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.pcard__shot {
  background: linear-gradient(160deg, #f3f7fa, #dde9f1);
  display: grid; place-items: center;
  padding: 26px; min-height: 180px;
}
.pcard__shot img { max-height: 180px; width: auto; }
.pcard__body { padding: 22px 24px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pcard__foot {
  padding: 14px 24px 22px;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm);
  color: var(--brand);
  display: flex; align-items: center; gap: 8px;
}
.pcard:hover .pcard__foot .btn__arrow { transform: translateX(4px); }

/* ---------- Artikeltypografie ---------- */
.article { display: grid; gap: 14px; }
.article h2 {
  font-size: clamp(var(--fs-lg), 2.2vw, var(--fs-xl));
  font-weight: 500;
  margin-top: 26px;
  scroll-margin-top: 90px;
}
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 14px; }
.article p { color: var(--fg-muted); max-width: 70ch; }
.article strong { color: var(--fg); font-weight: 700; }
.article code {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--bg-alt); padding: 2px 6px; border-radius: 4px;
}
.article ul.ticks, .article ol { max-width: 70ch; }
.article .tablewrap { margin: 6px 0; }

/* ---------- Blogübersicht ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm);
  padding: 10px 17px; border-radius: 999px; cursor: pointer; min-height: 44px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--fg);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.posts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post {
  display: grid; gap: 10px; align-content: start;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--r) 0 var(--r) var(--r);
  text-decoration: none; color: var(--fg); min-width: 0;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.post:nth-child(even) { border-radius: 0 var(--r) var(--r) var(--r); }
.post:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.post__meta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-muted);
}
.post__t { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-md); line-height: 1.3; margin: 0; }
.post__d { font-size: var(--fs-sm); color: var(--fg-muted); }
.post__go {
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm);
  color: var(--brand); margin-top: 4px;
}
.post:hover .post__go .btn__arrow { transform: translateX(4px); }

/* ---------- Glossar ---------- */
.gsearch {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 14px 16px; border: 1px solid var(--card-line);
  border-radius: var(--r-sm); background: var(--card);
}
.gsearch input {
  flex: 1 1 240px; min-width: 0;
  font-family: var(--font-body); font-size: var(--fs-base);
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--fg);
}
.gsearch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gsearch output { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-muted); }

.gterms { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.gterm {
  padding: 16px 18px; min-width: 0;
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: 16px 0 16px 16px;
  scroll-margin-top: 90px;
}
.gterm:nth-child(even) { border-radius: 0 16px 16px 16px; }
.gterm dt {
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-base);
  color: var(--fg); margin-bottom: 5px;
}
.gterm dd { margin: 0; font-size: var(--fs-sm); color: var(--fg-muted); }
.gterm .gcat {
  display: inline-block; margin-top: 9px;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-2xs); color: var(--brand);
}
.gnav { display: flex; gap: 7px; flex-wrap: wrap; }
.gnav a {
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm);
  padding: 10px 15px; border-radius: 999px; min-height: 44px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); color: var(--fg); text-decoration: none;
}
.gnav a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Brotkrumen ---------- */
.crumb {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-family: var(--font-mono); font-size: var(--fs-xs);
  color: var(--panel-muted);
  margin-bottom: 16px;
}
.crumb a { color: var(--panel-muted); text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.crumb span { opacity: .5; }

/* Brotkrume auf hellem Seitengrund (die .crumb oben sitzt auf dunklen Flaechen) */
.crumbs {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-muted);
}
.crumbs li + li::before { content: "›"; opacity: .55; margin-right: 8px; }
.crumbs a { color: var(--brand); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Fliesstext-Block ---------- */
.prose { max-width: 68ch; display: grid; gap: 14px; }
.prose p { color: var(--fg-muted); }
.prose h3 { color: var(--fg); margin-top: 10px; }
.prose strong { color: var(--fg); font-weight: 700; }
.panel .prose p, .panel .prose strong { color: var(--panel-muted); }
.panel .prose strong { color: #fff; }
.prose--wide { max-width: none; }

/* Lange Pfade und Topics in <code> duerfen umbrechen, sonst sprengen sie
   auf schmalen Geraeten das Raster. */
code, kbd, samp { overflow-wrap: anywhere; }
.callout, .callout > * { min-width: 0; }

.callout {
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 18px;
  display: grid; gap: 8px;
}
.callout--accent { border-color: var(--accent); }
.callout h4 { color: var(--fg); }
.panel .callout h4 { color: #fff; }

/* Definitionsliste für Begriffe */
.defs { display: grid; gap: 0; margin: 0; }
.defs > div {
  display: grid; gap: 4px 20px;
  /* auto-fit statt fester Spalte: in schmalen Karten faellt die Liste
     einspaltig, sonst sprengen lange Komposita die 2. Spalte */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.defs > div:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .defs > div { grid-template-columns: 1fr; } }
.defs dt {
  font-family: var(--font-display); font-weight: 500;
  color: var(--fg);
}
.defs dd { margin: 0; color: var(--fg-muted); font-size: var(--fs-sm); min-width: 0; }
.defs dt, .defs dd { overflow-wrap: break-word; }
.panel .defs > div { border-color: rgba(255,255,255,.18); }
.panel .defs dt { color: #fff; }
.panel .defs dd { color: var(--panel-muted); }

/* Schnittstellen-Wechsler */
.ifnav { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.ifnav a {
  display: grid; gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--card-line); background: var(--card);
  border-radius: 16px 0 16px 16px;
  text-decoration: none; color: var(--fg);
  transition: transform .16s ease, border-color .16s ease;
}
.ifnav a:nth-child(even) { border-radius: 0 16px 16px 16px; }
.ifnav a:hover { transform: translateY(-2px); border-color: var(--brand); }
.ifnav a[aria-current="page"] { border-color: var(--brand); background: var(--bg-alt); }
.ifnav__t { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-base); }
.ifnav__s { font-size: var(--fs-xs); color: var(--fg-muted); }

/* ---------- Download-Kacheln ---------- */
.dlgrid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.dl {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 15px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 16px 0 16px 16px;
  text-decoration: none; color: var(--fg);
  min-width: 0;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.dl:nth-child(even) { border-radius: 0 16px 16px 16px; }
.dl:hover { transform: translateY(-2px); border-color: var(--brand); background: var(--bg-alt); }
.dl__badge {
  flex: none; min-width: 48px; text-align: center;
  font-family: var(--font-mono); font-weight: 500;
  font-size: var(--fs-2xs); letter-spacing: .02em;
  padding: 6px 7px; border-radius: 6px;
  background: var(--brand); color: var(--on-brand);
}
.dl__badge--zip { background: var(--deep-80); color: #fff; }
.dl__badge--git { background: var(--ink); color: #fff; }
.dl__badge--web { background: var(--accent); color: #fff; }
.dl__txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dl__t { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm); line-height: 1.25; }
.dl__s { display: block; font-size: var(--fs-xs); line-height: 1.3; color: var(--fg-muted); }
.dl__go { margin-left: auto; color: var(--brand); font-size: var(--fs-base); flex: none; transition: transform .16s ease; }
.dl:hover .dl__go { transform: translateX(3px); }
.panel .dl, .blue .dl {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); color: #fff;
}
.panel .dl:hover, .blue .dl:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.panel .dl__s, .blue .dl__s { color: rgba(255,255,255,.72); }
.panel .dl__go, .blue .dl__go { color: var(--on-panel); }

.dlhead {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: 26px 0 12px;
}
.dlhead h4 { font-size: var(--fs-xs); letter-spacing: .01em; font-weight: 600; color: var(--brand); }
.dlhead span { font-size: var(--fs-xs); color: var(--fg-muted); }
.dlhead::after { content: ""; flex: 1 1 60px; height: 1px; background: var(--line); }

/* ---------- Flussband (Messpunkt → M-Center → Anwendung) ---------- */
.flow { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 900px) {
  .flow { grid-template-columns: minmax(0,1fr) 54px minmax(0,1.04fr) 54px minmax(0,1fr); }
}
.flow__rail { position: relative; display: grid; place-items: center; min-height: 54px; }
.flow__rail::before {
  content: ""; position: absolute;
  background: currentColor; opacity: .3;
}
@media (min-width: 900px) {
  .flow__rail::before { left: 0; right: 0; top: 50%; height: 1px; }
}
@media (max-width: 899.98px) {
  .flow__rail::before { top: 0; bottom: 0; left: 50%; width: 1px; }
}
.flow__pip {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 24%, transparent);
  position: relative;
}
@media (prefers-reduced-motion: no-preference) {
  @media (min-width: 900px) {
    .flow__pip { animation: flow-x 2.6s cubic-bezier(.5,0,.5,1) infinite; }
  }
  @media (max-width: 899.98px) {
    .flow__pip { animation: flow-y 2.6s cubic-bezier(.5,0,.5,1) infinite; }
  }
  .flow > .flow__rail:nth-child(4) .flow__pip { animation-delay: .6s; }
}
@keyframes flow-x { 0% { transform: translateX(-24px); opacity: 0 } 18%,78% { opacity: 1 } 100% { transform: translateX(24px); opacity: 0 } }
@keyframes flow-y { 0% { transform: translateY(-22px); opacity: 0 } 18%,78% { opacity: 1 } 100% { transform: translateY(22px); opacity: 0 } }

/* ---------- Animationen ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-globe] svg > g { animation: emu-turn 150s linear infinite; transform-origin: 50% 50%; }
  .deco svg > g { animation-duration: 240s; animation-direction: reverse; }

  .rise { animation: rise .62s cubic-bezier(.22,.7,.3,1) both; }
  .rise-1 { animation-delay: .04s } .rise-2 { animation-delay: .12s }
  .rise-3 { animation-delay: .2s }  .rise-4 { animation-delay: .28s }

  .hero__shot { animation: shot .8s cubic-bezier(.22,.7,.3,1) both .16s; }
}
@keyframes emu-turn { to { transform: rotate(360deg) } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
@keyframes shot { from { opacity: 0; transform: translateY(20px) scale(.985) } to { opacity: 1; transform: none } }

/* Abschnitts-Einblendung: Ruhezustand ist sichtbar, JS setzt .reveal erst,
   wenn IntersectionObserver vorhanden ist. */
/* Abschnitte blenden nicht mehr einzeln ein — ein Moment beim Laden genügt. */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================================================================
   TEXT-ELEMENT nach Styleguide Seite 5
   Farbige Flächen tragen den Text. Drei Ecken mit grossem Radius,
   eine rechtwinklig — und zwar dort, wo die nächste Fläche anstösst.
   Flächen überlappen, keine Rahmen, keine Schatten.
   ================================================================ */

:root { --r-panel: clamp(34px, 4.6vw, 68px); }

.p {
  border-radius: var(--r-panel);
  padding: clamp(26px, 3.2vw, 46px);
  min-width: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.p--tl { border-top-left-radius: 0 }
.p--tr { border-top-right-radius: 0 }
.p--br { border-bottom-right-radius: 0 }
.p--bl { border-bottom-left-radius: 0 }

.p--blue { background: var(--surface-blue); color: #fff; }
.p--navy { background: var(--surface-navy); color: #fff; }
.p--mist { background: var(--mist); color: var(--on-mist); }
.p--white { background: var(--surface); color: var(--fg); }

.p--blue h1, .p--blue h2, .p--blue h3, .p--blue h4,
.p--navy h1, .p--navy h2, .p--navy h3, .p--navy h4 { color: #fff; }
.p--blue p, .p--blue .lede, .p--navy p, .p--navy .lede { color: rgba(255,255,255,.88); }
.p--blue a, .p--navy a { color: #fff; }
.p--mist h2, .p--mist h3, .p--mist h4 { color: var(--on-mist); }
.p--mist p, .p--mist .lede { color: var(--on-mist-muted); }

/* ---------- Datenfluss-Animation ---------- */
.dflow { margin: 0; display: grid; gap: 16px; }
.dflow__row {
  display: grid; gap: 10px; align-items: stretch;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .dflow--3 .dflow__row { grid-template-columns: minmax(0,1fr) minmax(110px,.9fr) minmax(0,1fr) minmax(110px,.9fr) minmax(0,1fr); }
  .dflow--2 .dflow__row { grid-template-columns: minmax(0,1fr) minmax(140px,1fr) minmax(0,1fr); }
}
.dflow__node {
  display: grid; gap: 6px; align-content: start;
  padding: clamp(16px, 1.8vw, 24px);
  border-radius: var(--r-panel) 0 var(--r-panel) var(--r-panel);
  background: var(--mist); color: var(--on-mist);
  min-width: 0;
}
.dflow__node:nth-of-type(even) { border-radius: 0 var(--r-panel) var(--r-panel) var(--r-panel); }
.dflow__node--accent { background: var(--surface-navy); color: #fff; }
.dflow__node--accent .dflow__t { color: #fff; }
.dflow__node--accent .dflow__s { color: rgba(255,255,255,.78); }
.dflow__ico { width: 30px; height: 30px; display: block; color: var(--brand); }
.dflow__node--accent .dflow__ico { color: var(--brand-30); }
.dflow__t { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--on-mist); }
.dflow__s { font-size: var(--fs-xs); color: var(--on-mist-muted); line-height: 1.45; }

.dflow__link { position: relative; display: grid; place-items: center; padding: 18px 0; min-height: 74px; }
.dflow__track {
  position: absolute; left: 6%; right: 6%; top: 50%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-30) 0 7px, transparent 7px 14px);
}
.dflow__label {
  position: relative; z-index: 1;
  background: var(--bg); padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: var(--fs-2xs);
  letter-spacing: .04em; color: var(--brand); text-align: center;
}
.dflow__pkt {
  position: absolute; top: 50%; left: 6%; width: 9px; height: 9px; margin-top: -4px;
  border-radius: 50%; background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .dflow__pkt { animation: dflowX 3.2s linear infinite; }
  .dflow__pkt:nth-child(3) { animation-delay: 1.05s; }
  .dflow__pkt:nth-child(4) { animation-delay: 2.1s; }
}
@keyframes dflowX {
  0%   { transform: translateX(0);            opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(var(--dflow-run, 300px)); opacity: 0; }
}
@media (max-width: 899.98px) {
  .dflow__link { min-height: 104px; }
  .dflow__track { left: 50%; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; margin-left: -1px;
    background: repeating-linear-gradient(180deg, var(--brand-30) 0 7px, transparent 7px 14px); }
  .dflow__pkt { left: 50%; top: 8px; margin-left: -4px; margin-top: 0; }
  @media (prefers-reduced-motion: no-preference) {
    .dflow__pkt { animation-name: dflowY; }
  }
}
@keyframes dflowY {
  0%   { transform: translateY(0);   opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(88px); opacity: 0; }
}
.dflow.is-paused .dflow__pkt { animation-play-state: paused; }

.dflow__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dflow__pause {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 10px 18px; border: 0; cursor: pointer;
  border-radius: 999px; background: var(--bg-alt); color: var(--fg);
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm);
}
.dflow__pause:hover { background: var(--brand-30); }
@media (prefers-reduced-motion: reduce) { .dflow__pause { display: none; } }
.dflow__cap { font-size: var(--fs-sm); color: var(--fg-muted); max-width: 78ch; }
.dflow__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dflow__steps li { position: relative; padding-left: 30px; font-size: var(--fs-sm); color: var(--fg-muted); }
.dflow__steps li::before {
  content: counter(dfs); counter-increment: dfs;
  position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--font-mono); font-size: var(--fs-2xs);
  display: grid; place-items: center;
}
.dflow__steps { counter-reset: dfs; }
.sec--mist .dflow__node { background: var(--surface); }
/* Akzentknoten behaelt den dunklen Grund, sonst steht weisse Schrift auf Weiss */
.sec--mist .dflow__node--accent,
.sec .dflow__node--accent { background: var(--surface-navy); }
.dflow__node--accent .dflow__t,
.dflow__node--accent .dflow__s { color: #fff; }
.dflow__node--accent .dflow__s { color: rgba(255,255,255,.82); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dflow__node { background: #0f1a28; color: var(--fg); }
  :root:not([data-theme="light"]) .dflow__t { color: var(--fg); }
  :root:not([data-theme="light"]) .dflow__s { color: var(--fg-muted); }
  :root:not([data-theme="light"]) .sec--mist .dflow__node { background: #0f1a28; }
  :root:not([data-theme="light"]) .dflow__node--accent,
  :root:not([data-theme="light"]) .sec--mist .dflow__node--accent { background: var(--brand); color: #0d1f33; }
  /* heller Marken-Blauton im Dunkelmodus: dunkle Schrift, sonst 2,9:1 */
  :root:not([data-theme="light"]) .dflow__node--accent .dflow__t { color: #0d1f33; }
  :root:not([data-theme="light"]) .dflow__node--accent .dflow__s { color: #122a44; }
  :root:not([data-theme="light"]) .dflow__node--accent .dflow__ico { color: #0d1f33; }
}
:root[data-theme="dark"] .dflow__node { background: #0f1a28; color: var(--fg); }
:root[data-theme="dark"] .dflow__t { color: var(--fg); }
:root[data-theme="dark"] .dflow__s { color: var(--fg-muted); }
:root[data-theme="dark"] .dflow__node--accent,
:root[data-theme="dark"] .sec--mist .dflow__node--accent { background: var(--brand); color: #0d1f33; }
:root[data-theme="dark"] .dflow__node--accent .dflow__t { color: #0d1f33; }
:root[data-theme="dark"] .dflow__node--accent .dflow__s { color: #122a44; }
:root[data-theme="dark"] .dflow__node--accent .dflow__ico { color: #0d1f33; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 18px; }
.form__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > label {
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm); color: var(--fg);
}
.field .req { color: var(--accent); }
.field__hint { font-size: var(--fs-xs); color: var(--fg-muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: var(--fs-base); color: var(--fg);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 12px 14px; min-height: 48px; width: 100%; min-width: 0;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand) 50%),
                    linear-gradient(135deg, var(--brand) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--brand);
}
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; min-height: 22px; margin-top: 2px; accent-color: var(--brand); }
.check label { font-size: var(--fs-sm); color: var(--fg-muted); line-height: 1.55; }
.form__note { font-size: var(--fs-xs); color: var(--fg-muted); max-width: 72ch; }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Terminkarten */
.booking { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.booking a.card { text-decoration: none; color: inherit; display: grid; gap: 10px; align-content: start; }
.booking a.card:hover { background: var(--brand-30); }
.booking .card__go {
  margin-top: auto; padding-top: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm); color: var(--brand);
}

/* ---------- Kommunikationsschema M-Center ---------- */
.hub { margin: 0; display: grid; gap: 18px; }
.hub__stage {
  background: #eef3f8;
  border-radius: var(--r-panel) 0 var(--r-panel) var(--r-panel);
  padding: clamp(12px, 1.8vw, 26px);
}
.hub__svg { width: 100%; height: auto; display: block; }
/* Unter 760 px waeren die Beschriftungen im Schema zu klein – dort traegt
   die Legende den Inhalt allein. */
@media (max-width: 759.98px) { .hub__stage { display: none; } }
.hub__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hub__legend li {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 14px;
  font-size: var(--fs-sm); color: var(--fg-muted); line-height: 1.55;
}
.hub__legend b { font-family: var(--font-display); font-weight: 600; color: var(--fg); }
.hub__chip { width: 16px; height: 16px; border-radius: 5px; background: var(--c); margin-top: 3px; }
@media (min-width: 900px) { .hub__legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; } }

/* ---------- Bildergalerien: Geraeteansichten und Screenshots ---------- */
.shots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.shots--1 { grid-template-columns: minmax(0, 1fr); }
.shots--lead { grid-template-columns: minmax(0, 1fr); }
.shot {
  margin: 0; display: grid; gap: 12px; min-width: 0;
  background: var(--mist);
  border-radius: var(--r-panel) 0 var(--r-panel) var(--r-panel);
  padding: clamp(16px, 2.2vw, 30px);
}
.shot:nth-child(even) { border-radius: 0 var(--r-panel) var(--r-panel) var(--r-panel); }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption { font-size: var(--fs-sm); color: var(--on-mist-muted); line-height: 1.5; }
.shot figcaption b { font-family: var(--font-display); font-weight: 600; color: var(--on-mist); }
:root[data-theme="dark"] .shot, .shot:is(.shot) { }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot { background: #16263b; }
  :root:not([data-theme="light"]) .shot figcaption { color: #a3b3c4; }
  :root:not([data-theme="light"]) .shot figcaption b { color: #e9eff5; }
}
:root[data-theme="dark"] .shot { background: #16263b; }
:root[data-theme="dark"] .shot figcaption { color: #a3b3c4; }
:root[data-theme="dark"] .shot figcaption b { color: #e9eff5; }

.article .shot { margin: 26px 0; }

/* Auf Mist-Abschnitten heben sich die Flaechen sonst nicht ab */
.sec--mist .shot, .sec--mist .shot:nth-child(even) { background: var(--surface); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sec--mist .shot { background: #16263b; }
}
:root[data-theme="dark"] .sec--mist .shot { background: #16263b; }

/* Screenshots stehen auf hellem Grund und brauchen eine sichtbare Kante */
.shot--ui img { border-radius: 10px; outline: 1px solid rgba(20, 44, 70, .22); outline-offset: -1px; background: #fff; }
.shot--ui a { display: block; text-decoration: none; }
.shot__zoom { font-size: var(--fs-xs); color: var(--brand); text-decoration: underline; }

/* ---------- Nachweisband: Zulassungen und Kennzahlen ---------- */
.certs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.certs li {
  display: inline-flex; align-items: center; min-height: 36px;
  padding: 8px 15px; border-radius: 999px;
  font-family: var(--font-mono); font-size: var(--fs-xs);
  background: rgba(255, 255, 255, .13); color: #fff;
}
.pstats dd { margin: 0; }
.pstats {
  display: grid; gap: clamp(18px, 2.4vw, 30px);
  grid-template-columns: repeat(2, minmax(min(100%, 120px), 1fr));
}
.p--mist .stat__l { color: var(--on-mist-muted); }
.p--mist .stat__n { color: var(--brand); }

/* Der Gedankenstrich trennt Absätze, wie im Guide */
.p .sep { color: inherit; opacity: .55; margin: 2px 0; }
.p .sep::before { content: "—"; }

/* Flächen schieben sich übereinander statt im Raster zu stehen */
.stack { display: grid; }
.stack > * { grid-column: 1; }
.lap { display: grid; gap: 0; }
@media (min-width: 900px) {
  .lap--2 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .lap--2 > :last-child { margin-top: clamp(40px, 6vw, 90px); margin-left: clamp(-80px, -5vw, -32px); }
  /* Die ueberlappende Flaeche darf den Text der ersten nicht verdecken */
  .lap--2 > :first-child { padding-right: clamp(46px, 7vw, 116px); }
  .lap--up > :last-child { margin-top: clamp(-90px, -6vw, -40px); margin-left: 0; }
}
@media (max-width: 899.98px) {
  .lap > * + * { margin-top: -22px; }
}

/* Karten sind jetzt Flächen: flach, grosser Radius, kein Rahmen */
.card {
  background: var(--mist);
  border: 0;
  border-radius: var(--r-panel) 0 var(--r-panel) var(--r-panel);
  padding: clamp(24px, 2.8vw, 38px);
  gap: 12px;
}
.card--flip { border-radius: 0 var(--r-panel) var(--r-panel) var(--r-panel); }
.card--raised { box-shadow: none; }
:root[data-theme="dark"] .card, 
:root:not([data-theme="light"]) .card { background: var(--card); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .card { background: var(--mist); } }

.pcard, .post, .dl, .gterm, .ifnav a {
  border: 0;
  background: var(--mist);
}
:root[data-theme="dark"] .pcard, :root[data-theme="dark"] .post,
:root[data-theme="dark"] .dl, :root[data-theme="dark"] .gterm,
:root[data-theme="dark"] .ifnav a { background: var(--card); }
.pcard { border-radius: var(--r-panel) 0 var(--r-panel) var(--r-panel); }
.pcard:nth-child(even) { border-radius: 0 var(--r-panel) var(--r-panel) var(--r-panel); }
.pcard:hover { box-shadow: none; transform: none; background: var(--brand-30); }
.post { border-radius: var(--r-panel) 0 var(--r-panel) var(--r-panel); }
.post:nth-child(even) { border-radius: 0 var(--r-panel) var(--r-panel) var(--r-panel); }
.post:hover { box-shadow: none; transform: none; background: var(--brand-30); }
.dl { border-radius: 22px 0 22px 22px; }
.dl:nth-child(even) { border-radius: 0 22px 22px 22px; }
.dl:hover { transform: none; background: var(--brand-30); }
.gterm { border-radius: 22px 0 22px 22px; }
.gterm:nth-child(even) { border-radius: 0 22px 22px 22px; }
.ifnav a { border-radius: 22px 0 22px 22px; }
.ifnav a:nth-child(even) { border-radius: 0 22px 22px 22px; }
.ifnav a:hover { transform: none; background: var(--brand-30); }
.nerdbar { border: 0; background: var(--mist); border-radius: 22px 0 22px 22px; box-shadow: none; }
:root[data-theme="dark"] .nerdbar { background: var(--card); }
/* Geraetebilder sind freigestellt (Alpha) und stehen auf der Mist-Flaeche */
.prodshot, .pcard__shot { background: var(--mist); }
:root[data-theme="dark"] .prodshot, :root[data-theme="dark"] .pcard__shot { background: #16263b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .prodshot,
  :root:not([data-theme="light"]) .pcard__shot { background: #16263b; }
}
.hero__shot { border-radius: var(--r-panel) 0 var(--r-panel) var(--r-panel); box-shadow: none; }

/* Punktraster darf wieder gross sein — es ist das Grafik-Element der Marke */
.globe {
  position: absolute; pointer-events: none;
  width: min(82vw, 940px); aspect-ratio: 1; opacity: .9;
}
.globe svg { width: 100%; height: 100%; }

.hero--sheet { background: var(--bg); color: var(--fg); overflow: hidden; }
.hero--sheet::after { content: none; }
.hero--sheet .globe { top: -14%; right: -22%; opacity: .55; }
@media (max-width: 899.98px) { .hero--sheet .globe { top: auto; bottom: -24%; right: -46%; opacity: .4; } }
.hero--sheet .hero__in { position: relative; z-index: 2; }

.facts { margin: 0; display: grid; gap: 0; }
.facts > div {
  display: grid; gap: 2px; padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.2);
}
.facts > div:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.facts dt { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm); color: #fff; }
.facts dd { margin: 0; font-size: var(--fs-sm); color: rgba(255,255,255,.8); }

/* Farbige Abschnitte sind Flächen auf dem Grund, keine randlosen Bänder.
   Der Styleguide zeigt Flächen, die im Weiss stehen. */
.sec.panel, .sec.blue {
  background: transparent;
  padding-block: clamp(18px, 2.4vw, 34px);
}
.sec.panel > .wrap, .sec.blue > .wrap {
  border-radius: var(--r-panel) 0 var(--r-panel) var(--r-panel);
  padding: clamp(30px, 3.6vw, 56px);
}
.sec.panel > .wrap { background: var(--surface-navy); }
.sec.blue  > .wrap { background: var(--surface-blue); }
.sec.panel + .sec.blue > .wrap,
.sec.blue + .sec.panel > .wrap { border-radius: 0 var(--r-panel) var(--r-panel) var(--r-panel); }
.panel--grad, .blue--grad { background: none; }
.sec.panel > .wrap h2, .sec.blue > .wrap h2 { color: #fff; }

/* Helle Bänder ebenfalls als Fläche */
.sec.sec--mist {
  background: transparent;
  padding-block: clamp(18px, 2.4vw, 34px);
}
.sec.sec--mist > .wrap {
  background: var(--mist);
  border-radius: 0 var(--r-panel) var(--r-panel) var(--r-panel);
  padding: clamp(30px, 3.6vw, 56px);
}
:root[data-theme="dark"] .sec.sec--mist > .wrap { background: var(--bg-alt); }
/* Flächen in Flächen bekommen Weiss, damit sie sich absetzen */
.sec--mist .card, .sec--mist .post, .sec--mist .dl,
.sec--mist .pcard, .sec--mist .ifnav a { background: var(--surface); }
:root[data-theme="dark"] .sec--mist .card,
:root[data-theme="dark"] .sec--mist .post,
:root[data-theme="dark"] .sec--mist .dl,
:root[data-theme="dark"] .sec--mist .pcard,
:root[data-theme="dark"] .sec--mist .ifnav a { background: var(--card); }

.foot { border-radius: var(--r-panel) var(--r-panel) 0 0; margin-top: clamp(18px, 2.4vw, 34px); }

/* ---------- Zeitstrahl ---------- */
.tl { display: grid; gap: 0; margin-top: 26px; }
.tl__i {
  display: grid; gap: 4px 26px;
  grid-template-columns: minmax(0, 88px) minmax(0, 1fr);
  padding: 20px 0 20px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.tl__i:last-child { border-bottom: 1px solid var(--line); }
.tl__y {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--fs-xl); line-height: 1; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.tl__t { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-md); }
.tl__d { color: var(--fg-muted); font-size: var(--fs-sm); grid-column: 2; }
@media (max-width: 560px) {
  .tl__i { grid-template-columns: 1fr; }
  .tl__d { grid-column: 1; }
}
.p--mist .tl__i { border-color: rgba(20,44,70,.16); }

/* ---------- Partnerliste ---------- */
.ptrs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-top: 24px; }
.ptr { background: var(--mist); border-radius: 22px 0 22px 22px; padding: 22px 24px; min-width: 0; }
.ptr:nth-child(even) { border-radius: 0 22px 22px 22px; }
:root[data-theme="dark"] .ptr { background: var(--card); }
.ptr__c { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-xs); color: var(--brand); }
.ptr h3 { font-size: var(--fs-base); margin: 4px 0 8px; }
.ptr__a { font-size: var(--fs-sm); color: var(--fg-muted); }
.ptr__m { font-size: var(--fs-sm); color: var(--fg-muted); margin-top: 8px; line-height: 1.7; }

/* Feste Blauflaeche statt var(--brand): die aufgehellte Dunkelmodus-
   Variante ergaebe mit Weiss nur 2,89:1. */
.nav__links a.nav__cta {
  background: #0069b4; color: #fff;
  padding-inline: 18px;
}
.nav__links a.nav__cta:hover { background: var(--deep); }
.nav__shop { color: var(--brand) !important; }
.nav__shop::after { content: " \2197"; font-size: .82em; }

/* ---------- Schmale Geräte: Flächen dürfen nicht so viel Rand fressen ---------- */
@media (max-width: 560px) {
  :root { --r-panel: 26px; }
  .sec.panel > .wrap, .sec.blue > .wrap, .sec.sec--mist > .wrap { padding: 22px 18px; }
  .p { padding: 22px 18px; }
  .card { padding: 20px 18px; }
  .ptr { padding: 18px 16px; }
  .post { padding: 20px 18px; }
  .sec, .sec--tight { padding-inline: 14px; }
  .nav__in { padding-inline: 14px; }
  .foot { padding-inline: 14px; border-radius: 26px 26px 0 0; }
}

/* ---------- Grosse Bildschirme: mehr Raster, nicht längere Zeilen ---------- */
@media (min-width: 1600px) {
  :root { --wrap: 1440px; }
}
@media (min-width: 2000px) {
  :root { --wrap: 1560px; }
}
/* Fliesstext bleibt unter 80 Zeichen, egal wie breit der Monitor ist */
.lede, .prose p, .article p, .lg-note { max-width: 68ch; }

/* Spezifikationstabellen scrollen im eigenen Container statt die Seite zu dehnen */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 560px) { table.spec th { min-width: 130px; width: auto; } }

/* ================================================================
   Navigation mit Untermenüs und Umschalter auf schmalen Geräten
   ================================================================ */
.nav__toggle {
  display: none; align-items: center; gap: 9px;
  margin-left: auto; min-height: 44px; padding: 10px 15px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--fg); cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm);
}
.nav__burger { display: grid; gap: 3px; }
.nav__burger span { display: block; width: 16px; height: 2px; background: currentColor; }

.nav__group { position: relative; }
.nav__btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 11px 13px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--fg); cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm);
}
.nav__btn:hover, .nav__btn[aria-expanded="true"] { background: var(--bg-alt); color: var(--brand); }
.nav__btn::after {
  content: ""; width: 7px; height: 7px; flex: none;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s ease;
}
.nav__btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }

.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 50;
  min-width: 248px; padding: 10px;
  background: var(--bg); border-radius: 22px 0 22px 22px;
  box-shadow: 0 24px 60px -24px rgba(20,44,70,.45);
  border: 1px solid var(--card-line);
  display: grid; gap: 2px;
}
:root[data-theme="dark"] .nav__menu { background: var(--card); }
.nav__menu a {
  display: block; padding: 10px 14px; min-height: 44px;
  border-radius: 999px; text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm);
  color: var(--fg);
}
.nav__menu a:hover { background: var(--bg-alt); color: var(--brand); }
.nav__menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 10px; }
.nav__menu strong {
  display: block; padding: 8px 14px 4px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-2xs);
  color: var(--fg-muted);
}

@media (max-width: 899.98px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none; width: 100%; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 10px 0 14px;
  }
  .nav__links.is-open { display: flex; }
  .nav__group { position: static; }
  .nav__btn { width: 100%; justify-content: space-between; }
  .nav__menu {
    position: static; min-width: 0; box-shadow: none; border: 0;
    background: var(--bg-alt); border-radius: 18px; margin: 2px 0 6px;
  }
  :root[data-theme="dark"] .nav__menu { background: var(--bg-alt); }
}

.vh {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.foot__h {
  margin-bottom: 12px; font-size: var(--fs-xs); font-weight: 600;
  color: var(--on-panel);
}

.nav__lang .nav__btn { border: 1px solid var(--line-strong); }
.nav__menu--lang { min-width: 170px; left: auto; right: 0; border-radius: 0 22px 22px 22px; }
.nav__menu--lang a[aria-current="true"] { background: var(--bg-alt); color: var(--brand); }
@media (max-width: 899.98px) { .nav__menu--lang { right: auto; left: 0; } }

.nav__menu--lang .nav__soon {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; min-height: 44px;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm);
  color: var(--fg-muted); cursor: default;
}
.nav__menu--lang .nav__soon em {
  font-style: normal; font-size: var(--fs-2xs);
  letter-spacing: .04em; text-transform: uppercase; opacity: .75;
}
