/* Themenseiten (scripts/themen_bauen.py). Baut auf style.css und dem
   Hilfe-Center auf; hier nur, was es dort nicht gibt. */

.thema .hilfe-artikel { max-width: 48rem; }
.thema-leiste ul { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .45rem; font-size: .93rem; }
.thema-leiste-knopf { width: 100%; text-align: center; }
.hilfe-seitenleiste a.thema-leiste-knopf, .hilfe-seitenleiste a.thema-leiste-knopf:hover { color: #F4F5F7; background: var(--rasen); text-decoration: none; }
@media (min-width: 56rem) { .thema-leiste { position: sticky; top: 6rem; } }

.thema-kurz {
  margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: .6rem;
  background: #FBF7E6; border: 1px solid #EFE2AE; color: #0E2C3D;
}
.thema-kurz p { margin: 0; }
.thema-kurz-titel { font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #7C6210; margin-bottom: .3rem !important; }

/* Produktansicht: helle Karte auf Petrol, wie die Startseite. */
.thema-modul { margin: 1.6rem 0 0; }
.thema-modul-buehne {
  display: grid; place-items: center; padding: 2rem 1rem; border-radius: .9rem;
  background: radial-gradient(24rem 14rem at 70% 20%, rgba(232, 197, 71, .18), transparent 70%), linear-gradient(160deg, #1A4B65, #0E2C3D);
}
.thema-modul figcaption { margin-top: .5rem; font-size: .85rem; color: var(--text-leise); }
.ansicht {
  width: min(26rem, 100%); background: #FFFFFF; color: #0E2C3D; border-radius: .9rem;
  padding: 1rem 1.1rem; font-size: .8125rem; line-height: 1.3; overflow-wrap: normal;
  box-shadow: 0 2px 4px rgba(14, 44, 61, .08), 0 24px 60px rgba(14, 44, 61, .22);
}
.ansicht p { margin: 0; }
.ansicht-kopf { display: flex; align-items: center; gap: .45rem; margin-bottom: .6rem !important; font-weight: 600; font-size: .9375rem; }
.ansicht-kopf svg { width: 1.3rem; height: 1.3rem; fill: #1A4B65; }
.ansicht-kopf small { margin-left: auto; color: #4A5A65; font-weight: 500; font-size: .75rem; }
.ansicht-matrix { display: grid; grid-template-columns: 1fr repeat(3, 2.9rem); align-items: center; gap: .25rem; padding: .42rem 0; border-bottom: 1px solid #EEF2F5; }
.ansicht-matrix-kopf { font-weight: 600; color: #4A5A65; border-bottom-color: #DDE3E8; }
.ansicht-matrix-kopf span:not(:first-child) { text-align: center; }
.ansicht i { font-style: normal; }
.ansicht-matrix i, .ansicht-legende i { width: .85rem; height: .85rem; border-radius: 50%; justify-self: center; display: inline-block; }
.ansicht .ok { background: #2F9E62; }
.ansicht .bald { background: #E3A33A; }
.ansicht .fehlt { background: #D0533F; }
.ansicht-legende { display: flex; flex-wrap: wrap; gap: .3rem .9rem; padding-top: .6rem; color: #4A5A65; font-size: .75rem; }
.ansicht-legende span { display: inline-flex; align-items: center; gap: .35rem; }
.ansicht-legende i { width: .6rem; height: .6rem; }
.ansicht-zeile { display: grid; grid-template-columns: 1fr auto auto; gap: .2rem .8rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid #EEF2F5; }
.ansicht-zeile span { font-weight: 600; white-space: nowrap; }
.ansicht-zeile small { color: #4A5A65; }
.ansicht-zeile b { font-variant-numeric: tabular-nums; }
.ansicht .chip { grid-column: 1 / -1; justify-self: start; font-size: .72rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: #E3F4EA; color: #1E6B42; }
@media (min-width: 30rem) { .ansicht-zeile { grid-template-columns: 1fr auto auto auto; } .ansicht .chip { grid-column: auto; } }
.ansicht-summe { display: flex; justify-content: space-between; padding: .55rem 0 .2rem; font-weight: 600; font-size: .9375rem; }
.ansicht-fertig { margin-top: .35rem !important; color: #1E6B42; font-weight: 600; }

/* Häufige Fragen und Schluss */
.thema .hilfe-text h3 { font-size: 1.05rem; }
.thema-schluss { margin-top: 2.5rem; padding: 1.6rem 1.5rem; border-radius: .9rem; background: linear-gradient(160deg, #1A4B65, #0E2C3D); color: #F4F5F7; }
.thema-schluss h2 { margin: 0 0 .35rem; color: #FFFFFF; }
.thema-schluss p { margin: 0; color: #C9D6DE; }
.thema-knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.thema-schluss .knopf-voll { background: #E8C547; color: #0E2C3D; }
.thema-schluss .knopf-voll:hover { background: #F2D46A; }
.thema-schluss .knopf-linie { border-color: rgba(255, 255, 255, .45); color: #FFFFFF; }
.thema-schluss .knopf-linie:hover { border-color: #FFFFFF; }

/* Tabellen: nicht mitten im Wort umbrechen (style.css erlaubt das im Hilfe-Text). */
.thema .hilfe-text table { overflow-wrap: normal; display: table; }
.thema-hinweis { margin: .6rem 0 0; font-size: .8rem; color: var(--text-leise); }
.ansicht-balken { height: .45rem; border-radius: 999px; background: #E7EEF3; overflow: hidden; margin-bottom: .3rem; }
.ansicht-balken i { display: block; height: 100%; background: #2F9E62; border-radius: inherit; }
.ansicht-zeile.ansicht-zeile-kurs { grid-template-columns: 1fr auto; }
.ansicht-zeile-kurs small { grid-column: 1; }
.ansicht-zeile-kurs .chip { grid-column: 2 !important; grid-row: 1 / span 2; }
.ansicht .chip-offen { background: #E7EEF3; color: #1A4B65; }
.ansicht-zeile-kurs b { grid-column: 2; grid-row: 1 / span 2; }
.ansicht .chip-faellig { background: #FBF0DA; color: #7A5410; }
.ansicht-schritte { display: flex; gap: .4rem; margin-top: .75rem !important; }
.ansicht-schritte span { flex: 1; text-align: center; padding: .4rem .3rem; border-radius: .5rem; background: #E3F4EA; color: #1E6B42; font-size: .72rem; font-weight: 600; }
