/*
Theme Name: Ollie Glass
Theme URI: https://elektroelch.de/
Author: Lutz
Author URI: https://elektroelch.de/
Description: Ollie Glass – eigenständiges Glassmorphism-Theme für elektro:elch, abgeleitet von Ollie (WordPress Theme von Mike McAlister). Wird nicht über WordPress.org aktualisiert.
Tags: blog, block-patterns, block-styles, full-site-editing, style-variations, template-editing, wide-blocks
Tested up to: 6.7.1
Requires PHP: 7.3
Version: 1.1.2
Update URI: https://elektroelch.de/ollie-glass
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ollie-glass

Ollie Glass, based on the Ollie WordPress Theme, (C) 2026 Mike McAlister.
Distributed under the terms of the GNU GPL.
*/

/* ==========================================================================
   Design-Tokens
   Markenfarben stehen als „elch-*“ in der theme.json-Palette
   (var(--wp--preset--color--elch-…)); hier nur die neutralen Töne.
   Transparente Varianten: color-mix(in srgb, var(--token) 40%, transparent).
   ========================================================================== */
:root {
	--elch-hi: #ffffff;              /* Licht: Glas, Kanten, Glanz */
	--elch-lo: #000000;              /* Tiefe: Schrift, dunkle Kanten */
	--elch-shade: rgb(25 35 80);     /* Schattenfarbe (bläulich) */
	--elch-shade-deep: rgb(20 30 80);
	--elch-edge-tint: rgb(160 170 210);
	--elch-silver: #cccccc;
	--elch-focus: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Dunkelmodus
   Echte Farben statt Filter. Die Werte entsprechen dem früheren
   invert(1) hue-rotate(180deg), damit der Look gleich bleibt.
   Das Lightdark-Plugin setzt nur noch data-lightdark am <html>.
   ========================================================================== */
html[data-lightdark="dark"] {
	filter: none !important;
	background-color: #000000;
	color-scheme: dark !important;

	--elch-hi: #000000;
	--elch-lo: #ffffff;
	--elch-shade: #d0daff;
	--elch-shade-deep: #d4deff;
	--elch-edge-tint: #49547c;
	--elch-silver: #323232;
	--elch-focus: #aa9bff;

	/* Elch-Palette */
	--wp--preset--color--elch-accent-ink: #bcadff;
	--wp--preset--color--elch-violet: #977cff;
	--wp--preset--color--elch-pink: #ff59ad;
	--wp--preset--color--elch-teal: #008172;
	--wp--preset--color--elch-sky: #2763b3;
	--wp--preset--color--elch-lilac: #835bd3;
	--wp--preset--color--elch-mint: #00634a;
	--wp--preset--color--elch-peach: #8c3828;
	--wp--preset--color--elch-page: #0b111d;
	--wp--preset--color--elch-surface: #06070d;
	--wp--preset--color--elch-night: #e1e8f7;

	/* Ollie-Palette */
	--wp--preset--color--base: #000000;
	--wp--preset--color--black: #ffffff;
	--wp--preset--color--border-dark: #aeaec0;
	--wp--preset--color--border-light: #1a1a27;
	--wp--preset--color--cyan-bluish-gray: #3e4b56;
	--wp--preset--color--light-green-cyan: #00512a;
	--wp--preset--color--luminous-vivid-amber: #884400;
	--wp--preset--color--luminous-vivid-orange: #fb6500;
	--wp--preset--color--main: #e0e0e8;
	--wp--preset--color--main-accent: #27273f;
	--wp--preset--color--pale-cyan-blue: #014470;
	--wp--preset--color--pale-pink: #aa415a;
	--wp--preset--color--primary: #aa9bff;
	--wp--preset--color--primary-accent: #16142c;
	--wp--preset--color--primary-alt: #3b255b;
	--wp--preset--color--primary-alt-accent: #c2bdf1;
	--wp--preset--color--secondary: #a7a7c6;
	--wp--preset--color--tertiary: #08070d;
	--wp--preset--color--vivid-cyan-blue: #109ded;
	--wp--preset--color--vivid-green-cyan: #009247;
	--wp--preset--color--vivid-purple: #c47aff;
	--wp--preset--color--vivid-red: #ff8c8c;
	--wp--preset--color--white: #000000;

	/* Kadence-Palette */
	--global-palette1: #4394e1;
	--global-palette2: #64a4e8;
	--global-palette3: #dae0ec;
	--global-palette4: #c0cadb;
	--global-palette5: #a2acbf;
	--global-palette6: #738298;
	--global-palette7: #0a0e13;
	--global-palette8: #030609;
	--global-palette9: #000000;
	--global-palette10: #bc5704;
	--global-palette11: #79c794;
	--global-palette12: #70b8ff;
	--global-palette13: #ffa286;
	--global-palette14: #fd6912;
	--global-palette15: #9a4a00;
}

html[data-lightdark="dark"] :is(img, video, iframe, canvas, [style*="background-image"]) {
	filter: none !important;
}

/* Umschalter des Lightdark-Plugins */
html[data-lightdark="dark"] .lightdark-toggle {
	background: #000000;
	color: #d8dee2;
	border-color: #393b3d;
	box-shadow: 0 2px 8px rgb(255 255 255 / .2);

	&:hover { background: #0f0f10; }
}

/* Umschalter: Mond im hellen, Sonne im dunklen Modus (zeigt jeweils den Modus, zu dem man wechselt) (reines CSS, das Plugin-Icon wird ausgeblendet) */
html .lightdark-toggle {
	--elch-toggle-sun: #ffb74d;
	--elch-toggle-moon: var(--wp--preset--color--primary);
	display: grid;
	place-items: center;
	padding: 0;
	border-radius: 50%;
	overflow: hidden;
	cursor: pointer;
}
html[data-lightdark="dark"] .lightdark-toggle { --elch-toggle-sun: #ffc266; }
html .lightdark-toggle > svg { display: none !important; }
html .lightdark-toggle::before,
html .lightdark-toggle::after {
	content: "";
	grid-area: 1 / 1;
	width: 22px;
	height: 22px;
	background: currentColor;
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
	transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), opacity .25s ease;
}
html .lightdark-toggle::before {
	background: var(--elch-toggle-moon);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.6 14.2A8.6 8.6 0 0 1 9.8 3.4a8.8 8.8 0 1 0 10.8 10.8z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.6 14.2A8.6 8.6 0 0 1 9.8 3.4a8.8 8.8 0 1 0 10.8 10.8z'/%3E%3C/svg%3E");
}
html .lightdark-toggle::after {
	background: var(--elch-toggle-sun);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4.6'/%3E%3Cpath d='M12 1.8v3M12 19.2v3M1.8 12h3M19.2 12h3M4.8 4.8l2.1 2.1M17.1 17.1l2.1 2.1M4.8 19.2l2.1-2.1M17.1 6.9l2.1-2.1' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4.6'/%3E%3Cpath d='M12 1.8v3M12 19.2v3M1.8 12h3M19.2 12h3M4.8 4.8l2.1 2.1M17.1 17.1l2.1 2.1M4.8 19.2l2.1-2.1M17.1 6.9l2.1-2.1' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	opacity: 0;
	transform: rotate(-70deg) scale(.4);
}
html[data-lightdark="dark"] .lightdark-toggle::before { opacity: 0; transform: rotate(70deg) scale(.4); }
html[data-lightdark="dark"] .lightdark-toggle::after { opacity: 1; transform: none; }
html .lightdark-toggle:hover::before { transform: rotate(25deg); }
@media (prefers-reduced-motion: reduce) {
	html .lightdark-toggle::before,
	html .lightdark-toggle::after { transition: none; }
}

/* Blöcke mit eigenem light-dark() (z. B. Erklärbox) folgen dem Umschalter, nicht dem System */
html:not([data-lightdark="dark"]) .erklaerbox { color-scheme: light; }
html[data-lightdark="dark"] .erklaerbox { color-scheme: dark; }


/* CSS Reset
---------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

b,
strong {
	font-weight: var(--wp--custom--font-weight--semi-bold);
}

ol,
ul {
	padding: 0;
}

ol:where(:not([class*="wp-block"])),
ol:where(.wp-block-list),
ul:where(:not([class*="wp-block"])),
ul:where(.wp-block-list) {
	padding-inline-start: var(--wp--preset--spacing--medium);
}

div[class*="wp-block-"] figcaption {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--x-small);
	margin-block-end: 0;
	margin-block-start: 20px;
	text-align: center;
}

img,
figure {
	max-inline-size: 100%;
	block-size: auto;
}

@media (prefers-color-scheme: dark) {
	img {
		filter: brightness(0.9) contrast(1.05);
	}
}

a {
	text-decoration-thickness: 0.1rem;
}

/* Standardize form styling
--------------------------------------------- */

input,
button,
textarea,
select {
	font: inherit;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
	appearance: none;
}

input:not([type="submit"]):not([type="radio"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wp-block-post-comments-form textarea {
	color: var(--wp--preset--color--main);
	border-radius: 5px;
	border: solid 1px color-mix(in srgb, var(--wp--preset--color--tertiary) 100%, var(--wp--preset--color--main) 20%);
	padding: .5em 1em;
	font-size: var(--wp--preset--font-size--small);
	background-color: var(--wp--preset--color--base);
	box-shadow:
		0 1px 2px color-mix(in srgb, var(--elch-lo) 2%, transparent),
		0 0.5px 1px color-mix(in srgb, var(--elch-lo) 4%, transparent);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline-color: var(--wp--preset--color--main);
	outline-offset: 1px;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

select {
	-webkit-appearance: none;
	appearance: none;
	background: var(--wp--preset--color--base) url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItY2hldnJvbi1kb3duIj48cG9seWxpbmUgcG9pbnRzPSI2IDkgMTIgMTUgMTggOSI+PC9wb2x5bGluZT48L3N2Zz4=) no-repeat;
	background-size: 16px;
	background-position: calc(100% - 12px) 50%;
	padding-inline-end: 2.2em;
}

label {
	width: 100%;
	display: block;
}

::placeholder {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.75;
}

/* Helper styles
---------------------------------------------------------------------------- */

a.more-link {
	display: block;
}

/* Inline code */
*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--tertiary);
	padding: 3px 5px;
	position: relative;
	border-radius: 3px;
}

.wp-block-categories {
	position: relative;
}

/* Remove margin on term description on archive pages */
.wp-block-term-description p:last-child {
	margin-block-end: 0;
}

/* Remove last separator on post list */
.remove-border-and-padding .wp-block-post-template li:last-child .wp-block-separator {
	display: none;
}

/* Hide post meta div if no tags assigned */
.single .wp-block-group:has(> .post-meta:empty) {
	display: none;
}

.wp-block-group:empty:has(+ .comment-respond) {
	display: none;
}

.row-logos > figure {
	flex-shrink: 1 !important;
}

/* Sticky header */

body:not(.wp-admin) header:has(>.is-position-sticky) {
	position: sticky;
	inset-block-start: calc(0px + var(--wp-admin--admin-bar--height, 0px));
	z-index: 100;
}

/* Account for admin bar on mobile */

@media (width <= 600px) {
	header:has(>.is-position-sticky) {
		inset-block-start: 0;
	}
}

/* Mobile helper classes */

@media (width <= 781px) {
	.ollie-hide-on-mobile {
		display: none;
	}

	.ollie-unstick-mobile {
		position: static;
	}

	header:has(>.ollie-unstick-mobile) {
		position: static;
	}
}

/* Table
--------------------------------------------- */

.wp-block-table table {
	background: var(--wp--preset--color--base);
	border-radius: 5px;
	border: solid 1px var(--wp--preset--color--border-light);
	font-size: var(--wp--preset--font-size--x-small);
}
.wp-block-table.is-style-stripes {
	border-block-end: none;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--wp--preset--color--tertiary);
}

.wp-block-table td,
.wp-block-table th,
.wp-block-table thead {
	border: none;
	border-block-end: solid 1px color-mix(in srgb, var(--wp--preset--color--border-light) 50%, var(--wp--preset--color--base) 5%);
}

.wp-block-table th,
.wp-block-table tfoot {
	text-align: start;
	background-color: color-mix(in srgb, var(--wp--preset--color--tertiary) 75%, var(--wp--preset--color--base) 5%);
}

.wp-block-table td,
.wp-block-table th {
	padding: .8em 1em;
}

.wp-block-table tfoot {
	border-block-start: solid 1px var(--wp--preset--color--border-light);
}

.wp-block-table tfoot td {
	border-block-end: none;
}

/* Table of Contents template
---------------------------------------------------------------------------- */

#ollie-toc {
	inset-block-start: var(--wp--preset--spacing--large);
	max-height: calc(100vh - var(--wp--preset--spacing--large) * 2);
	overflow-block: auto;
	overflow-inline: hidden;
}

