/*
Theme Name: Gestaltungsfreiheit
Theme URI: https://grafik-essen.de/
Description: Child-Theme für Ollie mit eigenen Bausteinen (Patterns) im Corporate Design von Gestaltungsfreiheit.
Author: Verena Nowack
Template: ollie
Version: 0.7.4
Requires at least: 6.5
Text Domain: gestaltungsfreiheit
*/

/* ---------- Grundlagen ---------- */

:root {
	--gf-display: Antonio, "Arial Narrow", sans-serif;
	--gf-text: Inter, system-ui, sans-serif;
}

body {
	background: var(--wp--preset--color--papier);
	color: var(--wp--preset--color--lila);
	font-family: var(--gf-text);
	-webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--orange);
	outline-offset: 3px;
}

/* Große Überschriften in der schmalen Display-Schrift */
.gf-h1,
.gf-h2,
.gf-gestatten,
.gf-reg-titel,
.gf-reg-tab-name {
	font-family: var(--gf-display);
	letter-spacing: 0;
}

.gf-h1 {
	margin: 0;
	font-size: clamp(50px, 6.2vw, 100px);
	font-weight: 500;
	line-height: 1.04;
}

.gf-h2 {
	margin: 0;
	font-size: clamp(42px, 4.8vw, 76px);
	font-weight: 500;
	line-height: 1.06;
}

/* ---------- Header ---------- */

/* Header bleibt beim Scrollen oben stehen */
html {
	scroll-behavior: smooth;
}

header.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Hintergrund und Unschärfe liegen auf einer eigenen Ebene (::before).
   Direkt am Header würde „backdrop-filter“ das mobile Menü-Overlay
   auf die Höhe des Headers begrenzen. */
header.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--preset--color--papier);
	transition: background-color 0.3s ease;
	pointer-events: none;
}

header.site-header .gf-header {
	background: transparent !important;
}

/* Beim Scrollen leicht transparent mit Unschärfe dahinter */
header.site-header.is-scrolled::before {
	background: rgba(250, 250, 245, 0.82);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

body.admin-bar header.site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar header.site-header {
		top: 46px;
	}
}

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

.gf-header {
	border-bottom: 1.5px solid var(--wp--preset--color--lila);
}

.gf-header .gf-logo {
	margin: 0;
}

/* Logo: Seitenverhältnis vorgeben, damit beim Laden nichts springt */
.gf-header .gf-logo img,
.gf-footer .wp-block-image img {
	aspect-ratio: 600 / 146;
}

.gf-nav a {
	text-decoration: none;
}

.gf-nav a:hover,
.gf-nav a:focus-visible,
.gf-nav .current-menu-item > a {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}

/* ---------- Ausgeklapptes Menü (mobil) ---------- */
.gf-nav .wp-block-navigation__responsive-container-open,
.gf-nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--lila);
}

.gf-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 0 clamp(20px, 4.5vw, 64px) !important;
	background: var(--wp--preset--color--papier) !important;
	color: var(--wp--preset--color--lila) !important;
}

/* Kopfzeile im Menü: Logo links, Linie darunter – wie der Header der Seite */
.gf-nav .is-menu-open .wp-block-navigation__responsive-dialog {
	position: relative;
	min-height: 100%;
	padding-top: 94px;
}

.gf-nav .is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "";
	position: absolute;
	top: 22px;
	left: 0;
	width: 198px;
	height: 48px;
	background: url("assets/logo-quer.png") left center / contain no-repeat;
}

.gf-nav .is-menu-open .wp-block-navigation__responsive-dialog::after {
	content: "";
	position: absolute;
	top: 92px;
	left: calc(-1 * clamp(20px, 4.5vw, 64px));
	right: calc(-1 * clamp(20px, 4.5vw, 64px));
	border-bottom: 1.5px solid var(--wp--preset--color--lila);
}

.gf-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	top: 30px !important;
	right: 0 !important;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
}

.gf-nav .is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

/* Menüpunkte groß in Antonio */
.gf-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: clamp(32px, 6vh, 56px) !important;
	align-items: flex-start !important;
}

.gf-nav .is-menu-open .wp-block-navigation__container {
	gap: 6px !important;
	font-size: inherit !important;
}

