/*
 * Spielplatztreff Blog-Anpassungen: Optik der neuen spielplatztreff.de (angularweb) über dem Extra-Theme.
 * Farbwerte 1:1 aus angularweb/src/styles/_theme.scss (hell) und _colors.scss (feste Farben).
 * Der Blog bleibt bewusst hell (Extra kennt keinen Dunkelmodus).
 */

@font-face {
	font-family: 'Nunito';
	font-style: normal;
	font-weight: 200 1000;
	font-display: swap;
	src: url('nunito-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
	--spt-bg: #fff6e5;
	--spt-surface: #fff;
	--spt-surface2: #f1f9f3;
	--spt-ink: #0f3d2e;
	--spt-muted: #565d57;
	--spt-line: #cfd7d0;
	--spt-primary: #15803d;
	--spt-primary-hover: #086d31;
	--spt-mint: #dcf2df;
	--spt-on-primary: #fff;
	--spt-header: #15803d;
	--spt-accent: #ffc61a;
	--spt-cta: #cc3a1a;
	--spt-cta-hover: #b0300f;
	--spt-footer: #07180e;
	--spt-footer-text: #8aa894;
	--spt-schrift: 'Nunito', system-ui, sans-serif;

	color-scheme: light;
}

/* Dunkel: Werte aus angularweb styles/_theme.scss (Mixin dunkel). Kopf, Fuß, Akzent und CTA bleiben wie dort gleich.
   data-theme setzt das Inline-Script im <head> (spt-blog.php) vor dem ersten Paint — gleiche Wahl wie die Hauptseite. */
:root[data-theme='dark'] {
	--spt-bg: #0b170e;
	--spt-surface: #152318;
	--spt-surface2: #163f21;
	--spt-ink: #e9f1ea;
	--spt-muted: #a9b5aa;
	--spt-line: #2d3c30;
	--spt-primary: #89cd98;
	--spt-primary-hover: #b6e3c0;
	--spt-on-primary: #013614;
	--spt-mint: #163f21;

	color-scheme: dark;
}

/* --- Extra-Kopf und -Fuß aus (ersetzt durch .spt-kopf / .spt-fuss) --- */

#top-header,
#main-header,
#footer,
.footer_above,
#back_to_top {
	display: none !important;
}

body.et_fixed_nav #page-container,
#page-container {
	padding-top: 0 !important;
}

/* --- Grundlagen --- */

body,
body.et_extra {
	background: var(--spt-bg) !important;
	color: var(--spt-ink);
	font-family: var(--spt-schrift);
	-webkit-font-smoothing: antialiased;
}

body #page-container,
body #page-container :is(h1, h2, h3, h4, h5, h6, p, li, input, button, select, textarea, .post-meta, .module-filter) {
	font-family: var(--spt-schrift);
}

body #page-container :is(h1, h2, h3, h4, h5, h6) {
	color: var(--spt-ink);
	font-weight: 800;
	letter-spacing: normal;
	text-transform: none;
}

#main-content {
	background: transparent !important;
}

#main-content > .container {
	width: auto;
	max-width: 1200px;
	padding: 24px 16px 48px;
}

.spt-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

.spt-unsichtbar {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.spt-label {
	color: var(--spt-primary);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* --- Kopfzeile (wie angularweb layout/header) --- */

.spt-kopf {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--spt-header);
	color: #fff;
	font-family: var(--spt-schrift);
}

body.admin-bar .spt-kopf {
	top: 32px;
}

.spt-kopfzeile {
	display: flex;
	align-items: center;
	gap: clamp(10px, 8.4vw - 77px, 20px);
	height: 60px;
	white-space: nowrap;
}

.spt-marke {
	flex: none;
	color: #fff;
	font-size: 21px;
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1;
	text-decoration: none;
}

.spt-marke:hover {
	color: #fff;
}

.spt-treff {
	color: var(--spt-accent);
}

.spt-suche {
	position: relative;
	flex: 1;
	min-width: 180px;
	max-width: 360px;
	margin: 0;
}

.spt-suche svg {
	position: absolute;
	top: 50%;
	left: 12px;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	fill: none;
	stroke: var(--spt-muted);
	stroke-width: 2.4;
	stroke-linecap: round;
}

body .spt-suche input,
body .spt-suche input::placeholder,
body #page-container :is(input, textarea)::placeholder {
	text-transform: none;
	letter-spacing: normal;
}

body .spt-suche input {
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 12px 0 36px;
	border: 0;
	border-radius: 10px;
	background: var(--spt-surface);
	color: var(--spt-ink);
	font-size: 14px;
	box-sizing: border-box;
}

