:root {
  --grund: #ffffff; --flaeche: #f5f5f7; --karte: #ffffff; --text: #1d1d1f; --leise: #6e6e73; --linie: rgba(0, 0, 0, .1);
  --akzent: #0071e3; --akzent-text: #0066cc; --rot: #d70015; --rot-flaeche: rgba(215, 0, 21, .1);
  --gruen: #1e7b34; --gruen-flaeche: rgba(30, 123, 52, .1); --grau: #8e8e93;
  --nacht: #0b0b0d; --nacht-karte: #1c1c1f; --nacht-text: #f5f5f7; --nacht-leise: #a1a1a6; --nacht-linie: rgba(255, 255, 255, .12);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #000000; --flaeche: #111113; --karte: #1c1c1e; --text: #f5f5f7; --leise: #a1a1a6;
          --linie: rgba(255, 255, 255, .14); --akzent: #0a6cdc; --akzent-text: #5aa9ff; --rot: #ff6961;
          --rot-flaeche: rgba(255, 105, 97, .14); --gruen: #30d158; --gruen-flaeche: rgba(48, 209, 88, .14); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--grund); color: var(--text);
       font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
       -webkit-font-smoothing: antialiased; }
a { color: var(--akzent-text); }
a:hover { color: var(--text); }
img, svg { max-width: 100%; height: auto; }
.breite { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.schmal { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.tc { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--grund) 84%, transparent);
        backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
        border-bottom: 1px solid var(--linie); }
