/*
Theme Name: Your Decision
Theme URI: https://your-decision.org
Author: Amitry
Author URI: https://amitry.de
Description: Minimalistisches, gerahmtes Block-Theme für die Your Decision gGmbH. Dunkles Violett und Schwarz, Spectral und Jost, feine Linien statt Schatten, ruhige Bewegung. DSGVO-konform ohne externe Dienste, mit Einrichtungs-Assistent.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: your-decision
Tags: block-theme, full-site-editing, one-column, custom-colors, custom-logo, custom-menu, editor-style, block-patterns, block-styles, accessibility-ready, translation-ready
*/

/* =========================================================================
   1. Grundlagen
   ========================================================================= */

:root {
	--yd-weich: cubic-bezier(0.2, 0.7, 0.2, 1);
	--yd-box: 1280px;
	--yd-papier: var(--wp--preset--color--papier, #fbfaf8);
	--yd-tinte: var(--wp--preset--color--tinte, #141118);
	--yd-violett: var(--wp--preset--color--violett, #2b1989);
	--yd-tief: var(--wp--preset--color--violett-tief, #1a1145);
	--yd-grau: var(--wp--preset--color--grau, #6b6672);
	--yd-linie: var(--wp--preset--color--linie, #e3dfd8);
	--yd-linie-stark: #cbc5bb;
	--yd-flieder-hell: #bcb1f0;
	--yd-serif: var(--wp--preset--font-family--serif);
	--yd-sans: var(--wp--preset--font-family--sans);
}

[class*="yd-"],
[class*="yd-"]::before,
[class*="yd-"]::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
	-webkit-text-size-adjust: 100%;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-kerning: normal;
	font-variant-ligatures: common-ligatures;
	overflow-x: clip;
}

img,
video {
	max-width: 100%;
	height: auto;
}

::selection {
	background: var(--wp--preset--color--flieder, #eeebf6);
	color: var(--yd-tief);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 1px solid var(--yd-violett);
	outline-offset: 4px;
}

/* Links im Fließtext: feine Unterstreichung, die beim Überfahren kräftiger wird. */
:where(.wp-site-blocks) a:where(:not(.wp-element-button)) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
	transition: color 0.25s var(--yd-weich), text-decoration-color 0.25s var(--yd-weich);
}

:where(.wp-site-blocks) a:where(:not(.wp-element-button)):hover {
	text-decoration-color: currentColor;
}

p {
	text-wrap: pretty;
}

:where(h1, h2, h3, h4) em {
	font-style: italic;
	color: var(--yd-violett);
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 1000;
	padding: 0.9rem 1.4rem;
	background: var(--yd-tief);
	color: #fff;
	font-family: var(--yd-sans);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.skip-link:focus {
	left: 0;
	top: 0;
}

/* =========================================================================
   2. Die Box
   Die ganze Website steht in einem gerahmten Kasten: außen der ruhige
   Rahmenton, innen Papier. Auf Telefonen füllt die Box die Breite.
   ========================================================================= */

.wp-site-blocks {
	position: relative;
	max-width: var(--yd-box);
	margin-inline: auto;
	background: var(--yd-papier);
	min-height: 100vh;
	overflow-x: clip;
}

@media (min-width: 900px) {
	.wp-site-blocks {
		width: calc(100% - 40px);
		margin-block: 20px;
		min-height: calc(100vh - 40px);
		outline: 1px solid #d9d4cb;
	}
}

@media (min-width: 1100px) {
	.wp-site-blocks {
		width: calc(100% - 56px);
		margin-block: 28px;
		min-height: calc(100vh - 56px);
	}
}

/* =========================================================================
   3. Kopfbereich
   ========================================================================= */

.yd-kopfbereich {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 60;
	background: var(--yd-papier);
}

@media (max-width: 600px) {
	/* Unter 600 px scrollt die WordPress-Leiste mit – dann kein Versatz. */
	.yd-kopfbereich {
		top: 0;
	}
}

.yd-kopf__zeile {
	position: relative;
	transition: padding 0.45s var(--yd-weich);
}

.yd-kopf__zeile::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--yd-linie);
}

.yd-kopfbereich.ist-gescrollt .yd-kopf__zeile {
	padding-top: 0.7rem !important;
	padding-bottom: 0.7rem !important;
}

.yd-kopfbereich .wp-block-site-logo {
	line-height: 0;
}

.yd-kopfbereich .wp-block-site-logo img {
	height: auto;
	transition: width 0.45s var(--yd-weich);
}

.yd-kopfbereich.ist-gescrollt .wp-block-site-logo img {
	width: 112px !important;
}

/* Seitentitel nur, wenn kein Logo hinterlegt ist. */
.yd-kopfbereich .wp-block-site-logo + .wp-block-site-title {
	display: none;
}

/* Hauptmenü: dünne Linie unter dem aktiven und dem überfahrenen Punkt. */
.yd-kopfbereich .wp-block-navigation-item__content {
	position: relative;
	padding-block: 0.35rem;
	color: var(--yd-tinte);
}

.yd-kopfbereich .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.45s var(--yd-weich);
}

.yd-kopfbereich .wp-block-navigation-item__content:hover::after,
.yd-kopfbereich .wp-block-navigation-item__content:focus-visible::after,
.yd-kopfbereich .current-menu-item > .wp-block-navigation-item__content::after,
.yd-kopfbereich [aria-current="page"]::after {
	transform: scaleX(1);
}

/* Bis zur Tablet-Breite das Menü hinter dem Knopf verstecken. */
@media (min-width: 600px) and (max-width: 1023px) {
	.yd-kopfbereich .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.yd-kopfbereich .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	color: inherit;
}

.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

/* Geöffnetes Menü: tiefes Violett, große ruhige Schrift, linksbündig. */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--yd-tief) !important;
	color: #fff !important;
	padding: clamp(1.25rem, 6vw, 2.5rem) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start !important;
	padding-top: 4.5rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important;
	gap: 0.85rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--yd-serif);
	font-size: clamp(1.75rem, 7vw, 2.4rem);
	font-weight: 300;
	letter-spacing: -0.01em;
	line-height: 1.2;
	text-transform: none;
	color: #fff !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	display: none;
}

