/* DIR.de – Theme „Grundriss“ (Dezember 2026)
 *
 * Leitreferenz: Airbnb (Rechner- und Entdecken-Variante) – weiße Bühne, eine runde Grotesk,
 *   Anthrazit-Text, Farbe nur für Aktionen und Fotos, große Rechenergebnisse neben einer Karte,
 *   Fotoregale, ruhiger Fragen-Abschluss auf #f7f7f7.
 * Geliehen: Buena – eckige Werkzeug-Platten und die Gegenzeile (zweite Satzhälfte in Grau).
 *   The New Yorker – kleine rote Rubrik-Marken über Titeln, linierte Abschnittsköpfe, Beiträge ohne Kartenrahmen.
 * Renis Regeln: nie Schwarz, keine dunklen Flächen, keine Verläufe, kein Glas, keine Leuchten,
 *   Kopf läuft nicht mit, Navigation rechtsbündig in 18 px, Inhaltsverzeichnis immer zu,
 *   Beiträge in voller Seitenbreite, Handy-Menü wie wojciechowski.de.
 */

/* DM Sans (SIL Open Font License, assets/fonts/OFL-DM-Sans.txt), lokal – keine Anfrage an Google. */
@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 100 1000;
	font-display: swap;
	src: url("../fonts/dm-sans-latin-ext-standard-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 100 1000;
	font-display: swap;
	src: url("../fonts/dm-sans-latin-standard-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--weiss: #fff;
	--band: #f7f7f7;          /* Rechner-Bühne, Fragen-Band, Inhaltsverzeichnis */
	--flaeche: #f2f2f2;       /* neutrale Werkzeug-Platten, runde Knöpfe */
	--flaeche-hover: #e8e8e8;
	--tinte: #222;            /* Text (dunkelgrau, kein Schwarz) */
	--grau: #6a6a6a;          /* Nebentext, 5,4 : 1 auf Weiß */
	--gegen: #8b8b8b;         /* zweite Hälfte der Gegenzeile, nur ab 24 px Schriftgröße */
	--linie: #ddd;
	--linie-fein: #ebebeb;
	--rot: #ad0000;           /* DIR-Markenrot: Aktionen, Rubrik-Marken, Auswahl, zwei Platten */
	--rot-tief: #8f0000;      /* Hover auf Rot */
	--rot-hell: #f6e3e1;      /* Textmarkierung */

	/* Grunderwerbsteuer 3,5 → 6,5 %: eine Farbe, hell → dunkel */
	--stufe-1: #e29890;
	--stufe-2: #d67b70;
	--stufe-3: #c85f53;
	--stufe-4: #b5453a;
	--stufe-5: #9d2f25;

	/* Kostenbalken: Steuer im Markenrot, die übrigen Posten zurückhaltend grau */
	--teil-steuer: #ad0000;
	--teil-notar: #7a7a7a;
	--teil-makler: #c9c9c9;

	--schrift: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--r-pille: 999px;
	--r-foto: 12px;
	--r-feld: 12px;
	--breite: 1440px;
	--rand: 80px;
	--kopf: 88px;
	--weich: cubic-bezier(.2, 0, 0, 1);
}

@media (max-width: 1439px) { :root { --rand: 40px; } }
@media (max-width: 743px) { :root { --rand: 20px; --kopf: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
	margin: 0;
	background: var(--weiss);
	color: var(--tinte);
	font-family: var(--schrift);
	font-size: 17px;
	line-height: 1.55;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--tinte); outline-offset: 2px; }
::selection { background: var(--rot-hell); color: var(--tinte); }
.huelle { max-width: var(--breite); margin: 0 auto; padding-inline: var(--rand); }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ikon { width: 20px; height: 20px; flex: none; }

/* Sprungmarke für Tastatur und Screenreader */
.sprung {
	position: absolute;
	z-index: 100;
	top: -200px;
	left: 16px;
	padding: 10px 18px;
	background: var(--weiss);
	border: 2px solid var(--tinte);
	border-radius: var(--r-pille);
	font-weight: 600;
	text-decoration: none;
}
.sprung:focus { top: 16px; }

/* Fotos: Seitenverhältnis je Rolle, Ausschnitt immer von rechts unten,
 * damit die KI-Kennzeichnung, die in den dir.de-Bildern steckt, sichtbar bleibt. */
.foto { display: block; width: 100%; object-fit: cover; object-position: 100% 100%; border-radius: var(--r-foto); background: var(--flaeche); }
.foto--16x10 { aspect-ratio: 16 / 10; }
.foto--4x3 { aspect-ratio: 4 / 3; }
.foto--21x9 { aspect-ratio: 21 / 9; }
@media (max-width: 743px) { .foto--21x9 { aspect-ratio: 16 / 10; } }

/* ---------- Schrift ---------- */
.rubrik {
	display: inline-block;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--rot);
	text-decoration: none;
}
a.rubrik:hover { text-decoration: underline; text-underline-offset: 3px; }
.anzeige { font-size: 60px; line-height: 64px; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.kapitel, .seiten-titel { font-size: 44px; line-height: 48px; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.gegenzeile > span { display: block; }
.gegen { color: var(--gegen); }
.unterzeile { font-size: 21px; line-height: 31px; color: var(--grau); text-wrap: pretty; }
.regal-titel { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.klein { font-size: 14px; line-height: 20px; color: var(--grau); }
@media (max-width: 743px) {
	.anzeige { font-size: 40px; line-height: 44px; }
	.kapitel, .seiten-titel { font-size: 32px; line-height: 36px; }
	.unterzeile { font-size: 18px; line-height: 27px; }
}

/* ---------- Knöpfe und Links ---------- */
.knopf, .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: var(--r-pille);
	background: var(--rot);
	color: var(--weiss);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s var(--weich), transform .1s var(--weich);
}
.knopf:hover, .wp-block-button__link:hover { background: var(--rot-tief); color: var(--weiss); }
.knopf:active { transform: scale(.96); }
.knopf--rahmen, .is-style-outline > .wp-block-button__link { background: var(--weiss); color: var(--tinte); border-color: var(--tinte); }
.knopf--rahmen:hover, .is-style-outline > .wp-block-button__link:hover { background: var(--band); color: var(--tinte); }
.knopf--kopf { min-height: 44px; padding: 0 20px; }
.wp-block-button__link { white-space: normal; padding-block: 12px; text-align: center; }
.pfeil-link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap; }
.pfeil-link::after { content: "\00a0→"; }
.pfeil-link:hover { color: var(--rot); }
.rund {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--flaeche);
	color: var(--tinte);
	transition: background-color .2s var(--weich);
}
.rund:hover, .rund[aria-expanded="true"] { background: var(--flaeche-hover); }