#ollie-toc-content {
	:is(h2, h3, h4, [data-toc-include]) {
		scroll-margin-block-start: var(--wp--preset--spacing--large);
	}

	:is(p, li) {
		line-height: 1.35;
	}

	li {
		margin-block-end: 0.25em;
	}
}

/* Account for the logged-in admin bar so sticky positioning and anchor jumps aren't hidden behind it. */
body.admin-bar {
	#ollie-toc {
		inset-block-start: calc(var(--wp--preset--spacing--large) + 32px);
	}

	#ollie-toc-content :is(h2, h3, h4, [data-toc-include]) {
		scroll-margin-block-start: calc(var(--wp--preset--spacing--large) + 32px);
	}

	@media (width <= 782px) {
		#ollie-toc {
			inset-block-start: calc(var(--wp--preset--spacing--large) + 46px);
		}

		#ollie-toc-content :is(h2, h3, h4, [data-toc-include]) {
			scroll-margin-block-start: calc(var(--wp--preset--spacing--large) + 46px);
		}
	}
}

.ollie-toc-list {
	list-style: none;
	margin: 0;
	padding-inline-start: 0;

	ul {
		list-style: none;
		margin: 0;
		padding-inline-start: var(--wp--preset--spacing--small);
	}

	a {
		display: block;
		padding-block: 0.1em;
		line-height: 1.3;
		text-decoration: none;
		color: currentColor;
		border-inline-start: 2px solid transparent;
		padding-inline-start: 0.75em;

		&.is-active {
			text-shadow: 0 0 0.6px currentColor, 0 0 0.6px currentColor;
		}
	}
}

.ollie-toc-link-icon {
	display: inline-block;
	inline-size: 0.85em;
	block-size: 0.85em;
	margin-inline-start: 0.35em;
	vertical-align: baseline;
}

/*
 * A single sliding indicator that tracks the active link's position/height
 * (set inline by table-of-contents.js) instead of each link drawing its own
 * static border, so the highlight visibly glides between items.
 *
 * Deliberately physical (top/left/width), not logical inset/inline-size:
 * the script positions this via getBoundingClientRect(), which is always
 * viewport-physical, and the translate() it computes must stay in that same
 * physical coordinate space to line up correctly in RTL too.
 */
.ollie-toc-marker {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	width: 2px;
	background-color: currentColor;
	opacity: 0;
	pointer-events: none;

	@media (prefers-reduced-motion: no-preference) {
		transition: transform 0.25s ease, height 0.25s ease, opacity 0.15s ease;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html:has(#ollie-toc) {
		scroll-behavior: smooth;
	}
}

/* Reading progress bar
---------------------------------------------------------------------------- */

.ollie-toc-progress {
	/* Physical top/left to match .ollie-toc-marker's coordinate space (see above). */
	position: absolute;
	top: 0;
	left: 0;
	inline-size: 100%;
	block-size: 2px;
	background-color: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	opacity: 0.35;
	pointer-events: none;

	@media (prefers-reduced-motion: no-preference) {
		transition: transform 0.2s ease;
	}
}

/* Mobile collapsible drawer
---------------------------------------------------------------------------- */

.ollie-toc-toggle {
	display: none;
}

.ollie-toc-list-wrapper {
	display: grid;
	grid-template-rows: 1fr;
}

.ollie-toc-list-inner {
	overflow: hidden;
	min-block-size: 0;
}

@media (width <= 781px) {
	#ollie-toc > .wp-block-heading {
		display: none;
	}

	.ollie-toc-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--wp--preset--spacing--small);
		inline-size: 100%;
		margin: 0;
		padding: 0.5em 0;
		background: none;
		border: none;
		font-size: inherit;
		font-family: inherit;
		color: currentColor;
		text-align: start;
		cursor: pointer;

		&::after {
			content: "";
			flex-shrink: 0;
			inline-size: 0.5em;
			block-size: 0.5em;
			border-inline-end: 2px solid currentColor;
			border-block-end: 2px solid currentColor;
			transform: rotate(45deg);

			@media (prefers-reduced-motion: no-preference) {
				transition: transform 0.2s ease;
			}
		}

		&[aria-expanded="true"]::after {
			transform: rotate(-135deg);
		}
	}

	.ollie-toc-list-wrapper {
		grid-template-rows: 0fr;

		&.is-expanded {
			grid-template-rows: 1fr;
		}

		@media (prefers-reduced-motion: no-preference) {
			transition: grid-template-rows 0.25s ease;
		}
	}
}


