/* ---------------------------------------------------------------------------
   Klaro – Produktseite
   Ein Stylesheet, keine Abhängigkeiten, keine externen Schriften.
   Die Farben stehen als Custom Properties ganz oben: einmal ändern reicht.
   --------------------------------------------------------------------------- */

:root {
    --blau:        #2563eb;          /* Akzent für Text und Linien */
    --blau-dunkel: #1d4ed8;
    --blau-blass:  #eff4ff;
    /* Gefüllte Flächen bleiben in beiden Modi kräftig - auf hellem Blau
       wäre weiße Schrift im Dunkelmodus kaum lesbar. */
    --blau-flaeche: #2563eb;
    --auf-blau:     #ffffff;

    --text:        #0f172a;
    --text-leise:  #475569;
    --text-fein:   #94a3b8;
    --grund:       #ffffff;
    --grund-sanft: #f8fafc;
    --karte:       #ffffff;
    --rand:        #e2e8f0;
    --rand-stark:  #cbd5e1;

    --gruen:  #059669;
    --gelb:   #ca8a04;
    --rot:    #ef4444;

    --radius:      14px;
    --radius-klein: 8px;
    --schatten:    0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
    --schatten-stark: 0 2px 4px rgba(15, 23, 42, .08), 0 16px 48px rgba(15, 23, 42, .12);

    --breite: 1120px;
    --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --text:        #e2e8f0;
        --text-leise:  #94a3b8;
        --text-fein:   #64748b;
        --grund:       #0f172a;
        --grund-sanft: #131f36;
        --karte:       #172033;
        --rand:        #24304a;
        --rand-stark:  #33415c;
        --blau:        #60a5fa;
        --blau-dunkel: #3b82f6;
        --blau-blass:  #16233c;
        --blau-flaeche: #2f6ae0;
        --auf-blau:     #ffffff;
        --schatten:    0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
        --schatten-stark: 0 2px 4px rgba(0, 0, 0, .4), 0 16px 48px rgba(0, 0, 0, .45);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --text:        #e2e8f0;
    --text-leise:  #94a3b8;
    --text-fein:   #64748b;
    --grund:       #0f172a;
    --grund-sanft: #131f36;
    --karte:       #172033;
    --rand:        #24304a;
    --rand-stark:  #33415c;
    --blau:        #60a5fa;
    --blau-dunkel: #3b82f6;
    --blau-blass:  #16233c;
    --blau-flaeche: #2f6ae0;
    --auf-blau:     #ffffff;
    --schatten:    0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --schatten-stark: 0 2px 4px rgba(0, 0, 0, .4), 0 16px 48px rgba(0, 0, 0, .45);
    color-scheme: dark;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--schrift);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--grund);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--blau); }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.schmal { max-width: 760px; }

section { padding: 72px 0; }
section.sanft { background: var(--grund-sanft); }

.vorspann {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--blau);
    margin-bottom: 10px;
}

.leise { color: var(--text-leise); }
.gross { font-size: 1.15rem; }

/* Kopf -------------------------------------------------------------------- */
.kopf {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--grund) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rand);
}
.kopf .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.marke-zeichen {
    width: 30px; height: 30px; border-radius: 9px;
    background: var(--blau-flaeche); color: var(--auf-blau);
    display: grid; place-items: center;
}
.marke-zeichen svg { width: 18px; height: 18px; }
.kopfnav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
/* :not(.knopf) ist wichtig: ".kopfnav a" wiegt schwerer als ".knopf-voll" und
   wuerde dem Knopf sonst seine Schriftfarbe wegnehmen. */
.kopfnav a:not(.knopf) { color: var(--text-leise); text-decoration: none; font-size: .95rem; font-weight: 500; }
.kopfnav a:not(.knopf):hover { color: var(--text); }
@media (max-width: 720px) { .kopfnav a:not(.knopf) { display: none; } }

/* Knöpfe ------------------------------------------------------------------ */
.knopf {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px; border-radius: var(--radius-klein);
    font-weight: 650; font-size: .97rem; text-decoration: none;
    border: 1px solid transparent; cursor: pointer;
    transition: background .15s, border-color .15s, transform .1s;
}
.knopf:active { transform: translateY(1px); }
.knopf-voll { background: var(--blau-flaeche); color: var(--auf-blau); }
.knopf-voll:hover { background: var(--blau-dunkel); }
.knopf-rand { border-color: var(--rand-stark); color: var(--text); background: var(--karte); }
.knopf-rand:hover { border-color: var(--blau); color: var(--blau); }

/* Aufmacher --------------------------------------------------------------- */
.aufmacher { padding: 88px 0 64px; }
.aufmacher h1 { max-width: 16ch; }
.aufmacher .gross { max-width: 56ch; color: var(--text-leise); }
.aufmacher-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.aufmacher-fein { margin-top: 18px; font-size: .9rem; color: var(--text-fein); }

