/* VIDERA Portal – App-Gerätekarten */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/MartianMono-Variable.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  --bg: #f2f3f5;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eceef1;
  --rim: #e3e5e9;
  --rim-strong: #d0d4da;
  --ink: #0b0c0e;
  --ink-2: #474c55;
  --ink-3: #636973;
  --accent: #0f8f61;
  --accent-ink: #0b7550;
  --accent-tint: #e2f3eb;
  --accent-tint-2: #c9e9da;
  --ok: #17713a;
  --ok-tint: #e3f4e8;
  --eol: #8a4f00;
  --eol-tint: #fff1dc;
  --danger: #b42318;
  --danger-tint: #fdeceb;
  --btn: #0b0c0e;
  --btn-ink: #ffffff;
  --btn-hover: #2a2d33;
  --mark: #ffe58a;

  --shadow-1: 0 1px 2px rgba(15, 20, 30, .05), 0 1px 1px rgba(15, 20, 30, .03);
  --shadow-2: 0 1px 2px rgba(15, 20, 30, .05), 0 10px 28px -14px rgba(15, 20, 30, .18);
  --shadow-3: 0 2px 6px rgba(15, 20, 30, .06), 0 24px 60px -20px rgba(15, 20, 30, .28);

  --r-xl: 24px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: 20px;
  --maxw: 1160px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1210;
    --surface: #16191e;
    --surface-2: #1b1f25;
    --surface-3: #22272e;
    --rim: #282d35;
    --rim-strong: #353b45;
    --ink: #f1f3f6;
    --ink-2: #b9bfc9;
    --ink-3: #959ca8;
    --accent: #3fcf93;
    --accent-ink: #66dcaa;
    --accent-tint: #10291f;
    --accent-tint-2: #17392b;
    --ok: #5ed38a;
    --ok-tint: #133022;
    --eol: #f2b45a;
    --eol-tint: #35270f;
    --danger: #ff8a80;
    --danger-tint: #3a1715;
    --btn: #f1f3f6;
    --btn-ink: #0b0c0e;
    --btn-hover: #d9dde3;
    --mark: #5c4a0c;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .6);
    --shadow-3: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 60px -20px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1210;
  --surface: #16191e;
  --surface-2: #1b1f25;
  --surface-3: #22272e;
  --rim: #282d35;
  --rim-strong: #353b45;
  --ink: #f1f3f6;
  --ink-2: #b9bfc9;
  --ink-3: #959ca8;
  --accent: #3fcf93;
  --accent-ink: #66dcaa;
  --accent-tint: #10291f;
  --accent-tint-2: #17392b;
  --ok: #5ed38a;
  --ok-tint: #133022;
  --eol: #f2b45a;
  --eol-tint: #35270f;
  --danger: #ff8a80;
  --danger-tint: #3a1715;
  --btn: #f1f3f6;
  --btn-ink: #0b0c0e;
  --btn-hover: #d9dde3;
  --mark: #5c4a0c;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .6);
  --shadow-3: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 60px -20px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } html { overflow-y: visible; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
.hero h1, .page-head h1, .dev-head h1, .fw-version, .article h1, .admin-head h1 { font-stretch: 112%; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
code, kbd, .mono { font-family: var(--mono); font-stretch: 87.5%; font-size: .92em; }
::selection { background: var(--accent-tint-2); color: var(--ink); }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: var(--rim-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--rim-strong); border-radius: 10px; border: 3px solid var(--bg); }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }

.ic { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: 56px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--btn); color: var(--btn-ink); padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