/* === elektro:elch – Glassmorphism für Ollie Glass ===
   Helle Werte direkt, dunkle Werte unter html[data-lightdark='dark'] als echte Farben
   (siehe Abschnitt „Dunkelmodus“ oben). */
:root {
	--elch-glass: color-mix(in srgb, var(--elch-hi) 52%, transparent);
	--elch-glass-strong: color-mix(in srgb, var(--elch-hi) 72%, transparent);
	--elch-glass-border: color-mix(in srgb, var(--elch-hi) 70%, transparent);
	--elch-glass-shadow: 0 10px 40px color-mix(in srgb, var(--elch-shade-deep) 10%, transparent), inset 0 1px 0 color-mix(in srgb, var(--elch-hi) 60%, transparent);
	--elch-blur: blur(18px) saturate(160%);
	--elch-card-blur: blur(20px) saturate(150%);
	--elch-sheen: linear-gradient(135deg, color-mix(in srgb, var(--elch-hi) 55%, transparent) 0%, color-mix(in srgb, var(--elch-hi) 14%, transparent) 35%, transparent 70%);
	--elch-ease: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, background-color .3s ease;
	/* Natürliche Hover-Bewegung (Karten, Pillen, Pager): zügig hoch, weich zurück */
	--elch-lift-curve: cubic-bezier(.22, 1, .36, 1);
	--elch-lift-in: transform .4s var(--elch-lift-curve), box-shadow .4s var(--elch-lift-curve), background-color .3s ease;
	--elch-lift-out: transform .55s var(--elch-lift-curve), box-shadow .55s var(--elch-lift-curve), background-color .3s ease;
}

/* Modus-Werte: hell */
html {
	/* Ollies light-dark()-Palette bleibt auf hell; den Dunkelmodus liefern die Tokens oben. */
	color-scheme: light !important;
	overflow-x: clip;

	--elch-card-bg: color-mix(in srgb, var(--elch-hi) 56%, transparent);
	--elch-card-bg-hover: color-mix(in srgb, var(--elch-hi) 66%, transparent);
	--elch-edge: color-mix(in srgb, var(--elch-hi) 95%, transparent) color-mix(in srgb, var(--elch-hi) 55%, transparent) color-mix(in srgb, var(--elch-edge-tint) 35%, transparent) color-mix(in srgb, var(--elch-hi) 80%, transparent);
	--elch-inset: inset 0 1px 0 var(--elch-hi), inset 1px 0 0 color-mix(in srgb, var(--elch-hi) 60%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--elch-shade) 8%, transparent);
	--elch-card-shadow: 0 1px 2px color-mix(in srgb, var(--elch-shade) 8%, transparent), 0 4px 8px color-mix(in srgb, var(--elch-shade) 7%, transparent), 0 14px 28px -6px color-mix(in srgb, var(--elch-shade) 16%, transparent), 0 32px 60px -14px color-mix(in srgb, var(--elch-shade) 28%, transparent), var(--elch-inset);
	--elch-card-shadow-hover: 0 2px 4px color-mix(in srgb, var(--elch-shade) 8%, transparent), 0 8px 16px color-mix(in srgb, var(--elch-shade) 8%, transparent), 0 24px 40px -8px color-mix(in srgb, var(--elch-shade) 20%, transparent), 0 48px 80px -16px color-mix(in srgb, var(--elch-shade) 32%, transparent), var(--elch-inset);
	--elch-pager-color: var(--wp--preset--color--main);
	--elch-pager-bg-hover: color-mix(in srgb, var(--elch-hi) 66%, transparent);
	--elch-pager-shadow: 0 1px 2px color-mix(in srgb, var(--elch-shade) 8%, transparent), 0 4px 8px color-mix(in srgb, var(--elch-shade) 7%, transparent), 0 14px 28px -6px color-mix(in srgb, var(--elch-shade) 16%, transparent), 0 24px 44px -14px color-mix(in srgb, var(--elch-shade) 26%, transparent), var(--elch-inset);
	--elch-pager-shadow-hover: 0 2px 4px color-mix(in srgb, var(--elch-shade) 8%, transparent), 0 8px 16px color-mix(in srgb, var(--elch-shade) 8%, transparent), 0 22px 36px -8px color-mix(in srgb, var(--elch-shade) 20%, transparent), 0 36px 60px -16px color-mix(in srgb, var(--elch-shade) 30%, transparent), var(--elch-inset);
	--elch-header-bg: var(--wp--preset--color--elch-surface);
	--elch-header-edge: color-mix(in srgb, var(--elch-edge-tint) 40%, transparent);
	--elch-header-shadow: inset 0 1px 0 var(--elch-hi), inset 0 -1px 0 color-mix(in srgb, var(--elch-hi) 50%, transparent), 0 1px 2px color-mix(in srgb, var(--elch-shade) 8%, transparent), 0 8px 16px -4px color-mix(in srgb, var(--elch-shade) 12%, transparent), 0 20px 40px -12px color-mix(in srgb, var(--elch-shade) 20%, transparent);
	--elch-footer-bg: var(--wp--preset--color--elch-night);
	--elch-footer-edge: color-mix(in srgb, var(--elch-hi) 35%, transparent);
	--elch-footer-shadow: inset 0 1px 0 color-mix(in srgb, var(--elch-hi) 22%, transparent), inset 0 2px 0 color-mix(in srgb, var(--elch-hi) 6%, transparent), 0 -1px 2px color-mix(in srgb, var(--elch-shade) 8%, transparent), 0 -8px 16px -4px color-mix(in srgb, var(--elch-shade) 12%, transparent), 0 -20px 40px -12px color-mix(in srgb, var(--elch-shade) 22%, transparent);

	/* glattes Milchglas statt Noise */
	--elch-single-bg: color-mix(in srgb, var(--elch-hi) 74%, transparent);
	--elch-frost-fine: none;
	--elch-frost-coarse: none;
	--elch-card-image: linear-gradient(135deg, color-mix(in srgb, var(--elch-hi) 55%, transparent) 0%, color-mix(in srgb, var(--elch-hi) 12%, transparent) 35%, transparent 70%);
}

/* Modus-Werte: dunkel */
html[data-lightdark='dark'] {
	--elch-glass: rgb(0 0 0 / .34);
	--elch-glass-strong: rgb(0 0 0 / .55);
	--elch-card-bg-hover: rgb(0 0 0 / .38);
	--elch-card-shadow: 0 2px 4px rgb(0 0 0 / .35), 0 14px 28px -6px rgb(0 0 0 / .45), 0 32px 60px -14px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -1px 0 rgb(0 0 0 / .4);
	--elch-card-shadow-hover: 0 4px 8px rgb(0 0 0 / .4), 0 24px 40px -8px rgb(0 0 0 / .5), 0 48px 80px -16px rgb(0 0 0 / .7), inset 0 1px 0 rgb(255 255 255 / .28), inset 0 -1px 0 rgb(0 0 0 / .4);
	--elch-pager-color: #ffffff;
	--elch-pager-bg-hover: rgb(0 0 0 / .3);
	--elch-pager-shadow: 0 2px 4px rgb(0 0 0 / .35), 0 14px 28px -6px rgb(0 0 0 / .45), 0 24px 44px -14px rgb(0 0 0 / .55), inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -1px 0 rgb(0 0 0 / .4);
	--elch-pager-shadow-hover: 0 4px 8px rgb(0 0 0 / .4), 0 22px 36px -8px rgb(0 0 0 / .5), 0 36px 60px -16px rgb(0 0 0 / .65), inset 0 1px 0 rgb(255 255 255 / .28), inset 0 -1px 0 rgb(0 0 0 / .4);
	--elch-header-bg: #070a0f;
	--elch-header-edge: rgb(0 0 0 / .5);
	--elch-header-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 2px 4px rgb(0 0 0 / .35), 0 14px 28px -6px rgb(0 0 0 / .45), 0 24px 44px -14px rgb(0 0 0 / .55);
	--elch-footer-bg: #0e1018;
	--elch-footer-edge: rgb(255 255 255 / .28);
	--elch-footer-shadow: inset 0 1px 0 rgb(255 255 255 / .15), 0 -2px 4px rgb(0 0 0 / .35), 0 -14px 28px -6px rgb(0 0 0 / .45), 0 -24px 44px -14px rgb(0 0 0 / .55);

	/* glattes Milchglas statt Noise */
	--elch-single-bg: rgb(0 0 0 / .5);
	--elch-frost-fine: none;
	--elch-frost-coarse: none;
	--elch-card-bg: rgb(255 255 255 / .16);
	--elch-card-image: linear-gradient(135deg, rgb(255 255 255 / .2) 0%, rgb(255 255 255 / .07) 40%, transparent 75%);
	--elch-card-blur: blur(20px) saturate(1.4);
	--elch-edge: rgb(255 255 255 / .28) rgb(255 255 255 / .16) rgb(255 255 255 / .12) rgb(255 255 255 / .2);
}

