/* ==========================================================================
   EBEHAKO electronic – Entwurf 2 „Showcase“
   Dunkle Bühne (Hero, Seitenköpfe, Fokus-Sektionen) + heller Inhalt mit Glasflächen.
   Schlicht, ohne Framework. Aufbau:
   0. Schriften  1. Tokens  2. Basis  3. Layout  4. Dunkle Bühne / Aurora
   5. Header/Navigation  6. Komponenten  7. Showcase (Hero, 3D-Gerät, Oszilloskop)
   8. Footer  9. Hilfsklassen  10. Bewegung (Reveal, View Transitions, reduced motion)
   ========================================================================== */

/* 0. Schriften (selbst gehostet, siehe README) -------------------------------- */
@font-face {
  font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Marke */
  --brand: #1270c0;          /* Primärblau, abgeleitet vom Logo */
  --brand-strong: #0b4f8a;
  --brand-soft: #e2eefa;
  --accent: #36a3e6;         /* helles Logo-Blau */
  --cyan: #7fd4ff;           /* Lichtkante / Spannungskurve */
  --warm: #ffab4a;           /* einziger warmer Akzent: Stromkurve, Hervorhebungen */
  --warn: #9a5300;
  --warn-soft: #fff1dc;

  /* Feste Flächenfarben */
  --navy: #071224;
  --navy-2: #0c1f3b;
  --page: #eef3f9;

  /* Kontextfarben – werden auf dunklen Flächen (.on-dark-Gruppe, s. Abschnitt 4) überschrieben */
  --ink: #0c1a2c;
  --ink-soft: #36465b;
  --muted: #586880;
  --link: #0d5fa8;
  --link-hover: #083f73;
  --line: rgba(13, 40, 80, .13);
  --card-bg: rgba(255, 255, 255, .74);
  --card-edge: rgba(255, 255, 255, .95);
  --well: rgba(13, 60, 120, .055);   /* leicht eingefärbte Innenfläche */
  --field: #fff;
  --focus: #1270c0;

  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 0 0 1px rgba(13, 40, 80, .06), 0 1px 2px rgba(13, 40, 80, .05), 0 8px 24px -12px rgba(13, 40, 80, .16);
  --shadow: 0 0 0 1px rgba(13, 40, 80, .07), 0 2px 4px rgba(13, 40, 80, .05), 0 22px 48px -18px rgba(13, 40, 80, .30);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .9);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --topbar-h: 38px;
  --header-h: 84px;          /* schwebende Navigationsleiste inkl. Abstand */
  --sticky-top: 76px;        /* Unterkante der verkleinerten Leiste beim Scrollen */

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Basis ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--sticky-top) + 72px);
  background: var(--page);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Farbverlauf hinter dem hellen Inhalt – steht fest, die Glasflächen gleiten darüber */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 46vmax at 92% 8%, rgba(54, 163, 230, .22), transparent 62%),
    radial-gradient(52vmax 48vmax at 0% 58%, rgba(18, 112, 192, .15), transparent 62%),
    radial-gradient(46vmax 40vmax at 84% 100%, rgba(127, 212, 255, .2), transparent 62%),
    radial-gradient(26vmax 22vmax at 58% 104%, rgba(255, 171, 74, .07), transparent 62%),
    var(--page);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { color: var(--link-hover); }

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

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.022em; hyphens: none; overflow-wrap: break-word; }
/* Lange Komposita enthalten weiche Trennstellen (src/lib/text.ts). Auf breiten Bildschirmen bleiben Wörter ganz,
   erst auf schmalen Bildschirmen darf dort getrennt werden – sonst würde z. B. „Blindleistungs-regler“ getrennt. */
@media (max-width: 640px) { h1, h2, h3, h4 { hyphens: manual; } }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 650; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem); font-weight: 650; letter-spacing: -.03em; }
h3 { font-size: 1.25rem; font-weight: 620; line-height: 1.22; }
h4 { font-size: 1.05rem; font-weight: 620; }

p, ul, ol, dl, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .25em; }
strong, b { font-weight: 620; }

small { font-size: .875rem; }
sub, sup { line-height: 0; }

::selection { background: rgba(54, 163, 230, .32); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .6em 1em; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { left: 8px; top: 0; }

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(52px, 7vw, 96px); position: relative; }
.section--soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .36));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .7), 0 0 0 1px rgba(13, 40, 80, .05);
}
.section--tight { padding-block: clamp(32px, 4vw, 48px); }

.section-head { max-width: 780px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-mono); font-size: .76rem; font-weight: 550; letter-spacing: .09em; text-transform: uppercase;
  color: var(--link); margin-bottom: 1em;
}
.eyebrow::before {
  content: ""; width: 1.6em; height: 2px; border-radius: 2px; flex-shrink: 0;
  background: linear-gradient(90deg, var(--accent), var(--warm));
}

.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.split {
  display: grid; gap: clamp(24px, 5vw, 64px); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.split--top { align-items: start; }
.split > *, .grid > *, .downloads-layout > *, .steps > li, .timeline-card > div { min-width: 0; }

.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--ink-soft); }

/* 4. Dunkle Bühne ---------------------------------------------------------- */
/* Alle dunklen Flächen teilen sich die Kontextfarben; Komponenten darin passen sich über die Variablen an. */
.hero, .page-head, .section--dark, .cta-band, .site-footer {
  --ink: #f3f7fd;
  --ink-soft: #c3d0e2;
  --muted: #9db0c9;
  --link: #8fd2ff;
  --link-hover: #c4e8ff;
  --line: rgba(255, 255, 255, .14);
  --card-bg: rgba(255, 255, 255, .07);
  --card-edge: rgba(255, 255, 255, .16);
  --well: rgba(255, 255, 255, .06);
  --focus: #8fd8ff;
  color: var(--ink-soft);
  position: relative; isolation: isolate; overflow: clip;
  background: linear-gradient(180deg, #050d1c 0%, #081a33 62%, #0b2242 100%);
}

/* Aurora: weiche Lichtflecken in den Markenblautönen + ein warmer Akzent, die langsam driften.
   Nur transform wird animiert (GPU), die Unschärfe steckt im Verlauf selbst. */
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; }
.aurora i:nth-child(1) {
  width: min(78vmax, 1250px); height: min(78vmax, 1250px); right: -24vmax; top: -40vmax;
  background: radial-gradient(closest-side, rgba(54, 163, 230, .50), rgba(54, 163, 230, .14) 55%, transparent);
  animation: aurora-a 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  width: min(70vmax, 1150px); height: min(70vmax, 1150px); left: -30vmax; top: 6vmax;
  background: radial-gradient(closest-side, rgba(18, 112, 192, .55), rgba(18, 112, 192, .12) 60%, transparent);
  animation: aurora-b 32s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
  width: min(46vmax, 800px); height: min(46vmax, 800px); right: 6vmax; bottom: -30vmax;
  background: radial-gradient(closest-side, rgba(255, 171, 74, .26), rgba(255, 171, 74, .06) 60%, transparent);
  animation: aurora-c 22s ease-in-out infinite alternate;
}
/* feines Messraster, zur Mitte hin ausgeblendet */
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 72%);
}
.aurora--calm i { animation-duration: 44s; opacity: .8; }
.aurora--calm i:nth-child(1) { width: min(60vmax, 1000px); height: min(60vmax, 1000px); right: -14vmax; top: -40vmax; }
.aurora--calm i:nth-child(2) { width: min(52vmax, 900px); height: min(52vmax, 900px); left: -22vmax; top: -18vmax; }
.aurora--calm i:nth-child(3) { width: min(34vmax, 600px); height: min(34vmax, 600px); right: 18vmax; bottom: -26vmax; opacity: .6; }
.cta-band .aurora i { animation: none; } /* weiter unten auf der Seite: ruhend */

@keyframes aurora-a { to { transform: translate3d(-9vmax, 7vmax, 0) scale(1.12); } }
@keyframes aurora-b { to { transform: translate3d(11vmax, -5vmax, 0) scale(.92); } }
@keyframes aurora-c { to { transform: translate3d(-12vmax, -7vmax, 0) scale(1.2); } }

/* Lichtkante am unteren Rand dunkler Flächen */
.hero::after, .page-head::after, .section--dark::after, .cta-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(127, 212, 255, .55) 30%, rgba(255, 171, 74, .45) 70%, transparent);
}