.gf-nav .is-menu-open .wp-block-navigation-item__content {
	padding: 4px 0 !important;
	color: var(--wp--preset--color--lila) !important;
	font-family: var(--gf-display);
	font-size: clamp(40px, 11vw, 60px) !important;
	font-weight: 500 !important;
	line-height: 1.1 !important;
	letter-spacing: 0;
	text-decoration: none !important;
}

.gf-nav .is-menu-open .wp-block-navigation-item__content:hover,
.gf-nav .is-menu-open .wp-block-navigation-item__content:focus-visible,
.gf-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline !important;
	text-decoration-color: var(--wp--preset--color--orange) !important;
	text-decoration-thickness: 3px !important;
	text-underline-offset: 8px;
}

/* ---------- Footer ---------- */

.gf-footer .wp-block-image {
	margin: 0;
}

.gf-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0;
}

.gf-footer-links a {
	color: inherit;
}

/* ---------- Sektionen ---------- */

.wp-block-post-content > .gf-hero,
.wp-block-post-content > .gf-sektion,
.entry-content > .gf-hero,
.entry-content > .gf-sektion {
	margin-block-start: 0;
}

.gf-sektion {
	scroll-margin-top: 110px;
}

.gf-kopfzeile {
	margin-bottom: 36px;
	gap: 20px;
}

.gf-kopfzeile > * {
	margin: 0;
}

.gf-intro {
	max-width: 24em;
	font-size: 18px;
	line-height: 1.5;
}

/* Kopfzeile mit Slider-Pfeilen (Referenzen): Einleitungssatz rechts neben den Pfeilen */
.gf-kopfzeile > .gf-intro:not(:last-child) {
	margin-left: auto !important;
	margin-right: 12px !important;
}

@media (max-width: 781px) {
	.gf-kopfzeile:has(> .gf-slider-nav) > .gf-h2 {
		flex-basis: 100%;
	}

	.gf-kopfzeile > .gf-intro:not(:last-child) {
		margin-left: 0 !important;
		flex: 1 1 0;
	}
}

.gf-pfeil-link a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid currentColor;
	padding-bottom: 4px;
}

.gf-pfeil-link a:hover {
	border-bottom-color: var(--wp--preset--color--orange);
}

/* ---------- Kopfbereich ---------- */

.gf-hero-spalten {
	gap: clamp(36px, 5vw, 80px) !important;
}

.gf-hero .wp-block-column > * + * {
	margin-top: 32px;
}

.gf-hero-text {
	max-width: 30em;
	color: #ece8e2;
	font-size: clamp(18px, 1.5vw, 20px);
	line-height: 1.55;
}

.gf-hero .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 0;
	font-weight: 600;
}

.gf-hero .is-style-outline .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
}

.gf-hero-bild {
	margin: 0;
}

.gf-hero-bild img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 7 / 6;
	object-fit: cover;
}

/* ---------- Leistungen als Register ---------- */

.gf-reg > * {
	margin-block: 0 !important;
}

.gf-reg-panel {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.gf-reg-panel > * {
	margin: 0 !important;
}

.gf-reg:not(.is-register) .gf-reg-panel + .gf-reg-panel {
	margin-top: 16px !important;
}

.gf-reg-titel {
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
}

.gf-reg-claim {
	max-width: 20em;
	font-size: clamp(26px, 2.8vw, 42px);
	font-weight: 500;
	line-height: 1.18;
	letter-spacing: -0.025em;
}

.gf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	padding: 0;
}

.gf-chips li {
	margin: 0 !important;
	padding: 8px 14px !important;
	border: 1.5px solid currentColor;
	font-size: 16px;
	font-weight: 500;
}

.gf-reg-link {
	margin-top: auto !important;
	font-size: 18px;
	font-weight: 600;
}

.gf-reg-link a {
	color: inherit;
}

/* Register-Ansicht (wird per JavaScript aktiviert) */
.gf-reg.is-register {
	display: grid;
	grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
	border-top: 1.5px solid var(--wp--preset--color--lila);
}

.gf-reg.is-register .gf-reg-panel {
	min-height: 420px;
}

.gf-reg.is-register .gf-reg-panel[hidden] {
	display: none;
}

