/**
 * Glashaus: the shared visual language of every site on the engine (Pen: "Typografie · Veredelung",
 * "Quiet Luxury · Glas"). Quiet headings in the site's display face, hairline icons, glass surfaces,
 * light weights, wide-tracked labels. Brand-neutral: the display face and its weight come from the
 * theme (--fyh-display, --fyh-display-weight); without them headings keep the body face.
 * Loaded after the block styles so these rules win ties; specificity is raised with "html body".
 */

/* WordPress zeroes nested alignfull margins; keep the viewport breakout in narrow page templates and the editor twin. */
html body .fyh-faq.alignfull {
	margin-inline: calc( 50% - 50vw );
}

/* --- Ruhige Überschriften (Entwurf B, Pen „Typografie · Veredelung“) ----------
   Klobig war: Inter 600-800 mit -0.04em. Jetzt: Serif in Regular-Gewicht, Laufweite fast neutral,
   Fließtext etwas größer und luftiger. Nur Überschriften und Fließtext; Navigation, Buttons,
   Karten-Titel und Formulare bleiben Inter. */
html body :is(
	.fyh-service-hero__title,
	.fyh-hero__title,
	.fyh-bwd__heading,
	.fyh-arthero__title,
	.fyh-imhero__h1,
	.fyh-service-h2,
	.fyh-service-cta__title,
	.fyh-zg__h2,
	.fyh-suchprofil__cover-title,
	.fyh-rt__h2,
	.fyh-objhead__title,
	.fyh-leist__h2,
	.fyh-faq__h2,
	.fyh-linkhub__title,
	.fyh-callback__ptitle,
	.fyh-cta__title,
	.fyh-legalhero__title
):is(
	.fyh-service-hero__title,
	.fyh-hero__title,
	.fyh-bwd__heading,
	.fyh-arthero__title,
	.fyh-imhero__h1,
	.fyh-service-h2,
	.fyh-service-cta__title,
	.fyh-zg__h2,
	.fyh-suchprofil__cover-title,
	.fyh-rt__h2,
	.fyh-objhead__title,
	.fyh-leist__h2,
	.fyh-faq__h2,
	.fyh-linkhub__title,
	.fyh-callback__ptitle,
	.fyh-cta__title,
	.fyh-legalhero__title
) {
	font-family: var(--fyh-display, inherit);
	font-optical-sizing: auto;
	font-weight: var(--fyh-display-weight, 500);
	letter-spacing: -.012em;
	text-shadow: none;
}

html body :is(.fyh-service-hero__title, .fyh-hero__title, .fyh-arthero__title, .fyh-imhero__h1, .fyh-linkhub__title, .fyh-bwd__heading):is(.fyh-service-hero__title, .fyh-hero__title, .fyh-arthero__title, .fyh-imhero__h1, .fyh-linkhub__title, .fyh-bwd__heading) {
	font-weight: 400;
	letter-spacing: -.018em;
	line-height: 1.1;
}

html body :is(.fyh-service-h2, .fyh-service-cta__title, .fyh-zg__h2, .fyh-rt__h2, .fyh-objhead__title, .fyh-leist__h2, .fyh-faq__h2, .fyh-suchprofil__cover-title):is(.fyh-service-h2, .fyh-service-cta__title, .fyh-zg__h2, .fyh-rt__h2, .fyh-objhead__title, .fyh-leist__h2, .fyh-faq__h2, .fyh-suchprofil__cover-title) {
	line-height: 1.16;
}

html body .fyh-service-h2 {
	max-width: 24ch;
}

/* Artikel: Überschriften im Text in der Serif, der Balken bleibt. */
html body .fyh-artprose__body.typeset :is(h2, h3) {
	font-family: var(--fyh-display, inherit);
	font-optical-sizing: auto;
	font-weight: var(--fyh-display-weight, 500);
	letter-spacing: -.01em;
}

html body .fyh-artprose__body.typeset h2 {
	font-size: clamp( 1.625rem, 2.4vw, 1.9rem );
}