.wp-block-navigation__responsive-container.is-menu-open [aria-current="page"] {
	font-style: italic;
	color: var(--yd-flieder-hell) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	animation: yd-menue 0.6s var(--yd-weich) backwards;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 0.05s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 0.10s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 0.15s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: 0.20s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(6) { animation-delay: 0.25s; }

@keyframes yd-menue {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}

/* =========================================================================
   4. Typografische Bausteine
   ========================================================================= */

.yd-label {
	margin: 0 0 1.4rem;
	font-family: var(--yd-sans);
	font-size: 0.75rem !important;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--yd-violett);
}

.yd-lead {
	font-size: var(--wp--preset--font-size--mittel);
	line-height: 1.55;
	color: #2a2630;
}

.yd-gedaempft {
	color: var(--yd-grau);
}

.yd-klein {
	font-size: 0.95rem;
	line-height: 1.6;
}

.yd-balance {
	text-wrap: balance;
}

/* Hinweis „in Gründung“ – mit einem kleinen Punkt davor. */
.yd-hinweis {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	font-family: var(--yd-sans);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--yd-grau);
}

.yd-hinweis::before {
	content: "";
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--yd-violett);
}

/* Zitat */
.yd-zitat {
	margin: 0;
	font-family: var(--yd-serif);
	font-size: clamp(1.55rem, 3.1vw, 2.45rem);
	font-style: italic;
	font-weight: 300;
	line-height: 1.26;
	letter-spacing: -0.01em;
	color: var(--yd-tief);
	text-wrap: balance;
}

.yd-zitat__quelle {
	margin-top: 1.6rem !important;
	font-family: var(--yd-sans);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--yd-grau);
}

/* Große Kontaktwege: Telefon und E-Mail als ruhige Zeilen. */
.yd-kontaktwege {
	font-family: var(--yd-serif);
	font-size: clamp(1.35rem, 2.5vw, 1.9rem);
	font-weight: 300;
	line-height: 1.5;
}

.yd-kontaktwege a {
	color: var(--yd-tief);
	text-decoration-color: color-mix(in srgb, currentColor 25%, transparent) !important;
}

.yd-kontaktwege a:hover {
	color: var(--yd-violett);
}

/* =========================================================================
   5. Schaltflächen
   ========================================================================= */

.wp-block-button__link {
	transition: background-color 0.3s var(--yd-weich), color 0.3s var(--yd-weich),
		border-color 0.3s var(--yd-weich), opacity 0.3s var(--yd-weich);
}

.wp-block-buttons {
	gap: 1rem 2rem;
	align-items: center;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--yd-tief);
	border: 1px solid currentColor;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--yd-tief);
	border-color: var(--yd-tief);
	color: #fff;
}

/* Mit Pfeil */
.wp-block-button.is-style-yd-pfeil > .wp-block-button__link::after {
	content: "→";
	display: inline-block;
	margin-left: 0.9em;
	letter-spacing: 0;
	transition: transform 0.35s var(--yd-weich);
}

.wp-block-button.is-style-yd-pfeil > .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

/* Nur Text: Beschriftung mit feiner Linie darunter */
.wp-block-button.is-style-yd-text > .wp-block-button__link {
	background: none !important;
	color: var(--yd-tief) !important;
	border: 0 !important;
	border-bottom: 1px solid currentColor !important;
	padding: 0.3rem 0 !important;
}

.wp-block-button.is-style-yd-text > .wp-block-button__link:hover {
	opacity: 0.6;
}

/* =========================================================================
   6. Abschnitte und Raster
   ========================================================================= */

/* Haarlinie oben – sie zeichnet sich beim Erscheinen von links nach rechts. */
.yd-abschnitt {
	position: relative;
}

.yd-abschnitt::before {
	content: "";
	position: absolute;
	top: 0;
	left: var(--wp--style--root--padding-left, 5rem);
	right: var(--wp--style--root--padding-right, 5rem);
	height: 1px;
	background: var(--yd-linie);
	transform-origin: 0 50%;
	transition: transform 1.4s var(--yd-weich);
}

