/* Waiser-Familie · gemeinsames Grundraster. Pro Marke ändern nur --akzent und --akzent-hell. */
:root {
  --seite: #F6F7F5;
  --flaeche: #FFFFFF;
  --text: #121A17;
  --neben: #4F5B56;
  --linie: #D9DED9;
  --fokus: #1F3A5F;
  --akzent: #1F3A5F;
  --akzent-text: #FFFFFF;
  --akzent-zart: #E3EAF3;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --mass: 72rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --seite: #0F1412;
    --flaeche: #161C19;
    --text: #E8ECE9;
    --neben: #A4ADA8;
    --linie: #2A332F;
    --fokus: #9DB9DE;
    --akzent: #9DB9DE;
    --akzent-text: #0F1412;
    --akzent-zart: #1F2C3D;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--seite);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  border-top: 4px solid var(--akzent); /* die Waiser-Linie */
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--akzent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 2px; }
.sprung { position: absolute; left: -999px; top: 0; background: var(--flaeche); padding: .75rem 1rem; z-index: 10; }
.sprung:focus { left: 1rem; top: 1rem; }

.innen { max-width: var(--mass); margin: 0 auto; padding: 0 var(--rand); }

/* Kopf */
.kopf { border-bottom: 1px solid var(--linie); }
.kopf .innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-top: .5rem; padding-bottom: .5rem; }
.marke { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.quadrat { display: inline-block; width: 10px; height: 10px; background: var(--akzent); flex: none; }
.marke small { font-weight: 400; color: var(--neben); font-size: .85rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .25rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .65rem; color: var(--text); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--linie); }
.nav a[aria-current="page"] { border-bottom-color: var(--akzent); font-weight: 600; }
@media (max-width: 640px) {
  .kopf .innen { flex-direction: column; align-items: flex-start; }
  .nav { width: 100%; margin-left: -.65rem; }
}

/* Textbausteine */
main { display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 750; max-width: 20ch; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; max-width: 30ch; }
h3 { font-size: 1.15rem; font-weight: 650; }
p, li { max-width: 66ch; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--neben); max-width: 58ch; }
.neben { color: var(--neben); }
.klein { font-size: .925rem; }

.block { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.block + .block { border-top: 1px solid var(--linie); }
.seitenkopf { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); }

/* Einstieg mit Bild */
.einstieg { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(2.5rem, 7vw, 5rem) 0; }
@media (min-width: 900px) { .einstieg { grid-template-columns: 1.05fr 1fr; } }
.einstieg figure { margin: 0; }
figcaption { color: var(--neben); font-size: .9rem; margin-top: .75rem; max-width: 52ch; }

.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.25rem; background: var(--akzent); color: var(--akzent-text); text-decoration: none; font-weight: 600; border-radius: 6px; border: 2px solid var(--akzent); }
.knopf:hover { filter: brightness(1.08); }
.knopf.still { background: transparent; color: var(--text); border-color: var(--linie); }
.knopf.still:hover { border-color: var(--text); filter: none; }

