/* ==========================================================================
   EBEHAKO electronic – Basis-Stylesheet
   Schlicht, ohne Framework. Aufbau:
   1. Tokens  2. Basis  3. Layout  4. Header/Navigation  5. Komponenten
   6. Footer  7. Hilfsklassen
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --brand: #1270c0;          /* Primärblau, abgeleitet vom Logo */
  --brand-strong: #0b4f8a;
  --brand-soft: #e8f2fb;
  --accent: #36a3e6;         /* helles Logo-Blau, sparsam einsetzen */
  --ink: #142231;
  --ink-soft: #3d4b5c;
  --muted: #66758a;
  --line: #dde4ec;
  --surface: #ffffff;
  --surface-soft: #f4f7fa;
  --navy: #0e2034;
  --navy-2: #15304d;
  --warn: #a35a00;
  --warn-soft: #fff4e2;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(16, 34, 52, .06), 0 1px 3px rgba(16, 34, 52, .06);
  --shadow: 0 4px 16px rgba(16, 34, 52, .08), 0 1px 3px rgba(16, 34, 52, .06);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-strong); }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.01em; 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(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
h4 { font-size: 1.05rem; font-weight: 650; }

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

small { font-size: .875rem; }

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

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

.section { padding-block: clamp(48px, 7vw, 88px); }
.section--soft { background: var(--surface-soft); }
.section--tight { padding-block: clamp(32px, 4vw, 48px); }

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

.eyebrow {
  display: inline-block;
  font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .75em;
}

.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.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; }

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

/* 4. Header / Navigation --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}

.topbar {
  background: var(--navy); color: #c9d6e4; font-size: .875rem;
}
.topbar .container {
  display: flex; justify-content: flex-end; gap: 1.5rem; flex-wrap: wrap;
  padding-block: .35rem;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { flex-shrink: 0; display: block; }
.brand img { height: 58px; width: auto; }

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

.nav-link {
  display: flex; align-items: center; gap: .35em;
  padding: .6rem .8rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav-link:hover, .nav-list > li:focus-within > .nav-link { color: var(--brand); background: var(--brand-soft); }
.nav-link .chev { width: 10px; height: 10px; transition: transform .15s; }

/* 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);
  box-shadow: inset 0 -2px 0 var(--brand);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.subnav {
  list-style: none; margin: 0; padding: .5rem;
  position: absolute; top: 100%; left: 0; min-width: 290px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.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 {
  display: block; padding: .55rem .75rem; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.35;
}
.subnav a span { display: block; color: var(--muted); font-size: .8125rem; }
.subnav a:hover { background: var(--surface-soft); color: var(--brand); }
.subnav .is-pending { color: var(--muted); }

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

.nav-toggle {
  display: none; margin-left: auto;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  padding: .5rem .7rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
  align-items: center; gap: .5rem;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: .5rem var(--gutter) 1.25rem;
  }
  .site-header.is-open .nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); padding-block: .25rem; }
  .nav-link { padding-inline: 0; }
  .nav-link:hover, .nav-list > li:focus-within > .nav-link { background: none; }
  .nav-link .chev { display: none; }
  body[data-section] .nav-link[data-nav] { box-shadow: none; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 0 0 .5rem .5rem; min-width: 0;
  }
  .subnav a span { display: none; }
  .nav-cta { margin: 1rem 0 0; border-bottom: 0 !important; }
  .brand img { height: 48px; }
}

/* 5. Komponenten ----------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.2em; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-strong); color: #fff; }
.btn--ghost { background: #fff; color: var(--brand); border-color: #b9d3ea; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--brand-soft); color: var(--navy); }
.btn--small { padding: .5em .9em; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero (Startseite) */
.hero {
  background:
    radial-gradient(900px 400px at 85% 20%, rgba(54, 163, 230, .16), transparent 60%),
    linear-gradient(180deg, #f6f9fc 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.hero .split { padding-block: clamp(40px, 7vw, 96px); }
.hero h1 { max-width: 20ch; font-size: clamp(2rem, 4.2vw - 6px, 3rem); } /* „Blindleistungsregler“ passt bei jeder Breite ganz in eine Zeile */
.hero .lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }
.hero-figure {
  position: relative; justify-self: center; max-width: 460px; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(16px, 3vw, 32px); box-shadow: 0 24px 48px -12px rgba(14, 32, 52, .18);
}
.hero-figure img { width: 100%; }

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

/* Seitenkopf (Unterseiten) */
.page-head {
  background: linear-gradient(180deg, #f6f9fc 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 56px);
}
.page-head h1 { margin-bottom: .35em; }
.page-head .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 70ch; margin: 0; }

.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35em; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .35em; color: #a9b5c3; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

/* Kacheln / Karten */
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.card:hover { border-color: #b9d3ea; box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card-media {
  aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line);
  display: grid; place-items: center; padding: 1.25rem;
}
.card-media img { max-height: 100%; width: auto; object-fit: contain; }
.card-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { margin: 0; }
.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(--brand); display: inline-flex; align-items: center; gap: .35em;
}
.card-more svg { width: 1em; height: 1em; transition: transform .15s; }
a.card:hover .card-more svg { transform: translateX(3px); }

