/* SonoBox-Produktseite. Ohne CDN und fremde Schriften; hell/dunkel nach System oder Umschalter. */
:root {
  --blau: #1f63b5; --blau-stark: #0b4a8f; --blau-zart: #e9f1fb; --blau-linie: #c9dbf2;
  --gruen: #13866f; --gruen-zart: #e2f4ef;
  --hg: #ffffff; --hg2: #f5f8fc; --text: #142031; --leise: #566377; --rand: #e1e7ef;
  --karte: #ffffff; --schirm: #0d1724; --schatten: 0 1px 2px rgba(15, 45, 90, .05), 0 12px 32px rgba(15, 45, 90, .08);
  --knopf-text: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blau: #6aa8ee; --blau-stark: #9cc6f5; --blau-zart: #15233a; --blau-linie: #243a58;
    --gruen: #4cc7a6; --gruen-zart: #12302a;
    --hg: #0c1118; --hg2: #111821; --text: #e6ebf2; --leise: #9ba7b8; --rand: #222d3b;
    --karte: #151d28; --schirm: #070b11; --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --knopf-text: #0c1118;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blau: #6aa8ee; --blau-stark: #9cc6f5; --blau-zart: #15233a; --blau-linie: #243a58;
  --gruen: #4cc7a6; --gruen-zart: #12302a;
  --hg: #0c1118; --hg2: #111821; --text: #e6ebf2; --leise: #9ba7b8; --rand: #222d3b;
  --karte: #151d28; --schirm: #070b11; --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  --knopf-text: #0c1118;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--hg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; overflow-x: hidden; }
a { color: var(--blau); }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
svg { display: block; }
.rahmen { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.sprung { position: absolute; left: -999px; top: 0; background: var(--blau); color: var(--knopf-text); padding: .5rem 1rem; z-index: 20; }
.sprung:focus { left: 1rem; top: .5rem; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; border-radius: 4px; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--hg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--rand); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.marke { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.kopf-nav { display: flex; gap: 1.5rem; align-items: center; }
.kopf-nav a:not(.knopf) { color: var(--leise); text-decoration: none; font-weight: 500; font-size: .95rem; }
.kopf-nav a:not(.knopf):hover { color: var(--text); }
.thema-knopf { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--rand); background: transparent; color: var(--leise); cursor: pointer; }
.thema-knopf:hover { color: var(--text); background: var(--hg2); }

/* Knöpfe */
.knopf { display: inline-block; background: var(--blau); color: var(--knopf-text); text-decoration: none; padding: .6rem 1.1rem; border-radius: 10px; font-weight: 600; border: 2px solid var(--blau); transition: background .15s, border-color .15s, transform .15s; line-height: 1.3; }
.knopf:hover { background: var(--blau-stark); border-color: var(--blau-stark); transform: translateY(-1px); }
.knopf.klein { padding: .38rem .9rem; font-size: .92rem; }
.knopf.gross { padding: .85rem 1.5rem; font-size: 1.04rem; }
.knopf.zweit { background: transparent; color: var(--blau); }
.knopf.zweit:hover { background: var(--blau-zart); }

/* Held */
.held { padding: 5rem 0 4.5rem; background: radial-gradient(900px 520px at 88% 0%, var(--blau-zart), transparent 70%), radial-gradient(700px 400px at 0% 100%, var(--hg2), transparent 70%); }
.held-raster { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.vorzeile { color: var(--blau); font-weight: 700; text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; margin: 0 0 .7rem; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.08; margin: 0 0 1.25rem; letter-spacing: -.025em; }
.einleitung { font-size: 1.17rem; color: var(--leise); margin: 0 0 2rem; max-width: 36em; }
.einleitung strong { color: var(--text); font-weight: 600; }
.knoepfe { display: flex; gap: .8rem; flex-wrap: wrap; }
.vertrauen { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--leise); font-size: .92rem; }
.vertrauen li { display: flex; align-items: center; gap: .45rem; }
.vertrauen li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--gruen-zart) no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3' fill='none' stroke='%2313866f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.bild-held { width: 100%; height: auto; max-width: 560px; margin-left: auto; }
.bild-held .flaeche-zart { fill: var(--blau-zart); }
.bild-held .karte { fill: var(--karte); stroke: var(--rand); stroke-width: 1.5; filter: drop-shadow(0 14px 22px rgba(15, 45, 90, .12)); }
.bild-held .karte-ohne { fill: var(--rand); }
.bild-held .schirm { fill: var(--schirm); }
.bild-held .loch { fill: #0d1724; opacity: .85; }
.bild-held .gewebe { fill: none; stroke: #e8f0f8; stroke-width: 5; opacity: .35; stroke-linecap: round; }
.bild-held .mess path { stroke: #ffd257; stroke-width: 2; fill: none; }
.bild-held .schirm-text { font: 600 11px ui-monospace, Consolas, monospace; fill: #ffd257; }
.bild-held .schirm-text.leise { fill: #8fa3bb; font-weight: 500; }
.bild-held .kabel { fill: none; stroke: var(--leise); stroke-width: 4; stroke-linecap: round; opacity: .5; }
.bild-held .wellen path { fill: none; stroke: var(--blau); stroke-width: 4; stroke-linecap: round; }
.bild-held .wellen path:nth-child(2) { opacity: .65; }
.bild-held .wellen path:nth-child(3) { opacity: .35; }
.bild-held .akzent { fill: var(--blau); }
.bild-held .linie { fill: var(--rand); }
.bild-held .kachel { fill: var(--schirm); }
.bild-held .kachel-motiv { fill: #7f98b3; opacity: .7; }
.bild-held .kachel-play { fill: var(--schirm); }
.bild-held .marke-chip rect { fill: var(--blau); }
.bild-held .marke-chip.gruen rect { fill: var(--gruen); }
.bild-held .marke-chip text { font: 700 13px system-ui, sans-serif; fill: var(--knopf-text); text-anchor: middle; letter-spacing: .08em; }

/* Abschnitte */
.abschnitt { padding: 5.5rem 0; }
.abschnitt.zart { background: var(--hg2); border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand); }
.abschnitt h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); margin: 0 0 .7rem; letter-spacing: -.02em; }
.unterzeile { color: var(--leise); margin: 0 0 2.75rem; font-size: 1.1rem; max-width: 46em; }
.unterzeile.klein { font-size: 1rem; margin-bottom: 1.5rem; }
.abschnitt h3 { font-size: 1.12rem; margin: 0 0 .45rem; }

/* Ablauf */
.schritte { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; position: relative; }
.schritte li { counter-increment: s; background: var(--karte); border: 1px solid var(--rand); border-radius: 18px; padding: 1.75rem; box-shadow: var(--schatten); position: relative; }
.schritte li::after { content: counter(s); position: absolute; top: 1.4rem; right: 1.5rem; font-size: 2.6rem; font-weight: 800; color: var(--blau-zart); line-height: 1; }
.schritte p { margin: 0; color: var(--leise); font-size: .98rem; }
.schritt-symbol, .symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blau-zart); color: var(--blau); margin-bottom: 1rem; }
.schritt-symbol svg, .symbol svg, .kontakt-weg svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Funktionen */
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.kacheln article { background: var(--karte); border: 1px solid var(--rand); border-radius: 18px; padding: 1.6rem; transition: border-color .15s, transform .15s; }
.kacheln article:hover { border-color: var(--blau-linie); transform: translateY(-2px); }
.kacheln p { margin: 0; color: var(--leise); font-size: .97rem; }

.viewer-band { margin-top: 3.5rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.viewer-band h3 { font-size: 1.45rem; margin-bottom: 1rem; letter-spacing: -.01em; }
.bild-viewer { width: 100%; height: auto; filter: drop-shadow(0 20px 36px rgba(15, 45, 90, .16)); }
.bildschirm { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--rand); box-shadow: 0 20px 40px rgba(15, 45, 90, .16); background: #111; }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.galerie figure { margin: 0; }
.galerie figcaption { margin-top: 10px; font-size: .92rem; color: var(--leise, inherit); opacity: .85; }
@media (max-width: 860px) { .galerie { grid-template-columns: 1fr; } }
.bild-viewer .v-fenster { fill: var(--karte); stroke: var(--rand); }
.bild-viewer .v-leiste { fill: var(--hg2); }
.bild-viewer .v-punkt { fill: var(--rand); }
.bild-viewer .v-titel, .bild-viewer .v-zeile { fill: var(--rand); }
.bild-viewer .v-knopf { fill: var(--blau); }
.bild-viewer .v-knopf.hell, .bild-viewer .v-seite { fill: var(--hg2); }
.bild-viewer .v-akzent { fill: var(--blau); }
.bild-viewer .v-bild { fill: var(--schirm); }
.bild-viewer .v-auswahl { fill: none; stroke: var(--blau); stroke-width: 2.5; }
.bild-viewer .v-scan { fill: #8ea6bf; opacity: .55; }
.bild-viewer .v-loch { fill: #0d1724; opacity: .9; }
.bild-viewer .v-mess { stroke: #ffd257; stroke-width: 2; }
.bild-viewer .v-text { font: 600 12px ui-monospace, Consolas, monospace; fill: #ffd257; }

.haken { list-style: none; padding: 0; margin: 0; }
.haken li { padding-left: 1.85rem; position: relative; margin: .6rem 0; }
.haken li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 18px; height: 18px; border-radius: 50%; background: var(--blau-zart) no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3' fill='none' stroke='%231f63b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Umstieg */
.umstieg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.umstieg article { border-top: 3px solid var(--blau); padding-top: 1.25rem; }
.umstieg p { color: var(--leise); margin: 0; }
.nummer { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blau); color: var(--knopf-text); font-weight: 700; font-size: .95rem; margin-bottom: .8rem; }

/* Kompatibilität */
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li { background: var(--karte); border: 1px solid var(--rand); border-radius: 999px; padding: .4rem .95rem; font-size: .95rem; font-weight: 500; }
.chips li:last-child { color: var(--leise); font-style: italic; font-weight: 400; }
.fussnote { color: var(--leise); font-size: .82rem; margin: 2.5rem 0 0; }

/* Lizenz */
.lizenz { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem; align-items: stretch; }
.lizenz-haupt { background: linear-gradient(160deg, var(--blau-zart), var(--karte) 70%); border: 1px solid var(--blau-linie); border-radius: 20px; padding: 2rem; display: flex; flex-direction: column; }
.lizenz-haupt h3 { font-size: 1.5rem; margin: 0; }
.lizenz-zeile { color: var(--blau); font-weight: 600; margin: .25rem 0 1.25rem; }
.lizenz-haupt .haken { margin-bottom: 1.75rem; flex: 1; }
.lizenz-haupt .knopf { align-self: flex-start; }
.module { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
.module article { background: var(--karte); border: 1px solid var(--rand); border-radius: 16px; padding: 1.35rem; }
.module h3::before { content: "Inklusive"; display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--gruen); font-weight: 600; margin-bottom: .2rem; }
.module p { margin: 0; color: var(--leise); font-size: .96rem; }
.test-hinweis { grid-column: 1 / -1; margin: 0; padding: 1rem 1.25rem; border-radius: 14px; background: var(--gruen-zart); color: var(--text); font-size: .96rem; }
.test-hinweis strong { color: var(--gruen); }

/* Sicherheit */
.abschnitt.dunkel { background: #0d1a2b; color: #e6ebf2; }
.abschnitt.dunkel .vorzeile { color: #7fb4f0; }
.sicher { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.5rem; }
.sicher div { border-left: 2px solid #2b4c77; padding-left: 1.25rem; }
.sicher p { color: #a9b6c7; margin: 0; font-size: .97rem; }

/* Kontakt */
.kontakt { background: linear-gradient(135deg, #1f63b5, #0b4a8f); color: #fff; }
.kontakt h2 { color: #fff; }
.kontakt p { color: rgba(255, 255, 255, .85); font-size: 1.08rem; margin: 0; }
.kontakt-raster { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.kontakt-wege { display: grid; gap: .9rem; }
.kontakt-weg { display: flex; align-items: center; gap: 1rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: 1rem 1.25rem; color: #fff; text-decoration: none; font-size: 1.2rem; font-weight: 600; transition: background .15s; }
.kontakt-weg:hover { background: rgba(255, 255, 255, .18); }
.kontakt-weg svg { width: 26px; height: 26px; flex: none; }
.kontakt-weg small { display: block; font-size: .78rem; font-weight: 500; opacity: .75; text-transform: uppercase; letter-spacing: .08em; }

/* Fuß */
.fuss { border-top: 1px solid var(--rand); padding: 3rem 0 1.5rem; color: var(--leise); font-size: .93rem; background: var(--hg); }
.fuss-raster { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.fuss h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text); margin: 0 0 .6rem; }
.fuss p { margin: 0; line-height: 1.9; }
.fuss-marke p { margin-top: .6rem; line-height: 1.6; }
.fuss a { color: var(--leise); text-decoration: none; }
.fuss a:hover { color: var(--text); text-decoration: underline; }
.fuss .marke { color: var(--text); }
.fuss .marke:hover { text-decoration: none; }
.fuss-unten { display: flex; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rand); font-size: .84rem; }
.fuss .verwaltung { opacity: .6; }

/* Rechtstexte */
.recht { padding: 3.5rem 0 5rem; }
.recht .rahmen { max-width: 820px; }
.recht h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.recht .stand { color: var(--leise); margin: 0 0 2.5rem; }
.recht h2 { font-size: 1.3rem; margin: 2.5rem 0 .6rem; letter-spacing: -.01em; }
.recht h3 { font-size: 1.05rem; margin: 1.6rem 0 .4rem; }
.recht p, .recht li { color: var(--text); }
.recht p { margin: 0 0 .9rem; }
.recht ul { padding-left: 1.3rem; margin: 0 0 1rem; }
.recht li { margin: .3rem 0; }
.recht address { font-style: normal; margin: 0 0 .9rem; }
.recht .karte-recht { background: var(--hg2); border: 1px solid var(--rand); border-radius: 16px; padding: 1.4rem 1.6rem; margin: 0 0 1rem; }
.recht .karte-recht p:last-child, .recht .karte-recht address:last-child { margin-bottom: 0; }
.recht .betont { background: var(--blau-zart); border: 1px solid var(--blau-linie); border-radius: 16px; padding: 1.4rem 1.6rem; }
.recht .betont h2 { margin-top: 0; }
.recht .betont p:last-child { margin-bottom: 0; }
.recht dl { display: grid; grid-template-columns: 11rem 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.recht dt { color: var(--leise); }
.recht dd { margin: 0; }
.recht .zurueck { display: inline-block; margin-bottom: 1.5rem; font-size: .95rem; text-decoration: none; }

@media (max-width: 960px) {
  .kacheln { grid-template-columns: repeat(2, 1fr); }
  .sicher { grid-template-columns: repeat(2, 1fr); }
  .lizenz, .viewer-band { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .held { padding: 2.75rem 0 3rem; }
  .held-raster, .zwei-spalten, .kontakt-raster { grid-template-columns: 1fr; gap: 2.25rem; }
  .bild-held { margin: 0 auto; max-width: 440px; }
  .kopf-nav { gap: .75rem; }
  .kopf-nav a:not(.knopf) { display: none; }
  .abschnitt { padding: 3.75rem 0; }
  .schritte, .umstieg { grid-template-columns: 1fr; }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
  .fuss-marke { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .kacheln, .sicher, .module { grid-template-columns: 1fr; }
  .knoepfe .knopf { flex: 1 1 100%; text-align: center; }
  .unterzeile { margin-bottom: 2rem; }
  .lizenz-haupt { padding: 1.5rem; }
  .recht dl { grid-template-columns: 1fr; gap: 0; }
  .recht dd { margin-bottom: .6rem; }
  .fuss-unten { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