.spt-hauptnav {
	display: flex;
	gap: clamp(12px, 8.4vw - 75px, 22px);
	font-size: 15px;
	font-weight: 700;
}

.spt-hauptnav a,
.spt-menue nav a {
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
	color: #fff;
	text-decoration: none;
}

.spt-hauptnav a:hover {
	color: var(--spt-mint);
}

.spt-hauptnav a.spt-aktiv {
	border-bottom-color: var(--spt-accent);
}

.spt-cta {
	margin-left: auto;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--spt-cta);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	/* Extra vererbt line-height 30.6px → Button 50 statt 40 px hoch wie auf der Hauptseite */
	line-height: normal;
	text-decoration: none;
}

.spt-cta:hover {
	background: var(--spt-cta-hover);
	color: #fff;
}

/* Burger-Menü ohne JavaScript (details/summary), nur unter 1040px */
.spt-menue {
	display: none;
	margin-left: auto;
}

.spt-menue summary {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	align-items: center;
	cursor: pointer;
	list-style: none;
}

.spt-menue summary::-webkit-details-marker {
	display: none;
}

.spt-menue summary i {
	display: block;
	width: 20px;
	height: 2px;
	background: #fff;
}

.spt-menue-inhalt {
	position: absolute;
	top: 60px;
	right: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 16px 16px;
	background: #035122;
	font-size: 17px;
	font-weight: 700;
	white-space: normal;
}

.spt-menue-inhalt nav {
	display: flex;
	flex-direction: column;
}

.spt-menue-inhalt nav a {
	padding: 12px 4px;
	border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.spt-menue-inhalt .spt-suche {
	max-width: none;
	margin-bottom: 4px;
}

.spt-menue-inhalt .spt-cta {
	margin: 12px 0 0;
	padding: 12px;
	text-align: center;
}

/* Hell/Dunkel-Schalter wie in angularweb (header.scss .theme-toggle): hell Mond, dunkel Sonne */
.spt-theme-schalter {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-left: auto;
	padding: 0;
	border: 1.5px solid rgb(255 255 255 / 50%);
	border-radius: 10px;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.spt-theme-schalter svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentcolor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.spt-theme-schalter + .spt-cta {
	margin-left: 10px;
}

.spt-icon-sonne,
:root[data-theme='dark'] .spt-icon-mond {
	display: none;
}

:root[data-theme='dark'] .spt-icon-sonne {
	display: block;
}

/* Dreifach-Wahl im Mobilmenü (Auto = Gerät folgen) */
.spt-menue-theme {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 4px;
	border-bottom: 1px solid rgb(255 255 255 / 12%);
	color: #fff;
}

.spt-menue-theme-titel {
	flex: 1;
}

.spt-menue-theme button {
	padding: 6px 12px;
	border: 1.5px solid rgb(255 255 255 / 40%);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 14px;
	line-height: normal;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.spt-menue-theme button.spt-aktiv {
	border-color: #fff;
	background: #fff;
	color: #035122;
}

@media (max-width: 1040px) {
	.spt-kopfzeile > .spt-suche,
	.spt-kopfzeile > .spt-hauptnav,
	.spt-kopfzeile > .spt-theme-schalter,
	.spt-kopfzeile > .spt-cta {
		display: none;
	}

	.spt-menue {
		display: block;
	}

	.spt-marke {
		font-size: clamp(16px, 5vw, 21px);
	}
}

/* --- Rubriken-Zeile (Extra-Hauptmenü) --- */

.spt-rubriken {
	border-bottom: 1px solid var(--spt-line);
	background: var(--spt-surface);
	font-family: var(--spt-schrift);
}

.spt-rubriken-liste {
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}

.spt-rubriken-liste li {
	flex: none;
	margin: 0;
	padding: 0;
}

.spt-rubriken-liste a {
	display: block;
	padding: 13px 0 11px;
	border-bottom: 2px solid transparent;
	color: var(--spt-muted);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.spt-rubriken-liste a:hover,
.spt-rubriken-liste .current-menu-item > a {
	color: var(--spt-ink);
	border-bottom-color: var(--spt-primary);
}

/* --- Intro auf der Blog-Startseite --- */

.spt-intro {
	padding: 32px 0 0;
	font-family: var(--spt-schrift);
}

body .spt-intro h1 {
	margin: 6px 0 8px;
	letter-spacing: normal;
	text-transform: none;
	padding: 0;
	color: var(--spt-ink);
	font-family: var(--spt-schrift);
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
}

.spt-intro p {
	max-width: 60ch;
	margin: 0;
	padding: 0;
	color: var(--spt-muted);
	font-size: 17px;
	line-height: 1.6;
}

/* --- Karten: Module, Widgets, Artikel --- */

body #page-container :is(.module, .et_pb_extra_column_sidebar .et_pb_widget, .post-nav, .related-posts, #comment-wrap) {
	border: 1px solid var(--spt-line);
	border-top-color: var(--spt-line) !important;
	border-radius: 16px;
	background: var(--spt-surface);
	box-shadow: none;
	overflow: hidden;
}

/* Bei Extra randlos, als Karte brauchen sie Innenabstand (sonst klebt der Text am Rand) */
body #page-container :is(.post-nav, #comment-wrap) {
	padding: 20px 24px;
}

body #page-container .post-nav .nav-links {
	display: flex;
	gap: 24px;
	justify-content: space-between;
}

body #page-container .post-nav .nav-link {
	float: none;
	width: auto;
	max-width: 50%;
}

