/*
Theme Name: merkst.de
Theme URI: https://merkst.de/
Author: Stephan Merk
Author URI: https://stephan-merk.de/
Description: Eigenes Theme für merkst.de – Technik und mehr. Schlank, barrierefrei, Hell- und Dunkelmodus mit Schalter, alle Schriften lokal.
Version: 1.1.2
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: merkst
*/

/* ==========================================================================
   1. Schrift Source Sans 3 (lokal, SIL Open Font License), auch für Überschriften
   ========================================================================== */
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-display: swap;
	font-weight: 200 900;
	src: url(assets/fonts/source-sans-3-latin-wght-normal.woff2) format("woff2-variations");
	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;
}
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-display: swap;
	font-weight: 200 900;
	src: url(assets/fonts/source-sans-3-latin-ext-wght-normal.woff2) format("woff2-variations");
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Source Sans 3";
	font-style: italic;
	font-display: swap;
	font-weight: 200 900;
	src: url(assets/fonts/source-sans-3-latin-wght-italic.woff2) format("woff2-variations");
	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;
}
@font-face {
	font-family: "Source Sans 3";
	font-style: italic;
	font-display: swap;
	font-weight: 200 900;
	src: url(assets/fonts/source-sans-3-latin-ext-wght-italic.woff2) format("woff2-variations");
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   2. Farben – hell ist Standard, dunkel nach System oder Schalter
   Farben aus dem Logo: Nachtblau #101a30, Blau #2563eb, Grau #7c8799, Gelb #f4a900
   ========================================================================== */
:root {
	--nachtblau: #101a30;
	--nachtblau-tief: #0a1222;
	--blau: #2563eb;
	--gelb: #f4a900;

	--grund: #ffffff;
	--flaeche: #f2f5fa;
	--linie: #dce2ec;
	--text: #1a2233;
	--text-leise: #4f596b;
	--link: #1d4ed8;
	--link-hover: #0b2257;
	--fokus: #0b2257;
	--knopf: #1d4ed8;
	--knopf-text: #ffffff;

	--kopf: var(--nachtblau);
	--kopf-leiste: #17233d;
	--kopf-text: #ffffff;
	--kopf-leise: #b9c3d6;
	--kopf-hover: #2563eb;
	--kopf-fokus: var(--gelb);

	/* Oberste Zeile mit Logo: hell weiß wie bei AMAZONA, dunkel nachtblau */
	--kopfzeile: #ffffff;
	--kopfzeile-text: #101a30;
	--kopfzeile-leise: #4f596b;
	--kopfzeile-rand: rgba(16, 26, 48, .35);
	--kopfzeile-fokus: #0b2257;

	--schrift: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--schrift-titel: var(--schrift);
	--breite: 1240px;
	--textbreite: 780px;
	--radius: 8px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-farbe="hell"]) {
		--grund: #101a30;
		--flaeche: #18243f;
		--linie: #2c3a5a;
		--text: #e9edf5;
		--text-leise: #b3bccd;
		--link: #8db6ff;
		--link-hover: #d6e4ff;
		--fokus: var(--gelb);
		--knopf: #2563eb;
		--knopf-text: #ffffff;
		--kopf: var(--nachtblau-tief);
		--kopf-leiste: #131e36;
		--kopfzeile: var(--nachtblau-tief);
		--kopfzeile-text: #ffffff;
		--kopfzeile-leise: #b9c3d6;
		--kopfzeile-rand: rgba(255, 255, 255, .35);
		--kopfzeile-fokus: var(--gelb);
		color-scheme: dark;
	}
}
:root[data-farbe="dunkel"] {
	--grund: #101a30;
	--flaeche: #18243f;
	--linie: #2c3a5a;
	--text: #e9edf5;
	--text-leise: #b3bccd;
	--link: #8db6ff;
	--link-hover: #d6e4ff;
	--fokus: var(--gelb);
	--knopf: #2563eb;
	--knopf-text: #ffffff;
	--kopf: var(--nachtblau-tief);
	--kopf-leiste: #131e36;
	--kopfzeile: var(--nachtblau-tief);
	--kopfzeile-text: #ffffff;
	--kopfzeile-leise: #b9c3d6;
	--kopfzeile-rand: rgba(255, 255, 255, .35);
	--kopfzeile-fokus: var(--gelb);
	color-scheme: dark;
}