.only-dark { display: none !important; }
html[data-theme="dark"] .only-dark { display: inline-flex !important; }
html[data-theme="dark"] .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .only-dark { display: inline-flex !important; }
  html:not([data-theme="light"]) .only-light { display: none !important; }
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--rim); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-word { font-weight: 700; letter-spacing: .22em; font-size: 17px; }
/* Original-Logo (assets/img/videra-logo.svg), Farbe über currentColor */
.brand-logo { display: block; height: 17px; width: auto; flex: none; }
.brand-sub { padding-left: 10px; border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 35%, transparent); line-height: 1.1; }
.footer-logo { height: 20px; color: var(--ink); }
.brand-sub { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a {
  color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
.mainnav a:hover { background: var(--surface-3); color: var(--ink); }
.mainnav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.topbar-tools { display: flex; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn > span { display: inline-flex; }

/* ---------- Buttons, Pills ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 550; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .15s var(--ease), box-shadow .15s, border-color .15s;
}
.btn:active { transform: scale(.98); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--rim-strong); }
.btn-ghost:hover { border-color: var(--ink-3); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 0 12px; }
.btn-quiet:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-danger { background: var(--danger-tint); color: var(--danger); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: 13px; font-weight: 550; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pill-ok { background: var(--ok-tint); color: var(--ok); }
.pill-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-eol { background: var(--eol-tint); color: var(--eol); }
.pill-none { background: var(--surface-3); color: var(--ink-3); }
.pill-accent { background: var(--accent-tint); color: var(--accent-ink); }

kbd {
  display: inline-flex; align-items: center; height: 24px; padding: 0 7px;
  border: 1px solid var(--rim-strong); border-bottom-width: 2px; border-radius: 7px;
  font-size: 12px; color: var(--ink-3); background: var(--surface);
}

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

.hero { padding-block: 72px 28px; }
.hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.4rem);
  letter-spacing: -0.04em; font-weight: 640; line-height: 1.02;
  max-width: 13ch;
}
.hero-lead { margin-top: 18px; color: var(--ink-2); font-size: 18px; max-width: 52ch; }

.search {
  position: relative; margin-top: 36px;
  display: flex; align-items: center; gap: 14px;
  height: 72px; padding: 0 14px 0 24px;
  background: var(--surface); border: 1px solid var(--rim);
  border-radius: var(--r-xl); box-shadow: var(--shadow-2);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint), var(--shadow-2); }
.search > .ic { width: 24px; height: 24px; color: var(--accent); }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  font-size: 22px; font-weight: 500; letter-spacing: -0.01em; caret-color: var(--accent);
}
.search input::placeholder { color: var(--ink-3); font-weight: 400; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { display: none; }
.search.has-value .search-clear { display: inline-grid; }
.search-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.search-hints button.linklike, .linklike {
  border: 0; background: none; padding: 0; color: var(--accent-ink); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em;
}
.linklike:hover { text-decoration-color: currentColor; }
.linklike .ic { width: 17px; height: 17px; }

.label-help {
  margin-top: 18px; display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: center;
  padding: 22px; background: var(--surface); border: 1px solid var(--rim); border-radius: var(--r-lg);
}
.label-help[hidden] { display: none; }
.label-help h2 { font-size: 18px; letter-spacing: -0.01em; }
.label-help ol { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); }
.label-help li + li { margin-top: 6px; }

/* Typenschild-Illustration (gezeichnet, keine Fotografie) */
.rating-label {
  border: 1.5px solid var(--ink); border-radius: 8px; padding: 12px 14px; background: var(--surface);
  font-family: var(--mono); font-stretch: 87.5%; font-size: 12px; color: var(--ink); line-height: 1.5;
}
.rating-label .rl-head { display: flex; justify-content: space-between; border-bottom: 1.5px solid var(--ink); padding-bottom: 6px; margin-bottom: 8px; font-family: var(--font); }
.rating-label .rl-head b { letter-spacing: .2em; }
.rating-label .rl-row { display: grid; grid-template-columns: 70px 1fr; gap: 8px; color: var(--ink-3); }
.rating-label .rl-row span:last-child { color: var(--ink); }
.rating-label .rl-model { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; background: var(--accent-tint); padding: 0 4px; }
.rating-label .rl-bars { margin-top: 8px; height: 22px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px); }

/* ---------- Ergebnisse ---------- */

.results { margin-top: 26px; min-height: 120px; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; color: var(--ink-3); font-size: 14px; }

.match {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start;
}
.match + .others { margin-top: 14px; }

.card {
  background: var(--surface); border: 1px solid var(--rim); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.card-pad { padding: 22px; }

.dev-hero { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.dev-hero-top { display: flex; gap: 16px; align-items: center; }
.tile {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: var(--accent-tint); color: var(--accent);
}
.tile .ic { width: 28px; height: 28px; stroke-width: 1.6; }
.tile-sm { width: 44px; height: 44px; border-radius: 13px; }
.tile-sm .ic { width: 22px; height: 22px; }
.dev-model { font-stretch: 112%; font-size: 26px; font-weight: 640; letter-spacing: -0.025em; line-height: 1.1; overflow-wrap: anywhere; }
.dev-model mark { background: var(--mark); color: inherit; border-radius: 4px; padding: 0 1px; }
.dev-sub { color: var(--ink-3); font-size: 15px; margin-top: 3px; }
.dev-fw {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--rim);
}
.dev-fw-info { display: flex; flex-direction: column; gap: 2px; }
.dev-fw-info .k { font-size: 13px; color: var(--ink-3); }
.dev-fw-info .v { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

.siblings { padding: 20px 22px; }
.siblings h3 { font-size: 14px; font-weight: 550; color: var(--ink-3); letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.siblings h3 .ic { width: 17px; height: 17px; }
.siblings ul { list-style: none; margin: 12px 0 0; padding: 0; }
.siblings li a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
  border-top: 1px solid var(--rim);
}
.siblings li:first-child a { border-top: 0; }
.siblings li a:hover { color: var(--accent-ink); }
.siblings li a .ic { width: 16px; height: 16px; color: var(--ink-3); }
.siblings .none { color: var(--ink-3); font-size: 15px; margin-top: 10px; }
.siblings .fits { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.siblings .fits strong { color: var(--ink); }

/* Gerätezeile */
.dlist { display: grid; gap: 8px; }
.dlist-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.dcard {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px;
  background: var(--surface); border: 1px solid var(--rim); border-radius: var(--r-md);
  color: var(--ink); text-decoration: none;
  transition: border-color .15s, transform .25s var(--ease), box-shadow .2s;
}
.dcard:hover { border-color: var(--rim-strong); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.dcard-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); flex: none; }
.dcard-icon .ic { width: 21px; height: 21px; }
.dcard.is-eol .dcard-icon { background: var(--surface-3); color: var(--ink-3); }
.dcard-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dcard-model { font-stretch: 108%; font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.dcard-model mark { background: var(--mark); color: inherit; border-radius: 3px; }
.dcard-meta { font-size: 13px; color: var(--ink-3); }
.dcard-status { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dcard-go { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s var(--ease); }
.dcard:hover .dcard-go { transform: translateX(2px); color: var(--ink); }

.enter { animation: rise .5s var(--ease) both; }
@keyframes rise { from { transform: translateY(8px) scale(.995); opacity: .4; } }

.empty-state {
  text-align: left; padding: 28px; background: var(--surface); border: 1px dashed var(--rim-strong);
  border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.empty-state[hidden] { display: none; }
.empty-state h1, .empty-state h2 { font-size: 22px; }
.empty-state p { color: var(--ink-2); max-width: 60ch; }

/* Kategorie-Schnellwahl */
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 8px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--rim);
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: 15px;
  transition: border-color .15s, box-shadow .2s, transform .2s var(--ease);
}
.cat-chip:hover { border-color: var(--rim-strong); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.cat-chip .ci { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.cat-chip .ci .ic { width: 19px; height: 19px; }
.cat-chip .n { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Abschnitte Startseite ---------- */

.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.03em; }
.sec-head p { color: var(--ink-3); margin-top: 6px; }

.fw-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.fw-item { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.fw-item-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.fw-item h3 { font-size: 16px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.fw-item .date { font-size: 13px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fw-item-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fw-item-meta .mono { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-item .devs { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-item .devs a {
  font-size: 13px; font-weight: 550; padding: 4px 10px; border-radius: 8px; text-decoration: none;
  background: var(--surface-3); color: var(--ink-2);
}
.fw-item .devs a:hover { background: var(--accent-tint); color: var(--accent-ink); }
.fw-item .more { font-size: 13px; color: var(--ink-3); align-self: center; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }

.qlist { list-style: none; margin: 0; padding: 0; }
.qlist li a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 0; border-top: 1px solid var(--rim); color: var(--ink); text-decoration: none; font-weight: 500;
}
.qlist li:first-child a { border-top: 0; }
.qlist li a:hover { color: var(--accent-ink); }
.qlist li a .ic { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.qlist .qcat { display: block; font-size: 13px; color: var(--ink-3); font-weight: 400; }

.how { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.how h2 { font-size: 22px; letter-spacing: -0.02em; }
.how p { color: var(--ink-2); }

ol.steps { list-style: none; counter-reset: s; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
ol.steps li::before {
  content: counter(s); width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums;
}
ol.steps strong { color: var(--ink); font-weight: 600; }

/* ---------- Geräteseite ---------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-3); padding-top: 28px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .ic { width: 14px; height: 14px; }

.dev-head { display: flex; gap: 20px; align-items: center; padding: 22px 0 28px; flex-wrap: wrap; }
.dev-head .tile { width: 72px; height: 72px; border-radius: 20px; }
.dev-head .tile .ic { width: 36px; height: 36px; }
.dev-head h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); letter-spacing: -0.04em; overflow-wrap: anywhere; }
.dev-head .dev-sub { font-size: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

.dev-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 72px; }
.stack { display: grid; gap: 14px; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--eol-tint); color: var(--eol); font-size: 15px;
}
.notice .ic { margin-top: 2px; }
.notice p { color: inherit; }
.notice-info { background: var(--accent-tint); color: var(--accent-ink); }

.fw-current { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.fw-current-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fw-version { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fw-full { font-family: var(--mono); font-stretch: 87.5%; font-size: 13px; color: var(--ink-3); margin-top: 8px; overflow-wrap: anywhere; }
.fw-meta { display: flex; gap: 8px; flex-wrap: wrap; }

.files { display: grid; border-top: 1px solid var(--rim); }
.file {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--rim);
}
.file-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.file:first-child .file-icon { background: var(--accent-tint); color: var(--accent); }
.file-head { display: flex; flex-direction: column; min-width: 0; }
.file-title { font-weight: 600; font-size: 16px; }
.file-size { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.file-name { grid-column: 2 / -1; font-family: var(--mono); font-stretch: 87.5%; font-size: 12px; color: var(--ink-3); line-height: 1.5; overflow-wrap: anywhere; }

.notes { color: var(--ink-2); font-size: 15px; padding-top: 18px; border-top: 1px solid var(--rim); }
.notes h3 { font-size: 15px; margin-bottom: 6px; color: var(--ink); }

details.older { border-top: 1px solid var(--rim); }
details.older > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; font-weight: 550; color: var(--ink-2);
}
details.older > summary::-webkit-details-marker { display: none; }
details.older > summary .ic { transition: transform .25s var(--ease); }
details.older[open] > summary .ic { transform: rotate(180deg); }
.older-list { padding: 0 24px 18px; display: grid; gap: 4px; }
.older-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rim); font-size: 14px; }
.older-row .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.older-row .n { font-family: var(--mono); font-stretch: 87.5%; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }

.panel-title { font-size: 17px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.panel-title .ic { color: var(--ink-3); }

.doclist { list-style: none; margin: 12px 0 0; padding: 0; }
.doclist li a, .doclist li > div {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 11px 0; border-top: 1px solid var(--rim); color: var(--ink); text-decoration: none; font-size: 15px;
}
.doclist li:first-child a { border-top: 0; }
.doclist li a:hover .t { color: var(--accent-ink); }
.doclist .ic { width: 19px; height: 19px; color: var(--ink-3); }
.doclist .s { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- Kategorie / Übersicht ---------- */

.page-head { padding-block: 56px 26px; }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); letter-spacing: -0.04em; }
.page-head p { color: var(--ink-2); font-size: 18px; margin-top: 12px; max-width: 60ch; }

.filterbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.field {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--rim); border-radius: 14px; flex: 1; min-width: 240px;
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.field .ic { color: var(--ink-3); }
.field input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; height: 100%; font-size: 16px; }
.seg { display: inline-flex; padding: 4px; background: var(--surface-3); border-radius: 12px; gap: 2px; }
.seg button, .seg a {
  border: 0; background: transparent; padding: 0 14px; height: 38px; border-radius: 9px; font-size: 14px; font-weight: 550;
  color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.cat-block { margin-bottom: 44px; }
.cat-block-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cat-block-head h2 { font-size: 24px; letter-spacing: -0.025em; }
.cat-block-head .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cat-block-head .btn { margin-left: auto; }

.cat-block.is-collapsed .rows > [data-key]:nth-child(n+9) { display: none; }
.cat-block .show-all { margin-top: 10px; }
.cat-block:not(.is-collapsed) .show-all { display: none; }

.group-label { font-size: 14px; color: var(--ink-3); font-weight: 550; margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--rim); }

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

.faq-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 72px; }
.faq-nav { position: sticky; top: 92px; display: grid; gap: 2px; }
.faq-nav a {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px;
}
.faq-nav a:hover { background: var(--surface-3); color: var(--ink); }
.faq-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.faq-nav .n { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.faq-list { display: grid; gap: 10px; }
.faq-item { display: block; padding: 20px 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .2s, transform .25s var(--ease); }
.faq-item:hover { border-color: var(--rim-strong); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.faq-item h2 { font-size: 18px; letter-spacing: -0.015em; }
.faq-item p { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.faq-item .meta { display: flex; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }

.article { padding: 32px; }
.article h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); letter-spacing: -0.035em; }
.article .meta { color: var(--ink-3); font-size: 14px; margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.prose { margin-top: 24px; font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h3 { color: var(--ink); font-size: 20px; margin-top: 1.6em; }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose code { background: var(--surface-3); padding: .1em .4em; border-radius: 6px; font-size: .88em; color: var(--ink); }
.prose ol.steps li::before { margin-top: 1px; }
.prose figure { margin: 1.6em 0; }
.prose figure a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--rim); background: var(--surface-2); }
.prose figure img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-3); }

/* ---------- Tools ---------- */

.tools-empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding-bottom: 72px; }

/* ---------- Command-Palette ---------- */

.cmdk { position: fixed; inset: 0; z-index: 80; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.cmdk[hidden] { display: none; }
.cmdk-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 55%, rgba(5, 8, 12, .45)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s var(--ease); }
.cmdk-panel {
  position: relative; width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--rim); border-radius: var(--r-xl); box-shadow: var(--shadow-3);
  overflow: hidden; animation: pop .35s var(--ease);
}
.cmdk-field { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 64px; border-bottom: 1px solid var(--rim); }
.cmdk-field .ic { color: var(--accent); width: 22px; height: 22px; }
.cmdk-field input { flex: 1; border: 0; outline: none; background: transparent; font-size: 19px; font-weight: 500; min-width: 0; }
.cmdk-results { overflow-y: auto; padding: 8px; }
.cmdk-results .row { padding: 12px 12px; border-radius: 12px; }
.cmdk-results .row[aria-selected="true"] { background: var(--surface-3); }
.cmdk-results .hint { padding: 18px 14px; color: var(--ink-3); font-size: 15px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

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

.footer { margin-top: 40px; border-top: 1px solid var(--rim); background: var(--surface); }
.footer-in { display: flex; justify-content: space-between; gap: 40px; padding-top: 44px; padding-bottom: 32px; flex-wrap: wrap; }
.footer-brand p { color: var(--ink-3); margin-top: 8px; font-size: 15px; max-width: 32ch; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h2 { font-size: 13px; color: var(--ink-3); font-weight: 550; letter-spacing: 0; margin-bottom: 10px; }
.footer-cols a { display: block; color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 3px 0; }
.footer-cols a:hover { color: var(--ink); }
.footer-base { padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--rim); font-size: 13px; color: var(--ink-3); }


/* =========================================================
   Vereinfachte Oberfläche: eine Suche, eine Antwort, Textzeilen
   ========================================================= */

.home-main { display: flex; flex-direction: column; min-height: calc(100vh - 68px - 220px); }
.finder { width: 100%; max-width: 760px; margin: 0 auto; padding-block: 12vh 40px; }
.finder h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); font-stretch: 112%; letter-spacing: -0.04em; line-height: 1.02; }
.finder-lead { margin-top: 12px; font-size: 19px; color: var(--ink-2); }
.finder .search { margin-top: 30px; }
.finder-hints { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 14px; font-size: 15px; }
.recent { color: var(--ink-3); }
.recent a { font-weight: 600; }

/* Vorschlagsliste unter dem Suchfeld */
.suggest {
  position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); z-index: 30;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--rim); border-radius: 18px; box-shadow: var(--shadow-3);
  max-height: min(60vh, 460px); overflow-y: auto;
}
.suggest[hidden] { display: none; }
.suggest li a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center;
  padding: 11px 14px; border-radius: 12px; color: var(--ink); text-decoration: none;
}
.suggest li a[aria-selected="true"], .suggest li a:hover { background: var(--surface-3); }
.suggest .s-model { font-weight: 600; font-stretch: 108%; font-size: 17px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.suggest .s-model mark { background: var(--mark); color: inherit; border-radius: 3px; }
.suggest .s-meta { grid-column: 1; font-size: 13px; color: var(--ink-3); }
.suggest .s-ver { grid-row: 1 / span 2; grid-column: 2; font-size: 14px; color: var(--ok); font-weight: 550; white-space: nowrap; }
.suggest .s-ver.none { color: var(--ink-3); font-weight: 400; }
.suggest .s-empty { padding: 14px; color: var(--ink-2); font-size: 15px; }
.suggest .s-more { padding: 8px 14px 6px; font-size: 13px; color: var(--ink-3); }

.plain-results { margin-top: 28px; }
.nores { color: var(--ink-2); }
.nores strong { color: var(--ink); }

.quiet-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding-block: 24px 8px; margin-top: auto; }
.quiet-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.quiet-links a:hover { color: var(--ink); text-decoration: underline; }

/* Textzeilen statt Karten */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rim); }
.rows > li, .rows > .rowwrap { border-bottom: 1px solid var(--rim); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 14px; align-items: center;
  padding: 14px 4px; color: var(--ink); text-decoration: none; transition: background .15s;
}
.row:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.row:hover .row-model, .row:hover .row-main { color: var(--accent-ink); }
.row-main { min-width: 0; overflow-wrap: anywhere; }
.row-model { font-weight: 600; font-stretch: 106%; letter-spacing: -0.01em; }
.row-model mark { background: var(--mark); color: inherit; border-radius: 3px; }
.row-main .muted { font-size: 14px; }
.row-side { font-size: 14px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-ic { width: 18px; height: 18px; color: var(--ink-3); }
.row.is-eol .row-model { color: var(--ink-2); }
.cat-block-head .tile { display: none; }

/* Geräteseite */
.device { max-width: 820px; padding-bottom: 72px; }
.device-head { padding-block: 18px 6px; }
.device-head h1 { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.3rem); font-stretch: 112%; letter-spacing: -0.035em; overflow-wrap: break-word; }
.device-head .muted { margin-top: 6px; font-size: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.answer {
  margin-top: 28px; padding: 30px; border-radius: var(--r-xl);
  background: var(--surface); box-shadow: var(--shadow-2);
}
.answer h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); letter-spacing: -0.03em; }
.answer h2 .ver { font-stretch: 112%; }
.answer > .muted { margin-top: 4px; }
.btn-xl { height: 60px; padding: 0 26px; font-size: 18px; border-radius: 16px; margin-top: 22px; }
.btn-xl .ic { width: 22px; height: 22px; }
.btn-meta { font-weight: 400; opacity: .7; margin-left: 4px; font-size: 15px; }
.alt-file { margin-top: 12px; font-size: 15px; color: var(--ink-2); }