body #page-container .post-nav .nav-link-next {
	margin-left: auto;
	text-align: right;
}

body #page-container .post-nav .button {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	margin-bottom: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--spt-mint);
	color: var(--spt-primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

body #page-container .post-nav .button::before {
	margin: 0;
}

body #page-container .post-nav .title {
	display: block;
	color: var(--spt-ink);
	font-weight: 700;
	line-height: 1.4;
}

body #page-container .post-nav a:hover .title {
	color: var(--spt-primary);
}

body #page-container #comment-wrap #reply-title {
	margin-top: 0;
}

body #page-container .module-head {
	border-bottom: 1px solid var(--spt-line);
}

body #page-container .module-head :is(h1, h2) {
	color: var(--spt-ink) !important;
	font-size: 1.15rem;
}

body #page-container .module-filter {
	color: var(--spt-muted);
	text-transform: none;
}

body #page-container :is(.post-meta, .post-meta a, .module-filter) {
	color: var(--spt-muted);
}

body #page-container .post-meta a:hover {
	color: var(--spt-primary);
}

body #page-container :is(.title a, .entry-title a, h2 a, h3 a) {
	color: var(--spt-ink);
}

body #page-container :is(.title a, .entry-title a, h2 a, h3 a):hover {
	color: var(--spt-primary);
}

/* Extra färbt Teaser-Titel inline in der Kategoriefarbe (lila, orange …) */
body #page-container a.et-accent-color {
	color: var(--spt-ink) !important;
}

body #page-container a.et-accent-color:hover {
	color: var(--spt-primary) !important;
}

body #page-container .excerpt p {
	color: var(--spt-muted);
	font-size: 16px;
	line-height: 1.6;
}

/* „Weiterlesen“ als Textlink wie „Zu den Ideen ›“ auf der Hauptseite statt grauem Button */
body #page-container .read-more-button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--spt-primary);
	font-family: var(--spt-schrift);
	font-size: 15px;
	font-weight: 700;
	text-transform: none;
}

/* Extra legt hier sein Icon-Font-Zeichen ab; Schrift mit überschreiben, sonst erscheint ein Icon statt › */
body #page-container .read-more-button::after {
	content: ' ›';
	font-family: var(--spt-schrift);
}

body #page-container .read-more-button:hover {
	background: none;
	color: var(--spt-primary-hover);
}

/* Widget-Überschriften wie die Overline-Labels der Hauptseite statt dunkelblauer Balken */
body #page-container .et_pb_extra_column_sidebar .widgettitle {
	padding: 14px 18px 10px;
	border-bottom: 1px solid var(--spt-line);
	background: transparent !important;
	color: var(--spt-primary);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body #page-container .et_pb_extra_column_sidebar :is(a, li) {
	color: var(--spt-ink);
}

body #page-container .et_pb_extra_column_sidebar a:hover {
	color: var(--spt-primary);
}

/* Slider-Titel liegen auf dunklem Bildverlauf */
body #page-container .featured-posts-slider-module :is(.entry-title a, .entry-title) {
	color: #fff;
}

body #page-container .featured-posts-slider-module :is(.post-meta, .post-meta a) {
	color: rgb(255 255 255 / 85%);
}

/* --- Artikelseite --- */

body #page-container .single-post-module .entry-title {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	line-height: 1.2;
}

body #page-container .single-post-module .post-content {
	color: var(--spt-ink);
	font-size: 1.125rem;
	line-height: 1.7;
}

body #page-container .single-post-module .post-content :is(p, li, blockquote, figcaption) {
	color: var(--spt-ink);
}