/* Board-Andeutung --------------------------------------------------------- */
.board {
    margin-top: 52px;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
    padding: 18px;
    background: var(--grund-sanft);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    box-shadow: var(--schatten-stark);
    overflow-x: auto;
}
@media (max-width: 860px) { .board { grid-template-columns: repeat(4, 210px); } }
.spalte-kopf {
    display: flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--text-leise); margin-bottom: 10px;
}
.zahl {
    font-size: .72rem; padding: 1px 7px; border-radius: 20px;
    background: var(--rand); color: var(--text-leise); letter-spacing: 0;
}
.karte {
    background: var(--karte); border: 1px solid var(--rand);
    border-left: 3px solid var(--blau);
    border-radius: 10px; padding: 11px 13px; margin-bottom: 10px;
    box-shadow: var(--schatten);
}
.karte-nr { font-size: .72rem; font-weight: 700; color: var(--text-fein); letter-spacing: .04em; }
.karte-titel { font-size: .93rem; font-weight: 600; margin: 3px 0 8px; line-height: 1.35; }
.karte-fuss { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.plakette {
    font-size: .72rem; padding: 2px 8px; border-radius: 20px;
    border: 1px solid var(--rand-stark); color: var(--text-leise);
}
.plakette-rot   { border-color: var(--rot);   color: var(--rot); }
.plakette-gelb  { border-color: var(--gelb);  color: var(--gelb); }
.plakette-gruen { border-color: var(--gruen); color: var(--gruen); }
.kopfbild {
    width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    font-size: .68rem; font-weight: 700; margin-left: auto;
}

/* Raster ------------------------------------------------------------------ */
.raster { display: grid; gap: 22px; }
.raster-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.raster-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.merkmal {
    background: var(--karte); border: 1px solid var(--rand);
    border-radius: var(--radius); padding: 22px;
}
.merkmal-zeichen {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--blau-blass); color: var(--blau);
    display: grid; place-items: center; margin-bottom: 13px;
}
.merkmal-zeichen svg { width: 20px; height: 20px; }
.merkmal h3 { margin-bottom: 6px; }
.merkmal p { margin: 0; font-size: .95rem; color: var(--text-leise); }

/* Zielgruppen ------------------------------------------------------------- */
.wer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.wer span {
    padding: 7px 15px; border-radius: 30px;
    border: 1px solid var(--rand-stark); background: var(--karte);
    font-size: .92rem; color: var(--text-leise);
}

/* Preise ------------------------------------------------------------------ */
.preise { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 34px; align-items: start; }
.tarif {
    background: var(--karte); border: 1px solid var(--rand);
    border-radius: var(--radius); padding: 26px; position: relative;
    display: flex; flex-direction: column; height: 100%;
}
.tarif-hervor { border-color: var(--blau); border-width: 2px; box-shadow: var(--schatten-stark); }
.tarif-fahne {
    position: absolute; top: -12px; left: 26px;
    background: var(--blau-flaeche); color: var(--auf-blau);
    font-size: .74rem; font-weight: 700; letter-spacing: .04em;
    padding: 4px 12px; border-radius: 20px; text-transform: uppercase;
}
/* Eine Fahne, die nichts anpreist, sondern nur einordnet. */
.tarif-fahne-still { background: var(--rand-stark); color: var(--text-leise); }
.tarif h3 { font-size: 1.25rem; margin-bottom: 4px; }
.tarif-zweck { font-size: .9rem; color: var(--text-leise); margin-bottom: 18px; min-height: 2.8em; }
.preis { display: flex; align-items: baseline; gap: 7px; margin-bottom: 4px; }
.preis b { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.preis span { color: var(--text-leise); font-size: .95rem; }
/* Steht ein Wort statt einer Zahl im Preisfeld, wirkt die Zahlengröße marktschreierisch. */
.preis-wort b { font-size: 1.55rem; letter-spacing: -.01em; }
.preis-fein { font-size: .84rem; color: var(--text-fein); margin-bottom: 20px; }
.tarif ul { list-style: none; padding: 0; margin: 0 0 22px; }
.tarif li { display: flex; gap: 9px; align-items: flex-start; font-size: .94rem; padding: 5px 0; color: var(--text-leise); }
.tarif li svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--gruen); }
.tarif .knopf { margin-top: auto; justify-content: center; }

/* Vergleichstabelle ------------------------------------------------------- */
.tabellenrahmen { overflow-x: auto; margin-top: 28px; border: 1px solid var(--rand); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; background: var(--karte); }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--rand); }
th { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-leise); background: var(--grund-sanft); }
tbody tr:last-child td { border-bottom: none; }
td.ja { color: var(--gruen); font-weight: 600; }
td.nein { color: var(--text-fein); }

/* Fragen ------------------------------------------------------------------ */
details {
    border: 1px solid var(--rand); border-radius: var(--radius-klein);
    background: var(--karte); margin-bottom: 12px;
}
summary { padding: 16px 20px; font-weight: 650; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; color: var(--text-fein); font-size: 1.3rem; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding: 0 20px 18px; margin: 0; color: var(--text-leise); font-size: .96rem; }

/* Abschluss --------------------------------------------------------------- */
.abschluss {
    background: var(--blau-flaeche); color: var(--auf-blau);
    border-radius: var(--radius); padding: 48px 40px; text-align: center;
}
.abschluss h2 { color: var(--auf-blau); }
.abschluss p { color: rgba(255, 255, 255, .9); max-width: 52ch; margin-inline: auto; }
.abschluss .knopf { background: #fff; color: #1d4ed8; margin-top: 12px; }
.abschluss .knopf:hover { background: rgba(255, 255, 255, .9); }

/* Fuß --------------------------------------------------------------------- */
.fuss { border-top: 1px solid var(--rand); padding: 40px 0; font-size: .9rem; color: var(--text-leise); }
.fuss .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.fuss nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.fuss a { color: var(--text-leise); text-decoration: none; }
.fuss a:hover { color: var(--blau); }

.hinweis {
    border-left: 3px solid var(--gelb);
    background: var(--grund-sanft);
    padding: 14px 18px; border-radius: 0 var(--radius-klein) var(--radius-klein) 0;
    font-size: .93rem; color: var(--text-leise);
}