/* Bereichs-Kacheln (Startseite) */
.tile {
  position: relative; display: grid; grid-template-columns: 1fr 120px; gap: 1rem; align-items: center;
  padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.tile:hover { border-color: #b9d3ea; box-shadow: var(--shadow); color: inherit; }
.tile h3 { margin: 0 0 .35rem; }
.tile p { margin: 0 0 .75rem; color: var(--ink-soft); font-size: .98rem; }
.tile img { width: 120px; height: 120px; object-fit: contain; }
.tile .card-more { padding: 0; }
@media (max-width: 480px) { .tile { grid-template-columns: 1fr 84px; } .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.75rem; position: relative; color: var(--ink-soft); }
.features li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231270c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% 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%, 180px), 1fr)); gap: 1rem; }
.stat { padding: 1.25rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat strong { display: block; font-size: 1.75rem; line-height: 1.1; color: var(--brand-strong); }
.stat span { color: var(--ink-soft); font-size: .95rem; }

/* Badges */
.badge {
  display: inline-block; padding: .15em .55em; border-radius: 999px;
  font-size: .75rem; font-weight: 650; letter-spacing: .02em; line-height: 1.5;
  background: var(--brand-soft); color: var(--brand-strong); white-space: nowrap;
}
.badge--muted { background: #eef1f5; color: var(--muted); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge-row { display: flex; flex-wrap: wrap; gap: .35rem; }

/* Tabellen */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; margin: 0; font-size: .95rem; }
.table th, .table td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th {
  background: var(--surface-soft); font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 650; white-space: nowrap;
}
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover { background: #fafcfe; }
.table th[scope="row"] { font-weight: 650; 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; }

/* Spezifikationen (Schlüssel/Wert) */
.specs { display: grid; gap: 1.5rem; }
.spec-group h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .5rem; }
.spec-list { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.spec-list > div { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.spec-list > div:last-child { border-bottom: 0; }
.spec-list > div:nth-child(even) { background: #fafcfe; }
.spec-list dt { color: var(--muted); font-size: .95rem; }
.spec-list dd { margin: 0; font-size: .95rem; }
.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 {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(16px, 3vw, 32px); display: grid; place-items: center;
}
.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: 1px solid var(--line); border-radius: var(--radius-sm); padding: .4rem; }
.product-gallery .thumbs figcaption { font-size: .75rem; color: var(--muted); padding: .25rem .1rem 0; }

.key-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .75rem; margin: 1.5rem 0; }
.key-facts div { padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--surface-soft); border: 1px solid var(--line); }
.key-facts strong { display: block; font-size: 1.15rem; color: var(--ink); }
.key-facts span { font-size: .85rem; color: var(--muted); }

/* Unterseiten-Navigation (Sprungmarken) */
.toc {
  position: sticky; top: var(--header-h); z-index: 10;
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
}
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.toc li { margin: 0; flex-shrink: 0; }
.toc a { display: block; padding: .8rem .9rem; font-size: .95rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; border-bottom: 2px solid transparent; }
.toc a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* Downloads */
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.downloads li { margin: 0; }
.downloads a {
  display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  color: var(--ink); text-decoration: none; transition: border-color .15s;
}
.downloads a:hover { border-color: var(--brand); color: var(--ink); }
.downloads .ftype {
  flex-shrink: 0; width: 2.4rem; height: 2.4rem; border-radius: var(--radius-sm);
  display: grid; place-items: center; font-size: .7rem; font-weight: 700;
  background: #fdecec; color: #b42318;
}
.downloads .dl-title { font-weight: 600; display: block; }
.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 #b9d3ea; background: var(--brand-soft);
  color: var(--ink-soft);
}
.note--warn { border-color: #f1d3a5; background: var(--warn-soft); }
.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.1rem 1.25rem 1.1rem 3.6rem; position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps li::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1.05rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Kontakt-Band */
.cta-band { background: var(--navy); color: #d5e1ee; }
.cta-band .container { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { margin: 0; }
.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.contact-lines li { margin: 0; display: flex; align-items: center; gap: .75rem; }
.contact-lines svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.contact-lines a { color: #fff; font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines .who { font-size: .9rem; color: #9fb2c7; }

/* 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; }

/* 6. Footer ---------------------------------------------------------------- */
.site-footer { background: #0a1828; color: #9fb2c7; font-size: .95rem; }
.footer-grid {
  display: grid; gap: 2rem; padding-block: 48px 32px;
  grid-template-columns: 1.4fr repeat(3, 1fr); /* Firmenblock + 3 Linkspalten */
}
@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-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 .4rem; }
.site-footer a { color: #c9d6e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-company { color: #fff; font-weight: 650; font-size: 1.05rem; margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-block: 1.1rem; font-size: .85rem; }
.footer-bottom ul { display: flex; gap: 1.25rem; }
.footer-bottom li { margin: 0; }

/* 7. 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; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Ergänzungen */
.framed { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
figure.media { margin: 0; }
figure.media figcaption { margin-top: .5rem; }
.card-body h2 { font-size: 1.25rem; }
.card-media--cover { aspect-ratio: 16 / 9; padding: 0; }
.card-media--cover img { width: 100%; height: 100%; object-fit: cover; }
.downloads .ftype--link { background: var(--brand-soft); color: var(--brand); }
.btn-row--center { justify-content: center; }
address { font-style: normal; }
.img-tall { max-height: 520px; margin-inline: auto; }
.tile > div { min-width: 0; }
.key-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- Meilenstein 2 ---------------------------------------------------- */
.lead-sm { font-size: 1.1rem; color: var(--ink-soft); }
.text-soft { color: #a9bccf; }
.stack { display: grid; gap: 1rem; }

/* Dunkle Sektion (BR7000-I/NET) */
.section--dark { background: var(--navy); color: #d5e1ee; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--accent); }
.section--dark .lead-sm, .section--dark .features li { color: #d5e1ee; }
.section--dark .features li::before { background-color: rgba(54, 163, 230, .18); }
.section--dark .framed { border-color: rgba(255, 255, 255, .12); }
.section--dark figcaption { color: #9fb2c7; font-size: .85rem; margin-top: .4rem; }
.screens { display: grid; gap: 1.25rem; }

/* Hervorgehobenes Hauptprodukt */
.feature-card {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(20px, 4vw, 48px); align-items: center;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: clamp(20px, 3vw, 40px); box-shadow: var(--shadow-sm);
}
@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; }
.feature-card__body h2 { margin: .5rem 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: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); display: grid; gap: .15rem; }
.variant-list li span { color: var(--ink-soft); font-size: .95rem; }
.variant-list li.is-highlight { border-color: #9cc6ea; background: var(--brand-soft); }
.card--highlight { border-color: #9cc6ea; box-shadow: inset 0 3px 0 var(--brand); }

/* Auswahlhilfe */
.guide { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.guide li { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.guide li:last-child { border-bottom: 0; }
.guide span { color: var(--ink-soft); }
.guide a { font-weight: 650; white-space: nowrap; text-decoration: none; }
.guide a::after { content: " →"; }
@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--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.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; scroll-margin-top: calc(var(--header-h) + 64px);
}
.item:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.item-media { display: grid; place-items: center; min-height: 120px; }
.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: 500; color: var(--muted); margin-top: .15rem; }
.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; } }

/* ---- Meilenstein 3 ---------------------------------------------------- */
.formula { font-family: var(--font-mono); font-size: 1.15rem; padding: .8rem 1rem; background: var(--surface-soft); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); color: var(--ink); }
.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: border-color .15s, box-shadow .15s; }
.feature-card--link:hover { border-color: #b9d3ea; box-shadow: var(--shadow); color: inherit; }
.feature-card--link .feature-card__media img { border-radius: var(--radius-sm); }

/* Formulare */
input, select, button { font: inherit; }
input[type="search"], input[type="number"], select {
  width: 100%; padding: .55rem .7rem; border: 1px solid #c8d3df; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); min-height: 2.6rem;
}
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Rechner */
.calc { border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 28px); background: #fff; box-shadow: var(--shadow-sm); display: grid; gap: .9rem; }
.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 { background: var(--brand-soft); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; gap: .15rem; }
.calc-result span { font-size: .85rem; color: var(--ink-soft); }
.calc-result strong { font-size: 2rem; line-height: 1.1; color: var(--brand-strong); }
.calc-result small { color: var(--ink-soft); }
.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: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 32px); background: var(--surface-soft); flex-wrap: wrap; }
.doc-teaser img { width: 140px; box-shadow: var(--shadow); border-radius: 4px; }
.doc-teaser > div { flex: 1 1 320px; }

/* Filterleiste */
.filter-bar {
  display: grid; gap: .9rem 1rem; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft);
}
.filter-bar label { display: grid; gap: .3rem; }
.filter-bar label > span:first-child { font-size: .8rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; 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: .7rem; 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 { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1.2rem 1.25rem; display: grid; gap: .8rem; scroll-margin-top: calc(var(--header-h) + 64px); }
.cap-head h3 { margin: .35rem 0 .1rem; }
.cap-brand { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15em .55em; border-radius: 4px; 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(--surface-soft); border-radius: var(--radius-sm); padding: .5rem .65rem; }
.cap-facts dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cap-facts dd { margin: 0; font-weight: 600; font-size: .95rem; }
.cap-more summary { cursor: pointer; font-weight: 600; color: var(--brand); font-size: .95rem; }
.cap-more[open] summary { margin-bottom: .6rem; }
.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: 280px 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(--header-h) + 16px); display: grid; gap: 1rem; }
@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: .35rem .9rem; color: var(--ink-soft); text-decoration: none; font-size: .95rem; margin-left: -2px; border-left: 2px solid transparent; }
.side-nav a:hover { color: var(--brand); border-left-color: var(--brand); }
.dl-category { scroll-margin-top: calc(var(--header-h) + 16px); padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.dl-category:last-of-type { border-bottom: 0; }
.dl-group { margin-top: 1.25rem; }
.dl-group h3 { font-size: 1rem; color: var(--ink-soft); margin-bottom: .5rem; }
.dl-rows { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.dl-rows li { margin: 0; border-bottom: 1px solid var(--line); }
.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; }
.dl-rows a:hover { background: var(--surface-soft); }
.dl-rows .ftype { width: 2.4rem; height: 1.8rem; border-radius: 4px; display: grid; place-items: center; font-size: .65rem; font-weight: 700; background: #fdecec; color: #b42318; }
.dl-rows .dl-title { font-weight: 550; }
.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; } .dl-rows .dl-meta { grid-column: 2; white-space: normal; } }

/* Zeitstrahl */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4.6rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.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.35rem; top: 1.1rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px #fff; }
.timeline-year { font-weight: 700; color: var(--brand-strong); padding-top: .8rem; text-align: right; font-size: .95rem; }
.timeline-card { display: flex; gap: 1.25rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: #fff; margin-left: .5rem; }
.timeline-card img { width: 96px; height: 96px; object-fit: contain; flex-shrink: 0; }
.timeline-card h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.timeline-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 560px) { .timeline-card { flex-direction: column; align-items: flex-start; } .timeline-card img { width: 72px; height: 72px; } }

.chronik { margin: 0; display: grid; gap: .25rem; }
.chronik > div { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.chronik dt { font-weight: 700; color: var(--brand-strong); }
.chronik dd { margin: 0; }
.chronik ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }

.steps--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