body #page-container .single-post-module .post-content h2 {
	margin-top: 1.6em;
	font-size: 1.5rem;
	line-height: 1.3;
}

body #page-container .single-post-module .post-content h3 {
	margin-top: 1.4em;
	font-size: 1.25rem;
	line-height: 1.35;
}

/* Links im Fließtext waren textfarben und nicht als Links erkennbar */
body #page-container .single-post-module .post-content a {
	color: var(--spt-primary);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

body #page-container .single-post-module .post-content a:hover {
	color: var(--spt-primary-hover);
}

body #page-container .single-post-module .post-content img {
	border-radius: 12px;
}

/* --- Formulare und Buttons (Suche, Newsletter, Kommentare) --- */

body #page-container :is(input[type='text'], input[type='email'], input[type='search'], input[type='url'], textarea) {
	border: 1px solid var(--spt-line);
	border-radius: 10px;
	background: var(--spt-surface2);
	color: var(--spt-ink);
}

body #page-container :is(input[type='submit'], button[type='submit'], .wp-block-search__button, .et_pb_button) {
	padding: 10px 16px;
	border: 0;
	border-radius: 10px;
	background: var(--spt-primary);
	color: var(--spt-on-primary);
	font-family: var(--spt-schrift);
	font-size: 15px;
	font-weight: 700;
	text-transform: none;
	cursor: pointer;
}

body #page-container :is(input[type='submit'], button[type='submit'], .wp-block-search__button, .et_pb_button):hover {
	background: var(--spt-primary-hover);
}

/* Mailchimp-Formular bringt eine Inline-Hintergrundfarbe mit (#9ce0b7: weiße Schrift kaum lesbar) */
body #page-container .mc4wp-form input[type='submit'] {
	background-color: var(--spt-primary) !important;
}

/* Schlagwörter als Chips wie auf der Hauptseite */
body #page-container :is(.tagcloud, .wp-block-tag-cloud) a {
	display: inline-block;
	margin: 0 6px 8px 0;
	padding: 6px 12px;
	border: 1px solid var(--spt-line);
	border-radius: 999px;
	background: var(--spt-surface);
	color: var(--spt-ink);
	font-size: 13px !important;
	font-weight: 700;
	text-transform: none;
}

body #page-container :is(.tagcloud, .wp-block-tag-cloud) a:hover {
	border-color: var(--spt-primary);
	color: var(--spt-primary);
}

/* --- Fußzeile (wie angularweb layout/footer) --- */

.spt-fuss {
	background: var(--spt-footer);
	color: var(--spt-footer-text);
	font-family: var(--spt-schrift);
	font-size: 14px;
}

.spt-fuss-oben {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 48px;
}

.spt-fuss .spt-marke {
	font-size: 20px;
}

.spt-claim {
	max-width: 30ch;
	margin: 14px 0 0;
	padding: 0;
	color: var(--spt-footer-text);
	line-height: 1.6;
}

.spt-spalte {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body .spt-spalte h2 {
	margin: 0 0 4px;
	padding: 0;
	color: #fff;
	font-family: var(--spt-schrift);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.spt-spalte a {
	width: fit-content;
	color: var(--spt-footer-text);
	text-decoration: none;
}

.spt-spalte a:hover {
	color: #fff;
}

.spt-fuss-unten {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 20px;
	padding-bottom: 24px;
	border-top: 1px solid rgb(255 255 255 / 8%);
	font-size: 13px;
}

.spt-herz {
	color: var(--spt-cta);
}

@media (max-width: 64rem) {
	.spt-fuss-oben {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 40rem) {
	.spt-fuss-oben {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-top: 40px;
		padding-bottom: 36px;
	}
}

/* --- Bewertung unter dem Artikel: Logo-Figur statt Stern --- */

/* Extra zeichnet <img src="star-full.svg">; padding-left schiebt das Bild aus der 30-px-Box, sichtbar bleibt der Hintergrund */
body #page-container .post-footer .rating-stars .rating-star {
	padding: 0 0 0 30px;
	overflow: hidden;
	/* logo-gruen.svg als unsichtbare Ebene vorladen, sonst bleibt der erste Hover kurz leer */
	background: url('logo-weiss.svg') center / 68% no-repeat, url('logo-gruen.svg') -99px -99px / 1px no-repeat, var(--spt-line);
}

body #page-container .post-footer .rating-stars .rating-star:is(.star-on, .star-half) {
	background: url('logo-gruen.svg') center / 68% no-repeat, var(--spt-accent);
}

/* --- App-Hinweis am Artikelende --- */

body #page-container .spt-app-hinweis {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin: 32px 0 8px;
	padding: 20px;
	border-radius: 16px;
	background: var(--spt-mint);
}

