/* Themenseiten von TopExperte (/themen, /experten/leistung/<slug>) und die
   Themenliste auf Startseite und Verzeichnis. Farben und Schrift kommen aus
   topexperte.css. Das eine auffällige Element ist das Register im blauen Kopf. */

/* ── Blauer Themenkopf ── */
.th-kopf{background:var(--blue-700);color:#fff;padding-top:112px}
.th-kopf h1{color:#fff;font-size:clamp(34px,5.4vw,62px);font-weight:800;letter-spacing:-.028em;line-height:1.06;margin:0 0 18px;max-width:18ch;text-wrap:balance}
.th-pfad{margin-bottom:18px;font-size:13.5px}
.th-pfad a{color:var(--blue-100);text-decoration:underline;text-underline-offset:3px}
.th-pfad a:hover{color:#fff}
.th-lead{font-size:clamp(16px,1.5vw,19px);line-height:1.6;color:#fff;max-width:62ch;margin:0}
.th-zahl{margin:16px 0 0;font-size:14px;color:var(--blue-100)}
.th-kopf--uebersicht{padding-bottom:56px}

/* ── Register: das offene Thema ragt als weißer Reiter in die Seite ── */
.th-register{margin-top:40px}
.th-register-reihe{display:flex;align-items:center;gap:10px}
.th-register ul{flex:1;min-width:0;display:flex;gap:4px;list-style:none;margin:0;padding:0;overflow-x:auto;scrollbar-width:none;position:relative}
.th-register ul::-webkit-scrollbar{display:none}
.th-pfeil{flex:0 0 auto;width:34px;height:34px;border-radius:50%;border:1px solid var(--blue-400);background:transparent;color:#fff;font-size:20px;line-height:1;cursor:pointer}
.th-pfeil:hover:not(:disabled){background:var(--blue-900)}
.th-pfeil:disabled{opacity:.35;cursor:default}
.th-pfeil[hidden]{display:none}
.th-pfeil:focus-visible{outline:3px solid #fff;outline-offset:2px}
.th-register li{flex:0 0 auto;display:flex}
.th-register a{display:block;padding:12px 18px 13px;border-radius:10px 10px 0 0;background:var(--blue-800);color:var(--blue-100);font-size:13.5px;font-weight:600;white-space:nowrap;text-decoration:none;transition:background var(--dur),color var(--dur)}
.th-register a:hover{background:var(--blue-900);color:#fff}
.th-register a[aria-current]{background:var(--surface);color:var(--blue-800)}
.th-register a:focus-visible,.th-pfad a:focus-visible{outline:3px solid #fff;outline-offset:-3px}
.th-register a[aria-current]:focus-visible{outline-color:var(--blue-700)}

/* ── Profile ── */
.th-profile{padding:40px 0 64px;background:var(--surface)}
.th-profile .exv-name{font-size:15px;letter-spacing:0}
.th-leer{margin:0;color:var(--text-secondary)}
.th-leer a,.th-index-hinweis a{color:var(--brand);text-decoration:underline}

/* ── Ratgebertext: Überschrift links, Text rechts ── */
.th-rat{background:var(--surface-alt);padding:24px 0}
.th-kapitel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:20px 56px;padding:44px 0;border-bottom:1px solid var(--border)}
.th-kapitel:last-child{border-bottom:0}
.th-kapitel h2{font-size:clamp(21px,2.2vw,27px);letter-spacing:-.018em;line-height:1.25;margin:0;text-wrap:balance}
.th-kapitel p{max-width:68ch;margin:0 0 14px;font-size:16px;line-height:1.7;color:var(--text-secondary)}
.th-kapitel p:last-child{margin-bottom:0}

.th-fragen details{border-bottom:1px solid var(--border)}
.th-fragen details:first-child summary{padding-top:0}
.th-fragen details:last-child{border-bottom:0}
.th-fragen summary{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 0;cursor:pointer;list-style:none}
.th-fragen summary::-webkit-details-marker{display:none}
.th-fragen summary::after{content:'+';flex:0 0 auto;font-size:24px;font-weight:400;line-height:1;color:var(--brand)}
.th-fragen details[open] summary::after{content:'−'}
.th-fragen summary:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.th-fragen h3{font-size:16.5px;font-weight:600;line-height:1.4;margin:0}
.th-fragen details p{padding-bottom:18px}

.th-liste{list-style:none;margin:0;padding:0}
.th-liste li+li{border-top:1px solid var(--border)}
.th-liste a{display:flex;flex-direction:column;gap:3px;padding:14px 0;text-decoration:none;color:var(--text)}
.th-liste li:first-child a{padding-top:0}
.th-liste strong{font-size:16.5px;font-weight:600}
.th-liste span{font-size:14px;color:var(--text-muted)}
.th-liste a:hover strong{color:var(--brand);text-decoration:underline;text-underline-offset:3px}

.th-mitmachen{background:var(--blue-900);color:#fff;padding:48px 0}
.th-mitmachen .container{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.th-mitmachen h2{color:#fff;font-size:24px;margin:0 0 6px}
.th-mitmachen p{margin:0;color:var(--blue-100);font-size:15px}

/* ── Übersicht /themen: ein Register als Liste ── */
.th-index{padding:32px 0 88px}
.th-index ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:56px}
.th-index li{border-bottom:1px solid var(--border)}
.th-index a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;align-items:baseline;padding:22px 0;text-decoration:none;color:var(--text)}
.th-index h2{font-size:20px;letter-spacing:-.015em;line-height:1.3;margin:0}
.th-index-kurz{grid-column:1;font-size:14px;color:var(--text-muted)}
.th-index-zahl{grid-column:2;grid-row:1;font-size:13.5px;font-weight:600;color:var(--brand);white-space:nowrap;font-variant-numeric:tabular-nums}
.th-index a:hover h2{color:var(--brand);text-decoration:underline;text-underline-offset:4px}
.th-index-hinweis{margin:28px 0 0;font-size:14px;color:var(--text-muted)}

/* ── Themenliste auf Startseite und Verzeichnis ── */
.th-band{padding:56px 0;border-top:1px solid var(--border)}
.th-band-kopf{display:flex;justify-content:space-between;align-items:baseline;gap:12px 24px;flex-wrap:wrap;margin-bottom:24px}
.th-band-kopf h2{font-size:clamp(23px,2.6vw,30px);letter-spacing:-.018em;margin:0}
.th-band-kopf a{font-size:14.5px;font-weight:600;color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.th-kacheln{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.th-kacheln li{display:flex}
.th-kacheln a{flex:1;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;border-radius:10px;background:var(--brand-tint);color:var(--blue-900);font-size:14.5px;font-weight:600;line-height:1.35;text-decoration:none;transition:background var(--dur),color var(--dur)}
.th-kacheln a:hover{background:var(--blue-700);color:#fff}
.th-kacheln a:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.th-kachel-zahl{font-weight:500;font-size:13px;font-variant-numeric:tabular-nums;opacity:.75}

@media(max-width:1000px){.th-kacheln{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  .th-kopf{padding-top:92px}
  .th-register{margin-top:28px}
  .th-pfeil{display:none}
  .th-register .container{padding-right:0}
  .th-kapitel{grid-template-columns:minmax(0,1fr);gap:14px;padding:32px 0}
  .th-index ul{grid-template-columns:minmax(0,1fr)}
  .th-kacheln{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:460px){.th-kacheln{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.th-register a,.th-kacheln a{transition:none}}

/* ── Themen am Profil und Themenwahl im Portal ── */
.ep-standort{border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;margin-bottom:18px;background:var(--surface)}
.ep-standort-kopf{padding:14px 18px 0;font-size:14px;font-weight:700;color:var(--text)}
.ep-schilder{display:flex;flex-wrap:wrap;gap:8px;padding:12px 18px 16px}
.ep-schilder a{padding:7px 12px;border-radius:8px;background:var(--brand-tint);color:var(--blue-900);font-size:13px;font-weight:600;text-decoration:none;transition:background var(--dur),color var(--dur)}
.ep-schilder a:hover{background:var(--blue-700);color:#fff}
.ag-hinweis{margin-left:8px;font-size:12px;font-weight:500;color:var(--text-muted)}
.ag-auswahl{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:2px;padding:6px;border:1px solid var(--border);border-radius:var(--r);background:var(--surface)}
.ag-haken{display:flex;align-items:center;gap:10px;margin:0;padding:9px 11px;border-radius:6px;font-size:14px;font-weight:400;color:var(--text-secondary);cursor:pointer}
.ag-haken:hover{background:var(--brand-tint);color:var(--text)}
.ag-haken input{width:16px;height:16px;flex-shrink:0;margin:0;accent-color:var(--brand)}
.ag-haken:has(input:checked){background:var(--brand-tint);color:var(--blue-800);font-weight:600}
