/*
Theme Name: Energieberatung Kompass
Theme URI: https://energieberatungen-online.de/
Description: Eigenständiges Theme für energieberatungen-online.de – Beratungs-Kompass mit Schrittpfad, Themenkarten, Förder-Check und Glossar.
Author: Zurynski, Oezdogan & Co GmbH
Version: 1.0.0
Text Domain: t-energieberatungen-online-de
*/

:root {
	--bg: #f6f9fa;
	--surface: #ffffff;
	--text: #12262d;
	--muted: #5b6f77;      /* nur Linien/Icons */
	--muted-text: #3f5259; /* Sekundärtext, >= 7:1 */
	--primary: #0b6e82;
	--primary-dark: #085766;
	--accent: #e8892b;
	--accent-soft: #fdf1e4;
	--link: #0a5f8f;
	--line: #d5e1e5;
	--tint: #eaf3f5;
	--radius: 4px;
	--head: "Work Sans", "Segoe UI", Arial, sans-serif;
	--body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: 18px;
	line-height: 1.6;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, label:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.25; color: var(--text); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--text); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; color: #fff; }

/* Disclaimer vom Kern: nur stylen, nie verstecken */
.ps-disclaimer { font-family: var(--body) !important; font-size: 16px !important; }

/* ---------- Utility-Zeile ---------- */
.utility { background: var(--text); color: #cfe3e8; font-size: 15px; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.utility-claim { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utility-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-shrink: 0; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.wortmarke { font-family: var(--head); font-size: 1.55rem; font-weight: 600; text-decoration: none; color: var(--text); letter-spacing: -.01em; line-height: 1.1; }
.wortmarke .wm-2 { color: var(--primary); }
.wortmarke:hover { color: var(--text); }
.header-suche { display: flex; border: 1px solid var(--muted); border-radius: var(--radius); background: #fff; width: min(360px, 45%); }
.header-suche input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 12px; font: inherit; font-size: 16px; color: var(--text); }
.header-suche input::placeholder { color: var(--muted-text); }
.header-suche button { border: 0; background: transparent; color: var(--primary-dark); padding: 0 10px; cursor: pointer; display: flex; align-items: center; }
.header-suche .icon { width: 22px; height: 22px; }

.themenleiste { border-top: 1px solid var(--line); }
.themenleiste ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.themenleiste ul::-webkit-scrollbar { display: none; }
.themenleiste li { flex-shrink: 0; }
.themenleiste a { display: block; padding: 13px 14px 11px; font-family: var(--head); font-weight: 600; font-size: 16px; color: var(--text); text-decoration: none; border-bottom: 3px solid transparent; }
.themenleiste li:first-child a { padding-left: 0; }
.themenleiste a:hover { color: var(--primary-dark); border-bottom-color: var(--line); }
.themenleiste li.aktiv a { border-bottom-color: var(--primary); color: var(--primary-dark); }

/* ---------- Buttons, Chips ---------- */
.btn { display: inline-block; background: var(--primary-dark); color: #fff; font-family: var(--head); font-weight: 600; font-size: 16px; padding: 10px 18px; border-radius: var(--radius); text-decoration: none; border: 1px solid var(--primary-dark); }
.btn:hover { background: #07505e; color: #fff; }
.btn--line { background: transparent; color: var(--primary-dark); }
.btn--line:hover { background: var(--tint); color: var(--primary-dark); }
.kicker { font-family: var(--head); font-size: 15px; font-weight: 600; color: var(--primary-dark); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; margin-bottom: .6em; }
.kompass { flex-shrink: 0; color: var(--primary-dark); }

/* ---------- Hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 48px 0 52px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hero-lead { font-size: 1.12rem; color: var(--muted-text); max-width: 36em; }
.hero-suche { margin: 26px 0 14px; max-width: 560px; }
.hero-suche label { display: block; font-family: var(--head); font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.hero-suche-feld { display: flex; border: 2px solid var(--primary); border-radius: var(--radius); background: #fff; }
.hero-suche-feld input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--text); background: transparent; }
.hero-suche-feld input::placeholder { color: var(--muted-text); }
.hero-suche-feld button { border: 0; background: var(--primary-dark); color: #fff; font-family: var(--head); font-weight: 600; font-size: 16px; padding: 0 20px; cursor: pointer; }
.hero-suche-feld button:hover { background: #07505e; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips-label { font-size: 15px; color: var(--muted-text); margin-right: 2px; }
.chip { font-size: 15px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--tint); color: var(--link); text-decoration: none; }
.chip:hover { border-color: var(--primary); }

/* Schrittpfad als vertikale Timeline */
.pfad-karte { background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 24px 26px 20px; scroll-margin-top: 20px; }
.pfad-titel { font-family: var(--head); font-weight: 600; font-size: 1.15rem; margin-bottom: 18px; }
.pfad { list-style: none; margin: 0; padding: 0; position: relative; }
.pfad li { position: relative; display: flex; gap: 16px; padding-bottom: 18px; }
.pfad li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.pfad-nr { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); background: #fff; color: var(--text); font-family: var(--head); font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.pfad strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1rem; line-height: 1.3; margin-top: 4px; }
.pfad span:not(.pfad-nr) { display: block; font-size: 16px; color: var(--muted-text); line-height: 1.45; margin-top: 2px; }
.pfad-mehr { display: inline-block; font-weight: 600; font-size: 16px; margin-top: 2px; }

/* ---------- Sektionen ---------- */
.sektion { padding: 56px 0; }
.sektion-kopf { margin-bottom: 28px; max-width: 46em; }
.sektion-kopf p { color: var(--muted-text); margin: 0; }
.sektion-kopf h2 { position: relative; padding-bottom: 10px; }
.sektion-kopf h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--accent); }

.themen-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; }
.hausschnitt { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.hausschnitt figcaption { font-size: 15px; color: var(--muted-text); margin-top: 10px; line-height: 1.45; }
.karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.karte { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text); transition: border-color .15s; }
.karte:hover { border-color: var(--primary); color: var(--text); }
.karte .icon { color: var(--primary); margin-bottom: 10px; }
.karte h3 { color: var(--link); font-size: 1.08rem; margin-bottom: .35em; }
.karte:hover h3 { text-decoration: underline; }
.karte p { font-size: 16px; color: var(--muted-text); margin: 0; line-height: 1.5; }

