/* Fachwissen /wissen/ (website/bau/wissen.ts). Ergänzt stil.css, nutzt dessen Variablen. Nur auf den Wissensseiten geladen. */

/* Begriffsseite: Titel, Definition */
.wissen-kopf .wissen-titel { font-size: clamp(34px, 5vw, 76px); line-height: 1.02; hyphens: manual; overflow-wrap: break-word; max-width: 22ch; }
/* Trennen nur schmal; breit stehen die Begriffe ungetrennt in höchstens 22 Zeichen je Zeile. */
@media (max-width: 899px) { .wissen-kopf .wissen-titel { hyphens: auto; -webkit-hyphens: auto; } }
.wissen-definition { color: var(--text); border-left: 2px solid var(--akzent); padding-left: 22px; max-width: 60ch; margin-bottom: 0; }

/* Text links, Randspalte rechts; schmal untereinander */
.wissen-raster { display: grid; grid-template-columns: minmax(0, 680px) minmax(240px, 340px); gap: clamp(40px, 6vw, 112px); align-items: start; }
.wissen-raster > * { max-width: none; }
.wissen-text { font-size: 19px; line-height: 1.65; color: var(--text-hell); }
.wissen-text h2 { color: var(--text); font-size: 26px; line-height: 1.2; margin: 52px 0 16px; letter-spacing: .005em; }
.wissen-text h2:first-child { margin-top: 0; }
.wissen-text p { max-width: none; }
.wissen-text .punkte { margin: 0; }
.wissen-text .punkte li { font-size: 18px; }
/* Formelkasten und Rechenweg: gemeinsam in stil.css (Abschnitt Formeln). */
.wissen-text .rechenweg { margin-top: 24px; }
.richtwert { font-size: 15px; color: var(--text-2); margin: 10px 0 0; }

.wissen-seite { position: sticky; top: 96px; border: 1px solid var(--linie-zart); padding: 28px; }
.wissen-verwandt { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wissen-verwandt a { display: inline-block; border: 1px solid var(--linie); padding: 7px 12px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.3; }
.wissen-verwandt a:hover, .wissen-verwandt a:focus-visible { border-color: var(--akzent); color: var(--akzent); }
.wissen-seite p { margin: 0; font-size: 15px; }

.wissen-weiter .knoepfe { margin-top: 8px; max-width: none; }
.wissen-weiter > p:not(.knoepfe) { color: var(--text-hell); }
.wissen-quellen ul { margin: 0 0 16px; padding-left: 20px; color: var(--text-hell); font-size: 15px; }
.wissen-quellen li { margin: 6px 0; }
.wissen-quellen a { overflow-wrap: anywhere; }

/* Übersicht: Themen als Ankerlinks, Begriffe als Raster */
.wissen-themen { padding: 28px var(--flucht) !important; border-bottom: 1px solid var(--linie-zart); position: sticky; top: 62px; z-index: 5; background: var(--bg-deckend); }
.wissen-themen .anzahl { color: var(--text-2); font-size: 13px; margin-left: 4px; }
.wissen-thema { scroll-margin-top: 150px; }
.wissen-thema > p { color: var(--text-hell); margin: 0 0 8px; }
.wissen-thema:target > .zwischen { color: var(--akzent); }
.wissen-liste { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0; border-top: 1px solid var(--linie-zart); border-left: 1px solid var(--linie-zart); }
.wissen-liste li { background: var(--bg); border-right: 1px solid var(--linie-zart); border-bottom: 1px solid var(--linie-zart); }
.wissen-liste a { display: block; height: 100%; padding: 26px 28px; color: inherit; text-decoration: none; transition: background .15s; }
.wissen-liste a:hover, .wissen-liste a:focus-visible { background: var(--bg-2); }
.wissen-liste h3 { color: var(--text); font-size: 19px; line-height: 1.25; margin: 0 0 10px; letter-spacing: .01em; hyphens: auto; -webkit-hyphens: auto; }
.wissen-liste a:hover h3 { color: var(--akzent); }
.wissen-liste p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }

@media (max-width: 1000px) {
  .wissen-raster { grid-template-columns: minmax(0, 1fr); }
  .wissen-seite { position: static; }
}
@media (max-width: 700px) {
  .wissen-themen { position: static; }
  .wissen-text { font-size: 18px; }
  .wissen-text h2 { font-size: 23px; }
  .wissen-seite { padding: 22px; }
}