.gf-reg-tab {
	appearance: none;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 64px;
	padding: 18px 20px;
	border: 0;
	border-bottom: 1.5px solid var(--wp--preset--color--lila);
	background: transparent;
	color: var(--wp--preset--color--lila);
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.gf-reg-tab:hover {
	background: var(--wp--preset--color--hellgrau);
}

.gf-reg-tab[aria-selected="true"] {
	background: var(--wp--preset--color--lila);
	color: var(--wp--preset--color--papier);
}

.gf-reg-tab-name {
	font-size: clamp(28px, 2.4vw, 36px);
	font-weight: 500;
	line-height: 1;
}

.gf-reg-tab:focus-visible,
.gf-reg-panel:focus-visible,
.gf-strip:focus-visible {
	outline: 3px solid var(--wp--preset--color--orange);
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.gf-reg.is-register {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Referenzen-Slider ---------- */

.gf-strip {
	display: flex;
	gap: clamp(16px, 2vw, 28px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 20px;
	scrollbar-width: thin;
}

.gf-strip > * {
	margin: 0 !important;
}

.gf-strip > .wp-block-image {
	flex: 0 0 clamp(200px, 20vw, 290px);
	scroll-snap-align: start;
}

.gf-strip img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--wp--preset--color--hellgrau);
	transition: transform 0.35s ease;
}

.gf-strip .wp-block-image:hover img {
	transform: scale(0.97);
}

.gf-strip figcaption,
.gf-strip .wp-element-caption {
	text-align: left !important;
	margin-top: 12px;
	color: #5c5360;
	font-size: 15px;
	line-height: 1.35;
	text-align: left;
}

.gf-strip figcaption strong {
	color: var(--wp--preset--color--lila);
	font-weight: 600;
}

.gf-slider-nav {
	display: flex;
	gap: 10px;
}

.gf-slider-btn {
	appearance: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid var(--wp--preset--color--lila);
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--lila);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.gf-slider-btn:hover {
	background: var(--wp--preset--color--lila);
	color: var(--wp--preset--color--papier);
}

/* ---------- Über mich ---------- */

.gf-gestatten {
	margin-top: 36px;
	font-size: clamp(32px, 3.4vw, 56px);
	font-weight: 300;
	line-height: 1.08;
}

.gf-ueber-zeile {
	gap: clamp(24px, 4vw, 48px);
	margin-top: clamp(48px, 5vw, 80px);
	padding-top: 32px;
	border-top: 1.5px solid var(--wp--preset--color--lila);
}

.gf-portraet {
	flex: 0 0 180px;
	margin: 0;
}

.gf-ueber-text {
	flex: 1 1 320px;
	max-width: 46em;
	font-size: 18px;
	line-height: 1.6;
}

.gf-ueber-text > * {
	margin-top: 0;
	margin-bottom: 20px;
}

/* ---------- Kontakt ---------- */

.gf-kontakt-spalten {
	gap: clamp(32px, 5vw, 80px) !important;
}

.gf-kontakt .wp-block-column:first-child > * + * {
	margin-top: 24px;
}

.gf-kontakt-text {
	max-width: 26em;
	font-size: 18px;
	line-height: 1.55;
}

.gf-kontakt-daten {
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 600;
	line-height: 1.4;
}

.gf-kontakt-daten a {
	color: inherit;
	text-decoration: none;
}

.gf-kontakt-daten a:hover {
	text-decoration: underline;
}

/* Contact Form 7 im Design von Gestaltungsfreiheit */
.gf-kontakt .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.gf-kontakt .wpcf7-form label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
}

.gf-kontakt .gf-cf7-zeile {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
}

.gf-kontakt .wpcf7-form-control-wrap {
	display: block;
}

.gf-kontakt input[type="text"],
.gf-kontakt input[type="email"],
.gf-kontakt input[type="tel"],
.gf-kontakt textarea {
	width: 100%;
	min-height: 52px;
	padding: 14px 16px;
	border: 2px solid var(--wp--preset--color--tinte) !important;
	border-radius: 0 !important;
	background: var(--wp--preset--color--papier);
	color: var(--wp--preset--color--tinte);
	font: inherit;
	font-size: 18px;
	font-weight: 400;
	box-sizing: border-box;
	box-shadow: none;
}

.gf-kontakt textarea {
	height: 160px;
}

.gf-kontakt .gf-cf7-hinweis {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.gf-kontakt .gf-cf7-hinweis a {
	color: inherit;
	font-weight: 600;
}

.gf-kontakt .wpcf7-submit {
	align-self: flex-start;
	min-height: 54px;
	padding: 0 30px;
	border: 0;
	border-radius: 0 !important;
	background: var(--wp--preset--color--lila);
	color: var(--wp--preset--color--papier);
	font: inherit;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
}

.gf-kontakt .wpcf7-submit:hover {
	background: var(--wp--preset--color--tinte);
}

.gf-kontakt .wpcf7-not-valid-tip {
	margin-top: 6px;
	color: var(--wp--preset--color--tinte);
	font-size: 14px;
	font-weight: 600;
}

.gf-kontakt .wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: 14px 16px;
	border: 2px solid var(--wp--preset--color--tinte);
	background: var(--wp--preset--color--papier);
	color: var(--wp--preset--color--tinte);
}

.gf-kontakt .wpcf7-spinner {
	margin: 0 0 0 12px;
}

/* ---------- Vorlage „Volle Breite ohne Titel" ---------- */

.gf-main .wp-block-post-content > p:empty {
	display: none;
}

.gf-main .wp-block-post-content {
	margin-block: 0;
}

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

	.gf-strip img,
	.gf-reg-tab,
	.gf-slider-btn {
		transition: none;
	}
}