.hat-js .yd-abschnitt:not(.ist-sichtbar)::before {
	transform: scaleX(0);
}

.yd-abschnitt--ohne-linie::before,
.yd-dunkel + .yd-abschnitt::before {
	display: none;
}

/* Redaktionelles Raster: Beschriftung links, Inhalt rechts. */
.yd-spalten__label .yd-label {
	padding-top: 0.85rem;
}

.yd-spalten__inhalt > h2:first-child,
.yd-spalten__inhalt > .yd-lead:first-child {
	margin-top: 0;
}

.yd-spalten__inhalt > h2 + p,
.yd-spalten__inhalt > h2 + .yd-lead {
	margin-top: 1.75rem !important;
}

.yd-spalten__inhalt > .yd-lead + p {
	margin-top: 1.6rem !important;
}

@media (min-width: 782px) {
	.yd-spalten__label .yd-label {
		position: sticky;
		top: 112px;
	}
}

/* Leitsätze nebeneinander – keine Kästen, nur eine Linie oben. */
.yd-werte {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2.75rem clamp(1.5rem, 3vw, 2.75rem);
}

.yd-werte.yd-werte > * {
	margin: 0 !important;
}

.yd-werte--drei {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yd-wert {
	border-top: 1px solid var(--yd-tinte);
	padding-top: 1.35rem;
}

.yd-wert.yd-wert > * {
	margin-block: 0;
}

.yd-wert__nr {
	font-family: var(--yd-sans);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	color: var(--yd-violett);
}

.yd-wert .yd-wert__titel {
	margin-top: 0.75rem;
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.005em;
}

.yd-wert .yd-wert__nr + .yd-wert__titel {
	margin-top: 0.9rem;
}

.yd-wert.yd-wert > p:not(.yd-wert__nr) {
	margin-top: 0.7rem;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--yd-grau);
}

/* =========================================================================
   7. Seitenkopf
   ========================================================================= */

.yd-held h1 {
	margin-top: 0;
}

.yd-held .yd-label {
	margin-bottom: 1.6rem;
}

.yd-held .yd-lead {
	margin-top: 1.9rem !important;
	max-width: 30em;
	text-wrap: balance;
}

.yd-held .wp-block-buttons {
	margin-top: 2.4rem !important;
}

.yd-held .yd-hinweis {
	margin-top: 2.6rem !important;
}

.yd-held__neben .wp-block-image {
	display: flex;
	justify-content: flex-end;
	max-width: 440px;
	margin: 0 0 0 auto;
}

.yd-held--start .yd-held__neben .wp-block-image {
	max-width: 380px;
}

/* Das Foto im Seitenkopf passt immer in den ersten Bildschirm. */
.yd-held__neben .yd-bild img {
	width: auto;
	max-width: 100%;
	max-height: max(360px, calc(100svh - 240px));
}


.yd-held--text .yd-held__neben .yd-lead {
	margin-top: 0 !important;
	font-size: 1.2rem;
	line-height: 1.6;
}

/* Seitenkopf der einfachen Seiten (Impressum, Datenschutz, Beiträge) */
.yd-seitenkopf {
	position: relative;
}

.yd-seitenkopf .wp-block-post-title,
.yd-seitenkopf h1 {
	margin-top: 0;
}

.yd-seitenkopf .yd-label {
	margin-bottom: 1.2rem;
}

/* =========================================================================
   8. Bilder
   Sie erscheinen nie größer, als ihre Auflösung hergibt, und werden nicht
   vergrößert. Kein Schatten, keine Rundung, kein Zoom.
   ========================================================================= */

.wp-block-image img {
	border-radius: 0;
}

.yd-bild {
	margin: 0;
}

.yd-bild img {
	display: block;
	width: 100%;
	height: auto;
}

.wp-block-image figcaption {
	margin-top: 0.75rem;
	text-align: left;
}

/* Zwei Fotos nebeneinander, leicht versetzt */
.yd-bildpaar {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: clamp(1.25rem, 4vw, 3.5rem);
	align-items: start;
}

.yd-bildpaar.yd-bildpaar > * {
	margin: 0 !important;
}

.yd-bildpaar > *:nth-child(2) {
	margin-top: clamp(3rem, 10vw, 8rem) !important;
}

/* Zitat neben einem Foto */
.yd-zitatblock__bild .wp-block-image {
	max-width: 420px;
}

.yd-drift,
.yd-drift-gegen {
	will-change: transform;
}

/* Passepartout (Blockstil für Bilder) */
.wp-block-image.is-style-yd-passepartout img {
	box-sizing: border-box;
	padding: clamp(0.75rem, 2vw, 1.5rem);
	background: #fff;
	outline: 1px solid var(--yd-linie);
	outline-offset: -1px;
}

/* =========================================================================
   9. Angebote als ruhige Liste
   ========================================================================= */

.yd-index {
	border-top: 1px solid var(--yd-tinte);
}

.yd-index.yd-index > * {
	margin-block: 0;
}