/* ---------- Kopf (läuft nicht mit) ---------- */
.kopf { position: relative; z-index: 30; background: var(--weiss); border-bottom: 1px solid var(--linie-fein); }
.kopf__zeile { display: flex; align-items: center; gap: 16px; min-height: var(--kopf); }
.kopf__logo { flex: none; display: block; padding: 4px 0; }
.kopf__logo img { height: 42px; width: auto; }
.navi { flex: 1; display: flex; justify-content: flex-end; }
.navi__liste { display: flex; gap: 2px; }
.navi__punkt { position: relative; }
.navi__link {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 10px 12px;
	border-radius: var(--r-pille);
	font-size: 18px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s var(--weich);
}
.navi__link .ikon { width: 14px; height: 14px; color: var(--grau); transition: transform .2s var(--weich); }
.navi__punkt:hover > .navi__link, .navi__punkt:focus-within > .navi__link { background: var(--flaeche); }
.navi__punkt:hover > .navi__link .ikon, .navi__punkt:focus-within > .navi__link .ikon { transform: rotate(180deg); }
.navi__link[aria-current] { color: var(--rot); }
.navi__panel { position: absolute; top: 100%; left: 0; padding-top: 10px; display: none; z-index: 40; }
.navi__punkt--rechts .navi__panel { left: auto; right: 0; }
.navi__punkt:hover .navi__panel, .navi__punkt:focus-within .navi__panel { display: block; }
.navi__panel-innen {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 24px;
	width: 560px;
	padding: 24px;
	background: var(--weiss);
	border: 1px solid var(--linie);
	border-radius: var(--r-foto);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.navi__panel-kopf { margin-bottom: 8px; }
.navi__themen a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--linie-fein); font-size: 16px; text-decoration: none; }
.navi__themen a:hover { color: var(--rot); }
.navi__themen span { color: var(--grau); font-size: 14px; font-variant-numeric: tabular-nums; }
.navi__alle { display: inline-block; margin-top: 14px; font-size: 15px; }
.kopf__aktionen { display: flex; align-items: center; gap: 8px; }
.kopf__menue { display: none; }
.kopf__menue .zu, .kopf__menue[aria-expanded="true"] .auf { display: none; }
.kopf__menue[aria-expanded="true"] .zu { display: block; }
@media (max-width: 1199px) {
	.navi { display: none; }
	.kopf__menue { display: inline-grid; }
	.kopf__aktionen { margin-left: auto; }
}
@media (max-width: 743px) {
	.kopf__zeile { gap: 8px; }
	.kopf__logo img { height: 34px; }
	.kopf__rechner { display: none; }
}

/* Panels unter dem Kopf: Suche und Handy-Menü (immer nur eins offen) */
.panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--weiss); border-top: 1px solid var(--linie-fein); border-bottom: 1px solid var(--linie); }
.panel[hidden] { display: none; }
.panel--suche { padding: 24px 0 32px; }
.panel--suche .klein { margin-top: 12px; }
.mobil { height: calc(100dvh - var(--kopf)); overflow-y: auto; overscroll-behavior: contain; border-bottom: 0; }
.admin-bar .mobil { height: calc(100dvh - var(--kopf) - 32px); }
@media (max-width: 782px) { .admin-bar .mobil { height: calc(100dvh - var(--kopf) - 46px); } }
.mobil__liste { padding: 8px 0; }
.mobil__liste a {
	display: block;
	padding: 16px 0;
	border-bottom: 1px solid var(--linie);
	font-size: 26px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -.02em;
	text-align: right;
	text-decoration: none;
}
.mobil__liste a:hover, .mobil__liste a[aria-current] { color: var(--rot); }
.mobil__aktionen { display: flex; flex-direction: column; gap: 12px; padding: 24px 0 32px; }
.mobil__aktionen .knopf { width: 100%; min-height: 52px; font-size: 17px; }
@media (min-width: 1200px) { .mobil { display: none !important; } }

/* ---------- Suchfeld ---------- */
.suche {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 64px;
	padding: 8px 8px 8px 24px;
	background: var(--weiss);
	border: 1px solid var(--linie);
	border-radius: var(--r-pille);
}
.suche:focus-within { border-color: var(--tinte); box-shadow: 0 0 0 1px var(--tinte); }
.suche input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 18px; -webkit-appearance: none; appearance: none; }
.suche input::placeholder { color: var(--grau); }
.suche input::-webkit-search-cancel-button { -webkit-appearance: none; }
.suche button { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--rot); color: var(--weiss); transition: background-color .2s var(--weich); }
.suche button:hover { background: var(--rot-tief); }
@media (max-width: 743px) { .suche { height: 56px; padding-left: 18px; } .suche button { width: 42px; height: 42px; } .suche input { font-size: 16px; } }

