/* PraxisKompetenz – Themen-Einstieg auf der Startseite (30.09.2026)
   Ergänzt assets/site.css und nutzt dessen Farbvariablen. Nur auf index.html eingebunden.
   Ohne JavaScript bleibt alles sichtbar (Themenwahl + alle acht Themenblöcke);
   mit JavaScript setzt index.html die Klasse .tw-js auf <html>. */

/* ---------- Hero ---------- */
.tw-hero{padding-bottom:132px}
.tw-hero h1{margin-bottom:14px}
.tw-hero-sub{font-family:'Poppins',sans-serif;font-weight:500;font-size:clamp(18px,1.9vw,24px);line-height:1.4;color:rgba(255,255,255,.88);max-width:720px}

/* ---------- Themenwahl ---------- */
.tw-wahl{padding:0 40px 72px;position:relative;z-index:2}
.tw-panel{max-width:1240px;margin:-92px auto 0;background:var(--white);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);padding:34px 40px 30px;display:flex;flex-direction:column;gap:22px}
.tw-panel-kopf{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.tw-frage{font-size:clamp(22px,2.3vw,30px);letter-spacing:-.01em;color:var(--navy)}
.tw-frage:focus{outline:none}
.tw-unterzeile{margin-top:8px;font-size:16px;line-height:1.55;color:var(--slate)}
.tw-zaehler{font-size:14px;font-weight:600;color:var(--slate);white-space:nowrap}
.tw-zaehler.is-aktiv{color:var(--teal-dark)}

/* Acht Themen (03.10.2026): am Laptop zwei Reihen à vier, Symbol über dem Text */
.tw-kacheln{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tw-kachel{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:12px;width:100%;min-height:104px;padding:16px 16px 18px;text-align:left;font:inherit;color:var(--navy);background:var(--white);border:2px solid var(--g2);border-radius:var(--r);transition:border-color .15s,box-shadow .15s,background .15s}
.tw-kachel:hover{border-color:var(--teal-light);box-shadow:var(--shadow-sm)}
.tw-kachel[aria-pressed="true"]{border-color:var(--teal);background:var(--teal-pale)}
.tw-kachel-text{display:flex;flex-direction:column;gap:4px}
.tw-kachel-titel{font-size:16.5px;font-weight:600;line-height:1.35}
.tw-kachel-kurz{font-size:14.5px;line-height:1.45;color:var(--slate)}
.tw-haken{position:absolute;top:14px;right:14px;width:22px;height:22px;border-radius:50%;background:var(--teal-dark);color:var(--white);display:none;align-items:center;justify-content:center}
.tw-haken svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.tw-kachel[aria-pressed="true"] .tw-haken{display:flex}

.tw-ico{flex-shrink:0;width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--teal-pale);color:var(--teal-dark);transition:background .15s,color .15s}
.tw-ico svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tw-kachel[aria-pressed="true"] .tw-ico{background:var(--teal-dark);color:var(--white)}
.tw-ico-gross{width:52px;height:52px;border-radius:14px}
.tw-ico-gross svg{width:28px;height:28px}

.tw-hinweis{margin-top:-6px;font-size:14.5px;font-weight:500;color:var(--teal-dark)}

.tw-team{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;padding-top:20px;border-top:1px solid var(--g2)}
.tw-team-label{font-size:15px;font-weight:600;color:var(--navy)}
.tw-team-label span{font-weight:400;color:var(--slate)}
.tw-team-optionen{display:flex;flex-wrap:wrap;gap:8px}
.tw-team-btn{height:44px;padding:0 18px;border-radius:22px;border:1.5px solid #CFC6BA;background:var(--white);color:var(--navy);font:inherit;font-size:14.5px;font-weight:500;transition:all .15s}
.tw-team-btn:hover{border-color:var(--teal)}
.tw-team-btn[aria-pressed="true"]{background:var(--teal-dark);border-color:var(--teal-dark);color:var(--white)}

.tw-aktion{display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px}
.tw-los{font-size:15px;padding:15px 26px}
.tw-los:disabled{background:#A3ACB6;box-shadow:none;transform:none;cursor:not-allowed}
.tw-aktion-info{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;flex-grow:1}
.tw-link{font-size:15px;font-weight:500;color:var(--teal-dark);text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(6,92,82,.35)}
.tw-link:hover{text-decoration-color:var(--teal-dark)}
.tw-privat{margin-left:auto;display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:var(--slate)}
.tw-privat svg{flex-shrink:0;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Ergebnisseite ---------- */
.tw-ergebnis{background:var(--warm);padding:0 0 88px;scroll-margin-top:74px}
.tw-erg-kopf{padding:36px 40px 32px}
.tw-erg-kopf .wrap{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.tw-erg-kopf .tag{margin-bottom:0}
.tw-zurueck{display:none;align-items:center;gap:8px;height:44px;padding:0 4px;border:0;background:transparent;color:var(--teal-dark);font:inherit;font-size:15px;font-weight:600}
.tw-zurueck svg,.tw-mehr svg,.tw-chip-x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tw-titel{font-size:clamp(28px,3.2vw,42px);font-weight:700;letter-spacing:-.02em;line-height:1.15;color:var(--navy);max-width:940px}
.tw-titel:focus{outline:none}
.tw-einleitung{font-size:17.5px;line-height:1.6;color:var(--slate);max-width:820px}
.tw-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.tw-chips:empty{display:none}
.tw-chip{display:inline-flex;align-items:center;gap:4px;height:48px;padding:0 4px 0 16px;border-radius:24px;background:var(--white);border:1.5px solid var(--teal);font-size:15px;font-weight:600;color:var(--navy)}
.tw-chip-x{width:40px;height:40px;border-radius:50%;border:0;display:flex;align-items:center;justify-content:center;background:transparent;color:var(--teal-dark)}
.tw-chip-x:hover{background:var(--teal-pale)}
.tw-chip-plus{height:48px;padding:0 18px;border-radius:24px;border:1.5px dashed #8FA8A2;background:transparent;color:var(--teal-dark);font:inherit;font-size:15px;font-weight:600}
.tw-chip-plus:hover{background:var(--white)}

.tw-themen{max-width:1320px;margin:0 auto;padding:0 40px;display:flex;flex-direction:column;gap:20px}
.tw-thema{display:grid;grid-template-columns:340px minmax(0,1fr);gap:48px;padding:36px 40px;background:var(--white);border-radius:var(--r-lg);box-shadow:var(--shadow-sm);scroll-margin-top:90px}
.tw-thema-links,.tw-thema-rechts{display:flex;flex-direction:column;gap:14px}
.tw-thema-rechts{gap:22px}
.tw-thema h3{font-size:23px;font-weight:600;line-height:1.25;color:var(--navy)}
.tw-block{display:flex;flex-direction:column;gap:8px}
.tw-label{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--teal-dark)}
.tw-thema-links .tw-label{margin-top:4px}
.tw-thema-links p{font-size:16.5px;line-height:1.6;color:var(--slate)}
.tw-block p{font-size:16px;line-height:1.6;color:var(--navy)}
.tw-marken{list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.tw-marken li{display:inline-flex;align-items:center;min-height:30px;padding:4px 12px;border-radius:15px;background:var(--warm);font-size:13.5px;font-weight:500;line-height:1.35;color:var(--navy)}
.tw-liste{list-style:none;display:flex;flex-direction:column;gap:8px}
.tw-liste li{display:flex;align-items:flex-start;gap:10px;font-size:16px;line-height:1.5;color:var(--navy)}
.tw-liste svg{flex-shrink:0;width:20px;height:20px;margin-top:2px;fill:none;stroke:var(--teal);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tw-optional{padding:14px 18px;border-radius:12px;background:var(--teal-pale);font-size:15px;line-height:1.55;color:var(--navy)}
.tw-nutzen{display:flex;flex-direction:column;gap:6px;padding:18px 22px;border-radius:14px;background:var(--navy)}
.tw-nutzen .tw-label{color:var(--teal-light)}
.tw-nutzen p{font-size:16px;line-height:1.55;color:var(--white)}
.tw-mehr{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:15px;font-weight:600;color:var(--teal-dark)}
.tw-mehr:hover{color:var(--navy)}

.tw-abschnitt{max-width:1320px;margin:56px auto 0;padding:0 40px;display:flex;flex-direction:column;gap:16px}
.tw-abschnitt h2{font-size:clamp(24px,2.4vw,30px);font-weight:600;letter-spacing:-.01em;line-height:1.25;color:var(--navy)}
.tw-abschnitt>p{max-width:860px;font-size:16.5px;line-height:1.6;color:var(--slate)}
.tw-stufen{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:4px}
.tw-stufe{display:flex;flex-direction:column;gap:10px;min-height:116px;padding:16px 18px;border-radius:14px;border:2px solid #DDD4C8;background:transparent}
.tw-stufe-kopf{display:flex;align-items:center;gap:10px}
.tw-stufe-nr{flex-shrink:0;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;background:#E9E3DB;color:var(--slate)}
.tw-stufe-name{font-size:15px;font-weight:600;line-height:1.3;color:var(--navy)}
.tw-stufe-tag{font-size:13.5px;font-weight:600;line-height:1.4;color:var(--teal-dark)}
.tw-stufe-tag:empty{display:none}
.tw-stufe.is-relevant{background:var(--white);border-color:var(--teal)}
.tw-stufe.is-relevant .tw-stufe-nr{background:var(--teal-dark);color:var(--white)}

.tw-pakete{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:4px}
.tw-paket{display:flex;flex-direction:column;gap:6px;padding:24px;border-radius:16px;background:var(--white);border:2px solid var(--g2)}
.tw-paket.is-passend{border-color:var(--teal)}
.tw-paket-marke{display:none;align-self:flex-start;margin-bottom:6px;padding:4px 10px;border-radius:12px;background:var(--teal-dark);color:var(--white);font-size:12.5px;font-weight:600}
.tw-paket.is-passend .tw-paket-marke{display:inline-block}
.tw-paket-name{font-family:'Poppins',sans-serif;font-weight:700;font-size:20px;letter-spacing:.02em;color:var(--navy)}
.tw-paket-motto{font-size:15px;font-weight:600;color:var(--teal-dark)}
.tw-paket-groesse{font-size:14px;color:var(--slate)}
.tw-paket p{margin-top:6px;font-size:15px;line-height:1.55;color:var(--slate)}
.tw-abschnitt .tw-klein{font-size:14.5px;line-height:1.6;color:var(--slate)}
.tw-klein a{font-weight:600;color:var(--teal-dark);text-decoration:underline;text-underline-offset:3px}

.tw-cta{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:40px;align-items:center;padding:40px 44px;border-radius:24px;background:var(--navy)}
.tw-cta h2{color:var(--white)}
.tw-cta-text{display:flex;flex-direction:column;gap:12px}
.tw-cta-text p{font-size:16.5px;line-height:1.6;color:#C9D2DC}
.tw-linkbox{display:none;flex-direction:column;gap:6px;margin-top:8px}
.tw-linkbox span{font-size:13.5px;color:#C9D2DC}
.tw-linkbox code{font-family:'JetBrains Mono',Consolas,monospace;font-size:14px;color:var(--teal-light);word-break:break-all}
.tw-cta-knoepfe{display:flex;flex-direction:column;gap:12px}
.tw-cta-knoepfe .btn{justify-content:center;font-size:15px;padding:15px 20px}
.tw-btn-hell{background:var(--teal-light);color:var(--navy)}
.tw-btn-hell:hover{background:#0FA593;transform:translateY(-1px)}
.tw-btn-rand{display:none;background:transparent;color:var(--white);border:1.5px solid #5A6B80}
.tw-btn-rand:hover{border-color:var(--white)}

/* ---------- Vertrauenszeile ---------- */
.tw-vertrauen{max-width:1240px;margin:0 auto;padding:22px 40px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px 36px;border-top:1px solid var(--g2);font-size:14px;color:var(--slate)}
.tw-vertrauen span{display:inline-flex;align-items:center;gap:8px}
.tw-vertrauen svg{width:18px;height:18px;fill:none;stroke:var(--teal);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tw-vertrauen a{font-weight:600;color:var(--teal-dark);text-decoration:underline;text-underline-offset:3px}

/* ---------- Fokus ---------- */
.tw-kachel:focus-visible,.tw-team-btn:focus-visible,.tw-zurueck:focus-visible,.tw-chip-x:focus-visible,.tw-chip-plus:focus-visible,.tw-los:focus-visible,.tw-cta .btn:focus-visible,.tw-mehr:focus-visible,.tw-link:focus-visible{outline:3px solid var(--teal-light);outline-offset:2px}

/* ---------- Umschalten (nur mit JavaScript) ---------- */
.tw-js .tw-ergebnis{display:none}
.tw-js .tw-thema{display:none}
.tw-js .tw-thema.is-gewaehlt{display:grid}
.tw-js .tw-zurueck{display:inline-flex}
.tw-js .tw-linkbox{display:flex}
.tw-js .tw-btn-rand{display:inline-flex}
.tw-js.tw-modus-ergebnis .tw-ergebnis{display:block}
.tw-js.tw-modus-ergebnis .tw-hero,.tw-js.tw-modus-ergebnis .tw-wahl,.tw-js.tw-modus-ergebnis .tw-bausteine{display:none}

/* ---------- Breakpoints ---------- */
@media(max-width:1100px){
  .tw-kacheln{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tw-kachel{flex-direction:row;gap:14px;padding:18px 46px 18px 16px}
}
@media(max-width:1024px){
  .tw-thema{grid-template-columns:1fr;gap:22px}
  .tw-stufen{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tw-cta{grid-template-columns:1fr}
}
@media(max-width:768px){
  .tw-hero{padding-bottom:96px}
  .tw-wahl{padding:0 12px 48px}
  .tw-panel{margin-top:-64px;padding:24px 16px 0;gap:18px}
  .tw-panel-kopf{flex-direction:column;align-items:flex-start;gap:8px}
  .tw-unterzeile{font-size:15px}
  .tw-kacheln{grid-template-columns:1fr;gap:10px}
  .tw-kachel{min-height:0;padding:14px 42px 14px 12px;gap:12px}
  .tw-kachel-titel{font-size:16px}
  .tw-kachel-kurz{font-size:14px}
  .tw-ico{width:40px;height:40px;border-radius:11px}
  .tw-ico svg{width:22px;height:22px}
  .tw-haken{top:50%;margin-top:-11px;right:12px}
  .tw-team{flex-direction:column;align-items:flex-start;padding-top:16px}
  /* Die Aktionszeile löst sich auf, damit der Knopf am unteren Bildschirmrand kleben kann, solange die Themenwahl sichtbar ist */
  .tw-aktion{display:contents}
  .tw-aktion-info{order:1;flex-direction:column;align-items:flex-start;gap:10px}
  .tw-privat{margin-left:0;align-items:flex-start}
  .tw-los-leiste{order:2;position:sticky;bottom:0;z-index:5;margin:0 -16px;padding:12px 16px;background:var(--white);border-top:1px solid var(--g2);box-shadow:0 -8px 20px rgba(15,27,45,.06);border-radius:0 0 var(--r-lg) var(--r-lg)}
  .tw-los{width:100%;justify-content:center;white-space:normal;text-align:center;line-height:1.3}
  .tw-erg-kopf{padding:16px 20px 24px}
  .tw-titel{font-size:28px}
  .tw-einleitung{font-size:16px}
  .tw-chip{font-size:14px;padding-left:14px}
  .tw-themen{padding:0 12px;gap:14px}
  .tw-thema{padding:24px 18px;gap:18px}
  .tw-thema h3{font-size:20px}
  .tw-thema-links{gap:10px}
  .tw-thema-links p,.tw-block p,.tw-liste li,.tw-nutzen p{font-size:15.5px}
  .tw-abschnitt{margin-top:40px;padding:0 20px}
  .tw-abschnitt h2{font-size:22px}
  .tw-abschnitt>p{font-size:15.5px}
  .tw-stufen{grid-template-columns:1fr;gap:8px}
  .tw-stufe{min-height:0;padding:12px 14px;gap:6px}
  .tw-pakete{grid-template-columns:1fr;gap:10px}
  .tw-paket{padding:18px}
  .tw-cta-wrap{padding:0 12px}
  .tw-cta{padding:28px 20px;border-radius:20px;gap:20px}
  .tw-cta h2{font-size:24px}
  .tw-vertrauen{flex-direction:column;align-items:flex-start;padding:20px}
}
