/* HJ Redesign · CSS der PHP-Vorlagen (templates/): Fall-Sektion, Fallgeschichte, Lexikon-Eintrag, Lexikon-Übersicht.
 * Quelle: web-main/redesign/plugin/hj-redesign/assets/hj-vorlagen.css
 * Maße, Farben und Schrift wie die Elementor-Seiten (hj-redesign.css, hj-generated.css): Navy #10155F, Text
 * gedämpft #5A6275, Rahmen #E6E9F0, Fläche #F7F8FB, Themenfarben über --c1 --c2 --tint --ink (hj-pal-*).
 * Eigene Datei (neuer Name statt Änderung an hj-redesign.css): der StaticPress-Asset-Cache prüft geänderte
 * Dateien nie auf Frische, eine neue Adresse kommt dagegen sicher an.
 */

.hj-v { font-family: Mulish, system-ui, -apple-system, sans-serif; color: #1C2033; }
.hj-v [hidden] { display: none !important; }
.hj-v-wrap { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.hj-v-schmal { max-width: 868px; }
.hj-v-sec { padding: 96px 0; }
.hj-v-sec--eng { padding: 56px 0 72px; }
.hj-v-sec--grau { background: #F7F8FB; }
.hj-v-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hj-v-eyebrow { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink, #15779B); }
.hj-v-h1 { margin: 0; font-size: 52px; line-height: 1.08; font-weight: 900; letter-spacing: -1.6px; color: #10155F; overflow-wrap: anywhere; hyphens: auto; }
.hj-v-h2 { margin: 0; font-size: 40px; line-height: 1.08; font-weight: 900; letter-spacing: -1.3px; color: #10155F; }
.hj-v-h2--klein { font-size: 28px; letter-spacing: -.6px; margin-bottom: 22px; }
.hj-v-lead { margin: 0; font-size: 19px; line-height: 1.6; color: #5A6275; max-width: 680px; }
.hj-v-fein { margin: 0; font-size: 13px; line-height: 1.55; color: #8A91A3; }
.hj-v-fein--hell { color: rgba(255,255,255,.78); }
body.hj-rd .hj-v a.hj-v-mehr, .hj-v-mehr { display: inline-block; font-size: 15px; font-weight: 900; color: var(--ink, #15779B); text-decoration: none; }
body.hj-rd .hj-v a.hj-v-mehr:hover { text-decoration: underline; }
.hj-v-chip { align-self: flex-start; margin: 0; font-size: 12px; font-weight: 900; padding: 6px 12px; border-radius: 12px; background: var(--tint, #EEF3F8); color: var(--ink, #15779B); text-decoration: none; }
body.hj-rd .hj-v a.hj-v-chip { color: var(--ink, #15779B); }
.hj-v-knopf, body.hj-rd .hj-v a.hj-v-knopf { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 26px; border-radius: 27px; background: #10155F; color: #FFFFFF; font-weight: 900; text-decoration: none; }

/* Kopf */
.hj-v-hero > .hj-v-wrap { display: flex; flex-direction: column; gap: 16px; padding-top: 56px; padding-bottom: 56px; }
.hj-v-hero--hell { background: #F7F8FB; border-bottom: 1px solid #EEF1F6; }
.hj-v-hero--farbe { background: linear-gradient(140deg, var(--c1, #10155F), var(--c2, #2F3C99)); color: #FFFFFF; position: relative; overflow: hidden; }
.hj-v-hero--farbe > .hj-v-wrap { padding-top: 48px; padding-bottom: 72px; }
.hj-v-hero--farbe .hj-v-h1 { color: #FFFFFF; }
.hj-v-hero--farbe .hj-v-chip { background: rgba(255,255,255,.14); color: #FFFFFF; letter-spacing: .1em; text-transform: uppercase; }
.hj-v-krumen { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; font-weight: 700; color: #8A91A3; }
body.hj-rd .hj-v-krumen a { color: inherit; text-decoration: none; }
body.hj-rd .hj-v-krumen a:hover { text-decoration: underline; }
.hj-v-hero--farbe .hj-v-krumen { color: rgba(255,255,255,.72); }

/* Fließtext */
.hj-v-prose { font-size: 17.5px; line-height: 1.7; color: #3B4256; }
.hj-v-prose > * { margin-top: 0; }
.hj-v-prose p, .hj-v-prose ul, .hj-v-prose ol { margin: 0 0 18px; }
.hj-v-prose ul, .hj-v-prose ol { padding-left: 22px; }
.hj-v-prose li { margin-bottom: 8px; }
.hj-v-prose li::marker { color: var(--ink, #15779B); }
.hj-v-prose strong { color: #10155F; font-weight: 800; }
.hj-v-prose h2 { margin: 40px 0 14px; font-size: 28px; line-height: 1.2; font-weight: 900; letter-spacing: -.6px; color: #10155F; }
.hj-v-prose h3 { margin: 28px 0 10px; font-size: 21px; line-height: 1.3; font-weight: 900; color: #10155F; }
.hj-v-prose h4 { margin: 22px 0 8px; font-size: 18px; font-weight: 900; color: #10155F; }
.hj-v-prose > h2:first-child, .hj-v-prose > div:first-child > h2:first-child { margin-top: 0; }
.hj-v-prose blockquote { margin: 0 0 22px; padding: 22px 26px; border-radius: 22px; background: var(--tint, #EEF3F8); color: #10155F; font-size: 18px; font-weight: 700; line-height: 1.6; }
.hj-v-prose blockquote p:last-child { margin-bottom: 0; }
.hj-v-prose .hj-disclaimer { margin-top: 32px; padding: 18px 22px; border-radius: 18px; background: #F7F8FB; font-size: 14px; line-height: 1.6; color: #5A6275; }
.hj-v-prose .hj-disclaimer strong { color: inherit; }
.hj-v-hinweis { margin: 28px 0 22px; padding: 18px 22px; border-radius: 18px; background: #F7F8FB; font-size: 14px; line-height: 1.6; color: #5A6275; }
.hj-v-kurz { margin: 0 0 36px; padding: 24px 26px; border-radius: 22px; background: var(--tint, #EEF3F8); display: flex; flex-direction: column; gap: 8px; }
.hj-v-kurz p:last-child { margin: 0; font-size: 18px; line-height: 1.6; font-weight: 700; color: #10155F; }

/* Fall-Sektion (templates/faelle-sektion.php) */
.hj-fs-inner { display: flex; flex-direction: column; gap: 32px; }
.hj-fs-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.hj-fs-titel { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.hj-fs-raster { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hj-fs-raster--1 { grid-template-columns: minmax(0, 420px); }
.hj-fs-raster--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
.hj-fs-karte { margin: 0; }
.hj-fs-karte > a { display: flex; flex-direction: column; height: 100%; border-radius: 24px; overflow: hidden; background: #FFFFFF; border: 1px solid #E6E9F0; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.hj-fs-karte > a:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(16,21,95,.35); }
.hj-fs-karte > a:focus-visible { outline: 3px solid var(--hj-sky, #62C3DC); outline-offset: 3px; }
.hj-fs-band { height: 150px; position: relative; background: linear-gradient(150deg, var(--c1), var(--c2)); }
.hj-fs-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 14px, rgba(255,255,255,0) 14px 28px); }
.hj-fs-text { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hj-fs-h3 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 900; color: #10155F; }
.hj-fs-meta { font-size: 13.5px; line-height: 1.5; font-weight: 700; color: #8A91A3; }
.hj-fs-lesen { margin-top: auto; font-size: 14.5px; font-weight: 900; color: var(--ink, #15779B); }

/* Fallgeschichte */
.hj-fall-steck { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hj-fall-steck > div { display: flex; flex-direction: column; gap: 2px; max-width: 520px; }
.hj-fall-steck dt { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hj-fall-steck dd { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 700; color: #FFFFFF; }
.hj-fall-text { margin-bottom: 18px; }

/* Lexikon-Eintrag */
.hj-lex-fazit { margin: 36px 0 8px; padding: 22px 26px; border-radius: 22px; background: var(--tint, #EEF3F8); }
.hj-v-prose .hj-lex-fazit h2.hj-lex-fazit-titel { margin: 0 0 8px; font-size: 13px; line-height: 1.4; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--ink, #15779B); }
.hj-lex-fazit p:last-child { margin-bottom: 0; }

/* Lexikon-Übersicht */
.hj-lex-werkzeug { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 8px; }
.hj-lex-suche { position: relative; flex: 1 1 320px; max-width: 560px; color: #8A91A3; }
.hj-lex-suche svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.hj-lex-suche input { width: 100%; box-sizing: border-box; height: 54px; padding: 0 18px 0 50px; border-radius: 27px; border: 1px solid #D5DAE6; background: #FFFFFF; font: inherit; font-size: 16px; color: #10155F; -webkit-appearance: none; appearance: none; }
.hj-lex-suche input:focus { outline: none; border-color: #15779B; box-shadow: 0 0 0 3px rgba(21,119,155,.15); }
.hj-lex-schalter { display: inline-flex; padding: 4px; border-radius: 27px; background: #F2F4F7; gap: 4px; }
.hj-lex-schalter button { all: unset; box-sizing: border-box; cursor: pointer; height: 46px; padding: 0 20px; border-radius: 23px; font-size: 15px; font-weight: 900; color: #5A6275; display: inline-flex; align-items: center; }
.hj-lex-schalter button[aria-pressed="true"] { background: #10155F; color: #FFFFFF; }
.hj-lex-schalter button:focus-visible { outline: 3px solid var(--hj-sky, #62C3DC); outline-offset: 2px; }
.hj-lex-status { min-height: 22px; margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #5A6275; }
.hj-lex-sprung { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
body.hj-rd .hj-lex-sprung a { font-size: 13.5px; font-weight: 800; padding: 8px 13px; border-radius: 12px; background: #FFFFFF; border: 1px solid #E6E9F0; color: #10155F; text-decoration: none; }
body.hj-rd .hj-lex-sprung a:hover { border-color: #D5DAE6; background: #F7F8FB; }
.hj-lex-sprung--abc a { min-width: 40px; text-align: center; box-sizing: border-box; }
.hj-lex-gruppe { padding-top: 36px; scroll-margin-top: calc(var(--hj-header-h, 77px) + 16px); }
.hj-lex-gruppe-titel { margin: 0 0 16px; font-size: 24px; line-height: 1.2; font-weight: 900; letter-spacing: -.4px; color: #10155F; display: flex; align-items: baseline; gap: 10px; }
.hj-lex-gruppe-titel span { font-size: 14px; font-weight: 800; color: #8A91A3; letter-spacing: 0; }
.hj-lex-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hj-lex-raster li { margin: 0; }
body.hj-rd .hj-lex-raster a { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: 16px; background: #FFFFFF; border: 1px solid #E6E9F0; font-size: 15.5px; line-height: 1.3; font-weight: 800; color: #10155F; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
body.hj-rd .hj-lex-raster a::after { content: "→"; color: #8A91A3; font-weight: 900; flex: 0 0 auto; }
body.hj-rd .hj-lex-raster a:hover { border-color: #D5DAE6; box-shadow: 0 10px 28px -20px rgba(16,21,95,.35); }
body.hj-rd .hj-lex-raster a:hover::after { color: var(--ink, #15779B); }

/* Abschluss-Band (Rückfall teil-cta.php) */
.hj-v-cta { background: linear-gradient(140deg, #10155F, #2F3C99); color: #FFFFFF; }
.hj-v-cta-inner { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hj-v-cta .hj-v-h2 { color: #FFFFFF; max-width: 820px; }
.hj-v-cta p { margin: 0; font-size: 18px; color: rgba(255,255,255,.85); }
body.hj-rd .hj-v-cta a.hj-v-knopf { background: #FFFFFF; color: #10155F; }

@media (max-width: 1024px) {
	.hj-fs-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.hj-v-sec { padding: 64px 0; }
	.hj-v-sec--eng { padding: 40px 0 56px; }
	.hj-v-h1 { font-size: 38px; letter-spacing: -1.1px; }
	.hj-v-h2 { font-size: 30px; letter-spacing: -.8px; }
	.hj-v-h2--klein { font-size: 24px; letter-spacing: -.4px; }
	.hj-v-hero > .hj-v-wrap { padding-top: 32px; padding-bottom: 40px; }
	.hj-v-prose { font-size: 16.5px; }
	.hj-v-prose h2 { font-size: 24px; }
	.hj-fs-raster, .hj-fs-raster--2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
	.hj-v-wrap { padding: 0 16px; }
	.hj-v-h1 { font-size: 32px; }
	.hj-lex-schalter { width: 100%; }
	.hj-lex-schalter button { flex: 1; justify-content: center; }
	.hj-lex-raster { grid-template-columns: minmax(0, 1fr); }
}

/* Kleinkram (Severin 22.10.): Werte-Badges der Beispielbefund-Grafik („ausbaufähig“ lief aus dem Kasten).
   Die Grafik ist ein HTML-Widget mit fester Breite 64 px je Badge; jetzt mindestens 64 px, sonst so breit wie der Text. */
.hj-graphic span[style*="width: 64px"] { width: auto !important; min-width: 64px; flex: 0 0 auto; white-space: nowrap; box-sizing: border-box; }