html body .fyh-artprose__body.typeset h3 {
	font-size: clamp( 1.25rem, 1.8vw, 1.4rem );
}

/* Fließtext: mehr Luft, weicheres Grau. */
html body .fyh-service-section > p:not([class]) {
	max-width: 66ch;
	font-size: 1.0625rem;
	line-height: 1.78;
}

html body .fyh-artprose__body.typeset {
	--typeset-leading: 1.8;
}

/* Punkt-Titel: Inter, aber leiser. */
html body :is(.fyh-service-point, .fyh-service-step, .fyh-service-note) h3 {
	font-weight: 600;
	letter-spacing: -.005em;
}

/* Kennzahlen und Kartenköpfe: gleiche Ruhe wie die Überschriften. */
html body .sgui-proof-item dt {
	font-family: var(--fyh-display, inherit);
	font-weight: 500;
	letter-spacing: -.01em;
}

html body :is(.fyh-callback__title, .fyh-bwd__title) {
	font-weight: 650;
	letter-spacing: -.01em;
}

html body .fyh-kd__title {
	font-family: var(--fyh-display, inherit);
	font-weight: var(--fyh-display-weight, 500);
	letter-spacing: -.012em;
}

/* --- Feine Linie · Glas · Ruhe (Pen „Quiet Luxury · Glas“) ------------------
   Ein Ton für alles Bedienbare: Linien 1 px statt 2 px, leichte Gewichte, Kapitälchen-Labels mit weiter
   Laufweite, Glasflächen statt weißer Kästen mit schwarzem Schatten. Serif nur für Worte, die zählen. */

/* Symbole: Haarlinie. Lucide zeichnet mit 1,5-2,5; hier 1,1 (Marken-Symbole mit Füllung bleiben). */
html body svg[stroke="currentColor"] {
	stroke-width: 1.1;
}

/* Labels und Rubriken: klein, leicht, weit gesetzt. */
html body :is(.sgui-rubric, .fyh-service-toc__label, .fyh-bwd__kicker, .fyh-callback__peyebrow, .fyh-callback__pcity, .fyh-callback__timelabel, .fyh-artprose__stats dt) {
	font-weight: 500;
	letter-spacing: .2em;
}

html body :is(.fyh-callback__timelabel, .fyh-artprose__stats dt) {
	font-size: .6875rem;
}

/* Glasflächen. */
html body .fyh-callback__card {
	border: 1px solid rgb( 255 255 255 / .75 );
	border-radius: 18px;
	background: rgb( 255 255 255 / .74 );
	box-shadow: 0 0 0 1px rgb( 26 36 52 / .06 ), 0 32px 64px -36px rgb( 16 22 34 / .3 );
	-webkit-backdrop-filter: blur( 24px ) saturate( 1.15 );
	backdrop-filter: blur( 24px ) saturate( 1.15 );
}