.kopf .breite { display: flex; align-items: center; gap: 20px; min-height: 58px; flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.marke img { width: 28px; height: 28px; border-radius: 7px; }
.kopf nav { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.kopf nav a { color: var(--text); text-decoration: none; }
.kopf nav a:hover { color: var(--akzent-text); }
.kopf nav .knopf { min-height: 34px; padding: 0 16px; font-size: 14px; color: #fff; }
/* Auf dem Handy nur der Testen-Knopf – sonst frisst der Kopf drei Zeilen. */
@media (max-width: 640px) { .kopf nav a:not(.knopf) { display: none; } .kopf .breite { flex-wrap: nowrap; } }

/* Abschnitte */
section { padding: 88px 0; }
section.grau { background: var(--flaeche); }
section.nacht { background: var(--nacht); color: var(--nacht-text); }
section.nacht .leise, section.nacht .unterzeile { color: var(--nacht-leise); }
h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 20px; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.oberzeile { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--akzent-text);
             margin-bottom: 14px; }
section.nacht .oberzeile { color: #6cb4ff; }
.unterzeile { font-size: clamp(19px, 2.3vw, 23px); line-height: 1.45; color: var(--leise); max-width: 780px; margin: 0 0 30px; }
.leise { color: var(--leise); }
.klein { font-size: 14px; }
.mitte { text-align: center; }
.mitte .unterzeile { margin-left: auto; margin-right: auto; }

.knoepfe { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mitte .knoepfe { justify-content: center; }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px;
         border-radius: 23px; background: var(--akzent); color: #fff; text-decoration: none; font-weight: 500; }
.knopf:hover { color: #fff; filter: brightness(1.08); }
.knopf.zweit { background: transparent; color: var(--akzent-text); box-shadow: inset 0 0 0 1.5px var(--akzent-text); }
.knopf.zweit:hover { color: var(--akzent-text); background: color-mix(in srgb, var(--akzent) 10%, transparent); }
section.nacht .knopf.zweit { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.mikro { font-size: 14px; color: var(--leise); margin-top: 14px; }
section.nacht .mikro { color: var(--nacht-leise); }

/* Hero */
.hero { padding: 96px 0 72px; overflow: hidden; }
.hero .breite { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero .breite { grid-template-columns: minmax(0, 1fr); } }

/* Beispiel-Ergebnis (gezeichnet, kein Bildschirmfoto) */
.demo { background: var(--nacht-karte); border: 1px solid var(--nacht-linie); border-radius: 16px; padding: 18px;
        box-shadow: 0 30px 80px rgba(0, 0, 0, .5); font-size: 13px; color: var(--nacht-text); }
.demo-kopf { display: flex; align-items: center; justify-content: space-between; color: var(--nacht-leise); font-size: 12px;
             margin-bottom: 12px; }
.demo-datei { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; }
.demo-datei.aktiv { background: rgba(10, 132, 255, .2); }
.demo-datei .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.punkt { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.punkt.rot { background: #ff6961; } .punkt.gruen { background: #30d158; } .punkt.grau { background: #8e8e93; }
.marke-rot { color: #ff6961; font-weight: 600; } .marke-gruen { color: #30d158; }
.demo-spur { position: relative; height: 34px; margin: 14px 0 6px; border-radius: 7px; background: rgba(255, 255, 255, .07); }
.demo-spur span { position: absolute; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; background: #ff6961; }
.demo-spur .s1 { left: 6%; } .demo-spur .s2 { left: 9.5%; } .demo-spur .s3 { left: 13%; } .demo-spur .s4 { left: 16.5%; }
.demo-spur .s5 { left: 20%; top: 2px; bottom: 2px; background: #0a84ff; } .demo-spur .st { left: 64%; width: 9%; background: #8e8e93; }
.demo-achse { display: flex; justify-content: space-between; color: var(--nacht-leise); font-size: 11px; }
.demo-stelle { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 8px 10px; border-top: 1px solid var(--nacht-linie); }
.demo-stelle .tc { color: #fff; }
.demo-stelle .art { color: var(--nacht-leise); }
.demo-ursache { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.demo-ursache b { display: block; color: #fff; margin-bottom: 2px; }
.chip { display: inline-block; margin-top: 10px; padding: 5px 12px; border-radius: 14px; background: #0a6cdc; color: #fff;
        font-size: 12px; font-weight: 500; }
.bildunterschrift { margin-top: 12px; font-size: 13px; color: var(--nacht-leise); text-align: center; }

/* Vertrauen */
.vertrauen { padding: 22px 0; border-bottom: 1px solid var(--linie); }
.vertrauen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px;
                font-size: 15px; color: var(--leise); }
.vertrauen li::before { content: "✓"; color: var(--gruen); font-weight: 700; margin-right: 8px; }

/* Raster & Karten */
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.raster.zwei { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.karte { background: var(--karte); border-radius: 18px; padding: 26px; }
section.grau .karte { background: var(--karte); }
section:not(.grau):not(.nacht) .karte { background: var(--flaeche); }
section.nacht .karte { background: var(--nacht-karte); }
.karte p { margin: 0; color: var(--leise); }
section.nacht .karte p { color: var(--nacht-leise); }
.karte .zahl { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
               background: var(--akzent); color: #fff; font-weight: 600; margin-bottom: 14px; }
.symbol { width: 34px; height: 34px; margin-bottom: 14px; color: var(--akzent-text); }
.karte .beispiel { margin-top: 12px; font-size: 14px; }

/* Filmstreifen */
.film { margin-top: 44px; }
.film-beschriftung { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 14px; font-size: 14px;
                     color: var(--nacht-leise); }

/* Beispiel Ursache & Lösung */
.loesung { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; margin-top: 40px; }
@media (max-width: 860px) { .loesung { grid-template-columns: minmax(0, 1fr); } }
.schritte { margin: 0; padding: 0; list-style: none; counter-reset: schritt; }
.schritte li { counter-increment: schritt; position: relative; padding: 0 0 16px 44px; }
.schritte li::before { content: counter(schritt); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%;
                       background: var(--akzent); color: #fff; font-size: 14px; font-weight: 600; display: flex;
                       align-items: center; justify-content: center; }
.pfad { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; background: var(--flaeche);
        border-radius: 5px; padding: 1px 6px; }
section.grau .pfad { background: var(--karte); }

/* Vergleich */
.tabelle { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 16px; }
.tabelle-rahmen { overflow-x: auto; }
.tabelle th, .tabelle td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle thead th { font-size: 14px; color: var(--leise); font-weight: 600; }
.tabelle td:last-child, .tabelle th:last-child { background: color-mix(in srgb, var(--akzent) 7%, transparent); }
.ja { color: var(--gruen); font-weight: 600; } .nein { color: var(--leise); }

/* Preise */
.preise { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.preis { display: flex; flex-direction: column; gap: 10px; border-radius: 20px; padding: 30px; background: var(--karte);
         box-shadow: 0 0 0 1px var(--linie); }
.preis.empfohlen { box-shadow: 0 0 0 2px var(--akzent); }
.preis .etikett { align-self: flex-start; font-size: 12px; font-weight: 600; color: #fff; background: var(--akzent);
                  border-radius: 10px; padding: 2px 10px; }
.preis .betrag { font-size: 44px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.preis .betrag small { font-size: 15px; font-weight: 400; color: var(--leise); }
.preis ul { margin: 6px 0 14px; padding-left: 20px; color: var(--leise); flex: 1; }
.preis li { margin: 5px 0; }
.garantie { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 30px;
            text-align: center; color: var(--leise); }
.garantie strong { color: var(--text); }

/* Über */
.ueber { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.ueber img { width: 84px; height: 84px; border-radius: 20px; }
@media (max-width: 600px) { .ueber { grid-template-columns: minmax(0, 1fr); } }

/* Fragen */
details { border-bottom: 1px solid var(--linie); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex;
                  justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--leise); font-weight: 400; font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--leise); }

/* Fuß */
footer { padding: 40px 0 52px; border-top: 1px solid var(--linie); font-size: 13px; color: var(--leise); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
footer a { color: var(--leise); }

/* Rechtstexte */
.text { max-width: 780px; }
.text h1 { font-size: 38px; }
.text h2 { font-size: 22px; margin-top: 34px; }
.offen { background: #fff3cd; color: #5c4500; padding: 0 4px; border-radius: 3px; }