/* Animierter Hintergrund: ineinanderfließende Farbflächen (Mesh), nahtlos gekachelt */
body {
	position: relative;
	isolation: isolate;
	overflow: clip;
	background-color: var(--wp--preset--color--elch-page);
	background-image: none !important;

	&::before,
	&::after {
		content: "";
		position: absolute;
		inset: 0 -15vw;
		z-index: -1;
		pointer-events: none;
		background-size: 100% 160vh;
		background-repeat: repeat-y;
		will-change: transform;
	}

	&::before {
		background-image:
			radial-gradient(ellipse 58vw 72vh at 30% 0%, color-mix(in srgb, var(--wp--preset--color--elch-sky) 85%, transparent), transparent 68%),
			radial-gradient(ellipse 58vw 72vh at 30% 100%, color-mix(in srgb, var(--wp--preset--color--elch-sky) 85%, transparent), transparent 68%),
			radial-gradient(ellipse 62vw 70vh at 68% 50%, color-mix(in srgb, var(--wp--preset--color--elch-mint) 75%, transparent), transparent 68%);
		animation: elch-drift-a 8s ease-in-out infinite alternate;
	}

	&::after {
		background-image:
			radial-gradient(ellipse 56vw 68vh at 72% 0%, color-mix(in srgb, var(--wp--preset--color--elch-lilac) 80%, transparent), transparent 68%),
			radial-gradient(ellipse 56vw 68vh at 72% 100%, color-mix(in srgb, var(--wp--preset--color--elch-lilac) 80%, transparent), transparent 68%),
			radial-gradient(ellipse 60vw 70vh at 32% 50%, color-mix(in srgb, var(--wp--preset--color--elch-peach) 75%, transparent), transparent 68%);
		animation: elch-drift-b 10s ease-in-out infinite alternate;
	}
}

@keyframes elch-drift-a {
	0% { transform: translate3d(-18vw, 0, 0); }
	50% { transform: translate3d(20vw, -14vh, 0); }
	100% { transform: translate3d(2vw, -26vh, 0); }
}

@keyframes elch-drift-b {
	0% { transform: translate3d(20vw, -22vh, 0); }
	50% { transform: translate3d(-20vw, -4vh, 0); }
	100% { transform: translate3d(-4vw, -28vh, 0); }
}

/* Hintergrund steht still: reduzierte Bewegung, Touch-Geräte, schmale Viewports (spart GPU und Akku) */
@media (prefers-reduced-motion: reduce), (prefers-reduced-data: reduce), (pointer: coarse), (width < 768px) {
	body::before,
	body::after {
		animation: none;
		will-change: auto;
	}
}

/* CPU: Pausiert zusaetzlich per JS (siehe functions.php), wenn der Tab im Hintergrund ist */
body.elch-bg-paused::before,
body.elch-bg-paused::after {
	animation-play-state: paused;
	will-change: auto;
}

/* Glas-Flächen */
main :is(.has-base-background-color, .has-tertiary-background-color) {
	background-color: var(--elch-glass) !important;
	backdrop-filter: var(--elch-blur);
	border: 1px solid var(--elch-glass-border);
	box-shadow: var(--elch-glass-shadow);
}

/* Kein Glas-auf-Glas: Container um die Blogkarten durchsichtig */
main :is(.has-base-background-color, .has-tertiary-background-color):has(.wp-block-post) {
	background-color: transparent !important;
	backdrop-filter: none !important;
	border-color: transparent !important;
	box-shadow: none !important;
}

/* Karten (Frosted Glass, erhaben) */
html :is(.wp-block-post > .has-background, body .elch-stage .elch-card, body .elch-stage .elch-hero) {
	position: relative;
	background-color: var(--elch-card-bg) !important;
	background-image: var(--elch-card-image) !important;
	background-size: 100% 100%, 220px 220px, 440px 440px !important;
	backdrop-filter: var(--elch-card-blur) !important;
	border: 1px solid !important;
	border-color: var(--elch-edge) !important;
	box-shadow: var(--elch-card-shadow) !important;
	transition: var(--elch-lift-out) !important;
}

html :is(.wp-block-post > .has-background, body .elch-stage .elch-card):hover {
	box-shadow: var(--elch-card-shadow-hover) !important;
	transition: var(--elch-lift-in) !important;

	@media (prefers-reduced-motion: no-preference) {
		transform: translateY(-6px);
	}
}

.wp-block-post > .has-background { border-radius: 20px !important; }

.wp-block-post .wp-block-post-featured-image,
.wp-block-post .wp-block-post-featured-image img {
	border-radius: 12px;
	overflow: hidden;
}

/* Einzelbeiträge und Seiten: Text auf einer Glasscheibe */
body.single main,
body.page:not(.home) main:not(:has(.elch-stage)) {
	background: var(--elch-glass-strong);
	backdrop-filter: var(--elch-blur);
	border: 1px solid var(--elch-glass-border);
	border-radius: 28px;
	box-shadow: var(--elch-glass-shadow);
	padding: clamp(1.25rem, 4vw, 3rem) !important;
	margin-block: clamp(1.5rem, 4vw, 3rem) !important;
	margin-inline: clamp(.5rem, 2vw, 1.5rem) !important;
}

/* Code-Blöcke und Zitate leicht verglast */
main :is(pre, .wp-block-code, .wp-block-quote) {
	background: color-mix(in srgb, var(--elch-hi) 50%, transparent);
	border: 1px solid var(--elch-glass-border);
	border-radius: 14px;
}

/* Buttons als Pillen */
.wp-block-button__link { border-radius: 999px !important; }

.is-style-outline > .wp-block-button__link {
	background: var(--elch-glass);
	backdrop-filter: blur(10px);
}

@media (prefers-reduced-motion: no-preference) {
	.wp-block-button__link {
		transition: transform .2s ease;

		&:hover { transform: translateY(-1px); }
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link { transition: none; }
}

/* Header und Footer: deckend, Kanten und Schatten wie die Karten */
.site-header,
.site-footer { position: relative; }
.site-header { z-index: 5; }
.site-footer { z-index: 4; }

.site-header > .has-background {
	background-color: var(--elch-header-bg) !important;
	border-style: solid !important;
	border-width: 0 0 1px !important;
	border-color: var(--elch-header-edge) !important;
	box-shadow: var(--elch-header-shadow) !important;
}

.site-footer > .has-background {
	background-color: var(--elch-footer-bg) !important;
	border-style: solid !important;
	border-width: 1px 0 0 !important;
	border-color: var(--elch-footer-edge) !important;
	box-shadow: var(--elch-footer-shadow) !important;
}

/* Dark Mode: reinweiße Schrift */
html[data-lightdark='dark'] {
	& body,
	& :is(h1, h2, h3, h4, h5, h6, p, li, td, th, dt, dd, figcaption, blockquote, label),
	& :is(h1, h2, h3, h4, h5, h6) a,
	& :is(.wp-block-post-title, .wp-block-post-excerpt, .wp-block-post-date, .wp-block-post-author, .wp-block-post-author-name, .wp-block-site-title, .wp-block-navigation),
	& :is(.wp-block-post-title, .wp-block-site-title, .wp-block-navigation) a,
	& .site-header a,
	& .site-footer :is(h1, h2, h3, h4, h5, h6, p, li, a, span) {
		color: #ffffff !important;
	}

	& .elch-stage {
		--g-text: #ffffff;
		--g-muted: #d9d9d9;
	}
}

/* Blättern-Links im Karten-Look */
html .wp-block-query-pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	position: relative;
	padding: .85em 1.6em !important;
	color: var(--elch-pager-color) !important;
	font-weight: 500;
	text-decoration: none !important;
	background-color: var(--elch-card-bg) !important;
	background-image: var(--elch-sheen), var(--elch-frost-fine), var(--elch-frost-coarse) !important;
	background-size: 100% 100%, 220px 220px, 440px 440px !important;
	backdrop-filter: var(--elch-card-blur);
	border: 1px solid;
	border-color: var(--elch-edge) !important;
	border-radius: 16px !important;
	box-shadow: var(--elch-pager-shadow) !important;
	transition: var(--elch-lift-out);

	&:hover {
		transition: var(--elch-lift-in);
		background-color: var(--elch-pager-bg-hover) !important;
		box-shadow: var(--elch-pager-shadow-hover) !important;

		@media (prefers-reduced-motion: no-preference) {
			transform: translateY(-4px);
		}
	}
}