/* ==========================================================================
   3. Grundlagen
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 1rem;
}

body {
	margin: 0;
	background: var(--grund);
	color: var(--text);
	font-family: var(--schrift);
	font-size: 1.0625rem; /* 17 px */
	line-height: 1.65;
	overflow-wrap: break-word;
}
@media (min-width: 800px) {
	body { font-size: 1.125rem; line-height: 1.6; } /* 18 px */
}

img, video, iframe, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--link); text-underline-offset: .15em; text-decoration-thickness: from-font; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--schrift-titel);
	font-weight: 700;
	line-height: 1.25;
	color: var(--text);
	margin: 1.6em 0 .5em;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
@media (min-width: 800px) {
	h1 { font-size: 2.4rem; }
	h2 { font-size: 1.75rem; }
	h3 { font-size: 1.375rem; }
}

p, ul, ol, dl, figure, table, blockquote, pre { margin: 0 0 1.2em; }

hr { border: 0; border-top: 1px solid var(--linie); margin: 2em 0; }

:focus-visible {
	outline: 3px solid var(--fokus);
	outline-offset: 2px;
	border-radius: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.icon { width: 1.25em; height: 1.25em; vertical-align: middle; flex: none; }

button { font: inherit; color: inherit; }

/* Sprunglinks: unsichtbar, bis sie den Tastaturfokus bekommen */
.sprunglinks .sprunglink {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 1000;
	padding: .75rem 1rem;
	background: var(--gelb);
	color: #101a30;
	font-weight: 700;
	border: 0;
	border-radius: var(--radius);
	text-decoration: none;
	cursor: pointer;
}
.sprunglinks .sprunglink:focus-visible { top: 1rem; outline: 3px solid #101a30; outline-offset: 2px; }
/* Werbefrei-Schalter: bewusst nie sichtbar, auch nicht bei Fokus oder Mausberührung.
   Screenreader finden ihn trotzdem (zweiter Tab-Stopp). Wunsch Stephan, 24.11.2026. */
.sprunglinks .werbefrei-schalter,
.sprunglinks .werbefrei-schalter:focus,
.sprunglinks .werbefrei-schalter:focus-visible,
.sprunglinks .werbefrei-schalter:hover {
	position: absolute !important;
	top: auto !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	outline: none !important;
}

.wf-an { display: none; }
.merkst-werbefrei .wf-an { display: inline; }
.merkst-werbefrei .wf-aus { display: none; }

/* ==========================================================================
   4. Kopfzeile
   ========================================================================== */
.kopf {
	background: var(--kopfzeile);
	color: var(--kopfzeile-text);
}
.kopf-innen :focus-visible { outline-color: var(--kopfzeile-fokus); }
.kopf-navigation { color: var(--kopf-text); }
.kopf-navigation :focus-visible { outline-color: var(--kopf-fokus); }

.kopf-innen {
	max-width: var(--breite);
	margin: 0 auto;
	padding: 1rem 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}
.logo { margin: 0; line-height: 0; }
.logo a { display: inline-block; }
.logo img { display: block; width: auto; height: 40px; }
@media (min-width: 800px) { .logo img { height: 64px; } }

.claim {
	margin: 0;
	font-family: var(--schrift-titel);
	color: var(--kopfzeile-leise);
	font-size: 1.15rem;
	display: none;
}
@media (min-width: 640px) { .claim { display: block; } }

.kopf-werkzeuge { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex: none; }
.logo { min-width: 0; }
.logo img { max-width: 100%; }

.farbschalter, .menueknopf {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	min-height: 44px;
	min-width: 44px;
	justify-content: center;
	padding: .4rem .7rem;
	background: transparent;
	color: var(--kopfzeile-text);
	border: 1px solid var(--kopfzeile-rand);
	border-radius: var(--radius);
	cursor: pointer;
}
.farbschalter:hover, .menueknopf:hover { background: rgba(127, 140, 160, .15); }
.farbschalter .farbschalter-hell { display: none; }
.farbschalter[aria-pressed="true"] .farbschalter-hell { display: inline; }
.farbschalter[aria-pressed="true"] .farbschalter-dunkel { display: none; }

.menueknopf-zu { display: none; }
.menue-offen .menueknopf-zu { display: inline; }
.menue-offen .menueknopf-auf { display: none; }

/* Navigationsleiste */
.kopf-navigation { background: var(--kopf-leiste); border-top: 1px solid rgba(255, 255, 255, .08); }
.kopf-navigation-innen {
	max-width: var(--breite);
	margin: 0 auto;
	padding: 0 1rem;
}
.hauptmenue .menue, .servicemenue .menue, .social-links { list-style: none; margin: 0; padding: 0; }

.hauptmenue a {
	display: block;
	color: var(--kopf-text);
	text-decoration: none;
	font-weight: 600;
	padding: .8rem .9rem;
	line-height: 1.3;
}
.hauptmenue a:hover,
.hauptmenue .current-menu-item > a,
.hauptmenue .current-menu-ancestor > a,
.hauptmenue .current-post-ancestor > a {
	background: var(--kopf-hover);
	color: #fff;
}
.hauptmenue .current-menu-item > a { box-shadow: inset 0 -3px 0 var(--gelb); }

.untermenue-knopf {
	background: transparent;
	border: 0;
	color: var(--kopf-text);
	cursor: pointer;
	padding: .5rem;
	min-width: 44px;
	min-height: 44px;
}
.untermenue-knopf[aria-expanded="true"] .icon { transform: rotate(180deg); }
.hauptmenue .sub-menu { display: none; list-style: none; margin: 0; padding: 0; background: var(--kopf); }
.hauptmenue .untermenue-offen > .sub-menu { display: block; }

.kopf-suche .suchformular { display: flex; }
.kopf-suche .suchfeld {
	flex: 1;
	min-width: 0;
	border: 1px solid rgba(255, 255, 255, .35);
	background: rgba(255, 255, 255, .08);
	color: #fff;
	border-radius: var(--radius) 0 0 var(--radius);
	padding: .45rem .7rem;
	font: inherit;
	font-size: 1rem;
}
.kopf-suche .suchfeld::placeholder { color: var(--kopf-leise); opacity: 1; }
.kopf-suche .suchknopf {
	border: 1px solid rgba(255, 255, 255, .35);
	border-left: 0;
	background: var(--blau);
	color: #fff;
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: .3rem .7rem;
	cursor: pointer;
	min-width: 44px;
}

.social-links { display: flex; gap: .25rem; }
.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	color: inherit;
	border-radius: var(--radius);
}
.social-links a:hover { background: rgba(127, 140, 160, .18); }
.kopf-social .social-links a { color: var(--kopfzeile-text); }
.social-links .icon { width: 20px; height: 20px; }

/* Schmal: Menü aufklappbar */
@media (max-width: 999px) {
	.kopf-navigation { display: none; }
	.menue-offen .kopf-navigation { display: block; }
	.kopf-navigation-innen { padding: .5rem 1rem 1rem; }
	.hauptmenue .menue > li { border-bottom: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; align-items: center; }
	.hauptmenue .menue > li > a { flex: 1; }
	.hauptmenue .sub-menu { flex-basis: 100%; }
	.hauptmenue .sub-menu a { padding-left: 2rem; }
	.kopf-suche { margin: 1rem 0 .5rem; }
}
/* Breit: Social-Links oben rechts, Menü und Suche in der Leiste darunter.
   Reihenfolge im Quelltext = Reihenfolge auf dem Bildschirm. */
.kopf-social { display: none; }
@media (min-width: 1000px) {
	.kopf-social { display: block; margin-left: auto; }
	.kopf-social + .kopf-werkzeuge { margin-left: 0; }
	.menueknopf { display: none; }
	.kopf-navigation-innen { display: flex; align-items: center; gap: 1.5rem; }
	.hauptmenue { flex: 1; }
	.hauptmenue .menue { display: flex; flex-wrap: wrap; margin-left: -.9rem; }
	.hauptmenue .menue > li { position: relative; display: flex; align-items: center; }
	.hauptmenue .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 14rem;
		z-index: 50;
		box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
	}
	.kopf-suche { width: 16rem; flex: none; }
}
@media (min-width: 1000px) and (max-width: 1279px) {
	.kopf-suche { width: 10rem; }
	.hauptmenue a { padding: .8rem .5rem; }
	.hauptmenue .menue { margin-left: -.5rem; }
}
@media (min-width: 1000px) and (max-width: 1099px) {
	.kopf-suche { width: 8.5rem; }
	.hauptmenue a { padding: .8rem .45rem; font-size: 1rem; }
	.kopf-navigation-innen { gap: 1rem; }
	.hauptmenue .menue { margin-left: -.45rem; }
	.claim { display: none; }
}
/* Ohne JavaScript: Menü immer offen */
.no-js .kopf-navigation { display: block; }
.no-js .menueknopf, .no-js .farbschalter, .no-js .untermenue-knopf { display: none; }
.no-js .hauptmenue .sub-menu { display: block; position: static; box-shadow: none; }