.schnell { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; }
.schnell-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.schnell-box { display: grid; align-content: start; grid-template-columns: 32px 1fr; column-gap: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 16px 16px; text-decoration: none; color: var(--text); }
.schnell-box .icon { grid-row: span 2; color: var(--primary); width: 30px; height: 30px; }
.schnell-titel { font-family: var(--head); font-weight: 600; color: var(--link); }
.schnell-text { font-size: 15.5px; color: var(--muted-text); line-height: 1.45; }
.schnell-box:hover { border-color: var(--primary); }
.schnell-box:hover .schnell-titel { text-decoration: underline; }

/* ---------- Spalten mit Sidebar ---------- */
.mit-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.seite { padding-top: 32px; padding-bottom: 64px; }
.sektion-kopf--links { margin-bottom: 12px; }

/* Ratgeberliste */
.rg-liste { list-style: none; margin: 0; padding: 0; }
.rg-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.rg-item:first-child { padding-top: 8px; }
.rg-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 15px; color: var(--muted-text); margin-bottom: 6px; }
.cat-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--primary-dark); text-decoration: none; }
.cat-tag:hover { text-decoration: underline; }
.rg-title { font-size: 1.25rem; margin-bottom: .3em; }
.rg-title a { color: var(--link); text-decoration: none; }
.rg-title a:hover { text-decoration: underline; }
.rg-excerpt { font-size: 16.5px; color: var(--muted-text); margin: 0; }
.rg-zwischen { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-text); margin: 28px 0 0; }
.rg-liste--geplant .rg-item { border-bottom-style: dashed; }
.rg-liste--geplant .rg-title { color: var(--text); }
.rg-liste--geplant .rg-date { background: var(--accent-soft); color: var(--text); padding: 1px 8px; border-radius: var(--radius); }
.leer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-title { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; margin-bottom: .6em; }
.side-title .icon { width: 22px; height: 22px; color: var(--primary); }
.side-lead { font-size: 16px; color: var(--muted-text); margin-bottom: 12px; }
.side-more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 16px; }
.side-cats, .side-glossar { list-style: none; margin: 0; padding: 0; }
.side-cats li { border-top: 1px solid var(--line); }
.side-cats li:first-child { border-top: 0; }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 9px 0; text-decoration: none; font-weight: 600; }
.side-cats a:hover { text-decoration: underline; }
.side-glossar { display: flex; flex-wrap: wrap; gap: 8px; }
.side-glossar a { display: inline-block; font-size: 15px; padding: 3px 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--bg); }
.side-glossar a:hover { border-color: var(--primary); }