/* Kategorien als Pillen */
.wp-block-post-terms.taxonomy-category {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	align-items: center;

	& .wp-block-post-terms__separator { display: none; }

	& a {
		display: inline-block;
		padding: .28em .9em;
		font-size: .82em;
		font-weight: 500;
		line-height: 1.4;
		color: var(--wp--preset--color--elch-accent-ink) !important;
		text-decoration: none !important;
		background: linear-gradient(180deg, color-mix(in srgb, var(--elch-hi) 70%, transparent), color-mix(in srgb, var(--elch-hi) 35%, transparent)), color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent);
		border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent);
		border-radius: 999px;
		box-shadow: inset 0 1px 0 color-mix(in srgb, var(--elch-hi) 90%, transparent), 0 1px 2px color-mix(in srgb, var(--elch-shade) 8%, transparent), 0 3px 8px -2px color-mix(in srgb, var(--wp--preset--color--primary) 20%, transparent);
		transition: var(--elch-lift-out);

		&:hover {
			transition: var(--elch-lift-in);
			background: linear-gradient(180deg, color-mix(in srgb, var(--elch-hi) 60%, transparent), color-mix(in srgb, var(--elch-hi) 25%, transparent)), color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
			box-shadow: inset 0 1px 0 color-mix(in srgb, var(--elch-hi) 90%, transparent), 0 2px 4px color-mix(in srgb, var(--elch-shade) 10%, transparent), 0 6px 14px -3px color-mix(in srgb, var(--wp--preset--color--primary) 30%, transparent);

			@media (prefers-reduced-motion: no-preference) {
				transform: translateY(-1px);
			}
		}
	}
}

/* Software-Seite: gleiche Breite wie die Blogseite */
.wp-block-post-content > .elch-stage,
body:has(.elch-stage) main .wp-block-post-title {
	max-width: var(--wp--style--global--wide-size, 1260px) !important;
}

.elch-stage.is-layout-constrained > :where(:not(.alignleft, .alignright, .alignfull)) {
	max-width: none !important;
}

/* Kadence Tabs an die Theme-Farben anpassen */
.kt-tabs-title-list .kt-title-item .kt-tab-title,
.kt-tabs-content-wrap {
	color: var(--wp--preset--color--contrast, inherit) !important;
	background-color: var(--wp--preset--color--base, transparent) !important;
	border-color: var(--wp--preset--color--contrast-3, var(--elch-silver)) !important;
}

.kt-tabs-title-list .kt-title-item.vt-tab-title-active .kt-tab-title,
.kt-tabs-title-list .kt-title-item .kt-tab-title:hover {
	color: var(--wp--preset--color--base, #fff) !important;
	background-color: var(--wp--preset--color--contrast, #000) !important;
}

/* Einzelbeiträge und Seiten: ruhiger Hintergrund, deckende Flächen */
body.single,
body.page:not(.home):not(:has(.elch-stage)) {
	&::before,
	&::after { animation: none; }

	& main {
		/* Glas wie die Karten, nur deckender (--elch-single-bg) */
		background-color: var(--elch-single-bg);
		background-image: var(--elch-card-image);
		backdrop-filter: var(--elch-card-blur);
		border-color: var(--elch-edge);
		box-shadow: var(--elch-card-shadow);
	}

	& .wp-block-post > .has-background {
		background-color: var(--elch-header-bg) !important;
		backdrop-filter: none !important;
	}
}

/* Ganze Karte klickbar: Der Titel-Link spannt per ::after über die Karte,
   die Kategorie-Pillen liegen darüber und verlinken weiter auf ihre Kategorie. */
html .wp-block-post > .has-background .wp-block-group {
	position: static;
}

html .wp-block-post > .has-background .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

html .wp-block-post > .has-background .wp-block-post-title a:focus-visible {
	outline: none;
}

html .wp-block-post > .has-background .wp-block-post-title a:focus-visible::after {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

html .wp-block-post > .has-background :is(.taxonomy-category, .taxonomy-post_tag) a {
	position: relative;
	z-index: 2;
}

/* Datum unten rechts in der Karte, eine Zeile unter den Kategorie-Pillen */
html .wp-block-post > .has-background .wp-block-group:has(> .wp-block-post-date) {
	margin-block-start: 0;
}

html .wp-block-post > .has-background .wp-block-post-date {
	position: absolute;
	right: var(--wp--preset--spacing--large);
	bottom: var(--wp--preset--spacing--large);
	height: 29px;
	display: flex;
	align-items: center;
	var(--elch-hi)-space: nowrap;
}

/* Unter den Pillen eine Zeile Platz für das Datum schaffen */
html .wp-block-post > .has-background > .wp-block-group:last-child {
	padding-block-end: calc(29px + .5rem);
}

/* Abstand der Karten nach oben = Abstand zwischen den Karten */
html main .wp-block-group:has(> .wp-block-post-template) {
	padding-top: var(--wp--preset--spacing--large) !important;
}

/* Header: schwebende Glas-Insel mit Kategorie-Pillen, Suche und leuchtender Unterkante */
html header.site-header {
	position: relative;
	z-index: 50;
	padding-top: 14px;
	padding-inline: var(--wp--style--root--padding-left, 1.5rem);
}

html header.site-header > .elch-header {
	position: relative;
	max-width: var(--wp--style--global--wide-size, 1260px);
	margin-inline: auto;
	padding: .85rem 1.5rem !important;
	border-radius: 22px;
	background-color: var(--elch-card-bg) !important;
	background-image: var(--elch-card-image) !important;
	background-size: 100% 100% !important;
	backdrop-filter: var(--elch-card-blur) !important;
	border: 1px solid !important;
	border-color: var(--elch-edge) !important;
	box-shadow: var(--elch-card-shadow) !important;
}

html header.site-header > .elch-header::after {
	content: "";
	position: absolute;
	left: 28px;
	right: 28px;
	bottom: -1px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--elch-violet) 20%, var(--wp--preset--color--elch-pink) 50%, var(--wp--preset--color--elch-teal) 80%, transparent);
	box-shadow: 0 0 12px 1px color-mix(in srgb, var(--wp--preset--color--elch-violet) 55%, transparent);
	opacity: .85;
	pointer-events: none;
}

html header.site-header .elch-header > .alignwide {
	max-width: none;
	align-items: center;
	padding-right: 52px; /* Platz für den Dunkelmodus-Umschalter */
}

html header.site-header .wp-block-site-title a {
	font-weight: 700;
	letter-spacing: -.01em;
	text-decoration: none;
}

html header.site-header .elch-header-nav {
	gap: .45rem;
	align-items: center;
}

html header.site-header .elch-header-nav .wp-block-navigation__container {
	gap: .45rem;
}

/* Pillen im selben Stil wie die Kategorie-Pillen der Karten */
html header.site-header .elch-header-nav a.wp-block-navigation-item__content,
html header.site-header .elch-header-nav .wp-block-search__button,
html header.site-header .elch-header-nav .wp-block-navigation__responsive-container-open,
html header.site-header .elch-header-nav .wp-block-search__input {
	display: inline-flex;
	align-items: center;
	padding: .38em 1em;
	font-size: .86rem;
	font-weight: 500;
	line-height: 1.4;
	background: linear-gradient(color-mix(in srgb, var(--elch-hi) 70%, transparent), color-mix(in srgb, var(--elch-hi) 35%, transparent)), color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent);
	border-radius: 999px;
	box-shadow: color-mix(in srgb, var(--elch-hi) 90%, transparent) 0 1px 0 inset, color-mix(in srgb, var(--elch-shade) 8%, transparent) 0 1px 2px, color-mix(in srgb, var(--wp--preset--color--primary) 20%, transparent) 0 3px 8px -2px;
	color: var(--wp--preset--color--elch-accent-ink) !important;
	text-decoration: none !important;
	transition: transform .2s, background-color .2s, box-shadow .2s;
}

