/* Muster Sicherheitstechnik – Gestaltung
   Ruhig und seriös: viel Weißraum, klare Grotesk-Schrift, Petrol als einzige Akzentfarbe.
   Grün und Orange nur mit Bedeutung (bleibt im Haus / gesperrt). */
:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #eef1ee;
  --ink: #12181a;
  --muted: #5b666c;
  --line: #e2e6e2;
  --accent: #0c5b60;
  --accent-strong: #084449;
  --accent-soft: #e3efed;
  --on-accent: #ffffff;
  --ok: #2a7a47;
  --ok-soft: #e1f1e6;
  --signal: #b4461c;
  --band-bg: #0b2f32;
  --band-fg: #eef6f5;
  --band-muted: #a3c3c1;
  --band-line: #24504f;
  --grid: #eceeeb;
  --shadow-sm: 0 1px 2px rgba(18, 24, 26, 0.05);
  --shadow: 0 1px 2px rgba(18, 24, 26, 0.04), 0 14px 34px -18px rgba(18, 24, 26, 0.25);

  /* Zonen-Schaubild: Zone 1 blau, Zone 2 gelb, Zone 3 rot */
  --z1: #2f6fbf;
  --z1-ink: #ffffff;
  --z1-soft: #e3eefa;
  --z1-ground: #dde9f6;
  --z1-side-l: #c5d8ee;
  --z1-side-r: #b2cbe7;
  --z1-pave: #cbd9ea;
  --z1-deck: #bfd2e9;
  --z1-hedge-t: #a6c5ea;
  --z1-hedge-l: #90b5e2;
  --z1-hedge-r: #7ea7d9;
  --z1-tree: #8db5e4;
  --z1-tree-hi: #b3cff0;
  --z1-trunk: #6f8fb5;
  --z1-shadow: rgba(47, 111, 191, 0.16);
  --z1-cone: rgba(47, 111, 191, 0.2);
  --z2: #f0b400;
  --z2-ink: #3a2a00;
  --z2-soft: #fdf3d3;
  --z2-wall-t: #f6cd45;
  --z2-wall-l: #ebb62b;
  --z2-wall-r: #d89d12;
  --z2-glass-t: #fff4c6;
  --z2-glass-l: #fbe7a0;
  --z2-glass-r: #f3d77c;
  --z2-door: #f9dc7c;
  --z3: #c9463f;
  --z3-ink: #ffffff;
  --z3-soft: #fbe6e3;
  --z3-floor-a: #f8e4e0;
  --z3-floor-b: #f2d6d0;
  --z3-rug: #ecc3bb;
  --z3-part-t: #e8b5ac;
  --z3-part-l: #dc9e93;
  --z3-part-r: #cd897d;
  --z3-cone: rgba(201, 70, 63, 0.3);
  --obj-t: #ffffff;
  --obj-l: #ebe8e7;
  --obj-r: #dcd6d4;
  --obj-dark-t: #4f4644;
  --obj-dark-l: #403836;
  --obj-dark-r: #342d2c;
  --edge: rgba(30, 40, 50, 0.12);
  /* Neutral im Schaubild: Nachbarn, Treppenhaus, Gehweg (nicht anklickbar) */
  --nb-ground: #e7ebe8;
  --nb-side-l: #d9dfdb;
  --nb-side-r: #cbd3ce;
  --nb-t: #f5f6f5;
  --nb-l: #e2e6e3;
  --nb-r: #d4dad6;
  --nb-wall-t: #dce2de;
  --nb-wall-l: #cfd6d2;
  --nb-wall-r: #c2cac5;
  --nb-walk: #dde2df;
  --nb-pave: #dbe0dd;
  --nb-floor: #eceeed;
  --nb-win: #cdd7dc;
  --nb-glass: #e3e9eb;
  --nb-rail: #e9edeb;
  --nb-roof-a: #eef1ef;
  --nb-roof-b: #dde3df;
  --nb-tree: #d2dbd5;
  --nb-tree-hi: #e1e7e3;
  --nb-trunk: #b8c1bc;
  --nb-shadow: rgba(40, 50, 45, 0.08);
  --z3-stair-t: #f4dcd7;
  --z1-text: #2a62aa;
  --z2-text: #8a6100;
  --z3-text: #b23c35;
  --warn: #b4461c;
  --warn-soft: #fbece4;

  --font-display: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(2rem, 1.3rem + 2.6vw, 3rem);
  --step-3: clamp(2.6rem, 1.3rem + 5vw, 5rem);

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 76rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1214;
    --surface: #151c1f;
    --surface-2: #11181a;
    --ink: #e4e9e6;
    --muted: #9aa6ac;
    --line: #253034;
    --accent: #5cb8b6;
    --accent-strong: #86d1ce;
    --accent-soft: #143031;
    --on-accent: #062023;
    --ok: #63c58c;
    --ok-soft: #15301f;
    --signal: #f0915f;
    --band-bg: #0b2224;
    --band-fg: #e2efed;
    --band-muted: #93b3b1;
    --band-line: #24484a;
    --grid: #182124;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -18px rgba(0, 0, 0, 0.75);
    --z1: #5b9be6;
    --z1-ink: #06172c;
    --z1-soft: #15263b;
    --z1-ground: #1b2b3f;
    --z1-side-l: #162435;
    --z1-side-r: #121e2d;
    --z1-pave: #23354c;
    --z1-deck: #283d56;
    --z1-hedge-t: #2f4f76;
    --z1-hedge-l: #284468;
    --z1-hedge-r: #213a5a;
    --z1-tree: #36608f;
    --z1-tree-hi: #4673a8;
    --z1-trunk: #2b4466;
    --z1-shadow: rgba(0, 0, 0, 0.3);
    --z1-cone: rgba(91, 155, 230, 0.22);
    --z2: #f2b705;
    --z2-ink: #2a1f00;
    --z2-soft: #2e2710;
    --z2-wall-t: #caa025;
    --z2-wall-l: #b48a1c;
    --z2-wall-r: #9b7415;
    --z2-glass-t: #6a5c2c;
    --z2-glass-l: #5d5027;
    --z2-glass-r: #504522;
    --z2-door: #8f7633;
    --z3: #e2675f;
    --z3-ink: #2a0907;
    --z3-soft: #331c1a;
    --z3-floor-a: #3b2624;
    --z3-floor-b: #342120;
    --z3-rug: #4b2d29;
    --z3-part-t: #6e3f39;
    --z3-part-l: #603630;
    --z3-part-r: #532e29;
    --z3-cone: rgba(226, 103, 95, 0.32);
    --obj-t: #c4ccd0;
    --obj-l: #aab3b8;
    --obj-r: #949ea3;
    --obj-dark-t: #2a2524;
    --obj-dark-l: #221e1d;
    --obj-dark-r: #1b1817;
    --edge: rgba(0, 0, 0, 0.35);
    --nb-ground: #1a2124;
    --nb-side-l: #161c1f;
    --nb-side-r: #12181a;
    --nb-t: #2b3438;
    --nb-l: #232b2f;
    --nb-r: #1d2427;
    --nb-wall-t: #36423e;
    --nb-wall-l: #2d3834;
    --nb-wall-r: #252f2c;
    --nb-walk: #20282b;
    --nb-pave: #232b2e;
    --nb-floor: #222a2d;
    --nb-win: #34424a;
    --nb-glass: #2c373d;
    --nb-rail: #2f383c;
    --nb-roof-a: #303a3e;
    --nb-roof-b: #262f33;
    --nb-tree: #2a3530;
    --nb-tree-hi: #33403a;
    --nb-trunk: #26302b;
    --nb-shadow: rgba(0, 0, 0, 0.3);
    --z3-stair-t: #45302d;
    --z1-text: #7fb2ee;
    --z2-text: #f2b705;
    --z3-text: #ef8a83;
    --warn: #f0915f;
    --warn-soft: #3a2418;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d1214;
  --surface: #151c1f;
  --surface-2: #11181a;
  --ink: #e4e9e6;
  --muted: #9aa6ac;
  --line: #253034;
  --accent: #5cb8b6;
  --accent-strong: #86d1ce;
  --accent-soft: #143031;
  --on-accent: #062023;
  --ok: #63c58c;
  --ok-soft: #15301f;
  --signal: #f0915f;
  --band-bg: #0b2224;
  --band-fg: #e2efed;
  --band-muted: #93b3b1;
  --band-line: #24484a;
  --grid: #182124;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -18px rgba(0, 0, 0, 0.75);
    --z1: #5b9be6;
    --z1-ink: #06172c;
    --z1-soft: #15263b;
    --z1-ground: #1b2b3f;
    --z1-side-l: #162435;
    --z1-side-r: #121e2d;
    --z1-pave: #23354c;
    --z1-deck: #283d56;
    --z1-hedge-t: #2f4f76;
    --z1-hedge-l: #284468;
    --z1-hedge-r: #213a5a;
    --z1-tree: #36608f;
    --z1-tree-hi: #4673a8;
    --z1-trunk: #2b4466;
    --z1-shadow: rgba(0, 0, 0, 0.3);
    --z1-cone: rgba(91, 155, 230, 0.22);
    --z2: #f2b705;
    --z2-ink: #2a1f00;
    --z2-soft: #2e2710;
    --z2-wall-t: #caa025;
    --z2-wall-l: #b48a1c;
    --z2-wall-r: #9b7415;
    --z2-glass-t: #6a5c2c;
    --z2-glass-l: #5d5027;
    --z2-glass-r: #504522;
    --z2-door: #8f7633;
    --z3: #e2675f;
    --z3-ink: #2a0907;
    --z3-soft: #331c1a;
    --z3-floor-a: #3b2624;
    --z3-floor-b: #342120;
    --z3-rug: #4b2d29;
    --z3-part-t: #6e3f39;
    --z3-part-l: #603630;
    --z3-part-r: #532e29;
    --z3-cone: rgba(226, 103, 95, 0.32);
    --obj-t: #c4ccd0;
    --obj-l: #aab3b8;
    --obj-r: #949ea3;
    --obj-dark-t: #2a2524;
    --obj-dark-l: #221e1d;
    --obj-dark-r: #1b1817;
    --edge: rgba(0, 0, 0, 0.35);
    --nb-ground: #1a2124;
    --nb-side-l: #161c1f;
    --nb-side-r: #12181a;
    --nb-t: #2b3438;
    --nb-l: #232b2f;
    --nb-r: #1d2427;
    --nb-wall-t: #36423e;
    --nb-wall-l: #2d3834;
    --nb-wall-r: #252f2c;
    --nb-walk: #20282b;
    --nb-pave: #232b2e;
    --nb-floor: #222a2d;
    --nb-win: #34424a;
    --nb-glass: #2c373d;
    --nb-rail: #2f383c;
    --nb-roof-a: #303a3e;
    --nb-roof-b: #262f33;
    --nb-tree: #2a3530;
    --nb-tree-hi: #33403a;
    --nb-trunk: #26302b;
    --nb-shadow: rgba(0, 0, 0, 0.3);
    --z3-stair-t: #45302d;
    --z1-text: #7fb2ee;
    --z2-text: #f2b705;
    --z3-text: #ef8a83;
    --warn: #f0915f;
    --warn-soft: #3a2418;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

[hidden] { display: none !important; }

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.stack { display: grid; gap: clamp(2rem, 4vw, 3.25rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.lead { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); max-width: 38rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
}
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--on-accent);
}
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.9375rem; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.05;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 2.1rem; height: 2.1rem; color: var(--accent); flex: none; }
.brand-name { display: grid; font-size: 0.8125rem; color: var(--muted); }
.brand-name b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) {
  color: var(--ink);
  font-size: 0.9688rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:not(.btn):hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 0.4em; text-decoration-thickness: 2px; }

/* Menü-Knopf: nur auf schmalen Bildschirmen und nur mit JavaScript; ohne JavaScript bleibt die wischbare Zeile */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
}
.nav-toggle .ic { width: 1.15rem; height: 1.15rem; stroke-width: 2.2; }
.nav-toggle[aria-expanded="true"] .nt-open, .nav-toggle[aria-expanded="false"] .nt-close { display: none; }

@media (max-width: 1040px) {
  .header-inner { gap: 0.5rem 0.6rem; }
  .brand { margin-right: auto; }
  .nav {
    order: 3;
    width: 100%;
    gap: 1.2rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav .btn { display: none; }
  .header-cta { display: inline-flex; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; }
  .js .nav.is-open { display: grid; gap: 0; padding: 0.35rem 0 0.25rem; overflow: visible; white-space: normal; }
  .js .nav.is-open a:not(.btn) { padding: 0.75rem 0.15rem; border-top: 1px solid var(--line); font-size: 1.0625rem; }
  .js .nav.is-open a[aria-current="page"] { text-decoration: none; font-weight: 700; }
}
@media (min-width: 1041px) {
  .header-cta { display: none; }
}

/* ---------- Hero: großes Foto über die volle Breite ---------- */
.hero {
  --hero-fg: #ffffff;
  --hero-muted: rgba(255, 255, 255, 0.82);
  --hero-accent: #8fd6d3;
  --hero-shade: 9, 14, 16;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0e1416;
  color: var(--hero-fg);
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 45%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--hero-shade), 0.9) 0%, rgba(var(--hero-shade), 0.72) 36%, rgba(var(--hero-shade), 0.18) 70%, rgba(var(--hero-shade), 0) 100%),
    linear-gradient(0deg, rgba(var(--hero-shade), 0.55) 0%, rgba(var(--hero-shade), 0) 45%);
}
.hero-copy {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(6rem, 13vw, 10rem) clamp(5rem, 10vw, 8rem);
}
.hero-copy > * { max-width: 36rem; }
.hero h1 { max-width: 13ch; color: var(--hero-fg); }
.hero .eyebrow { color: var(--hero-accent); }
.hero .lead { color: var(--hero-muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-light { background: var(--hero-fg); border-color: var(--hero-fg); color: #0e1416; }
.btn-light:hover { background: #dff1ef; border-color: #dff1ef; color: #0e1416; }
.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--hero-fg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.18); border-color: var(--hero-fg); color: var(--hero-fg); }
@media (max-width: 720px) {
  .hero-img { object-position: 66% center; }
  .hero::before {
    background: linear-gradient(0deg, rgba(var(--hero-shade), 0.94) 0%, rgba(var(--hero-shade), 0.78) 55%, rgba(var(--hero-shade), 0.4) 100%);
  }
  .hero-copy { padding-block: 9rem 3rem; }
}

/* Vertrauensleiste unter dem Foto */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 2rem;
  margin: 0;
  padding-block: 1.4rem;
  list-style: none;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
}
.trust svg { flex: none; width: 1.6rem; height: 1.6rem; color: var(--ok); }
@media (max-width: 900px) { .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .trust ul { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; } }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 1rem; max-width: 46rem; }
.section-head > p:not(.eyebrow) { font-size: 1.125rem; color: var(--muted); }

/* ---------- Symbole (Lucide) ---------- */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-lg { width: 2.25rem; height: 2.25rem; }
.btn .ic { width: 1.1rem; height: 1.1rem; }

/* Zonenfarben als Variablen für Bausteine: --zf Fläche, --zon Text auf Fläche, --zs zart, --zt Text/Symbol */
.zc-1 { --zf: var(--z1); --zon: var(--z1-ink); --zs: var(--z1-soft); --zt: var(--z1-text); }
.zc-2 { --zf: var(--z2); --zon: var(--z2-ink); --zs: var(--z2-soft); --zt: var(--z2-text); }
.zc-3 { --zf: var(--z3); --zon: var(--z3-ink); --zs: var(--z3-soft); --zt: var(--z3-text); }
.zdot { width: 0.7rem; height: 0.7rem; border-radius: 50%; flex: none; }
.zdot.z1 { background: var(--z1); }
.zdot.z2 { background: var(--z2); }
.zdot.z3 { background: var(--z3); }

