/* LernNord Themenseiten (/themen und /themen/<fach>/<kapitel>). Ergänzt assets/site.css; Tokens: brand/tokens.css.
   Erzeugt von scripts/site_themen.py (HTML); dieses Stylesheet ist von Hand gepflegt. Mobile first. */

.themen-page { background: var(--ln-polar); }
.t-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: var(--gutter); }
.t-nav { display: flex; align-items: center; gap: 8px 18px; }
.t-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.t-demo { min-height: 44px; padding: 2px 16px 0; font-size: 0.95rem; }

.themen { padding: 28px 0 72px; }
.t-wrap { max-width: 920px; padding: 0 var(--gutter); }
.themen h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); line-height: 1.08; margin: 0 0 14px; overflow-wrap: break-word; hyphens: auto; }
.themen h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem); line-height: 1.15; margin: 0 0 12px; scroll-margin-top: 16px; }
.themen h3 { font-size: 1.15rem; line-height: 1.25; }
.themen p, .themen li { line-height: 1.6; }
.themen section { margin-top: 44px; }
.themen section > p { max-width: 68ch; }

/* Brotkrumen */
.t-krumen ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0 0 18px; padding: 0; list-style: none; font-size: 0.95rem; }
.t-krumen li + li::before { content: "›"; margin: 0 8px; color: var(--ln-tiefsee-soft); }
.t-krumen a { display: inline-flex; align-items: center; min-height: 32px; }

/* Kopf */
.t-kopf { display: grid; gap: 18px; align-items: start; }
.t-kopf-text { min-width: 0; }
.t-fach { margin: 0 0 8px; font-weight: 700; color: var(--ln-tiefsee-soft); letter-spacing: 0.01em; }
.t-antwort { font-size: 1.14rem; line-height: 1.6; max-width: 66ch; }
.t-hinweis { margin-top: 14px; font-size: 0.95rem; color: var(--ln-tiefsee-soft); max-width: 66ch; }
.t-figur { margin: 0; display: flex; align-items: center; gap: 12px; }
.t-figur figcaption { font-size: 0.92rem; color: var(--ln-tiefsee-soft); }
.t-wesen { width: 92px; height: 92px; flex: none; }

/* Klassen und Themen */
.t-zahl { margin: -4px 0 14px; color: var(--ln-tiefsee-soft); font-weight: 700; }
.t-thema { background: #fff; border: 1px solid #D9E3EC; border-radius: var(--ln-radius-s); padding: 18px 20px; margin-top: 14px; scroll-margin-top: 16px; box-shadow: var(--ln-shadow-1); }
.t-thema h3 { margin: 0 0 8px; }
.t-thema p { margin: 8px 0 0; max-width: 68ch; }
.t-badge { display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: 99px; background: var(--ln-sand-flaeche); color: var(--ln-sand-text); font-family: var(--ln-font-text); font-size: 0.82rem; font-weight: 700; vertical-align: middle; }
.t-bsp { margin-top: 10px; padding: 10px 14px; background: var(--ln-himmel); border-radius: 10px; }
.t-etikett { margin: 0 0 4px; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ln-tiefsee-soft); }
.t-bsp p.t-zeilen, .t-prompt { white-space: pre-line; font-variant-numeric: tabular-nums lining-nums; margin: 0; }
.t-achten { padding-left: 12px; border-left: 4px solid var(--ln-sonne); }