html header.site-header .elch-header-nav .wp-block-search__button,
html header.site-header .elch-header-nav .wp-block-navigation__responsive-container-open {
	padding: .38em .6em;
	margin: 0;
	cursor: pointer;
}

html header.site-header .elch-header-nav .wp-block-search__button svg,
html header.site-header .elch-header-nav .wp-block-navigation__responsive-container-open svg {
	width: 1.25em;
	height: 1.25em;
	fill: currentColor;
}

html header.site-header .elch-header-nav .wp-block-search__inside-wrapper {
	gap: .45rem;
	padding: 0;
	border: 0;
	background: none;
}

html header.site-header .elch-header-nav .wp-block-search__input {
	width: 12rem;
	min-height: 0;
	outline-offset: 2px;
}

html header.site-header .elch-header-nav .wp-block-search__searchfield-hidden .wp-block-search__input {
	width: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
}

html header.site-header .elch-header-nav a.wp-block-navigation-item__content:hover,
html header.site-header .elch-header-nav .wp-block-search__button:hover,
html header.site-header .elch-header-nav .wp-block-navigation__responsive-container-open:hover {
	transform: translateY(-1px);
	background: linear-gradient(color-mix(in srgb, var(--elch-hi) 60%, transparent), color-mix(in srgb, var(--elch-hi) 25%, transparent)), color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
}

/* Hamburger nur auf schmalen Bildschirmen (wie im Core) */
@media (min-width: 600px) {
	html header.site-header .elch-header-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: none;
	}
}

/* Dunkelmodus-Umschalter rechts in den Header holen (scrollt mit dem Header weg) */
html .lightdark-toggle {
	position: absolute !important;
	top: 27px !important; /* relativ zum Seitenanfang, auf Höhe der Header-Mitte */
	bottom: auto !important;
	right: calc(max(var(--wp--style--root--padding-right, 1.5rem), (100vw - var(--wp--style--global--wide-size, 1260px)) / 2) + 1rem) !important;
	width: 40px !important;
	height: 40px !important;
	z-index: 60 !important;
}

/* Kommentarbereich: Glas-Karte wie die Einzelseite */
html body .wp-block-comments {
	background-color: var(--elch-single-bg) !important;
	background-image: var(--elch-card-image) !important;
	background-size: 100% 100% !important;
	backdrop-filter: var(--elch-card-blur) !important;
	border: 1px solid !important;
	border-color: var(--elch-edge) !important;
	border-radius: 28px;
	box-shadow: var(--elch-card-shadow) !important;
	margin-inline: clamp(0.5rem, 2vw, 1.5rem) !important;
	margin-block: 0 clamp(1.5rem, 4vw, 3rem) !important;
	padding-block: clamp(1.25rem, 4vw, 3rem) !important;
}

/* Farbakzent unter dem Kommentar-Titel (bzw. unter "Antworten", solange es keine Kommentare gibt) */
html body .wp-block-comments :is(.wp-block-comments-title, .comment-reply-title) {
	position: relative;
	padding-bottom: .5rem;
}

html body .wp-block-comments .wp-block-comments-title {
	font-size: clamp(1.4rem, 2.5vw, 1.9rem) !important;
	color: inherit !important;
}

html body .wp-block-comments :is(.wp-block-comments-title, .wp-block-comments:not(:has(.wp-block-comments-title)) .comment-reply-title)::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 4.5rem;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--wp--preset--color--elch-violet), var(--wp--preset--color--elch-pink), var(--wp--preset--color--elch-teal));
	box-shadow: 0 0 10px color-mix(in srgb, var(--wp--preset--color--elch-violet) 50%, transparent);
}

/* Einzelne Kommentare als helles Glas innerhalb der Karte */
html body .wp-block-comments .wp-block-comment-template .has-base-background-color {
	background: color-mix(in srgb, var(--elch-hi) 38%, transparent) !important;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 18%, transparent) !important;
	border-radius: 18px !important;
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--elch-hi) 50%, transparent), 0 4px 14px -6px color-mix(in srgb, var(--elch-shade) 18%, transparent);
}

/* Eingabefelder als Milchglas */
html body .wp-block-comments :is(textarea, input[type="text"], input[type="email"], input[type="url"]) {
	background: color-mix(in srgb, var(--elch-hi) 45%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent);
	border-radius: 16px;
	padding: .85rem 1rem;
	box-shadow: inset 0 1px 2px color-mix(in srgb, var(--elch-shade) 8%, transparent);
	color: inherit;
	transition: border-color .2s, box-shadow .2s;
}

html body .wp-block-comments :is(textarea, input[type="text"], input[type="email"], input[type="url"]):focus {
	outline: none;
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 60%, transparent);
	box-shadow: inset 0 1px 2px color-mix(in srgb, var(--elch-shade) 8%, transparent), 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--primary) 15%, transparent);
}

/* Absenden-Button im Pillen-Stil */
html body .wp-block-comments :is(input[type="submit"], .wp-block-button__link, .wp-element-button) {
	padding: .7em 1.6em;
	font-weight: 600;
	background: linear-gradient(color-mix(in srgb, var(--elch-hi) 70%, transparent), color-mix(in srgb, var(--elch-hi) 35%, transparent)), color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent) !important;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent) !important;
	border-radius: 999px;
	box-shadow: color-mix(in srgb, var(--elch-hi) 90%, transparent) 0 1px 0 inset, color-mix(in srgb, var(--elch-shade) 8%, transparent) 0 1px 2px, color-mix(in srgb, var(--wp--preset--color--primary) 20%, transparent) 0 3px 8px -2px;
	color: var(--wp--preset--color--elch-accent-ink) !important;
	cursor: pointer;
	transition: transform .2s, background-color .2s, box-shadow .2s;
}

html body .wp-block-comments :is(input[type="submit"], .wp-block-button__link, .wp-element-button):hover {
	transform: translateY(-1px);
	background: linear-gradient(color-mix(in srgb, var(--elch-hi) 60%, transparent), color-mix(in srgb, var(--elch-hi) 25%, transparent)), color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent) !important;
}

/* Blogname im Header: Rückmeldung bei Hover und Tastatur-Fokus */
html header.site-header .wp-block-site-title a {
	position: relative;
	display: inline-block;
	transition: color .2s, transform .2s;
}

html header.site-header .wp-block-site-title a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--wp--preset--color--elch-violet), var(--wp--preset--color--elch-pink), var(--wp--preset--color--elch-teal));
	box-shadow: 0 0 8px color-mix(in srgb, var(--wp--preset--color--elch-violet) 50%, transparent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}

html header.site-header .wp-block-site-title a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--elch-accent-ink) !important;
}

html header.site-header .wp-block-site-title a:is(:hover, :focus-visible)::after {
	transform: scaleX(1);
}

html header.site-header .wp-block-site-title a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 6px;
	border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
	html header.site-header .wp-block-site-title a::after {
		transition: none;
	}
}

/* Textlinks: gleiche Rückmeldung wie beim Blognamen (violett + einlaufende Leuchtlinie).
   Unterstreichung und Leuchtlinie sind beide Hintergrund-Linien an derselben Stelle,
   damit beim Hover nichts springt und es auch bei umbrechenden Links funktioniert. */
html body :is(.wp-block-post-content, .wp-block-comments, .wp-block-post-excerpt, footer) a:not(.wp-element-button, .wp-block-button__link, .wp-block-post-terms a, .wp-block-navigation-item__content, .wp-block-post-title a, .wp-block-post-featured-image a, :has(img, svg)) {
	text-decoration: none !important;
	background-image:
		linear-gradient(90deg, var(--wp--preset--color--elch-violet), var(--wp--preset--color--elch-pink), var(--wp--preset--color--elch-teal)),
		linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 calc(100% - 2px), 0 calc(100% - 2px);
	background-size: 0% 2px, 100% 1.6px;
	transition: background-size .25s ease, color .2s;
}

html body :is(.wp-block-post-content, .wp-block-comments, .wp-block-post-excerpt, footer) a:not(.wp-element-button, .wp-block-button__link, .wp-block-post-terms a, .wp-block-navigation-item__content, .wp-block-post-title a, .wp-block-post-featured-image a, :has(img, svg)):is(:hover, :focus-visible) {
	color: var(--wp--preset--color--elch-accent-ink) !important;
	background-size: 100% 2px, 100% 1.6px;
}

@media (prefers-reduced-motion: reduce) {
	html body :is(.wp-block-post-content, .wp-block-comments, .wp-block-post-excerpt, footer) a:not(.wp-element-button, .wp-block-button__link, .wp-block-post-terms a, .wp-block-navigation-item__content, .wp-block-post-title a, .wp-block-post-featured-image a, :has(img, svg)) {
		transition: none;
	}
}