/* ---------- Normale Seiten (Impressum, Datenschutz, AGB …) ----------
   Gleiches Raster wie die Startseite: Text links an der Logo-Kante,
   lesbare Zeilenlänge, weniger Abstand oben. */
body.page-template-default main.wp-block-group {
	padding-top: clamp(40px, 5vw, 72px) !important;
	padding-bottom: clamp(56px, 7vw, 112px) !important;
}

body.page-template-default main > .has-global-padding {
	box-sizing: border-box;
	max-width: 1440px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: clamp(20px, 4.5vw, 64px) !important;
	padding-right: clamp(20px, 4.5vw, 64px) !important;
}

body.page-template-default main > .has-global-padding > * {
	margin-left: 0 !important;
	margin-right: auto !important;
	max-width: 46rem;
}

/* =========================================================
   Leistungsseiten
   ========================================================= */

/* Abstände zwischen den Abschnitten */
.wp-block-post-content > .gf-band,
.wp-block-post-content > .gf-kontakt-aufruf {
	margin-block-start: clamp(80px, 10vw, 160px) !important;
}

/* Innere Gruppen: Abstände kommen aus den Rastern, nicht aus WordPress */
.gf-lk-raster > *,
.gf-lk-links > *,
.gf-lk-rechts > *,
.gf-lk-aktion > *,
.gf-vergleich > *,
.gf-v-feld > *,
.gf-mit-kasten > *,
.gf-schritte > *,
.gf-schritt > *,
.gf-kasten > *,
.gf-fragen-raster > *,
.gf-band-raster > *,
.gf-band-text > *,
.gf-band-fragen > *,
.gf-band-frage > *,
.gf-ka-raster > *,
.gf-ka-text > *,
.gf-plattform-spalte > *,
.gf-frage-spalte > *,
.gf-unterfrage > * {
	margin: 0 !important;
}

/* Kopf */
.gf-brotkrumen {
	margin: 0 0 clamp(40px, 5vw, 72px) !important;
	font-size: 15px;
}

.gf-brotkrumen a {
	color: inherit;
}

.gf-lk-raster {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: end;
}

.gf-dach {
	margin-bottom: 16px !important;
	font-family: var(--gf-display);
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
}

.gf-lk .gf-h1 {
	font-size: clamp(50px, 6.4vw, 104px);
}

.gf-lk-rechts {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.gf-lk-claim {
	font-size: clamp(20px, 1.7vw, 24px);
	font-weight: 500;
	line-height: 1.4;
}

.gf-lk-aktion {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
	font-size: 18px;
}

/* Buttons auf Leistungsseiten */
.gf-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 0;
	background: var(--wp--preset--color--lila);
	color: var(--wp--preset--color--papier);
	font-size: 18px;
	font-weight: 600;
}

.gf-btn .wp-block-button__link:hover {
	background: var(--wp--preset--color--tinte);
	color: var(--wp--preset--color--papier);
}

.gf-lk.has-lila-background-color .gf-btn .wp-block-button__link {
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--tinte);
}