/* ==========================================================================
   5. Seitenaufbau
   ========================================================================== */
.seite {
	max-width: var(--breite);
	margin: 0 auto;
	padding: 1rem 1rem 3rem;
}
.spalten { display: block; }
.inhalt { min-width: 0; }
.inhalt:focus { outline: none; }

@media (min-width: 1000px) {
	.mit-seitenleiste .spalten {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 3rem;
		align-items: start;
	}
}

/* Pfad */
.pfad { font-size: .9375rem; color: var(--text-leise); margin: .25rem 0 1.25rem; }
.pfad ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.pfad li:not(:last-child)::after { content: "›"; margin-left: .35rem; color: var(--text-leise); }
.pfad a { color: var(--text-leise); }
.pfad a:hover { color: var(--link-hover); }

/* ==========================================================================
   6. Listen (Startseite, Rubriken, Suche)
   ========================================================================== */
.listenkopf { margin: 0 0 1.5rem; }
.listentitel { margin-top: 0; }
.listenbeschreibung { color: var(--text-leise); }
.listenkopf .suchformular { max-width: 32rem; }

.liste { display: grid; gap: 0; }
.eintrag {
	position: relative;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--linie);
}
.eintrag:first-child { padding-top: .5rem; }
.eintrag-bild { margin: 0 0 1rem; border-radius: var(--radius); overflow: hidden; background: var(--flaeche); aspect-ratio: 3 / 2; }
.eintrag-bild img { display: block; width: 100%; height: 100%; object-fit: contain; } /* nichts abschneiden, auch Logos nicht */
.eintrag-titel { margin: .15rem 0 .35rem; font-size: 1.35rem; }
.eintrag-titel a { color: var(--text); text-decoration: none; }
.eintrag-titel a::after { content: ""; position: absolute; inset: 0; } /* ganze Fläche klickbar */
.eintrag:hover .eintrag-titel a { text-decoration: underline; color: var(--link-hover); }
@supports selector(:has(*)) {
	.eintrag-titel a:focus-visible { outline: none; }
	.eintrag:has(:focus-visible) { outline: 3px solid var(--fokus); outline-offset: 4px; border-radius: var(--radius); }
}
.eintrag-auszug p { margin: 0; color: var(--text); }
.eintrag .datum { margin: 0 0 .4rem; }