/* Beispielaufgaben */
.t-aufgabe { background: #fff; border: 1px solid #D9E3EC; border-radius: var(--ln-radius-s); padding: 16px 20px; margin-top: 14px; box-shadow: var(--ln-shadow-1); }
.t-aufgabe .t-etikett { text-transform: none; }
.t-prompt { font-size: 1.08rem; }
.t-optionen { margin: 8px 0 0; padding-left: 1.2em; }
.t-loesung { margin: 10px 0 0; padding: 8px 12px; background: #E6F4E4; border-radius: 10px; color: #14522A; }
.t-aufgabe details { margin-top: 8px; }
.t-aufgabe summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.t-aufgabe ol { margin: 6px 0 0; padding-left: 1.4em; }

.t-zuhause ul { padding-left: 1.2em; }
.t-zuhause li + li { margin-top: 6px; }

/* Länder-Tabelle */
.t-satz { margin: 0 0 12px; max-width: 76ch; }
.t-laender summary { cursor: pointer; font-weight: 700; min-height: 36px; display: flex; align-items: center; }
.t-tabelle { overflow-x: auto; margin: 8px 0; border: 1px solid #D9E3EC; border-radius: var(--ln-radius-s); background: #fff; }
.t-tabelle:focus-visible { outline-offset: 0; }
.t-tabelle table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.t-tabelle th, .t-tabelle td { padding: 8px 10px; border-bottom: 1px solid #E3EAF0; text-align: center; white-space: nowrap; }
.t-tabelle thead th { background: #EEF4F8; position: sticky; top: 0; }
.t-tabelle tbody th { text-align: left; background: #fff; position: sticky; left: 0; white-space: normal; min-width: 150px; max-width: 220px; box-shadow: 1px 0 0 #D9E3EC; z-index: 1; }
.t-tabelle thead th:first-child { left: 0; z-index: 2; text-align: left; }
.t-tabelle .t-ln { background: #FFF7E1; font-weight: 700; }
.t-tabelle abbr { text-decoration: none; cursor: help; }
.t-legende, .t-schul-hinweis { font-size: 0.9rem; color: var(--ln-tiefsee-soft); max-width: 76ch; margin-top: 10px; }
.t-schul { color: var(--ln-koralle-text); font-weight: 700; }

/* Passend dazu, Aufruf */
.t-mehr ul { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0; list-style: none; }
.t-mehr a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; background: #fff; border: 1px solid #D9E3EC; border-radius: 99px; text-decoration: none; font-weight: 700; }
.t-mehr a:hover { background: #fff; border-color: var(--ln-tiefsee); }
.t-cta { padding: 22px 20px; background: var(--ln-tiefsee); color: #fff; border-radius: var(--ln-radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.t-cta p { margin: 0; font-family: var(--ln-font-display); font-weight: 700; font-size: 1.2rem; max-width: 40ch; }

/* Übersicht */
.t-gruppe h3 { margin: 22px 0 10px; }
.t-karten { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.t-karte { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; background: #fff; border: 1px solid #D9E3EC; border-radius: var(--ln-radius-s); text-decoration: none; color: var(--ln-tiefsee); box-shadow: var(--ln-shadow-1); }
.t-karte:hover { border-color: var(--ln-tiefsee); color: var(--ln-tiefsee); }
.t-karte .t-wesen { width: 64px; height: 64px; }
.t-karte-text { display: grid; gap: 2px; min-width: 0; }
.t-karte-text strong { font-family: var(--ln-font-display); font-size: 1.08rem; line-height: 1.2; }
.t-meta { font-size: 0.88rem; color: var(--ln-tiefsee-soft); }
.t-klasse-liste { margin-top: 18px; }
.t-klasse-liste h3 { margin: 0 0 6px; scroll-margin-top: 16px; }
.t-klasse-liste ul { margin: 0; padding-left: 1.2em; }
.t-kasten { margin-top: 44px; padding: 16px 20px; background: var(--ln-sand-flaeche); border: 2px solid #E7C978; border-radius: 16px; }
.t-kasten h2 { font-size: 1.15rem; margin: 0 0 6px; }
.t-kasten p { margin: 0; max-width: 68ch; }
.t-faq { max-width: none; }

@media (min-width: 720px) {
  .t-kopf { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
  .t-figur { flex-direction: column; text-align: center; max-width: 150px; }
  .t-wesen { width: 120px; height: 120px; }
  .t-karten { grid-template-columns: 1fr 1fr; }
  .t-top { padding-left: var(--gutter); }
}
@media (max-width: 520px) {
  .t-top { gap: 8px; padding-right: var(--gutter); }
  .t-top .brand .logo { height: 30px; }
  .t-nav a:not(.btn) { display: none; }
  .t-demo { padding: 2px 12px 0; font-size: 0.88rem; white-space: nowrap; }
  .t-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .themen * { transition: none !important; } }