/* ---------- Zonen-Schaubild (Startseite und Planer) ---------- */
.zones-figure {
  margin: 0;
  padding: clamp(0.5rem, 2vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
}
.zones-svg { display: block; width: 100%; height: auto; }

.scene polygon { stroke: var(--edge); stroke-width: 0.7; stroke-linejoin: round; transition: opacity 0.25s; }
.scene ellipse, .scene circle { transition: opacity 0.25s; }
.scene .z1, .scene .z2, .scene .z3 { cursor: pointer; }

.m-ground-t { fill: var(--z1-ground); }
.m-ground-l { fill: var(--z1-side-l); }
.m-ground-r { fill: var(--z1-side-r); }
.m-pave { fill: var(--z1-pave); }
.m-deck { fill: var(--z1-deck); }
.m-hedge-t { fill: var(--z1-hedge-t); }
.m-hedge-l { fill: var(--z1-hedge-l); }
.m-hedge-r { fill: var(--z1-hedge-r); }
.m-trunk-t, .m-trunk-l, .m-trunk-r { fill: var(--z1-trunk); }
.m-crown { fill: var(--z1-tree); }
.m-crown-hi { fill: var(--z1-tree-hi); }
.m-shadow { fill: var(--z1-shadow); }
.m-car-t { fill: var(--obj-t); }
.m-carroof-t { fill: var(--obj-l); }
.m-car-l, .m-carroof-l { fill: var(--obj-l); }
.m-car-r, .m-carroof-r { fill: var(--obj-r); }

.m-wall-t { fill: var(--z2-wall-t); }
.m-wall-l { fill: var(--z2-wall-l); }
.m-wall-r { fill: var(--z2-wall-r); }
.m-glass-t { fill: var(--z2-glass-t); }
.m-glass-l { fill: var(--z2-glass-l); }
.m-glass-r { fill: var(--z2-glass-r); }
.m-door-t, .m-door-l, .m-door-r { fill: var(--z2-door); }

.m-floor-a { fill: var(--z3-floor-a); }
.m-floor-b { fill: var(--z3-floor-b); }
.m-rug { fill: var(--z3-rug); }
.m-part-t { fill: var(--z3-part-t); }
.m-part-l { fill: var(--z3-part-l); }
.m-part-r { fill: var(--z3-part-r); }
.m-furn-t { fill: var(--obj-t); }
.m-furn-l { fill: var(--obj-l); }
.m-furn-r { fill: var(--obj-r); }
.m-rack-t { fill: var(--obj-dark-t); }
.m-rack-l { fill: var(--obj-dark-l); }
.m-rack-r { fill: var(--obj-dark-r); }
.m-stair-t { fill: var(--z3-stair-t); }
.m-stair-l { fill: var(--z3-part-l); }
.m-stair-r { fill: var(--z3-part-r); }

/* Neutral: Nachbarhäuser, Treppenhaus, Gehweg. Gehört zu keiner Zone und ist nicht anklickbar. */
.m-nbground-t { fill: var(--nb-ground); }
.m-nbground-l { fill: var(--nb-side-l); }
.m-nbground-r { fill: var(--nb-side-r); }
.m-nbwalk { fill: var(--nb-walk); }
.m-nbpave { fill: var(--nb-pave); }
.m-nbfloor { fill: var(--nb-floor); }
.m-nb-t { fill: var(--nb-t); }
.m-nb-l { fill: var(--nb-l); }
.m-nb-r { fill: var(--nb-r); }
.m-nbwall-t { fill: var(--nb-wall-t); }
.m-nbwall-l { fill: var(--nb-wall-l); }
.m-nbwall-r { fill: var(--nb-wall-r); }
.m-nbglass-t, .m-nbglass-l, .m-nbglass-r { fill: var(--nb-glass); }
.m-nbwin, .m-nbdoor { fill: var(--nb-win); }
.m-nbrail-t, .m-nbrail-l, .m-nbrail-r { fill: var(--nb-rail); }
.m-nbroof-a { fill: var(--nb-roof-a); }
.m-nbroof-b { fill: var(--nb-roof-b); }
.m-nbtrunk-t, .m-nbtrunk-l, .m-nbtrunk-r { fill: var(--nb-trunk); }
.m-nbcrown { fill: var(--nb-tree); }
.m-nbcrown-hi { fill: var(--nb-tree-hi); }
.m-nbshadow { fill: var(--nb-shadow); }

/* Vorschaubilder der Wohnformen (Startmenü, Startseite) */
.home-thumb { display: block; width: 100%; height: auto; }
.thumb polygon { stroke: var(--edge); stroke-width: 0.6px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Gewählte Zone vorn, die anderen treten zurück; beim Überfahren hellt eine Zone auf */
.zone-scope[data-zone="1"] .scene :is(.z2, .z3),
.zone-scope[data-zone="2"] .scene :is(.z1, .z3),
.zone-scope[data-zone="3"] .scene :is(.z1, .z2) { opacity: 0.22; }
.zone-scope[data-hover="1"]:not([data-zone="1"]):not([data-zone="0"]) .scene .z1,
.zone-scope[data-hover="2"]:not([data-zone="2"]):not([data-zone="0"]) .scene .z2,
.zone-scope[data-hover="3"]:not([data-zone="3"]):not([data-zone="0"]) .scene .z3 { opacity: 0.65; }
.zone-scope[data-zone="0"][data-hover="1"] .scene :is(.z2, .z3),
.zone-scope[data-zone="0"][data-hover="2"] .scene :is(.z1, .z3),
.zone-scope[data-zone="0"][data-hover="3"] .scene :is(.z1, .z2) { opacity: 0.35; }

/* Startseite: Schaubild mit drei Zonen-Karten */
.zones-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}
.zone-cards { display: grid; gap: 0.75rem; }
.zone-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.2rem 0.95rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.zone-card:hover, .zone-card.is-hot { border-color: var(--zf); box-shadow: var(--shadow); color: var(--ink); }
.zone-card .zbig {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: var(--zf);
  color: var(--zon);
  font: 700 1rem var(--font-body);
}
.zone-card b { font-size: 1.0625rem; font-weight: 650; line-height: 1.3; }
.zone-card small { grid-column: 2; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.zone-card::after { content: "→"; grid-column: 3; grid-row: 1 / span 2; color: var(--zt); font-weight: 600; }
.zone-cards .btn { justify-self: start; margin-top: 0.5rem; }
@media (max-width: 960px) { .zones-teaser { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sicherheitsplaner ---------- */
.planner-hero { padding-block: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 3vw, 1.75rem); }
.planner-hero h1 { font-size: var(--step-2); }
.planner-hero .wrap { gap: 0.9rem; }
.planner {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.planner-main { display: grid; gap: 1.25rem; min-width: 0; }
.planner-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--hdr, 4.2rem) + var(--stepbar-h, 7rem) + 1rem); min-width: 0; }
@media (max-width: 1040px) {
  .planner { grid-template-columns: minmax(0, 1fr); }
  .planner-side { position: static; }
}

.zone-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.3rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  scrollbar-width: none;
}
.zone-tabs::-webkit-scrollbar { display: none; }
.zone-tabs [role="tab"] {
  display: inline-flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.zone-tabs [role="tab"]:hover { color: var(--ink); background: var(--surface-2); }
.zone-tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tab-sub { font-weight: 500; }
@media (max-width: 640px) {
  .zone-tabs { gap: 0.15rem; }
  .zone-tabs [role="tab"] { flex: 1 1 auto; padding: 0.6rem 0.65rem; font-size: 0.875rem; }
  .tab-sub { display: none; }
}

.zone-options { display: grid; gap: 1.25rem; scroll-margin-top: 5.5rem; }
.zone-head { display: grid; gap: 0.5rem; max-width: 44rem; }
.zone-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.zone-head p:not(.eyebrow) { color: var(--muted); }
.zone-eyebrow { display: flex; align-items: center; gap: 0.5rem; color: var(--ink); }

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 700px) { .options { grid-template-columns: minmax(0, 1fr); } }
.opt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0.75rem 1rem;
  padding: 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, background-color 0.15s;
  min-width: 0;
}
.opt.is-on { border-color: var(--zf); background: var(--zs); }
.opt-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--zs);
  color: var(--zt);
}
.opt.is-on .opt-icon { background: var(--zf); color: var(--zon); }
.opt-icon .ic { width: 1.4rem; height: 1.4rem; }
.opt-body { display: grid; gap: 0.35rem; align-content: start; min-width: 0; }
.opt-name { font-size: 1.0625rem; font-weight: 650; }
.opt-desc { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.opt-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.25rem; }
.opt-tag {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.opt.is-on .opt-tag { background: var(--surface); }
/* Anzahl, Ausstattung (Normal/Erweitert/High-End) und Ausführung direkt in der Karte */
.opt-labor { margin-top: -0.1rem; color: var(--muted); font-size: 0.8125rem; }
.opt-controls { display: grid; gap: 0.55rem; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.opt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; }
.opt-row-label { min-width: 5.75rem; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.opt-row-unit { color: var(--muted); font-size: 0.8125rem; }
.tier-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tier-chip {
  display: inline-grid;
  gap: 0.05rem;
  padding: 0.35rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.tier-chip small { color: var(--muted); font-size: 0.75rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tier-chip:hover { border-color: var(--zf); }
.tier-chip[aria-pressed="true"] { border-color: var(--zf); background: var(--zs); }
.seg { display: inline-flex; padding: 0.2rem; border-radius: 999px; background: var(--surface-2); }
.seg button { padding: 0.35rem 0.8rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 0.8125rem; font-weight: 650; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.cl-labor .cl-label, .cl-labor .cl-price { color: var(--muted); }
.sp-row.is-grand strong, .sum-row.is-grand strong { color: var(--accent); }
.sum-row small { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.gc-tiers { display: grid; margin: 0; font-size: 0.9375rem; }
.gc-tiers div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.5rem; padding-block: 0.35rem; border-top: 1px solid var(--line); }
.gc-tiers dt { color: var(--muted); }
.gc-tiers dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.gc-tiers .gc-online dd { font-weight: 500; }
.gc-labor { flex: 1 1 100%; color: var(--muted); font-size: 0.8125rem; }
.opt-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.5rem; margin-top: 0.35rem; }
.opt-price strong { font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.opt-price span { color: var(--muted); font-size: 0.8125rem; }
.opt-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.opt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--zf);
  border-radius: 999px;
  background: var(--surface);
  color: var(--zt);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.opt-toggle:hover { background: var(--zs); }
.opt-toggle[aria-pressed="true"] { background: var(--zf); color: var(--zon); }
.opt-toggle .ic { width: 1.05rem; height: 1.05rem; }
.opt-link { color: var(--zt); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.opt-link:hover { color: var(--zt); text-decoration: underline; }
.opt-link::after { content: " →"; }

/* Schutz-Anzeige neben dem Bild */
.score-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.score-total { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; }
.score-total strong, .concept-total strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.dots { display: inline-flex; flex: none; gap: 0.3rem; }
.dots i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--zf, var(--ink)); }
.score-total .dots i, .concept-total .dots i { width: 0.95rem; height: 0.95rem; }
.score-hint { font-size: 0.875rem; color: var(--warn); }
.score-zones { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.score-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.score-zone:hover { border-color: var(--zf); }
.score-zone.is-active { border-color: var(--zf); background: var(--zs); }
/* Zeile 1: Name über die ganze Breite (auch „Türen und Fenster“ passt), Zeile 2: gewählte Geräte links, Stufe rechts */
.sz-name { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.5rem; min-width: 0; font-size: 0.9375rem; font-weight: 650; }
.sz-level { grid-column: 2; grid-row: 2; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.zicons { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; min-height: 2rem; }
.zi {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: var(--zs);
  color: var(--zt);
}
.score-zone.is-active .zi { background: var(--surface); }
.zi .ic { width: 1.1rem; height: 1.1rem; }
.zi-empty { color: var(--muted); font-size: 0.8125rem; }

.score-warn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--ok-soft);
}
.score-warn > .ic { width: 1.4rem; height: 1.4rem; }
.score-warn strong { display: block; font-size: 0.9375rem; }
.score-warn span { display: block; color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.score-warn { background: var(--warn-soft); }
.score-warn > .ic { color: var(--warn); }
.link-btn {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.link-btn:hover { color: var(--accent-strong); }
.score-warn .link-btn { margin: 0.2rem 0 0.4rem; }

.next { display: grid; gap: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.next-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
}
.next-label .ic { width: 1rem; height: 1rem; }
.next-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; }
.next-name { font-size: 0.9375rem; font-weight: 650; line-height: 1.3; }
.next-name small { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.next-done { color: var(--muted); font-size: 0.9375rem; }
.score-price { display: grid; gap: 0.7rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sp-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.sp-row span { font-size: 0.9375rem; font-weight: 600; }
.sp-row small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.sp-row strong { font-size: 1.125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-row strong.is-zero, .sum-row strong.is-zero { color: var(--ok); }
.score-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.score-actions .btn { flex: 1 1 auto; }
.score-note { color: var(--muted); font-size: 0.75rem; }

/* Hinweise auf den Karten: Miete und Recht */
.badge-rent-ok { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.badge-rent-ask { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.opt-law { display: flex; align-items: flex-start; gap: 0.45rem; margin-top: 0.15rem; color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.opt-law .ic { flex: none; width: 1rem; height: 1rem; margin-top: 0.1rem; color: var(--zt); }

/* ---------- Startmenü: Wie wohnen Sie? ---------- */
.home-start {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-margin-top: 6rem;
}
.ws-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ws-progress { display: inline-flex; gap: 0.35rem; }
.ws-progress i { width: 1.75rem; height: 0.3rem; border-radius: 999px; background: var(--line); transition: background-color 0.2s; }
.ws-progress i.on { background: var(--accent); }
.ws-step { display: grid; gap: 0.5rem; }
.ws-step h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); outline: none; }
.ws-lead { color: var(--muted); }
.ws-tiles { display: grid; gap: 0.85rem; margin-top: 0.75rem; }
.ws-tiles.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ws-tiles.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 40rem; }
.ws-tiles.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 34rem; }
@media (max-width: 860px) { .ws-tiles.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ws-tile {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s, transform 0.15s;
}
.ws-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.ws-tile[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.ws-tile .home-thumb { margin-bottom: 0.4rem; }
.ws-tile strong { font-size: 1rem; font-weight: 650; line-height: 1.25; }
.ws-tile small { color: var(--muted); font-size: 0.8125rem; line-height: 1.35; }
.ws-ic { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 0.45rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.ws-tile[aria-pressed="true"] .ws-ic { background: var(--accent); color: var(--on-accent); }
.ws-ic .ic { width: 1.4rem; height: 1.4rem; }
.ws-tile-num { justify-items: center; padding-block: 1.1rem; text-align: center; }
.ws-tile .ws-num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.ws-foot { display: flex; align-items: center; gap: 1.25rem; min-height: 1.5rem; }
.ws-back { display: inline-flex; align-items: center; gap: 0.35rem; }
.ws-back .ic { width: 1rem; height: 1rem; }

/* Einfache Auswahl: Paket-Kacheln im Startmenü und Paket-Ansicht statt Zonen-Reiter */
.ws-tiles.ws-pakete { max-width: 56rem; }
/* Hinweis „Schätzung“: Pille am Preis und gut sichtbarer Satz überall, wo Summen stehen */
.est-pill { display: inline-block; margin-left: 0.45rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--z2-soft); color: var(--z2-text); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em; vertical-align: middle; }
.est-note { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0; padding: 0.7rem 0.85rem; border-radius: var(--radius-sm); background: var(--z2-soft); color: var(--ink); font-size: 0.875rem; font-weight: 500; line-height: 1.5; }
.est-note .ic { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; color: var(--z2-text); }
.score-price .est-note { margin-top: 0.35rem; font-size: 0.8125rem; }
.ws-est { max-width: 56rem; margin-top: 0.25rem; }
.doc-est { font-size: 0.875rem; }
.ws-tiers { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 0.5rem; }
.ws-tiers .tier-chip:hover, .ws-tiers .tier-chip[aria-pressed="true"] { border-color: var(--accent); }
.ws-tiers .tier-chip[aria-pressed="true"] { background: var(--accent-soft); }
.ws-tile-pkg { gap: 0.3rem; }
.ws-tile-pkg { min-width: 0; overflow-wrap: break-word; }
/* Handy: Paket-Kacheln untereinander, damit Preise und Gerätelisten ganz in den Kasten passen */
@media (max-width: 640px) {
  .ws-tiles.ws-pakete { grid-template-columns: minmax(0, 1fr); }
  .ws-tile-pkg { padding: 0.9rem 1rem 1rem; }
  .ws-tile-pkg:hover { transform: none; }
}
.pk-level { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.pk-price { display: grid; gap: 0.05rem; margin-top: 0.15rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pk-price small { color: var(--muted); font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; letter-spacing: 0; }
.paket { display: grid; gap: 1.25rem; scroll-margin-top: 6rem; }
.pk-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.pk-tile {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.25rem;
  padding: 0.8rem 0.9rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.pk-tile:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.pk-tile[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pk-tile strong { font-weight: 650; line-height: 1.25; }
.pk-tile small { color: var(--muted); font-size: 0.8125rem; line-height: 1.35; }
.pk-tile .pk-price { font-size: 1.125rem; }
.pk-goals { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.pk-goals li { padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.pk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.pk-row-label { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.pk-list { display: grid; gap: 1rem; }
.pk-zone { display: grid; gap: 0.5rem; }
.pk-items { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.pk-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.pk-icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--zs); color: var(--zt); }
.pk-icon .ic { width: 1.3rem; height: 1.3rem; }
.pk-body { display: grid; gap: 0.3rem; min-width: 0; }
.pk-name { font-weight: 650; }
.pk-qty { margin-right: 0.35rem; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.pk-desc { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.pk-note { display: flex; align-items: flex-start; gap: 0.45rem; color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.pk-note .ic { flex: none; width: 1rem; height: 1rem; margin-top: 0.1rem; color: var(--warn); }
.pk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.pk-foot .btn .ic { width: 1rem; height: 1rem; }
.pk-calm, .form-calm, .hb-note { color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.hb-note { font-size: 0.75rem; }
@media (max-width: 700px) { .pk-switch { grid-template-columns: minmax(0, 1fr); } }

/* Pakete im Vergleich (Startmenü und Paket-Ansicht) */
.pk-compare summary { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--accent); font-weight: 650; cursor: pointer; list-style: none; }
.pk-compare summary::-webkit-details-marker { display: none; }
.pk-compare summary .ic { width: 1rem; height: 1rem; transition: transform 0.2s; }
.pk-compare[open] summary .ic { transform: rotate(180deg); }
.cmp-wrap { overflow-x: auto; margin-top: 0.75rem; }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.cmp th, .cmp td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cmp thead th { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.cmp tbody th { font-weight: 600; }
.cmp td { text-align: center; white-space: nowrap; }
.cmp-yes { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--ok); }
.cmp-yes .ic { width: 1.05rem; height: 1.05rem; }
.cmp-yes small { color: var(--muted); font-size: 0.75rem; }
.cmp-no { color: var(--line); }

/* Wegweiser über dem Planer: Zuhause → Auswahl → Anfrage */
.steps-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.steps-nav button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.25s;
}
.steps-nav button:hover:not(:disabled) { border-color: var(--accent); }
.steps-nav button:disabled { cursor: default; opacity: 0.55; }
.sn-no { display: grid; flex: none; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 0.875rem; font-weight: 700; transition: background-color 0.25s, color 0.25s; }
.sn-no .ic { width: 1rem; height: 1rem; }
.sn-text { display: grid; min-width: 0; line-height: 1.2; }
.sn-text strong { font-size: 0.9375rem; font-weight: 650; }
.sn-text small { color: var(--muted); font-size: 0.75rem; }
.steps-nav .is-active button { border-color: var(--accent); background: var(--accent-soft); }
.steps-nav .is-active .sn-no { background: var(--accent); color: var(--on-accent); }
.steps-nav .is-done .sn-no { background: var(--ok-soft); color: var(--ok); }
@media (max-width: 700px) {
  .steps-nav { gap: 0.35rem; }
  .steps-nav button { flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 0.55rem 0.6rem; }
  .sn-text small { display: none; }
}

/* Schutz-Ring im Kasten „Ihr Schutz“ */
.score-total { flex-wrap: nowrap; gap: 0.9rem; }
.ring { position: relative; display: grid; flex: none; place-items: center; width: 4.5rem; height: 4.5rem; color: var(--muted); }
.ring > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: currentColor; stroke-linecap: round; transition: stroke-dashoffset 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), stroke 0.4s; }
.ring > .ic { position: relative; width: 1.6rem; height: 1.6rem; }
.ring.l2 { color: var(--z2-text); }
.ring.l3 { color: var(--accent); }
.ring.l4 { color: var(--ok); }
/* Kleine Ringe: bei den Zonen in der Zonenfarbe, sonst in der Stufenfarbe */
.ring-sm { width: 1.35rem; height: 1.35rem; }
.ring-sm circle { stroke-width: 9; }
.ring.is-zone { color: var(--zf); }
.rt-level { display: inline-flex; align-items: center; gap: 0.5rem; }
.rt-level .ring-sm { width: 1.5rem; height: 1.5rem; }
.planner-bar .ring-sm { width: 1.9rem; height: 1.9rem; }
.score-total-text { display: grid; gap: 0.15rem; min-width: 0; }
.lvl-btn { font-size: 0.8125rem; }
.lvl-info { display: grid; gap: 0.4rem; padding: 0.75rem 0.9rem; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.lvl-info strong { color: var(--ink); }
.lvl-scale { font-size: 0.8125rem; }

/* Ergebnis in drei Zahlen über dem Konzept */
.result-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.rt { display: grid; align-content: start; gap: 0.25rem; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.rt-label { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.rt strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rt small { color: var(--muted); font-size: 0.75rem; }
.sum-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding-bottom: 0.4rem; }
@media (max-width: 560px) { .result-tiles { grid-template-columns: minmax(0, 1fr); } }

/* „So geht es weiter“ neben dem Formular */
.next-steps { display: grid; gap: 0.75rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.next-steps h3 { font-size: 1.0625rem; }
.next-steps ol { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.next-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: start; }
.ns-ic { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.ns-ic .ic { width: 1.1rem; height: 1.1rem; }
.next-steps li strong { display: block; font-size: 0.9375rem; }
.next-steps li div > span { color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }

/* Dezente Bewegung im Planer */
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } }
.ws-step.is-enter { animation: step-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.pk-list.is-anim .pk-item { animation: reveal-up 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes opt-flash { from { box-shadow: 0 0 0 0 var(--zf); } to { box-shadow: 0 0 0 12px transparent; } }
.opt.is-flash { animation: opt-flash 0.6s ease-out; }
@keyframes zone-pulse { 0% { filter: brightness(1); } 35% { filter: brightness(1.3) saturate(1.15); } 100% { filter: brightness(1); } }
.zone-scope[data-pulse="1"] .scene .z1, .zone-scope[data-pulse="2"] .scene .z2, .zone-scope[data-pulse="3"] .scene .z3,
.zone-scope[data-pulse="all"] .scene :is(.z1, .z2, .z3) { animation: zone-pulse 0.8s ease-out; }
.dots i { transition: background-color 0.25s; }

/* Startseite: Einstieg nach Wohnform */
.home-entry { display: grid; gap: 0.25rem; }
.home-entry-head { display: grid; gap: 0.35rem; }
.home-entry-head h3 { font-size: 1.25rem; }
.home-entry-head p { color: var(--muted); }
.home-entry .ws-tile { background: var(--surface); }
.ws-tile[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
/* Zonen-Ansicht erscheint nach der Wahl der Wohnform */
.zones-teaser.is-shown { animation: reveal-up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.zone-cards-head { color: var(--accent); font-size: 0.9375rem; font-weight: 700; }

/* Leiste mit der gewählten Wohnform über dem Planer */
.home-bar {
  scroll-margin-top: 6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.55rem 0.75rem 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.home-bar .home-thumb { flex: none; width: 4.75rem; }
.hb-text { display: grid; flex: 1 1 15rem; gap: 0.3rem; min-width: 0; }
.hb-label { color: var(--muted); font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; }
.hb-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.hb-chip {
  padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s;
}
.hb-chip:hover { border-color: var(--accent); }
.home-bar .btn .ic { width: 1rem; height: 1rem; }
@media (max-width: 560px) {
  .home-bar { flex-wrap: nowrap; align-items: flex-start; padding: 0.7rem 0.75rem; }
  .home-bar .home-thumb { display: none; }
  .hb-text { flex-basis: 0; }
  .home-bar .btn { flex: none; width: 2.5rem; height: 2.5rem; padding: 0; justify-content: center; }
  .hb-btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hb-chip { padding: 0.25rem 0.6rem; font-size: 0.8125rem; }
}

/* Geteiltes Konzept öffnen */
.share-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.share-banner p { flex: 1 1 18rem; font-size: 0.9375rem; }
.share-banner .btns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }

/* Leiste unten auf dem Handy */
.planner-bar { display: none; }
@media (max-width: 1040px) {
  .planner-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem clamp(16px, 4vw, 40px) calc(0.7rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 -10px 28px -16px rgba(0, 0, 0, 0.35);
  }
  .bar-text { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
  .bar-text span { color: var(--muted); font-size: 0.8125rem; }
  .planner-page { padding-bottom: 4.75rem; }
}

/* Persönliches Konzept */
.concept {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
@media (max-width: 960px) { .concept { grid-template-columns: minmax(0, 1fr); } }
.concept-main, .concept-side { display: grid; gap: 1.25rem; min-width: 0; }
.concept-list, .request-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.concept-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.concept-total strong { font-size: 1.35rem; }
.concept-total > span:last-child { color: var(--muted); font-size: 0.875rem; }
.cz { display: grid; gap: 0.5rem; }
.cz-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ci-list { display: grid; margin: 0; padding: 0; list-style: none; }
.ci {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.ci-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; min-width: 0; }
.ci-name { font-weight: 650; }
.ci-total { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ci-lines { grid-column: 2 / -1; display: grid; gap: 0.35rem; }
.cl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 6.5rem 1.6rem;
  gap: 0.5rem 0.75rem;
  align-items: center;
  font-size: 0.9375rem;
}
.cl-label { min-width: 0; font-weight: 500; }
.cl-label small { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 400; }
.cl-price { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.qty button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}
.qty button:hover:not(:disabled) { background: var(--surface-2); }
.qty button:disabled { color: var(--line); cursor: default; }
.qty output { min-width: 1.6rem; font-variant-numeric: tabular-nums; font-weight: 650; text-align: center; }
.ci-x, .ci-remove {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.ci-x { width: 1.6rem; height: 1.6rem; }
.ci-x .ic { width: 0.9rem; height: 0.9rem; }
.ci-remove .ic { width: 1.1rem; height: 1.1rem; }
.ci-x:hover, .ci-remove:hover { background: var(--surface-2); color: var(--ink); }
span.ci-x { cursor: default; }
@media (max-width: 520px) {
  .ci { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ci-total { grid-column: 2; grid-row: 2; font-size: 0.9375rem; }
  .ci-remove { grid-column: 3; grid-row: 1; }
  .ci-lines { grid-column: 1 / -1; }
  .cl { grid-template-columns: minmax(0, 1fr) auto auto 1.6rem; }
  .cl-label { grid-column: 1 / -1; }
  .cl .qty { grid-column: 1; justify-self: start; }
  .cl-price { grid-column: 2 / 4; }
}
.concept-sum { display: grid; gap: 0.35rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.sum-row span { font-weight: 650; }
.sum-row strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-note { color: var(--muted); font-size: 0.8125rem; }
.concept-empty { display: grid; justify-items: start; gap: 0.6rem; padding-block: 0.25rem; }
.concept-empty .ic { color: var(--muted); }
.concept-empty p { color: var(--muted); }

.leaves-box {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border: 2px dashed var(--accent);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
}
/* Privatsphäre-Balken: voll = alles bleibt im Haus */
.pbar-wrap { display: grid; gap: 0.45rem; }
.pbar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.pbar-head span { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 650; }
.pbar-head .ic { width: 1.15rem; height: 1.15rem; color: var(--muted); }
.pbar-head strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.pbar {
  height: 0.8rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pbar i { display: block; height: 100%; border-radius: inherit; background: var(--pbar-fill, var(--ok)); transition: width 0.4s ease, background-color 0.4s; }
.pbar.is-high { --pbar-fill: var(--ok); }
.pbar.is-mid { --pbar-fill: var(--z2); }
.pbar.is-low { --pbar-fill: var(--warn); }
.pbar-label { color: var(--muted); font-size: 0.875rem; }
.pbar-wrap.is-compact { gap: 0.35rem; }
.pbar-wrap.is-compact .pbar-head span { font-size: 0.9375rem; }
.pbar-wrap.is-compact .pbar-head strong { font-size: 1rem; }
.pbar-wrap.is-compact .pbar { height: 0.6rem; }
.pbar-wrap.is-compact .pbar-label { font-size: 0.8125rem; }
.score-privacy {
  display: block;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s;
}
.score-privacy:hover { border-color: var(--accent); color: var(--ink); }

.pmore summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.pmore summary::-webkit-details-marker { display: none; }
.pmore summary::after { content: "▾"; transition: transform 0.2s; }
.pmore[open] summary::after { transform: rotate(180deg); }
.pm-list { display: grid; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.pm-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
}
.pm-name { font-weight: 650; }
.pm-name small { color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.pm-impact { color: var(--warn); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-why { grid-column: 1 / -1; color: var(--muted); font-size: 0.875rem; }
.pm-item .link-btn { grid-column: 1 / -1; margin-top: 0.15rem; text-align: left; }
.pm-ok { margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; }
.pm-note { margin-top: 0.6rem; color: var(--muted); font-size: 0.8125rem; }

.service-check {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 0.35rem 0.85rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.service-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.service-check input { width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--accent); }
.service-check .ic { width: 1.4rem; height: 1.4rem; color: var(--accent); }
.service-check strong { display: block; }
.service-check span { display: block; color: var(--muted); font-size: 0.875rem; }
.service-check .svc-price { margin-top: 0.35rem; color: var(--ink); font-weight: 650; }
.service-check .svc-price:empty { display: none; }
/* Leitstelle ohne Alarmzentrale: ausgegraut mit Hinweis */
.service-check:has(input:disabled) { cursor: default; opacity: 0.72; }
.service-check .svc-off { margin-top: 0.35rem; color: var(--warn); font-size: 0.8125rem; }

/* Wohnsituation über der Liste, Teilen und Drucken */
.concept-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; color: var(--muted); font-size: 0.875rem; }
.concept-meta strong { color: var(--ink); font-weight: 650; }
.concept-meta .ic { width: 1.05rem; height: 1.05rem; color: var(--accent); }
.concept-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.share-status { flex: 1 1 100%; color: var(--muted); font-size: 0.875rem; }
.share-status input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
}
.sum-row.is-sub strong { font-size: 1.125rem; }
.sum-notes { display: grid; gap: 0.2rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.8125rem; }
.print-head { display: none; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field .opt-hint { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.65rem; align-items: start; color: var(--muted); font-size: 0.875rem; }
.consent input { width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; accent-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.form-status { padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 0.9375rem; }
.copy-box {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: 0.8125rem/1.5 var(--font-body);
}
.form-note { color: var(--muted); font-size: 0.8125rem; }

/* Kurze Rückmeldung unten */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  max-width: min(34rem, calc(100% - 32px));
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9375rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast a { color: inherit; font-weight: 600; }
@media (max-width: 1040px) { .planner-page .toast { bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); } }

/* Zähler in der Navigation und Buttons auf der Produktseite */
.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.3rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 0.75rem var(--font-body);
  vertical-align: 1px;
}
.add-btn .ic-on { display: none; }
.add-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.add-btn[aria-pressed="true"] .ic-on { display: block; }
.add-btn[aria-pressed="true"] .ic-off { display: none; }

/* Service-Karten: ruhige Karten mit Symbol, Satz und drei Stichpunkten, gleicher Stil wie die Gewerbe-Seite (.biz) */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }   /* seit Version 51 acht Karten: vier Spalten */
@media (max-width: 1200px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }

/* Saisonhinweis auf der Startseite (Oktober bis Januar, startseite.js blendet ihn ein) */
.season { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1rem; padding: 0.65rem 3rem 0.65rem 1rem; position: relative; background: var(--accent-soft); color: var(--ink); font-size: 0.9375rem; }
.season .ic { width: 1.15rem; height: 1.15rem; color: var(--accent); flex: none; }
.season > a { font-weight: 650; white-space: nowrap; }
.season-close { position: absolute; top: 50%; right: 0.75rem; transform: translateY(-50%); display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.season-close:hover { background: var(--surface); color: var(--ink); }
.season-close .ic { width: 1rem; height: 1rem; color: inherit; }

/* Seite „Service und Kosten“: Vergleichstabelle Kaufen gegen Mieten (Grundstil .cmp aus dem Planer) */
.cmp-wide { font-size: 0.9375rem; }
.cmp-wide th, .cmp-wide td { text-align: left; vertical-align: top; white-space: normal; padding: 0.75rem 0.8rem; }
.cmp-wide thead th:not(:first-child) { color: var(--ink); font-size: 0.875rem; width: 38%; }
.cmp-wide td small { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.cmp-wide .is-zero { color: var(--ok); }
.cmp-wide td:nth-child(2) { background: var(--accent-soft); }

/* Seite „Vorbeugen und Notfall“: Soforthilfe-Kasten und Urlaubs-Checkliste */
.emergency { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 1.5rem; align-items: center; padding: clamp(1.2rem, 2.5vw, 1.75rem); border: 1.5px solid var(--warn); border-radius: var(--radius); background: var(--warn-soft); }
.emergency .eyebrow { color: var(--warn); }
.emergency strong { display: block; margin: 0.35rem 0 0.4rem; font-size: 1.25rem; }
.emergency strong a { color: var(--ink); text-decoration-color: var(--warn); }
.emergency p:not(.eyebrow) { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 640px) { .emergency { grid-template-columns: minmax(0, 1fr); } }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.check-list label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; height: 100%; padding: 0.9rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.check-list input { width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--accent); }
.check-list span { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.check-list b { display: block; color: var(--ink); }
.check-list label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check-list label:has(input:checked) b { color: var(--muted); text-decoration: line-through; }
@media (max-width: 760px) { .check-list { grid-template-columns: minmax(0, 1fr); } }
.check-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; color: var(--muted); font-size: 0.9375rem; }
.biz-text { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.more { font-weight: 600; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* Warum lokal: Datenwege im Vergleich */
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .routes { grid-template-columns: minmax(0, 1fr); } }
.route {
  display: grid;
  align-content: start;
  gap: 1rem;
  margin: 0;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1.5px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg);
  min-width: 0;
}
.route.is-local { border-color: var(--ok); }
.route.is-cloud { border-color: var(--z1); }
.route.is-cloud .route-tag { color: var(--z1-text); }
.route figcaption { display: grid; gap: 0.2rem; }
.route-tag { font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.route.is-local .route-tag { color: var(--ok); }
.route-count { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 0.9vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.route-sub { color: var(--muted); font-size: 0.9375rem; }
/* Datenweg als Reihe: Bereiche im Hintergrund, Geräte davor, wandernde Punkte auf der Leitung */
.flowmap {
  --wire-top: calc(2.6rem + 1.625rem);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 2.6rem auto 1rem;
}
.fm-zone {
  grid-row: 1 / -1;
  margin: 0 3px;
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  background: var(--surface);
}
:is(.route.is-cloud, .flowmap.is-cloud) .fm-zone.is-net { border-color: transparent; background: var(--z1-soft); }
:is(.route.is-local, .flowmap.is-local) .fm-zone.is-home { border-color: var(--ok); background: var(--ok-soft); }
:is(.route.is-local, .flowmap.is-local) .fm-zone.is-away { border-color: transparent; background: var(--accent-soft); }
.fm-zlabel { display: flex; align-items: center; gap: 0.35rem; padding: 0.65rem 0.75rem 0; color: var(--muted); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.fm-zlabel .ic { width: 0.95rem; height: 0.95rem; }
:is(.route.is-cloud, .flowmap.is-cloud) .is-net .fm-zlabel { color: var(--z1-text); }
:is(.route.is-local, .flowmap.is-local) .is-home .fm-zlabel { color: var(--ok); }
:is(.route.is-local, .flowmap.is-local) .is-away .fm-zlabel { color: var(--accent); }
.fm-node { position: relative; z-index: 2; grid-row: 2; display: grid; justify-items: center; align-content: start; gap: 0.4rem; min-width: 0; padding: 0 0.2rem; text-align: center; }
.fm-ic {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.fm-ic .ic { width: 1.5rem; height: 1.5rem; }
.fm-node.is-risk .fm-ic { border-color: var(--z1); color: var(--z1-text); }
:is(.route.is-local, .flowmap.is-local) .fm-ic { border-color: var(--ok); color: var(--ok); }
:is(.route.is-local, .flowmap.is-local) .fm-node.is-own .fm-ic { border-color: var(--accent); color: var(--accent); }
.fm-lb { font-size: 0.875rem; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.fm-lb small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.fm-wire {
  position: absolute;
  z-index: 1;
  top: var(--wire-top);
  left: calc((var(--from) - 0.5) * 25%);
  right: calc((4.5 - var(--to)) * 25%);
  height: 4px;
  margin-top: -2px;
  border-radius: 4px;
  color: var(--z1);
}
.fm-wire::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0.3; }
.fm-wire.is-rec { color: var(--ok); }
.fm-wire.is-vpn { color: var(--accent); }
.fm-wire.is-vpn::before { opacity: 1; background: repeating-linear-gradient(90deg, currentColor 0 8px, transparent 8px 14px); height: 2px; top: 1px; }
.fm-wire i { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: currentColor; opacity: 0; }
.flowmap.is-live .fm-wire i { animation: fm-flow 3.6s linear infinite; }
.flowmap.is-live .fm-wire i:nth-child(2) { animation-delay: -1.2s; }
.flowmap.is-live .fm-wire i:nth-child(3) { animation-delay: -2.4s; }
.flowmap.is-live .fm-wire.is-rec i { animation-duration: 1.6s; }
.flowmap.is-live .fm-wire.is-rec i:nth-child(2) { animation-delay: -0.8s; }
.flowmap.is-live .fm-wire.is-vpn i { animation-duration: 3s; }
.flowmap.is-live .fm-wire.is-vpn i:nth-child(2) { animation-delay: -1.5s; }
@keyframes fm-flow { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.fm-lock {
  position: absolute;
  z-index: 3;
  top: var(--wire-top);
  left: 75%;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.fm-lock .ic { width: 1rem; height: 1rem; stroke-width: 2.2; }
@media (max-width: 480px) {
  .fm-zone { margin: 0 2px; }
  .fm-zlabel { justify-content: center; padding: 0.6rem 0.3rem 0; font-size: 0.6875rem; }
  .fm-zlabel .ic { display: none; }
  .fm-lb { font-size: 0.8125rem; }
  .fm-lb small { font-size: 0.6875rem; }
}

/* Startseite: zwei Wege als kurze Vorschau */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 760px) { .ways { grid-template-columns: minmax(0, 1fr); } }
.way {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1rem;
  align-content: start;
  padding: clamp(1.2rem, 2.5vw, 1.6rem);
  border: 1.5px solid var(--ok);
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg);
}
.way.is-online { border-color: var(--z1); }
.way-icon { grid-row: span 3; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--ok-soft); color: var(--ok); }
.way.is-online .way-icon { background: var(--z1-soft); color: var(--z1-text); }
.way-icon .ic { width: 1.5rem; height: 1.5rem; }
.way h3 { font-size: 1.25rem; }
.way > p { color: var(--muted); }
.way-points { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.35rem 0 0; padding: 0; list-style: none; }
.way-points li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 0.8125rem; font-weight: 700; }
.way.is-online .way-points li { background: var(--z1-soft); color: var(--z1-text); }
.way-points .ic { width: 0.9rem; height: 0.9rem; stroke-width: 2.4; }
.way .flowmap { grid-column: 1 / -1; margin-top: 0.85rem; }
.ways-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.ways-cta span { color: var(--muted); }
/* Service-Übersicht der Startseite (seit Version 71): acht Kacheln mit Symbol, Titel und einer Zeile; die ausführlichen Karten stehen auf service.html#leistungen */
.svc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.svc-tile { display: grid; align-content: start; justify-items: start; gap: 0.5rem; padding: 1.1rem 1.15rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.svc-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.svc-tile .biz-icon { margin-bottom: 0.25rem; }
.svc-tile strong { font-size: 1.0625rem; font-weight: 650; line-height: 1.25; }
.svc-tile > span:last-child { color: var(--muted); font-size: 0.875rem; line-height: 1.4; }
@media (max-width: 1040px) { .svc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; } .svc-tile { gap: 0.4rem; padding: 0.95rem 1rem 1.05rem; } .svc-tile strong { font-size: 1rem; } }
.biz[id] { scroll-margin-top: 2.25rem; }

/* Seite „Lokal oder online“ */
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump a { padding: 0.4rem 0.85rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: border-color 0.15s; }
.jump a:hover { border-color: var(--accent); color: var(--ink); }

.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
@media (max-width: 860px) { .pc-grid { grid-template-columns: minmax(0, 1fr); } }
.pc-col {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: clamp(1.2rem, 2.5vw, 1.75rem);
  border: 1.5px solid var(--ok);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.pc-col.is-online { border-color: var(--z1); }
.pc-head { display: flex; align-items: center; gap: 0.9rem; }
.pc-icon { display: grid; flex: none; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--ok-soft); color: var(--ok); }
.pc-col.is-online .pc-icon { background: var(--z1-soft); color: var(--z1-text); }
.pc-icon .ic { width: 1.5rem; height: 1.5rem; }
.pc-head h3 { font-size: 1.375rem; }
.pc-head p { color: var(--muted); font-size: 0.9375rem; }
.pc-sub { margin: 0.35rem 0 -0.2rem; color: var(--ok); font-size: 0.9375rem; font-weight: 700; }
.nowrap { white-space: nowrap; }
.pc-sub.is-con { color: var(--warn); }
.pc-list { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.pc-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: start; }
.pc-mark { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-top: 0.05rem; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.pc-list.is-con .pc-mark { background: var(--warn-soft); color: var(--warn); }
.pc-mark .ic { width: 0.95rem; height: 0.95rem; stroke-width: 2.6; }
.pc-list b { display: block; font-weight: 650; }
.pc-list p { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }

.fit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .fit-grid { grid-template-columns: minmax(0, 1fr); } }
.fit { display: grid; align-content: start; gap: 0.75rem; padding: clamp(1.2rem, 2.5vw, 1.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.fit-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--ok-soft); color: var(--ok); }
.fit.is-online .fit-icon { background: var(--z1-soft); color: var(--z1-text); }
.fit.is-mix .fit-icon { background: var(--accent-soft); color: var(--accent); }
.fit h3 { font-size: 1.125rem; }
.fit ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.fit li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.fit li .ic { width: 1rem; height: 1rem; margin-top: 0.15rem; color: var(--ok); stroke-width: 2.4; }
.fit.is-online li .ic { color: var(--z1-text); }
.fit.is-mix li .ic { color: var(--accent); }

.tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1040px) { .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tips { grid-template-columns: minmax(0, 1fr); } }
.tip { display: grid; align-content: start; gap: 0.6rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.tip-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--z1-soft); color: var(--z1-text); }
.tip h3 { font-size: 1.0625rem; }
.tip p { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }

/* Was bleibt im Haus, was verlässt es (Seite „Lokal oder online“), im Stil des Vergleichs */
.stay-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.stay-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 0.85rem; align-items: start; }
.stay-ic { grid-row: span 2; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--ok-soft); color: var(--ok); }
.pc-col.is-online .stay-ic { background: var(--z1-soft); color: var(--z1-text); }
.stay-ic .ic { width: 1.25rem; height: 1.25rem; }
.stay-list b { display: block; font-weight: 650; }
.stay-list p { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.stay-list .chip { grid-column: 2; }
.chip { margin-top: 0.25rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: start;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--muted);
}
.chip .ic { width: 0.95rem; height: 0.95rem; }
.chip-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.chip-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.chip-out { background: var(--z1-soft); border-color: transparent; color: var(--z1-text); }

/* Seite „Gewerbe“: Zonen ohne Link, Branchen, tagsüber und nach Feierabend, Hinweise */
.zone-card.is-static { grid-template-columns: auto minmax(0, 1fr); cursor: default; }
.zone-card.is-static::after { content: none; }
.zone-scope.is-static .scene :is(.z1, .z2, .z3) { cursor: default; }

.biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .biz-grid { grid-template-columns: minmax(0, 1fr); } }
.biz { display: grid; align-content: start; gap: 0.85rem; padding: clamp(1.2rem, 2.5vw, 1.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); min-width: 0; }
.biz-head { display: flex; align-items: center; gap: 0.85rem; }
.biz-icon { display: grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.biz-icon .ic { width: 1.35rem; height: 1.35rem; }
.biz-head h3 { font-size: 1.1875rem; }
.biz-head p { color: var(--muted); font-size: 0.875rem; }
.biz-risk { padding: 0.6rem 0.8rem; border-radius: 10px; background: var(--surface-2); font-size: 0.9375rem; line-height: 1.45; }
.biz ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.biz li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.biz li .ic { width: 1rem; height: 1rem; margin-top: 0.15rem; color: var(--accent); stroke-width: 2.4; }

.dn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .dn-grid { grid-template-columns: minmax(0, 1fr); } }
.dn-col { display: grid; align-content: start; gap: 1.1rem; padding: clamp(1.2rem, 2.5vw, 1.75rem); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--surface); box-shadow: var(--shadow-sm); min-width: 0; }
.dn-col.is-night { border-color: var(--band-line); background: var(--band-bg); color: var(--band-fg); }
.dn-head { display: flex; align-items: center; gap: 0.9rem; }
.dn-icon { display: grid; flex: none; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--z2-soft); color: var(--z2-text); }
.dn-icon .ic { width: 1.5rem; height: 1.5rem; }
.dn-head h3 { font-size: 1.375rem; }
.dn-head p { color: var(--muted); font-size: 0.9375rem; }
.dn-col .stay-ic { background: var(--accent-soft); color: var(--accent); }
.dn-col.is-night .dn-icon, .dn-col.is-night .stay-ic { background: rgba(255, 255, 255, 0.08); color: var(--band-fg); }
.dn-col.is-night .dn-head p, .dn-col.is-night .stay-list p { color: var(--band-muted); }

.note-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.85rem; align-items: start; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.note-box > .ic { width: 1.35rem; height: 1.35rem; margin-top: 0.1rem; color: var(--accent); }
.note-box p { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.note-box b { color: var(--ink); }
.fineprint { color: var(--muted); font-size: 0.875rem; }

/* Rückfall: Browser, die hidden bei SVG nicht beachten */
.zones-svg[hidden] { display: none !important; }

/* Kamera-Check (Planer): kleines Fenster „Darf ich hier filmen?“ */
dialog.kc {
  width: min(100% - 2rem, 36rem);
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog.kc::backdrop { background: rgba(10, 20, 22, 0.5); }
.kc-inner { position: relative; display: grid; gap: 0.9rem; padding: clamp(1.25rem, 3vw, 1.75rem); }
.kc-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.kc-close:hover { border-color: var(--accent); color: var(--accent); }
.kc-close .ic { width: 1.1rem; height: 1.1rem; stroke-width: 2.2; }
.kc-inner h2 { padding-right: 2.75rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); }
.kc-lead { color: var(--muted); }
.kc-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kc-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.kc-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.kc-opt:hover { border-color: var(--accent); }
.kc-opt.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.kc-opt:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.kc-result { display: grid; gap: 0.75rem; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.kc-verdict { font-weight: 700; }
.kc-verdict.is-none { color: var(--muted); font-weight: 500; }
.kc-verdict.is-ok { color: var(--ok); }
.kc-verdict.is-hint { color: var(--accent); }
.kc-verdict.is-no { color: var(--warn); }
.kc-list { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.kc-list:empty { display: none; }
.kc-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: start; }
.kc-mark { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-top: 0.05rem; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.kc-mark .ic { width: 0.95rem; height: 0.95rem; stroke-width: 2.4; }
.kc-list li.is-hint .kc-mark { background: var(--accent-soft); color: var(--accent); }
.kc-list li.is-no .kc-mark { background: var(--warn-soft); color: var(--warn); }
.kc-list b { display: block; font-weight: 650; }
.kc-list p { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.opt-law .link-btn { font-size: inherit; }

/* Startseite: Hinweis auf die Gewerbe-Seite unter den Wohnform-Kacheln */
.hint-row { display: flex; flex-wrap: wrap; gap: 0.6rem 2.5rem; margin-top: 1rem; }
.hint-row .biz-hint { margin-top: 0; }
.biz-more { font-size: 0.9375rem; }
.biz-more a { font-weight: 650; }
.biz-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin-top: 1rem; color: var(--muted); font-size: 0.9375rem; }
.biz-hint .ic { width: 1.2rem; height: 1.2rem; color: var(--accent); }
.biz-hint a { font-weight: 650; }

/* Ablauf als Zeitstrahl, der sich beim Erscheinen füllt */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Vier Schritte (Seite „Vorbeugen und Notfall“): Linie endet unter dem letzten Punkt */
@media (min-width: 1041px) {
  .timeline.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .timeline.is-4::before, .timeline.is-4::after { left: 12.5%; right: 12.5%; }
}
.timeline::before, .timeline::after {
  content: "";
  position: absolute;
  top: 1.625rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--line);
}
.timeline::after { background: var(--accent); transform-origin: left center; transition: transform 1.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s; }
.reveal-on .timeline:not(.is-in)::after { transform: scaleX(0); }
.tl-step { position: relative; display: grid; justify-items: center; align-content: start; gap: 0.45rem; text-align: center; min-width: 0; }
.tl-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.35rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  transition: background-color 0.35s, border-color 0.35s, color 0.35s;
  transition-delay: calc(0.25s + var(--i, 0) * 0.34s);
}
.tl-dot .ic { width: 1.35rem; height: 1.35rem; }
.reveal-on .timeline:not(.is-in) .tl-dot { border-color: var(--line); background: var(--surface); color: var(--muted); }
.tl-meta { font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--accent); }
.tl-step h3 { font-size: 1.0625rem; }
.tl-step p { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
@media (max-width: 1040px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .timeline::before, .timeline::after { display: none; }
  /* Verbindungslinien von Schritt zu Schritt */
  .tl-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 3.25rem;
    bottom: -1.4rem;
    left: calc(1.625rem - 1px);
    width: 2px;
    background: var(--accent);
    transform-origin: center top;
    transition: transform 0.35s ease;
    transition-delay: calc(0.4s + var(--i, 0) * 0.34s);
  }
  .reveal-on .timeline:not(.is-in) .tl-step::after { transform: scaleY(0); }
  .tl-step { grid-template-columns: 3.25rem minmax(0, 1fr); justify-items: start; column-gap: 1.1rem; row-gap: 0.3rem; text-align: left; }
  .tl-dot { grid-row: span 3; margin-bottom: 0; }
}

/* Ablauf zum Aufklappen (seit Version 71, Startseite): Schritt antippen zeigt den Text; Linie, Punkt und Einblendung bleiben wie bisher */
.tl-step.has-more { display: block; }
.tl-more > summary { display: grid; justify-items: center; align-content: start; gap: 0.45rem; list-style: none; cursor: pointer; }
.tl-more > summary::-webkit-details-marker { display: none; }
.tl-more > summary:hover h3 { color: var(--accent); }
.tl-more .tl-chev { display: inline-block; width: 1rem; height: 1rem; margin-left: 0.3rem; vertical-align: -0.1em; color: var(--accent); stroke-width: 2.4; transition: transform 0.2s; }
.tl-more[open] .tl-chev { transform: rotate(180deg); }
.tl-more > p { margin-top: 0.5rem; text-align: center; }
@media (max-width: 1040px) {
  .tl-more > summary { grid-template-columns: 3.25rem minmax(0, 1fr); justify-items: start; column-gap: 1.1rem; row-gap: 0.3rem; text-align: left; }
  .tl-more > summary .tl-dot { grid-row: span 2; }
  .tl-more > p { padding-left: calc(3.25rem + 1.1rem); text-align: left; }
}
/* Der ganze Ablauf klappt auf (Kommentar 10.10.2026): Knopf unter der Überschrift, zu Beginn zu; die Schritte darin klappen weiter einzeln */
.tl-wrap > summary { list-style: none; }
.tl-wrap > summary::-webkit-details-marker { display: none; }
.tl-wrap > summary .tl-chev { margin: 0 0.1rem 0 -0.2rem; color: currentColor; }
.tl-wrap[open] > summary { margin-bottom: 2rem; }
.tl-wrap[open] > summary .tl-chev { transform: rotate(180deg); }
.tl-wrap:not([open]) .tw-close, .tl-wrap[open] .tw-open { display: none; }
@media (prefers-reduced-motion: reduce) { .tl-more .tl-chev, .svc-tile { transition: none; } }

/* Häufige Fragen zum Aufklappen */
.faq { display: grid; gap: 0.75rem; max-width: 54rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover { border-color: var(--accent); }
.faq-item[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.0625rem; }
.faq-chev { width: 1.3rem; height: 1.3rem; color: var(--accent); transition: transform 0.25s; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-item p { padding: 0 1.25rem 1.2rem; color: var(--muted); max-width: 46rem; }
/* Weiches Aufklappen in Browsern, die es können; sonst klappt es einfach auf */
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }

/* Kontakt */
.contact {
  padding-block: clamp(4rem, 9vw, 6.5rem);
  background: var(--band-bg);
  color: var(--band-fg);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.contact-copy { display: grid; gap: 1.1rem; }
.contact .eyebrow { color: var(--band-muted); }
.contact-copy p:not(.eyebrow) { color: var(--band-muted); font-size: 1.125rem; max-width: 34rem; }
.contact-card {
  display: grid;
  margin: 0;
  overflow: hidden;
  font-style: normal;
  border: 1px solid var(--band-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}
.contact-card > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 1.05rem 1.35rem;
  border-bottom: 1px solid var(--band-line);
}
.contact-card > div:last-child { border-bottom: 0; }
.contact-card .k {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--band-muted);
}
.contact-card a, .contact-card .v {
  color: var(--band-fg);
  font-size: 1.1875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-card a:hover { color: var(--band-fg); text-decoration-thickness: 2px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .contact-card > div { grid-template-columns: minmax(0, 1fr); } }
.contact-card .k { display: inline-flex; align-items: center; gap: 0.5rem; }
.contact-card .k .ic { width: 1rem; height: 1rem; }
.contact-copy .contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--band-line);
  border-radius: 999px;
  color: var(--band-fg);
  font-size: 0.9375rem;
  font-weight: 500;
}
.pulse { width: 0.6rem; height: 0.6rem; flex: none; border-radius: 50%; background: #63c58c; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 197, 140, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(99, 197, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 197, 140, 0); }
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }

/* ---------- Einblenden beim Scrollen (Startseite, gesteuert von startseite.js) ---------- */
.reveal-on [data-reveal]:not(.is-in) { opacity: 0; }
.reveal-on [data-reveal].is-in { animation: reveal-up 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
.reveal-on .tl-step[data-reveal].is-in { animation-delay: calc(0.15s + var(--i, 0) * 0.34s); }
.reveal-on .timeline[data-reveal]:not(.is-in) { opacity: 1; }
.reveal-on .timeline[data-reveal].is-in { animation: none; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(22px); } }
:root { interpolate-size: allow-keywords; }

/* Fußzeile */
.site-footer { padding-block: 2.5rem; font-size: 0.9375rem; color: var(--muted); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a { color: var(--ink); }
.footer-note { flex-basis: 100%; max-width: 46rem; }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal .wrap { max-width: 48rem; display: grid; gap: 1rem; }
.legal h1 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.legal h2 {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); }
.legal ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.draft-note {
  padding: 0.9rem 1.1rem;
  border: 1.5px dashed var(--signal);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.9375rem;
}
.ph {
  padding: 0 0.2em;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--ink);
}

/* ---------- Produktseite ---------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero .wrap { display: grid; gap: 1.25rem; }
.page-hero .lead { max-width: 44rem; }
.back { font-weight: 600; text-decoration: none; }
.back:hover { text-decoration: underline; }

.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2.5rem;
  padding-block: 1.75rem 0.5rem;
}
.mode { display: grid; gap: 0.5rem; align-content: start; }
.mode p { color: var(--muted); font-size: 0.9375rem; max-width: 34rem; }
@media (max-width: 700px) { .modes { grid-template-columns: minmax(0, 1fr); } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: start;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--muted);
}
.badge svg { width: 1rem; height: 1rem; }
.badge-local { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.badge-online { background: var(--surface); }

.cat {
  display: grid;
  gap: 1.75rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.cat:last-of-type { border-bottom: 0; }
.cat-head { display: grid; gap: 0.35rem; }
.cat-head p { color: var(--muted); max-width: 44rem; }
.cat-note { color: var(--muted); padding-block: 2rem; }

/* Geräte-Übersicht: Karten je Geräteart, aus anfrage.js und preise.js erzeugt */
.card.is-type { grid-template-rows: none; }
.gc-head { display: flex; align-items: center; gap: 0.85rem; }
.gc-icon { display: grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.gc-icon .ic { width: 1.35rem; height: 1.35rem; }
.gc-head h3 { font-size: 1.125rem; }
.gc-zone { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.gc-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gc-price { display: grid; gap: 0.1rem; min-width: 0; }
.gc-price strong { font-size: 1.125rem; }
.gc-price small { color: var(--muted); font-size: 0.8125rem; line-height: 1.4; }
.card.is-type .card-foot { align-items: flex-start; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: minmax(0, 1fr); } }

.card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body { display: grid; align-content: start; gap: 0.8rem; padding: 1.35rem; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.card-body > p { color: var(--muted); font-size: 0.9375rem; }
.leaves {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ink);
}
.leaves span {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
}
.card[data-mode="lokal"] .leaves { border-color: var(--ok); }
.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.25rem;
}
.price { font-weight: 650; }

/* Produkt-Zeichnungen */

.cta-band {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--band-bg);
  color: var(--band-fg);
}
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.cta-band .copy { display: grid; gap: 0.75rem; max-width: 40rem; }
.cta-band p { color: var(--band-muted); font-size: 1.125rem; }
.btn-on-band { background: var(--band-fg); border-color: var(--band-fg); color: var(--band-bg); }
.btn-on-band:hover { background: var(--band-muted); border-color: var(--band-muted); color: var(--band-bg); }
.cta-band .btn-glass { color: var(--band-fg); border-color: var(--band-line); background: transparent; }
.cta-band .btn-glass:hover { color: var(--band-fg); border-color: var(--band-fg); background: rgba(255, 255, 255, 0.08); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on [data-reveal]:not(.is-in) { opacity: 1; }
  .zones-teaser.is-shown { animation: none; }
  .reveal-on [data-reveal].is-in, .pulse,
  .fm-wire i { display: none; }
  .timeline::after, .tl-step::after, .tl-dot, .faq-chev, .jump a { transition: none; }
  .faq-item::details-content { transition: none; }
  .btn, .card, .scene polygon, .opt, .opt-toggle, .score-zone, .zone-card, .toast, .pbar i { transition: none; }
  .card:hover { transform: none; }
  .ws-step.is-enter, .pk-list.is-anim .pk-item, .opt.is-flash, .zone-scope[data-pulse] .scene :is(.z1, .z2, .z3) { animation: none; }
  .ring-fg, .dots i, .sn-no, .steps-nav button, .pk-compare summary .ic { transition: none; }
}

/* ---------- Druck: nur das Sicherheitskonzept ---------- */
/* ---------- Dokument: Druckvorlage des Konzepts (Vorschau über den Test-Knopf, Ausgabe über den Druckdialog) ---------- */
.dokument { display: none; }
body.is-doc { background: #e9ecea; }
body.is-doc > :not(main), body.is-doc main > :not(.dokument), body.is-doc .toast { display: none !important; }
body.is-doc .dokument { display: block; }
.doc-tools {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.7rem clamp(16px, 4vw, 40px);
  border-bottom: 1px solid #d9ddd9;
  background: #fff;
  color: #12181a;
}
.doc-tools .link-btn { display: inline-flex; align-items: center; gap: 0.35rem; }
.doc-tools .ic { width: 1rem; height: 1rem; }
.doc-hint { flex: 1 1 20rem; color: #5b666c; font-size: 0.8125rem; line-height: 1.45; }
.doc-sheet {
  /* Immer helle Farben, wie auf Papier, auch bei dunklem Bildschirm */
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f2f4f2; --ink: #12181a; --muted: #5b666c; --line: #d9ddd9;
  --accent: #0c5b60; --accent-strong: #084449; --accent-soft: #e3efed; --on-accent: #ffffff;
  --ok: #2a7a47; --ok-soft: #e1f1e6; --warn: #b4461c; --warn-soft: #fbece4;
  --z1: #2f6fbf; --z1-ink: #ffffff; --z1-soft: #e3eefa; --z1-text: #2a62aa;
  --z2: #f0b400; --z2-ink: #3a2a00; --z2-soft: #fdf3d3; --z2-text: #8a6100;
  --z3: #c9463f; --z3-ink: #ffffff; --z3-soft: #fbe6e3; --z3-text: #b23c35;
  color-scheme: light;
  display: grid;
  gap: 1.1rem;
  width: min(210mm, 100%);
  margin: 1.5rem auto 3rem;
  padding: 16mm 15mm 14mm;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.45);
  font-size: 10.5pt;
  line-height: 1.45;
}
.doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--ink); }
.doc-brand { display: flex; align-items: center; gap: 0.65rem; }
.doc-brand > div { display: grid; }
.doc-mark { width: 2.4rem; height: 2.4rem; flex: none; color: var(--accent); }
.doc-brand strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.01em; }
.doc-brand span, .doc-meta { color: var(--muted); font-size: 0.8125rem; }
.doc-meta { display: grid; text-align: right; }
.doc-meta span:first-child { color: var(--ink); font-weight: 700; }
.doc-title h1 { margin-top: 0.15rem; font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.1; }
.doc-lead { margin-top: 0.3rem; color: var(--muted); }
.doc-intro { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; align-items: center; }
.doc-intro .home-thumb { width: 100%; }
.doc-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.doc-kpi { display: grid; align-content: start; gap: 0.2rem; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 10px; }
.doc-kpi strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.doc-kpi small { color: var(--muted); font-size: 0.75rem; }
.doc-why { padding: 0.75rem 0.9rem; border-radius: 10px; background: var(--accent-soft); font-size: 0.9375rem; line-height: 1.5; }
.doc-text { color: var(--muted); }
.doc-zone { display: grid; gap: 0.4rem; }
.doc-zone h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; }
.doc-zl { margin-left: auto; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.doc-table th, .doc-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table thead th { border-bottom-color: var(--ink); color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.doc-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-table td small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 500; line-height: 1.4; }
.doc-tag { display: inline-block; padding: 0.05rem 0.45rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.6875rem; font-weight: 600; vertical-align: middle; }
.doc-sum { display: grid; gap: 0.35rem; padding-top: 0.8rem; border-top: 2px solid var(--ink); }
.doc-sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.doc-sum-row span { font-weight: 650; }
.doc-sum-row small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.doc-sum-row strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-sum-row.is-grand strong { color: var(--accent); font-size: 1.4rem; }
.doc-sum-row strong.is-zero { color: var(--ok); }
.doc-list { display: grid; gap: 0.25rem; margin: 0; padding-left: 1.1rem; }
.doc-small { color: var(--muted); font-size: 0.8125rem; }
.doc-section { display: grid; gap: 0.4rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.doc-section h3 { font-size: 1rem; }
.doc-privacy strong { font-family: var(--font-display); font-size: 1.1rem; }
.doc-steps { display: grid; gap: 0.35rem; margin: 0; padding-left: 1.2rem; }
.doc-steps strong { display: block; }
.doc-steps span { color: var(--muted); font-size: 0.875rem; }
.doc-foot { display: grid; gap: 0.15rem; padding-top: 0.7rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }
@media (max-width: 700px) {
  .doc-intro, .doc-kpis { grid-template-columns: minmax(0, 1fr); }
  .doc-sheet { padding: 1.25rem 1rem; }
}
/* Test-Knopf (vor dem Livegang entfernen) */
.btn.is-test { border: 2px dashed var(--warn); background: var(--warn-soft); color: var(--warn); }
.btn.is-test:hover { background: var(--warn-soft); color: var(--warn); }

/* ---------- Druck: nur die Druckvorlage des Konzepts ---------- */
/* ---------- Planer in drei Schritten (seit 09.10.2026) ----------
   body.step-1/2/3 zeigt nur einen Schritt. Die Schrittleiste klebt unter der Kopfzeile; --hdr und --stepbar-h setzt planer.js
   (gemessene Höhen), damit Zonen-Reiter, Kasten und Sprungziele darunter beginnen. */
:root { --hdr: 4.2rem; --stepbar-h: 7rem; }
.stepbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--hdr)); z-index: 9; background: var(--bg); border-bottom: 1px solid var(--line); }
.stepbar .wrap { display: grid; gap: 0.5rem; padding-block: 0.55rem 0.5rem; }
.stepbar .steps-nav { margin: 0; gap: 0.4rem; }
.stepbar .steps-nav button { padding: 0.45rem 0.65rem; }
.draft-slim { margin: 0.85rem 0 0; padding: 0.4rem 0.75rem; font-size: 0.8125rem; }
.planner-page.step-1 #planer, .planner-page.step-1 #anfrage, .planner-page.step-1 .planner-bar { display: none !important; }
.planner-page.step-2 #planer-hero, .planner-page.step-3 #planer-hero { display: none; }
.planner-page.step-2 #anfrage { display: none; }
.planner-page.step-2 .planner { margin-top: 1rem; }
.planner-page.step-3 .planner-main, .planner-page.step-3 .planner-side { display: none; }
.planner-page.step-3 .planner { padding-bottom: 0; gap: 0; }
.planner-page.step-3 #anfrage { padding-top: 1.25rem; }
.planner-page.step-3 #anfrage .section-head { gap: 0.5rem; }
.planner-page.step-3 #anfrage .stack { gap: clamp(1.25rem, 3vw, 2rem); }
.home-start, .zone-options, .paket, .request-form, .concept { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--hdr) + var(--stepbar-h) + 0.75rem); }

/* Zeile „Ihr Zuhause“ in der Schrittleiste */
.home-bar { display: grid; gap: 0.45rem; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.hb-line { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; min-width: 0; }
.hb-text { display: flex; flex: 1 1 auto; align-items: center; gap: 0.45rem; min-width: 0; padding: 0.15rem 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 0.8125rem; text-align: left; cursor: pointer; }
.hb-text > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hb-text strong { color: var(--ink); font-weight: 650; }
.hb-text .ic { flex: none; width: 1rem; height: 1rem; color: var(--accent); }
.hb-edit { display: grid; flex: none; place-items: center; width: 2.1rem; height: 2.1rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--accent); cursor: pointer; }
.hb-edit:hover { border-color: var(--accent); }
.hb-edit .ic { width: 1rem; height: 1rem; }
.hb-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; padding-bottom: 0.2rem; }
.hb-chip.is-all { display: inline-flex; align-items: center; gap: 0.3rem; }
.hb-chip.is-all .ic { width: 0.9rem; height: 0.9rem; }
.hb-chips .hb-note { flex: 1 1 100%; }

/* Paket-Ansicht: drei kompakte Kacheln nebeneinander (auf dem Handy mit Kurzformen), Zonen zum Aufklappen */
.pk-short { display: none; }
.pk-why { max-width: 44rem; color: var(--muted); }
@media (max-width: 700px) {
  .pk-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
  .pk-switch .pk-tile { padding: 0.6rem 0.5rem 0.7rem; gap: 0.15rem; }
  .pk-switch .pk-tile > small:last-child, .pk-switch .pk-tile .pk-price small { display: none; }
  .pk-switch .pk-long { display: none; }
  .pk-switch .pk-short { display: inline; }
  .pk-switch .pk-tile strong { font-size: 0.9375rem; }
  .pk-switch .pk-tile .pk-level { gap: 0.3rem; font-size: 0.75rem; }
  .pk-switch .pk-tile .pk-price { font-size: 0.875rem; }
}
.pk-acc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pk-acc > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 0.6rem; padding: 0.8rem 0.9rem; list-style: none; cursor: pointer; }
.pk-acc > summary::-webkit-details-marker { display: none; }
.pk-acc .acc-head { display: grid; gap: 0.1rem; min-width: 0; }
.pk-acc .acc-meta { color: var(--muted); font-size: 0.8125rem; }
.pk-acc .acc-right { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.acc-chev { width: 1rem; height: 1rem; transition: transform 0.2s; }
.pk-acc[open] .acc-chev { transform: rotate(180deg); }
.pk-acc .acc-icons { grid-column: 1 / -1; grid-row: auto; min-height: 0; }
.pk-acc[open] .acc-icons { display: none; }
.pk-acc .pk-items { gap: 0.8rem; padding: 0.8rem 0.9rem 0.9rem; border-top: 1px solid var(--line); }
.pk-acc .pk-item { padding: 0; border: 0; border-radius: 0; background: transparent; }
.pk-acc .pk-desc { font-size: 0.875rem; }
@media (max-width: 1040px) {
  .zone-tabs { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--hdr) + var(--stepbar-h) + 0.35rem); z-index: 5; }
  .zones-svg { max-height: 230px; }
}

/* Leiste unten (Handy): Tippen auf Stufe und Preis öffnet das Schutz-Blatt */
.bar-open { display: flex; flex: 1; align-items: center; gap: 0.7rem; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bar-open .bar-text span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.75rem; }
.planner-bar .btn-small { flex: none; padding-inline: 0.9rem; }
.bar-chev { width: 0.9rem; height: 0.9rem; margin-left: 0.2rem; vertical-align: -0.1rem; color: var(--muted); transition: transform 0.2s; }
.bar-open[aria-expanded="true"] .bar-chev { transform: rotate(180deg); }
.sheet-top { display: none; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 16; background: rgba(14, 20, 22, 0.45); }
@media (max-width: 1040px) {
  .planner-side { display: none; }
  body.planner-page.sheet-open .planner-side { display: block; position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 17; max-height: 88vh; overflow: auto; -webkit-overflow-scrolling: touch; }
  body.planner-page.sheet-open .score-card { border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px -12px rgba(0, 0, 0, 0.4); padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
  body.planner-page.sheet-open { overflow: hidden; }
  body.planner-page.sheet-open .planner-bar { display: none; }
  .sheet-top { position: relative; display: flex; align-items: center; justify-content: center; margin: -0.35rem 0 -0.5rem; }
  .sheet-handle { width: 2.5rem; height: 0.3rem; border-radius: 999px; background: var(--line); }
  .sheet-close { position: absolute; right: 0; top: -0.2rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer; }
  .sheet-close .ic { width: 1rem; height: 1rem; }
}

/* Schritt Anfrage: Ergebnis-Karte, Positionen als Zeilen zum Aufklappen, kompakte Summe */
.result-card { display: grid; gap: 0.8rem; padding: 0.2rem 0 0.9rem; border-bottom: 1px solid var(--line); }
.rc-main { display: flex; align-items: center; gap: 0.9rem; }
.rc-level { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.rc-sub { color: var(--muted); font-size: 0.875rem; }
.rc-price { display: grid; gap: 0.15rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.rc-price strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.rc-price small { color: var(--muted); font-size: 0.75rem; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.list-head h3 { font-size: 1.0625rem; }
.list-hint { color: var(--muted); font-size: 0.8125rem; }
.ci-list { gap: 0.35rem; }
.ci { display: block; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.ci.is-open { border-color: var(--accent); }
.ci-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0.6rem; width: 100%; padding: 0.55rem 0.7rem; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ci-head:hover { background: var(--surface-2); }
.ci-name { font-size: 0.9375rem; font-weight: 650; line-height: 1.25; }
.ci-total { font-size: 0.875rem; }
.ci-chev { width: 1rem; height: 1rem; color: var(--muted); transition: transform 0.2s; }
.ci.is-open .ci-chev { transform: rotate(180deg); }
.ci-body { display: grid; gap: 0.55rem; padding: 0.1rem 0.75rem 0.85rem; }
.ci-unit { color: var(--muted); font-size: 0.8125rem; }
.ci-body .opt-controls { margin-top: 0; padding-top: 0; border-top: 0; }
.ci-labor { display: flex; justify-content: space-between; gap: 0.75rem; color: var(--muted); font-size: 0.875rem; }
.ci-labor strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.ci-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ci-foot .link-btn { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.875rem; }
.ci-foot .link-btn .ic { width: 0.9rem; height: 0.9rem; }
.concept-sum { gap: 0.45rem; }
.concept-sum .sum-row strong { font-size: 1.125rem; }
.concept-sum .sum-row.is-grand strong { font-size: 1.35rem; }
.more summary { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--accent); font-size: 0.875rem; font-weight: 650; cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary .ic { width: 1rem; height: 1rem; transition: transform 0.2s; }
.more[open] summary .ic { transform: rotate(180deg); }
.more .sum-note { margin-top: 0.5rem; }
.leaves-box { gap: 0.5rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.leaves-box h3 { font-size: 1rem; }
.service-rows { display: grid; gap: 0.5rem; }
.service-row { display: grid; gap: 0.3rem; }
.service-check { align-items: center; gap: 0.15rem 0.75rem; padding: 0.7rem 0.85rem; }
.service-check .ic { width: 1.2rem; height: 1.2rem; }
.service-check input { margin: 0; }
.service-check strong { font-size: 0.9375rem; }
.service-check .svc-price { margin-top: 0.1rem; font-size: 0.8125rem; font-weight: 600; }
.svc-more { padding-left: 0.85rem; }
.svc-more summary { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--accent); font-size: 0.8125rem; font-weight: 650; cursor: pointer; list-style: none; }
.svc-more summary::-webkit-details-marker { display: none; }
.svc-more summary .ic { width: 0.9rem; height: 0.9rem; transition: transform 0.2s; }
.svc-more[open] summary .ic { transform: rotate(180deg); }
.svc-more p { margin-top: 0.35rem; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.next-steps { gap: 0.5rem; padding: 0.8rem 0.95rem; }
.next-steps h3 { font-size: 0.9375rem; }
.next-steps ol { gap: 0.45rem; }
.next-steps li { gap: 0.55rem; align-items: center; }
.next-steps li strong { font-size: 0.875rem; }
.next-steps li div > span { font-size: 0.75rem; }
.concept-tools .btn { padding-block: 0.5rem; }

/* ---------- Seite „Die drei Zonen“ (zonen.html, seit Version 58, 09.10.2026) ----------
   Links das Schaubild mit den Zonen-Reitern, es klebt beim Scrollen; rechts die Zonen-Karte und der Einbruch Schritt für Schritt.
   Auf dem Handy klebt das Bild verkleinert oben, der Text läuft darunter durch. */
.zn-homes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; }
.zn-homes .ws-tile { background: var(--surface); }
.zn-homes .ws-tile[aria-pressed="true"] { background: var(--accent-soft); }
.zn-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.zn-view { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--hdr, 4.2rem) + 0.75rem); display: grid; gap: 0.75rem; min-width: 0; }
.zn-tabs { position: static; }
.zn-tabs [role="tab"] { flex: 1 1 0; min-width: 0; padding-inline: 0.7rem; }
@media (max-width: 1400px) { .zn-tabs .tab-sub { display: none; } }
.zn-text { display: grid; gap: clamp(2rem, 4vw, 3rem); min-width: 0; }
.zn-card { display: grid; gap: 0.9rem; padding: clamp(1.1rem, 2.5vw, 1.6rem); border: 1.5px solid var(--zf); border-radius: calc(var(--radius) + 6px); background: var(--surface); box-shadow: var(--shadow-sm); scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--hdr, 4.2rem) + var(--zn-sticky, 0px) + 1rem - 5.5rem); }
.zn-card h3 { font-size: 1.375rem; }
.zn-card-text { color: var(--muted); }
.zn-facts { display: grid; gap: 0.6rem; }
.zn-fact { display: grid; gap: 0.2rem; padding: 0.8rem 0.95rem; border-radius: var(--radius-sm); background: var(--zs); }
.zn-k { color: var(--zt); font-size: 0.8125rem; font-weight: 700; }
.zn-fact p { font-size: 0.9375rem; line-height: 1.5; }
.zn-help { display: grid; gap: 0.5rem; }
.zn-devices { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.zn-devices a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0.75rem 0.25rem 0.25rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: border-color 0.15s; }
.zn-devices a:hover { border-color: var(--zf); color: var(--ink); }
.zn-devices .zi { width: 1.6rem; height: 1.6rem; border-radius: 999px; }
.zn-devices .zi .ic { width: 0.95rem; height: 0.95rem; }
.zn-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.zn-walk { display: grid; gap: 1.25rem; }
/* Sprung zu #einbruch: Überschrift unter Kopfzeile und klebender Bühne; − 5,5 rem gleicht html { scroll-padding-top } aus (wie bei .zn-card) */
.zn-walk { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--hdr, 4.2rem) + var(--zn-sticky, 0px) + 0.75rem - 5.5rem); }
.zn-walk .section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); }
.zn-walk-note { padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: 0.9375rem; }
.zn-steps { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.zn-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.35rem 1rem; align-items: start; padding: 1.1rem 1.2rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s; }
.zn-step.is-active { border-color: var(--zf); box-shadow: var(--shadow); }
.zn-step .zbig { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--zs); color: var(--zt); font: 700 1rem var(--font-body); transition: background-color 0.2s, color 0.2s; }
.zn-step.is-active .zbig { background: var(--zf); color: var(--zon); }
.zn-step-body { display: grid; gap: 0.45rem; min-width: 0; }
.zn-step-zone { display: flex; align-items: center; gap: 0.45rem; color: var(--muted); font-size: 0.8125rem; font-weight: 700; }
.zn-step-text { line-height: 1.55; }
.zn-step-result { display: flex; align-items: center; gap: 0.45rem; color: var(--warn); font-size: 0.9375rem; font-weight: 650; }
.zn-step-result .ic { width: 1.1rem; height: 1.1rem; }
/* Schutzstufe */
.zn-level-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.zn-weights { display: grid; gap: 1rem; padding: clamp(1.1rem, 2.5vw, 1.6rem); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--bg); }
.zn-weights p { color: var(--muted); font-size: 0.9375rem; }
.zn-weights p strong { color: var(--ink); }
.zn-wlist { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.zn-wlist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.35rem 0.6rem; align-items: center; font-size: 0.9375rem; font-weight: 600; }
.zn-wlist strong { font-variant-numeric: tabular-nums; }
.zn-wbar { grid-column: 1 / -1; height: 0.5rem; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.zn-wbar i { display: block; height: 100%; border-radius: 999px; background: var(--zf); transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.zn-levels { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.zn-level { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.15rem 0.9rem; align-items: center; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.zn-level .ring { grid-row: span 2; width: 2.6rem; height: 2.6rem; }
.zn-level .ring circle { stroke-width: 7; }
.zn-level strong { font-size: 0.9688rem; }
.zn-level p { grid-column: 2; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
.zn-rule { display: flex; align-items: flex-start; gap: 0.6rem; max-width: 46rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); background: var(--z2-soft); color: var(--ink); font-size: 0.9375rem; line-height: 1.5; }
.zn-rule .ic { margin-top: 0.15rem; color: var(--z2-text); }
@media (max-width: 960px) {
  .zn-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .zn-view { top: calc(env(safe-area-inset-top, 0px) + var(--hdr, 4.2rem)); z-index: 5; gap: 0.375rem; padding-bottom: 0.375rem; background: var(--bg); box-shadow: 0 10px 12px -12px rgba(0, 0, 0, 0.35); }
  .zn-view .zones-figure { padding: 0.25rem; }
  .zn-view .zones-svg { max-height: min(150px, 22vh); }
  .zn-level-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .zn-step, .zn-step .zbig, .zn-wbar i, .zn-devices a { transition: none; } }
/* Einstiege zur Zonen-Seite: Bildunterschrift im Planer, Link unter den Zonen-Karten der Startseite, Zonenangabe auf den Gerätekarten */
.zones-cap { display: flex; justify-content: flex-end; padding-top: 0.45rem; }
.zones-cap a { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); font-size: 0.8125rem; font-weight: 600; text-decoration: none; }
.zones-cap a:hover { color: var(--accent); }
.zones-cap .ic { width: 1rem; height: 1rem; }
.zone-cards-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.5rem; }
.zone-cards-foot .btn { margin-top: 0; }
.zone-explain { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.zone-explain:hover { color: var(--accent); }
.zone-explain .ic { width: 1.1rem; height: 1.1rem; }
a.gc-zone { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
a.gc-zone:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- Handy: Bühne, Kacheln, Karte, Schutzstufe (Version 70, 10.10.2026) ----------
   Bis 960 px „eins nach dem anderen“: Wohnform in einer Reihe, kleine klebende Bühne (höchstens 215 px bei 390 × 844),
   kurze Zonen-Karte mit „Mehr zu dieser Zone“, Schutzstufe als dichte Liste. Am PC sieht alles aus wie bisher. */
/* Zonen-Karte am PC: kein Knopf, der aufklappbare Teil löst sich auf, order stellt die alte Reihenfolge her
   (drei Kästen, Geräte, Planer-Link); die Kästen stehen wie früher 0,6 rem auseinander statt 0,9 rem */
.zn-more-btn { display: none; }
.zn-more { display: contents; }
.zn-fact-weak { order: 4; }
.zn-fact-task { order: 5; }
.zn-card > .zn-help { order: 6; }
.zn-card-foot { order: 7; }
.zn-fact-sub, .zn-fact-weak { margin-bottom: -0.3rem; }
@media (prefers-reduced-motion: no-preference) {
  .zn-card.is-swap > .zn-more > * { animation: zn-swap 220ms var(--zn-ease) both; }
  .zn-more-btn .ic { transition: transform 200ms var(--zn-ease); }
}
@media (max-width: 960px) {
  /* Wohnform: vier kleine Kacheln in einer Reihe, Bild und Name, ohne Untertitel */
  .zn-homes { gap: 0.5rem; }
  .zn-homes .ws-tile { position: relative; justify-items: center; gap: 0.2rem; padding: 0.4rem 0.3rem 0.5rem; border-radius: var(--radius-sm); text-align: center; }
  .zn-homes .home-thumb { max-height: 3.5rem; margin-bottom: 0.1rem; }
  .zn-homes .ws-tile strong, .zn-homes .ws-tile[data-short]::after { font-size: 0.8125rem; font-weight: 650; line-height: 1.2; -webkit-hyphens: auto; hyphens: auto; }
  .zn-homes .ws-tile small { display: none; }

  /* Bühne: schmale Reiter-Leiste unter dem kleinen Bild */
  /* Bühne über die ganze Breite (Rand wie .wrap), damit neben ihr nichts durchscheint; Bild und Reiter bleiben an ihrem Platz */
  .zn-view { margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding-inline: clamp(16px, 4vw, 40px); }
  .zn-tabs { gap: 0.15rem; padding: 0.125rem; }
  .zn-tabs [role="tab"] { min-height: 2.125rem; padding-block: 0.2rem; font-size: 0.8125rem; }

  /* Zonen-Karte: Titel, Satz, „Was dazugehört“, Geräte; der Rest hinter „Mehr zu dieser Zone“ */
  .zn-card { grid-template-columns: minmax(0, 1fr); gap: 0.65rem; padding: 1rem 1rem 0.35rem; }
  .zn-card .zone-eyebrow { font-size: 0.875rem; }
  .zn-card h3 { font-size: 1.1875rem; }
  .zn-card-text { font-size: 0.9375rem; line-height: 1.5; }
  .zn-fact { padding: 0.55rem 0.8rem; }
  .zn-fact p { font-size: 0.875rem; line-height: 1.45; }
  .zn-fact-sub, .zn-fact-weak { margin-bottom: 0; }
  .zn-fact-weak, .zn-fact-task, .zn-card > .zn-help, .zn-card-foot { order: 0; }
  .zn-help { gap: 0.35rem; min-width: 0; }
  /* Geräte als wischbare Zeile bis an den Kartenrand; am rechten Rand blendet sie aus */
  .zn-devices { flex-wrap: nowrap; gap: 0.35rem; min-width: 0; margin: -0.3rem -1rem; padding: 0.3rem 1rem; overflow-x: auto; scroll-padding-inline: 1rem; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.25rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 1.25rem), transparent); }
  .zn-devices::-webkit-scrollbar { display: none; }
  .zn-devices li { flex: none; scroll-snap-align: start; }
  .zn-devices a { gap: 0.35rem; padding: 0.2rem 0.65rem 0.2rem 0.2rem; font-size: 0.8125rem; white-space: nowrap; }
  .zn-devices .zi { width: 1.4rem; height: 1.4rem; }
  .zn-devices .zi .ic { width: 0.85rem; height: 0.85rem; }
  .zn-more-btn { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 2.75rem; padding: 0.35rem 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--accent); font: inherit; font-size: 0.9375rem; font-weight: 650; text-align: left; cursor: pointer; }
  .zn-more-btn .ic { width: 1.15rem; height: 1.15rem; }
  .zn-more-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .zn-more { display: grid; gap: 0.6rem; padding-bottom: 0.65rem; }
  .zn-card:not(.is-more) .zn-more { display: none; }
  .zn-card.is-swap > .zn-more > * { animation: none; }

  /* Schutzstufe: weniger Innenabstand, Stufen als dichte Liste in einem Kasten */
  #schutzstufe { padding-block: 2.5rem; }
  #schutzstufe > .stack { gap: 1.5rem; }
  .zn-level-grid { gap: 1rem; }
  .zn-weights { gap: 0.6rem; padding: 1rem; }
  .zn-weights p { font-size: 0.875rem; line-height: 1.5; }
  .zn-wlist { gap: 0.55rem; }
  .zn-levels { gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
  .zn-level { gap: 0.1rem 0.7rem; padding: 0.5rem 0.7rem; border: 0; border-radius: 0; background: none; }
  .zn-level + .zn-level { border-top: 1px solid var(--line); }
  .zn-level .ring { width: 2rem; height: 2rem; }
  .zn-level strong { font-size: 0.9375rem; }
  .zn-level p { font-size: 0.8125rem; line-height: 1.4; }
  .zn-rule { padding: 0.75rem 0.9rem; font-size: 0.875rem; line-height: 1.45; }

  /* Einstieg: Absatz und Sprungleiste etwas enger */
  .zonen-page .page-hero { padding-block: 2.25rem 0.75rem; }
  .zonen-page .page-hero .wrap { gap: 1rem; }
  .zonen-page .page-hero .lead { font-size: 1.0625rem; line-height: 1.55; }
  .zonen-page .page-hero .jump { gap: 0.4rem; }
  .zonen-page .page-hero .jump a { padding: 0.3rem 0.75rem; font-size: 0.8125rem; }
}
/* Schmale Kacheln: Kurzform des Namens; der volle Name bleibt für Screenreader im Knopf */
@media (max-width: 520px) {
  .zn-homes .ws-tile[data-short] strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .zn-homes .ws-tile[data-short]::after { content: attr(data-short); content: attr(data-short) / ""; }
}
/* Dunkel: der Schatten unter der Bühne verschwindet auf dem dunklen Grund, deshalb dazu eine feine Linie */
@media (max-width: 960px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .zn-view { box-shadow: 0 1px 0 var(--line), 0 10px 14px -12px rgba(0, 0, 0, 0.9); }
}
@media (max-width: 960px) {
  :root[data-theme="dark"] .zn-view { box-shadow: 0 1px 0 var(--line), 0 10px 14px -12px rgba(0, 0, 0, 0.9); }
}
/* Tablet: mehr Platz in der Breite, das Bild darf größer sein (Handy bleibt bei 150 px / 22 vh) */
@media (min-width: 600px) and (max-width: 960px) {
  .zn-view .zones-svg { max-height: min(230px, 28vh); }
}
/* Quer (niedrige Höhe): Bild links, Reiter daneben, damit die klebende Bühne flach bleibt */
@media (max-width: 960px) and (max-height: 500px) {
  .zn-view { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 0.75rem; }
  .zn-view .zones-figure { justify-self: start; }
  .zn-view .zones-svg { width: auto; height: min(150px, 22vh); }
}

/* Schutz-Simulator der Seite „Die drei Zonen“ (seit Version 59, 09.10.2026): Vorlagen und Abspielen über den Schritten,
   Geräte-Chips je Schritt, Ausgang je Schritt, Ergebnis-Karte darunter. Die Bewegung dazu steht im nächsten Block. */

/* Leiste: Vorlagen links, Abspielen rechts */
.zn-sim-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; }
.zn-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; min-width: 0; }
.zn-presets-k { margin-right: 0.2rem; color: var(--muted); font-size: 0.8125rem; font-weight: 700; }
.zn-preset {
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.zn-preset:hover { border-color: var(--accent); }
.zn-preset[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.zn-play, .zn-takeover { font-family: inherit; cursor: pointer; }
.zn-play:disabled, .zn-takeover:disabled { cursor: default; opacity: 0.5; }
/* „Einbruch abspielen“ steht groß unter den Schritten (Kommentar 09.10.2026: in der Vorlagen-Leiste war der Knopf zu versteckt) */
.zn-play-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.zn-play .ic { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.zn-play-hint { color: var(--muted); font-size: 0.9375rem; }
.zn-play:disabled:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.zn-takeover:disabled:hover { border-color: var(--accent); background: transparent; color: var(--accent); }

/* Schritte: beim Abspielen und beim Scrollen bleibt der Schritt unter dem klebenden Bild sichtbar */
.zn-step, .zn-verdict { scroll-margin-top: calc(var(--zn-sticky, 0px) + 0.75rem); scroll-margin-bottom: 1rem; }
.zn-step.is-playing .zbig { background: var(--zf); color: var(--zon); }

/* Geräte-Chips je Schritt (wie die Geräte in der Zonen-Karte, aber zum An- und Ausschalten) */
.zn-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; padding-top: 0.2rem; }
.zn-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.2rem 0.7rem 0.2rem 0.2rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.zn-chip:hover { border-color: var(--zf); }
.zn-chip .zi { width: 1.5rem; height: 1.5rem; border-radius: 999px; transition: background-color 0.15s, color 0.15s; }
.zn-chip .zi .ic { width: 0.9rem; height: 0.9rem; }
.zn-chip[aria-pressed="true"] { border-color: var(--zf); background: var(--zs); }
.zn-chip[aria-pressed="true"] .zi { background: var(--zf); color: var(--zon); }
/* Automatisch ergänzt: dünnerer Rand, gleiche Größe */
.zn-chip.is-auto { border-width: 1px; padding: calc(0.2rem + 0.5px) calc(0.7rem + 0.5px) calc(0.2rem + 0.5px) calc(0.2rem + 0.5px); }
.zn-auto { color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }

/* Ausgang je Schritt: offen, teils, gut */
.zn-step-result { align-items: flex-start; line-height: 1.4; }
.zn-step-result .ic { flex: none; margin-top: 0.1em; }
.zn-step-result.is-bad { color: var(--warn); }
.zn-step-result.is-warn { color: var(--z2-text); }
.zn-step-result.is-ok { color: var(--ok); }

/* Ergebnis-Karte */
.zn-verdict {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.1rem;
  align-items: center;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border: 1.5px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.zn-verdict .ring { width: 4.5rem; height: 4.5rem; }
.zn-verdict .ring[data-frac="0.00"] .ring-fg { stroke-opacity: 0; }
.zn-verdict-body { display: grid; gap: 0.2rem; min-width: 0; }
.zn-verdict-k { color: var(--muted); font-size: 0.8125rem; font-weight: 700; }
.zn-verdict-level { font-family: var(--font-display); font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.zn-verdict-text { color: var(--muted); line-height: 1.5; }
.zn-verdict-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.zn-verdict-note { color: var(--muted); font-size: 0.8125rem; }

@media (max-width: 960px) {
  .zn-sim-bar { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .zn-preset, .zn-chip, .zn-chip .zi { transition: none; }
}

/* Einbruchswege im Schutz-Simulator (seit Version 63, 09.10.2026): Wegzeile, Wegwahl, Stückzahl-Regler. Daten in zonen-geo.js. */
/* Weg: ruhige Zeile, Name hervorgehoben, darunter klein der Hinweis auf die Beispiel-Positionen; daneben die Wahl, die sich darunter öffnet */
.zn-route-box { display: grid; gap: 0.4rem; }
.zn-route-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1.25rem; }
.zn-route { flex: 0 1 auto; min-width: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.zn-route strong { color: var(--ink); font-weight: 650; }
.zn-route-now, .zn-route .zn-route-note { display: block; }
.zn-route .zn-route-note { margin-top: 0.15rem; }
.zn-route-pick { flex: 1 1 12rem; min-width: 0; }
.zn-route-pick summary { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--accent); font-size: 0.875rem; font-weight: 650; cursor: pointer; list-style: none; }
.zn-route-pick summary::-webkit-details-marker { display: none; }
.zn-route-pick summary .ic { width: 1rem; height: 1rem; transition: transform 0.2s; }
.zn-route-pick[open] summary .ic { transform: rotate(180deg); }
.zn-route-list { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-top: 0.6rem; }
.zn-route-btn {
  max-width: 100%;
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.zn-route-btn:hover { border-color: var(--accent); }
.zn-route-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.zn-route-note { color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }

/* Stückzahl am Chip: Chip und Stepper bleiben zusammen, ein langer Name bricht im Chip um */
.zn-chip-set { display: inline-flex; align-items: center; gap: 0.3rem; max-width: 100%; min-width: 0; }
.zn-chip-set > .zn-chip { min-width: 0; }
.zn-qty { display: inline-flex; flex: none; align-items: center; gap: 0.1rem; padding: 0.125rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.zn-qty[hidden] { display: none; }
.zn-qty-btn {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--zs);
  color: var(--zt);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.zn-qty-btn .ic { width: 0.85rem; height: 0.85rem; }
.zn-qty-btn:hover:not(:disabled) { background: var(--zf); color: var(--zon); }
.zn-qty-btn:disabled { opacity: 0.4; cursor: default; }
.zn-qty-n { min-width: 1.4em; color: var(--ink); font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .zn-route-pick summary .ic, .zn-route-btn, .zn-qty-btn { transition: none; }
}

/* Bewegung und Mikro-Animationen der Zonen-Seite (seit Version 59, 09.10.2026), gesteuert von zonen-bewegung.js.
   Ohne JavaScript greift nichts davon (alles hängt an Klassen, die das Skript setzt); bei „weniger Bewegung“ bleiben nur die Endzustände. */
:root { --zn-ease: cubic-bezier(0.2, 0.7, 0.2, 1); }

/* ---------- Reiter: Pill gleitet hinter den gewählten Reiter ---------- */
/* relative statt static: top auf auto, sonst greift das top der klebenden .zone-tabs (Planer, bis 1040 px) */
.zn-tabs.has-ind { position: relative; top: auto; isolation: isolate; }
.zn-tabs.has-ind > [role="tab"] { position: relative; z-index: 1; }
.zn-tabs.has-ind > [role="tab"][aria-selected="true"] { background: transparent; }
.zn-tab-ind { position: absolute; top: 0; left: 0; z-index: 0; width: 0; height: 0; border-radius: 999px; background: var(--ink); pointer-events: none; }

/* ---------- Schritte: Fortschrittsleiste links neben der Liste ---------- */
.zn-walk.has-rail { position: relative; }
.zn-walk.has-rail > .zn-steps { padding-left: 1.25rem; }
.zn-rail { position: absolute; top: 0; left: 0; width: 2px; height: 0; margin-left: 0.2rem; border-radius: 2px; background: var(--line); pointer-events: none; }
.zn-rail i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--zf, var(--line)); transform: scaleY(0); transform-origin: 50% 0; }
@media (max-width: 640px) {
  .zn-walk.has-rail > .zn-steps { padding-left: 0.9rem; }
  .zn-rail { margin-left: 0.1rem; }
}
/* Gerade abgespielter Schritt (Schutz-Simulator): Rand in Zonenfarbe, Schatten */
.zn-steps .zn-step.is-playing { border-color: var(--zf); box-shadow: var(--shadow); }

@keyframes zn-swap { from { opacity: 0; transform: translateY(6px); } }
@keyframes zn-pop { from { transform: scale(0.97); } }
@keyframes zn-lit { 0% { filter: brightness(1); } 30% { filter: brightness(1.08); } 100% { filter: brightness(1); } }
@keyframes zn-bump { 50% { transform: scale(1.08); } }
@keyframes zn-icon-pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes zn-chip-pop { from { transform: scale(1.06); } }
@keyframes zn-press { 45% { transform: scale(0.97); } }
@keyframes zn-verdict-in { from { opacity: 0; transform: scale(0.96); } }
@keyframes zn-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* Reiter: Pill gleitet, Schrift wechselt die Farbe im selben Takt (erst nach der ersten Platzierung) */
  .zn-tabs.ind-ready .zn-tab-ind { transition: transform 250ms var(--zn-ease), width 250ms var(--zn-ease), height 250ms var(--zn-ease); }
  .zn-tabs.ind-ready > [role="tab"] { transition: color 250ms var(--zn-ease), background-color 150ms; }

  /* Zonen-Karte: Inhalt blendet beim Zonenwechsel kurz ein, der Rahmen wechselt die Farbe weich */
  .zn-card { transition: border-color 250ms var(--zn-ease); }
  .zn-card.is-swap > * { animation: zn-swap 220ms var(--zn-ease) both; }

  /* Wohnform-Kacheln: kurzer Druck, Vorschaubild hellt kurz auf */
  .zn-homes .ws-tile.is-pop { animation: zn-pop 180ms var(--zn-ease); }
  .zn-homes .ws-tile.is-pop .home-thumb { animation: zn-lit 300ms var(--zn-ease); }

  /* Schritte: Füllung der Leiste, Nummer des aktiven Schritts, Ausgang, abgespielter Schritt */
  .zn-rail i { transition: transform 400ms var(--zn-ease), background-color 250ms var(--zn-ease); }
  .zn-steps .zn-step { transition: border-color 250ms var(--zn-ease), box-shadow 250ms var(--zn-ease), transform 250ms var(--zn-ease); }
  .zn-steps .zn-step.is-playing { transform: translateY(-2px); }
  .zn-step.is-bump .zbig { animation: zn-bump 260ms var(--zn-ease); }
  .zn-step-result { transition: color 250ms var(--zn-ease); }
  .zn-step-result.is-flip .ic { animation: zn-icon-pop 260ms var(--zn-ease); }

  /* Schutzstufe: Balken, Zahlen und Ringe starten leer und wachsen beim Hineinscrollen (gestaffelt) */
  .zn-wlist strong { transition: opacity 150ms var(--zn-ease); }
  #zn-levels .ring-fg { transition: stroke-dashoffset 700ms var(--zn-ease), stroke 400ms, opacity 150ms; }
  #zn-weights.zn-run .zn-wlist li:nth-child(2) .zn-wbar i { transition-delay: 80ms; }
  #zn-weights.zn-run .zn-wlist li:nth-child(3) .zn-wbar i { transition-delay: 160ms; }
  #zn-weights.zn-run .zn-wlist li:nth-child(4) .zn-wbar i { transition-delay: 240ms; }
  #zn-levels.zn-run .zn-level:nth-child(3) .ring-fg { transition-delay: 80ms; }
  #zn-levels.zn-run .zn-level:nth-child(4) .ring-fg { transition-delay: 160ms; }
  #zn-levels.zn-run .zn-level:nth-child(5) .ring-fg { transition-delay: 240ms; }

  /* Schaubild neigen (nur Maus, gesetzt von zonen-bewegung.js) */
  .zn-figure.is-tilt { transition: transform 120ms var(--zn-ease); }
  .zn-figure.is-untilt { transition: transform 400ms var(--zn-ease); }

  /* Schutz-Simulator (Klassen aus zonen.js) */
  .zn-chip { transition: background-color 200ms var(--zn-ease), border-color 200ms var(--zn-ease), color 200ms var(--zn-ease), box-shadow 200ms var(--zn-ease); }
  .zn-chip .zi { transition: background-color 200ms var(--zn-ease), color 200ms var(--zn-ease); }
  .zn-chip.is-pop { animation: zn-chip-pop 200ms var(--zn-ease) backwards; animation-delay: var(--zn-d, 0ms); }
  .zn-preset { transition: background-color 200ms var(--zn-ease), border-color 200ms var(--zn-ease), color 200ms var(--zn-ease); }
  .zn-play.is-press, .zn-preset.is-press { animation: zn-press 180ms var(--zn-ease); }
  .zn-auto:not([hidden]) { animation: zn-fade 200ms var(--zn-ease); }
  .zn-verdict.is-enter { animation: zn-verdict-in 260ms var(--zn-ease) both; }
  .zn-verdict .ring-fg { transition: stroke-dashoffset 700ms var(--zn-ease), stroke 400ms, opacity 150ms; }
}

/* Startzustand vor dem Hineinscrollen (nur Bildschirm, nur mit Bewegung; Klassen setzt zonen-bewegung.js) */
@media screen and (prefers-reduced-motion: no-preference) {
  #zn-weights.zn-pre-bars .zn-wbar i { width: 0 !important; transition: none; }
  #zn-weights.zn-pre-nums .zn-wlist strong { opacity: 0; }
  #zn-levels.zn-pre-rings .ring-fg { stroke-dashoffset: 194.8 !important; opacity: 0; transition: none; }
}

/* Weniger Bewegung: nichts gleitet, nichts neigt sich, Werte stehen sofort */
@media (prefers-reduced-motion: reduce) {
  .zn-tab-ind, .zn-tabs.has-ind > [role="tab"], .zn-rail i, .zn-figure, .zn-card, .zn-steps .zn-step, .zn-step-result,
  .zn-chip, .zn-preset, .zn-verdict .ring-fg, #zn-levels .ring-fg { transition: none; }
  .zn-figure { transform: none !important; }
  .zn-steps .zn-step.is-playing { transform: none; }
  .zn-card.is-swap > *, .zn-homes .ws-tile.is-pop, .zn-homes .ws-tile.is-pop .home-thumb, .zn-step.is-bump .zbig, .zn-step-result.is-flip .ic,
  .zn-chip.is-pop, .zn-play.is-press, .zn-preset.is-press, .zn-auto, .zn-verdict.is-enter { animation: none; }
}

/* Zeichenebene im Schaubild (seit Version 63, zonen-sim-zeichnen.js): Geräte, Sichtbereiche, Weg, Einbrecher-Punkt, Treffer. Nur während der Simulation sichtbar. */
.sim-layer {
  --sl-c: var(--ink);
  --sl-c-strong: var(--ink);
  --sl-route: var(--ink);
  --sl-halo: var(--surface);
  --sl-shadow: rgba(18, 24, 26, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--zn-ease, ease);
}
.sim-layer * { pointer-events: none; }
.sim-layer.is-on { opacity: 1; }
.sim-layer .sl-z1 { --sl-c: var(--z1); --sl-c-strong: var(--z1-text); }
.sim-layer .sl-z2 { --sl-c: var(--z2); --sl-c-strong: var(--z2-text); }
.sim-layer .sl-z3 { --sl-c: var(--z3); --sl-c-strong: var(--z3-text); }

/* Sichtbereiche auf dem Boden: Kegel, Kreis, Band, Raum */
.sl-cov {
  fill: var(--sl-c);
  fill-opacity: 0.18;
  stroke: var(--sl-c);
  stroke-opacity: 0.5;
  stroke-width: 0.9px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* Geräte: Punkt mit Rand und Schatten, Stiel zum Boden, Mechanik als Strich quer zur Wand */
.sl-stem { stroke: var(--sl-c-strong); stroke-opacity: 0.55; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.sl-shadow { fill: var(--sl-shadow); }
.sl-dot { fill: var(--sl-c); stroke: var(--sl-halo); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.sl-tick-under { stroke: var(--sl-halo); stroke-width: 5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sl-tick { stroke: var(--sl-c-strong); stroke-width: 2.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* Treffer: stehender Ring (Endzustand, auch bei weniger Bewegung) */
.sl-ring { fill: none; stroke: var(--sl-c-strong); stroke-width: calc(1.25px * var(--sl-k, 1)); vector-effect: non-scaling-stroke; opacity: 0; }
.sl-dev.is-hit > .sl-ring { opacity: 0.8; }

/* Weg: Strich mit hellem Unterstrich, leicht gestrichelt (sichtbar 6 zu 3 trotz runder Enden); --sl-k (bis 960 px 1,5, setzt zonen-sim-zeichnen.js) macht Weg und Treffer-Ringe kräftiger */
.sl-route { opacity: 0; }
.sl-route.is-on { opacity: 1; }
.sl-route-under, .sl-route-line { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sl-route-under { stroke: var(--sl-halo); stroke-width: calc(5px * var(--sl-k, 1)); stroke-opacity: 0.9; }
.sl-route-line { stroke: var(--sl-route); stroke-width: calc(2.5px * var(--sl-k, 1)); stroke-dasharray: calc(3.5px * var(--sl-k, 1)) calc(5.5px * var(--sl-k, 1)); }

/* Einbrecher-Punkt an der Spitze des Wegs */
.sl-thief { fill: var(--sl-route); stroke: var(--sl-halo); stroke-width: 1.5px; vector-effect: non-scaling-stroke; opacity: 0; }
.sl-thief.is-on { opacity: 1; }

/* Treffer-Puls: Ring dehnt sich aus und verblasst */
.sl-pulse {
  fill: none;
  stroke: var(--sl-c-strong);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sim-layer { --sl-route: var(--band-fg); --sl-shadow: rgba(0, 0, 0, 0.5); }
}
:root[data-theme="dark"] .sim-layer { --sl-route: var(--band-fg); --sl-shadow: rgba(0, 0, 0, 0.5); }

@media (prefers-reduced-motion: no-preference) {
  .sl-route, .sl-thief { transition: opacity 250ms var(--zn-ease, ease); }
  .sl-ring { transition: opacity 200ms var(--zn-ease, ease); }
  .sl-dev, .sl-cov { transition: opacity 200ms var(--zn-ease, ease); }
  .sl-dev.is-new, .sl-cov.is-new { animation: sl-in 250ms var(--zn-ease, ease) backwards; }
  .sl-dev.is-out, .sl-cov.is-out { opacity: 0; }
  .sl-cov.is-lit { animation: sl-lit 700ms var(--zn-ease, ease); }
  .sl-pulse { animation: sl-pulse 600ms var(--zn-ease, ease); }
}
@keyframes sl-in { from { opacity: 0; } }
@keyframes sl-lit { 30% { fill-opacity: 0.34; stroke-opacity: 0.9; } }
@keyframes sl-pulse { from { transform: scale(1); opacity: 0.95; } to { transform: scale(3.2); opacity: 0; } }

/* Weniger Bewegung: nichts gleitet, nichts pulsiert, Endzustände stehen sofort */
@media (prefers-reduced-motion: reduce) {
  .sim-layer, .sim-layer * { transition: none !important; animation: none !important; }
}

/* Handy: Schrittfolge im Simulator (seit Version 70, 10.10.2026). Bis 960 px ist immer nur ein Schritt zu sehen: darüber die Kopfzeile
   mit Zurück, Weiter und einer Leiste in Zonenfarben, die letzte Seite ist das Ergebnis, „Einbruch abspielen“ klebt unten am Bildschirm.
   Klassen setzt zonen.js (an .zn-walk: is-wizard, zn-wiz-end, zn-wiz-none, is-playing; an Schritt und Ergebnis-Karte: is-current;
   am Schritt: zn-wiz-long, zn-wiz-open für „Weiterlesen“).
   Ohne JavaScript und am PC bleibt alles wie bisher. */
.zn-wiz, .zn-wiz-note, .zn-wiz-empty, .zn-wiz-more { display: none; }
@media (max-width: 960px) {
  .zn-rail { display: none; }
  .zn-walk.has-rail > .zn-steps { padding-left: 0; }
  .zn-walk.is-wizard { gap: 1rem; min-width: 0; }
  /* Vorlagen: eine Zeile zum Wischen bis an den Bildschirmrand, rechts ein zarter Verlauf (contain: die Zeile macht die Spalte nicht breiter) */
  .zn-walk.is-wizard .zn-sim-bar { display: block; }
  .zn-walk.is-wizard .zn-presets {
    contain: inline-size;
    flex-wrap: nowrap;
    margin-inline: calc(-1 * clamp(16px, 4vw, 40px));
    padding: 0.15rem calc(clamp(16px, 4vw, 40px) + 1.5rem) 0.15rem clamp(16px, 4vw, 40px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: clamp(16px, 4vw, 40px);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  }
  .zn-walk.is-wizard .zn-presets::-webkit-scrollbar { display: none; }
  .zn-walk.is-wizard .zn-presets > * { flex: none; white-space: nowrap; scroll-snap-align: start; }
  /* Weg: eine Zeile, der Hinweis auf die Beispiel-Positionen steht auf der Ergebnis-Seite; Wege zur Wahl in voller Breite */
  .zn-walk.is-wizard .zn-route .zn-route-note { display: none; }
  .zn-walk.is-wizard .zn-route-row { gap: 0.2rem 1rem; }
  .zn-walk.is-wizard .zn-route { font-size: 0.875rem; }
  .zn-walk.is-wizard .zn-route-list { display: grid; gap: 0.35rem; padding-top: 0.5rem; }
  .zn-walk.is-wizard .zn-route-btn { width: 100%; }
  /* Kopfzeile: oben Schritt und Zone, darunter Zurück, Leiste, Weiter */
  .zn-walk.is-wizard > .zn-wiz { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.35rem 0.6rem; }
  .zn-wiz-head { display: contents; }
  .zn-wiz-title { grid-column: 1 / -1; grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6rem; min-width: 0; line-height: 1.35; }
  .zn-wiz-n { color: var(--muted); font-size: 0.8125rem; font-weight: 700; }
  .zn-wiz-zone { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink); font-size: 0.9375rem; font-weight: 700; }
  .zn-wiz-zone .zdot { align-self: center; }
  .zn-wiz-prev { grid-column: 1; grid-row: 2; }
  .zn-wiz-bar { grid-column: 2; grid-row: 2; display: flex; gap: 0.25rem; min-width: 0; }
  .zn-wiz-next { grid-column: 3; grid-row: 2; }
  .zn-wiz-prev, .zn-wiz-next { gap: 0.3rem; min-height: 2.25rem; padding: 0.35rem 0.8rem; font-family: inherit; font-size: 0.875rem; cursor: pointer; }
  .zn-wiz-prev { padding-left: 0.6rem; }
  .zn-wiz-next { padding-right: 0.6rem; }
  .zn-wiz-prev .ic, .zn-wiz-next .ic { width: 1rem; height: 1rem; }
  .zn-wiz-prev:disabled, .zn-wiz-next:disabled { opacity: 0.4; cursor: default; }
  .zn-wiz-prev:disabled:hover { border-color: var(--accent); background: transparent; color: var(--accent); }
  .zn-wiz-next:disabled:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
  /* Segmente: schmaler Strich, Tippfläche so hoch wie die Knöpfe; erledigt und aktuell in Zonenfarbe, die folgenden zart, Ergebnis neutral */
  .zn-wiz-seg { position: relative; flex: 1 1 0; min-width: 0; height: 2.25rem; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; }
  .zn-wiz-seg::before { content: ""; position: absolute; top: 50%; right: 0; left: 0; height: 0.375rem; border-radius: 999px; background: var(--zs); background: color-mix(in srgb, var(--zf) 28%, var(--bg)); transform: translateY(-50%); }
  .zn-wiz-seg.zn-wiz-done::before, .zn-wiz-seg[aria-selected="true"]::before { background: var(--zf); }
  .zn-wiz-seg[aria-selected="true"]::before { height: 0.625rem; }
  .zn-wiz-seg-end { --zf: var(--muted); --zs: var(--line); flex-grow: 0.6; }
  .zn-wiz-seg:disabled { cursor: default; }
  .zn-wiz-seg:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  /* Seiten: nur der aktuelle Schritt, auf der letzten Seite nur das Ergebnis */
  .zn-walk.is-wizard .zn-step:not(.is-current), .zn-walk.is-wizard > .zn-verdict:not(.is-current), .zn-walk.is-wizard.zn-wiz-end > .zn-steps { display: none; }
  .zn-walk.is-wizard .zn-step { grid-template-columns: minmax(0, 1fr); padding: 0.8rem 0.85rem; }
  .zn-walk.is-wizard .zn-step .zbig, .zn-walk.is-wizard .zn-step-zone { display: none; }
  .zn-walk.is-wizard .zn-step-result { font-size: 0.875rem; }
  /* Wischen auf der Seite blättert nur: waagerechte Gesten gehen nicht an den Browser (sonst „Zurück“ in der Geschichte) */
  .zn-walk.is-wizard .zn-steps, .zn-walk.is-wizard > .zn-verdict { touch-action: pan-y pinch-zoom; }
  .zn-walk.is-wizard > .zn-wiz, .zn-walk.is-wizard > .zn-wiz-empty, .zn-walk.is-wizard > .zn-wiz-note { touch-action: pan-y pinch-zoom; }   /* dort wird ebenfalls geblättert */
  /* Text: drei Zeilen, „Weiterlesen“ zeigt den Rest (nur wenn er länger ist); beim Abspielen immer der ganze Text, ohne „Weiterlesen“ */
  .zn-walk.is-wizard .zn-step-text { display: -webkit-box; overflow: hidden; font-size: 0.9375rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
  .zn-walk.is-wizard:not(.is-playing) .zn-step.zn-wiz-open .zn-step-text, .zn-walk.is-wizard.is-playing .zn-step-text { display: block; -webkit-line-clamp: none; line-clamp: none; }
  .zn-walk.is-wizard:not(.is-playing) .zn-step.zn-wiz-long .zn-wiz-more { display: inline-flex; }
  .zn-wiz-more { align-items: center; gap: 0.25rem; justify-self: start; margin-top: -0.2rem; padding: 0.1rem 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 0.8125rem; font-weight: 650; cursor: pointer; }
  .zn-wiz-more .ic { width: 0.95rem; height: 0.95rem; }
  .zn-step.zn-wiz-open .zn-wiz-more .ic { transform: rotate(180deg); }
  /* Chips kompakt in zwei Spalten (lange Namen brechen im Chip um); mit Stückzahl über die ganze Breite.
     Stückzahl-Knöpfe mit größerer Tippfläche, als sie aussehen */
  .zn-walk.is-wizard .zn-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.3rem; padding-top: 0.1rem; }
  .zn-walk.is-wizard .zn-chip-set { grid-column: 1 / -1; }
  .zn-walk.is-wizard .zn-chip { gap: 0.35rem; min-height: 1.75rem; padding: 0.1rem 0.5rem 0.1rem 0.15rem; border-radius: 0.875rem; font-size: 0.75rem; line-height: 1.15; }
  .zn-walk.is-wizard .zn-chip { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }   /* lange Wörter (z. B. Erschütterungsmelder) bleiben im Chip */
  .zn-walk.is-wizard .zn-chip.is-auto { padding: calc(0.1rem + 0.5px) calc(0.5rem + 0.5px) calc(0.1rem + 0.5px) calc(0.15rem + 0.5px); }
  .zn-walk.is-wizard .zn-chip .zi { flex: none; width: 1.3rem; height: 1.3rem; }
  .zn-walk.is-wizard .zn-chip .zi .ic { width: 0.78rem; height: 0.78rem; }
  .zn-walk.is-wizard .zn-qty-btn { position: relative; width: 1.6rem; height: 1.6rem; }
  .zn-walk.is-wizard .zn-qty-btn::after { content: ""; position: absolute; inset: -0.3rem; }
  .zn-walk.is-wizard .zn-auto { font-size: 0.78rem; }
  /* Beim Abspielen nur Text und Ausgang */
  .zn-walk.is-wizard.is-playing .zn-chips, .zn-walk.is-wizard.is-playing .zn-auto { display: none; }
  /* Ergebnis-Seite: Karte, darunter der Hinweis; ohne Auswahl ein Satz statt der Karte */
  .zn-walk.is-wizard > .zn-verdict, .zn-walk.is-wizard > .zn-wiz-empty { order: 18; }
  .zn-walk.is-wizard .zn-verdict-k { display: none; }   /* steht schon in der Kopfzeile */
  .zn-walk.is-wizard > .zn-wiz-note { order: 19; }
  .zn-walk.is-wizard.zn-wiz-end.zn-wiz-none > .zn-wiz-empty { display: block; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
  .zn-walk.is-wizard.zn-wiz-end:not(.zn-wiz-none) > .zn-wiz-note { display: block; color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
  /* Abspielen: Leiste klebt unten am Bildschirm, solange der Simulator im Blick ist (letztes Kind von .zn-walk) */
  .zn-walk.is-wizard > .zn-play-row {
    position: sticky;
    bottom: 0;
    z-index: 4;
    order: 20;
    margin-inline: calc(-1 * clamp(16px, 4vw, 40px));
    padding: 0.5rem clamp(16px, 4vw, 40px) calc(0.5rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 -8px 12px -12px rgba(0, 0, 0, 0.3);
  }
  .zn-walk.is-wizard .zn-play { flex: 1 1 auto; padding-block: 0.7rem; }
  .zn-walk.is-wizard .zn-play-hint { display: none; }
}
/* Schmale Handys: Zonentitel im Kopf etwas kleiner und einzeilig (ein zu langer endet mit „…“), damit der Kopf auf allen Seiten gleich hoch bleibt */
@media (max-width: 400px) {
  .zn-wiz-title { flex-wrap: nowrap; }
  .zn-wiz-n { flex: none; }
  .zn-wiz-zone { display: block; min-width: 0; overflow: hidden; font-size: 0.875rem; white-space: nowrap; text-overflow: ellipsis; }
  .zn-wiz-zone .zdot { display: inline-block; margin-right: 0.4rem; vertical-align: middle; }
}
/* Tablet: Chips in drei Spalten; quer (niedrig): Abspiel-Leiste klebt nicht (sonst verdeckt sie Text und Ausgang), normale Breite, ohne Linie und Schatten */
@media (min-width: 640px) and (max-width: 960px) {
  .zn-walk.is-wizard .zn-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) and (max-height: 500px) {
  .zn-walk.is-wizard > .zn-play-row { position: static; margin-inline: 0; padding: 0; border-top: 0; box-shadow: none; }
  .zn-walk.is-wizard .zn-play { padding-block: 0.5rem; }
}
/* Seitenwechsel: kurz in Blätterrichtung einblenden (Klassen setzt zonen-bewegung.js) */
@keyframes zn-wiz-fwd { from { opacity: 0; transform: translateX(12px); } }
@keyframes zn-wiz-bwd { from { opacity: 0; transform: translateX(-12px); } }
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .zn-walk.is-wizard .zn-wiz-fwd { animation: zn-wiz-fwd 200ms var(--zn-ease) both; }
  .zn-walk.is-wizard .zn-wiz-bwd { animation: zn-wiz-bwd 200ms var(--zn-ease) both; }
  .zn-wiz-seg::before { transition: background-color 200ms var(--zn-ease), height 200ms var(--zn-ease); }
}

@media print {
  @page { size: A4; margin: 12mm 12mm 14mm; }
  html, body { background: #fff !important; color: #111 !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; }
  /* Planer: nur die Druckvorlage des Konzepts. Andere Seiten (z. B. die Urlaubs-Checkliste) drucken ihren Inhalt ohne Kopf- und Fußzeile. */
  body.planner-page > :not(main), .planner-page main > :not(.dokument), .toast, .doc-tools { display: none !important; }
  .site-header, .site-footer, .skip, .cta-band, .jump, .season, .check-tools, .nav-toggle { display: none !important; }
  .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-list label { break-inside: avoid; }
  .dokument { display: block !important; }
  .doc-sheet { width: auto; margin: 0; padding: 0; box-shadow: none; }
  .doc-intro, .doc-kpis, .doc-why, .doc-zone, .doc-sum, .doc-section { break-inside: avoid; }
  .doc-table tr { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