/* ---------- Startbühne: Versprechen links, Rechner rechts ---------- */
.start { padding: 64px 0 104px; }
.start__raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.start__text .rubrik { margin-bottom: 20px; }
.start__text .unterzeile { margin-top: 20px; }
.start__suche { margin-top: 36px; }
.start__beliebt { margin-top: 16px; font-size: 15px; color: var(--grau); }
.start__beliebt a { color: var(--tinte); text-underline-offset: 3px; margin-right: 10px; }
.start__beliebt a:hover { color: var(--rot); }
@media (max-width: 1279px) {
	.start__raster { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
	.start .rechner__raster { grid-template-columns: 256px minmax(0, 1fr); gap: 32px; }
	.start .karte { grid-template-columns: repeat(5, 48px); grid-template-rows: repeat(5, 48px); }
}
@media (max-width: 743px) { .start { padding: 32px 0 72px; } }

/* ---------- Rechner (Werkzeuge sind eckig, wie die Platten) ---------- */
.rechner { background: var(--band); padding: 32px; font-size: 17px; line-height: 1.55; }
.rechner__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 24px; }
.rechner__name { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: 0; }
.rechner__raster { display: grid; grid-template-columns: 276px minmax(0, 1fr); gap: 40px; }
.rechner__links { display: grid; gap: 20px; align-content: start; }
.rechner__fuss { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 743px) {
	.rechner { padding: 20px; margin-inline: calc(var(--rand) * -1); }
	.rechner__raster { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* Kachelkarte der 16 Bundesländer (Grunderwerbsteuer als Stufe) */
.karte { display: grid; grid-template-columns: repeat(5, 52px); grid-template-rows: repeat(5, 52px); gap: 4px; }
.karte__land {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	padding: 0;
	border: 0;
	background: var(--stufe-3);
	color: var(--weiss);
	font-size: 13px;
	line-height: 1.05;
	font-weight: 700;
	letter-spacing: .02em;
	transition: box-shadow .15s var(--weich);
}
.karte__land small { font-size: 11px; font-weight: 500; letter-spacing: 0; }
.karte__land[data-stufe="1"] { background: var(--stufe-1); color: var(--tinte); }
.karte__land[data-stufe="2"] { background: var(--stufe-2); }
.karte__land[data-stufe="3"] { background: var(--stufe-3); }
.karte__land[data-stufe="4"] { background: var(--stufe-4); }
.karte__land[data-stufe="5"] { background: var(--stufe-5); }
.karte__land:hover { box-shadow: inset 0 0 0 2px var(--tinte); }
.karte__land[aria-pressed="true"] { background: var(--weiss); color: var(--rot); box-shadow: inset 0 0 0 3px var(--rot); }
.karte__legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--grau); }
.karte__legende i { display: block; width: 14px; height: 14px; }
.karte__legende span { margin-right: 6px; font-variant-numeric: tabular-nums; }
.karte__legende .karte__legende-titel { flex-basis: 100%; margin: 0 0 2px; }
@media (max-width: 743px) {
	.karte { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 1fr; }
	.karte__land { aspect-ratio: 1; }
}

.tipp {
	position: fixed;
	z-index: 60;
	max-width: 240px;
	padding: 8px 12px;
	background: var(--weiss);
	border: 1px solid var(--linie);
	border-radius: 8px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
	font-size: 14px;
	line-height: 1.35;
	pointer-events: none;
}
.tipp[hidden] { display: none; }
.tipp b { display: block; }

/* Eingaben */
.feld { display: grid; gap: 8px; min-width: 0; }
.feld > * { min-width: 0; }
.feld__label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; font-weight: 600; }
.feld__label span { font-weight: 400; color: var(--grau); }
.feld__eingabe {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 52px;
	padding: 0 16px;
	background: var(--weiss);
	border: 1px solid var(--linie);
	border-radius: var(--r-feld);
}
.feld__eingabe:focus-within { border-color: var(--tinte); box-shadow: 0 0 0 1px var(--tinte); }
.feld__eingabe input, .feld__eingabe select { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: none; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.feld__eingabe select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.feld__eingabe .ikon { width: 16px; height: 16px; color: var(--grau); pointer-events: none; }
.feld__eingabe em { font-style: normal; color: var(--grau); }
.feld input[type="range"] { width: 100%; margin: 4px 0 0; accent-color: var(--rot); }
.feld--klein .feld__eingabe { height: 44px; }
.feld--klein .feld__eingabe input { font-size: 16px; }
.felder-reihe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.schalter { display: inline-flex; padding: 4px; gap: 4px; background: var(--flaeche); border-radius: var(--r-pille); justify-self: start; }
.schalter button { height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-pille); background: none; font-size: 15px; font-weight: 500; color: var(--grau); }
.schalter button[aria-pressed="true"] { background: var(--weiss); border-color: var(--tinte); color: var(--tinte); }