/* Kartentitel: gleiche Rückmeldung wie die Textlinks (ohne Linie im Ruhezustand).
   Der Titel-Link deckt die ganze Karte ab, Hover irgendwo auf der Karte löst den Effekt aus. */
html .wp-block-post > .has-background .wp-block-post-title a {
	display: inline;
	text-decoration: none !important;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	background-image: linear-gradient(90deg, var(--wp--preset--color--elch-violet), var(--wp--preset--color--elch-pink), var(--wp--preset--color--elch-teal));
	background-repeat: no-repeat;
	background-position: 0 calc(100% - 2px);
	background-size: 0% 2px;
	transition: background-size .3s ease, color .2s;
}

html .wp-block-post > .has-background .wp-block-post-title a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--elch-accent-ink) !important;
	background-size: 100% 2px;
}

@media (prefers-reduced-motion: reduce) {
	html .wp-block-post > .has-background .wp-block-post-title a {
		transition: none;
	}
}

/* Hover-Linien: Farbverlauf läuft beim Hover durch */
@property --elch-shift {
	syntax: "<percentage>";
	inherits: false;
	initial-value: 0%;
}

@keyframes elch-flow {
	to { --elch-shift: 100%; }
}

html header.site-header .wp-block-site-title a::after,
html .wp-block-post > .has-background .wp-block-post-title a {
	background-image: repeating-linear-gradient(90deg, var(--wp--preset--color--elch-violet) calc(var(--elch-shift) + 0%), var(--wp--preset--color--elch-pink) calc(var(--elch-shift) + 33.33%), var(--wp--preset--color--elch-teal) calc(var(--elch-shift) + 66.66%), var(--wp--preset--color--elch-violet) calc(var(--elch-shift) + 100%));
}

html body :is(.wp-block-post-content, .wp-block-comments, .wp-block-post-excerpt, footer) a:not(.wp-element-button, .wp-block-button__link, .wp-block-post-terms a, .wp-block-navigation-item__content, .wp-block-post-title a, .wp-block-post-featured-image a, :has(img, svg)) {
	background-image:
		repeating-linear-gradient(90deg, var(--wp--preset--color--elch-violet) calc(var(--elch-shift) + 0%), var(--wp--preset--color--elch-pink) calc(var(--elch-shift) + 33.33%), var(--wp--preset--color--elch-teal) calc(var(--elch-shift) + 66.66%), var(--wp--preset--color--elch-violet) calc(var(--elch-shift) + 100%)),
		linear-gradient(currentColor, currentColor);
}

html header.site-header .wp-block-site-title a:is(:hover, :focus-visible)::after,
html .wp-block-post > .has-background .wp-block-post-title a:is(:hover, :focus-visible),
html body :is(.wp-block-post-content, .wp-block-comments, .wp-block-post-excerpt, footer) a:not(.wp-element-button, .wp-block-button__link, .wp-block-post-terms a, .wp-block-navigation-item__content, .wp-block-post-title a, .wp-block-post-featured-image a, :has(img, svg)):is(:hover, :focus-visible) {
	animation: elch-flow 2s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
	html header.site-header .wp-block-site-title a:is(:hover, :focus-visible)::after,
	html .wp-block-post > .has-background .wp-block-post-title a:is(:hover, :focus-visible),
	html body :is(.wp-block-post-content, .wp-block-comments, .wp-block-post-excerpt, footer) a:not(.wp-element-button, .wp-block-button__link, .wp-block-post-terms a, .wp-block-navigation-item__content, .wp-block-post-title a, .wp-block-post-featured-image a, :has(img, svg)):is(:hover, :focus-visible) {
		animation: none;
	}
}

/* Beitragstitel in allen Listen (z. B. Suchergebnisse): gleiche Hover-Linie wie die Kartentitel */
html .wp-block-post .wp-block-post-title a {
	display: inline;
	text-decoration: none !important;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	background-image: repeating-linear-gradient(90deg, var(--wp--preset--color--elch-violet) calc(var(--elch-shift) + 0%), var(--wp--preset--color--elch-pink) calc(var(--elch-shift) + 33.33%), var(--wp--preset--color--elch-teal) calc(var(--elch-shift) + 66.66%), var(--wp--preset--color--elch-violet) calc(var(--elch-shift) + 100%));
	background-repeat: no-repeat;
	background-position: 0 calc(100% - 2px);
	background-size: 0% 2px;
	transition: background-size .3s ease, color .2s;
}

html .wp-block-post .wp-block-post-title a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--elch-accent-ink) !important;
	background-size: 100% 2px;
	animation: elch-flow 2s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
	html .wp-block-post .wp-block-post-title a { transition: none; }
	html .wp-block-post .wp-block-post-title a:is(:hover, :focus-visible) { animation: none; }
}

/* Suchbutton (außerhalb des Headers) im Look der Blättern-Buttons */
html body .wp-block-search:not(header .wp-block-search) .wp-block-search__button {
	font-weight: 500;
	padding: .85em 1.6em !important;
	color: var(--elch-pager-color) !important;
	background-color: var(--elch-card-bg) !important;
	background-image: var(--elch-sheen) !important;
	background-size: 100% 100% !important;
	backdrop-filter: var(--elch-card-blur);
	border: 1px solid !important;
	border-color: var(--elch-edge) !important;
	border-radius: 16px !important;
	box-shadow: var(--elch-pager-shadow) !important;
	transition: var(--elch-ease);
	cursor: pointer;
}

html body .wp-block-search:not(header .wp-block-search) .wp-block-search__button:hover {
	background-color: var(--elch-pager-bg-hover) !important;
	box-shadow: var(--elch-pager-shadow-hover) !important;
}

@media (prefers-reduced-motion: no-preference) {
	html body .wp-block-search:not(header .wp-block-search) .wp-block-search__button:hover {
		transform: translateY(-4px);
	}
}

/* Suchergebnisse: Kopfbereich als Glas-Karte wie die Einzelseite */
html body.search .wp-site-blocks > .has-tertiary-background-color:has(.wp-block-search) {
	background-color: var(--elch-single-bg) !important;
	background-image: var(--elch-card-image) !important;
	background-size: 100% 100% !important;
	backdrop-filter: var(--elch-card-blur) !important;
	border: 1px solid !important;
	border-color: var(--elch-edge) !important;
	border-radius: 28px;
	box-shadow: var(--elch-card-shadow) !important;
	margin-inline: clamp(0.5rem, 2vw, 1.5rem) !important;
	margin-block: var(--wp--preset--spacing--large) 0 !important;
	padding-block: clamp(1.75rem, 4vw, 3rem) !important;
}

/* Suchfeld (außerhalb des Headers) als Milchglas, passend zum Button */
html body .wp-block-search:not(header .wp-block-search) .wp-block-search__input {
	background: color-mix(in srgb, var(--elch-hi) 45%, transparent) !important;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent) !important;
	border-radius: 16px !important;
	padding: .85rem 1rem !important;
	box-shadow: inset 0 1px 2px color-mix(in srgb, var(--elch-shade) 8%, transparent);
	color: inherit;
	transition: border-color .2s, box-shadow .2s;
}

html body .wp-block-search:not(header .wp-block-search) .wp-block-search__input:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 60%, transparent) !important;
	box-shadow: inset 0 1px 2px color-mix(in srgb, var(--elch-shade) 8%, transparent), 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--primary) 15%, transparent);
}

html body .wp-block-search:not(header .wp-block-search) .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
	background: none;
	gap: .6rem;
}

/* Abstand Kopfkarte → Ergebnisse wie zwischen den Karten */
html body.search main.site-content {
	padding-top: var(--wp--preset--spacing--large) !important;
}

/* Footer: Glas-Insel wie der Header (Footer-Ton halbdurchsichtig, damit die Schrift lesbar bleibt) */
html .site-footer {
	padding-inline: var(--wp--style--root--padding-left, 1.5rem);
	padding-bottom: 14px;
}

html .site-footer > .has-background {
	position: relative;
	max-width: var(--wp--style--global--wide-size, 1260px);
	margin-inline: auto;
	border-radius: 22px;
	background-color: color-mix(in srgb, var(--elch-footer-bg) 72%, transparent) !important;
	background-image: var(--elch-card-image) !important;
	background-size: 100% 100% !important;
	backdrop-filter: var(--elch-card-blur) !important;
	border-width: 1px !important;
	border-color: var(--elch-edge) !important;
	box-shadow: var(--elch-card-shadow) !important;
}