.eintrag.has-post-thumbnail {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}
.eintrag.has-post-thumbnail .eintrag-bild { margin: .3rem 0 0; }
@media (max-width: 639px) {
	.eintrag-titel { font-size: 1.15rem; }
}
@media (min-width: 640px) {
	.eintrag.has-post-thumbnail {
		display: grid;
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 1.5rem;
		align-items: start;
	}
	.eintrag-bild { margin: 0; }
}
@media (min-width: 1000px) {
	.eintrag.has-post-thumbnail { grid-template-columns: 280px minmax(0, 1fr); }
	.eintrag-titel { font-size: 1.5rem; }
}

/* Aufmacher: neuester Artikel groß oben */
.eintrag.aufmacher,
.eintrag.aufmacher.has-post-thumbnail {
	display: block;
	padding: 0 0 2rem;
	margin-bottom: .5rem;
	border-bottom: 2px solid var(--blau);
}
.eintrag.aufmacher .eintrag-bild { margin: 0 0 1.25rem; aspect-ratio: auto; background: none; }
.eintrag.aufmacher .eintrag-bild img { height: auto; max-height: 540px; }
.eintrag.aufmacher .eintrag-titel { font-size: 1.6rem; line-height: 1.2; margin: .3rem 0 .5rem; }
.eintrag.aufmacher .eintrag-auszug p { font-size: 1.125rem; }
@media (min-width: 800px) {
	.eintrag.aufmacher .eintrag-titel { font-size: 2.25rem; }
	.eintrag.aufmacher .eintrag-auszug p { font-size: 1.25rem; }
}