/* Ergebnis */
.ergebnis__label { font-size: 16px; font-weight: 500; }
.ergebnis__zahl { margin: 2px 0 4px; font-size: 60px; line-height: 64px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ergebnis__unter { color: var(--grau); }
.ergebnis__unter [data-aus="land"] { white-space: nowrap; }
.ergebnis__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
@media (max-width: 743px) { .ergebnis__zahl { font-size: 48px; line-height: 52px; } }

.balken { display: flex; gap: 2px; height: 28px; margin: 20px 0 6px; }
.balken__teil {
	display: flex;
	align-items: center;
	min-width: 0;
	padding-left: 8px;
	border-radius: 4px;
	color: var(--weiss);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	transition: flex-grow .3s var(--weich);
}
.balken__teil[data-teil="steuer"] { background: var(--teil-steuer); }
.balken__teil[data-teil="notar"] { background: var(--teil-notar); }
.balken__teil[data-teil="makler"] { background: var(--teil-makler); color: var(--tinte); }
.balken__teil.ist-leer { display: none; }

.posten li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.posten li i { width: 12px; height: 12px; align-self: center; border-radius: 2px; }
.posten li i[data-teil="steuer"] { background: var(--teil-steuer); }
.posten li i[data-teil="notar"] { background: var(--teil-notar); }
.posten li i[data-teil="makler"] { background: var(--teil-makler); }
.posten li small { color: var(--grau); font-size: 14px; }
.posten li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.posten .posten__summe { grid-template-columns: minmax(0, 1fr) auto; border-bottom: 0; border-top: 1px solid var(--tinte); margin-top: -1px; }
.posten .posten__summe b { font-weight: 700; }
.posten--eigenkapital { margin-top: 8px; }
.posten--eigenkapital .posten__summe { border-top-color: var(--linie); margin-top: 0; }
.posten--eigenkapital small { display: block; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 0 0 104px; }
.abschnitt--oben { padding-top: 96px; }
.abschnitt--eng { padding-bottom: 72px; }
.abschnitt--band { background: var(--band); padding: 104px 0; }
.abschnitt__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-top: 16px; border-top: 1px solid var(--linie); margin-bottom: 32px; }
.abschnitt__kopf--frei { border-top: 0; padding-top: 0; }
.abschnitt__einstieg { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: 48px; }
@media (max-width: 1128px) { .abschnitt__einstieg { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 743px) { .abschnitt { padding-bottom: 72px; } .abschnitt--oben { padding-top: 64px; } .abschnitt--eng { padding-bottom: 56px; } .abschnitt--band { padding: 72px 0; } }

/* Rubriken als Fotoregal */
.themen { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
.themen--rubrik { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.thema { display: block; text-decoration: none; }
.thema__name { margin-top: 12px; font-size: 18px; line-height: 24px; font-weight: 600; }
.thema__zahl { font-size: 14px; color: var(--grau); }
.thema:hover .thema__name { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1128px) {
	.themen, .themen--rubrik { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	.thema { scroll-snap-align: start; }
}

/* Aufmacher und Beitragslisten (ohne Kartenrahmen) */
.aufmacher { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
.aufmacher__haupt { display: block; text-decoration: none; }
.aufmacher__haupt .rubrik { margin-top: 20px; }
.aufmacher__titel { margin-top: 8px; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.aufmacher__haupt > .aufmacher__titel:first-child { margin-top: 0; }
.aufmacher__haupt:hover .aufmacher__titel { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.aufmacher__auszug { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--grau); }
.kurzliste li + li { border-top: 1px solid var(--linie); }
.kurzliste li:first-child a { padding-top: 0; }
.kurzliste a { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 20px; padding: 18px 0; text-decoration: none; }
.kurzliste a .foto { border-radius: 8px; }
.kurzliste h3 { margin-top: 4px; font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; }
.kurzliste a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1128px) { .aufmacher { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 743px) { .aufmacher__titel { font-size: 28px; line-height: 32px; } .kurzliste a { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; } .kurzliste h3 { font-size: 17px; line-height: 22px; } }

.beitraege { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.beitraege--abstand { margin-top: 56px; }
.beitrag { display: block; text-decoration: none; }
.beitrag .rubrik { margin-top: 14px; }
.beitrag h3 { margin-top: 6px; font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; }
.beitrag p { margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--grau); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.beitrag:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1128px) { .beitraege { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 743px) { .beitraege { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Seitenzahlen */
.seiten { margin-top: 56px; }
.seiten .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.seiten .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: var(--r-pille);
	background: var(--flaeche);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	transition: background-color .2s var(--weich);
}
.seiten a.page-numbers:hover { background: var(--flaeche-hover); }
.seiten .page-numbers.current { background: var(--weiss); border-color: var(--tinte); }
.seiten .page-numbers.dots { background: none; min-width: 0; padding: 0 4px; }
.seiten .prev, .seiten .next { padding: 0 20px; }

/* Regale je Thema: am Desktop fünf nebeneinander, darunter seitlich wischen */
.regal + .regal { margin-top: 56px; }
.regal__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 16px; }
.regal__kopf > :first-child { flex: none; }
.regal__liste { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.regal__liste .beitrag .rubrik { display: none; }
.regal__liste .beitrag h3 { margin-top: 10px; font-size: 16px; line-height: 22px; }
@media (max-width: 1128px) {
	.regal__liste { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	.regal__liste .beitrag { scroll-snap-align: start; }
}

/* Werkzeug-Platten (Buena): eckig, Titel oben, Erklärung unten, Rot nur auf einer Platte */
.platten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.platte {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	min-height: 280px;
	padding: 24px;
	background: var(--flaeche);
	color: var(--tinte);
	text-decoration: none;
	transition: background-color .2s var(--weich);
}
.platte:hover { background: var(--flaeche-hover); }
.platte__oben { display: flex; flex-direction: column; gap: 10px; }
.platte__titel { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.019em; text-wrap: balance; hyphens: manual; }
.platte__marke { order: -1; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); }
.platte__text { font-size: 15px; line-height: 22px; color: var(--grau); }
.platte__text::after { content: "\00a0→"; color: var(--tinte); }
.platte--rot { background: var(--rot); color: var(--weiss); }
.platte--rot:hover { background: var(--rot-tief); }
.platte--rot .platte__text, .platte--rot .platte__marke, .platte--rot .platte__text::after { color: rgba(255, 255, 255, .9); }
.platte--mini { min-height: 0; height: 100%; gap: 16px; padding: 20px; }
.platte--mini .platte__titel { display: block; font-size: 18px; }
.platte--mini .platte__text { font-size: 14px; line-height: 20px; }
.platten--drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1128px) { .platten, .platten--drei { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 743px) { .platten, .platten--drei { grid-template-columns: minmax(0, 1fr); gap: 12px; } .platte { min-height: 200px; } }

/* Für wen: vier linierte Spalten */
.zielgruppen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.zielgruppe { padding-top: 16px; border-top: 1px solid var(--tinte); }
.zielgruppe h3 { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -.01em; }
.zielgruppe p { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--grau); }
.zielgruppe ul { margin-top: 16px; }
.zielgruppe li a { display: block; padding: 8px 0; border-top: 1px solid var(--linie); font-size: 15px; text-decoration: none; }
.zielgruppe li a::after { content: "\00a0→"; color: var(--grau); }
.zielgruppe li a:hover { color: var(--rot); }
@media (max-width: 1128px) { .zielgruppen { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 743px) { .zielgruppen { grid-template-columns: minmax(0, 1fr); } }

/* Fragen-Band (Airbnb-Abschluss), Antworten in voller Breite statt schmaler Spalte */
.fragen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 64px; }
@media (max-width: 1128px) { .fragen { grid-template-columns: minmax(0, 1fr); } }

/* Aufklappbare Fragen: Band der Startseite, FAQ in Beiträgen, Rubriken und Seiten (auch Block „Details“) */
:is(.fragen__liste, .prosa) :is(.faq__eintrag, .wp-block-details) { border-bottom: 1px solid var(--linie); }
:is(.fragen__liste, .prosa) :is(.faq__eintrag, .wp-block-details) > summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 20px 0;
	font-size: 21px;
	line-height: 30px;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}
:is(.fragen__liste, .prosa) :is(.faq__eintrag, .wp-block-details) > summary::-webkit-details-marker { display: none; }
:is(.fragen__liste, .prosa) :is(.faq__eintrag, .wp-block-details) > summary:hover { color: var(--rot); }
:is(.fragen__liste, .prosa) .faq__eintrag > summary .ikon { width: 16px; height: 16px; transition: transform .2s var(--weich); }
:is(.fragen__liste, .prosa) .faq__eintrag[open] > summary .ikon { transform: rotate(180deg); }
:is(.fragen__liste, .prosa) .wp-block-details > summary::after {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	margin: -5px 4px 0 0;
	border-right: 1.7px solid currentColor;
	border-bottom: 1.7px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s var(--weich);
}
:is(.fragen__liste, .prosa) .wp-block-details[open] > summary::after { transform: rotate(-135deg); margin-top: 5px; }
:is(.fragen__liste, .prosa) .faq__antwort, :is(.fragen__liste, .prosa) .wp-block-details[open] { padding-bottom: 24px; }
:is(.fragen__liste, .prosa) .faq__antwort > * + *, :is(.fragen__liste, .prosa) .wp-block-details > * + * { margin-top: 12px; }
:is(.fragen__liste, .prosa) .wp-block-details > summary + * { margin-top: 0; }
.fragen__liste :is(.faq__antwort, .wp-block-details > :not(summary)) { font-size: 17px; line-height: 27px; color: var(--grau); }
.prosa :is(.faq__eintrag, .wp-block-details) + :is(.faq__eintrag, .wp-block-details) { margin-top: 0; }
.prosa .faq > * + * { margin-top: 1.1em; }
.prosa .faq > h2 + :is(.faq__eintrag, .wp-block-details), .prosa h2 + .wp-block-details { margin-top: 16px; }
@media (max-width: 743px) { :is(.fragen__liste, .prosa) :is(.faq__eintrag, .wp-block-details) > summary { font-size: 18px; line-height: 26px; } }

/* ---------- Partner (Widgets aus dem bisherigen Theme) ---------- */
.partner { display: grid; gap: 24px; padding-bottom: 72px; }
.partner__titel { margin-bottom: 12px; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--grau); }
.partner img { max-width: 100%; height: auto; }

/* ---------- Fuß (hell, keine dunkle Fläche) ---------- */
.fuss { padding: 64px 0 32px; border-top: 1px solid var(--linie); }
.fuss__raster { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 40px 24px; }
.fuss__marke img { height: 40px; width: auto; }
.fuss__marke p { margin-top: 16px; max-width: 34ch; font-size: 15px; line-height: 22px; color: var(--grau); }
.fuss h2 { margin-bottom: 12px; font-size: 14px; line-height: 18px; font-weight: 600; }
.fuss li a { display: inline-block; padding: 4px 0; font-size: 15px; line-height: 22px; color: var(--grau); text-decoration: none; }
.fuss li a:hover { color: var(--tinte); text-decoration: underline; text-underline-offset: 3px; }
.fuss__unten { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--linie-fein); font-size: 14px; color: var(--grau); }
.fuss__recht, .fuss__menue { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.fuss__recht a, .fuss__unten .fuss__menue a { padding: 0; font-size: 14px; text-decoration: none; }
.fuss__recht a:hover { color: var(--tinte); text-decoration: underline; }
@media (max-width: 1128px) { .fuss__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 743px) { .fuss__raster { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Beitrag ---------- */
.pfad { padding-top: 24px; font-size: 14px; color: var(--grau); }
.pfad a { text-decoration: none; }
.pfad a:hover { color: var(--tinte); text-decoration: underline; }
.pfad__trenner { margin: 0 6px; }
.artikel-kopf { padding: 32px 0 40px; }
.artikel-kopf h1 { margin: 14px 0 0; font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.artikel-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--linie); font-size: 15px; color: var(--grau); }
.artikel-meta b { font-weight: 500; color: var(--tinte); }
.artikel-bild { margin-bottom: 48px; }
@media (max-width: 743px) { .artikel-kopf h1 { font-size: 34px; line-height: 38px; } .artikel-bild { margin-bottom: 32px; } }

/* Inhaltsverzeichnis: Kasten über dem Text, nicht mitlaufend, immer eingeklappt (auch am Desktop).
 * Standard „zu“ steht im CSS, das Skript schaltet nur die Klasse um. */
.inhalt { margin-bottom: 48px; padding: 0 24px; background: var(--band); }
.inhalt__knopf { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 0; border: 0; background: none; font-size: 17px; font-weight: 600; text-align: left; }
.inhalt__knopf span { font-weight: 400; color: var(--grau); }
.inhalt__knopf i { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; background: var(--weiss); font-style: normal; font-size: 20px; line-height: 1; }
.inhalt__knopf i::before { content: "+"; }
.inhalt.ist-auf .inhalt__knopf i::before { content: "–"; }
.inhalt ol { display: none; counter-reset: k; padding-bottom: 18px; }
.inhalt.ist-auf ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.inhalt li { counter-increment: k; border-top: 1px solid var(--linie); }
.inhalt a { display: grid; grid-template-columns: 32px 1fr; padding: 10px 0; font-size: 15px; line-height: 1.35; text-decoration: none; }
.inhalt a::before { content: counter(k, decimal-leading-zero); font-size: 13px; color: var(--grau); font-variant-numeric: tabular-nums; padding-top: 1px; }
.inhalt a:hover { color: var(--rot); }
@media (max-width: 743px) { .inhalt { padding: 0 16px; } .inhalt.ist-auf ol { grid-template-columns: minmax(0, 1fr); } }

/* Plugin-Verzeichnisse im Text (das Theme hat ein eigenes) */
#ez-toc-container, .ez-toc-v2_0, .ez-toc-container, .dailylead-toc, .lwptoc, .rank-math-toc { display: none !important; }

/* ---------- Fließtext (Beiträge, Seiten, Rubrik-Texte) in voller Breite ---------- */
.prosa { font-size: 19px; line-height: 1.7; overflow-wrap: break-word; }
.prosa::after { content: ""; display: table; clear: both; }
.prosa > * + *, .prosa .wp-block-column > * + *, .prosa li > * + *, .prosa blockquote > * + * { margin-top: 1.1em; }
.prosa > :first-child, .prosa .wp-block-column > :first-child { margin-top: 0; }
.prosa :is(h2, h3, h4):where(:not(.platte__titel, .rechner__name)) { font-weight: 600; text-wrap: balance; scroll-margin-top: 24px; }
.prosa h2:where(:not(.rechner__name)) { margin-top: 2em; font-size: 32px; line-height: 38px; letter-spacing: -.025em; }
.prosa h3:where(:not(.platte__titel, .rechner__name)) { margin-top: 1.6em; font-size: 24px; line-height: 31px; letter-spacing: -.015em; }
.prosa h4 { margin-top: 1.4em; font-size: 20px; line-height: 28px; }
.prosa :is(h2, h3, h4):where(:not(.platte__titel, .rechner__name)) + * { margin-top: .6em; }
.prosa a:where(:not(.knopf, .platte, .pfeil-link, .beitrag, .thema, .rubrik, .wp-block-button__link)) { text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prosa a:where(:not(.knopf, .platte, .pfeil-link, .beitrag, .thema, .rubrik, .wp-block-button__link)):hover { color: var(--rot); }
.prosa :is(strong, b) { font-weight: 600; }
.prosa :is(ul, ol):where(:not([class]), .wp-block-list) { padding-left: 1.4em; }
.prosa ul:where(:not([class]), .wp-block-list) { list-style: disc; }
.prosa ol:where(:not([class]), .wp-block-list) { list-style: decimal; }
.prosa :is(ul, ol):where(:not([class]), .wp-block-list) > li + li { margin-top: .45em; }
.prosa :is(ul, ol):where(:not([class]), .wp-block-list) > li::marker { color: var(--rot); }
.prosa :is(ul, ol):where(:not([class]), .wp-block-list) :is(ul, ol) { margin-top: .45em; }
.prosa blockquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--rot); font-size: 21px; line-height: 1.55; }
.prosa blockquote cite { display: block; font-size: 15px; font-style: normal; color: var(--grau); }
.prosa figure { margin-inline: 0; margin-bottom: 0; }
.prosa img { border-radius: var(--r-foto); }
.prosa figcaption, .prosa .wp-element-caption, .prosa .wp-caption-text { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--grau); }
.prosa .wp-caption { max-width: 100%; }
.prosa :is(.aligncenter, .has-text-align-center) { text-align: center; }
.prosa .aligncenter { margin-inline: auto; }
.prosa img.aligncenter { display: block; }
.prosa .has-text-align-right { text-align: right; }
.prosa .alignleft { float: left; max-width: 50%; margin: .3em 32px 16px 0; }
.prosa .alignright { float: right; max-width: 50%; margin: .3em 0 16px 32px; }
@media (max-width: 743px) { .prosa :is(.alignleft, .alignright) { float: none; max-width: 100%; margin: 1.1em 0 0; } }
.prosa :is(iframe, video, embed, object) { max-width: 100%; }
.prosa hr, .prosa .wp-block-separator { height: 0; border: 0; border-top: 1px solid var(--linie); margin-block: 2em; opacity: 1; }
.prosa code { padding: 2px 6px; border-radius: 4px; background: var(--flaeche); font-size: .88em; }
.prosa .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.prosa .wp-block-columns { gap: 24px 40px; margin-bottom: 0; }
.prosa .rechner { margin-block: 48px; }
.prosa .platten { margin-block: 32px; }
@media (max-width: 743px) { .prosa { font-size: 18px; } .prosa h2:where(:not(.rechner__name)) { font-size: 26px; line-height: 31px; } .prosa h3:where(:not(.platte__titel, .rechner__name)) { font-size: 21px; line-height: 27px; } }

/* Rechner-Bereich über dem Text eines Beitrags (z. B. /kaufnebenkosten-rechner/) */
.werkzeug { margin-bottom: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--linie); }
.werkzeug > .rechner:first-child { margin-top: 0; }
@media (max-width: 743px) { .werkzeug { padding-bottom: 40px; } }

/* Tabellen im Text: waagerecht wischbar */
.tabelle-huelle, .prosa .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prosa .tabelle-huelle { margin-block: 32px; }
.prosa table:where(:not(.tabelle)) { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prosa table:where(:not(.tabelle)) :is(th, td) { padding: 12px 16px 12px 0; border: 0; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.prosa table:where(:not(.tabelle)) :is(th, thead td) { font-weight: 600; border-bottom-color: var(--tinte); }
.prosa table:where(:not(.tabelle)) :is(th, td):last-child { padding-right: 0; }
.prosa .wp-block-table thead { border-bottom: 0; }
.prosa .wp-block-table tfoot { border-top: 0; }

/* Startseite: „Über DIR.de“ (Spalten-Blöcke aus dem Inhalt der Startseite) */
.prosa--start { font-size: 18px; line-height: 29px; }
.prosa--start .wp-block-columns.ueber { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 64px; margin: 0; }
.prosa--start .ueber > .wp-block-column:first-child h2 { margin-top: 14px; font-size: 44px; line-height: 48px; letter-spacing: -.03em; }
.prosa--start .ueber__lead { margin-top: 20px; font-size: 19px; line-height: 29px; }
.prosa--start .ueber h3 { margin-top: 1.6em; font-size: 22px; line-height: 28px; }
.prosa--start .wp-block-columns.ueber__themen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 1.6em 0 0; padding-top: 24px; border-top: 1px solid var(--linie); }
.prosa--start .ueber__themen .wp-block-column > h3 { margin-top: 28px; font-size: 20px; line-height: 26px; }
.prosa--start .ueber__themen .wp-block-column > h3:first-child { margin-top: 0; }
.prosa--start .ueber__themen .wp-block-column > p { margin-top: 8px; font-size: 16px; line-height: 26px; color: var(--grau); }
@media (max-width: 1128px) { .prosa--start .wp-block-columns.ueber { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 743px) {
	.prosa--start .ueber > .wp-block-column:first-child h2 { font-size: 32px; line-height: 36px; }
	.prosa--start .wp-block-columns.ueber__themen { grid-template-columns: minmax(0, 1fr); }
	.prosa--start .ueber__themen .wp-block-column + .wp-block-column { margin-top: 28px; }
}

/* Rechner-Seite: „So rechnet der Rechner“ (Spalten-Block mit der Klasse „erklaer“) */
.prosa .wp-block-columns.erklaer > .wp-block-column { padding-top: 16px; border-top: 1px solid var(--tinte); }
.prosa .erklaer h3 { margin-top: 0; font-size: 20px; line-height: 26px; }
.prosa .erklaer p { font-size: 16px; line-height: 25px; color: var(--grau); }
.prosa .erklaer h3 + p { margin-top: 8px; }

/* ---------- Kopf von Rubriken, Archiven, Suche, 404 ---------- */
.rubrik-kopf { padding: 32px 0 56px; }
.rubrik-kopf .rubrik { margin-bottom: 14px; }
.rubrik-kopf__text { margin-top: 20px; font-size: 19px; line-height: 30px; color: var(--grau); }
.rubrik-kopf__text > * + * { margin-top: 12px; }
.rubrik-kopf__text a { color: var(--tinte); text-decoration-color: var(--rot); text-underline-offset: 3px; }
.rubrik-kopf__text :is(h2, h3) { font-size: 22px; line-height: 28px; font-weight: 600; color: var(--tinte); }
.rubrik-kopf__suche { margin-top: 28px; max-width: 720px; }
.rubrik-kopf--404 { padding: 72px 0 64px; }
.liste-rubriken { display: flex; flex-wrap: wrap; gap: 14px 32px; font-size: 20px; }
.unterzeile + .liste-rubriken { margin-top: 24px; }
@media (max-width: 743px) { .rubrik-kopf { padding-bottom: 40px; } .rubrik-kopf__text { font-size: 17px; line-height: 27px; } }

/* ---------- Seiten (Rechner, Impressum …) ---------- */
.seiten-kopf { padding: 32px 0 48px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; }
.seiten-kopf .rubrik + h1 { margin-top: 14px; }
.seiten-kopf--schlicht { display: block; }
@media (max-width: 1128px) { .seiten-kopf { grid-template-columns: minmax(0, 1fr); } }
.rechner--gross { padding: 40px; }
.rechner--gross .rechner__raster { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.rechner--gross .ergebnis { background: var(--weiss); padding: 32px; align-self: start; }
@media (max-width: 1128px) { .rechner--gross .rechner__raster { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 743px) { .rechner--gross { padding: 20px; } .rechner--gross .ergebnis { padding: 20px; } }

.tabelle { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.tabelle th { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--tinte); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); text-align: left; }
.tabelle td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--linie); font-variant-numeric: tabular-nums; vertical-align: middle; }
.tabelle td:first-child { font-weight: 500; }
.tabelle .zahl { text-align: right; white-space: nowrap; }
.tabelle tr[data-k] { cursor: pointer; }
.tabelle tr[data-k]:hover td { background: var(--band); }
.tabelle tr.ist-gewaehlt td { background: var(--band); font-weight: 600; }
.tabelle tr.ist-gewaehlt td:first-child { box-shadow: inset 3px 0 0 var(--rot); padding-left: 12px; }
.tabelle__balken { display: block; height: 8px; min-width: 4px; border-radius: 0 4px 4px 0; background: var(--rot); }
.tabelle__spur { width: 34%; }
@media (max-width: 743px) {
	.tabelle__spur { display: none; }
	.tabelle { font-size: 15px; }
	.tabelle th, .tabelle td { padding-right: 10px; }
	.tabelle th:last-child, .tabelle td:last-child { padding-right: 0; }
	.tabelle th.zahl { white-space: normal; }
	.tabelle th { letter-spacing: .04em; }
}

/* ---------- Bausteine aus dem bisherigen Theme (Flatsome-Kürzel im Text) ---------- */
.dir-fs-zeile { display: flex; flex-wrap: wrap; gap: 24px 40px; }
.dir-fs-spalte { flex: 1 1 280px; min-width: 0; }
.dir-fs-spalte > * + * { margin-top: 1.1em; }
.dir-fs-knopf { margin-block: 24px; }
.dir-fs-linie { height: 0; border: 0; border-top: 1px solid var(--linie); margin-block: 2em; }
.dir-fs-bild img { border-radius: var(--r-foto); }

/* Quadratmeter-Rechner aus dem Bestand (eigenes Markup im Beitrag): an das Theme angeglichen –
 * keine Verläufe, keine Leuchtschatten, kein schwarzes Abzeichen, eckige Flächen wie die übrigen Rechner. */
[id^="premium-calc-"] { font-family: var(--schrift) !important; color: var(--tinte) !important; border-radius: 0 !important; background: var(--band) !important; }
[id^="premium-calc-"] :is(.calc-hero, .calc-card) { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: var(--weiss) !important; }
[id^="premium-calc-"] :is(.calc-hero, .calc-result-main, .calc-card)::before,
[id^="premium-calc-"] :is(.calc-hero, .calc-result-main, .calc-card)::after { display: none !important; }
[id^="premium-calc-"] .calc-title { font-weight: 600 !important; letter-spacing: -.035em !important; }
[id^="premium-calc-"] .calc-sub { color: var(--grau) !important; }
[id^="premium-calc-"] .calc-kicker { background: var(--weiss) !important; border-color: var(--linie) !important; color: var(--rot) !important; font-weight: 600 !important; }
[id^="premium-calc-"] .calc-dot { box-shadow: none !important; }
[id^="premium-calc-"] .calc-badge { background: var(--flaeche) !important; color: var(--tinte) !important; font-weight: 600 !important; }
[id^="premium-calc-"] :is(input, select) { border-color: var(--linie) !important; border-radius: var(--r-feld) !important; box-shadow: none !important; font-family: inherit !important; }
[id^="premium-calc-"] :is(input, select):focus { border-color: var(--tinte) !important; box-shadow: 0 0 0 1px var(--tinte) !important; }
[id^="premium-calc-"] .calc-btn { background: var(--rot) !important; border-radius: var(--r-pille) !important; box-shadow: none !important; font-weight: 600 !important; transform: none !important; }
[id^="premium-calc-"] .calc-btn:hover { background: var(--rot-tief) !important; }
[id^="premium-calc-"] .calc-result-main { background: var(--rot) !important; border-radius: 0 !important; box-shadow: none !important; }
[id^="premium-calc-"] .calc-progress span { background: var(--rot) !important; }
[id^="premium-calc-"] details { border-radius: 0 !important; box-shadow: none !important; }
[id^="premium-calc-"] :is(.calc-stat, .calc-mini, .calc-info, .calc-note, .calc-hint) { box-shadow: none !important; }

/* ---------- Druck (z. B. „Ergebnis drucken“) ---------- */
@media print {
	.kopf, .fuss, .partner, .sprung, .inhalt, .pfad, .tipp, .seiten, .rechner__fuss, .ergebnis__aktionen, .schalter,
	input[type="range"], .karte, .karte__legende, .regal, .platten, .beitraege, .aufmacher, .themen, .abschnitt--oben { display: none !important; }
	body { font-size: 11pt; }
	.huelle { max-width: none; padding: 0; }
	.prosa { font-size: 11pt; }
	.rechner { padding: 0; background: none; }
	.rechner--gross .ergebnis { padding: 0; }
	.foto { max-height: 7cm; }
	a { text-decoration: none; }
	.abschnitt, .abschnitt--band { padding: 0 0 1cm; background: none; }
	details:not([open]) > :not(summary) { display: block; }
}
