/*
Theme Name: Energie & Wärme Kompass
Theme URI: https://energie-und-waerme.de/
Description: Kompassrosen-Ratgeberportal für energie-und-waerme.de – vier Himmelsrichtungen als Themenlogik, Wand-Querschnitt im Seitenkopf, Glossar-Tooltips, Prüfstempel mit Quellenzahl.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: t-energie-und-waerme-de
*/

:root {
	--bg: #f6f8f7;
	--surface: #ffffff;
	--text: #1c2b2a;
	--muted: #5f7270;      /* Linien, Icons, Dekor */
	--ink-2: #44524f;      /* Sekundärtext (>= 7:1 auf --bg) */
	--primary: #0f6b66;
	--primary-dark: #0a4f4b;
	--primary-pale: #e7f1f0;
	--accent: #e8892b;
	--accent-pale: #fdf1e4;
	--link: #0b5a8a;
	--line: #d5dfdd;
	--foot: #1c2b2a;
	--radius: 6px;
	--serif: "Merriweather", Georgia, "Times New Roman", serif;
	--sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
	--wrap: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.65;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); color: var(--text); line-height: 1.3; font-weight: 700; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ew-skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 12px; z-index: 100; }
.ew-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Disclaimer vom Kern: nur stylen, nie verstecken */
.ps-disclaimer { background: var(--accent-pale); color: var(--text); border-bottom: 1px solid #f1cfa6; font-family: var(--sans); font-size: 16px; }

/* ---------- Utility-Leiste ---------- */
.ew-utility { background: var(--primary-dark); color: #fff; font-size: 15px; }
.ew-utility__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.ew-utility__claim { margin: 0; opacity: .95; }
.ew-utility__aktionen { display: flex; align-items: center; gap: 18px; }
.ew-utility__link { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.ew-utility__link:hover { text-decoration: underline; }
.ew-utility__link:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; }
.ew-suche { display: flex; }
.ew-suche input { font: inherit; font-size: 15px; border: 1px solid #8fb9b5; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); padding: 4px 10px; width: 200px; background: #fff; color: var(--text); }
.ew-suche button { font: inherit; font-size: 15px; font-weight: 600; border: 1px solid #8fb9b5; background: var(--primary-pale); color: var(--primary-dark); border-radius: 0 var(--radius) var(--radius) 0; padding: 4px 12px; cursor: pointer; }

/* ---------- Header ---------- */
.ew-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.ew-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.ew-marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.ew-rose { color: var(--primary); display: block; }
.ew-rose--marke { width: 46px; height: 46px; }
.ew-rose--klein { width: 22px; height: 22px; display: inline-block; vertical-align: -5px; }
.ew-rose--fuss { width: 26px; height: 26px; display: inline-block; vertical-align: -6px; color: #9fd8d2; }
.ew-rose--gross { width: 72px; height: 72px; flex: 0 0 auto; }
.ew-marke__text { display: flex; flex-direction: column; line-height: 1.1; }
.ew-marke__a { font-family: var(--serif); font-weight: 700; font-size: 21px; }
.ew-marke__b { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--primary); margin-top: 4px; }

.ew-burger { display: none; }
.ew-nav__liste { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 4px; }
.ew-nav__punkt { position: relative; display: flex; align-items: center; }
.ew-nav__link { display: flex; align-items: center; gap: 8px; padding: 26px 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; }
.ew-nav__link:hover { color: var(--primary); }
.ew-nav__himmel { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--primary); border-radius: 50%; font-size: 12px; color: var(--primary); font-family: var(--serif); }
.ew-nav__punkt--neben .ew-nav__link { font-weight: 600; color: var(--ink-2); }
.ew-nav__punkt--neben:first-of-type { margin-left: 8px; }
.ew-nav__auf { display: none; }
.ew-nav__drop {
	position: absolute; top: 100%; left: 0; min-width: 300px; background: var(--surface);
	border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 12px 28px rgba(28, 43, 42, .12); padding: 14px 18px; display: none;
}
.ew-nav__punkt:hover .ew-nav__drop, .ew-nav__punkt:focus-within .ew-nav__drop, .ew-nav__punkt.ist-offen .ew-nav__drop { display: block; }
.ew-nav__frage { margin: 0 0 6px; font-family: var(--serif); font-size: 15px; color: var(--ink-2); font-style: italic; }
.ew-nav__drop ul { list-style: none; margin: 0; padding: 0; }
.ew-nav__drop li a { display: block; padding: 6px 0; font-size: 16px; line-height: 1.35; border-bottom: 1px solid var(--line); text-decoration: none; }
.ew-nav__drop li:last-child a { border-bottom: 0; }
.ew-nav__drop li a:hover { text-decoration: underline; }
.ew-nav__gl a { color: var(--ink-2); }

/* ---------- Hero ---------- */
.ew-hero { background: linear-gradient(180deg, var(--surface) 0, var(--surface) 70%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.ew-hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.ew-hero__vor { margin: 0 0 10px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .12em; font-size: 14px; }
.ew-hero__titel { font-size: 40px; margin: 0 0 16px; }
.ew-hero__lead { font-size: 19px; color: var(--ink-2); margin: 0 0 26px; max-width: 36em; }
.ew-hero__frage { font-family: var(--serif); font-weight: 700; font-size: 18px; margin: 0 0 12px; }
.ew-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ew-chips--zeile { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 28px; }
.ew-chip {
	display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); color: var(--text);
	border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}
.ew-chip:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(15, 107, 102, .12); }
.ew-chip__b { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 16px; }
.ew-chip--kosten .ew-chip__b, .ew-chip--foerdern .ew-chip__b { background: var(--primary-dark); }
.ew-chip--daemmen { border-left-color: var(--accent); }
.ew-chip__t { display: flex; flex-direction: column; line-height: 1.3; }
.ew-chip__t strong { font-size: 18px; }
.ew-chip__t small { font-size: 15px; color: var(--ink-2); }
.ew-chips--zeile .ew-chip { padding: 8px 14px 8px 8px; }
.ew-chips--zeile .ew-chip__b { width: 30px; height: 30px; font-size: 14px; }

.ew-haus { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; }
.ew-haus svg { display: block; width: 100%; height: auto; }
.ew-haus figcaption { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.ew-haus__legende { margin: 0; padding: 0; list-style: none; counter-reset: ew; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 16px; }
.ew-haus__legende li { counter-increment: ew; display: flex; gap: 8px; align-items: baseline; }
.ew-haus__legende li::before { content: counter(ew); flex: 0 0 auto; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; transform: translateY(3px); }
.ew-haus__hinweis { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }

/* ---------- Sektionen ---------- */
.ew-sektion { padding: 56px 0; }
.ew-sektion + .ew-sektion { border-top: 1px solid var(--line); }
.ew-sektion__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 24px; }
.ew-sektion__titel { font-size: 28px; margin: 0; position: relative; padding-left: 18px; }
.ew-sektion__titel::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; background: var(--accent); border-radius: 2px; }
.ew-sektion__unter { margin: 0; color: var(--ink-2); }

.ew-titelkarte { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ew-titelkarte__haupt { padding: 32px; border-left: 5px solid var(--primary); }
.ew-titelkarte__titel { font-size: 28px; margin: 12px 0; }
.ew-titelkarte__titel a { color: var(--text); text-decoration: none; }
.ew-titelkarte__titel a:hover { color: var(--primary); text-decoration: underline; }
.ew-titelkarte__auszug { font-size: 19px; color: var(--ink-2); }
.ew-titelkarte__inhalt { background: var(--primary-pale); padding: 28px 32px; }
.ew-titelkarte__label { margin: 0 0 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--primary-dark); }
.ew-titelkarte__inhalt ol { margin: 0; padding-left: 22px; }
.ew-titelkarte__inhalt li { margin: 6px 0; line-height: 1.4; }

.ew-karten { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.ew-karten--2 { grid-template-columns: repeat(2, 1fr); }
.ew-karte { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 22px 24px; }
.ew-karte__titel { font-size: 21px; margin: 10px 0 8px; }
.ew-karte__titel a { color: var(--text); text-decoration: none; }
.ew-karte__titel a:hover { color: var(--primary); text-decoration: underline; }
.ew-karte p { margin: 0 0 10px; }
.ew-karte--liste { margin-bottom: 18px; }

.ew-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ew-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--primary-dark); background: var(--primary-pale); border-radius: 999px; padding: 2px 10px 2px 3px; text-decoration: none; }
.ew-badge:hover { text-decoration: underline; }
.ew-badge__b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--primary); font-family: var(--serif); font-size: 11px; color: var(--primary-dark); flex: 0 0 auto; }