.rubrik {
	margin: 0;
	font-family: var(--schrift-titel);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-leise);
}
.rubrik a { color: inherit; text-decoration: none; }
.rubrik a:hover { color: var(--link-hover); text-decoration: underline; }

.datum { color: var(--text-leise); font-size: .9375rem; }

/* Blättern */
.pagination { margin: 2rem 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 .8rem;
	border: 1px solid var(--linie);
	border-radius: var(--radius);
	text-decoration: none;
}
.pagination .page-numbers.current { background: var(--knopf); border-color: var(--knopf); color: var(--knopf-text); font-weight: 700; }
.pagination .page-numbers.dots { border: 0; }

/* ==========================================================================
   7. Beitrag und Seite
   ========================================================================== */
.artikelkopf, .artikeltext, .widgets-nach-inhalt, .weiterlesen, .kommentare, .beitragsbild {
	max-width: var(--textbreite);
	margin-left: auto;
	margin-right: auto;
}
.artikeltitel { margin: .25rem 0 .5rem; }
.artikelkopf .datum { margin: 0 0 1.25rem; }

.beitragsbild { margin-top: 0; margin-bottom: 1.75rem; }
.beitragsbild img { display: block; width: 100%; border-radius: var(--radius); }

.artikeltext > *:first-child { margin-top: 0; }
.artikeltext h2 { margin-top: 1.8em; }
.artikeltext img { border-radius: 4px; }
.artikeltext img.alignnone, .artikeltext .alignnone img { display: block; margin: 1.5em auto; width: auto; max-width: 100%; height: auto; }
.artikeltext img.alignnone.size-large, .artikeltext img.alignnone.size-full, .artikeltext .alignnone.size-large img, .artikeltext .alignnone.size-full img { width: 100%; }
.artikeltext .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.artikeltext .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.artikeltext .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.artikeltext::after { content: ""; display: table; clear: both; }

.wp-caption { max-width: 100%; }
.wp-caption img { display: block; }
.wp-caption-text, figcaption { font-size: .9375rem; color: var(--text-leise); margin-top: .4rem; }