.yd-index__zeile {
	display: grid;
	grid-template-columns: minmax(6.5rem, 9rem) minmax(0, 1fr) 2rem;
	gap: 0.5rem clamp(1rem, 3vw, 2.5rem);
	align-items: baseline;
	padding: 1.7rem 0 1.8rem;
	border-bottom: 1px solid var(--yd-linie);
	color: inherit !important;
	text-decoration: none !important;
}

.yd-index--ohne-link .yd-index__zeile {
	grid-template-columns: minmax(6.5rem, 9rem) minmax(0, 1fr);
}

.yd-index__nr {
	font-family: var(--yd-sans);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--yd-violett);
	white-space: nowrap;
}

.yd-index__inhalt {
	display: block;
}

.yd-index__titel {
	display: block;
	font-family: var(--yd-serif);
	font-size: clamp(1.3rem, 2.1vw, 1.55rem);
	font-weight: 400;
	line-height: 1.25;
	color: var(--yd-tief);
	transition: color 0.3s var(--yd-weich);
}

.yd-index__text {
	display: block;
	margin-top: 0.55rem;
	max-width: 44em;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--yd-grau);
}

.yd-index__pfeil {
	justify-self: end;
	font-family: var(--yd-sans);
	color: var(--yd-violett);
	transition: transform 0.35s var(--yd-weich);
}

a.yd-index__zeile:hover .yd-index__titel,
a.yd-index__zeile:focus-visible .yd-index__titel {
	color: var(--yd-violett);
}

a.yd-index__zeile:hover .yd-index__pfeil,
a.yd-index__zeile:focus-visible .yd-index__pfeil {
	transform: translateX(5px);
}

/* =========================================================================
   10. Team – kompakte Liste
   ========================================================================= */

.yd-team {
	border-top: 1px solid var(--yd-tinte);
}

.yd-team.yd-team > * {
	margin-block: 0;
}

.yd-person {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) minmax(14rem, 17rem);
	gap: 1rem clamp(1.25rem, 2.6vw, 2.25rem);
	align-items: start;
	padding: 1.6rem 0;
	border-bottom: 1px solid var(--yd-linie);
}

.yd-person__bild {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	overflow: hidden;
	background: var(--wp--preset--color--flieder, #eeebf6);
}

.yd-person__bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yd-person__initialen {
	font-family: var(--yd-serif);
	font-size: 1.2rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: var(--yd-violett);
}

.yd-person__kopf > * {
	margin: 0;
}

.yd-person .yd-person__name {
	margin: 0;
	font-family: var(--yd-serif);
	font-size: 1.4rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.005em;
	color: var(--yd-tief);
}

.yd-person__rolle {
	margin-top: 0.4rem !important;
	font-family: var(--yd-sans);
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--yd-violett);
}

.yd-person__quali {
	margin-top: 0.7rem !important;
	font-size: 0.97rem;
	line-height: 1.55;
	color: var(--yd-grau);
}

.yd-person__kontakt {
	display: grid;
	gap: 0.25rem;
	padding-top: 0.15rem;
	font-family: var(--yd-sans);
	font-size: 0.92rem;
	line-height: 1.5;
}

.yd-person__zeile {
	display: grid;
	grid-template-columns: 1.4rem minmax(0, 1fr);
	align-items: baseline;
	color: var(--yd-tinte) !important;
	text-decoration: none !important;
	overflow-wrap: anywhere;
}

.yd-person__kuerzel {
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--yd-grau);
}

.yd-person__wert {
	transition: color 0.25s var(--yd-weich);
}

a.yd-person__zeile:hover .yd-person__wert {
	color: var(--yd-violett);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

.yd-person__vcard {
	justify-self: start;
	margin-top: 0.65rem;
	padding-bottom: 2px;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--yd-violett) !important;
	text-decoration: none !important;
	border-bottom: 1px solid currentColor;
	transition: opacity 0.25s var(--yd-weich);
}

.yd-person__vcard:hover {
	opacity: 0.6;
}

/* Auf dunklem Grund */
.yd-person--dunkel { border-bottom-color: rgba(255, 255, 255, 0.14); }
.yd-person--dunkel .yd-person__bild { background: rgba(255, 255, 255, 0.08); }
.yd-person--dunkel .yd-person__initialen,
.yd-person--dunkel .yd-person__rolle,
.yd-person--dunkel .yd-person__vcard { color: var(--yd-flieder-hell) !important; }
.yd-person--dunkel .yd-person__name { color: #fff; }
.yd-person--dunkel .yd-person__quali,
.yd-person--dunkel .yd-person__kuerzel { color: rgba(255, 255, 255, 0.55); }
.yd-person--dunkel .yd-person__zeile { color: rgba(255, 255, 255, 0.88) !important; }

/* =========================================================================
   11. Dunkle Abschnitte (tiefes Violett)
   ========================================================================= */

.yd-dunkel :where(h1, h2, h3, h4) {
	color: #fff;
}

.yd-dunkel :where(h1, h2, h3, h4) em {
	color: var(--yd-flieder-hell);
}

.yd-dunkel .yd-label,
.yd-dunkel .yd-wert__nr {
	color: var(--yd-flieder-hell);
}

.yd-dunkel .yd-gedaempft,
.yd-dunkel .yd-wert.yd-wert > p:not(.yd-wert__nr),
.yd-dunkel .yd-zitat__quelle {
	color: rgba(255, 255, 255, 0.62);
}

.yd-dunkel .yd-lead {
	color: rgba(255, 255, 255, 0.86);
}

.yd-dunkel .yd-zitat {
	color: #fff;
}

.yd-dunkel a:where(:not(.wp-element-button)) {
	color: #fff;
}

.yd-dunkel .yd-wert {
	border-top-color: rgba(255, 255, 255, 0.4);
}

.yd-dunkel .wp-block-button:not(.is-style-outline):not(.is-style-yd-text) > .wp-block-button__link {
	background: #fff;
	border-color: #fff;
	color: var(--yd-tief);
}

.yd-dunkel .wp-block-button:not(.is-style-outline):not(.is-style-yd-text) > .wp-block-button__link:hover {
	background: transparent;
	color: #fff;
}

.yd-dunkel .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
}