/* Dunkle Sektionen ohne eigenes Aurora-Markup bekommen ruhende Lichtflecken */
.section--dark::before, .site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52vmax 36vmax at 88% 0%, rgba(54, 163, 230, .30), transparent 65%),
    radial-gradient(46vmax 40vmax at 0% 100%, rgba(18, 112, 192, .36), transparent 65%),
    radial-gradient(30vmax 22vmax at 62% 108%, rgba(255, 171, 74, .13), transparent 65%);
}
.site-footer::before { opacity: .35; }
.section--dark .eyebrow, .hero .eyebrow, .page-head .eyebrow, .cta-band .eyebrow { color: var(--cyan); }

/* 5. Header / Navigation --------------------------------------------------- */
/* Kontaktzeile: liegt auf der dunklen Bühne (der Seitenkopf wird unter Zeile + Leiste geschoben). */
.topbar { position: relative; z-index: 51; height: var(--topbar-h); font-size: .84rem; color: #a9bbd3; }
.topbar .container { display: flex; justify-content: flex-end; align-items: center; gap: 1.4rem; height: 100%; white-space: nowrap; }
.topbar a { color: #e3ecf8; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar svg { width: 14px; height: 14px; color: var(--cyan); }
.topbar .topbar-note { margin-right: auto; display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.topbar .topbar-note::before { content: ""; width: 6px; height: 6px; border-radius: 1px; transform: rotate(45deg); background: var(--warm); }
@media (max-width: 760px) { .topbar .topbar-note { display: none; } .topbar .container { justify-content: space-between; gap: .75rem; } }
@media (max-width: 420px) { .topbar { font-size: .78rem; } .topbar svg { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  padding-block: 10px; pointer-events: none;
  transition: padding .3s var(--ease);
}
.navbar {
  position: relative; pointer-events: auto;
  display: flex; align-items: center; gap: 1.25rem;
  height: 64px; padding: 0 .75rem 0 1.1rem;
  border-radius: 22px;
  transition: height .3s var(--ease), border-radius .3s var(--ease), box-shadow .3s;
  view-transition-name: navbar;
}
/* Das Glas liegt auf einem Pseudo-Element, damit die Aufklappmenüs ihren eigenen Weichzeichner behalten. */
.navbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(244, 248, 253, .90));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px rgba(8, 24, 48, .08), 0 14px 36px -14px rgba(4, 14, 32, .5), inset 0 1px 0 #fff, inset 0 -10px 18px -12px rgba(18, 112, 192, .16);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .93), rgba(240, 246, 252, .84));
    -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  }
}
.site-header.is-scrolled { padding-block: 8px; }
.site-header.is-scrolled .navbar { height: 56px; border-radius: 18px; }

.brand { flex-shrink: 0; display: block; border-radius: 8px; }
.logo { display: block; height: 52px; width: auto; aspect-ratio: 174 / 46; transition: height .3s var(--ease); }
.site-header.is-scrolled .logo { height: 44px; }

.nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; align-items: center; }
.nav-list > li { position: relative; margin: 0; }

.nav-link {
  position: relative;
  display: flex; align-items: center; gap: .4em;
  padding: .6rem .8rem; border-radius: 12px;
  font-weight: 560; font-size: .97rem; color: #0c1a2c; text-decoration: none;
  background: none; border: 0; font-family: inherit; cursor: pointer;
  transition: color .2s, background .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .32rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-link:hover, .nav-list > li:focus-within > .nav-link { color: var(--brand-strong); }
.nav-list > li:hover > .nav-link::after, .nav-list > li:focus-within > .nav-link::after { transform: scaleX(1); }
.nav-link .chev { width: 10px; height: 10px; transition: transform .25s var(--ease); opacity: .7; }

/* aktiver Bereich – über data-section am <body> */
body[data-section="kompensation"]  .nav-link[data-nav="kompensation"],
body[data-section="messtechnik"]   .nav-link[data-nav="messtechnik"],
body[data-section="baugruppen"]    .nav-link[data-nav="baugruppen"],
body[data-section="service"]       .nav-link[data-nav="service"],
body[data-section="unternehmen"]   .nav-link[data-nav="unternehmen"] { color: var(--brand); }
body[data-section="kompensation"]  .nav-link[data-nav="kompensation"]::after,
body[data-section="messtechnik"]   .nav-link[data-nav="messtechnik"]::after,
body[data-section="baugruppen"]    .nav-link[data-nav="baugruppen"]::after,
body[data-section="service"]       .nav-link[data-nav="service"]::after,
body[data-section="unternehmen"]   .nav-link[data-nav="unternehmen"]::after { transform: scaleX(1); }

/* Aufklappmenü als Glasfläche */
.subnav {
  list-style: none; margin: 0; padding: .55rem;
  position: absolute; top: calc(100% + 12px); left: -.5rem; min-width: 310px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .95); border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(8, 24, 48, .08), 0 28px 60px -20px rgba(4, 14, 32, .5), inset 0 1px 0 #fff;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top left;
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .subnav { background: rgba(250, 252, 255, .93); -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8); }
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* Brücke für den Mauszeiger */
.subnav--wide { display: grid; grid-template-columns: 1fr 1fr; min-width: 600px; }
.nav-list > li:nth-last-child(-n+3) > .subnav { left: auto; right: -.5rem; transform-origin: top right; }
.nav-list > li:hover > .subnav,
.nav-list > li:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; }
.nav-list > li:hover .chev,
.nav-list > li:focus-within .chev { transform: rotate(180deg); }

.subnav li { margin: 0; }
.subnav a {
  position: relative; display: block; padding: .6rem 2rem .6rem .8rem; border-radius: 13px;
  color: #0c1a2c; text-decoration: none; font-size: .96rem; font-weight: 560; line-height: 1.3;
  transition: background .18s, color .18s;
}
.subnav a span { display: block; color: #586880; font-size: .82rem; font-weight: 400; margin-top: .12rem; }
.subnav a::after {
  content: "→"; position: absolute; right: .8rem; top: .55rem; color: var(--brand);
  opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s var(--ease);
}
.subnav a:hover, .subnav a:focus-visible { background: rgba(18, 112, 192, .09); color: var(--brand-strong); }
.subnav a:hover::after, .subnav a:focus-visible::after { opacity: 1; transform: none; }

.nav-cta { margin-left: .5rem; }

.nav-toggle {
  display: none; margin-left: auto;
  border: 1px solid rgba(13, 40, 80, .16); background: rgba(255, 255, 255, .7); border-radius: 12px;
  padding: .5rem .8rem; font: inherit; font-weight: 600; color: #0c1a2c; cursor: pointer;
  align-items: center; gap: .5rem;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .bar { transition: transform .3s var(--ease), opacity .2s; transform-origin: 12px 12px; }
.site-header.is-open .nav-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    background: rgba(252, 253, 255, .97);
    border: 1px solid rgba(255, 255, 255, .95); border-radius: 22px;
    box-shadow: 0 0 0 1px rgba(8, 24, 48, .08), 0 28px 60px -20px rgba(4, 14, 32, .55);
    max-height: calc(100vh - var(--header-h) - 16px); max-height: calc(100dvh - var(--header-h) - 16px);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    padding: .5rem 1.1rem 1.1rem;
  }
  /* bewusst (fast) deckend: scrollbare Flächen zeichnen den Weichzeichner nicht in jedem Browser */
  .site-header.is-open .nav { display: block; animation: menu-in .28s var(--ease); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid rgba(13, 40, 80, .1); padding-block: .3rem; }
  .nav-link { padding-inline: 0; font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-link .chev { display: none; }
  .subnav, .subnav--wide, .nav-list > li:nth-last-child(-n+3) > .subnav {
    display: block; position: static; opacity: 1; visibility: visible; transform: none; transition: none;
    border: 0; box-shadow: none; padding: 0 0 .5rem; min-width: 0; background: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .subnav::before { display: none; }
  .subnav a { padding: .45rem .75rem; font-weight: 450; color: #36465b; }
  .subnav a span, .subnav a::after { display: none; }
  .nav-cta { margin: .9rem 0 0; border-bottom: 0 !important; }
  .nav-cta .btn { width: 100%; }
  .brand .logo { height: 44px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* 6. Komponenten ----------------------------------------------------------- */

/* Buttons */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.3em; border-radius: 13px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.985); }
/* Lichtreflex, der beim Überfahren einmal über den Button läuft */
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg);
}
.btn:hover::after { left: 130%; transition: left .7s var(--ease); }
.btn--primary {
  color: #fff; border-color: rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, #2a8fe0 0%, #1270c0 55%, #0d5ea6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 1px 2px rgba(6, 30, 60, .3), 0 10px 24px -10px rgba(18, 112, 192, .75);
}
.btn--primary:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(6, 30, 60, .3), 0 16px 32px -10px rgba(18, 112, 192, .9); transform: translateY(-1px); }
.btn--ghost {
  background: var(--card-bg); color: var(--link); border-color: var(--line);
  box-shadow: inset 0 1px 0 var(--card-edge);
}
.btn--ghost:hover { border-color: var(--link); color: var(--link-hover); transform: translateY(-1px); }
.btn--light { background: #fff; color: #0c1a2c; box-shadow: inset 0 -8px 14px -10px rgba(18, 112, 192, .3), 0 10px 28px -12px rgba(127, 212, 255, .6); }
.btn--light:hover { color: var(--brand-strong); transform: translateY(-1px); }
.btn--small { padding: .55em .95em; font-size: .9rem; border-radius: 11px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
/* Glas-Buttons auf dunkler Bühne */
.hero .btn--ghost, .page-head .btn--ghost, .section--dark .btn--ghost, .cta-band .btn--ghost {
  color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.hero .btn--ghost:hover, .page-head .btn--ghost:hover, .section--dark .btn--ghost:hover, .cta-band .btn--ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .13); }

/* Seitenkopf (Unterseiten): dunkle Bühne, wird unter Kontaktzeile + Navigationsleiste geschoben */
.page-head, .hero { margin-top: calc(-1 * (var(--topbar-h) + var(--header-h))); }
.page-head { padding-block: calc(var(--topbar-h) + var(--header-h) + clamp(20px, 3vw, 40px)) clamp(52px, 6vw, 80px); }
.page-head h1 { margin-bottom: .4em; max-width: 22ch; }
.page-head .lead { font-size: clamp(1.08rem, 1rem + .3vw, 1.2rem); color: var(--ink-soft); max-width: 68ch; margin: 0; }
.page-head h1, .hero h1 { text-wrap: balance; }

.breadcrumb { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5em; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5em; color: rgba(255, 255, 255, .3); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink-soft); }