html .site-footer > .has-background::before {
	content: "";
	position: absolute;
	left: 28px;
	right: 28px;
	top: -1px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--elch-violet) 20%, var(--wp--preset--color--elch-pink) 50%, var(--wp--preset--color--elch-teal) 80%, transparent);
	box-shadow: 0 0 12px 1px color-mix(in srgb, var(--wp--preset--color--elch-violet) 55%, transparent);
	opacity: .85;
	pointer-events: none;
}

/* Archiv-Köpfe (Kategorie, Schlagwort, Autor, Datum): Glas-Karte wie bei den Suchergebnissen */
html body.archive .wp-site-blocks > .alignfull.has-base-background-color {
	background-color: var(--elch-single-bg) !important;
	background-image: var(--elch-card-image) !important;
	background-size: 100% 100% !important;
	backdrop-filter: var(--elch-card-blur) !important;
	border: 1px solid !important;
	border-color: var(--elch-edge) !important;
	border-radius: 28px;
	box-shadow: var(--elch-card-shadow) !important;
	width: min(var(--wp--style--global--wide-size, 1260px), 100% - 2 * var(--wp--style--root--padding-left, 1.5rem));
	margin-inline: auto !important;
	margin-block: var(--wp--preset--spacing--large) 0 !important;
}

/* Startseite: Inhalt in derselben Glas-Karte wie die Einzelseiten */
html body.home.page main {
	background-color: var(--elch-single-bg) !important;
	background-image: var(--elch-card-image) !important;
	background-size: 100% 100% !important;
	backdrop-filter: var(--elch-card-blur) !important;
	border: 1px solid !important;
	border-color: var(--elch-edge) !important;
	border-radius: 28px;
	box-shadow: var(--elch-card-shadow) !important;
	padding: clamp(1.25rem, 4vw, 3rem) !important;
	margin-block: var(--wp--preset--spacing--large) clamp(1.5rem, 4vw, 3rem) !important;
	margin-inline: clamp(0.5rem, 2vw, 1.5rem) !important;
}

/* Breite Fenster: Inhaltskarten auf dieselbe Breite wie Header und Footer begrenzen */
html :is(body.single main, body.page main:not(:has(.elch-stage)), body .wp-block-comments, body.search .wp-site-blocks > .has-tertiary-background-color:has(.wp-block-search)) {
	box-sizing: border-box;
	width: min(var(--wp--style--global--wide-size, 1260px), 100% - 2 * var(--wp--style--root--padding-left, 1.5rem));
	margin-inline: auto !important;
}

/* Hintergrund auch bei kurzen Seiten bis zum Fensterrand */
html body {
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}

/* Farbwolken nach unten verlängern, damit die Drift-Animation (bis -28vh) keine Kante freilegt */
html body::before,
html body::after {
	inset: -10vh -25vw -40vh;
}

/* Footer im Light Mode: helles Glas wie die Karten, dunkle Schrift (Dark Mode bleibt beim Footer-Ton) */
html:not([data-lightdark="dark"]) .site-footer > .has-background {
	background-color: var(--elch-card-bg) !important;
	color: var(--wp--preset--color--main) !important;
}

html:not([data-lightdark="dark"]) .site-footer > .has-background :is(h1, h2, h3, h4, h5, h6, p, li, span, strong),
html:not([data-lightdark="dark"]) .site-footer > .has-background a:not(:hover, :focus-visible) {
	color: var(--wp--preset--color--main) !important;
}

/* Header-Suche: aufgeklapptes Feld größer */
html header.site-header .elch-header-nav .wp-block-search__input {
	width: min(20rem, 45vw);
	padding: .55em 1.1em;
	font-size: .95rem;
}

html header.site-header .elch-header-nav .wp-block-search__button {
	padding: .55em .75em;
}

html header.site-header .elch-header-nav .wp-block-search__input:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 60%, transparent);
	box-shadow: color-mix(in srgb, var(--elch-hi) 90%, transparent) 0 1px 0 inset, inset 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent); /* Ring innen, damit das Feld so hoch wirkt wie die Lupe */
}


/* Header-Suche: Feld weich aufklappen (Karten-Kurve) und etwas zügiger zuklappen */
html header.site-header .elch-header-nav .wp-block-search__input {
	transition: width .45s var(--elch-lift-curve), flex-basis .45s var(--elch-lift-curve), padding .45s var(--elch-lift-curve), opacity .3s ease .05s, border-color .2s, box-shadow .2s, background-color .2s;
}

html header.site-header .elch-header-nav .wp-block-search__searchfield-hidden .wp-block-search__input {
	opacity: 0;
	transition: width .3s cubic-bezier(.4, 0, .2, 1), flex-basis .3s cubic-bezier(.4, 0, .2, 1), padding .3s cubic-bezier(.4, 0, .2, 1), opacity .25s ease, border-color .2s, box-shadow .2s, background-color .2s;
}

/* Lupe bleibt beim Zuklappen rechts stehen, statt mitzuwandern */
html header.site-header .elch-header-nav .wp-block-search__inside-wrapper {
	justify-content: flex-end;
}

@media (prefers-reduced-motion: reduce) {
	html header.site-header .elch-header-nav .wp-block-search__input { transition: none; }
}

/* Karten, Blättern-Links und Footer: Feinabstimmung (früher im Datenbank-CSS) */
html:not([data-lightdark='dark']) :is(.wp-block-post > .has-background, body .elch-stage .elch-card, body .elch-stage .elch-hero, .wp-block-query-pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next)) {
	background-color: color-mix(in srgb, var(--elch-hi) 36%, transparent) !important;
}
html:not([data-lightdark='dark']) :is(:is(.wp-block-post > .has-background, body .elch-stage .elch-card):hover, .wp-block-query-pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next):hover) {
	background-color: color-mix(in srgb, var(--elch-hi) 45%, transparent) !important;
}
html[data-lightdark='dark'] :is(.wp-block-post > .has-background, body .elch-stage .elch-card, body .elch-stage .elch-hero, .wp-block-query-pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next)) {
	border-color: rgb(255 255 255 / .28) rgb(255 255 255 / .14) rgb(0 0 0 / .5) rgb(255 255 255 / .2) !important;
}
html .site-footer > .has-background {
	border-style: solid !important;
	border-width: 1px 0 0 !important;
}
html:not([data-lightdark='dark']) .site-footer > .has-background {
	border-color: color-mix(in srgb, var(--elch-hi) 35%, transparent) !important;
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--elch-hi) 22%, transparent), inset 0 2px 0 color-mix(in srgb, var(--elch-hi) 6%, transparent), 0 -1px 2px color-mix(in srgb, var(--elch-shade) 8%, transparent), 0 -8px 16px -4px color-mix(in srgb, var(--elch-shade) 12%, transparent), 0 -20px 40px -12px color-mix(in srgb, var(--elch-shade) 22%, transparent) !important;
}
html[data-lightdark='dark'] .site-footer > .has-background {
	background-color: #0e1018 !important;
	border-color: rgb(255 255 255 / .28) !important;
	box-shadow: inset 0 1px 0 rgb(255 255 255 / .15), 0 -2px 4px rgb(0 0 0 / .35), 0 -14px 28px -6px rgb(0 0 0 / .45), 0 -24px 44px -14px rgb(0 0 0 / .55) !important;
}

/* Light Mode: Karten mit feiner Körnung, damit das Milchglas erkennbar ist */
html:not([data-lightdark='dark']) {
	--elch-grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .4 0 0 0 0 .5 0 0 0 .3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html:not([data-lightdark='dark']) :is(.wp-block-post > .has-background, body .elch-stage .elch-card, body .elch-stage .elch-hero) {
	background-image: linear-gradient(135deg, color-mix(in srgb, var(--elch-hi) 55%, transparent) 0%, color-mix(in srgb, var(--elch-hi) 12%, transparent) 35%, transparent 70%), var(--elch-grain-light) !important;
}


/* Tastatur-Fokus: überall sichtbar */
:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"]), .lightdark-toggle):focus-visible {
	outline: 2px solid var(--elch-focus);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Einzelansicht: Bilder schlicht mit abgerundeten Ecken */
body.single main :is(.wp-block-post-featured-image img, .wp-block-post-content img:not(.emoji, .wp-smiley, .avatar, [width="16"], [width="24"], [width="32"])) {
	border-radius: 16px;
}

/* Rahmen und Schatten nicht abschneiden */
body.single main .wp-block-post-featured-image {
	overflow: visible;
	border-radius: 0;
}