blockquote {
	margin-left: 0;
	padding: .2rem 0 .2rem 1.25rem;
	border-left: 4px solid var(--blau);
	color: var(--text);
	font-style: italic;
}

table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th, td { border: 1px solid var(--linie); padding: .5rem .7rem; text-align: left; vertical-align: top; }
th { background: var(--flaeche); }
.tabelle { overflow-x: auto; margin: 0 0 1.2em; }
.tabelle table { margin: 0; }

pre, code, kbd { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; background: var(--flaeche); border-radius: 4px; }
code, kbd { padding: .1em .3em; }
pre { padding: 1rem; overflow-x: auto; }

.merkst-google-quelle { color: var(--text-leise); }
.merkst-yt-hinweis { font-size: .875rem; color: var(--text-leise); margin-top: .4rem; }

/* Inhaltsverzeichnis (Easy Table of Contents) */
.artikeltext #ez-toc-container {
	background: var(--flaeche) !important;
	border: 1px solid var(--linie) !important;
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	box-shadow: none;
	width: auto;
	display: block;
}
#ez-toc-container .ez-toc-title { color: var(--text) !important; font-family: var(--schrift-titel); font-weight: 600; }
#ez-toc-container a { color: var(--link) !important; }
#ez-toc-container a:hover { color: var(--link-hover) !important; }

/* Shariff */
.shariff { margin: 1.5rem 0; }

/* Podlove-Player und Abo-Knopf */
.podlove-web-player { margin: 1.5rem 0; }
/* WordPress-Wiedergabelisten ([playlist]) an Hell- und Dunkelmodus anpassen */
.artikeltext .wp-playlist { background: var(--flaeche); color: var(--text); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem; margin: 1.5rem 0; }
.artikeltext .wp-playlist .wp-playlist-current-item, .artikeltext .wp-playlist .wp-playlist-caption, .artikeltext .wp-playlist .wp-playlist-item-title, .artikeltext .wp-playlist .wp-playlist-item-meta, .artikeltext .wp-playlist .wp-playlist-item-length { color: var(--text); }
.artikeltext .wp-playlist .wp-playlist-item-artist, .artikeltext .wp-playlist .wp-playlist-item-album { color: var(--text-leise); }
.artikeltext .wp-playlist .wp-playlist-item { border-bottom-color: var(--linie); padding: .35em .5em; }
.artikeltext .wp-playlist .wp-playlist-item:hover { background: var(--grund); }
.artikeltext .wp-playlist .wp-playlist-playing { background: var(--grund); color: var(--text); font-weight: 600; }
.artikeltext .wp-playlist .wp-playlist-caption:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.episode_downloads { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1.5rem; }
.episode_downloads select { flex: 1 1 100%; }
.episode_downloads button { background: var(--knopf); color: var(--knopf-text); border: 0; border-radius: var(--radius); padding: .45em 1em; font: inherit; cursor: pointer; }
.episode_downloads button:hover { filter: brightness(1.1); }
.episode_downloads button:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

/* Weiterlesen */
.weiterlesen {
	display: grid;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--linie);
}
@media (min-width: 640px) { .weiterlesen { grid-template-columns: 1fr 1fr; } .weiterlesen-nach { text-align: right; grid-column: 2; } }
.weiterlesen p { margin: 0; }
.weiterlesen span { display: block; font-size: .875rem; color: var(--text-leise); text-transform: uppercase; letter-spacing: .05em; }
.weiterlesen a { font-weight: 600; }

/* Widgets unter dem Beitrag */
.widgets-nach-inhalt {
	margin-top: 2.5rem;
	padding: 1.25rem 1.5rem;
	background: var(--flaeche);
	border-radius: var(--radius);
	border-left: 4px solid var(--gelb);
}
.widgets-nach-inhalt .widget-title { margin-top: 0; font-size: 1.2rem; }
.widgets-nach-inhalt p:last-child { margin-bottom: 0; }