.yd-dunkel .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #fff;
	border-color: #fff;
	color: var(--yd-tief);
}

.yd-dunkel .wp-block-button.is-style-yd-text > .wp-block-button__link {
	color: #fff !important;
}

.yd-index--dunkel { border-top-color: rgba(255, 255, 255, 0.5); }
.yd-index--dunkel .yd-index__zeile { border-bottom-color: rgba(255, 255, 255, 0.16); }
.yd-index--dunkel .yd-index__nr,
.yd-index--dunkel .yd-index__pfeil { color: var(--yd-flieder-hell); }
.yd-index--dunkel .yd-index__titel { color: #fff; }
.yd-index--dunkel .yd-index__text { color: rgba(255, 255, 255, 0.62); }
.yd-index--dunkel a.yd-index__zeile:hover .yd-index__titel,
.yd-index--dunkel a.yd-index__zeile:focus-visible .yd-index__titel { color: #ddd6ff; }

/* =========================================================================
   12. Kontaktformular – Linien statt Kästen
   ========================================================================= */

.yd-formular {
	display: grid;
	gap: 1.6rem;
}

.yd-formular__reihe {
	display: grid;
	gap: 1.6rem 2rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.yd-formular__feld {
	display: grid;
	gap: 0.3rem;
}

.yd-formular label {
	font-family: var(--yd-sans);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--yd-grau);
}

.yd-formular input[type="text"],
.yd-formular input[type="email"],
.yd-formular input[type="tel"],
.yd-formular textarea,
.yd-formular select {
	width: 100%;
	font-family: var(--yd-serif);
	font-size: 1.1rem;
	color: inherit;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--yd-linie-stark);
	border-radius: 0;
	padding: 0.6rem 0 0.7rem;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.3s var(--yd-weich), box-shadow 0.3s var(--yd-weich);
}

.yd-formular select {
	cursor: pointer;
	padding-right: 1.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b6672' stroke-width='1.2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.2rem center;
}

.yd-formular textarea {
	min-height: 150px;
	resize: vertical;
	line-height: 1.6;
}

.yd-formular input::placeholder,
.yd-formular textarea::placeholder {
	color: #a9a3ad;
}

.yd-formular input:focus,
.yd-formular textarea:focus,
.yd-formular select:focus {
	outline: none;
	border-bottom-color: var(--yd-violett);
	box-shadow: 0 1px 0 0 var(--yd-violett);
}

.yd-formular label.yd-formular__zustimmung {
	display: flex;
	align-items: flex-start;
	gap: 0.8rem;
	font-family: var(--yd-serif);
	font-size: 0.98rem;
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: 0;
	text-transform: none;
	color: #2a2630;
}

.yd-formular__zustimmung input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 0.3rem;
	accent-color: var(--yd-violett);
}

.yd-formular__honig {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.yd-formular__senden {
	justify-self: start;
	cursor: pointer;
	padding: 1.05rem 1.8rem;
	border: 1px solid var(--yd-violett);
	border-radius: 0;
	background: var(--yd-violett);
	color: #fff;
	font-family: var(--yd-sans);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	transition: background-color 0.3s var(--yd-weich), border-color 0.3s var(--yd-weich);
}

.yd-formular__senden:hover:not(:disabled) {
	background: var(--yd-tief);
	border-color: var(--yd-tief);
}

.yd-formular__senden:disabled {
	opacity: 0.5;
	cursor: progress;
}

.yd-formular__meldung {
	display: none;
	padding: 0.9rem 0 0.9rem 1.1rem;
	border-left: 1px solid currentColor;
	font-size: 1rem;
	line-height: 1.55;
}

.yd-formular__meldung.ist-sichtbar {
	display: block;
	animation: yd-melden 0.5s var(--yd-weich);
}

.yd-formular__meldung--ok {
	color: var(--yd-tief);
	border-left-color: var(--yd-violett);
}

.yd-formular__meldung--fehler {
	color: #8f1d1d;
}

@keyframes yd-melden {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}

.yd-formular--dunkel label { color: rgba(255, 255, 255, 0.55); }
.yd-formular--dunkel input[type="text"],
.yd-formular--dunkel input[type="email"],
.yd-formular--dunkel input[type="tel"],
.yd-formular--dunkel textarea,
.yd-formular--dunkel select {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.28);
}
.yd-formular--dunkel input::placeholder,
.yd-formular--dunkel textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.yd-formular--dunkel label.yd-formular__zustimmung { color: rgba(255, 255, 255, 0.8); }
.yd-formular--dunkel .yd-formular__senden {
	background: #fff;
	border-color: #fff;
	color: var(--yd-tief);
}
.yd-formular--dunkel .yd-formular__senden:hover:not(:disabled) {
	background: transparent;
	color: #fff;
}