.check { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rim); }
.check label { font-weight: 600; font-size: 16px; display: block; }
.check-row { margin-top: 10px; }
.check input {
  width: min(240px, 100%); height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--rim-strong); background: var(--surface); font-size: 17px; font-variant-numeric: tabular-nums; outline: none;
}
.check input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.check-out { margin-top: 10px; font-size: 15px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.check-out .ic { width: 19px; height: 19px; }
.check-out.is-ok { color: var(--ok); font-weight: 550; }
.check-out.is-update { color: var(--eol); font-weight: 550; }

.howto { margin-top: 44px; }
.howto h2, .more h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 14px; }
.howto .muted { margin-top: 14px; }
.more { margin-top: 44px; }
.more h3 { margin-top: 36px; }
.more h3:first-of-type { margin-top: 0; }
.more details.older { margin-top: 36px; border-top: 0; }
.more details.older > summary { padding: 0 0 14px; font-size: 17px; color: var(--ink); }
.siblings-line { margin-top: 32px; color: var(--ink-3); font-size: 15px; }
.siblings-line a { color: var(--ink-2); font-weight: 550; }

@media (max-width: 640px) {
  .finder { padding-block: 6vh 28px; }
  .answer { padding: 22px 18px; margin-inline: -4px; }
  .btn-xl { width: 100%; }
  .row { grid-template-columns: minmax(0, 1fr) 18px; gap: 2px 14px; }
  .row-side { grid-column: 1; grid-row: 2; font-size: 13px; }
  .row-ic { grid-row: 1 / span 2; grid-column: 2; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .match, .split, .dev-grid, .tools-empty { grid-template-columns: minmax(0, 1fr); }
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .faq-nav a { white-space: nowrap; background: var(--surface); border: 1px solid var(--rim); gap: 8px; }
  .label-help { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .topbar-in { gap: 10px; height: 60px; }
  .mainnav a { padding: 8px 10px; font-size: 14px; }
  .brand-sub { display: none; }
  .topbar-tools [data-search-open] { display: none; }
  .hero { padding-block: 40px 18px; }
  .hero-lead { font-size: 16px; }
  .search { height: 62px; padding: 0 8px 0 16px; margin-top: 26px; border-radius: 20px; }
  .search input { font-size: 18px; }
  .search kbd, .hide-sm { display: none; }
  .section { padding-block: 40px; }
  .fw-feed { grid-template-columns: minmax(0, 1fr); }
  .dev-hero, .fw-current, .card-pad, .how, .article { padding: 18px; }
  .dev-fw .btn { width: 100%; }
  .file { grid-template-columns: auto minmax(0, 1fr); }
  .file .btn { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; }
  .file-name { grid-column: 1 / -1; }
  .older-row { grid-template-columns: minmax(0, 1fr) auto; }
  .older-row .n { grid-column: 1 / -1; grid-row: 2; }
  .dlist-2 { grid-template-columns: minmax(0, 1fr); }
  .cat-chip { flex: 1 1 calc(50% - 8px); }
  .footer-cols { gap: 32px; }
  .cmdk { padding-top: 10px; }
}

@media (max-width: 380px) {
  .mainnav a:nth-child(3) { display: none; }
}

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

/* FAQ als ruhige Liste */
.faq-list { gap: 0; border-top: 1px solid var(--rim); }
.faq-item, .faq-item.card { background: none; border: 0; border-bottom: 1px solid var(--rim); border-radius: 0; box-shadow: none; padding: 18px 4px; }
.faq-item:hover { transform: none; box-shadow: none; }
.faq-item:hover h2 { color: var(--accent-ink); }

.article-plain { padding-top: 0; }
.article-plain .greenband { margin-bottom: 8px; }
.article-plain h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); font-stretch: 112%; letter-spacing: -0.035em; }
.article-plain .more { margin-top: 40px; }

/* =========================================================
   Startbühne: dunkel, 3D-Kamera, Suche
   ========================================================= */