/* Kacheln / Karten – helle Glasflächen mit Lichtkante; --mx/--my setzt src/client/fx.ts (Spotlight) */
.card, .tile, .feature-card, .cap, .item, .stat, .calc, .doc-teaser, .steps li, .timeline-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), var(--glass-hi);
}
.card {
  display: flex; flex-direction: column;
  overflow: hidden; color: inherit; text-decoration: none;
  transition: box-shadow .3s, transform .3s var(--ease);
}
/* Spotlight, das dem Mauszeiger folgt */
.card::after, .tile::after, .feature-card--link::after, .stat::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(54, 163, 230, .2), transparent 62%);
  opacity: 0; transition: opacity .35s;
}
/* Lichtkante in den Markenfarben, die mit dem Spotlight wandert */
a.card::before, .tile::before, .feature-card--link::before, .stat::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 4;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(54, 163, 230, .95), rgba(255, 171, 74, .55) 48%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s;
}
a.card:hover::before, .tile:hover::before, .feature-card--link:hover::before, .stat:hover::before { opacity: 1; }
a.card:hover::after, .card[data-tilt]:hover::after, .tile:hover::after, .feature-card--link:hover::after, .stat:hover::after { opacity: 1; }
a.card:hover, .tile:hover, .feature-card--link:hover { box-shadow: var(--shadow), var(--glass-hi); color: inherit; }
a.card:hover { transform: translateY(-4px); }
/* 3D-Neigung (data-tilt): --rx/--ry kommen aus fx.ts */
[data-tilt] { transform-style: flat; }
a.card[data-tilt].is-tilting { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); transition: box-shadow .3s, transform .08s linear; }
.card-media {
  position: relative;
  aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid rgba(13, 40, 80, .08);
  display: grid; place-items: center; padding: 1.4rem; overflow: hidden;
}
.card-media img { position: absolute; inset: 1.4rem; width: calc(100% - 2.8rem); height: calc(100% - 2.8rem); max-height: none; object-fit: scale-down; transition: transform .5s var(--ease); }
a.card:hover .card-media img { transform: scale(1.045); }
@media (max-width: 560px) { .card-media { aspect-ratio: 16 / 10; } }
.card-body { padding: 1.3rem 1.35rem 1.45rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body > .badge { align-self: flex-start; }
.card-body p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.card-meta { font-size: .85rem; color: var(--muted); }
.card-more {
  margin-top: auto; padding-top: .5rem;
  font-weight: 600; color: var(--link); display: inline-flex; align-items: center; gap: .4em; text-decoration: none;
}
.card-more svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
a.card:hover .card-more svg, .tile:hover .card-more svg, a.card-more:hover svg { transform: translateX(4px); }

/* Bereichs-Kacheln */
.tile {
  display: grid; grid-template-columns: 1fr 128px; gap: 1rem; align-items: center;
  padding: 1.6rem; overflow: hidden;
  color: inherit; text-decoration: none; transition: box-shadow .3s, transform .3s var(--ease);
}
.tile:hover { transform: translateY(-3px); }
.tile h3 { margin: 0 0 .35rem; }
.tile p { margin: 0 0 .75rem; color: var(--ink-soft); font-size: .98rem; }
.tile img { width: 128px; height: 128px; object-fit: contain; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 0 0 1px rgba(13, 40, 80, .07); transition: transform .5s var(--ease); }
.tile:hover img { transform: scale(1.07) rotate(-2deg); }
.tile .card-more { padding: 0; }
.tile > div { min-width: 0; }
@media (max-width: 480px) { .tile { grid-template-columns: 1fr 84px; padding: 1.25rem; } .tile img { width: 84px; height: 84px; } }

/* Feature-Liste */
.features { list-style: none; padding: 0; display: grid; gap: .6rem; }
.features li { margin: 0; padding-left: 1.85rem; position: relative; color: var(--ink-soft); }
.features li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: linear-gradient(180deg, #3aa0ea, #1270c0) ;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 6px -1px rgba(18, 112, 192, .5);
}
.features li::after {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.15rem; height: 1.15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 8.4l2.4 2.4 4.8-5.2' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 82% no-repeat;
}
.features--2col { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: 2rem; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.stat { padding: 1.3rem 1.4rem; overflow: hidden; }
.stat strong {
  display: block; font-size: 1.7rem; line-height: 1.1; letter-spacing: -.03em; font-weight: 650; margin-bottom: .3rem;
  color: var(--brand-strong); font-variant-numeric: tabular-nums;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .stat strong { background: linear-gradient(100deg, #0b4f8a 10%, #1e8add 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
.stat > span { color: var(--ink-soft); font-size: .95rem; display: block; }

/* Badges */
.badge {
  display: inline-block; padding: .2em .7em; border-radius: 999px;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 550; letter-spacing: .03em; line-height: 1.6;
  background: rgba(18, 112, 192, .1); color: var(--brand-strong); white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(18, 112, 192, .16);
}
.badge--muted { background: rgba(13, 40, 80, .06); color: var(--muted); box-shadow: inset 0 0 0 1px rgba(13, 40, 80, .08); }
.badge--warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(154, 83, 0, .2); }
.badge-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.page-head .badge, .hero .badge, .section--dark .badge { background: rgba(127, 212, 255, .12); color: #bfe6ff; box-shadow: inset 0 0 0 1px rgba(127, 212, 255, .28); }
.page-head .badge--warn { background: rgba(255, 171, 74, .14); color: #ffd09a; box-shadow: inset 0 0 0 1px rgba(255, 171, 74, .35); }

/* Tabellen – bewusst ruhig und deckend, damit Daten gut lesbar bleiben */
.table-wrap { overflow-x: auto; border: 1px solid var(--card-edge); border-radius: var(--radius); background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; margin: 0; font-size: .95rem; }
.table th, .table td { padding: .8rem 1.05rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(13, 40, 80, .09); }
.table thead th {
  background: rgba(13, 60, 120, .055); font-family: var(--font-mono); font-size: .76rem; letter-spacing: .02em;
  color: var(--muted); font-weight: 550; white-space: nowrap; /* keine Versalien: Einheiten (Hz, kvar) und φ müssen stimmen */
}
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(54, 163, 230, .07); }
.table th[scope="row"] { font-weight: 620; white-space: nowrap; }
.table th[scope="row"] a { text-decoration: none; }
.table th[scope="row"] a:hover { text-decoration: underline; }
.table .is-discontinued { color: var(--muted); }
.table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Spezifikationen (Schlüssel/Wert) */
.specs { display: grid; gap: 1.5rem; }
.spec-group h3 { font-family: var(--font-mono); font-size: .78rem; font-weight: 550; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .6rem; }
.spec-list { margin: 0; border: 1px solid var(--card-edge); border-radius: var(--radius); background: rgba(255, 255, 255, .92); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-list > div { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 1rem; padding: .72rem 1.05rem; border-bottom: 1px solid rgba(13, 40, 80, .08); }
.spec-list > div:last-child { border-bottom: 0; }
.spec-list > div:nth-child(even) { background: rgba(13, 60, 120, .03); }
.spec-list dt { color: var(--muted); font-size: .95rem; }
.spec-list dd { margin: 0; font-size: .95rem; color: var(--ink); }
.spec-list dd ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 560px) { .spec-list > div { grid-template-columns: 1fr; gap: .15rem; } }

/* Produktkopf */
.product-head .split { align-items: center; }
.product-gallery { display: grid; gap: .75rem; }
.product-gallery .main {
  position: relative;
  background: #fff; border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 32px); display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 0 7px rgba(255, 255, 255, .09), 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 90px -20px rgba(54, 163, 230, .5);
}
.product-gallery .main img { max-height: 420px; width: auto; }
.product-gallery .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.product-gallery .thumbs figure { margin: 0; background: #fff; border-radius: 12px; padding: .4rem; box-shadow: 0 0 0 5px rgba(255, 255, 255, .08); }
.product-gallery .thumbs img { border-radius: 6px; }
.product-gallery .thumbs figcaption { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .02em; color: #586880; padding: .3rem .15rem 0; }
/* 3D-Ansicht im Produktkopf: schwebt frei auf der Bühne */
.product-gallery .main--stage { background: none; box-shadow: none; padding: 0; min-height: clamp(300px, 34vw, 430px); }
.product-gallery .main--stage .device3d { --s: clamp(220px, 27vw, 340px); }

.key-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1.6rem 0; }
.key-facts div {
  padding: .9rem 1.05rem; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--card-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.key-facts strong { display: block; font-size: 1.15rem; color: var(--ink); letter-spacing: -.015em; }
.key-facts span { display: block; font-size: .85rem; line-height: 1.4; color: var(--muted); margin-top: .15rem; }

/* Unterseiten-Navigation (Sprungmarken): schwebende Glasleiste auf der Kante des Seitenkopfs */
.toc { position: sticky; top: var(--sticky-top); z-index: 10; margin-top: -27px; margin-bottom: -27px; pointer-events: none; }
.toc ul {
  position: relative; pointer-events: auto;
  list-style: none; margin: 0; padding: 5px; display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none;
  width: fit-content; max-width: 100%;
  background: rgba(255, 255, 255, .96); border: 1px solid rgba(255, 255, 255, .95); border-radius: 17px;
  box-shadow: 0 0 0 1px rgba(8, 24, 48, .08), 0 16px 36px -16px rgba(4, 14, 32, .45), inset 0 1px 0 #fff;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .toc ul { background: rgba(250, 252, 255, .8); -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7); }
}
.toc ul::-webkit-scrollbar { display: none; }
.toc li { margin: 0; flex-shrink: 0; }
.toc a {
  display: block; padding: .55rem .95rem; font-size: .93rem; font-weight: 560; color: #36465b; text-decoration: none;
  border-radius: 12px; transition: background .2s, color .2s, box-shadow .2s;
}
.toc a:hover { color: var(--brand-strong); background: rgba(18, 112, 192, .09); }
.toc a.is-active { color: #fff; background: linear-gradient(180deg, #2a8fe0, #1270c0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px -6px rgba(18, 112, 192, .8); }
/* Lesefortschritt (fx.ts setzt --progress) */
.toc ul::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--warm)); transform-origin: left; transform: scaleX(var(--progress, 0));
  opacity: .9; pointer-events: none;
}
.toc + .section { padding-top: calc(clamp(52px, 7vw, 96px) + 20px); }

/* Downloads */
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.downloads li { margin: 0; }
.downloads a {
  display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem;
  border: 1px solid var(--card-edge); border-radius: 14px; background: rgba(255, 255, 255, .86);
  box-shadow: 0 0 0 1px rgba(13, 40, 80, .07);
  color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .25s var(--ease), background .2s;
}
.downloads a:hover { box-shadow: 0 0 0 1px rgba(18, 112, 192, .45), 0 10px 24px -14px rgba(18, 112, 192, .6); background: #fff; color: var(--ink); transform: translateX(3px); }
.downloads .ftype, .dl-rows .ftype {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 10px;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: .66rem; font-weight: 650; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff1ee, #fddcd6); color: #a8200f; box-shadow: inset 0 0 0 1px rgba(168, 32, 15, .14);
}
.downloads .ftype--link { background: linear-gradient(180deg, #eef6fd, #d6e9fa); color: var(--brand-strong); box-shadow: inset 0 0 0 1px rgba(18, 112, 192, .16); }
.downloads a > span:not(.ftype):not(.badge) { min-width: 0; }
.downloads .dl-title { font-weight: 600; display: block; line-height: 1.35; overflow-wrap: anywhere; }
.downloads .dl-meta { font-size: .85rem; color: var(--muted); }
.downloads .badge { margin-left: auto; }

/* Hinweisbox */
.note {
  padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px solid rgba(18, 112, 192, .22);
  background: linear-gradient(180deg, rgba(226, 238, 250, .9), rgba(226, 238, 250, .6));
  box-shadow: inset 4px 0 0 var(--brand), inset 0 1px 0 rgba(255, 255, 255, .8);
  color: var(--ink-soft);
}
.note--warn { border-color: rgba(154, 83, 0, .25); background: linear-gradient(180deg, rgba(255, 241, 220, .95), rgba(255, 241, 220, .65)); box-shadow: inset 4px 0 0 var(--warm), inset 0 1px 0 rgba(255, 255, 255, .8); }
.note strong { color: var(--ink); }

/* Ablauf / Systemaufbau */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; margin: 0; padding: 1.15rem 1.3rem 1.15rem 3.9rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1.05rem;
  width: 2rem; height: 2rem; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(180deg, #2a8fe0, #1270c0); color: #fff; font-family: var(--font-mono); font-weight: 600; font-size: .9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 6px 14px -6px rgba(18, 112, 192, .8);
}
.steps h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .98rem; overflow-wrap: break-word; }
.steps--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Kontakt-Band */
.cta-band .container { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { margin: 0; font-size: 1.08rem; }
.contact-lines {
  list-style: none; padding: .6rem; margin: 0; display: grid; gap: .15rem;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 30px 60px -30px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
.contact-lines li { margin: 0; display: flex; align-items: center; gap: .9rem; padding: .7rem .8rem; border-radius: 16px; transition: background .2s; }
.contact-lines li:hover { background: rgba(255, 255, 255, .07); }
.contact-lines svg {
  width: 42px; height: 42px; padding: 11px; border-radius: 13px; color: var(--cyan); flex-shrink: 0;
  background: rgba(127, 212, 255, .12); box-shadow: inset 0 0 0 1px rgba(127, 212, 255, .25);
  transition: transform .35s var(--ease);
}
.contact-lines li:hover svg { transform: scale(1.08) rotate(-6deg); }
.contact-lines a { color: #fff; font-weight: 600; text-decoration: none; font-size: 1.12rem; overflow-wrap: anywhere; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines .who { font-size: .95rem; color: var(--ink-soft); }

/* Platzhalter-Seite */
.placeholder { text-align: center; max-width: 620px; margin-inline: auto; }
.placeholder svg { width: 56px; height: 56px; color: var(--brand); margin: 0 auto 1rem; }

/* Ergänzungen */
.framed { border-radius: var(--radius); border: 1px solid var(--card-edge); background: #fff; box-shadow: var(--shadow-sm); }
figure.media { margin: 0; }
figure.media figcaption { margin-top: .6rem; }
.card-body h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.card-media--cover { aspect-ratio: 16 / 9; padding: 0; }
.card-media--cover img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.btn-row--center { justify-content: center; }
address { font-style: normal; }
.img-tall { max-height: 520px; margin-inline: auto; }

.lead-sm { font-size: 1.12rem; color: var(--ink-soft); }
.text-soft { color: var(--muted); }
.stack { display: grid; gap: 1rem; }

/* Dunkle Sektion (BR7000-I/NET) */
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .framed { border-color: rgba(255, 255, 255, .22); box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .7); }
.section--dark figcaption { color: var(--muted); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; margin-top: .7rem; }
.screens { display: grid; gap: 1.5rem; }

/* Hervorgehobenes Hauptprodukt */
.feature-card {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(20px, 4vw, 48px); align-items: center;
  border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 40px);
}
@media (max-width: 760px) { .feature-card { grid-template-columns: 1fr; } }
.feature-card__media { display: grid; place-items: center; }
.feature-card__media img { max-height: 360px; width: auto; mix-blend-mode: multiply; }
.feature-card__body h2 { margin: .6rem 0 .4rem; }
.variant-list { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: .6rem; }
.variant-list li { margin: 0; padding: .8rem 1rem; border: 1px solid rgba(13, 40, 80, .09); border-radius: 14px; background: rgba(255, 255, 255, .7); display: grid; gap: .15rem; }
.variant-list li span { color: var(--ink-soft); font-size: .95rem; }
.variant-list li.is-highlight, .card--highlight {
  border-color: rgba(54, 163, 230, .55);
  background: linear-gradient(135deg, rgba(226, 238, 250, .95), rgba(255, 255, 255, .8));
  box-shadow: inset 0 1px 0 #fff, 0 10px 26px -16px rgba(18, 112, 192, .7);
}
.card--highlight { box-shadow: var(--shadow-sm), inset 0 3px 0 var(--accent); }

/* Auswahlhilfe */
.guide { list-style: none; padding: 0; margin: 0; border: 1px solid var(--card-edge); border-radius: var(--radius); background: rgba(255, 255, 255, .9); overflow: hidden; box-shadow: var(--shadow-sm); }
.guide li { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.15rem; border-bottom: 1px solid rgba(13, 40, 80, .08); transition: background .15s; }
.guide li:hover { background: rgba(54, 163, 230, .07); }
.guide li:last-child { border-bottom: 0; }
.guide span { color: var(--ink-soft); }
.guide a { font-weight: 620; white-space: nowrap; text-decoration: none; }
.guide a::after { content: " →"; display: inline-block; margin-left: .3em; transition: transform .25s var(--ease); }
.guide li:hover a::after { transform: translateX(4px); }
@media (max-width: 520px) { .guide li { flex-direction: column; align-items: flex-start; gap: .2rem; } }

/* Kompakte Karten (Vorgängergeneration, Zubehör-Verweise) */
.card-media--small { aspect-ratio: 16 / 9; padding: .75rem; }
.card-media--small img { inset: .75rem; width: calc(100% - 1.5rem); height: calc(100% - 1.5rem); }
.card--compact .card-body p { font-size: .95rem; }
.link-list { list-style: none; padding: 0; margin: .25rem 0 0; font-size: .9rem; }
.link-list li { margin: .2rem 0; }

/* Zubehör-Einträge */
.item {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(16px, 3vw, 32px);
  padding: 1.35rem; scroll-margin-top: calc(var(--sticky-top) + 72px);
}
.item:target { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(54, 163, 230, .22), var(--shadow-sm); }
.item-media { display: grid; place-items: center; min-height: 120px; background: #fff; border-radius: 12px; padding: .5rem; align-self: start; }
.item-media img { max-height: 180px; width: auto; object-fit: contain; }
.item-body h3 { margin-bottom: .6rem; }
.item-title { display: block; font-size: .98rem; font-weight: 450; color: var(--muted); margin-top: .15rem; letter-spacing: 0; }
.item-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .9rem; color: var(--muted); margin: .75rem 0; }
.item .features { gap: .35rem; }
.item .features li { font-size: .98rem; }
@media (max-width: 600px) { .item { grid-template-columns: 1fr; } .item-media { min-height: 0; } .item-media img { max-height: 140px; } }

.formula {
  font-family: var(--font-mono); font-size: 1.12rem; padding: .9rem 1.1rem;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--card-edge); box-shadow: inset 4px 0 0 var(--brand), 0 0 0 1px rgba(13, 40, 80, .06);
  border-radius: 12px; color: var(--ink) !important;
}
.gallery-pair { display: flex; gap: 1.5rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.gallery-pair img { max-height: 280px; width: auto; }
.article { max-width: 78ch; }
.article h2 { margin-top: 2rem; font-size: 1.5rem; }
.article figure { margin: 1.5rem 0; }
.feature-card--link { color: inherit; text-decoration: none; transition: box-shadow .3s, transform .3s var(--ease); overflow: hidden; }
.feature-card--link:hover { transform: translateY(-3px); }
.feature-card--link .feature-card__media img { border-radius: var(--radius-sm); mix-blend-mode: normal; }

/* Formulare */
input, select, button { font: inherit; }
input[type="search"], input[type="number"], select {
  width: 100%; padding: .55rem .75rem; border: 1px solid rgba(13, 40, 80, .2); border-radius: 11px;
  background: var(--field); color: #0c1a2c; min-height: 2.7rem;
  box-shadow: inset 0 1px 2px rgba(13, 40, 80, .06);
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover { border-color: rgba(13, 40, 80, .34); }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(54, 163, 230, .25); }

/* Rechner */
.calc { border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); display: grid; gap: .9rem; box-shadow: var(--shadow), var(--glass-hi); }
.calc h3 { margin: 0 0 .25rem; }
.calc label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.calc-label span { font-weight: 400; color: var(--muted); }
.calc-result {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #071a34, #0d335f); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: grid; gap: .2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 30px -16px rgba(7, 26, 52, .8);
}
.calc-result::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(260px 140px at 100% 0%, rgba(54, 163, 230, .45), transparent 70%), radial-gradient(200px 120px at 0% 100%, rgba(255, 171, 74, .16), transparent 70%); }
.calc-result span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #a9bbd3; }
.calc-result strong { font-family: var(--font-mono); font-size: 2.1rem; font-weight: 550; line-height: 1.1; color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-result small { color: #c3d0e2; }
.calc-note { margin: 0; color: var(--muted); }
.calc:not(.is-enhanced) .calc-result { display: none; }

.doc-teaser { display: flex; gap: clamp(16px, 4vw, 40px); align-items: center; border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 32px); flex-wrap: wrap; }
.doc-teaser img { width: 140px; box-shadow: var(--shadow); border-radius: 4px; transform: rotate(-3deg); transition: transform .4s var(--ease); }
.doc-teaser:hover img { transform: rotate(0) scale(1.03); }
.doc-teaser > div { flex: 1 1 320px; }

/* Filterleiste – Arbeitsfläche: Glas, aber ruhig */
.filter-bar {
  display: grid; gap: .9rem 1rem; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  padding: 1.2rem; border: 1px solid var(--card-edge); border-radius: var(--radius); background: var(--card-bg);
  box-shadow: var(--shadow-sm), var(--glass-hi);
}
.filter-bar label { display: grid; gap: .3rem; }
.filter-bar label > span:first-child { font-family: var(--font-mono); font-size: .7rem; font-weight: 550; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.filter-search { grid-column: 1 / -1; }
.filter-status { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .95rem; color: var(--ink-soft); }
.filter-bar--stacked { grid-template-columns: 1fr; }
[data-filter-root]:not(.is-enhanced) .filter-bar { display: none; }
.input-unit { position: relative; display: block; }
.input-unit input { padding-right: 3.2rem; }
.input-unit > span { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; pointer-events: none; }

/* Kondensatorkarten */
.cap-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.cap { padding: 1.25rem 1.3rem; display: grid; gap: .8rem; scroll-margin-top: calc(var(--sticky-top) + 72px); transition: box-shadow .3s; }
.cap:hover { box-shadow: var(--shadow), var(--glass-hi); }
.cap-head h3 { margin: .45rem 0 .1rem; }
.cap-brand { display: inline-block; font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .2em .65em; border-radius: 6px; color: #fff; }
.cap-brand--tdk { background: #1f4e8c; }
.cap-brand--vishay { background: #3d4b5c; }
.cap-brand--frako { background: #0b7a5a; }
.cap-code { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.cap-use { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.cap-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0; }
.cap-facts div { background: var(--well); border-radius: 11px; padding: .5rem .7rem; }
.cap-facts dt { font-family: var(--font-mono); font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cap-facts dd { margin: 0; font-weight: 600; font-size: .95rem; }
.cap-more summary { cursor: pointer; font-weight: 600; color: var(--link); font-size: .95rem; border-radius: 6px; }
.cap-more[open] summary { margin-bottom: .6rem; }
.cap-more .spec-list { box-shadow: none; border-color: rgba(13, 40, 80, .1); border-radius: 12px; }
.cap-more .spec-list > div { grid-template-columns: minmax(110px, 34%) 1fr; }
.cap-actions { margin-top: .2rem; }

/* Downloads */
.downloads-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .downloads-layout { grid-template-columns: 1fr; } }
.downloads-side { position: sticky; top: calc(var(--sticky-top) + 16px); display: grid; gap: 1.25rem; }
@media (max-width: 900px) { .downloads-side { position: static; } .side-nav { display: none; } }
.side-nav ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.side-nav li { margin: 0; }
.side-nav a { display: block; padding: .38rem .95rem; color: var(--ink-soft); text-decoration: none; font-size: .95rem; margin-left: -2px; border-left: 2px solid transparent; transition: color .15s, border-color .15s, padding .25s var(--ease); }
.side-nav a:hover, .side-nav a.is-active { color: var(--link); border-left-color: var(--brand); padding-left: 1.2rem; }
.side-nav a.is-active { font-weight: 600; }
.dl-category { scroll-margin-top: calc(var(--sticky-top) + 20px); padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.dl-category:last-of-type { border-bottom: 0; }
.dl-category > h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.dl-group { margin-top: 1.25rem; }
.dl-group h3 { font-family: var(--font-mono); font-size: .78rem; font-weight: 550; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .55rem; }
.dl-rows { list-style: none; padding: 0; margin: 0; border: 1px solid var(--card-edge); border-radius: 14px; background: rgba(255, 255, 255, .9); overflow: hidden; box-shadow: var(--shadow-sm); }
.dl-rows li { margin: 0; border-bottom: 1px solid rgba(13, 40, 80, .08); }
.dl-rows li:last-child { border-bottom: 0; }
.dl-rows a { display: grid; grid-template-columns: auto 1fr auto auto; gap: .9rem; align-items: center; padding: .6rem .9rem; color: var(--ink); text-decoration: none; transition: background .15s; }
.dl-rows a:hover { background: rgba(54, 163, 230, .09); }
.dl-rows .ftype { width: 2.5rem; height: 1.8rem; border-radius: 7px; font-size: .62rem; }
.dl-rows .dl-title { font-weight: 520; }
.dl-rows .dl-meta { font-size: .85rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 600px) { .dl-rows a { grid-template-columns: auto 1fr auto; row-gap: .15rem; } .dl-rows .dl-title { grid-column: 2 / -1; } .dl-rows .dl-meta { grid-column: 2; white-space: normal; } }

/* Zeitstrahl */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4.6rem; top: .5rem; bottom: .5rem; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--warm), var(--accent) 30%, var(--brand)); opacity: .55; }
.timeline li { margin: 0; display: grid; grid-template-columns: 4rem 1fr; gap: 1.5rem; align-items: start; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 4.3rem; top: 1.25rem; width: .8rem; height: .8rem; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 0 0 4px rgba(54, 163, 230, .2); transition: transform .3s var(--ease), box-shadow .3s; }
.timeline li:hover::before { transform: scale(1.25); box-shadow: 0 0 0 7px rgba(54, 163, 230, .22); }
.timeline-year { font-family: var(--font-mono); font-weight: 600; color: var(--brand-strong); padding-top: 1rem; text-align: right; font-size: .92rem; }
.timeline-card { display: flex; gap: 1.25rem; align-items: center; padding: 1.1rem; margin-left: .5rem; transition: transform .3s var(--ease), box-shadow .3s; }
.timeline li:hover .timeline-card { transform: translateX(4px); box-shadow: var(--shadow), var(--glass-hi); }
.timeline-card img { width: 96px; height: 96px; object-fit: contain; flex-shrink: 0; background: #fff; border-radius: 12px; padding: 4px; }
.timeline-card h3 { margin: 0 0 .25rem; font-size: 1.08rem; }
.timeline-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 560px) {
  .timeline::before { left: .35rem; } .timeline li { grid-template-columns: minmax(0, 1fr); gap: .1rem; padding-left: 1.4rem; } .timeline li::before { left: 0; top: .3rem; }
  .timeline-year { text-align: left; padding-top: 0; } .timeline-card { margin-left: 0; flex-direction: column; align-items: flex-start; } .timeline-card img { width: 72px; height: 72px; }
}

.chronik { margin: 0; display: grid; gap: 0; }
.chronik > div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.chronik dt { font-family: var(--font-mono); font-weight: 600; color: var(--brand-strong); }
.chronik dd { margin: 0; }
.chronik ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); overflow-wrap: break-word; }

/* 7. Showcase -------------------------------------------------------------- */

/* Hero (Startseite) */
.hero { padding-top: calc(var(--topbar-h) + var(--header-h)); min-height: min(100svh, 880px); display: flex; flex-direction: column; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30%; z-index: -1; opacity: .38; pointer-events: none; }
.hero-grid {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding-block: clamp(28px, 4vw, 56px) clamp(84px, 9vw, 120px);
}
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2rem, 4.9vw - 4px, 3.9rem); line-height: 1.03; letter-spacing: -.04em; font-weight: 660; max-width: 14ch; margin-bottom: .5em; color: #fff; }
.hero h1 .shine { display: block; color: var(--cyan); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .shine {
    background: linear-gradient(100deg, #ffffff 0%, #9bdcff 38%, #46b0f2 62%, #ffc98a 100%); background-size: 180% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    animation: shine 9s ease-in-out infinite alternate; padding-bottom: .08em;
  }
}
@keyframes shine { to { background-position: 100% 0; } }
.hero .lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.28rem); color: var(--ink-soft); max-width: 44ch; }
.chip {
  display: inline-flex; align-items: center; gap: .6em; flex-wrap: wrap; margin-bottom: 1.4rem;
  padding: .4em .95em; border-radius: 999px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: #d4e6f8;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.chip i { width: 4px; height: 4px; border-radius: 50%; background: var(--warm); }
@media (max-width: 560px) { .chip { border-radius: 14px; font-size: .68rem; gap: .3em .6em; padding: .55em .9em; line-height: 1.4; } }

.facts {
  list-style: none; padding: 0; margin: 2.1rem 0 0;
  display: flex; flex-wrap: wrap; gap: .55rem 1.6rem;
  color: var(--ink-soft); font-size: .95rem;
}
.facts li { margin: 0; display: flex; align-items: center; gap: .5em; }
.facts svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }

.hero-stage { position: relative; min-width: 0; display: grid; justify-items: center; }
.hero-stage .scope { margin-top: calc(var(--s, 280px) * -.06); width: min(100%, 470px); z-index: 2; }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; padding-top: clamp(20px, 5vw, 40px); }
  .hero h1 { max-width: none; font-size: clamp(2rem, 9vw - 4px, 3.6rem); }
  .hero-stage { margin-top: .5rem; }
}

/* Kennzahlen-Leiste auf der Kante zwischen Hero und Inhalt */
.stats-strip { position: relative; z-index: 2; margin-top: clamp(-76px, -6vw, -52px); }
.stats-strip .stat { background: rgba(255, 255, 255, .93); box-shadow: var(--shadow), var(--glass-hi); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .stats-strip .stat { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); }
}
.stats-strip + .section { padding-top: clamp(44px, 6vw, 80px); }
@media (max-width: 520px) { .stats-strip .stats { grid-template-columns: 1fr 1fr; gap: .6rem; } .stats-strip .stat { padding: 1rem; } .stats-strip .stat strong { font-size: 1.3rem; } .stats-strip .stat > span { font-size: .85rem; } }

/* --- 3D-Modell des BR7000-I (144 × 144 × 55 mm) --------------------------------
   Reines CSS-3D: Frontplatte = Produktfoto (auf das Gerät zugeschnitten), Rahmen als Schichtstapel,
   Gehäuse und Rückseite modelliert. Ohne JS dreht es sich sanft per CSS-Animation;
   src/client/device3d.ts übernimmt dann --rx/--ry (Mauszeiger, Ziehen, Pfeiltasten). */
.device3d {
  --s: clamp(210px, 25vw, 310px);     /* Kantenlänge der Front */
  --d: calc(var(--s) * .382);         /* Tiefe 55/144 */
  --b: calc(var(--s) * .05);          /* Frontrahmen */
  --i: calc(var(--s) * .04);          /* Einzug des Gehäuses hinter dem Rahmen */
  --db: calc(var(--d) - var(--b));
  --rx: 9deg; --ry: -27deg; --gl: 0;
  position: relative; width: var(--s); height: var(--s);
  margin: calc(var(--s) * .12) auto calc(var(--s) * .2);
  perspective: calc(var(--s) * 3.8);
  touch-action: pan-y; -webkit-user-select: none; user-select: none;
  border-radius: 12px;
}
.device3d.is-live { cursor: grab; }
.device3d.is-dragging { cursor: grabbing; }
.device3d__halo {
  position: absolute; inset: -38%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(54, 163, 230, .50), rgba(54, 163, 230, .14) 55%, transparent 72%);
}
.device3d__floor {
  position: absolute; left: -12%; right: -12%; bottom: -27%; height: 22%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(2, 8, 20, .75), rgba(2, 8, 20, .3) 55%, transparent);
  transform: translateX(calc(var(--gl) * -6%));
}
.device3d__spin {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  animation: d3-sway 9s ease-in-out infinite alternate;
}
.device3d.is-live .device3d__spin { animation: none; }
@keyframes d3-sway {
  from { transform: rotateX(10deg) rotateY(-30deg); }
  to   { transform: rotateX(5deg) rotateY(-12deg); }
}
.d3 { position: absolute; display: block; }
.d3-front {
  inset: 0; border-radius: 4.6%; overflow: hidden; background: #15171b;
  transform: translateZ(calc(var(--d) / 2));
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
/* Foto 363 × 387 px, Gerät darin: x/y = 14 px, Kantenlänge 335 px */
.device3d .d3-front img { position: absolute; left: -4.18%; top: -4.18%; width: 108.36%; max-width: none; max-height: none; height: auto; pointer-events: none; -webkit-user-drag: none; }
/* LC-Display über der (im Foto leeren) Anzeige */
.d3-lcd {
  position: absolute; left: 14.6%; top: 22.9%; width: 50.2%; height: 27.8%;
  background: linear-gradient(180deg, #e9f3f1, #d3e1df);
  box-shadow: inset 0 0 0 1px rgba(20, 40, 50, .5), inset 0 2px 6px rgba(20, 40, 50, .35), 0 0 calc(var(--s) * .06) rgba(190, 235, 255, .55);
  color: #1b2a2e; font-family: var(--font-mono); font-weight: 600; line-height: 1;
  font-size: calc(var(--s) * .034);
  display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: 6%; padding: 7% 6% 6%;
}
.d3-lcd__mode { letter-spacing: .12em; padding-bottom: 5%; border-bottom: 1px dotted rgba(27, 42, 46, .7); }
.d3-lcd__cos { font-size: 1.42em; letter-spacing: .02em; white-space: nowrap; display: flex; align-items: baseline; gap: .35em; }
.d3-lcd__cos small { font-size: .62em; letter-spacing: .08em; }
.d3-lcd__pips { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4%; align-self: end; height: 52%; }
.d3-lcd__pips i { border: 1px solid rgba(27, 42, 46, .35); border-radius: 1px; transition: background .2s; }
.d3-lcd__pips i.is-on { background: #1b2a2e; border-color: #1b2a2e; }
.d3-glare { inset: 0; border-radius: 4.6%; overflow: hidden; transform: translateZ(calc(var(--d) / 2 + .5px)); pointer-events: none; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.d3-glare::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 220%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .0) 40%, rgba(255, 255, 255, .26) 47%, rgba(255, 255, 255, .06) 54%, transparent 60%);
  transform: translateX(calc(var(--gl) * 34%));
}
/* Frontrahmen: Stapel aus abgerundeten Platten (ergibt saubere runde Ecken) + gerade Seitenflächen */
.d3-slice { inset: 0; border-radius: 4.6%; background: #191b20; transform: translateZ(calc(var(--d) / 2 - var(--b) * var(--k))); }
.d3-slice:first-of-type { background: #2c3038; }
.d3-edge { background: linear-gradient(90deg, #2a2d34, #15171b); }
.d3-edge--r, .d3-edge--l { width: var(--b); top: 4.6%; bottom: 4.6%; left: calc(50% - var(--b) / 2); }
.d3-edge--t, .d3-edge--b { height: var(--b); left: 4.6%; right: 4.6%; top: calc(50% - var(--b) / 2); background: linear-gradient(180deg, #33373f, #1b1d22); }
.d3-edge--r { transform: translateZ(calc(var(--d) / 2 - var(--b) / 2)) rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.d3-edge--l { transform: translateZ(calc(var(--d) / 2 - var(--b) / 2)) rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.d3-edge--t { transform: translateZ(calc(var(--d) / 2 - var(--b) / 2)) rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.d3-edge--b { transform: translateZ(calc(var(--d) / 2 - var(--b) / 2)) rotateX(-90deg) translateZ(calc(var(--s) / 2)); background: #0d0e11; }
/* Gehäuse */
.d3-side { background-color: #22262d; }
.d3-side--r, .d3-side--l {
  width: var(--db); top: var(--i); bottom: var(--i); left: calc(50% - var(--db) / 2);
  background-image: repeating-linear-gradient(180deg, transparent 0 7%, rgba(0, 0, 0, .5) 7% 8.6%), linear-gradient(90deg, #343943, #1c1f25);
}
.d3-side--t, .d3-side--b {
  height: var(--db); left: var(--i); right: var(--i); top: calc(50% - var(--db) / 2);
  background-image: repeating-linear-gradient(90deg, transparent 0 4.4%, rgba(0, 0, 0, .55) 4.4% 5.6%), linear-gradient(180deg, #3c424d, #262a32);
  background-size: 100% 56%, 100% 100%; background-repeat: no-repeat; background-position: center;
}
.d3-side--r { transform: translateZ(calc(var(--b) / -2)) rotateY(90deg) translateZ(calc(var(--s) / 2 - var(--i))); }
.d3-side--l { transform: translateZ(calc(var(--b) / -2)) rotateY(-90deg) translateZ(calc(var(--s) / 2 - var(--i))); background-image: repeating-linear-gradient(180deg, transparent 0 7%, rgba(0, 0, 0, .5) 7% 8.6%), linear-gradient(270deg, #30353e, #1f2229); }
.d3-side--t { transform: translateZ(calc(var(--b) / -2)) rotateX(90deg) translateZ(calc(var(--s) / 2 - var(--i))); }
.d3-side--b { transform: translateZ(calc(var(--b) / -2)) rotateX(-90deg) translateZ(calc(var(--s) / 2 - var(--i))); background-color: #121418; background-image: none; }
/* Rückseite: stilisiert (Typschild, steckbare Klemmenleisten) */
.d3-back {
  inset: var(--i); transform: translateZ(calc(var(--d) / -2)) rotateY(180deg);
  background: linear-gradient(160deg, #d9dde2, #b9bfc7); box-shadow: inset 0 0 0 calc(var(--s) * .012) #2a2e35;
  display: grid; grid-template-columns: 1fr 1.25fr; grid-template-rows: repeat(3, 1fr); gap: 5% 6%; padding: 9% 8%;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.d3-back i { display: block; border-radius: 3px; }
.d3-back .plate { background: repeating-linear-gradient(180deg, transparent 0 22%, rgba(30, 40, 50, .28) 22% 25%), #f1f3f5; box-shadow: inset 0 0 0 1px rgba(30, 40, 50, .7); }
.d3-back .term {
  background: repeating-linear-gradient(90deg, #1e8a3a 0 2%, #2fc552 2% 10.5%, #1e8a3a 10.5% 12.5%);
  box-shadow: inset 0 0 0 1px rgba(10, 60, 25, .8), inset 0 calc(var(--s) * .03) 0 rgba(255, 255, 255, .18), 0 2px 4px rgba(0, 0, 0, .3);
  align-self: center; height: 62%;
}
.device3d__hint {
  position: absolute; left: 50%; top: calc(var(--s) * -.14); transform: translateX(-50%); margin: 0; white-space: nowrap;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #9db0c9;
  display: none; align-items: center; gap: .5em; pointer-events: none;
}
.device3d.is-live .device3d__hint { display: inline-flex; }
.device3d__hint svg { width: 14px; height: 14px; }
/* ohne 3D-Unterstützung: schlichtes Foto */
@supports not (transform-style: preserve-3d) {
  .device3d__spin { animation: none; transform: none; }
  .d3:not(.d3-front) { display: none; }
}

/* --- Oszilloskop: Spannung/Strom und Phasenverschiebung ----------------------- */
.scope {
  position: relative; border-radius: 22px; padding: .95rem 1.05rem 1rem; color: #c3d0e2;
  background: rgba(10, 26, 50, .82); border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -20px 30px -20px rgba(54, 163, 230, .18), 0 30px 60px -28px rgba(0, 0, 0, .8);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .scope { background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05)); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); }
}
.scope-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; }
.scope-title { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #9db0c9; display: inline-flex; align-items: center; gap: .6em; }
.scope-title::before { content: ""; width: 6px; height: 6px; border-radius: 1px; transform: rotate(45deg); background: var(--warm); }
.scope-switch {
  display: inline-flex; align-items: center; gap: .6em; padding: .3rem .35rem .3rem .75rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .82rem; font-weight: 560; color: #e9f1fb;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  transition: background .2s, border-color .2s;
}
.scope-switch:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .34); }
.scope-switch .knob { position: relative; width: 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .18); transition: background .25s; flex-shrink: 0; }
.scope-switch .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .3s var(--ease); }
.scope-switch[aria-pressed="true"] .knob { background: linear-gradient(90deg, #1e8add, #5fe3a1); }
.scope-switch[aria-pressed="true"] .knob::after { transform: translateX(14px); }
.scope:not(.is-live) .scope-switch { display: none; }
.scope-plot { display: block; width: 100%; height: auto; border-radius: 12px; background: rgba(3, 10, 24, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.scope-plot .grid-line { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.scope-plot .axis { stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.scope-plot .u { stroke: #6fcbff; }
.scope-plot .i { stroke: var(--warm); }
.scope-plot .wave { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scope-plot .glow { fill: none; stroke-width: 8; opacity: .16; stroke-linecap: round; }
.scope-plot .mark { stroke-width: 1; stroke-dasharray: 3 3; opacity: .8; }
.scope-plot .phi-bar { stroke: #fff; stroke-width: 1.5; }
.scope-plot text { font-family: var(--font-mono); font-size: 11px; fill: #fff; }
.scope-plot .dot { stroke: none; }
.scope-plot .dot.u { fill: #d8f1ff; } .scope-plot .dot.i { fill: #ffe3bf; }
.scope-foot { display: grid; grid-template-columns: auto auto 1fr; gap: .4rem 1.3rem; align-items: end; margin-top: .75rem; }
.scope-val { display: grid; gap: .1rem; }
.scope-val > span { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: #9db0c9; }
.scope-val strong { font-family: var(--font-mono); font-weight: 550; font-size: 1.5rem; line-height: 1; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scope-val strong small { font-size: .7rem; font-weight: 500; letter-spacing: .06em; color: #9db0c9; margin-left: .35em; }
.scope-pips { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; height: 1.5rem; align-items: stretch; }
.scope-pips i { border-radius: 3px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background .25s, box-shadow .25s; }
.scope-pips i.is-on { background: linear-gradient(180deg, #8adcff, #2a8fe0); box-shadow: 0 0 10px rgba(54, 163, 230, .8); }
.scope-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: #c3d0e2; margin: .55rem 0 0; }
.scope-legend span { display: inline-flex; align-items: center; gap: .45em; }
.scope-legend i { width: 14px; height: 3px; border-radius: 2px; background: #6fcbff; }
.scope-legend .i i { background: var(--warm); }
.scope-legend .hint { margin-left: auto; color: #8ea2bd; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 420px) { .scope-foot { grid-template-columns: auto 1fr; } .scope-foot .scope-val:last-child { grid-column: 1 / -1; } .scope-legend .hint { display: none; } }

/* Browserfenster aus Glas (BR7000-I/NET) */
.browser {
  margin: 0; border-radius: 18px; padding: 0 8px 8px; position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07));
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 50px 90px -40px rgba(0, 0, 0, .85), 0 0 110px -30px rgba(54, 163, 230, .6);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transform: perspective(1500px) rotateY(var(--ry, -9deg)) rotateX(var(--rx, 3deg));
  transition: transform .5s var(--ease);
}
.browser.is-tilting { transition: transform .08s linear; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding-inline: 6px; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.browser-bar i:nth-child(1) { background: #ff7b6b; } .browser-bar i:nth-child(2) { background: #ffc24d; } .browser-bar i:nth-child(3) { background: #55d98b; }
.browser-bar span { margin-left: 10px; flex: 1; max-width: 300px; height: 22px; border-radius: 8px; background: rgba(3, 10, 24, .4); color: #c3d0e2; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em; display: flex; align-items: center; padding-inline: 10px; white-space: nowrap; overflow: hidden; }
.browser img { border-radius: 11px; width: 100%; }
@media (max-width: 800px) { .browser { transform: none; } }

/* Zweispaltige Service-Karte der Startseite */
.card--pad .card-body { padding: clamp(1.3rem, 2.5vw, 2rem); }

/* 8. Footer ---------------------------------------------------------------- */
.site-footer { font-size: .95rem; background: linear-gradient(180deg, #040b17, #071428); color: #9db0c9; }
.footer-grid {
  display: grid; gap: 2rem; padding-block: 56px 36px;
  grid-template-columns: 1.5fr repeat(3, 1fr);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--font-mono); font-size: .72rem; font-weight: 550; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 .45rem; }
.site-footer a { color: #c9d6e7; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.75; }
.footer-company { color: #fff; font-weight: 620; font-size: 1.1rem; margin-bottom: .5rem; letter-spacing: -.01em; }
.footer-logo { display: inline-block; margin-bottom: 1.1rem; border-radius: 8px; }
.footer-logo .logo { height: 58px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-block: 1.2rem; font-size: .85rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer-bottom li { margin: 0; }

/* 9. Hilfsklassen ---------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.text-muted { color: var(--muted); }
.center { text-align: center; }

/* 10. Bewegung ------------------------------------------------------------- */
/* Einblenden beim Scrollen: fx.ts setzt .rv-pre nur auf Elemente, die beim Laden unterhalb des
   Bildschirms liegen – ohne JS (oder im hohen Screenshot-Fenster) bleibt alles sichtbar. */
.rv-pre { opacity: 0; transform: translateY(22px); }
.rv-in { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--rv-delay, 0ms); }

/* Seitenwechsel (Chrome, Safari): weiches Überblenden, die Navigationsleiste bleibt stehen */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } html { scroll-behavior: smooth; } }
::view-transition-old(root) { animation: vt-out .18s ease-in both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .rv-pre { opacity: 1; transform: none; }
  .browser { transform: none; }
}

@media print {
  .site-header, .topbar, .toc, .aurora, .hero-stage, .site-footer .footer-grid ul { display: none; }
  .rv-pre { opacity: 1; transform: none; }
}