/* ==========================================================================
   8. Kommentare und Formulare
   ========================================================================== */
.kommentare { margin-top: 3rem; }
.kommentarliste, .kommentarliste .children { list-style: none; margin: 0; padding: 0; }
.kommentarliste .children { margin-left: 1.25rem; padding-left: 1rem; border-left: 2px solid var(--linie); }
.kommentar { padding: 1rem 0; border-bottom: 1px solid var(--linie); }
.kommentar-kopf { display: grid; grid-template-columns: 48px 1fr; column-gap: .8rem; align-items: center; }
.kommentar-kopf img { grid-row: span 2; border-radius: 50%; }
.kommentar-autor, .kommentar-datum { margin: 0; }
.kommentar-autor { font-weight: 700; }
.kommentar-schrieb { font-weight: 400; color: var(--text-leise); }
.kommentar-datum { font-size: .875rem; }
.kommentar-datum a { color: var(--text-leise); }
.kommentar-text { margin-top: .6rem; }
.kommentar-fuss { display: flex; gap: 1rem; font-size: .9375rem; }
.kommentar-wartet { font-style: italic; color: var(--text-leise); }

label { display: block; font-weight: 600; margin-bottom: .3rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="number"], textarea, select {
	width: 100%;
	max-width: 100%;
	padding: .6rem .75rem;
	font: inherit;
	color: var(--text);
	background: var(--grund);
	border: 1px solid var(--text-leise);
	border-radius: var(--radius);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--knopf); width: 1.2em; height: 1.2em; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

button, input[type="submit"], .wpcf7-submit, .wp-block-button__link {
	cursor: pointer;
}
input[type="submit"], .wpcf7-submit, .comment-form .submit, .suchformular .suchknopf {
	background: var(--knopf);
	color: var(--knopf-text);
	border: 0;
	border-radius: var(--radius);
	padding: .65rem 1.2rem;
	font: inherit;
	font-weight: 700;
	min-height: 44px;
}
input[type="submit"]:hover, .wpcf7-submit:hover { filter: brightness(1.1); }

.suchformular { display: flex; gap: 0; }
.suchformular .suchfeld { border-radius: var(--radius) 0 0 var(--radius); }
.suchformular .suchknopf { border-radius: 0 var(--radius) var(--radius) 0; padding: .4rem .8rem; }

.merkst-amazon-suche {
	padding: 1rem 1.25rem;
	background: var(--flaeche);
	border-radius: var(--radius);
}

/* ==========================================================================
   9. Seitenleiste
   ========================================================================== */
