*, *::before, *::after { box-sizing: border-box; }
      .kfz {
        --papier: #fcfcfb; --panel: #f4f4f1; --senke: #eeeeea; --rule: #dcdcd6;
        --tinte: #1a1a19; --tinte2: #55554f; --tinte3: #7a7a72;
        --teal: #1f8f74; --teal-tief: #14604e; --teal-zart: #e7f1ee;
        --amber: #c2750e; --amber-zart: #f6efe1; --rot: #8f3523;
        --rand: 72px;
        font-family: var(--schrift-text); font-size: 16px; line-height: 1.6;
        color: var(--tinte); background: var(--papier); width: 100%; min-height: 100%;
        -webkit-font-smoothing: antialiased;
      }
      .kfz h1, .kfz h2, .kfz h3 { font-family: var(--schrift-anzeige); font-weight: 500; letter-spacing: -0.022em; line-height: 1.1; margin: 0; text-wrap: balance; }
      .kfz p { margin: 0; }
      .kfz a { color: inherit; text-decoration: none; }
      .zahl { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
      .bahn { max-width: 1120px; margin: 0 auto; padding: 0 var(--rand); }

      .kopf { border-bottom: 1px solid var(--rule); }
      .kopf-innen { display: flex; align-items: center; gap: 40px; height: 72px; }
      .marke { font-family: var(--schrift-anzeige); font-weight: 600; font-size: 19px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 9px; }
      .marke-zeichen { width: 18px; height: 18px; flex: none; border: 1.5px solid var(--teal); border-radius: 50%; position: relative; }
      .marke-zeichen::after { content: ""; position: absolute; inset: 4.5px; background: var(--teal); border-radius: 50%; }
      .nav { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; color: var(--tinte2); }
      .nav a.aktiv { color: var(--tinte); font-weight: 600; }
      .kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14.5px; font-weight: 500; }

      .taste {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        background: var(--tinte); color: var(--papier);
        font-family: var(--schrift-text); font-size: 14.5px; font-weight: 600;
        padding: 11px 18px; border: 1px solid var(--tinte); border-radius: 8px; cursor: pointer; white-space: nowrap;
        transition: transform .16s cubic-bezier(.2,.7,.2,1), background .16s ease;
      }
      .taste:hover { background: #000; transform: translateY(-1px); }
      .taste.leise { background: transparent; color: var(--tinte); border-color: var(--rule); }
      .taste.leise:hover { background: var(--senke); border-color: var(--tinte3); }
      .taste.aus { background: var(--senke); color: var(--tinte3); border-color: var(--senke); cursor: default; }
      .taste.aus:hover { background: var(--senke); transform: none; }

      .held { padding: 88px 0 0; text-align: center; }
      .deckel {
        display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
        letter-spacing: .08em; text-transform: uppercase; color: var(--teal-tief);
        background: var(--teal-zart); padding: 6px 12px; border-radius: 100px; margin-bottom: 26px;
      }
      .held h1 { font-size: 50px; margin-bottom: 20px; }
      .held p.vorspann { font-size: 18px; color: var(--tinte2); max-width: 58ch; margin: 0 auto; line-height: 1.55; }
      .warteform { display: flex; gap: 10px; max-width: 470px; margin: 34px auto 0; }
      .feld {
        flex: 1; font-family: var(--schrift-text); font-size: 15px; padding: 11px 14px;
        background: #fff; border: 1px solid var(--rule); border-radius: 8px; color: var(--tinte);
        transition: border-color .16s ease, box-shadow .16s ease;
      }
      .feld::placeholder { color: var(--tinte3); }
      .feld:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 14%, transparent); }
      .kleingedruckt { font-size: 13px; color: var(--tinte3); margin-top: 12px; }

      .platzzaehler {
        margin-top: 44px; display: inline-flex; align-items: center; gap: 14px;
        border: 1px solid var(--rule); border-radius: 10px; padding: 14px 20px; background: #fff;
        font-size: 14px; color: var(--tinte2);
      }
      .platzzaehler b { font-family: var(--schrift-anzeige); font-size: 17px; font-weight: 600; color: var(--tinte); }
      .platzzaehler .trenn { width: 1px; height: 26px; background: var(--rule); }

      .abschnitt { padding: 96px 0 0; }
      .abschnitt h2 { font-size: 36px; margin-bottom: 16px; }
      .abschnitt > .bahn > p.vorspann { font-size: 17px; color: var(--tinte2); max-width: 64ch; margin-bottom: 44px; line-height: 1.55; }

      .preise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
      .karte {
        border: 1px solid var(--rule); border-radius: 14px; padding: 30px 28px 32px;
        background: var(--papier); display: flex; flex-direction: column; position: relative;
      }
      .karte.betont {
        border-color: var(--tinte);
        box-shadow: 0 1px 2px rgba(26,26,25,.05), 0 20px 48px -26px rgba(26,26,25,.26);
      }
      .karte .fahne {
        position: absolute; top: -11px; left: 28px; background: var(--tinte); color: var(--papier);
        font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
        padding: 4px 10px; border-radius: 5px;
      }
      .karte .titel { font-family: var(--schrift-anzeige); font-size: 18px; font-weight: 600; }
      .karte .unterzeile { font-size: 13.5px; color: var(--tinte3); margin-top: 5px; min-height: 2.6em; }
      .karte .preis { font-family: var(--schrift-anzeige); font-size: 38px; font-weight: 600; letter-spacing: -0.03em; margin: 16px 0 2px; }
      .karte .preis small { font-size: 15px; font-weight: 500; color: var(--tinte3); letter-spacing: 0; }
      .karte .takt { font-size: 13px; color: var(--tinte3); }
      .karte ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; }
      .karte li { font-size: 14.5px; color: var(--tinte2); display: grid; grid-template-columns: 18px 1fr; gap: 9px; line-height: 1.45; }
      .karte li::before { content: "\2713"; font-size: 12px; font-weight: 700; color: var(--teal); text-align: center; line-height: 1.7; }
      .karte li.nicht { color: var(--tinte3); }
      .karte li.nicht::before { content: "\2013"; color: var(--tinte3); font-weight: 600; }
      .karte .taste { margin-top: auto; }

      .vergleich { margin-top: 56px; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
      table { width: 100%; border-collapse: collapse; }
      thead th {
        font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tinte3);
        padding: 15px 20px; background: var(--panel); border-bottom: 1px solid var(--rule); text-align: center;
      }
      thead th:first-child { text-align: left; }
      tbody td { padding: 14px 20px; border-bottom: 1px solid var(--rule); font-size: 14.5px; text-align: center; }
      tbody td:first-child { text-align: left; color: var(--tinte2); }
      tbody tr:last-child td { border-bottom: none; }
      tbody .ja { color: var(--teal-tief); font-weight: 700; }
      tbody .nein { color: var(--tinte3); }
      tbody .teil { color: var(--amber); font-weight: 600; font-size: 13.5px; }

      .fragen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
      .frage { background: var(--papier); padding: 26px 26px 28px; }
      .frage h3 { font-size: 17px; margin-bottom: 9px; }
      .frage p { font-size: 14.5px; color: var(--tinte2); line-height: 1.55; }

      .fuss { margin-top: 96px; padding: 32px 0 44px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--tinte3); }
      .fuss .reihe { display: flex; gap: 22px; }
      .fuss .risiko { margin-top: 16px; max-width: 86ch; line-height: 1.6; }

      @media (prefers-color-scheme: dark) {
        .kfz:not([data-theme="light"]) {
          --papier: #121211; --panel: #1b1b19; --senke: #232320; --rule: #302f2c;
          --tinte: #f2f2ee; --tinte2: #b4b4ac; --tinte3: #85857c;
          --teal: #37a98c; --teal-tief: #7fd3bb; --teal-zart: #17251f;
          --amber: #d79433; --amber-zart: #2a2113; --rot: #c56a55;
        }
        .kfz:not([data-theme="light"]) .feld,
        .kfz:not([data-theme="light"]) .platzzaehler { background: #1b1b19; }
      }

      /* =======================================================================
         Inside Stocks: Schrift-, Bewegungs- und Materialschicht.
         Steht absichtlich am Ende, damit sie die frueheren Einzelwerte
         ueberschreibt. Eine Regel, kein Flickwerk je Baustein.
         ======================================================================= */
      .kfz {
        /* Dokumentenschrift fuer Sprache, Instrumentenschrift fuer Zahlen. */
        --schrift-anzeige: 'Source Serif 4', ui-serif, Georgia, serif;
        --schrift-text: 'Inter', system-ui, -apple-system, sans-serif;
        --schrift-zahl: 'Inter', system-ui, sans-serif;

        /* Antwortzeiten. Druck sofort, Zustandswechsel knapp, Einblendung ruhig.
           Alle Kurven kritisch gedaempft: kein Ueberschwingen ohne vorherigen
           Schwung, und auf diesen Seiten gibt es keine Gesten. */
        --t-druck: 110ms;
        --t-knapp: 200ms;
        --t-ruhig: 400ms;
        --kurve: cubic-bezier(.25,.8,.25,1);

        font-optical-sizing: auto;
        font-synthesis-weight: none;
        text-rendering: optimizeLegibility;
      }

      /* ---- Groessenabhaengige Laufweite und Zeilenhoehe ----
         Eine feste Laufweite ist bei irgendeiner Groesse falsch: grosse Schrift
         braucht negative, kleine leicht positive. Zeilenhoehe umgekehrt zur Groesse. */
      .kfz h1 { font-family: var(--schrift-anzeige); font-weight: 400; letter-spacing: -.032em; line-height: 1.05; }
      .kfz h2 { font-family: var(--schrift-anzeige); font-weight: 500; letter-spacing: -.024em; line-height: 1.1; }
      .kfz h3 { font-family: var(--schrift-anzeige); font-weight: 600; letter-spacing: -.012em; line-height: 1.24; }
      .kfz p, .kfz li, .kfz td { letter-spacing: .001em; }
      .kleingedruckt, .fussnote, .takt, .kuerzel, .rangzeile, .dauer,
      .marke-klein, .rubrik, .kennung, .richtung, .plakette, .fahne,
      .beleg-pos .etikett, .leiter-fuss, .sektor-fuss, .seo-notiz { letter-spacing: .012em; }

      /* Der Urteilssatz ist der Kern der Seite, also Dokumentenschrift. */
      .notenblock .satz, .karte-satz, .aufmacher h2, .nachbar .namen .n { font-family: var(--schrift-anzeige); }

      /* Zahlen immer in der Instrumentenschrift, mit gleicher Zifferbreite. */
      .zahl, .note, .note-gross, .notenkachel, .teilnote, .leiter-wert, .sym, .tick,
      .nr, .rangzahl, .firma .namen .t, .nachbar .namen .t, .preis, .karte .preis,
      .beleg-pos .wert, .sektor-kopf .rang, .wahl .anz, .rw-kopf .ergebnis,
      .unterschied .dort, .unterschied .hier, .platzzaehler b, .stufe-karte .preis,
      .sektor-zeile .wert, .meta b, thead th, tbody td {
        font-family: var(--schrift-zahl);
        font-variant-numeric: tabular-nums;
      }
      .marke { font-family: var(--schrift-anzeige); font-weight: 600; letter-spacing: -.022em; }

      /* ---- Kopfzeile als durchscheinendes Material ----
         Inhalt laeuft darunter weiter, statt an einer 1px-Linie abzuschneiden.
         Die Kante ist ein kurzer Verlauf, keine Trennlinie. */
      .kopf {
        position: sticky; top: 0; z-index: 30;
        background: color-mix(in srgb, var(--papier) 72%, transparent);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-bottom: none;
      }
      .kopf::after {
        content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px;
        background: linear-gradient(to bottom, color-mix(in srgb, var(--papier) 66%, transparent), transparent);
        pointer-events: none;
      }
      /* Lesbarkeit auf durchscheinendem Grund: etwas mehr Kontrast und Gewicht,
         nicht flaches Grau. */
      .kopf .nav a { color: color-mix(in srgb, var(--tinte) 72%, var(--papier)); font-weight: 500; }
      .kopf .nav a:hover, .kopf .nav a.aktiv { color: var(--tinte); }

      /* ---- Rueckmeldung auf den Druck, nicht auf das Loslassen ---- */
      .taste, .wahl, .rubrik-knopf, .nav a, .weiter, .zumvergleich, .sektor-verweis {
        transition: transform var(--t-druck) var(--kurve),
                    background-color var(--t-knapp) var(--kurve),
                    border-color var(--t-knapp) var(--kurve),
                    color var(--t-knapp) var(--kurve);
      }
      .taste:active, .wahl:active, .rubrik-knopf:active { transform: scale(.97); }
      .beitrag, .nachbar, .karte, .stufe-karte {
        transition: transform var(--t-knapp) var(--kurve), border-color var(--t-knapp) var(--kurve),
                    box-shadow var(--t-knapp) var(--kurve);
      }
      .kfz :focus-visible {
        outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px;
      }

      /* ---- Mengen bauen sich aus ihrem Nullpunkt auf ----
         Ein Balken, der von null auf seinen Wert waechst, zeigt die Groesse an.
         Gestaffelt, damit die Reihe lesbar bleibt statt gleichzeitig zu springen. */
      @keyframes wachsen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
      @keyframes einsetzen { from { opacity: 0; transform: translateX(-50%) scale(.5); }
                             to   { opacity: 1; transform: translateX(-50%) scale(1); } }

      .leiter-fuell { transform-origin: left center; animation: wachsen var(--t-ruhig) var(--kurve) both; }
      .leiter-zeile:nth-child(1) .leiter-fuell { animation-delay: 80ms; }
      .leiter-zeile:nth-child(2) .leiter-fuell { animation-delay: 140ms; }
      .leiter-zeile:nth-child(3) .leiter-fuell { animation-delay: 200ms; }
      .leiter-zeile:nth-child(4) .leiter-fuell { animation-delay: 260ms; }

      .sektor-zeile .punkt { animation: einsetzen 300ms var(--kurve) both; }
      .sektor-zeile .punkt { animation-delay: 120ms; }
      .sektor-zeile .punkt.median { animation-delay: 220ms; }
      .sektor-zeile .punkt.selbst { animation-delay: 320ms; }
      /* Namen in der Dokumentenschrift, auch in dichten Tabellen. */
      .firma .namen .n { font-family: var(--schrift-anzeige); font-weight: 600; letter-spacing: -.01em; }

      /* ---- Die Schlosskarte als eigenes Material ----
         Sie traegt das Angebot, also darf sie sich vom Papier abheben.
         Helle Oberkante: Licht, das sich im Material faengt. */
      .schloss-karte {
        background: color-mix(in srgb, var(--panel) 82%, transparent);
        backdrop-filter: blur(14px) saturate(140%);
        -webkit-backdrop-filter: blur(14px) saturate(140%);
        border-top: 1px solid color-mix(in srgb, #fff 45%, var(--rule));
        box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 35%, transparent);
      }

      /* ---- Weniger Bewegung: Querblende statt Weg ----
         Kein Verzicht auf Rueckmeldung, nur ohne Strecke im Raum. */
      @media (prefers-reduced-motion: reduce) {
        @keyframes wachsen { from { opacity: 0; } to { opacity: 1; } }
        @keyframes einsetzen { from { opacity: 0; transform: translateX(-50%); }
                               to   { opacity: 1; transform: translateX(-50%); } }
        .kfz .taste:hover, .kfz .beitrag:hover, .kfz .nachbar:hover,
        .kfz .taste:active, .kfz .wahl:active, .kfz .rubrik-knopf:active { transform: none; }
        .kfz .nav a::after { transition: none; }
      }

      /* ---- Weniger Transparenz: Material wird dicht ---- */
      @media (prefers-reduced-transparency: reduce) {
        .kopf, .schloss-karte {
          background: var(--papier); backdrop-filter: none; -webkit-backdrop-filter: none;
        }
        .schloss-karte { background: var(--panel); }
        .kopf { border-bottom: 1px solid var(--rule); }
        .kopf::after { display: none; }
      }

      /* ---- Mehr Kontrast: fast deckend, mit klarer Kante ---- */
      @media (prefers-contrast: more) {
        .kfz { --tinte2: #2f2f2c; --tinte3: #46463f; --rule: #9b9b93; }
        .kopf {
          background: var(--papier); backdrop-filter: none; -webkit-backdrop-filter: none;
          border-bottom: 1px solid var(--rule);
        }
        .kopf::after { display: none; }
        .plakette, .pille, .kuerzel { border: 1px solid currentColor; }
      }

    
      /* =======================================================================
         Korrekturen und mobile Ebene. Steht am Ende, damit sie die frueheren
         Einzelwerte ueberschreibt.
         ======================================================================= */

      /* Zahlenplaketten wachsen mit ihrem Inhalt statt ueber den Rand zu laufen. */
      .note, .notenkachel, .note-gross {
        width: auto; box-sizing: border-box;
      }

      /* Rueckmeldung auf Zeigergeraeten, nicht auf Touch: dort loest Tippen
         den Hover aus und das Element bleibt verschoben stehen. */
      @media (hover: none), (pointer: coarse) {
        .kfz .taste:hover, .kfz .beitrag:hover, .kfz .nachbar:hover,
        .kfz .karte:hover, .kfz .stufe-karte:hover, .kfz .wahl:hover {
          transform: none;
        }
        .kfz .nav a:hover::after { transform: scaleX(0); }
      }

      /* Beruehrungsflaechen: 44px Mindesthoehe, sobald mit dem Finger bedient wird. */
      @media (pointer: coarse) {
        .kfz .taste { min-height: 44px; }
        .kfz .feld { min-height: 44px; }
      }

      .vergleich { overflow-x: auto; -webkit-overflow-scrolling: touch; }
      .vergleich table { min-width: 600px; }

      @media (max-width: 1024px) {
        .kfz { --rand: 40px; }
        .preise { grid-template-columns: 1fr; }
        .fragen { grid-template-columns: 1fr; }
      }

      @media (max-width: 720px) {
        .kfz { --rand: 20px; }
        .kopf-innen { height: 60px; }
        .nav {
          gap: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch;
          scrollbar-width: none; -ms-overflow-style: none;
          margin: 0 calc(var(--rand) * -1); padding: 0 var(--rand);
        }
        .nav::-webkit-scrollbar { display: none; }
        .nav a { white-space: nowrap; }
        .held h1 { font-size: clamp(32px, 9vw, 40px); }
        .abschnitt h2 { font-size: 27px; }
        .platzzaehler { flex-wrap: wrap; gap: 10px 16px; }
        .platzzaehler .trenn { display: none; }
        .warteform { flex-direction: column; }
        .warteform .taste { justify-content: center; }
      }

    
      /* ---- Lesbarkeit, gemessen statt geschaetzt ----
         tinte3 lag auf Papier bei 4,21:1 und traegt Fussnoten und Etiketten
         unter 24px, also unter der Grenze von 4,5:1. Die Plaketten mit weisser
         Schrift auf Teal lagen bei 4,01:1, die Amber-Plaketten bei 3,08:1.
         Nur der Hellmodus wird angefasst, im Dunkelmodus liegen die Werte
         bereits bei 5,0:1 und hoeher. */
      .kfz { --teal-plakette: var(--teal); --amber-text: var(--amber); }
      @media (prefers-color-scheme: light) {
        .kfz { --tinte3: #6e6e66; --teal-plakette: #1a7b63; --amber-text: #8f5509; }
      }
      .kfz[data-theme="light"] { --tinte3: #6e6e66; --teal-plakette: #1a7b63; --amber-text: #8f5509; }

      .note, .note-gross, .notenkachel { background: var(--teal-plakette); }
      .plakette.konto, .schloss.konto, .korridor.ueber, .stufe .schloss.konto { color: var(--amber-text); }