.yd-kontakt__direkt > .yd-kontaktwege {
	margin-top: 0;
}

/* =========================================================================
   13. Fußbereich – Schwarz
   ========================================================================= */

.yd-fuss {
	color: rgba(255, 255, 255, 0.66);
	font-size: 1rem;
	line-height: 1.7;
}

.yd-fuss .yd-label {
	margin-bottom: 1.1rem;
	color: var(--yd-flieder-hell);
}

.yd-fuss a {
	color: rgba(255, 255, 255, 0.9) !important;
	text-decoration: none !important;
	transition: color 0.25s var(--yd-weich);
}

.yd-fuss a:hover {
	color: #fff !important;
}

.yd-fuss .wp-block-site-logo {
	line-height: 0;
}

.yd-fuss .wp-block-site-logo img {
	filter: brightness(0) invert(1);
}

.yd-fuss .yd-fuss__text {
	max-width: 24em;
	margin-top: 1.5rem;
}

.yd-fuss .yd-fuss__navi {
	font-family: var(--yd-serif);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.yd-fuss .wp-block-separator.yd-linie {
	height: 1px;
	border: 0;
	background: rgba(255, 255, 255, 0.14);
	opacity: 1;
}

.yd-fuss__unten p {
	margin: 0;
	font-family: var(--yd-sans);
	font-size: 0.78rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.45);
}