.seitenleiste {
	margin-top: 3rem;
	font-size: 1rem;
}
@media (min-width: 1000px) { .seitenleiste { margin-top: 0; } }
.seitenleiste .widget { margin: 0 0 2rem; }
.seitenleiste .widget-title {
	margin: 0 0 .75rem;
	font-size: .875rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--text-leise);
	padding-bottom: .4rem;
	border-bottom: 2px solid var(--blau);
}
.seitenleiste img { display: block; max-width: 100%; height: auto; }
/* Helle Partnerbanner (Klasse dunkel-dimmen) im Dunkelmodus leicht abdunkeln */
.seitenleiste img.dunkel-dimmen { transition: filter .2s; }
:root[data-farbe="dunkel"] .seitenleiste img.dunkel-dimmen { filter: brightness(.85); }
@media (prefers-color-scheme: dark) {
	:root:not([data-farbe="hell"]) .seitenleiste img.dunkel-dimmen { filter: brightness(.85); }
}
:root:root .seitenleiste a:hover img.dunkel-dimmen, :root:root .seitenleiste a:focus-visible img.dunkel-dimmen { filter: none; }
@media (prefers-reduced-motion: reduce) { .seitenleiste img.dunkel-dimmen { transition: none; } }
/* Überblenden beim Wechsel zwischen hell und dunkel (Klasse setzt merkst.js kurz) */
@media (prefers-reduced-motion: no-preference) {
	html.farbwechsel, html.farbwechsel *, html.farbwechsel *::before, html.farbwechsel *::after {
		transition: background-color .5s ease, color .5s ease, border-color .5s ease, outline-color .5s ease, fill .5s ease, stroke .5s ease, box-shadow .5s ease, filter .5s ease !important;
	}
}
/* PayPal-Knopf in der Seitenleiste, im PayPal-Gelb, passt in hell und dunkel */
.paypal-knopf { display: inline-flex; align-items: center; gap: .45em; padding: .55em 1.3em; border-radius: 999px; background: #ffc439; color: #0b1c3f; font-weight: 600; text-decoration: none; line-height: 1; transition: background-color .2s; }
.paypal-knopf:hover { background: #f2b52a; color: #0b1c3f; }
.paypal-knopf:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
.seitenleiste .paypal-knopf img, .paypal-knopf img { display: block; height: 1.25em; width: auto; }
.seitenleiste ul { list-style: none; margin: 0; padding: 0; }
.seitenleiste li { padding: .35rem 0; border-bottom: 1px solid var(--linie); }
.seitenleiste .suchformular .suchfeld, .seitenleiste .search-field { font-size: 1rem; }
.seitenleiste .merkst-amazon-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.seitenleiste .merkst-amazon-form .search-field { flex: 1 1 10rem; }
.merkst-amazon-hinweis { color: var(--text-leise); }

/* ==========================================================================
   10. Fußzeile
   ========================================================================== */
.fuss {
	background: var(--kopf);
	color: var(--kopf-leise);
	font-size: .9375rem;
}
.fuss :focus-visible { outline-color: var(--kopf-fokus); }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 2rem 1rem; }
.fuss a { color: #fff; }
.fuss-name { margin: 0 0 1rem; font-family: var(--schrift-titel); font-size: 1.2rem; font-weight: 600; color: #fff; }
.fuss-name a { text-decoration: none; }
.fuss-claim { color: var(--kopf-leise); font-weight: 400; font-size: 1rem; }
.servicemenue .menue { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-bottom: 1rem; }
.servicemenue a { display: inline-block; padding: .35rem 0; }
.fuss-text { margin: 1rem 0 0; }
.fuss .social-links { margin: 0 0 1rem -.5rem; }
.fuss .social-links a { color: #fff; }
.fuss-werbefrei { margin: 1rem 0 0; }
.textknopf { background: none; border: 0; padding: 0; color: #fff; text-decoration: underline; cursor: pointer; }

/* Nach oben */
.nach-oben {
	position: fixed;
	right: 1rem;
	bottom: 5.5rem; /* über einem flachen Ankerbanner */
	z-index: 40;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: var(--nachtblau);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.nach-oben[hidden] { display: none; }
.nach-oben:focus-visible { outline-color: var(--gelb); }

/* ==========================================================================
   11. Werbung
   ========================================================================== */
.google-auto-placed { margin: 1.5rem auto; clear: both; }
.merkst-werbefrei .adsbygoogle, .merkst-werbefrei .google-auto-placed { display: none !important; }

/* ==========================================================================
   12. Bewegung reduzieren, Druck
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.kopf .kopf-navigation, .kopf-werkzeuge, .seitenleiste, .fuss, .nach-oben, .sprunglinks, .shariff, .adsbygoogle, .google-auto-placed, .weiterlesen, .kommentare form { display: none !important; }
	:root { --grund: #fff; --text: #000; --link: #000; }
	.kopf { background: #fff; color: #000; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* Werbefrei-Knopf in der Fußzeile: immer unsichtbar, nur für Screenreader (Wunsch Stephan, 24.11.2026) */
.fuss-werbefrei {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