body.home .topbar, body.dark-top .topbar { background: #07120e; border-bottom-color: transparent; }
body.home .topbar .brand, body.home .topbar .brand-word, body.dark-top .topbar .brand, body.dark-top .topbar .brand-word { color: #f2f7f4; }
body.home .topbar .brand-sub, body.dark-top .topbar .brand-sub { color: #86a396; }
body.home .mainnav a, body.home .icon-btn, body.dark-top .mainnav a, body.dark-top .icon-btn { color: #b5cbbf; }
body.home .mainnav a:hover, body.home .icon-btn:hover, body.dark-top .mainnav a:hover, body.dark-top .icon-btn:hover { background: rgba(255, 255, 255, .07); color: #fff; }

/* Studio: dunkelgrüner Hintergrund, weiches Deckenlicht über der Kamera, Filmkorn, Vignette */
.stage {
  position: relative; z-index: 5; color: #f2f7f4; overflow-x: clip; overflow-y: visible;
  background:
    radial-gradient(34% 52% at 70% 38%, rgba(64, 150, 108, .20), transparent 70%),
    radial-gradient(60% 70% at 70% 0%, rgba(30, 110, 76, .22), transparent 72%),
    radial-gradient(80% 60% at 20% 100%, rgba(4, 12, 9, .55), transparent 70%),
    linear-gradient(180deg, #07120e 0%, #0a1c15 46%, #081510 78%, #050d0a 100%);
}
.stage::before {
  /* Lichtkegel von der Decke */
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  left: 70%; top: 0; width: 760px; height: 100%; transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%, transparent 155deg, rgba(170, 245, 205, .07) 172deg, rgba(170, 245, 205, .11) 180deg, rgba(170, 245, 205, .07) 188deg, transparent 205deg);
  filter: blur(18px);
}
.stage::after {
  /* Filmkorn + Vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .45) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stage .ceiling-line {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(190, 240, 214, .22) 55%, rgba(190, 240, 214, .32) 74%, rgba(190, 240, 214, .22) 90%, transparent);
}
.stage-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: min(78vh, 720px); padding-block: 40px 64px; }
.stage-copy h1 { font-size: clamp(2.4rem, 1.2rem + 4vw, 4.6rem); font-stretch: 112%; letter-spacing: -0.045em; line-height: 0.98; color: #fff; max-width: 12ch; }
.stage .finder-lead { color: #a9c2b6; font-size: 19px; margin-top: 18px; max-width: 44ch; }
.stage .search { margin-top: 34px; background: #fff; border-color: transparent; box-shadow: 0 20px 60px -24px rgba(63, 207, 147, .45), 0 2px 8px rgba(0, 0, 0, .45); }
.stage .search:focus-within { border-color: #3fcf93; box-shadow: 0 0 0 4px rgba(63, 207, 147, .32), 0 20px 60px -24px rgba(63, 207, 147, .6); }
.stage .search input { color: #0b0c0e; }
.stage .search input::placeholder { color: #737a86; }
.stage .search .icon-btn { color: #4b5059; }
.stage .finder-hints { color: #86a396; }
.stage .linklike { color: #7fe3b5; }
.stage .recent a { color: #fff; }
.stage .suggest { --surface: #ffffff; --surface-3: #eceef1; --ink: #0b0c0e; --ink-3: #636973; --ok: #0b7550; --mark: #ffe58a; --rim: #e3e5e9; color-scheme: light; }

.stage-cam { position: relative; align-self: stretch; margin-top: -40px; min-height: 520px; }
.stage-cam canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s var(--ease); }
.stage.is-ready .stage-cam canvas { opacity: 1; }
.stage.no-3d .stage-cam { display: none; }
.stage.no-3d .stage-in { grid-template-columns: minmax(0, 1fr); }

.home-below { position: relative; z-index: 1; padding-block: 36px 24px; }
.home-below .label-help { margin-top: 0; margin-bottom: 28px; }

.promise { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.promise li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; align-items: baseline; }
.promise .n { grid-row: span 2; font-size: 44px; font-weight: 700; font-stretch: 112%; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.promise strong { font-size: 18px; letter-spacing: -0.01em; }
.promise li > span:last-child { color: var(--ink-3); font-size: 15px; }
.home-below .quiet-links { margin-top: 48px; border-top: 1px solid var(--rim); padding-top: 22px; justify-content: flex-start; }

@media (max-width: 900px) {
  .stage-in { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 8px 44px; gap: 0; }
  .stage-cam { order: -1; height: 236px; min-height: 0; margin: -8px -16px 4px; align-self: auto; }
  .stage::before { left: 50%; }
  .stage { background: radial-gradient(60% 30% at 50% 14%, rgba(150, 235, 190, .16), transparent 72%), radial-gradient(90% 40% at 50% 0%, rgba(46, 160, 110, .22), transparent 70%), linear-gradient(180deg, #07120e 0%, #0a1d16 55%, #06100c 100%); }
  .stage-copy h1 { font-size: clamp(2.2rem, 1.2rem + 5vw, 3.2rem); }
  .stage .finder-lead { font-size: 17px; }
  .promise { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* =========================================================
   Grünes Kopfband auf Unterseiten (setzt die Startbühne fort)
   ========================================================= */
body.dark-top .mainnav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; }
.greenband {
  position: relative; color: #f2f7f4;
  /* Hintergrund über die ganze Fensterbreite, obwohl der Kopf in .wrap liegt */
  border-image: linear-gradient(180deg, #07120e 0%, #0b1f17 70%, #0c2219 100%) fill 0 // 0 100vw;
  padding-block: 28px 44px;
}
.greenband::after {
  content: ""; position: absolute; inset: 0 -100vw; pointer-events: none;
  background:
    radial-gradient(40% 120% at 78% 0%, rgba(150, 235, 190, .14), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.greenband > * { position: relative; z-index: 1; }
.greenband h1 { color: #fff; }
.greenband p, .greenband .muted { color: #a9c2b6; }
.greenband .crumbs { padding-top: 0; color: #86a396; }
.greenband .crumbs a { color: #a9c2b6; }
.greenband .crumbs a:hover { color: #fff; }
.page-head.greenband { padding-block: 44px 40px; margin-bottom: 26px; }

/* Geräteseite: weiße Antwort-Karte ragt ins Band */
.device-head.greenband { padding-block: 24px 120px; }
.device-head.greenband h1 { margin-top: 14px; }
.device-head.greenband + .answer { margin-top: -92px; position: relative; z-index: 2; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45), var(--shadow-2); }
.device-head.has-cam { padding-right: 300px; }
.band-cam { position: absolute; right: -40px; top: 0; width: 340px; height: calc(100% + 10px); z-index: 1; }
.band-cam canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s var(--ease); }
.device-head.is-ready .band-cam canvas { opacity: 1; }
.device-head.no-3d .band-cam { display: none; }
.device-head.no-3d.has-cam { padding-right: 0; }

@media (max-width: 760px) {
  .device-head.has-cam { padding-right: 0; }
  .device-head.has-cam .crumbs { margin-bottom: 196px; }
  .band-cam { right: 50%; transform: translateX(50%); top: 44px; width: 260px; height: 190px; }
}

/* =========================================================
   Videoanalyse-Overlay (src/tracker.js): dünne Linien, Eckklammern, kleine Labels
   ========================================================= */
[data-hero3d-wrap] { --det-rgb: 255, 82, 82; --det-a: 0; }
.cv-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; --det: 255, 82, 82; }
.cv-layer > * { position: absolute; left: 0; top: 0; will-change: transform, opacity; }

/* Erfassungszone: Ellipse vor der Kamera, nur während Aktivität/Scan sichtbar */
.cv-zone {
  width: 2px; height: 2px; border-radius: 50%; opacity: 0;
  border: .5px solid rgba(190, 240, 214, .55);
  background: radial-gradient(closest-side, rgba(190, 240, 214, .05), transparent);
  overflow: hidden;
}
.cv-sweep {
  position: absolute; left: -10%; top: 0; width: 120%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190, 240, 214, .9), transparent);
  opacity: 0;
}
.cv-layer.is-sweep .cv-sweep { animation: cv-sweep 2.4s cubic-bezier(.45, 0, .55, 1) 1; }
@keyframes cv-sweep { 0% { top: 0; opacity: 0; } 12% { opacity: .8; } 88% { opacity: .8; } 100% { top: 100%; opacity: 0; } }

.cv-scan {
  display: flex; align-items: center; gap: 6px; opacity: 0; transition: opacity .6s var(--ease);
  font-family: var(--mono); font-stretch: 87.5%; font-size: 10px; letter-spacing: .14em; color: rgba(190, 240, 214, .75);
}
.cv-dot { width: 5px; height: 5px; border-radius: 50%; background: #6ff0aa; animation: cv-blink 1.4s ease-in-out infinite; }
@keyframes cv-blink { 50% { opacity: .25; } }

/* Box: vier Eckklammern, Label oben, ID/Status unten */
.cv-box { opacity: 0; }
.cv-c {
  position: absolute; left: 0; top: 0; width: 15px; height: 15px; transform-origin: 0 0;
  border-left: 1.5px solid rgb(var(--det)); border-top: 1.5px solid rgb(var(--det));
  filter: drop-shadow(0 0 3px rgba(var(--det), .45));
}
.cv-tag, .cv-meta, .cv-bar { position: absolute; left: 0; top: 0; white-space: nowrap; }
.cv-tag {
  display: inline-flex; gap: 6px; align-items: center; padding: 2px 6px 2px 5px; border-radius: 2px;
  font-family: var(--mono); font-stretch: 87.5%; font-size: 10.5px; letter-spacing: .08em;
  color: #06110c; background: rgb(var(--det));
}
.cv-tag b { font-weight: 600; }
.cv-conf { font-variant-numeric: tabular-nums; min-width: 3ch; }
.cv-meta {
  display: inline-flex; gap: 8px; font-family: var(--mono); font-stretch: 87.5%; font-size: 9.5px;
  letter-spacing: .12em; color: rgba(var(--det), .9);
}
.cv-bar span { display: block; width: 100%; height: 1.5px; transform-origin: 0 50%; background: rgba(var(--det), .9); }
.cv-bar { transition: opacity .3s var(--ease); }
.cv-box[data-state="acquiring"] .cv-c { border-color: rgba(var(--det), .6); filter: none; }
.cv-box[data-state="acquiring"] .cv-tag { background: transparent; color: rgba(var(--det), .9); box-shadow: inset 0 0 0 .5px rgba(var(--det), .7); }
.cv-box[data-state="lost"] .cv-tag { background: transparent; color: rgba(var(--det), .8); box-shadow: inset 0 0 0 .5px rgba(var(--det), .5); }

/* dezentes Raumlicht: rot bei Erkennung, grün nach Verifizierung */
.stage::after, .device-head.greenband::after { transition: none; }
.stage .cv-glow, .device-head .cv-glow { display: none; }
.stage-cam::before, .band-cam::before {
  content: ""; position: absolute; inset: -10% -20%; pointer-events: none; z-index: 0;
  background: radial-gradient(40% 45% at 50% 42%, rgba(var(--det-rgb), var(--det-a)), transparent 72%);
}
.stage-cam canvas { z-index: 1; }
.band-cam canvas { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .cv-layer { display: none; }
}

/* Active Deterrence: Label rot/blau gestreift statt grün */
.cv-box.is-deter .cv-meta { color: #ff6b74; }
.stage-cam::before, .band-cam::before { transition: background .12s linear; }

/* =========================================================
   Premium-Komposition: Kamera physisch im Raum
   ========================================================= */
.scene-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scene-fx > span { position: absolute; left: 0; top: 0; will-change: transform; border-radius: 50%; }
/* zurückhaltendes Leuchten hinter Kamera/Objektiv (gleiches Grün) */
.fx-glow {
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  background: radial-gradient(closest-side, rgba(120, 214, 168, .16), rgba(60, 150, 108, .08) 45%, transparent 75%);
}
/* weicher Schatten der Kamera an der Wand, leicht versetzt nach unten/rechts */
.fx-shadow {
  width: 300px; height: 120px; margin: -60px 0 0 -150px;
  background: radial-gradient(closest-side, rgba(0, 6, 4, .55), rgba(0, 6, 4, .22) 55%, transparent 80%);
  filter: blur(14px);
}
/* Kontaktschatten an der Decke rund um die Montage */
.fx-mount {
  width: 420px; height: 40px; margin: -14px 0 0 -210px;
  background: radial-gradient(closest-side, rgba(0, 5, 3, .5), transparent 80%);
  filter: blur(6px);
}
/* feine Lichtatmosphäre direkt am Objektiv */
.fx-lens {
  width: 160px; height: 160px; margin: -80px 0 0 -80px;
  background: radial-gradient(closest-side, rgba(200, 240, 220, .10), transparent 70%);
  mix-blend-mode: screen;
}
.stage-cam canvas, .band-cam canvas { z-index: 1; }

/* Erkennung: kleiner, schärfer, Label an der Ecke */
.cv-tag {
  height: 16px; padding: 0 6px; gap: 0; border-radius: 2px 2px 2px 0;
  font-size: 10px; letter-spacing: .06em; line-height: 16px;
}
.cv-conf { margin-left: 5px; }
.cv-sep { margin: 0 5px; opacity: .55; }
.cv-id { font-weight: 500; }
.cv-c { width: 13px; height: 13px; border-width: 1.25px 0 0 1.25px; border-left-width: 1.25px; filter: drop-shadow(0 0 2px rgba(var(--det), .35)); }
.cv-meta { font-size: 9px; letter-spacing: .16em; color: rgba(var(--det), .8); }
.cv-figure {
  position: absolute; left: 0; top: 0; width: 100px; height: 140px; max-width: none; transform-origin: 0 0;
  fill: rgba(var(--det), .07); stroke: rgba(var(--det), .42); stroke-width: .8px; vector-effect: non-scaling-stroke;
}
.cv-tether {
  position: absolute; left: 0; top: 0; height: 1px; transform-origin: 0 50%; opacity: 0;
  background: repeating-linear-gradient(90deg, rgba(var(--det), .7) 0 3px, transparent 3px 7px);
}
.cv-zone { border-color: rgba(190, 240, 214, .32); }

@media (max-width: 900px) {
  .fx-glow { width: 340px; height: 340px; margin: -170px 0 0 -170px; }
  .fx-shadow { width: 200px; height: 80px; margin: -40px 0 0 -100px; }
  .fx-mount { width: 260px; }
}

/* =========================================================
   Tools: Liste und Speicherrechner
   ========================================================= */
.tool-rows .row { padding-block: 20px; }
.tool-text { display: block; margin-top: 4px; color: var(--ink-3); font-size: 15px; max-width: 60ch; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-bottom: 80px; }
.calc h2 { font-size: 20px; letter-spacing: -0.02em; }
.calc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.calc-section { margin-top: 40px; }
.calc-section h2 { margin-bottom: 14px; }
.groups { border-top: 1px solid var(--rim); }
.group { border: 0; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--rim); display: grid; gap: 12px; }
.group-top { display: grid; grid-template-columns: 90px repeat(3, minmax(0, 1fr)) 40px; gap: 12px; align-items: end; }
.group-bottom { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.group-bottom .group-out { grid-column: 1 / -1; padding-bottom: 0; }
.group [data-est].is-off { opacity: .45; }
.group-del { align-self: end; color: var(--ink-3); }
.group-del:hover { color: var(--danger); }
.groups .group:only-child .group-del { visibility: hidden; }
.group-out { font-size: 13px; color: var(--ink-3); padding-bottom: 11px; font-variant-numeric: tabular-nums; }

.cf { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cf > span { font-size: 13px; font-weight: 550; color: var(--ink-2); }
.cf select, .cf input, .cf-unit {
  width: 100%; height: 44px; border: 1px solid var(--rim-strong); border-radius: 11px; background: var(--surface);
  padding: 0 12px; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0;
}
.cf select:focus, .cf input:focus, .cf-unit:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.cf-unit { display: flex; align-items: center; gap: 8px; }
.cf-unit input { border: 0; height: 100%; padding: 0; box-shadow: none !important; font-variant-numeric: tabular-nums; }
.cf-unit em { font-style: normal; color: var(--ink-3); font-size: 14px; }
.cf-count input { font-variant-numeric: tabular-nums; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.calc-more { margin-top: 36px; border-top: 1px solid var(--rim); padding-top: 14px; }
.calc-more summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; font-weight: 550; color: var(--ink-2); }
.calc-more summary::-webkit-details-marker { display: none; }
.calc-more[open] summary .ic { transform: rotate(180deg); }

.calc-side { position: sticky; top: 92px; }
.calc-result { margin-top: 0; padding: 26px; }
.cr-k { font-size: 13px; font-weight: 550; color: var(--ink-3); }
.cr-big { font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 650; font-stretch: 112%; letter-spacing: -0.04em; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; }
.cr-big small { font-size: .45em; font-weight: 550; letter-spacing: 0; color: var(--ink-3); }
.cr-sub { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.cr-rec { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rim); }
.cr-rec-main { font-size: 26px; font-weight: 650; font-stretch: 108%; letter-spacing: -0.03em; margin-top: 2px; color: var(--accent-ink); }
.cr-rec.is-short .cr-rec-main, .cr-rec.is-short .cr-sub { color: var(--eol); }
.cr-list { margin: 18px 0 0; padding: 0; border-top: 1px solid var(--rim); }
.cr-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rim); font-size: 14px; }
.cr-list dt { color: var(--ink-3); }
.cr-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.cr-hint { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.cr-hint:empty { display: none; }
.cr-actions { display: flex; gap: 8px; align-items: center; margin-top: 18px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .group-top { grid-template-columns: 76px minmax(0, 1fr) 40px; }
  .group-top .cf:nth-child(3), .group-top .cf:nth-child(4) { grid-column: span 1; }
  .group-top { grid-template-areas: none; }
  .group-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-del { position: absolute; right: 0; top: 6px; }
  .group { position: relative; padding-top: 44px; }
  .group-bottom { grid-template-columns: minmax(0, 1fr); }
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-result { padding: 20px 18px; }
}

@media print {
  .topbar, .footer, .greenband, .calc-more, .cr-actions, [data-add-group], .group-del, .cmdk { display: none !important; }
  body { background: #fff; }
  .calc { grid-template-columns: 1fr; }
  .calc-side { position: static; }
}

/* =========================================================
   Gerätefinder
   ========================================================= */
.dfinder { padding-bottom: 72px; }
.finder-top { display: flex; gap: 10px; align-items: center; }
.finder-top .field { flex: 1; height: 52px; }
.finder-top .field input { font-size: 17px; }
.finder-sw { height: 52px; }
.finder-tabs {
  display: flex; gap: 4px; margin-top: 18px; padding: 4px; background: var(--surface-3); border-radius: 14px;
  overflow-x: auto; scrollbar-width: none;
}
.finder-tabs::-webkit-scrollbar { display: none; }
.finder-tabs button {
  flex: 1 0 auto; border: 0; background: transparent; height: 42px; padding: 0 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 550; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s;
}
.finder-tabs button:hover { color: var(--ink); }
.finder-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.finder-tabs .n { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 4px; }
.finder-sub { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.chips button {
  height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--rim-strong); background: var(--surface);
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); transition: border-color .15s, background .15s, color .15s;
}
.chips button:hover { border-color: var(--ink-3); color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chips button[aria-pressed="true"] .n { color: inherit; opacity: .7; }
.chips .n { color: var(--ink-3); font-weight: 500; margin-left: 3px; font-variant-numeric: tabular-nums; }
.finder-opts { display: flex; gap: 14px; align-items: center; flex: none; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 36px; height: 22px; border-radius: 999px; background: var(--rim-strong); position: relative; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked + .switch-ui { background: var(--accent); }
.switch input:checked + .switch-ui::after { transform: translateX(14px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.sortsel select { height: 36px; border: 1px solid var(--rim-strong); border-radius: 10px; background: var(--surface); padding: 0 10px; font-size: 14px; }
.finder-count { margin: 18px 0 8px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.finder-list .fgroup {
  display: flex; gap: 8px; align-items: baseline; padding: 22px 4px 8px; border-bottom: 1px solid var(--rim);
  font-size: 13px; font-weight: 650; letter-spacing: .06em; color: var(--ink);
}
.finder-list .fgroup .n { color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.finder-list > .fgroup:first-child { padding-top: 6px; }
.finder-list .row-main { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; }
.fr-meta { flex-basis: 100%; font-size: 13px; color: var(--ink-3); }
.finder-list .row-side { display: inline-flex; align-items: center; gap: 10px; }
.fr-ver { font-weight: 600; color: var(--ink-2); }
.fr-date { color: var(--ink-3); min-width: 80px; text-align: right; }
.finder-list .frow[hidden] { display: none; }
.finder-list mark { background: var(--mark); color: inherit; border-radius: 3px; }

@media (max-width: 640px) {
  .finder-sw { padding: 0 14px; }
  .finder-sw span { display: none; }
  .finder-opts { width: 100%; justify-content: space-between; }
  .finder-list .row-side { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .fr-date { min-width: 0; text-align: left; }
}

/* Tools-Seite: Hauptwerkzeug mit Schnellrechnung */
.tool-feature {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  margin-top: -10px; padding: 40px; border-radius: var(--r-xl); color: #f2f7f4; overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(64, 150, 108, .22), transparent 70%),
    linear-gradient(160deg, #0b1f17 0%, #081510 60%, #050d0a 100%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.tool-feature::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.tool-feature > * { position: relative; z-index: 1; }
.tf-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(111, 240, 170, .12); color: #7fe3b5; }
.tf-icon .ic { width: 26px; height: 26px; }
.tf-copy h2 { margin-top: 18px; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); font-stretch: 112%; letter-spacing: -0.035em; color: #fff; }
.tf-copy > p { margin-top: 12px; color: #a9c2b6; font-size: 17px; max-width: 46ch; }
.tf-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.tf-points li { display: flex; gap: 10px; align-items: center; color: #d4e4dc; font-size: 15px; }
.tf-points .ic { width: 18px; height: 18px; color: #7fe3b5; flex: none; }
.tf-cta { margin-top: 26px; background: #fff; color: #07120e; }
.tf-cta:hover { background: #e6f2ec; }
.tf-quick { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); }
.tf-k { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.tf-inputs { display: grid; grid-template-columns: 0.8fr 1.2fr 0.8fr; gap: 10px; margin-top: 12px; }
.tf-result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rim); }
.tf-big { font-size: 3rem; font-weight: 650; font-stretch: 112%; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tf-big small { font-size: .4em; color: var(--ink-3); letter-spacing: 0; }
.tf-rec { margin-top: 8px; font-size: 18px; font-weight: 650; font-stretch: 108%; color: var(--accent-ink); }
.tf-bar { position: relative; height: 8px; margin-top: 14px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.tf-bar span { position: absolute; inset: 0; transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent), #6ff0aa); border-radius: inherit; transition: transform .45s var(--ease); }
.tf-bar i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); opacity: .5; transition: left .45s var(--ease); }
.tf-sub { margin-top: 8px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tf-quick.is-short .tf-rec, .tf-quick.is-short .tf-sub { color: var(--eol); }
.tf-note { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }

.tool-ideas { margin: 48px 0 80px; padding-top: 28px; border-top: 1px solid var(--rim); display: grid; gap: 10px; justify-items: start; }
.tool-ideas h2 { font-size: 20px; letter-spacing: -0.02em; }
.tool-ideas p { color: var(--ink-2); max-width: 60ch; }

@media (max-width: 900px) {
  .tool-feature { grid-template-columns: minmax(0, 1fr); padding: 26px 20px; gap: 26px; }
}
@media (max-width: 480px) {
  .tf-inputs { grid-template-columns: 1fr 1fr; }
  .tf-inputs .cf:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
}

/* =========================================================
   PoE-Rechner
   ========================================================= */
.poe-lead { font-size: 14.5px; margin: -4px 0 14px; max-width: 70ch; }
.poe-row { display: grid; gap: 12px; align-items: end; }
.poe-row-a { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 90px 40px; }
.poe-row-b { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.poe-row-p { grid-template-columns: 110px minmax(0, 1.4fr) minmax(0, 1fr) 40px; }
.poe-note { font-size: 13.5px; color: var(--eol); background: var(--eol-tint); border-radius: 10px; padding: 8px 12px; }
.poe .group-out { padding-bottom: 0; }
.poe .group-out.is-bad { color: var(--danger); }
.poe .group-out.is-open { color: var(--eol); }
.poe [aria-invalid], .calc [aria-invalid] { border-color: var(--danger) !important; }
.calc .cf-unit:has([aria-invalid]) { border-color: var(--danger); }
.poe-verdict { font-size: 26px; font-weight: 650; font-stretch: 108%; letter-spacing: -0.03em; color: var(--eol); }
.poe-result[data-verdict="ok"] .poe-verdict { color: var(--ok); }
.poe-result[data-verdict="fail"] .poe-verdict { color: var(--danger); }
.poe-checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.poe-checks li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; }
.poe-checks strong { display: block; font-weight: 600; }
.poe-checks em { display: block; font-style: normal; color: var(--ink-3); margin-top: 2px; }
.poe-dot { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--surface-3); box-shadow: inset 0 0 0 2px var(--eol); }
.poe-checks li[data-state="ok"] .poe-dot { background: var(--ok); box-shadow: none; }
.poe-checks li[data-state="fail"] .poe-dot { background: var(--danger); box-shadow: none; }
.poe-checks li[data-state="fail"] em { color: var(--danger); }
.poe .cr-list dd.is-bad { color: var(--danger); }
.poe-std { width: 100%; border-collapse: collapse; font-size: 14px; }
.poe-std th, .poe-std td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rim); }
.poe-std th { color: var(--ink-3); font-weight: 550; }
.poe-print { display: none; }
@media (max-width: 640px) {
  .poe-row-a, .poe-row-b, .poe-row-p { grid-template-columns: minmax(0, 1fr); }
  .poe-row-a .cf:nth-child(3), .poe-row-p .cf:first-child { max-width: 160px; }
}
@media print {
  .poe .calc-main, .poe .cr-actions, .poe .calc-side > .muted { display: none !important; }
  .poe .poe-print { display: block; margin-top: 24px; font-size: 12px; }
  .poe-print h2 { font-size: 18px; }
  .poe-print h3 { font-size: 14px; margin-top: 16px; }
  .poe-print table { width: 100%; border-collapse: collapse; margin-top: 6px; }
  .poe-print th, .poe-print td { border: 1px solid #ccc; padding: 4px 6px; text-align: left; vertical-align: top; }
  .poe-result { box-shadow: none; border: 1px solid #ccc; }
}
.tool-feature-poe {
  margin-top: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background:
    radial-gradient(60% 80% at 15% 85%, rgba(64, 150, 108, .2), transparent 70%),
    linear-gradient(200deg, #0b1f17 0%, #081510 60%, #050d0a 100%);
}
.tool-feature-poe .tf-quick { order: -1; }
.tf-quick.is-over .tf-rec, .tf-quick.is-over .tf-sub { color: var(--danger); }
.tf-quick.is-over .tf-bar span { background: linear-gradient(90deg, var(--eol), var(--danger)); }
@media (max-width: 900px) {
  .tool-feature-poe { grid-template-columns: minmax(0, 1fr); }
  .tool-feature-poe .tf-quick { order: 0; }
}

/* Rechner: Eingabebereiche als Karten, passend zur Ergebniskarte rechts */
.calc-main { display: grid; gap: 20px; }
.calc-main > section, .calc-main > .calc-more {
  margin: 0; padding: 26px 28px; border-radius: var(--r-xl);
  background: var(--surface); box-shadow: var(--shadow-2);
}
.calc-main > .calc-more { padding-block: 20px; border-top: 0; }
.calc-main .groups { border-top: 0; }
.calc-main .groups .group:last-child { border-bottom: 0; padding-bottom: 0; }
.calc-main > section > .calc-head { padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--rim); }
.calc-main > .calc-section > h2 { padding-bottom: 14px; border-bottom: 1px solid var(--rim); }
@media (max-width: 640px) {
  .calc-main > section, .calc-main > .calc-more { padding: 20px 18px; }
}
@media print {
  .calc-main > section { box-shadow: none; border: 1px solid #ccc; }
}
.tf-quick [aria-invalid] { border-color: var(--danger) !important; }
.legal { padding: 8px 0 80px; }
.legal h3 { margin-top: 1.8em; }
/* Firmware-Varianten gleichrangig */
.variants-k { margin-top: 18px; font-weight: 600; }
.variants { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--rim); }
.variants li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rim); }
.variant-main { display: grid; gap: 2px; min-width: 0; }
.variant-file { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.variants .btn { flex: none; }
.variants-help { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 640px) { .variants li { flex-direction: column; align-items: stretch; } }

/* =========================================================
   Geräte und Firmware (neu): Suche, Kacheln, Neu aktualisiert, ruhige Liste
   ========================================================= */
.dfinder { padding-bottom: 80px; }
.dsearch { height: 60px; border-radius: 16px; box-shadow: var(--shadow-2); }
.dsearch input { font-size: 18px; }
.dtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.dtile {
  display: grid; justify-items: center; gap: 6px; padding: 22px 12px 18px; border: 1px solid var(--rim); border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s var(--ease);
}
.dtile:hover { border-color: var(--accent); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.dtile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.dtile-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--ink-3); transition: color .15s, background .15s; }
.dtile-ic .ic { width: 30px; height: 30px; stroke-width: 1.4; }
.dtile:hover .dtile-ic, .dtile[aria-pressed="true"] .dtile-ic { color: var(--accent); background: var(--accent-tint); }
.dtile-name { font-weight: 650; font-size: 16px; letter-spacing: -0.01em; }
.dtile-n { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* Nach der Auswahl: Kacheln so breit wie ihr Inhalt, füllen die Zeile (lange Namen wie „Sprechanlagen“ passen immer) */
[data-start="0"] .dtiles { display: flex; flex-wrap: wrap; }
[data-start="0"] .dtile { flex: 1 1 auto; grid-template-columns: auto 1fr auto; column-gap: 10px; justify-items: start; align-items: center; padding: 10px 14px; text-align: left; }
[data-start="0"] .dtile-ic { width: 34px; height: 34px; border-radius: 10px; }
[data-start="0"] .dtile-ic .ic { width: 20px; height: 20px; }
[data-start="0"] .dtile-name { font-size: 14.5px; white-space: nowrap; }
[data-start="0"] .dtile-n { padding-left: 4px; }
[data-start="0"] .dtile:hover { transform: none; }

.dnew { margin-top: 36px; }
.dnew h2 { font-size: 15px; font-weight: 600; color: var(--ink-3); letter-spacing: .01em; margin-bottom: 12px; }
.dnew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dnew-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--rim); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.dnew-card:hover { border-color: var(--accent); }
.dnew-card strong { font-weight: 650; overflow-wrap: break-word; }
.dnew-card span { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.dresult { margin-top: 28px; }
.dlist-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dlist-head h2 { font-size: 22px; letter-spacing: -0.02em; }
.dlist-head h2 .n { font-size: 15px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.dlist-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.dsel select { height: 38px; border: 1px solid var(--rim-strong); border-radius: 10px; background: var(--surface); padding: 0 32px 0 12px; font-size: 14px; color: var(--ink); }
.dlist { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); border: 1px solid var(--rim); overflow: hidden; }
.dlist .frow[hidden] { display: none; }
.dlist .frow + .frow { border-top: 1px solid var(--rim); }
.dlist a { display: flex; align-items: center; gap: 10px; padding: 14px 18px; color: var(--ink); text-decoration: none; transition: background .12s; }
.dlist a:hover { background: var(--surface-2); }
.frow-model { font-weight: 600; min-width: 0; overflow-wrap: break-word; }
.frow-side { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 14.5px; }
.frow-side .ic { width: 18px; height: 18px; color: var(--ink-3); }
.dlist mark { background: var(--mark); color: inherit; border-radius: 3px; }
.deol { height: 38px; border: 1px solid var(--rim-strong); border-radius: 10px; background: var(--surface); white-space: nowrap; cursor: pointer; padding-inline: 14px; color: var(--ink-2); font: inherit; font-size: 14.5px; }
.deol[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-tint); }
.dtile-eol:hover .dtile-ic, .dtile-eol[aria-pressed="true"] .dtile-ic { color: var(--ink-2); background: var(--surface-3); }
@media (max-width: 640px) {
  .dtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  [data-start="0"] .dtiles { display: flex; overflow-x: auto; gap: 8px; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  [data-start="0"] .dtiles::-webkit-scrollbar { display: none; }
  [data-start="0"] .dtile { flex: none; gap: 8px; padding: 8px 12px; }
  [data-start="0"] .dtile-name { white-space: nowrap; }
  .dlist-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); width: 100%; }
  .dsel select { width: 100%; }
  .dtile { padding: 16px 10px 14px; }
  .dlist a { padding: 13px 14px; }
  .dlist-head h2 { font-size: 19px; }
  .dnew-card:nth-child(n+4) { display: none; }
}

/* =========================================================
   FAQ-Artikel: weiße Karte, Inhaltsverzeichnis rechts (mitlaufend)
   ========================================================= */
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 8px; padding-bottom: 72px; }
.art-layout.has-toc { grid-template-columns: minmax(0, 800px) 270px; align-items: start; }
.device.article-plain { max-width: 1100px; }
.article-plain .greenband h1, .article-plain .greenband p { max-width: 820px; }
.art-main { min-width: 0; grid-row: 1; }
.art-card { max-width: none; margin-top: 0; padding: 34px 40px; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.art-card > :first-child { margin-top: 0; }
.art-card h3 { scroll-margin-top: 96px; padding-top: 6px; }
.art-card h3 + * { margin-top: .6em; }
.art-card figure a { border-radius: 12px; }
.art-toc { position: sticky; top: 92px; grid-column: 2; grid-row: 1; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--rim); font-size: 14.5px; }
.art-toc summary { font-weight: 650; cursor: pointer; list-style: none; color: var(--ink); }
.art-toc summary::-webkit-details-marker { display: none; }
.art-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: t; }
.art-toc li { counter-increment: t; }
.art-toc a { display: grid; grid-template-columns: 22px 1fr; gap: 6px; padding: 7px 8px; border-radius: 8px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.art-toc a::before { content: counter(t); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.art-toc a:hover { background: var(--surface-2); color: var(--ink); }
.art-toc a[aria-current="true"] { background: var(--accent-tint); color: var(--accent-ink); font-weight: 600; }
.art-main .siblings-line, .art-main .more { padding-inline: 4px; }
@media (max-width: 1000px) {
  .art-layout.has-toc { grid-template-columns: minmax(0, 1fr); }
  .art-toc { position: static; grid-column: 1; grid-row: 1; }
  .art-main { grid-row: 2; }
}
@media (max-width: 640px) {
  .art-card { padding: 22px 18px; border-radius: var(--r-lg); }
}

/* =========================================================
   Software und Apps: Karten je Programm, Anleitungen als Liste
   ========================================================= */
.swpage { padding-bottom: 80px; }
.swgroup { margin-top: 28px; }
.swgroup-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.swgroup-head h2 { font-size: 22px; letter-spacing: -0.02em; }
.swgroup-head p { color: var(--ink-3); font-size: 15px; }
.swgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.swcard { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-2); border: 1px solid var(--rim); }
.swcard-top { display: flex; gap: 14px; align-items: flex-start; }
.swcard-ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); }
.swcard-ic .ic { width: 24px; height: 24px; }
.swcard h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.swcard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.swfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 12px 0; border-block: 1px solid var(--rim); }
.swfacts div { min-width: 0; }
.swfacts dt { font-size: 12.5px; color: var(--ink-3); }
.swfacts dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.swdl { margin-top: auto; justify-content: center; }
.swolder summary { cursor: pointer; font-size: 14px; color: var(--ink-2); }
.swolder ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.swolder li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.swolder li span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.swdocs { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--rim); box-shadow: var(--shadow-1); overflow: hidden; }
.swdocs li + li { border-top: 1px solid var(--rim); }
.swdocs a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--ink); text-decoration: none; }
.swdocs a:hover { background: var(--surface-2); }
.swdoc-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--danger-tint); color: var(--danger); flex: none; }
.swdoc-ic .ic { width: 18px; height: 18px; }
.swdoc-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.swdoc-meta { margin-left: auto; color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.swdocs a > .ic { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
@media (max-width: 640px) { .swgrid { grid-template-columns: minmax(0, 1fr); } .swcard { padding: 18px; } }

/* =========================================================
   FAQ-Übersicht: Karten mit Vorschaubild
   ========================================================= */
.faq-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.faq-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--rim); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .2s, transform .25s var(--ease); }
.faq-card:hover { border-color: var(--accent); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.faq-thumb { display: grid; place-items: center; aspect-ratio: 16 / 8; background: #fff; border-bottom: 1px solid var(--rim); overflow: hidden; }
.faq-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
/* Ohne Bild: helle Fläche mit feinem Raster und Themen-Symbol, passt zu den weißen Bildkarten */
.faq-thumb.is-empty { background-color: var(--surface-2); background-image: radial-gradient(circle, var(--rim) 1px, transparent 1.5px); background-size: 18px 18px; }
.faq-cover-ic { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: var(--surface); border: 1px solid var(--rim); box-shadow: var(--shadow-1); color: var(--accent-ink); transition: transform .25s var(--ease); }
.faq-cover-ic .ic { width: 34px; height: 34px; }
.faq-card:hover .faq-cover-ic { transform: scale(1.06); }
.faq-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.faq-tag { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-tint); padding: 3px 10px; border-radius: 999px; }
.faq-card h2 { font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; }
.faq-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.faq-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.faq-more .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.faq-card:hover .faq-more .ic { transform: translateX(3px); }
@media (max-width: 640px) { .faq-cards { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   Stream-Adressen (stream-adressen.php, assets/js/stream.js)
   ========================================================= */
.stream-lead { margin-top: 14px; font-size: 14px; }
.stream-show { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.stream-grid3 { grid-template-columns: 1.4fr 1fr 1fr; }
.cf-err { font-size: 12.5px; color: var(--danger); }
.cf[data-bad] input { border-color: var(--danger); }
.stream .calc { grid-template-columns: minmax(0, 1fr) 440px; }
.stream-url { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rim); display: grid; gap: 8px; }
.stream-url:first-of-type { margin-top: 12px; }
.su-head { display: flex; flex-direction: column; gap: 1px; }
.su-head strong { font-size: 15px; }
.su-head span { font-size: 13px; color: var(--ink-3); }
.stream-url code, .sq-url code {
  display: block; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--rim);
  font-family: var(--mono); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; color: var(--ink); user-select: all;
}
.stream-url.is-template code, .sq-url.is-template code { color: var(--ink-3); border-style: dashed; user-select: auto; }
.stream-url .btn { justify-self: start; }
.stream-url .btn.is-done, .sq-url .btn.is-done { color: var(--accent-ink); border-color: var(--accent); }
.stream-url .btn .ic, .sq-url .btn .ic { width: 16px; height: 16px; }
@media (max-width: 1000px) { .stream .calc { grid-template-columns: minmax(0, 1fr); } .stream .calc-side { order: 0; } }
@media (max-width: 640px) { .stream-grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .stream-grid3 .cf:first-child { grid-column: 1 / -1; } }

/* Tools-Seite: Schnellansicht Stream-Adressen */
.tool-feature-stream { margin-top: 28px; }
.sq-inputs { display: grid; grid-template-columns: 1fr 90px; gap: 10px; margin-top: 12px; }
.sq-url { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rim); display: grid; gap: 10px; }
.sq-url .btn { justify-self: start; }

/* =========================================================
   Auswahlfelder: aufgeklappte Liste im Portal-Stil
   Moderne Browser (Chrome/Edge ab 135): ganz eigene Liste über appearance: base-select.
   Andere Browser: native Liste, aber mit Portal-Farben (auch im Dunkelmodus).
   ========================================================= */
select option { background-color: var(--surface); color: var(--ink); }
@supports (appearance: base-select) {
  select, select::picker(select) { appearance: base-select; }
  select { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; }
  .dsel select { padding-right: 12px; }
  select::picker-icon {
    content: ""; width: 10px; height: 10px; flex: none; color: var(--ink-3);
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s var(--ease);
  }
  select:open::picker-icon { transform: rotate(180deg); }
  select::picker(select) {
    margin-block: 6px; padding: 6px; border: 1px solid var(--rim-strong); border-radius: 12px;
    background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2), 0 18px 40px -18px rgba(0, 0, 0, .35);
    max-height: min(60vh, 360px);
    opacity: 1; transition: opacity .15s, translate .15s var(--ease), display .15s allow-discrete, overlay .15s allow-discrete;
  }
  @starting-style { select:open::picker(select) { opacity: 0; translate: 0 -4px; } }
  select option {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
    background: transparent; color: var(--ink); font-size: 15px; cursor: pointer; outline: none;
  }
  select option:hover, select option:focus-visible { background: var(--surface-2); }
  select option:checked { background: var(--accent-tint); color: var(--accent-ink); font-weight: 600; }
  select option::checkmark { content: ""; order: 1; margin-left: auto; width: 14px; height: 14px; background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m2.5 7.5 3 3 6-7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
}

/* Geräte-Seite: passende Programme über der Geräteliste */
.dsw { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.dsw-k { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-right: 4px; }
.dsw a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rim-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.dsw a:hover { border-color: var(--accent); color: var(--accent-ink); }
.dsw a span { font-weight: 500; font-size: 13px; color: var(--ink-3); }
/* Software-Karte, auf die die Suche springt */
.swcard { scroll-margin-top: 100px; }
.swcard:target { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =========================================================
   Objektiv- und Reichweitenrechner (objektiv-rechner.php, assets/js/lens.js)
   DORI-Farben: Identifizieren kräftig grün, nach außen heller
   ========================================================= */
:root { --z-identify: #0b7550; --z-recognize: #2f9e6e; --z-observe: #7cc9a4; --z-detect: #c9ecd9; }
.cf[hidden] { display: none; }
.cf .opt { font-style: normal; font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.lens-lead { margin-top: 14px; font-size: 14px; }
.lens-level { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); font-weight: 650; font-stretch: 112%; letter-spacing: -0.035em; line-height: 1.1; margin-top: 4px; color: var(--accent-ink); }
.lens-result.is-empty .lens-level { color: var(--ink-3); }
.lens-result[data-level="none"]:not(.is-empty) .lens-level { color: var(--eol); }
.lens-plan { display: block; width: 100%; height: auto; max-height: 280px; margin-top: 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--rim); }
.lens-plan:empty { display: none; }
.lens-plan .z-detect { fill: var(--z-detect); }
.lens-plan .z-observe { fill: var(--z-observe); }
.lens-plan .z-recognize { fill: var(--z-recognize); }
.lens-plan .z-identify { fill: var(--z-identify); }
.lens-plan .z-target { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 4; }
.lens-plan .z-label { font-size: 12px; fill: var(--ink); font-weight: 700; paint-order: stroke; stroke: var(--surface-2); stroke-width: 3px; }
.lens-plan .z-cam { fill: var(--ink); }
.lens-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); }
.lens-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lens-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.lens-legend .z-identify { --c: var(--z-identify); } .lens-legend .z-recognize { --c: var(--z-recognize); }
.lens-legend .z-observe { --c: var(--z-observe); } .lens-legend .z-detect { --c: var(--z-detect); }
.lens-result.is-empty .lens-legend { display: none; }
.lens-h { margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.lens-h + .cr-list { margin-top: 8px; }
.lens-need { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rim); }
.lens-need li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rim); font-size: 14px; }
.lens-need li span { color: var(--ink-3); }
.lens-need li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.lens-cover { padding: 10px 12px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-ink); }
.lens-cover.is-bad { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.lens .calc { grid-template-columns: minmax(0, 1fr) 400px; }
@media (max-width: 1000px) { .lens .calc { grid-template-columns: minmax(0, 1fr); } .lens .calc-side { order: 0; } }

/* Tools-Seite: Schnellcheck Objektiv */
.tool-feature-lens { margin-top: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.tool-feature-lens .tf-quick { order: -1; }
.lq-inputs { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; margin-top: 12px; }
.lq-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lq-steps li { padding: 8px 6px; border-radius: 8px; background: var(--surface-3); color: var(--ink-3); font-size: 12.5px; font-weight: 600; text-align: center; transition: background .2s, color .2s; }
.lq-steps li.is-on { background: var(--accent-tint); color: var(--accent-ink); }
[data-lens-quick][data-level="identify"] .lq-steps li.is-on:last-child { background: var(--z-identify); color: #fff; }
@media (max-width: 900px) { .tool-feature-lens { grid-template-columns: minmax(0, 1fr); } .tool-feature-lens .tf-quick { order: 0; } }
@media (max-width: 640px) { .lq-inputs { grid-template-columns: 1fr 1fr; } .lq-inputs .cf:first-child { grid-column: 1 / -1; } }
.lens-mode { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--rim); }
.lens-mode label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.lens-mode input { position: absolute; opacity: 0; pointer-events: none; }
.lens-mode label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.lens-mode label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.lens-calcfov { font-size: 12.5px; color: var(--accent-ink); font-weight: 600; }
.lens-calcfov:empty { display: none; }
.lens-lead[hidden] { display: none; }

/* Video im FAQ-Artikel (Zeile !video[…](/assets/media/…)), im Rahmen wie ein Bildschirm */
.prose .art-video { margin: 22px 0; }
.prose .art-video video { display: block; width: 100%; height: auto; padding: 10px; border-radius: 18px; background: linear-gradient(160deg, #1d2127, #0b0d10); box-shadow: 0 24px 48px -26px rgba(0, 0, 0, .5); }
.prose .art-video figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); }

/* Geräteseite: Link zum Online-Shop */
.shop-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 16px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; transition: filter .15s;
}
.shop-link:hover { filter: brightness(1.08); }
.shop-link .ic { width: 17px; height: 17px; }