.yd-fuss__unten p:last-child {
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

/* =========================================================================
   14. Fließtext, Beiträge, Suche
   ========================================================================= */

.yd-fliesstext > h2 {
	margin-top: 3rem;
}

.yd-fliesstext > h3 {
	margin-top: 2rem;
}

.yd-fliesstext > h2 + *,
.yd-fliesstext > h3 + * {
	margin-top: 0.7rem;
}

.yd-fliesstext li + li {
	margin-top: 0.35rem;
}

.yd-beitragsbild img {
	display: block;
	width: 100%;
	height: auto;
}

.yd-beitraege {
	border-top: 1px solid var(--yd-tinte);
}

.yd-beitraege > li {
	margin: 0 !important;
	padding: 1.8rem 0;
	border-bottom: 1px solid var(--yd-linie);
}

.yd-beitrag.yd-beitrag > * {
	margin-block: 0;
}

.yd-beitrag .yd-label {
	margin-bottom: 0.6rem;
}

.yd-beitrag .yd-beitrag__titel a {
	color: var(--yd-tief);
	text-decoration: none;
}

.yd-beitrag .yd-beitrag__titel a:hover {
	color: var(--yd-violett);
}

.yd-beitrag .wp-block-post-excerpt {
	margin-top: 0.6rem;
	color: var(--yd-grau);
}

.yd-beitrag .wp-block-post-excerpt__more-link {
	font-family: var(--yd-sans);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.yd-seiten,
.yd-blaettern {
	margin-top: 2.5rem;
	font-family: var(--yd-sans);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.wp-block-search.yd-suche {
	margin-top: 2rem;
}

.wp-block-search.yd-suche .wp-block-search__inside-wrapper {
	max-width: 520px;
	border: 0;
	border-bottom: 1px solid var(--yd-tinte);
	padding: 0;
}

.wp-block-search.yd-suche .wp-block-search__input {
	border: 0;
	background: transparent;
	padding: 0.7rem 0;
	font-family: var(--yd-serif);
	font-size: 1.15rem;
}

.wp-block-search.yd-suche .wp-block-search__input:focus {
	outline: none;
}

.wp-block-search.yd-suche .wp-block-search__button {
	margin: 0;
	padding: 0 0 0 1rem;
	border: 0;
	background: none;
	color: var(--yd-violett);
}

/* =========================================================================
   15. Blockstile
   ========================================================================= */

.wp-block-group.is-style-yd-karte {
	border: 1px solid var(--yd-linie);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}

.wp-block-group.is-style-yd-linie-oben {
	border-top: 1px solid var(--yd-tinte);
	padding-top: 1.5rem;
}

.wp-block-quote.is-style-yd-gross {
	border: 0;
	padding: 0;
	font-size: clamp(1.55rem, 3.1vw, 2.45rem);
	line-height: 1.26;
}

.wp-block-quote.is-style-yd-gross cite {
	display: block;
	margin-top: 1.4rem;
	font-family: var(--yd-sans);
	font-size: 0.72rem;
	font-style: normal;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--yd-grau);
}

/* =========================================================================
   16. Bewegung beim Scrollen
   Nur Deckkraft, kurze Wege und Masken – keine Vergrößerung, keine
   Unschärfe, keine Kippeffekte.
   ========================================================================= */

.hat-js [data-yd-reveal] {
	transition: opacity 1s var(--yd-weich), transform 1s var(--yd-weich);
}

.hat-js [data-yd-reveal="hoch"]   { opacity: 0; transform: translateY(16px); }
.hat-js [data-yd-reveal="links"]  { opacity: 0; transform: translateX(-16px); }
.hat-js [data-yd-reveal="rechts"] { opacity: 0; transform: translateX(16px); }
.hat-js [data-yd-reveal="blende"] { opacity: 0; }

.hat-js [data-yd-reveal].ist-sichtbar {
	opacity: 1;
	transform: none;
}

/*
 * Masken: Nicht das Element selbst wird beschnitten, sondern sein Inhalt.
 * So bleibt das Element für die Sichtbarkeitsprüfung messbar.
 */
.hat-js [data-yd-reveal="vorhang"] > *,
.hat-js [data-yd-reveal="enthuellen"] > * {
	transition: clip-path 1.3s var(--yd-weich);
}

.hat-js [data-yd-reveal="vorhang"] > *    { clip-path: inset(0 0 100% 0); }
.hat-js [data-yd-reveal="enthuellen"] > * { clip-path: inset(100% 0 0 0); }

.hat-js [data-yd-reveal="vorhang"].ist-sichtbar > *,
.hat-js [data-yd-reveal="enthuellen"].ist-sichtbar > * {
	clip-path: inset(-12px);
}

/* Mitwandernde Bilder: hier regelt das Skript transform. */
.hat-js .yd-drift[data-yd-reveal],
.hat-js .yd-drift-gegen[data-yd-reveal] {
	transition: opacity 1s var(--yd-weich);
}

/* Gestaffelte Kinder */
.hat-js .yd-staffel > * {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.9s var(--yd-weich), transform 0.9s var(--yd-weich);
}

.hat-js .yd-staffel.ist-sichtbar > * {
	opacity: 1;
	transform: none;
}

.hat-js .yd-staffel.ist-sichtbar > *:nth-child(2) { transition-delay: 0.08s; }
.hat-js .yd-staffel.ist-sichtbar > *:nth-child(3) { transition-delay: 0.16s; }
.hat-js .yd-staffel.ist-sichtbar > *:nth-child(4) { transition-delay: 0.24s; }
.hat-js .yd-staffel.ist-sichtbar > *:nth-child(5) { transition-delay: 0.32s; }
.hat-js .yd-staffel.ist-sichtbar > *:nth-child(6) { transition-delay: 0.40s; }
.hat-js .yd-staffel.ist-sichtbar > *:nth-child(n + 7) { transition-delay: 0.46s; }

/* Überschriften steigen zeilenweise aus einer Maske auf. Das Skript packt
   jedes Wort in eine eigene Maske und verzögert Zeile für Zeile. */
.hat-js .yd-zeilen-auto:not(.yd-zeilen):not(.ist-sichtbar) {
	opacity: 0;
}

.yd-zeilen .yd-wort {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding: 0 0.06em 0.14em;
	margin: 0 -0.06em -0.14em;
}

.yd-zeilen .yd-wort__innen {
	display: inline-block;
	transform: translateY(112%);
	transition: transform 1.2s var(--yd-weich);
}

.yd-zeilen.ist-sichtbar .yd-wort__innen {
	transform: none;
}

/* =========================================================================
   17. Parallax-Abschnitt (Block) – zurückhaltend
   ========================================================================= */

.yd-parallax {
	position: relative;
	display: grid;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
}

.yd-parallax__medium {
	position: absolute;
	inset: -6% 0;
	z-index: 0;
	will-change: transform;
}

.yd-parallax__bild {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yd-parallax__schleier {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.yd-parallax__inhalt {
	position: relative;
	z-index: 2;
	width: 100%;
	min-width: 0;
	padding-inline: var(--wp--style--root--padding-left, 2rem);
}

.no-js .yd-parallax__medium {
	inset: 0;
}

/* =========================================================================
   18. Laufschrift (Block) – leise
   ========================================================================= */

.yd-laufschrift {
	display: flex;
	overflow: hidden;
	user-select: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.yd-laufschrift__spur {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3rem);
	padding-right: clamp(1.5rem, 4vw, 3rem);
	animation: yd-laufen 60s linear infinite;
}

.yd-laufschrift:hover .yd-laufschrift__spur {
	animation-play-state: paused;
}

.yd-laufschrift__wort {
	font-family: var(--yd-serif);
	font-size: clamp(1.4rem, 3.4vw, 2.4rem);
	font-style: italic;
	font-weight: 300;
	white-space: nowrap;
}

.yd-laufschrift__punkt {
	flex: 0 0 auto;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.4;
}

@keyframes yd-laufen {
	to { transform: translateX(-100%); }
}

/* =========================================================================
   19. Inhalte aus Version 1.0
   Damit nichts bricht, bevor die Seiten über den Assistenten neu
   aufgebaut wurden.
   ========================================================================= */

.yd-eyebrow {
	display: block;
	font-family: var(--yd-sans);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--yd-violett);
}

.yd-raster {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.yd-karte {
	border: 1px solid var(--yd-linie);
}

.yd-angebot {
	display: block;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--yd-linie);
	color: inherit;
	text-decoration: none;
}

.yd-visitenkarte {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--yd-linie);
}

.yd-visitenkarte__bild {
	width: 64px;
	height: 64px;
	overflow: hidden;
	background: var(--wp--preset--color--flieder, #eeebf6);
}

/* =========================================================================
   20. Hilfsklassen
   ========================================================================= */

.yd-nur-lesbar {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wp-block-separator.yd-linie {
	width: 100% !important;
	height: 1px;
	border: 0;
	background: var(--yd-linie);
	opacity: 1;
}

/* =========================================================================
   21. Tablet und Telefon
   ========================================================================= */

@media (max-width: 1024px) {
	.yd-werte:not(.yd-werte--drei) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yd-person {
		grid-template-columns: 56px minmax(0, 1fr);
	}

	.yd-person__bild {
		width: 56px;
		height: 56px;
	}

	.yd-person__kontakt {
		grid-column: 2 / -1;
	}
}

/* Tablet: die große Überschrift neben dem Foto etwas kleiner setzen,
   damit lange Wörter wie „Selbstbestimmung“ nicht getrennt werden. */
@media (min-width: 782px) and (max-width: 1100px) {
	.yd-held--bild h1.has-xxl-font-size,
	.yd-held--bild h1.has-display-font-size {
		font-size: clamp(2.3rem, 5.4vw, 3.6rem) !important;
	}
}

@media (max-width: 781px) {
	html {
		scroll-padding-top: 80px;
	}

	.yd-held__neben .wp-block-image,
	.yd-held--start .yd-held__neben .wp-block-image {
		max-width: 76%;
		margin: 0 0 0 auto;
	}

	.yd-held--text .yd-held__neben .yd-lead {
		font-size: 1.1rem;
	}

	.yd-spalten__label .yd-label {
		padding-top: 0;
		margin-bottom: 0;
	}

	.yd-index__zeile,
	.yd-index--ohne-link .yd-index__zeile {
		grid-template-columns: minmax(0, 1fr) 1.5rem;
		gap: 0.45rem 1rem;
		padding: 1.4rem 0 1.5rem;
	}

	.yd-index__nr {
		grid-column: 1 / -1;
	}

	.yd-werte--drei {
		grid-template-columns: minmax(0, 1fr);
	}

	.yd-bildpaar {
		grid-template-columns: 1fr;
	}

	.yd-bildpaar > *:nth-child(1) {
		width: 88%;
	}

	.yd-bildpaar > *:nth-child(2) {
		width: 72%;
		margin: -2rem 0 0 auto !important;
	}

	.yd-zitatblock__bild .wp-block-image {
		max-width: 72%;
	}
}

@media (max-width: 600px) {
	.yd-werte {
		grid-template-columns: minmax(0, 1fr);
	}

	.yd-person {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 0.9rem 1rem;
		padding: 1.4rem 0;
	}

	.yd-person__bild {
		width: 48px;
		height: 48px;
	}

	.yd-person__initialen {
		font-size: 1rem;
	}

	.yd-person .yd-person__name {
		font-size: 1.28rem;
	}

	.yd-kopfbereich .wp-block-site-logo img {
		width: 108px !important;
	}

	h1,
	h2,
	.yd-zitat {
		hyphens: auto;
		-webkit-hyphens: auto;
		overflow-wrap: break-word;
	}

	.has-display-font-size {
		font-size: clamp(2.3rem, 10.5vw, 2.9rem) !important;
	}

	.has-xxl-font-size {
		font-size: clamp(2.05rem, 9vw, 2.5rem) !important;
	}

	.yd-formular__senden {
		justify-self: stretch;
		text-align: center;
	}
}

/* =========================================================================
   22. Druck
   ========================================================================= */

@media print {
	body {
		background: #fff;
	}

	.wp-site-blocks {
		width: auto;
		max-width: none;
		margin: 0;
		outline: 0;
	}

	.yd-kopfbereich {
		position: static;
	}

	.wp-block-navigation,
	.yd-formular__senden,
	.yd-laufschrift {
		display: none !important;
	}

	[data-yd-reveal],
	[data-yd-reveal] > *,
	.yd-staffel > *,
	.yd-zeilen .yd-wort__innen,
	.yd-drift,
	.yd-drift-gegen {
		opacity: 1 !important;
		transform: none !important;
		clip-path: none !important;
	}
}

/* =========================================================================
   23. Bewegung reduzieren – die Systemeinstellung hat Vorrang
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	[data-yd-reveal],
	[data-yd-reveal] > *,
	.yd-staffel > *,
	.yd-zeilen .yd-wort__innen,
	.yd-drift,
	.yd-drift-gegen {
		opacity: 1 !important;
		transform: none !important;
		clip-path: none !important;
	}

	.hat-js .yd-abschnitt:not(.ist-sichtbar)::before {
		transform: none;
	}

	.yd-parallax__medium {
		transform: none !important;
		inset: 0 !important;
	}

	.yd-laufschrift__spur {
		animation: none !important;
	}
}