/* Raster */
.raster { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.raster > * { min-width: 0; }
.punkt h3 { display: flex; align-items: baseline; gap: .55rem; }
.punkt h3::before { content: ""; width: 8px; height: 8px; background: var(--akzent); flex: none; transform: translateY(-.1em); }
.punkt p { color: var(--neben); margin: 0; }

/* Ablauf (echte Reihenfolge) */
.ablauf { list-style: none; margin: 0; padding: 0; counter-reset: schritt; display: grid; gap: 0; }
.ablauf li { counter-increment: schritt; display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; padding: 1.25rem 0; border-top: 1px solid var(--linie); max-width: none; }
.ablauf li:last-child { border-bottom: 1px solid var(--linie); }
.ablauf li::before { content: counter(schritt); font-weight: 700; font-size: 1.5rem; line-height: 1.2; color: var(--akzent); }
.ablauf h3 { margin: 0 0 .25rem; }
.ablauf p { margin: 0; color: var(--neben); }

/* Zwei Spalten */
.zwei { display: grid; gap: 2rem 3rem; }
@media (min-width: 860px) { .zwei { grid-template-columns: 1fr 1.4fr; } }
.liste { padding-left: 1.2rem; margin: 0; }
.liste li { margin-bottom: .55rem; }
.liste li::marker { color: var(--akzent); }

/* Kacheln (Marken) */
.kacheln { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.kachel { display: flex; flex-direction: column; gap: .4rem; padding: 1.4rem 1.4rem 1.25rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 4px; border-top: 3px solid var(--farbe, var(--akzent)); color: var(--text); text-decoration: none; min-height: 44px; }
.kachel:hover { border-color: var(--neben); border-top-color: var(--farbe, var(--akzent)); }
.kachel strong { font-size: 1.2rem; display: flex; align-items: center; gap: .55rem; }
.kachel strong::before { content: ""; width: 10px; height: 10px; background: var(--farbe, var(--akzent)); }
.kachel span { color: var(--neben); }
.kachel .domain { margin-top: auto; padding-top: .6rem; color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
.kachel .stand { font-size: .9rem; }

/* Hinweisfläche */
.hinweis { background: var(--flaeche); border: 1px solid var(--linie); border-left: 4px solid var(--akzent); padding: 1.25rem 1.4rem; border-radius: 2px; max-width: 66ch; }
.hinweis p:last-child { margin-bottom: 0; }

/* Fragen */
details { border-top: 1px solid var(--linie); max-width: 66ch; }
details:last-of-type { border-bottom: 1px solid var(--linie); }
summary { cursor: pointer; min-height: 44px; padding: .8rem 0; font-weight: 600; list-style-position: inside; }
details p { color: var(--neben); }

/* Herstellerzeile */
.hersteller { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.hersteller li { border: 1px solid var(--linie); background: var(--flaeche); padding: .45rem .9rem; border-radius: 999px; font-weight: 600; }

/* Rechtstexte */
.recht h2 { font-size: 1.25rem; margin-top: 2rem; }
.recht address { font-style: normal; }

/* Fuss mit Familienleiste */
.fuss { border-top: 1px solid var(--linie); margin-top: 2rem; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.fuss .spalten { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.fuss h2 { font-size: 1rem; margin-bottom: .5rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.fuss p { color: var(--neben); }
.familie { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; align-items: center; }
.familie ul { display: flex; flex-wrap: wrap; gap: 0 .9rem; }
.familie li a { color: var(--neben); text-decoration: none; }
.familie li a:hover { color: var(--text); text-decoration: underline; }
.familie li a[aria-current="true"] { color: var(--akzent); font-weight: 600; }
.familie .dach { color: var(--neben); margin: 0; }
.familie .dach a { color: var(--text); }

/* Bilder (inline SVG) */
.plan { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 4px; padding: clamp(.75rem, 2vw, 1.25rem); }
.plan svg { display: block; width: 100%; }
.plan .g-grenze { fill: none; stroke: var(--neben); stroke-width: 1.5; stroke-dasharray: 6 5; }
.plan .g-haus { fill: var(--seite); stroke: var(--text); stroke-width: 2; }
.plan .g-weg { fill: var(--linie); }
.plan .g-kegel { fill: var(--akzent); fill-opacity: .16; stroke: var(--akzent); stroke-width: 1.2; }
.plan .g-cam { fill: var(--akzent); stroke: var(--flaeche); stroke-width: 3; }
.plan .g-privat { fill: url(#schraffur); stroke: var(--neben); stroke-width: 1; }
.plan .g-schraffur { stroke: var(--neben); stroke-width: 1.2; }
.plan text { fill: var(--text); font-family: inherit; font-size: 13px; }
.plan text.leise { fill: var(--neben); font-size: 12px; }

/* Datenbeispiel (Waiser AI) */
.schleuse { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 4px; overflow: hidden; }
.schleuse > div { padding: 1.1rem 1.25rem; }
.schleuse > div + div { border-top: 1px dashed var(--linie); }
.schleuse h3 { font-size: .95rem; color: var(--neben); font-weight: 600; margin: 0 0 .5rem; }
.schleuse p { margin: 0; font-size: 1rem; }
.schleuse mark { background: var(--akzent-zart); color: var(--text); padding: 0 .15em; border-radius: 2px; }
.schleuse code { font-family: var(--schrift-mono); font-size: .9em; color: var(--akzent); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .kopf .nav, .familie ul, .knoepfe { display: none; } body { border-top: 0; } }