/* Anzeige-Box (Theme-Werbeplatz) */
.ad-box { position: relative; border: 1px solid var(--accent); background: var(--accent-soft); padding-top: 30px; }
.ad-label { position: absolute; top: 0; left: 0; background: var(--accent); color: var(--text); font-family: var(--head); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 10px; border-radius: 0 0 var(--radius) 0; }
.ad-title { font-family: var(--head); font-weight: 600; font-size: 1.05rem; margin-bottom: .4em; }
.ad-box p { font-size: 16px; }
.ad-hinweis { color: var(--muted-text); font-size: 15px !important; }
.btn--ad { font-size: 15px; padding: 8px 14px; }

/* Förder-Check: Ja/Nein per Radio, reines HTML/CSS */
.fcheck { display: flex; flex-direction: column; gap: 12px; }
.fc-frage { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 12px 0 0; min-width: 0; }
.fc-frage:first-child { border-top: 0; padding-top: 0; }
.fc-frage legend { float: left; width: 100%; font-weight: 600; font-size: 16px; line-height: 1.4; margin-bottom: 8px; display: flex; gap: 10px; padding: 0; }
.fc-nr { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--accent); font-family: var(--head); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.fc-frage input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fc-frage label { display: inline-block; clear: left; margin: 0 6px 0 34px; padding: 4px 16px; border: 1px solid var(--muted); border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer; background: #fff; }
.fc-frage label + input + label { margin-left: 0; }
.fc-frage input:checked + label { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }
.fc-frage input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.fc-antwort { display: none; margin: 10px 0 0 34px; font-size: 15.5px; line-height: 1.5; background: var(--tint); border-left: 3px solid var(--primary); padding: 8px 12px; }
.fc-frage input[value="ja"]:checked ~ .fc-antwort--ja,
.fc-frage input[value="nein"]:checked ~ .fc-antwort--nein { display: block; }
.fc-hinweis { font-size: 14.5px; color: var(--muted-text); margin: 4px 0 0; }
.fcheck--kompakt .fc-hinweis { display: none; }

/* Glossar-Teaser */
.glossar-teaser { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.gt-item { padding: 16px 0; border-top: 1px solid var(--line); }
.gt-item dt { font-family: var(--head); font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.gt-item dt a { text-decoration: none; }
.gt-item dt a:hover { text-decoration: underline; }
.gt-item dd { margin: 0; font-size: 16px; color: var(--muted-text); line-height: 1.5; }
.gt-alle { margin: 24px 0 0; }

/* Redaktion */
.redaktion { padding-top: 48px; }
.redaktion-box { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); border-radius: var(--radius); padding: 24px 28px; max-width: 900px; }
.redaktion-box h2 { font-size: 1.25rem; }
.redaktion-box p:last-child { margin: 0; }

/* A–Z-Leiste */
.az { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.az-label { font-family: var(--head); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.az ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.az li a, .az li span { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; font-family: var(--head); font-weight: 600; font-size: 15px; border-radius: var(--radius); text-decoration: none; }
.az li a { border: 1px solid currentColor; }
.az li span { opacity: .45; }

/* ---------- Artikel ---------- */
.artikel-spalte { max-width: 720px; margin: 0 auto; padding: 28px 24px 64px; box-sizing: content-box; }
.brotkrumen { font-size: 15px; color: var(--muted-text); margin-bottom: 18px; }
.brotkrumen a { color: var(--link); }
.artikel-kopf h1 { margin-top: 8px; }
.artikel-meta { font-size: 15.5px; color: var(--muted-text); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 22px 0; }
.toc-titel { font-family: var(--head); font-weight: 600; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.4em; font-size: 16.5px; }
.toc li { margin: 4px 0; }
.kurzfazit { background: var(--tint); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 32px; }
.kurzfazit-titel { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; margin-bottom: 8px; }
.kurzfazit ul { margin: 0; padding-left: 1.2em; }
.kurzfazit li { margin: 6px 0; }

.entry-content { font-size: 18px; }
.entry-content > * { margin-top: 0; }
.entry-content h2 { margin-top: 2em; scroll-margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin: .45em 0; }
/* Schrittnummern bei Anleitungen */
.entry-content ol { list-style: none; padding-left: 0; counter-reset: schritt; }
.entry-content ol > li { counter-increment: schritt; position: relative; padding-left: 46px; min-height: 32px; }
.entry-content ol > li::before { content: counter(schritt); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent); background: #fff; font-family: var(--head); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.entry-content ul > li::marker { color: var(--primary); }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--primary); color: var(--muted-text); }
.entry-content strong { font-weight: 700; }

/* Tabellen: scrollbar statt Wortbruch */
.entry-content .wp-block-table, .entry-content figure.wp-block-table { margin: 1.4em 0 1.6em; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.entry-content > table { display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); word-break: normal; overflow-wrap: normal; hyphens: manual; min-width: 120px; }
.entry-content thead th { border-bottom: 2px solid var(--primary); }
.entry-content th { background: var(--tint); font-family: var(--head); font-weight: 600; font-size: 15px; }
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content td:first-child { font-weight: 600; }

/* Anzeige im Artikeltext */
.entry-content .anzeige { position: relative; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 34px 22px 8px; margin: 1.8em 0; }
.entry-content .anzeige-label { position: absolute; top: 0; left: 0; background: var(--accent); color: var(--text); font-family: var(--head); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 10px; border-radius: 0 0 var(--radius) 0; }
.entry-content .anzeige p { font-size: 17px; }
.entry-content .anzeige a { font-weight: 600; }

/* FAQ-Blöcke (h3 + Absatz) bleiben schlicht; Belegstatus-Absätze */
.entry-content .belegstatus, .entry-content .beleg { font-size: 15.5px; color: var(--muted-text); border-top: 1px dashed var(--line); padding-top: 8px; }

.quellen { margin-top: 40px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.quellen h2 { font-size: 1.15rem; }
.quellen ol { margin: 0; padding-left: 1.4em; font-size: 16px; }
.quellen li { margin: 6px 0; }
.quelle-host { color: var(--muted-text); font-size: 14.5px; }
.artikel-hinweis { margin-top: 24px; font-size: 15.5px; color: var(--muted-text); border-left: 3px solid var(--accent); padding-left: 14px; }
.artikel-hinweis p { margin: 0; }
.weitere { margin-top: 40px; }

/* ---------- Seiten ---------- */
.seite-inhalt h1 { margin-bottom: .6em; }
.seite-inhalt .entry-content { max-width: 760px; }
.seite-inhalt > .az { margin: 0 0 24px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--primary-dark); }
.archiv-kopf { margin-bottom: 18px; }
.archiv-intro { color: var(--muted-text); font-size: 1.08rem; max-width: 40em; }
.werkzeug-box { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; }
.werkzeug-box h2 { display: flex; gap: 10px; align-items: center; font-size: 1.2rem; }
.werkzeug-box .fc-frage legend { font-size: 17px; }

.glossar-gruppe { margin-top: 28px; scroll-margin-top: 16px; }
.glossar-buchstabe { font-size: 1.6rem; color: var(--primary-dark); border-bottom: 2px solid var(--accent); padding-bottom: 4px; width: 2.2em; }
.glossar dl { margin: 0; }
.glossar dt { font-family: var(--head); font-weight: 600; font-size: 1.1rem; margin-top: 16px; scroll-margin-top: 16px; }
.glossar dt:target { color: var(--primary-dark); }
.glossar dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.glossar-mehr { font-size: 16px; white-space: nowrap; }
.such-glossar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.such-glossar h2 { font-size: 1.1rem; }
.such-glossar dt { font-weight: 600; margin-top: 10px; }
.such-glossar dd { margin: 2px 0 0; font-size: 16px; color: var(--muted-text); }

/* Rechner */
.r-felder { display: grid; gap: 14px; margin: 12px 0 18px; }
.r-felder label { display: grid; gap: 4px; font-weight: 600; font-size: 16px; }
.r-felder input[type="number"], .r-felder select { font: inherit; font-size: 17px; padding: 9px 12px; border: 1px solid var(--muted); border-radius: var(--radius); background: #fff; color: var(--text); max-width: 360px; width: 100%; }
.r-check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px !important; font-weight: 400 !important; }
.r-check input { width: 20px; height: 20px; }
.r-ergebnis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.r-ergebnis div { background: var(--tint); border-radius: var(--radius); padding: 12px 16px; }
.r-ergebnis dt { font-size: 15px; color: var(--muted-text); }
.r-ergebnis dd { margin: 0; font-family: var(--head); font-weight: 600; font-size: 1.5rem; color: var(--text); }
.r-hinweis { font-size: 15.5px; color: var(--muted-text); }

.seite-404 { max-width: 760px; }
.pagination { margin-top: 24px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; }
.pagination .current { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #cfe3e8; font-size: 16px; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.footer-az { border-bottom: 1px solid #2c444d; padding: 18px 0; color: #fff; }
.footer-az .az li a { border-color: #5b7a85; }
.footer-az .az li a:hover { background: var(--accent); color: var(--text); border-color: var(--accent); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.fcol h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8em; }
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li { margin: 0 0 8px; }
.fcol a { text-decoration: none; }
.fcol a:hover { text-decoration: underline; }
.betreiber { font-size: 15px; margin-top: 14px; line-height: 1.5; }
.footer-bottom { border-top: 1px solid #2c444d; padding-top: 20px; padding-bottom: 28px; }
.transparenz { max-width: 60em; }
.copy { margin: 0; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.themen-grid { grid-template-columns: 1fr; }
	.hausschnitt { max-width: 420px; }
	.schnell-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; gap: 32px; }
	.mit-sidebar { grid-template-columns: 1fr; gap: 32px; }
	.karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	body { font-size: 17px; }
	.wrap { padding: 0 16px; }
	.utility-claim { display: none; }
	.themenleiste ul { flex-wrap: wrap; gap: 0 18px; overflow: visible; padding: 4px 0; }
	.themenleiste a, .themenleiste li:first-child a { padding: 8px 0 6px; font-size: 15.5px; }
	.utility-inner { justify-content: flex-end; }
	.header-inner { flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
	.wortmarke { font-size: 1.35rem; }
	.header-suche { width: 100%; }
	.hero { padding: 28px 0 36px; }
	.pfad-karte { padding: 20px 16px 16px; }
	.karten, .schnell-grid, .gt-grid, .footer-cols { grid-template-columns: 1fr; }
	.sektion { padding: 40px 0; }
	.schnell { padding: 24px 0; }
	.artikel-spalte { padding: 20px 16px 48px; }
	.entry-content { font-size: 17px; }
	.r-ergebnis { grid-template-columns: 1fr; }
	.redaktion-box { padding: 20px 18px; }
	.footer-cols { gap: 20px; }
}