body #page-container .spt-app-hinweis .spt-app-icon {
	flex: 0 0 56px;
	height: 56px;
	border-radius: 13px;
	background: url('logo-gruen.svg') center / 72% no-repeat, var(--spt-accent);
}

body #page-container .spt-app-hinweis p {
	margin: 0 0 8px;
	padding: 0;
	color: var(--spt-ink);
	font-size: 16px;
	line-height: 1.5;
}

body #page-container .spt-app-hinweis .spt-app-titel {
	margin-bottom: 4px;
	font-size: 18px;
	font-weight: 800;
}

body #page-container .spt-app-hinweis .spt-app-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
}

body #page-container .spt-app-hinweis .spt-app-links a {
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--spt-primary);
	color: var(--spt-on-primary);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

body #page-container .spt-app-hinweis .spt-app-links a:hover {
	background: var(--spt-primary-hover);
}

/* --- Dunkel: Stellen, an denen Extra feste helle Farben setzt --- */

:root[data-theme='dark'] body #page-container :is(.module-head, .carousel-item, .et_extra_other_module, .author-box,
	.et_pb_extra_module article, .posts-blog-feed-module article, .tabbed-post-module, .comment-body,
	.et_pb_extra_column_sidebar article) {
	background-color: var(--spt-surface);
}

:root[data-theme='dark'] body #page-container :is(input:not([type='submit']), textarea, select) {
	border-color: var(--spt-line);
	background: var(--spt-surface2);
	color: var(--spt-ink);
}

:root[data-theme='dark'] body #page-container :is(input, textarea)::placeholder {
	color: var(--spt-muted);
}

:root[data-theme='dark'] body #page-container .tag-cloud-link {
	background: var(--spt-surface2);
	color: var(--spt-ink);
}

:root[data-theme='dark'] body #page-container :is(.pagination a, .pagination span, .pagination li, .share-title,
	.rate-title, #rate-title, .comment-reply-link, .post-meta, .post-meta a) {
	color: var(--spt-muted);
}

:root[data-theme='dark'] body #page-container .pagination .active,
:root[data-theme='dark'] body #page-container .pagination a:hover {
	color: var(--spt-ink);
}

/* --- Dunkel: Inhalte der Artikel (Farben im Editor gesetzt) --- */

/* Mintgrüner Block-Hintergrund (298× in Artikeln) → dunkles Mint wie die Hinweisflächen der Hauptseite */
:root[data-theme='dark'] body #page-container .has-light-green-cyan-background-color {
	background-color: var(--spt-mint) !important;
	color: var(--spt-ink);
}

/* Andere helle Editor-Hintergründe bleiben hell, behalten aber dunkle Schrift (sonst hell auf hell) */
:root[data-theme='dark'] body #page-container .post-content .has-background:not(.has-light-green-cyan-background-color),
:root[data-theme='dark'] body #page-container .post-content .has-background:not(.has-light-green-cyan-background-color) * {
	color: #0f3d2e;
}

/* Graue Kästen per Inline-Style (#f4f4f4) und schwarze Inline-Schrift */
:root[data-theme='dark'] body #page-container .post-content [style*='f4f4f4'] {
	background-color: var(--spt-surface2) !important;
	color: var(--spt-ink) !important;
}

:root[data-theme='dark'] body #page-container .post-content :is([style*='color: #000'], [style*='color:#000'],
	[style*='color: rgb(0, 0, 0)'], [style*='color: black']) {
	color: var(--spt-ink) !important;
}

:root[data-theme='dark'] body #page-container .post-content :is(table, th, td) {
	border-color: var(--spt-line);
}

/* Freigestellte PNGs (Logos, Grafiken mit dunkler Schrift) wären auf Dunkel unlesbar → heller Grund */
:root[data-theme='dark'] body #page-container .post-content img[src*='.png'] {
	border-radius: 8px;
	background: #fff;
}

:root[data-theme='dark'] body #page-container :is(.logged-in-as a, .comment-notes a, .must-log-in a,
	.akismet_comment_form_privacy_notice a) {
	color: var(--spt-primary);
}

/* Rote Inline-Hinweise (#ff0000, z. B. „Achtung: geschlossen“) auf Dunkel aufhellen */
:root[data-theme='dark'] body #page-container .post-content :is([style*='#ff0000'], [style*='#f00;'], [style*='rgb(255, 0, 0)']) {
	color: #ff8a80 !important;
}