.ew-stempel { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--ink-2); margin: 14px 0 18px; }
.ew-stempel span { display: inline-flex; align-items: center; }
.ew-stempel__r { border: 1.5px solid var(--primary); color: var(--primary-dark); border-radius: 4px; padding: 1px 8px; font-weight: 700; transform: rotate(-1.5deg); background: var(--surface); }
.ew-stempel__r::before { content: "✓"; margin-right: 6px; }
.ew-stempel span + span:not(.ew-stempel__r)::before { content: "·"; margin-right: 10px; color: var(--muted); }
.ew-stempel span.ew-stempel__r + span::before { content: none; }

.ew-knopf { display: inline-block; background: var(--primary); color: #fff; font-weight: 700; text-decoration: none; padding: 11px 20px; border-radius: var(--radius); border: 0; line-height: 1.3; }
.ew-knopf:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.ew-knopf--akzent { background: var(--accent); color: var(--text); }
.ew-knopf--akzent:hover { background: #d97a1f; color: var(--text); }
.ew-mehr { font-weight: 700; text-decoration: none; }
.ew-mehr::after { content: " →"; }
.ew-mehr:hover { text-decoration: underline; }

/* Himmelsrichtungs-Kacheln */
.ew-kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ew-kachel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.ew-kachel::after { content: ""; position: absolute; right: -36px; top: -36px; width: 110px; height: 110px; border: 1px dashed var(--line); border-radius: 50%; }
.ew-kachel__himmel { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); font-weight: 700; }
.ew-kachel__b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--primary); color: var(--primary); font-family: var(--serif); font-size: 18px; letter-spacing: 0; background: var(--surface); }
.ew-kachel--daemmen .ew-kachel__b { border-color: var(--accent); color: #9a5410; }
.ew-kachel__titel { font-size: 24px; margin: 4px 0 2px; }
.ew-kachel__frage { margin: 0 0 12px; color: var(--ink-2); font-style: italic; font-family: var(--serif); font-size: 16px; }
.ew-kachel__fakten { margin: 0 0 16px; padding-left: 18px; font-size: 16px; line-height: 1.5; flex: 1; }
.ew-kachel__fakten li { margin-bottom: 8px; }

/* Anzeige-Band */
.ew-band { background: var(--accent-pale); border-top: 1px solid #f1cfa6; border-bottom: 1px solid #f1cfa6; }
.ew-band__inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; padding-top: 34px; padding-bottom: 34px; }
.ew-band__titel { font-size: 24px; margin: 6px 0 10px; }
.ew-band__text p { margin: 0 0 8px; }
.ew-band__aktion { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ew-band__einordnung { font-size: 16px; }
.ew-anzeige-label { display: inline-block; margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--text); border: 1px solid var(--text); border-radius: 3px; padding: 1px 8px; background: var(--surface); }

/* Glossar-Schnellzugriff */
.ew-az { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.ew-az a, .ew-az span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius); font-weight: 700; font-family: var(--serif); font-size: 15px; }
.ew-az a { background: var(--surface); border: 1px solid var(--primary); color: var(--primary-dark); text-decoration: none; }
.ew-az a:hover { background: var(--primary); color: #fff; }
.ew-az span { color: #a3b1af; border: 1px solid transparent; }
.ew-gl-karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.ew-gl-karte { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; }
.ew-gl-karte dt { font-family: var(--serif); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.ew-gl-karte dt a { color: var(--text); text-decoration: none; }
.ew-gl-karte dt a:hover { color: var(--primary); text-decoration: underline; }
.ew-gl-karte dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* Quellen & Redaktion */
.ew-redaktion { background: var(--surface); }
.ew-redaktion__spalten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ew-redaktion__box h3 { font-size: 19px; margin: 0 0 12px; }
.ew-redaktion__box p { margin: 0 0 12px; }
.ew-redaktion__box--wer { background: var(--primary-pale); border-radius: var(--radius); padding: 20px; border-left: 4px solid var(--primary); }
.ew-quellenliste { list-style: none; margin: 0; padding: 0; }
.ew-quellenliste li { padding: 8px 0; border-bottom: 1px solid var(--line); line-height: 1.35; }
.ew-quellenliste span { display: block; font-size: 15px; color: var(--ink-2); }
.ew-haken { list-style: none; margin: 0 0 16px; padding: 0; }
.ew-haken li { position: relative; padding-left: 28px; margin-bottom: 10px; line-height: 1.5; }
.ew-haken li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(-45deg); }

.ew-abschluss { background: var(--bg); border-top: 1px solid var(--line); }
.ew-abschluss__inner { display: flex; gap: 24px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.ew-abschluss__titel { font-family: var(--serif); font-weight: 700; font-size: 20px; margin: 0 0 6px; }
.ew-abschluss p { margin: 0; }

/* ---------- Seitenkopf mit Schichtaufbau ---------- */
.ew-kopf { background: var(--surface); border-bottom: 1px solid var(--line); }
.ew-kopf__inner { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; padding-top: 30px; padding-bottom: 26px; }
.ew-kopf__vor { margin: 0 0 8px; font-size: 15px; color: var(--ink-2); }
.ew-kopf__vor a { font-weight: 600; }
.ew-kopf__titel { font-size: 36px; margin: 0; max-width: 24em; }
.ew-kopf__unter .ew-stempel { margin-bottom: 0; }
.ew-schichten { margin: 0; }
.ew-schichten svg { width: 100%; display: block; }
.ew-schichten figcaption { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 0 18px; font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* ---------- Artikel ---------- */
.ew-artikel-raster { display: grid; grid-template-columns: 220px minmax(0, 720px) 260px; gap: 40px; justify-content: center; padding-top: 36px; padding-bottom: 56px; align-items: start; }
.ew-toc { position: sticky; top: 16px; font-size: 15px; max-height: calc(100vh - 32px); overflow: auto; }
.ew-toc__titel { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--ink-2); margin: 0 0 8px; }
.ew-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.ew-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.ew-toc li a:hover { color: var(--link); text-decoration: underline; }
.ew-toc li a.ist-aktiv { border-left-color: var(--accent); color: var(--text); font-weight: 700; }

.ew-artikel, .ew-seite { min-width: 0; }
.ew-blick { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 18px 22px 8px; margin: 0 0 28px; }
.ew-blick__titel { margin: 0 0 8px !important; font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--text); }
.ew-blick ul { margin: 0 0 10px; padding-left: 20px; }
.ew-blick li { margin-bottom: 8px; }

.entry-content { font-size: 18px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > h2:first-child { border-top: 0; padding-top: 0; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.1em; }
.entry-content h2 { font-size: 27px; margin: 1.8em 0 .6em; padding-top: .6em; border-top: 1px solid var(--line); }
.entry-content h3 { font-size: 21px; margin: 1.5em 0 .5em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul { padding-left: 1.3em; }
.entry-content ul li::marker { color: var(--primary); }
.entry-content ol { padding-left: 1.5em; }
.entry-content ol li::marker { color: var(--primary); font-weight: 700; }
.entry-content strong { font-weight: 700; }
.entry-content blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--primary); background: var(--primary-pale); }

/* Tabellen: scrollbar, nie mitten im Wort umbrechen */
.entry-content figure.wp-block-table { margin: 1.5em 0; 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: 15px; line-height: 1.45; }
.entry-content th, .entry-content td { padding: 9px 9px; border-left: 0; border-right: 0; border-top: 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); word-break: normal; overflow-wrap: normal; hyphens: manual; }
.entry-content thead th { background: var(--primary-pale); color: var(--primary-dark); font-weight: 700; border-bottom: 2px solid var(--primary); }
.entry-content tbody tr:nth-child(even) td { background: #fafcfb; }
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content tbody td:first-child { font-weight: 600; }

/* Anzeige-Block im Artikeltext */
.entry-content .anzeige { position: relative; margin: 2em 0; padding: 20px 22px 8px; background: var(--accent-pale); border: 1px solid #f1cfa6; border-left: 5px solid var(--accent); border-radius: var(--radius); font-size: 17px; }
.entry-content .anzeige-label { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; border: 1px solid var(--text); border-radius: 3px; padding: 1px 8px; background: var(--surface); }
.entry-content .anzeige a { font-weight: 700; }

/* Glossar-Tooltips */
.ew-gl { position: relative; color: inherit; text-decoration: underline dotted var(--primary); text-decoration-thickness: 2px; text-underline-offset: .22em; cursor: help; }
.ew-gl:hover, .ew-gl:focus { color: var(--primary-dark); }
.ew-gl::after {
	content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 8px); width: max-content; max-width: 280px;
	background: var(--text); color: #fff; font-size: 15px; font-weight: 400; line-height: 1.4; padding: 8px 12px; border-radius: var(--radius);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transition: opacity .12s; z-index: 30; pointer-events: none; white-space: normal; text-align: left;
}
.ew-gl:hover::after, .ew-gl:focus::after { opacity: 1; visibility: visible; }

/* Quellenkasten */
.ew-quellen { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--primary); border-radius: var(--radius); padding: 20px 24px; }
.ew-quellen h2 { font-size: 21px; margin: 0 0 10px; }
.ew-quellen ol { margin: 0 0 12px; padding-left: 22px; font-size: 16px; }
.ew-quellen li { margin-bottom: 6px; line-height: 1.45; }
.ew-quellen li span { color: var(--ink-2); font-size: 15px; }
.ew-quellen__stand { margin: 0; font-size: 15px; color: var(--ink-2); }
.ew-artikel__fuss { margin: 24px 0; }
.ew-weitere { border-top: 1px solid var(--line); padding-top: 18px; }
.ew-weitere h2 { font-size: 20px; margin: 0 0 8px; }
.ew-weitere ul { margin: 0; padding-left: 20px; }

/* ---------- Seitenleiste ---------- */
.ew-sidebar { display: flex; flex-direction: column; gap: 20px; font-size: 16px; }
.ew-artikel-raster .ew-sidebar { position: sticky; top: 16px; }
.ew-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.ew-box__titel { font-size: 17px; margin: 0 0 12px; }
.ew-richtungsliste { list-style: none; margin: 0; padding: 0; }
.ew-richtungsliste a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.ew-richtungsliste li:last-child a { border-bottom: 0; }
.ew-richtungsliste a span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.ew-richtungsliste small { color: var(--ink-2); font-size: 15px; }
.ew-richtungsliste a:hover strong { color: var(--link); text-decoration: underline; }
.ew-mini-glossar { margin: 0 0 12px; }
.ew-mini-glossar dt { font-weight: 700; margin-top: 8px; }
.ew-mini-glossar dd { margin: 0; color: var(--ink-2); line-height: 1.45; }
.ew-anzeige-box { background: var(--accent-pale); border: 1px solid #f1cfa6; border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; }
.ew-anzeige-box__titel { font-family: var(--serif); font-weight: 700; font-size: 17px; margin: 10px 0 6px; line-height: 1.35; }
.ew-anzeige-box p { margin: 0 0 12px; line-height: 1.5; }
.ew-anzeige-box .ew-knopf { font-size: 16px; padding: 9px 14px; }

/* ---------- Seiten ---------- */
.ew-seiten-raster { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 36px; padding-bottom: 56px; align-items: start; }
.ew-seite { max-width: 760px; }
.ew-richtung { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 22px; border-left: 5px solid var(--primary); }
.ew-richtung--daemmen { border-left-color: var(--accent); }
.ew-richtung h2 { font-size: 24px; margin: 4px 0 10px; border: 0; padding: 0; }
.ew-richtung h3 { font-size: 17px; margin: 0 0 8px; }
.ew-richtung__spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.ew-linkliste { margin: 0; padding-left: 18px; font-size: 16px; }
.ew-linkliste li { margin-bottom: 6px; line-height: 1.4; }
.ew-gl-gruppe { margin-bottom: 26px; }
.ew-gl-gruppe__b { font-size: 30px; color: var(--primary); margin: 0 0 8px; border-bottom: 2px solid var(--line); padding-bottom: 4px; }
.ew-gl-gruppe dl { margin: 0; }
.ew-gl-eintrag { padding: 12px 0 12px 16px; border-left: 3px solid var(--accent); margin-bottom: 12px; background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding-right: 16px; }
.ew-gl-eintrag dt { font-family: var(--serif); font-weight: 700; font-size: 19px; margin-bottom: 4px; }
.ew-gl-eintrag dd { margin: 0; }
.ew-gl-eintrag:target { background: var(--primary-pale); }
.ew-leer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ew-leer .ew-suche input { width: 100%; }
.ew-seite .ew-suche { margin-top: 20px; max-width: 420px; }
.ew-seite .ew-suche input { flex: 1; }
.nav-links { display: flex; gap: 12px; margin-top: 20px; }

/* ---------- Footer ---------- */
.ew-footer { background: var(--foot); color: #e9efee; font-size: 16px; }
.ew-footer a { color: #9fd8d2; }
.ew-footer a:hover { color: #fff; }
.ew-footer__spalten { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-top: 44px; padding-bottom: 28px; }
.ew-footer__marke { font-family: var(--serif); font-weight: 700; font-size: 19px; margin: 0 0 10px; color: #fff; }
.ew-footer__titel { font-family: var(--sans); font-size: 14px; text-transform: uppercase; letter-spacing: .14em; color: #c9d6d4; margin: 0 0 12px; }
.ew-footer ul { list-style: none; margin: 0; padding: 0; }
.ew-footer li { margin-bottom: 8px; }
.ew-footer p { margin: 0 0 10px; line-height: 1.55; }
.ew-footer__betreiber { font-size: 15px; color: #c9d6d4; border-top: 1px solid #36504d; padding-top: 10px; }
.ew-footer__unten { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #36504d; padding-top: 16px; padding-bottom: 22px; font-size: 15px; color: #c9d6d4; }
.ew-footer__unten p { margin: 0; }

/* ---------- Responsiv ---------- */
@media (max-width: 1240px) {
	.ew-artikel-raster { grid-template-columns: 200px minmax(0, 1fr) 240px; gap: 28px; }
	.ew-nav__link { padding-left: 7px; padding-right: 7px; font-size: 16px; }
	.ew-utility__claim { display: none; }
	.ew-utility__inner { justify-content: flex-end; }
}
@media (max-width: 1080px) {
	.ew-artikel-raster { grid-template-columns: minmax(0, 720px); }
	.ew-toc { position: static; max-height: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
	.ew-artikel-raster .ew-sidebar { position: static; }
	.ew-kacheln { grid-template-columns: repeat(2, 1fr); }
	.ew-hero__inner { grid-template-columns: 1fr; gap: 28px; }
	.ew-burger { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; cursor: pointer; }
	.ew-burger__striche, .ew-burger__striche::before, .ew-burger__striche::after { display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
	.ew-burger__striche::before, .ew-burger__striche::after { content: ""; position: absolute; left: 0; }
	.ew-burger__striche::before { top: -6px; }
	.ew-burger__striche::after { top: 6px; }
	.ew-header__inner { flex-wrap: wrap; min-height: 70px; padding-top: 10px; padding-bottom: 10px; }
	.ew-nav { display: none; width: 100%; }
	.ew-nav.ist-offen { display: block; }
	.ew-nav__liste { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
	.ew-nav__punkt { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.ew-nav__link { padding: 12px 4px; flex: 1; }
	.ew-nav__punkt--neben:first-of-type { margin-left: 0; }
	.ew-nav__auf { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
	.ew-nav__auf span { width: 10px; height: 10px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg) translateY(-3px); }
	.ew-nav__auf[aria-expanded="true"] span { transform: rotate(-135deg) translateY(-3px); }
	.ew-nav__drop { position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; border-top: 1px dashed var(--line); border-radius: 0; padding: 8px 4px 12px 38px; }
	.ew-nav__punkt:hover .ew-nav__drop, .ew-nav__punkt:focus-within .ew-nav__drop { display: none; }
	.ew-nav__punkt.ist-offen .ew-nav__drop { display: block; }
}
@media (max-width: 860px) {
	.ew-seiten-raster { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.ew-titelkarte { grid-template-columns: 1fr; }
	.ew-karten, .ew-karten--2 { grid-template-columns: 1fr; }
	.ew-gl-karten, .ew-redaktion__spalten { grid-template-columns: 1fr 1fr; }
	.ew-band__inner { grid-template-columns: 1fr; gap: 18px; }
	.ew-footer__spalten { grid-template-columns: 1fr 1fr; }
	.ew-footer__spalte:first-child { grid-column: 1 / -1; }
	.ew-kopf__inner { grid-template-columns: 1fr; gap: 16px; }
	.ew-schichten { max-width: 320px; }
}
@media (max-width: 640px) {
	body { font-size: 17px; }
	.entry-content { font-size: 17px; }
	.ew-utility__inner { flex-wrap: wrap; gap: 6px 14px; padding-top: 8px; padding-bottom: 8px; justify-content: flex-start; }
	.ew-utility__aktionen { flex-wrap: wrap; gap: 8px 14px; width: 100%; }
	.ew-suche { width: 100%; }
	.ew-suche input { flex: 1; width: auto; min-width: 0; }
	.ew-marke__a { font-size: 18px; }
	.ew-rose--marke { width: 38px; height: 38px; }
	.ew-hero__inner { padding-top: 28px; padding-bottom: 28px; }
	.ew-hero__titel { font-size: 29px; }
	.ew-hero__lead { font-size: 18px; }
	.ew-chips { grid-template-columns: 1fr; }
	.ew-haus { padding: 12px; }
	.ew-haus__legende { grid-template-columns: 1fr; }
	.ew-sektion { padding: 38px 0; }
	.ew-sektion__titel { font-size: 24px; }
	.ew-titelkarte__haupt, .ew-titelkarte__inhalt { padding: 22px 18px; }
	.ew-titelkarte__titel { font-size: 23px; }
	.ew-kacheln, .ew-gl-karten, .ew-redaktion__spalten { grid-template-columns: 1fr; }
	.ew-kopf__titel { font-size: 27px; }
	.ew-schichten { display: none; }
	.ew-kopf { border-bottom: 0; }
	.ew-kopf::after { content: ""; display: block; height: 10px; background: linear-gradient(90deg, #ffffff 0 4%, #e7d6c7 4% 52%, #fdf1e4 52% 86%, #dfe8e6 86% 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
	.entry-content h2 { font-size: 23px; }
	.entry-content h3 { font-size: 19px; }
	.entry-content table { min-width: 560px; }
	.ew-richtung { padding: 18px; }
	.ew-richtung__spalten { grid-template-columns: 1fr; }
	.ew-footer__spalten { grid-template-columns: 1fr; gap: 26px; }
	.ew-abschluss__inner { flex-direction: column; align-items: flex-start; }
	.ew-gl::after { max-width: 240px; }
	.ew-stempel span + span:not(.ew-stempel__r)::before { content: none; }
	.ew-stempel { gap: 6px 16px; }
}