/* Frage als Abschnitts-Überschrift */
.gf-h2-frage {
	max-width: 18em;
	margin: 0 0 clamp(32px, 4vw, 56px) !important;
	font-family: var(--gf-display);
	font-size: clamp(38px, 4.4vw, 72px);
	font-weight: 500;
	line-height: 1.06;
	letter-spacing: 0;
}

.gf-antwort {
	max-width: 46em;
	font-size: 18px;
	line-height: 1.6;
}

/* Texte mit begrenzter Breite links ausrichten statt mittig
   (WordPress zentriert schmale Elemente in Abschnitten sonst automatisch) */
.is-layout-constrained > .gf-antwort,
.is-layout-constrained > .gf-h2-frage,
.is-layout-constrained > .gf-band-titel {
	/* linke Kante der 1312 px breiten Inhaltsspalte, auch auf sehr breiten Bildschirmen */
	margin-left: max(0px, calc((100% - 1312px) / 2)) !important;
	margin-right: auto !important;
}

.gf-lp-block .gf-vergleich + .gf-antwort,
.gf-lp-block .gf-schritte + .gf-antwort {
	margin-top: 32px !important;
}

/* Vergleich */
.gf-vergleich {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border: 1.5px solid var(--wp--preset--color--lila);
}

.gf-vergleich.is-4-8 {
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

.gf-v-feld {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	min-height: 280px;
	padding: clamp(24px, 3vw, 44px);
}

.gf-v-feld.is-text {
	justify-content: flex-start;
	gap: 20px;
}

.gf-v-feld.is-text p:not(.gf-v-titel) {
	font-size: 16px;
	line-height: 1.55;
}

.gf-v-titel {
	font-family: var(--gf-display);
	font-size: 40px;
	font-weight: 500;
	line-height: 1;
}

.gf-v-feld .gf-v-titel + .gf-v-unter {
	margin-top: -16px !important;
}

.gf-v-unter {
	font-size: 18px;
}

/* Logo-Symbol im linken Feld */
.gf-v-feld.has-symbol::after {
	content: "";
	display: block;
	width: 84px;
	height: 84px;
	border: 2px solid currentColor;
	background: var(--wp--preset--color--orange);
	box-shadow: inset 0 0 0 22px var(--wp--preset--color--papier);
}

.gf-v-frage {
	font-family: var(--gf-text);
	font-size: clamp(18px, 1.5vw, 20px);
	font-weight: 600;
	line-height: 1.4;
}

/* Schritte, Spalten, Gruppen */
.gf-mit-kasten {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}

.gf-schritte {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: clamp(20px, 2.4vw, 36px);
}

.gf-lp-block > .gf-schritte {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gf-schritt {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 20px;
	border-top: 4px solid var(--wp--preset--color--lila);
	font-size: 16px;
	line-height: 1.55;
}

.gf-schritte > .gf-schritt { border-top-color: var(--gf-linie, var(--wp--preset--color--lila)); }
.gf-schritte > .gf-schritt:nth-child(4n+1) { --gf-linie: var(--wp--preset--color--orange); }
.gf-schritte > .gf-schritt:nth-child(4n+2) { --gf-linie: var(--wp--preset--color--blaugrau); }
.gf-schritte > .gf-schritt:nth-child(4n+3) { --gf-linie: var(--wp--preset--color--oliv); }
.gf-schritte > .gf-schritt:nth-child(4n+4) { --gf-linie: var(--wp--preset--color--lila); }
.gf-schritte > .gf-gruppe { --gf-linie: var(--wp--preset--color--lila) !important; gap: 16px; }

.gf-schritt-titel {
	font-family: var(--gf-display);
	font-size: 30px;
	font-weight: 500;
	line-height: 1.06;
	letter-spacing: 0;
}

.gf-spalte-frage {
	font-family: var(--gf-text);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

.gf-schritt a,
.gf-antwort a,
.gf-fragen-liste a {
	font-weight: 600;
}

/* Grauer Kasten mit Kennzahl */
.gf-kasten {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(24px, 3vw, 40px);
	font-size: 16px;
	line-height: 1.55;
}

.gf-kasten-frage {
	font-family: var(--gf-text);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.gf-kasten-gross {
	font-family: var(--gf-display);
	font-size: clamp(40px, 4.2vw, 64px);
	font-weight: 500;
	line-height: 1.04;
}

/* Plattformen (Social Media) */
.gf-plattform-spalte {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.gf-plattformen {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 36px;
	padding: 0;
	list-style: none;
}

.gf-plattformen li {
	margin: 0 !important;
	font-family: var(--gf-display);
	font-size: clamp(36px, 4vw, 60px);
	font-weight: 300;
	line-height: 1.1;
}

/* Druck & Produktion (Messe) */
.gf-frage-spalte {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.gf-frage-spalte .gf-h2-frage {
	margin-bottom: 0 !important;
}

.gf-unterfrage {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 20px !important;
	padding-top: 24px;
	border-top: 1.5px solid var(--wp--preset--color--lila);
}

/* Lila Band */
.gf-band .gf-h2-frage {
	margin-bottom: 0 !important;
}

.gf-band-raster {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(32px, 5vw, 80px);
	align-items: end;
}

.gf-band-text {
	display: flex;
	flex-direction: column;
	gap: 24px;
	color: #ece8e2;
	font-size: 18px;
	line-height: 1.6;
}

.gf-band-titel {
	margin-bottom: clamp(32px, 4vw, 56px) !important;
	color: var(--wp--preset--color--orange);
	font-family: var(--gf-display);
	font-size: clamp(56px, 6.4vw, 104px);
	font-weight: 500;
	line-height: 1.04;
}

.gf-band-fragen {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(32px, 5vw, 80px);
}

.gf-band-frage {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 24px;
	border-top: 1.5px solid currentColor;
	color: #ece8e2;
	font-size: 17px;
	line-height: 1.6;
}

.gf-band-frage .gf-v-frage {
	color: var(--wp--preset--color--papier);
}

/* Häufige Fragen zum Aufklappen */
.gf-fragen-raster {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}

.gf-fragen-liste {
	border-top: 1.5px solid var(--wp--preset--color--lila);
}

.gf-fragen-liste > * {
	margin: 0 !important;
}

.gf-fragen-liste details {
	border-bottom: 1.5px solid var(--wp--preset--color--lila);
}

.gf-fragen-liste summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	min-height: 72px;
	padding: 20px 0;
	list-style: none;
	cursor: pointer;
	font-size: clamp(19px, 1.6vw, 22px);
	font-weight: 600;
	line-height: 1.35;
}

.gf-fragen-liste summary::-webkit-details-marker {
	display: none;
}

.gf-fragen-liste summary::after {
	content: "";
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	background:
		linear-gradient(currentColor, currentColor) center / 2.2px 100% no-repeat,
		linear-gradient(currentColor, currentColor) center / 100% 2.2px no-repeat;
	transition: transform 0.25s ease;
}

.gf-fragen-liste details[open] > summary::after {
	transform: rotate(45deg);
}

.gf-fragen-liste details > :not(summary) {
	max-width: 46em;
	margin: 0 0 28px !important;
	font-size: 18px;
	line-height: 1.6;
}

.gf-fragen-liste details > .gf-chips {
	margin-top: -8px !important;
}

@media (prefers-reduced-motion: reduce) {
	.gf-fragen-liste summary::after {
		transition: none;
	}
}

/* Kontakt-Aufruf */
.gf-ka-raster {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
}

.gf-ka-text {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 760px;
	font-size: 18px;
	line-height: 1.55;
}

.gf-ka-text a {
	color: inherit;
	font-weight: 600;
}

/* Mobil */
@media (max-width: 960px) {
	.gf-lk-raster,
	.gf-vergleich,
	.gf-vergleich.is-4-8,
	.gf-mit-kasten,
	.gf-band-raster,
	.gf-band-fragen,
	.gf-fragen-raster {
		grid-template-columns: minmax(0, 1fr);
	}

	.gf-v-feld {
		min-height: 0;
	}
}

/* =========================================================
   Animationen
   Greifen nur, wenn das Skript die Klasse „gf-anim" setzt –
   also nicht im Editor und nicht bei „Bewegung reduzieren".
   ========================================================= */

/* Einblenden beim Scrollen */
.gf-anim .gf-rv {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gf-anim .gf-rv.is-in {
	opacity: 1;
	transform: none;
}

.gf-anim .gf-rv-gruppe > * {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gf-anim .gf-rv-gruppe.is-in > * {
	opacity: 1;
	transform: none;
}

.gf-anim .gf-rv-gruppe > :nth-child(2) { transition-delay: 0.08s; }
.gf-anim .gf-rv-gruppe > :nth-child(3) { transition-delay: 0.16s; }
.gf-anim .gf-rv-gruppe > :nth-child(4) { transition-delay: 0.24s; }
.gf-anim .gf-rv-gruppe > :nth-child(5) { transition-delay: 0.32s; }
.gf-anim .gf-rv-gruppe > :nth-child(6) { transition-delay: 0.40s; }
.gf-anim .gf-rv-gruppe > :nth-child(7) { transition-delay: 0.48s; }

/* Farblinien über den Ablauf-Schritten zeichnen sich von links */
.gf-anim .gf-schritte > .gf-schritt {
	position: relative;
	border-top-color: transparent !important;
}

.gf-anim .gf-schritte > .gf-schritt::before {
	content: "";
	position: absolute;
	top: -4px;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--gf-linie, var(--wp--preset--color--lila));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gf-anim .gf-schritte.is-in > .gf-schritt::before { transform: scaleX(1); }
.gf-anim .gf-schritte > .gf-schritt:nth-child(2)::before { transition-delay: 0.18s; }
.gf-anim .gf-schritte > .gf-schritt:nth-child(3)::before { transition-delay: 0.36s; }
.gf-anim .gf-schritte > .gf-schritt:nth-child(4)::before { transition-delay: 0.54s; }

/* Einstieg Startseite: Headline zeilenweise, danach Text, Buttons, Bild */
.gf-zeile {
	display: block;
	overflow: hidden;
	padding-bottom: 0.06em;
	margin-bottom: -0.06em;
}

.gf-zeile > span {
	display: inline-block;
}

.gf-anim .gf-rv-hero .gf-zeile > span {
	transform: translateY(105%);
	transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gf-anim .gf-rv-hero .gf-zeile:nth-of-type(2) > span { transition-delay: 0.12s; }

.gf-anim .gf-rv-hero .gf-hero-text,
.gf-anim .gf-rv-hero .gf-hero-buttons {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.7s ease 0.45s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s;
}

.gf-anim .gf-rv-hero .gf-hero-buttons { transition-delay: 0.6s; }

.gf-anim .gf-rv-hero .gf-hero-bild {
	opacity: 0;
	transform: scale(0.97);
	transition: opacity 1s ease 0.3s, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
}

.gf-anim .gf-rv-hero.is-in .gf-zeile > span,
.gf-anim .gf-rv-hero.is-in .gf-hero-text,
.gf-anim .gf-rv-hero.is-in .gf-hero-buttons,
.gf-anim .gf-rv-hero.is-in .gf-hero-bild {
	opacity: 1;
	transform: none;
}

/* Leistungs-Register: Inhalt gleitet beim Wechsel herein */
@keyframes gf-ein {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@keyframes gf-ein-flaeche {
	from { opacity: 0.5; }
	to { opacity: 1; }
}

.gf-anim .gf-reg-panel.gf-ein {
	animation: gf-ein-flaeche 0.35s ease both;
}

.gf-anim .gf-reg-panel.gf-ein > .gf-reg-titel,
.gf-anim .gf-reg-panel.gf-ein > .gf-reg-claim,
.gf-anim .gf-reg-panel.gf-ein > .gf-reg-link,
.gf-anim .gf-reg-panel.gf-ein .gf-chips li {
	animation: gf-ein 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.gf-anim .gf-reg-panel.gf-ein > .gf-reg-claim { animation-delay: 0.06s; }
.gf-anim .gf-reg-panel.gf-ein .gf-chips li:nth-child(1) { animation-delay: 0.18s; }
.gf-anim .gf-reg-panel.gf-ein .gf-chips li:nth-child(2) { animation-delay: 0.24s; }
.gf-anim .gf-reg-panel.gf-ein .gf-chips li:nth-child(3) { animation-delay: 0.30s; }
.gf-anim .gf-reg-panel.gf-ein .gf-chips li:nth-child(4) { animation-delay: 0.36s; }
.gf-anim .gf-reg-panel.gf-ein .gf-chips li:nth-child(5) { animation-delay: 0.42s; }
.gf-anim .gf-reg-panel.gf-ein .gf-chips li:nth-child(6) { animation-delay: 0.48s; }
.gf-anim .gf-reg-panel.gf-ein .gf-chips li:nth-child(7) { animation-delay: 0.54s; }
.gf-anim .gf-reg-panel.gf-ein > .gf-reg-link { animation-delay: 0.3s; }

/* Schlanker Header beim Scrollen */
.gf-header {
	transition: padding 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gf-header .gf-logo img {
	transition: height 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

header.site-header.is-schmal .gf-header {
	padding-top: 12px !important;
	padding-bottom: 12px !important;
}

header.site-header.is-schmal .gf-header .gf-logo img {
	height: 34px !important;
}

/* Weich aufklappende Fragen: Inhalt liegt in einem eigenen Container */
.gf-fragen-liste .gf-details-inhalt {
	overflow: hidden;
	max-width: none !important;
	margin: 0 !important;
}

.gf-fragen-liste .gf-details-inhalt > * {
	max-width: 46em;
	margin: 0 0 20px !important;
	font-size: 18px;
	line-height: 1.6;
}

.gf-fragen-liste .gf-details-inhalt > :last-child {
	margin-bottom: 28px !important;
}

.gf-fragen-liste details.is-zu > summary::after {
	transform: none;
}

/* Links: Unterstreichung wächst von links (eigenständige Links) */
.gf-nav a,
.gf-footer-links a,
.gf-brotkrumen a,
.gf-reg-link a {
	text-decoration: none !important;
	background-image: linear-gradient(var(--wp--preset--color--orange), var(--wp--preset--color--orange));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 2px;
	padding-bottom: 3px;
	transition: background-size 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gf-nav a:hover,
.gf-nav a:focus-visible,
.gf-nav .current-menu-item > a,
.gf-footer-links a:hover,
.gf-footer-links a:focus-visible,
.gf-brotkrumen a:hover,
.gf-brotkrumen a:focus-visible,
.gf-reg-link a:hover,
.gf-reg-link a:focus-visible {
	background-size: 100% 2px;
}

/* Im ausgeklappten Mobilmenü gilt die eigene Unterstreichung */
.gf-nav .is-menu-open .wp-block-navigation-item__content {
	background-image: none !important;
	padding-bottom: 4px !important;
}

/* Brotkrumen und „Mehr zu …" bleiben auch ohne Maus als Link erkennbar */
.gf-brotkrumen a,
.gf-reg-link a {
	background-image:
		linear-gradient(var(--wp--preset--color--orange), var(--wp--preset--color--orange)),
		linear-gradient(currentColor, currentColor);
	background-size: 0% 2px, 100% 1px;
	background-position: 0 100%, 0 100%;
}

.gf-brotkrumen a:hover,
.gf-brotkrumen a:focus-visible,
.gf-reg-link a:hover,
.gf-reg-link a:focus-visible {
	background-size: 100% 2px, 100% 1px;
}

/* Links im Fließtext: Unterstreichung bleibt, färbt sich beim Überfahren orange */
.gf-antwort a,
.gf-fragen-liste a,
.gf-schritt a,
.gf-ka-text a,
.gf-kontakt-text a {
	text-decoration-color: currentColor;
	transition: text-decoration-color 0.25s ease;
}

.gf-antwort a:hover,
.gf-fragen-liste a:hover,
.gf-schritt a:hover,
.gf-ka-text a:hover,
.gf-kontakt-text a:hover {
	text-decoration-color: var(--wp--preset--color--orange);
}

.gf-pfeil-link a {
	transition: border-color 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
	.gf-header,
	.gf-header .gf-logo img,
	.gf-nav a,
	.gf-footer-links a,
	.gf-brotkrumen a,
	.gf-reg-link a {
		transition: none !important;
	}
}

/* Beim Drucken immer alles zeigen */
@media print {
	.gf-anim .gf-rv,
	.gf-anim .gf-rv-gruppe > *,
	.gf-anim .gf-rv-hero .gf-zeile > span,
	.gf-anim .gf-rv-hero .gf-hero-text,
	.gf-anim .gf-rv-hero .gf-hero-buttons,
	.gf-anim .gf-rv-hero .gf-hero-bild {
		opacity: 1 !important;
		transform: none !important;
	}
}