html body .fyh-artprose__stats {
	gap: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

html body .fyh-artprose__stats > div {
	padding: 0 1.6rem;
}

html body .fyh-artprose__stats > div + div {
	border-left: 1px solid rgb( 26 36 52 / .12 );
}

html body .fyh-artprose__stats dd {
	margin-top: .3rem;
	font-family: var(--fyh-display, inherit);
	font-size: 1.1rem;
	font-weight: 400;
	letter-spacing: -.005em;
}

/* Rückruf-Karte: Kopf, Zeitfenster, Felder, Button. */
html body .fyh-callback__ico {
	width: 48px;
	height: 48px;
	border: 1px solid rgb( 26 36 52 / .15 );
	border-radius: 999px;
	background: transparent;
}

html body .fyh-callback__title {
	font-family: var(--fyh-display, inherit);
	font-size: clamp( 1.4rem, 2vw, 1.65rem );
	font-weight: 400;
	letter-spacing: -.012em;
}

html body .fyh-callback__sub {
	font-size: .875rem;
}

html body .fyh-callback__slot {
	flex-direction: row;
	justify-content: center;
	min-height: 46px;
	padding: .5rem .4rem;
	border-color: rgb( 26 36 52 / .14 );
	border-radius: 10px;
	background: rgb( 255 255 255 / .5 );
}

html body .fyh-callback__slot:hover {
	border-color: var(--wp--preset--color--ink);
	transform: none;
}

html body .fyh-callback__slot svg {
	display: none;
}

html body .fyh-callback__slot span {
	font-size: .875rem;
	font-weight: 400;
}

html body .fyh-callback__slot:has( input:checked ) span {
	font-weight: 500;
}

html body :is(.sgui-field > span, .fyh-callback__field > span) {
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .02em;
	color: var(--wp--preset--color--muted);
}

html body .sgui-control {
	min-height: 3.25rem;
	border: 1px solid rgb( 26 36 52 / .14 );
	border-radius: 10px;
	background: rgb( 255 255 255 / .6 );
	box-shadow: none;
	font-weight: 400;
	transition: border-color .2s ease, box-shadow .2s ease;
}

html body .sgui-control:focus,
html body .sgui-control:focus-visible {
	border-color: var(--wp--preset--color--gold-ink, #6e5220);
	box-shadow: 0 0 0 3px rgb( 201 160 90 / .2 );
	outline: 0;
}

html body .fyh-callback__consent {
	font-size: .8125rem;
}

html body .fyh-callback__submit {
	padding: 1rem 1.4rem;
	border-radius: 10px;
	font-size: .9375rem;
	font-weight: 500;
	letter-spacing: .015em;
}

html body .fyh-callback__submit:hover {
	transform: none;
	box-shadow: 0 18px 36px -22px rgb( 16 22 34 / .55 );
}

/* Häkchen-Listen auf Foto-Flächen. */
html body .fyh-callback__checks li {
	font-weight: 500;
}

html body .fyh-callback__check {
	border: 1px solid rgb( 255 255 255 / .55 );
	background: transparent;
}

/* Buttons, Navigation, Inhaltsverzeichnis: ein Gewicht leiser. */
html body :is(.wp-block-button__link, .sgui-submit, .sgui-outline-button) {
	font-weight: 500;
	letter-spacing: .01em;
}

html body .sgui-nav__link {
	font-weight: 500;
}

html body .fyh-callback__ptitle {
	font-weight: 400;
}

/* Hinter dem Glas liegt ein Verlauf, kein flaches Grau. */
html body .fyh-callback {
	background: linear-gradient( 135deg, #e4e9ef 0%, #f4f1ec 55%, #e8ecf1 100% );
}

/* --- Glashaus überall: Karten, Rail, Chips ----------------------------------
   Ein Kartenton für die ganze Seite: Glas mit Haarlinie und weichem Schatten (dunkle Foto-Karten
   bleiben Foto-Karten). Abschnitte mit hellgrauem Grund bekommen den gleichen Verlauf wie hinter
   der Rückruf-Karte. */
:root {
	--fyh-glass-fill: rgb( 255 255 255 / .74 );
	--fyh-glass-edge: 0 0 0 1px rgb( 26 36 52 / .07 );
	--fyh-glass-lift: 0 26px 56px -36px rgb( 16 22 34 / .28 );
	--fyh-glass-wash: linear-gradient( 135deg, #e4e9ef 0%, #f4f1ec 55%, #e8ecf1 100% );
}

html body .sgui-card:not(.sgui-media-card) {
	border: 1px solid rgb( 255 255 255 / .8 );
	border-radius: 18px;
	background: var(--fyh-glass-fill);
	box-shadow: var(--fyh-glass-edge), var(--fyh-glass-lift);
	-webkit-backdrop-filter: blur( 22px ) saturate( 1.15 );
	backdrop-filter: blur( 22px ) saturate( 1.15 );
}

html body :is(.fyh-rat, .fyh-callback) {
	background: var(--fyh-glass-wash);
}

/* Ratgeber: Rail mit Luft unter der Navigation, gleichmäßige Abstände, leise Typografie. */
html body .fyh-rat__rail {
	top: calc( var(--fyh-nav-height) + 2.25rem );
	gap: 2rem;
}

html body .fyh-rat__rail-head,
html body .fyh-rat__rail-label {
	font-size: .6875rem;
	font-weight: 500;
	letter-spacing: .2em;
	color: var(--wp--preset--color--muted);
}

html body .fyh-rat__rail-label {
	margin-bottom: .85rem;
}

html body .fyh-rat__rail-sec .sgui-filter {
	padding: .65rem .9rem;
	border-radius: 10px;
	font-size: .9375rem;
	font-weight: 400;
	line-height: 1.3;
}

html body .fyh-rat__rail-sec .sgui-filter + .sgui-filter {
	margin-top: .2rem;
}

html body .fyh-rat__rail-sec .sgui-filter:is( .is-active, [aria-pressed="true"], [aria-current="true"] ) {
	background: rgb( 255 255 255 / .8 );
	box-shadow: inset 0 0 0 1px rgb( 26 36 52 / .1 );
	font-weight: 500;
}

html body .fyh-opt__count {
	flex: none;
	font-size: .75rem;
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

html body .fyh-rat__live {
	padding: .8rem 1rem;
	border: 1px solid rgb( 255 255 255 / .8 );
	border-radius: 12px;
	background: var(--fyh-glass-fill);
	box-shadow: var(--fyh-glass-edge);
	font-size: .8125rem;
}

html body .fyh-rat__live strong,
html body .fyh-rat__badge {
	font-weight: 500;
}

html body .fyh-rat__badge {
	letter-spacing: .18em;
}

html body .fyh-rat__cta {
	padding: 1.25rem;
	gap: .5rem;
}

html body .fyh-rat__cta-eyebrow {
	font-weight: 500;
	letter-spacing: .2em;
}

html body .fyh-rat__cta-title {
	font-family: var(--fyh-display, inherit);
	font-size: 1.15rem;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -.005em;
}

html body .fyh-rat__cta-body {
	font-size: .8125rem;
	line-height: 1.55;
}

html body .fyh-rat__cta-link {
	margin-top: .5rem;
	font-weight: 500;
}

/* Artikelkarten: Serif-Titel, leise Fußzeile. */
html body .sgui-post-card__title {
	font-family: var(--fyh-display, inherit) !important;
	font-size: 1.375rem !important;
	font-weight: var(--fyh-display-weight, 500) !important;
	line-height: 1.22 !important;
	letter-spacing: -.008em !important;
}

html body .sgui-post-card :is(.sgui-post-card__cta, .sgui-post-card__more) {
	font-weight: 500;
}


/* --- Artikel-Kopfzeile: eine Glasleiste, links Herkunft, rechts Kennzahlen, mittig ausgerichtet. --- */
html body .fyh-artprose__info {
	align-items: center;
	gap: 1rem 2.5rem;
	padding: 1.1rem 1.6rem;
	border: 1px solid rgb( 255 255 255 / .8 );
	border-radius: 16px;
	background: var(--fyh-glass-fill);
	box-shadow: var(--fyh-glass-edge), 0 18px 40px -30px rgb( 16 22 34 / .22 );
	-webkit-backdrop-filter: blur( 20px ) saturate( 1.15 );
	backdrop-filter: blur( 20px ) saturate( 1.15 );
}

html body .fyh-artprose__info-left {
	gap: .65rem;
}

html body .fyh-artprose__author strong {
	font-weight: 500;
}

html body .fyh-artprose__layout {
	margin-top: clamp( 1.5rem, 3vw, 2.25rem );
}

/* --- Inhaltsverzeichnis: Luft unter der Navigation, leise Liste, dünner Aktiv-Strich, Glas-Karte. --- */
@media ( min-width: 1280px ) {
	html body .fyh-service-toc__sticky {
		top: calc( var(--fyh-nav-height, 76px) + 2.5rem );
		max-height: calc( 100svh - var(--fyh-nav-height, 76px) - 4rem );
	}

	html body.admin-bar .fyh-service-toc__sticky {
		top: calc( var(--fyh-nav-height, 76px) + 32px + 2.5rem );
	}

	html body .fyh-service-layout:has( > .fyh-service-toc ) > .fyh-service-cta {
		grid-column: 2;
	}
}

html body .fyh-service-toc__list {
	gap: .1rem;
	margin-top: .9rem;
	padding-top: .9rem;
}

html body .fyh-service-toc__list a {
	padding: .6rem .8rem;
	border-radius: 10px;
	font-size: .84rem;
	font-weight: 400;
	line-height: 1.45;
}

html body .fyh-service-toc__list a:is( :hover, .is-active ) {
	background: rgb( 255 255 255 / .7 );
}

html body .fyh-service-toc__list a.is-active {
	box-shadow: inset 1px 0 0 var(--wp--preset--color--ink), inset 0 0 0 1px rgb( 26 36 52 / .06 );
}

html body .fyh-service-toc__contact {
	gap: .45rem;
	margin-top: 1.5rem;
	padding: 1.25rem 1.3rem;
	border: 1px solid rgb( 255 255 255 / .12 );
	border-radius: 16px;
	background: linear-gradient( 160deg, rgb( 30 42 60 / .94 ), rgb( 16 22 34 / .96 ) );
	box-shadow: inset 0 1px 0 rgb( 255 255 255 / .08 ), 0 26px 48px -30px rgb( 16 22 34 / .6 );
	-webkit-backdrop-filter: blur( 18px );
	backdrop-filter: blur( 18px );
}

html body .fyh-service-toc__contact-title {
	margin: 0 0 .7rem;
	font-family: var(--fyh-display, inherit);
	font-size: 1.15rem;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -.005em;
}

html body .fyh-service-toc__contact-link {
	font-weight: 500;
	letter-spacing: .01em;
}

html body .fyh-service-toc__contact-call {
	font-weight: 500;
}

/* Dunkle Foto-Karten: feine Innenkante statt schwerem Schatten. */
html body .sgui-media-card {
	box-shadow: inset 0 0 0 1px rgb( 255 255 255 / .1 ), 0 26px 48px -32px rgb( 16 22 34 / .5 );
}

/* Inhaltsverzeichnis auf Tablet und Handy: eine schmale Glaskarte, kein schwerer Kasten. */
@media ( max-width: 1279px ) {
	html body .fyh-service-toc {
		padding: .35rem 1.1rem;
		border: 1px solid rgb( 255 255 255 / .8 );
		border-radius: 14px;
		background: var(--fyh-glass-fill);
		box-shadow: var(--fyh-glass-edge), 0 18px 36px -28px rgb( 16 22 34 / .24 );
		-webkit-backdrop-filter: blur( 20px ) saturate( 1.15 );
		backdrop-filter: blur( 20px ) saturate( 1.15 );
	}

	html body .fyh-service-toc__head {
		min-height: 2.75rem;
	}

	html body .fyh-service-toc__chevron {
		width: .875rem;
		height: .875rem;
		color: var(--wp--preset--color--muted);
	}

	html body .fyh-service-toc__list {
		gap: 0;
		margin: 0 0 .5rem;
		padding-top: .5rem;
		border-top-color: rgb( 26 36 52 / .1 );
	}

	html body .fyh-service-toc__list a {
		padding: .5rem .25rem;
		border-radius: 0;
		font-size: .875rem;
		font-weight: 400;
	}

	html body .fyh-service-toc__list a:is( :hover, .is-active ) {
		background: transparent;
	}

	html body .fyh-service-toc__list a.is-active {
		box-shadow: none;
		color: var(--wp--preset--color--ink);
	}
}

/* Links im Text: Gewicht 500 mit Haarlinie statt fetter Unterstreichung. */
html body :is(.fyh-artprose__body.typeset, .fyh-service-content) a:not(.wp-block-button__link) {
	font-weight: 500;
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
	text-decoration-color: rgb( 26 36 52 / .28 );
}

html body :is(.fyh-artprose__body, .fyh-service-content) a:hover:not(.wp-block-button__link) {
	text-decoration-color: currentColor;
}

/* Weiterlesen: ruhige Linkliste mit feinem Pfeil. Quellen: klein, grau, eine je Zeile. */
html body :is(.fyh-artprose__body, .fyh-service-content) :is(h2[id^="weiterlesen"], h2[id^="quellen"]) + ul {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

html body :is(.fyh-artprose__body, .fyh-service-content) h2[id^="weiterlesen"] + ul li {
	margin: 0;
	padding: .7rem 0;
	border-bottom: 1px solid rgb( 26 36 52 / .1 );
}

html body :is(.fyh-artprose__body, .fyh-service-content) h2[id^="weiterlesen"] + ul li::marker {
	content: '';
}

html body :is(.fyh-artprose__body, .fyh-service-content) h2[id^="weiterlesen"] + ul a {
	text-decoration: none;
}

html body :is(.fyh-artprose__body, .fyh-service-content) h2[id^="weiterlesen"] + ul a::after {
	content: '\2192';
	margin-left: .6rem;
	color: var(--wp--preset--color--muted);
	font-weight: 300;
	transition: margin-left .2s ease;
}

html body :is(.fyh-artprose__body, .fyh-service-content) h2[id^="weiterlesen"] + ul a:hover::after {
	margin-left: .9rem;
}

html body :is(.fyh-artprose__body, .fyh-service-content) h2[id^="quellen"] + ul li {
	margin: 0;
	padding: .2rem 0;
	color: var(--wp--preset--color--muted);
	font-size: .875rem;
	line-height: 1.6;
}

html body :is(.fyh-artprose__body, .fyh-service-content) h2[id^="quellen"] + ul li::marker {
	content: '';
}

html body :is(.fyh-artprose__body, .fyh-service-content) h2[id^="quellen"] + ul a {
	color: var(--wp--preset--color--ink-soft, var(--wp--preset--color--muted));
	font-weight: 400;
}

html body :is(.fyh-artprose__body, .fyh-service-content) h2[id^="quellen"] + ul + p {
	margin-top: .75rem;
	color: var(--wp--preset--color--muted);
	font-size: .8125rem;
}

/* Objektbeschreibung (Freitext aus dem Portal): dieselben Überschriften wie überall. */
html body .fyh-prose :is(h2, h3, h4):not(.is-style-fyh-label) {
	font-family: var(--fyh-display, inherit);
	font-weight: var(--fyh-display-weight, 500);
	letter-spacing: -.008em;
}

/* Block-Stil „Label“ (Kapitälchen-Überschrift, z. B. Objektbeschreibung): leicht und weit gesetzt. */
html body .wp-block-heading.is-style-fyh-label {
	font-family: inherit;
	font-weight: 500;
	letter-spacing: .2em;
}

/* Filterzeilen: lange Themen brechen um und schieben den Zähler nie unter den Text. */
html body .sgui-filter {
	gap: .75rem;
}

html body .sgui-filter.fyh-opt,
html body .fyh-opt__label {
	white-space: normal;
	text-align: left;
}

html body .fyh-opt__label {
	min-width: 0;
	align-items: flex-start;
	overflow-wrap: anywhere;
}

html body .fyh-opt__dot {
	flex: none;
	margin-top: .55em;
}


/* Foto-Köpfe: ein Schleier über der Navigation, damit weiße Schrift auf hellen Fotos lesbar bleibt. */
html body :is(.fyh-imhero, .fyh-arthero)::after {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	height: 9rem;
	background: linear-gradient( 180deg, rgb( 10 14 22 / .6 ) 0%, rgb( 10 14 22 / .24 ) 45%, transparent 100% );
	pointer-events: none;
}

/* Objekt-Titel: Serif wie alle Überschriften. */
html body .fyh-icard__title {
	font-family: var(--fyh-display, inherit);
	font-weight: var(--fyh-display-weight, 500);
	letter-spacing: -.012em;
}

/* Helle Navigation im Scroll-Zustand: dunkle Schrift braucht ein dichtes Glas, sonst scheint das Foto durch und der Kontrast kippt. */
html body .sgui-nav--light {
	--sgui-nav-glass: color-mix( in srgb, var(--wp--preset--color--base, #fff) 90%, transparent );
}
