/* Themenwahl: links Basis (immer dabei), vier Themen als Bildkarten, Beruf & Business als Zusatz; daneben der Preisrechner.
   Jede Karte hat ein Aufklappmenü (js/themenwahl.js). Farben über die Variablen der Website, damit hell und dunkel funktionieren. */
.tw{margin:8px 0 0}
.tw-grid{display:block}
.tw :where(button){font:inherit;color:inherit;cursor:pointer;text-align:left}
.tw-seg{position:relative;-webkit-tap-highlight-color:transparent}
.tw-seg:focus-visible,#themenwahl .tw-auf:focus-visible,#themenwahl .tw-x:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.tw-ic{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1.5px solid var(--accent);color:var(--accent-text,var(--accent))}
.tw-ic svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tw-tx{flex:1;min-width:0}
.tw-tx b{display:block;font:600 .98rem/1.25 Inter,sans-serif}
.tw-tx small{display:block;margin-top:2px;font:400 .78rem/1.3 Inter,sans-serif}
.tw-bdg{position:absolute;top:10px;right:10px;width:26px;height:26px;border-radius:50%;border:1.5px solid var(--accent);display:grid;place-items:center;color:var(--accent-text,var(--accent));font:700 .95rem/1 Inter,sans-serif}
.tw-bdg b{font-weight:700}
#themenwahl .tw-titel{font:600 1.35rem/1.35 Fraunces,Georgia,serif;margin:0 0 14px}
#themenwahl .tw-wahl{font:600 1.02rem/1.4 Inter,sans-serif;margin:0 0 14px;color:var(--text)}
#themenwahl .tw-quad{display:flex;flex-direction:column;gap:14px}
/* Basis */
#themenwahl .tw-found{display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-height:64px;padding:12px 16px 0;background:var(--surface);border:1px solid var(--line);border-radius:10px;color:var(--text);overflow:hidden}
#themenwahl .tw-found .tw-tx small{color:var(--muted)}
.tw-imm{flex:none;font:600 .62rem "JetBrains Mono",ui-monospace,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-text,var(--accent));border:1px solid var(--accent);border-radius:99px;padding:5px 12px}
#themenwahl .tw-found .tw-auf{flex:1 0 calc(100% + 32px);margin:0 -16px;padding:8px 16px}
/* Die vier Themen als Karten, Bilder unbeschnitten im Format 3:2 */
#themenwahl .tw-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#themenwahl .tw-karte{display:flex;flex-direction:column;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}
#themenwahl .tw-karte:has(.tw-tile.on){border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
#themenwahl .tw-tile{flex:1;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;min-width:0;padding:0;background:none;border:0}
#themenwahl .tw-tile.on{background:color-mix(in srgb,var(--accent) 6%,transparent)}
.tw-fr{position:relative;display:block}
.tw-fr img{display:block;width:100%;height:auto;border-radius:0}
#themenwahl .tw-fr .tw-bdg{top:12px;right:12px;width:32px;height:32px;background:rgba(12,12,14,.62);border:1.5px solid #fff;color:#fff}
#themenwahl .tw-tile.on .tw-fr .tw-bdg{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#111)}
.tw-lab{display:block;padding:12px 14px 14px;text-align:left;color:var(--text)}
#themenwahl .tw-lab b{display:block;font:600 1.08rem/1.3 Fraunces,Georgia,serif}
#themenwahl .tw-lab span{display:block;margin-top:2px;font:400 .82rem/1.5 Inter,sans-serif;letter-spacing:0;text-transform:none;color:var(--text-soft,var(--text))}
#themenwahl .tw-lab .tw-mb{color:var(--muted)}
/* Kachelzeilen (30.11.2026): Gesamtzahl mit Bonus gross, Aufteilung klein, Preis eines Themenbereichs */
#themenwahl .tw-lab .tw-ges{margin-top:4px;font-size:.86rem;color:var(--text)}
#themenwahl .tw-lab .tw-ges strong{font:700 1.08rem/1.3 Inter,sans-serif}
#themenwahl .tw-lab .tw-ges span{display:inline;margin:0;font:inherit;color:inherit}
#themenwahl .tw-lab .tw-reg{margin-top:4px;font-weight:600;color:var(--text)}
#themenwahl .tw-roof .tw-tx .tw-ges strong{font:700 1.02rem/1.3 Inter,sans-serif;color:var(--text)}
#themenwahl .tw-roof .tw-tx .tw-reg{font-weight:600;color:var(--text)}
/* Bonus-Block nach den Kacheln: Grundlagen und Aufbau, zu jedem Themenbereich dabei */
#themenwahl .tw-bonus{align-items:flex-start;padding-top:14px;border-left:3px solid var(--accent)}
#themenwahl .tw-bonus .tw-tx b{font-size:1.06rem}
#themenwahl .tw-bonus .tw-tx small{margin-top:4px;font-size:.94rem;line-height:1.5;color:var(--text)}
#themenwahl .tw-bonus .tw-imm{display:inline-block}
#themenwahl .tw-bstufen{list-style:none;margin:10px 0 2px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
#themenwahl .tw-bstufen li{margin:0;padding:6px 12px;border:1px solid var(--line-strong,var(--line));border-radius:8px;font:500 .9rem/1.35 Inter,sans-serif;color:var(--text)}
#themenwahl .tw-bstufen .tw-bsum{border-color:var(--accent);font-weight:700}
@media(max-width:640px){
  #themenwahl .tw-bonus .tw-imm{order:-1}
  #themenwahl .tw-bonus .tw-tx{flex:1 0 100%}
}
#themenwahl .tw-lab small{display:block;margin-top:3px;font:400 .7rem/1.3 Inter,sans-serif;color:var(--muted)}
/* Knopf zum Aufklappen */
#themenwahl .tw-auf{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:8px 14px;background:none;border:0;border-top:1px solid var(--line);color:var(--accent-text,var(--accent));font:600 .85rem Inter,sans-serif;cursor:pointer;text-align:left}
#themenwahl .tw-auf::after{content:"▾";transition:transform .2s}
#themenwahl .tw-auf[aria-expanded=true]{background:color-mix(in srgb,var(--accent) 14%,transparent)}
#themenwahl .tw-auf[aria-expanded=true]::after{transform:rotate(180deg)}
/* Zusatz: Beruf & Business */
#themenwahl .tw-zusatz{display:flex;flex-direction:column}
#themenwahl .tw-roof{display:flex;align-items:center;gap:12px;width:100%;margin:0;padding:12px 60px 12px 16px;background:var(--surface);color:var(--text);border:1px dashed var(--line-strong,var(--line));border-radius:10px 10px 0 0}
#themenwahl .tw-roof .tw-tx small{color:var(--text-soft,var(--text))}
#themenwahl .tw-roof .tw-bdg{top:50%;right:16px;margin-top:-13px}
#themenwahl .tw-roof.on{border:1px solid var(--accent);box-shadow:0 0 0 2px var(--accent)}
#themenwahl .tw-roof.on .tw-bdg{background:var(--accent);color:var(--accent-ink,#111)}
#themenwahl .tw-zusatz>.tw-auf{border:1px dashed var(--line-strong,var(--line));border-top:0;border-radius:0 0 10px 10px;background:var(--surface)}
#themenwahl .tw-zusatz .tw-menue{margin-top:14px}
/* Preisrechner */
#themenwahl .tw-panel{display:flex;flex-direction:column;margin-top:14px;padding:22px;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:10px;text-align:left}
#themenwahl .tw-panel p{margin:2px 0;color:var(--muted);font-size:.92rem}
.tw-rk{display:block;margin-bottom:3px;font:600 .66rem "JetBrains Mono",ui-monospace,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-text)}
.tw-ln{display:block}
#themenwahl .tw-leiter{list-style:none;margin:10px 0 14px;padding:0}
#themenwahl .tw-leiter li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:baseline;margin:0;padding:9px 10px;border-top:1px solid var(--line);font:400 .92rem Inter,sans-serif;color:var(--text-soft,var(--text))}
#themenwahl .tw-leiter s{font-size:.78rem;color:var(--muted)}
#themenwahl .tw-leiter b{font-weight:600;color:var(--text);white-space:nowrap}
#themenwahl .tw-leiter li.on{background:color-mix(in srgb,var(--accent) 16%,transparent);box-shadow:inset 3px 0 0 var(--accent);color:var(--text)}
#themenwahl .tw-leiter li.zusatz{border-top-style:dashed}
.tw-neu{font:600 3rem/1.1 var(--serif);color:var(--accent-text);margin-top:6px}
.tw-panel.leer .tw-neu{display:none}
.tw-alt{color:var(--muted);font-size:.9rem}
/* Themenbereich (30.11.2026): Erklärzeile bei den Kacheln, Zeile unter dem Preis, Angebot unter dem Knopf, Aufklapper mit allen Preisstufen */
.tw-panel.leer .tw-einmal{display:none}
#themenwahl .tw-panel .tw-einmal{margin-top:4px;font-size:.88rem}
#themenwahl .tw-panel .tw-angebot{margin-top:12px;color:var(--accent-text);font-weight:700;font-size:1rem;line-height:1.45}
#themenwahl .tw-stufen{margin-top:10px;font-size:.88rem;color:var(--muted)}
#themenwahl .tw-stufen summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--muted);font-weight:400;font-size:.9rem;text-decoration:underline;text-underline-offset:3px}
#themenwahl .tw-stufen summary:hover{color:var(--text)}
#themenwahl .tw-stufen summary:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px;border-radius:4px}
#themenwahl .tw-stufen ul{margin:0 0 4px;padding-left:18px}
#themenwahl .tw-stufen li{margin:6px 0;line-height:1.45}
/* Enddatum des Einführungsangebots: Marke über der Überschrift (mit Restzeit in den letzten 14 Tagen); die zweite Nennung ist .tw-angebot unter dem Knopf */
#preise .tw-marke{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 12px;font:700 1.05rem/1.3 Inter,sans-serif;color:var(--accent-text)}
#preise .tw-marke .tw-rest{padding:4px 12px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:.95rem;white-space:nowrap}
/* Phase 1 unter 1000 px: Der Kasten steht direkt nach der Überschrift, vor den Kacheln (js/themenwahl.js hängt ihn um) */
#themenwahl .tw-grid.kasten-zuerst .tw-panel{margin:0 0 24px}
#themenwahl .tw-cta{display:flex;flex-direction:column;gap:8px;margin-top:16px}
#themenwahl .tw-cta .btn{width:100%;justify-content:center;text-align:center;min-height:44px}
#themenwahl .tw-cta .tw-kasse{min-height:50px}
.tw-kasse:disabled{opacity:.6;cursor:not-allowed}
#themenwahl .tw-panel .tw-hinweis{font-size:.8rem;margin-top:14px}
#themenwahl .tw-status{margin:10px 0 0;font-size:.85rem}
/* Aufklappmenü */
#themenwahl .tw-menue{grid-column:1/-1;padding:18px 18px 20px;background:var(--surface);border:1px solid var(--line);border-top:2px solid var(--accent);border-radius:8px;scroll-margin:90px;text-align:left}
/* Der Kopf bleibt beim Scrollen stehen: so sieht man in den Themen immer, dass die Basis dabei ist. */
#themenwahl .tw-kopf{position:sticky;top:78px;z-index:3;display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin:-18px -18px 0;padding:14px 18px 12px;background:var(--surface);border-bottom:1px solid var(--line);border-radius:8px 8px 0 0}
#themenwahl .tw-kopf h4{margin:0;font:600 1.35rem/1.25 Fraunces,Georgia,serif}
#themenwahl .tw-kopf p{margin:3px 0 0;font:400 .85rem/1.5 Inter,sans-serif;color:var(--text-soft,var(--text))}
#themenwahl .tw-kopf p.tw-dabei{display:flex;flex-wrap:wrap;gap:2px 10px;align-items:baseline;margin:8px 0 0;padding:7px 12px;background:color-mix(in srgb,var(--accent) 16%,transparent);border-left:3px solid var(--accent);color:var(--text);font-size:.9rem}
#themenwahl .tw-x{flex:none;width:44px;height:44px;border:1px solid var(--line);background:none;color:var(--text);border-radius:6px;font-size:1.4rem;text-align:center}
#themenwahl .tw-zeit{margin:10px 0 0;font:400 .85rem/1.5 Inter,sans-serif;color:var(--text-soft,var(--text))}
#themenwahl .tw-alle-basis{margin-top:12px;border-bottom:1px solid var(--line)}
#themenwahl .tw-alle-basis summary{cursor:pointer;padding:6px 0 12px;font:600 .86rem Inter,sans-serif;color:var(--accent-text,var(--accent))}
#themenwahl .tw-spalten{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px 22px;margin-top:16px}
#themenwahl .tw-spalten.zwei{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
#themenwahl .tw-alle-basis .tw-spalten{margin:0 0 16px}
#themenwahl .tw-menue h5{margin:0 0 2px;font:600 1rem/1.3 Inter,sans-serif}
#themenwahl .tw-dauer{margin:8px 0 0;font:400 .76rem Inter,sans-serif;color:var(--muted)}
#themenwahl h5+.tw-dauer{margin-top:0}
#themenwahl .tw-zk{margin:14px 0 4px;font:600 .66rem "JetBrains Mono",ui-monospace,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-text,var(--accent))}
#themenwahl .tw-ziele{list-style:none;margin:0;padding:0}
#themenwahl .tw-ziele li{position:relative;margin:0;padding:2px 0 2px 18px;font:400 .86rem/1.45 Inter,sans-serif}
#themenwahl .tw-ziele li::before{content:"✓";position:absolute;left:0;color:var(--accent-text,var(--accent))}
#themenwahl .tw-lek{list-style:none;margin:10px 0 0;padding:0}
#themenwahl .tw-lek li{margin:0;border-top:1px solid var(--line)}
#themenwahl .tw-lek a{display:block;padding:8px 0;text-decoration:none;color:var(--text);font:500 .84rem/1.4 Inter,sans-serif}
#themenwahl .tw-lek small{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;margin-top:3px;font:400 .72rem Inter,sans-serif;color:var(--muted)}
#themenwahl .tw-lek .nv{font-size:.58rem;padding:1px 6px}
#themenwahl .tw-gratis{color:var(--accent-text,var(--accent));font-weight:600}
#themenwahl .tw-mehr{margin:10px 0 0;font:600 .84rem Inter,sans-serif}
@media(min-width:1000px){
  #themenwahl .tw-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:28px;align-items:start}
  #themenwahl .tw-panel{position:sticky;top:96px;margin-top:0}
}
@media(max-width:640px){
  #themenwahl .tw-kopf{top:64px;gap:8px;padding:8px 14px}
  #themenwahl .tw-kopf h4{font-size:1.05rem}
  #themenwahl .tw-kopf p{font-size:.74rem;line-height:1.4}
  #themenwahl .tw-kopf p.tw-dabei{margin-top:4px;padding:4px 8px;font-size:.76rem;line-height:1.45}
  #themenwahl .tw-x{width:40px;height:40px}
}
@media(max-width:480px){
  #themenwahl .tw-tiles{gap:10px}
  #themenwahl .tw-lab{padding:9px 10px 11px}
  #themenwahl .tw-lab b{font-size:.94rem;hyphens:auto;overflow-wrap:break-word}
  #themenwahl .tw-lab span{font-size:.74rem}
  #themenwahl .tw-fr .tw-bdg{top:7px;right:7px;width:28px;height:28px}
  .tw-imm,#themenwahl .tw-found .tw-ic,#themenwahl .tw-roof .tw-ic{display:none}
  #themenwahl .tw-roof{padding-right:52px}
}

#themenwahl .tw-periods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 28px;text-align:left}
#themenwahl .tw-period{padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:8px}
#themenwahl .tw-period h3{margin:0 0 10px;font:600 1.05rem/1.3 Fraunces,Georgia,serif;color:var(--accent-text,var(--accent))}
#themenwahl .tw-period ul{list-style:none;padding:0;margin:0}
#themenwahl .tw-period li{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px solid var(--line);font:400 .85rem/1.4 Inter,sans-serif;color:var(--text)}
#themenwahl .tw-period b{white-space:nowrap}
@media(max-width:760px){#themenwahl .tw-periods{grid-template-columns:1fr;gap:8px}#themenwahl .tw-period{padding:12px 16px}}
