/* ==========================================================================
   Fördex – Designsystem
   Abgeleitet aus dem Logo: Fördex-Blau #153549, Bernstein #f9a902,
   das „ö“ (zwei Punkte + Ring) als wiederkehrendes Markierungselement.
   ========================================================================== */

:root {
	/* Farbe */
	--fd-ink: #0b2230;
	--fd-navy: #153549;
	--fd-navy-2: #1d4660;
	--fd-amber: #f9a902;
	--fd-amber-soft: #ffe7a8;
	--fd-amber-ink: #8a5a00;
	--fd-paper: #f6f4ef;
	--fd-mist: #e9eff2;
	--fd-white: #ffffff;
	--fd-text: #10293a;
	--fd-muted: #52687a;
	--fd-line: rgba(21, 53, 73, 0.14);
	--fd-line-light: rgba(255, 255, 255, 0.14);
	--fd-on-dark: #e8eef2;
	--fd-on-dark-muted: #a9bccb;
	--fd-success: #1f7a4d;
	--fd-error: #b42318;

	/* Typografie */
	--fd-font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--fd-font-body: Inter, "Segoe UI", system-ui, sans-serif;
	--fd-fs-xs: 0.8125rem;
	--fd-fs-sm: 0.9375rem;
	--fd-fs-base: 1.0625rem;
	--fd-fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	--fd-fs-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);
	--fd-fs-h2: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
	--fd-fs-h1: clamp(2.375rem, 1.5rem + 3.9vw, 4.5rem);

	/* Abstände (8er-Raster) */
	--fd-s1: 0.25rem;
	--fd-s2: 0.5rem;
	--fd-s3: 0.75rem;
	--fd-s4: 1rem;
	--fd-s5: 1.5rem;
	--fd-s6: 2rem;
	--fd-s7: 3rem;
	--fd-s8: 4rem;
	--fd-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);

	/* Layout */
	--fd-container: 1240px;
	--fd-gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
	--fd-header-h: 76px;

	/* Form */
	--fd-r-sm: 8px;
	--fd-r: 16px;
	--fd-r-lg: 28px;
	--fd-shadow: 0 1px 2px rgba(11, 34, 48, 0.06), 0 12px 32px -12px rgba(11, 34, 48, 0.18);
	--fd-shadow-lg: 0 2px 4px rgba(11, 34, 48, 0.06), 0 40px 80px -32px rgba(11, 34, 48, 0.35);
	--fd-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Basis
   -------------------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--fd-header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--fd-white);
	color: var(--fd-text);
	font-family: var(--fd-font-body);
	font-size: var(--fd-fs-base);
	line-height: 1.65;
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, picture { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--fd-font-display);
	font-weight: 650;
	line-height: 1.08;
	letter-spacing: -0.022em;
	color: var(--fd-ink);
	text-wrap: balance;
}
h1 { font-size: var(--fd-fs-h1); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: var(--fd-fs-h2); }
h3 { font-size: var(--fd-fs-h3); line-height: 1.2; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--fd-amber); }

:focus-visible {
	outline: 3px solid var(--fd-amber);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--fd-amber-soft); color: var(--fd-ink); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.fd-skip {
	position: absolute;
	left: var(--fd-s4);
	top: -100px;
	z-index: 100;
	padding: var(--fd-s3) var(--fd-s4);
	background: var(--fd-ink);
	color: var(--fd-white);
	border-radius: var(--fd-r-sm);
}
.fd-skip:focus { top: var(--fd-s4); }

.fd-container {
	width: 100%;
	max-width: calc(var(--fd-container) + 2 * var(--fd-gutter));
	margin-inline: auto;
	padding-inline: var(--fd-gutter);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.fd-btn,
.wp-block-button__link {
	--_bg: var(--fd-ink);
	--_fg: var(--fd-white);
	--_bd: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--fd-s2);
	min-height: 48px;
	padding: 0.8rem 1.4rem;
	border: 1.5px solid var(--_bd);
	border-radius: 999px;
	background: var(--_bg);
	color: var(--_fg);
	font: 600 var(--fd-fs-sm)/1.2 var(--fd-font-body);
	letter-spacing: 0.005em;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--fd-ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.fd-btn:hover,
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(11, 34, 48, 0.45); }
.fd-btn:active,
.wp-block-button__link:active { transform: translateY(0); }

.fd-btn--primary { --_bg: var(--fd-navy); }
.fd-btn--primary:hover { --_bg: var(--fd-ink); }

.fd-btn--accent,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	--_bg: var(--fd-amber);
	--_fg: var(--fd-ink);
}
.fd-btn--accent:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { --_bg: #ffbb24; }

.wp-block-button.is-style-outline .wp-block-button__link {
	--_bg: transparent;
	--_fg: var(--fd-ink);
	--_bd: var(--fd-line);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { --_bd: var(--fd-ink); box-shadow: none; }

.fd-btn--block { width: 100%; }

.wp-block-button__link::after,
.fd-btn--accent::after {
	content: "→";
	font-weight: 500;
	transition: transform 0.25s var(--fd-ease);
}
.wp-block-button__link:hover::after,
.fd-btn--accent:hover::after { transform: translateX(3px); }

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--fd-s3); }

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */

.fd-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.fd-header.is-scrolled {
	border-bottom-color: var(--fd-line);
	box-shadow: 0 8px 30px -20px rgba(11, 34, 48, 0.35);
}
.admin-bar .fd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fd-header { top: 46px; } }

.fd-header__bar {
	display: flex;
	align-items: center;
	gap: var(--fd-s5);
	min-height: var(--fd-header-h);
}

.fd-logo,
.custom-logo-link { display: block; flex: none; }
.fd-logo img,
.custom-logo { width: auto; height: 46px; }

.fd-nav { margin-left: auto; }
.fd-nav__list {
	display: flex;
	gap: var(--fd-s1);
	margin: 0;
	padding: 0;
	list-style: none;
}
.fd-nav__list a {
	position: relative;
	display: block;
	padding: 0.55rem 0.8rem;
	border-radius: 999px;
	color: var(--fd-text);
	font-size: var(--fd-fs-sm);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s, background-color 0.2s;
}
.fd-nav__list a:hover { background: var(--fd-mist); color: var(--fd-ink); }
.fd-nav__list a[aria-current],
.fd-nav__list .current-menu-item > a { color: var(--fd-ink); }
.fd-nav__list a[aria-current]::after,
.fd-nav__list .current-menu-item > a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 2px;
	width: 14px;
	height: 4px;
	transform: translateX(-50%);
	background: radial-gradient(circle at 2px 2px, var(--fd-amber) 2px, transparent 2.5px) 0 0 / 10px 4px repeat-x;
}

/* Dropdowns (falls im Menü Unterpunkte angelegt werden) */
.fd-nav__list .menu-item-has-children { position: relative; }
.fd-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: var(--fd-s2);
	list-style: none;
	background: var(--fd-white);
	border: 1px solid var(--fd-line);
	border-radius: var(--fd-r);
	box-shadow: var(--fd-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s var(--fd-ease), visibility 0.2s;
}
.fd-nav__list .menu-item-has-children:hover > .sub-menu,
.fd-nav__list .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.fd-header__cta { flex: none; }

.fd-burger {
	display: none;
	width: 48px;
	height: 48px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--fd-line);
	border-radius: 999px;
	background: var(--fd-white);
	cursor: pointer;
}
.fd-burger__lines,
.fd-burger__lines::before,
.fd-burger__lines::after {
	display: block;
	width: 18px;
	height: 2px;
	margin: 0 auto;
	background: var(--fd-ink);
	border-radius: 2px;
	transition: transform 0.3s var(--fd-ease), opacity 0.2s;
}
.fd-burger__lines { position: relative; }
.fd-burger__lines::before,
.fd-burger__lines::after { content: ""; position: absolute; left: 0; }
.fd-burger__lines::before { top: -6px; }
.fd-burger__lines::after { top: 6px; }
.fd-burger[aria-expanded="true"] .fd-burger__lines { background: transparent; }
.fd-burger[aria-expanded="true"] .fd-burger__lines::before { transform: translateY(6px) rotate(45deg); }
.fd-burger[aria-expanded="true"] .fd-burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

.fd-mobile {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: calc(100dvh - var(--fd-header-h));
	overflow-y: auto;
	border-top: 1px solid var(--fd-line);
	background: var(--fd-white);
	padding-block: var(--fd-s4) var(--fd-s5);
	box-shadow: 0 30px 60px -30px rgba(11, 34, 48, 0.45);
}
.fd-mobile__list {
	margin: 0 0 var(--fd-s4);
	padding: 0;
	list-style: none;
}
.fd-mobile__list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.95rem 0.25rem;
	border-bottom: 1px solid var(--fd-line);
	font-family: var(--fd-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--fd-ink);
	text-decoration: none;
}
.fd-mobile__list a::after { content: "→"; color: var(--fd-amber-ink); }
.fd-mobile__list .sub-menu { padding-left: var(--fd-s4); list-style: none; }

@media (max-width: 1080px) {
	.fd-nav, .fd-header__cta { display: none; }
	.fd-burger { display: block; }
}
@media (min-width: 1081px) {
	.fd-mobile { display: none !important; }
}

/* --------------------------------------------------------------------------
   Sektionen (Startseite)
   -------------------------------------------------------------------------- */

.fd-home > .wp-block-group { margin: 0; }

/* Komponenten steuern ihre Abstände selbst (statt des globalen Block-Abstands) */
:is(.fd-card, .fd-step, .fd-stat, .fd-panel, .fd-hero__copy, .fd-head, .fd-contact__copy, .fd-form-card, .fd-split__body, .fd-faq, .fd-wrap, .fd-hero__inner, .fd-cards, .fd-steps, .fd-split, .fd-contact) > * { margin-block: 0; }
.fd-wrap > .fd-cta-row { margin-top: clamp(2.5rem, 2rem + 1.5vw, 3.5rem); }
.fd-split__body > .fd-note { margin-top: var(--fd-s5); }
.fd-head > * + * { margin-top: var(--fd-s4); }
.fd-head > .fd-cta-row { margin-top: var(--fd-s6); }
.fd-hero__copy > * + * { margin-top: var(--fd-s5); }
.fd-contact__copy > * + * { margin-top: var(--fd-s5); }
.fd-hero__inner + .fd-trust { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }

.fd-section {
	position: relative;
	padding-block: var(--fd-section);
}
.fd-section--paper { background: var(--fd-paper); }
.fd-section--dark {
	background: var(--fd-ink);
	color: var(--fd-on-dark);
}
.fd-section--dark :is(h2, h3) { color: var(--fd-white); }

.fd-wrap {
	width: 100%;
	max-width: calc(var(--fd-container) + 2 * var(--fd-gutter));
	margin-inline: auto;
	padding-inline: var(--fd-gutter);
}

.fd-head {
	max-width: 760px;
	margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.fd-head > * + * { margin-top: var(--fd-s4); }
.fd-head--center { margin-inline: auto; text-align: center; }

.fd-intro { font-size: var(--fd-fs-lead); color: var(--fd-muted); }
.fd-section--dark .fd-intro { color: var(--fd-on-dark-muted); }

/* Augenbraue mit „ö“-Punkten */
.fd-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-size: var(--fd-fs-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fd-amber-ink);
}
.fd-eyebrow::before {
	content: "";
	flex: none;
	width: 14px;
	height: 5px;
	background: radial-gradient(circle at 2.5px 2.5px, var(--fd-amber) 2.5px, transparent 3px) 0 0 / 9px 5px repeat-x;
}
.fd-eyebrow a { color: inherit; text-decoration: none; }
.fd-section--dark .fd-eyebrow,
.fd-eyebrow--light,
.fd-hero .fd-eyebrow { color: var(--fd-amber); }

.fd-cta-row { margin-top: clamp(2.5rem, 2rem + 1.5vw, 3.5rem); }
.fd-cta-row.is-center { justify-content: center; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.fd-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--fd-ink);
	color: var(--fd-on-dark);
	padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
}
/* Ring + Punkte aus dem „ö“ des Logos als ruhige Bildmarke */
.fd-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -14vw;
	top: 50%;
	width: min(78vw, 980px);
	aspect-ratio: 1;
	transform: translateY(-48%);
	border-radius: 50%;
	border: clamp(48px, 7vw, 120px) solid rgba(249, 169, 2, 0.07);
	box-shadow: inset 0 0 0 1px rgba(249, 169, 2, 0.12), 0 0 0 1px rgba(249, 169, 2, 0.08);
}
.fd-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		radial-gradient(60rem 30rem at 85% -10%, rgba(29, 70, 96, 0.9), transparent 60%),
		radial-gradient(30rem 20rem at 0% 110%, rgba(249, 169, 2, 0.10), transparent 70%);
}

.fd-hero__inner {
	display: grid;
	gap: clamp(2.5rem, 2rem + 3vw, 5rem);
	align-items: center;
}
@media (min-width: 960px) {
	.fd-hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); }
}

.fd-hero__copy > * + * { margin-top: var(--fd-s5); }
.fd-hero h1 { color: var(--fd-white); max-width: 16ch; }
.fd-hero h1 em,
.fd-hero h1 mark {
	font-style: normal;
	background: none;
	color: var(--fd-amber);
}
.fd-lead {
	max-width: 58ch;
	font-size: var(--fd-fs-lead);
	color: var(--fd-on-dark-muted);
}
.fd-hero .wp-block-buttons { padding-top: var(--fd-s2); }
.fd-hero .wp-block-button.is-style-outline .wp-block-button__link {
	--_fg: var(--fd-white);
	--_bd: rgba(255, 255, 255, 0.28);
}
.fd-hero .wp-block-button.is-style-outline .wp-block-button__link:hover { --_bd: var(--fd-white); }

/* Kennzahlen-Panel */
.fd-panel {
	position: relative;
	padding: clamp(1.25rem, 1rem + 1vw, 2rem);
	border: 1px solid var(--fd-line-light);
	border-radius: var(--fd-r-lg);
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.fd-panel > .fd-eyebrow { margin-bottom: var(--fd-s4); }

.fd-stat {
	display: grid;
	grid-template-columns: 52px 1fr;
	column-gap: var(--fd-s4);
	row-gap: var(--fd-s1);
	padding: var(--fd-s5) 0;
	border-top: 1px solid var(--fd-line-light);
}
.fd-stat:last-child { padding-bottom: 0; }
.fd-stat::before {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--fd-amber);
	color: var(--fd-ink);
	font: 700 1.05rem/1 var(--fd-font-display);
}
.fd-stat--euro::before { content: "€"; font-size: 1.35rem; }
.fd-stat--pct::before { content: "%"; font-size: 1.3rem; }
.fd-stat--ki::before { content: "KI"; }
.fd-stat :is(h2, h3) { color: var(--fd-white); font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem); line-height: 1.2; letter-spacing: -0.012em; }
.fd-stat p { font-size: var(--fd-fs-sm); color: var(--fd-on-dark-muted); }

/* Vertrauensleiste */
.fd-trust {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fd-s3) var(--fd-s6);
	margin: clamp(3rem, 2rem + 3vw, 4.5rem) 0 0;
	padding: var(--fd-s5) 0 0;
	border-top: 1px solid var(--fd-line-light);
	list-style: none;
}
.fd-trust li {
	display: flex;
	align-items: center;
	gap: var(--fd-s3);
	font-size: var(--fd-fs-sm);
	font-weight: 500;
	color: var(--fd-on-dark);
}
.fd-trust li::before {
	content: "";
	width: 20px;
	height: 20px;
	flex: none;
	border-radius: 50%;
	background: var(--fd-amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.2 2.6 2.6L14 7.4' fill='none' stroke='%230b2230' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* --------------------------------------------------------------------------
   Förderrechner
   -------------------------------------------------------------------------- */

.fd-calc {
	display: grid;
	gap: var(--fd-s5);
	align-items: start;
}
@media (min-width: 960px) {
	.fd-calc { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--fd-s6); }
}

.fd-calc__form {
	display: grid;
	gap: var(--fd-s5);
	padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
	background: var(--fd-white);
	border: 1px solid var(--fd-line);
	border-radius: var(--fd-r-lg);
	box-shadow: var(--fd-shadow);
}
.fd-calc__row { display: grid; gap: var(--fd-s4); }
@media (min-width: 640px) { .fd-calc__row { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; } }

.fd-calc__note { font-size: var(--fd-fs-xs); color: var(--fd-muted); }

.fd-sizes { margin: 0; padding: 0; border: 0; min-width: 0; }
.fd-sizes__grid { display: grid; gap: var(--fd-s3); }
@media (min-width: 640px) { .fd-sizes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.fd-size { position: relative; display: block; cursor: pointer; }
.fd-size input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.fd-size__box {
	display: grid;
	gap: 2px;
	height: 100%;
	padding: 0.85rem 1rem;
	border: 1.5px solid var(--fd-line);
	border-radius: var(--fd-r);
	transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.fd-size__box strong { font: 650 1.0625rem/1.25 var(--fd-font-display); color: var(--fd-ink); }
.fd-size__box span { font-size: var(--fd-fs-xs); color: var(--fd-muted); }
.fd-size:hover .fd-size__box { border-color: rgba(21, 53, 73, 0.35); }
.fd-size input:checked + .fd-size__box {
	border-color: var(--fd-navy);
	background: var(--fd-mist);
	box-shadow: inset 0 0 0 1px var(--fd-navy);
}
.fd-size input:focus-visible + .fd-size__box { outline: 3px solid var(--fd-amber); outline-offset: 2px; }

.fd-calc__result {
	position: relative;
	overflow: hidden;
	display: grid;
	gap: var(--fd-s5);
	padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
	border-radius: var(--fd-r-lg);
	background: var(--fd-ink);
	color: var(--fd-on-dark);
	box-shadow: var(--fd-shadow-lg);
}
@media (min-width: 960px) { .fd-calc__result { position: sticky; top: calc(var(--fd-header-h) + 24px); } }
.fd-calc__result::before {
	content: "";
	position: absolute;
	right: -90px;
	top: -90px;
	width: 220px;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 34px solid rgba(249, 169, 2, 0.12);
	pointer-events: none;
}
.fd-calc__result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--fd-s3); }
.fd-calc__result h3 { color: var(--fd-white); font-size: 1.25rem; }
.fd-badge {
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(249, 169, 2, 0.16);
	color: var(--fd-amber);
	font-size: var(--fd-fs-xs);
	font-weight: 700;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
}
.fd-calc__list { margin: 0; display: grid; }
.fd-calc__list > div {
	display: flex;
	justify-content: space-between;
	gap: var(--fd-s4);
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--fd-line-light);
	font-size: var(--fd-fs-sm);
}
.fd-calc__list dt { color: var(--fd-on-dark-muted); }
.fd-calc__list dd { margin: 0; font-weight: 600; color: var(--fd-white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fd-calc__list .is-funded dd { color: var(--fd-amber); }
.fd-calc__total { display: grid; gap: var(--fd-s1); }
.fd-calc__total span { font-size: var(--fd-fs-sm); color: var(--fd-on-dark-muted); }
.fd-calc__total strong {
	font: 700 clamp(2.4rem, 1.9rem + 2vw, 3.4rem)/1 var(--fd-font-display);
	letter-spacing: -0.03em;
	color: var(--fd-white);
	font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Formularelemente
   -------------------------------------------------------------------------- */

.fd-field { display: grid; gap: var(--fd-s2); min-width: 0; }
.fd-label { font-size: var(--fd-fs-sm); font-weight: 600; color: var(--fd-ink); }

.fd-input {
	width: 100%;
	min-height: 50px;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--fd-line);
	border-radius: var(--fd-r-sm);
	background: var(--fd-white);
	color: var(--fd-text);
	font: 500 1rem/1.4 var(--fd-font-body);
	transition: border-color 0.2s, box-shadow 0.2s;
	appearance: none;
}
textarea.fd-input { min-height: 120px; resize: vertical; }
.fd-input:hover { border-color: rgba(21, 53, 73, 0.35); }
.fd-input:focus { outline: none; border-color: var(--fd-navy); box-shadow: 0 0 0 4px rgba(249, 169, 2, 0.35); }

.fd-select-wrap { position: relative; }
.fd-select-wrap::after {
	content: "";
	position: absolute;
	right: 1rem;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--fd-navy);
	border-bottom: 2px solid var(--fd-navy);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}
.fd-select-wrap select { padding-right: 2.5rem; cursor: pointer; }

.fd-input-unit { position: relative; }
.fd-input-unit .fd-input { padding-right: 2.25rem; font-variant-numeric: tabular-nums; }
.fd-input-unit span { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--fd-muted); font-weight: 600; }

.fd-form { display: grid; gap: var(--fd-s5); }
.fd-form__grid { display: grid; gap: var(--fd-s4); }
@media (min-width: 640px) {
	.fd-form__grid { grid-template-columns: 1fr 1fr; }
	.fd-field--full { grid-column: 1 / -1; }
}

.fd-check { display: flex; gap: var(--fd-s3); align-items: flex-start; font-size: var(--fd-fs-xs); line-height: 1.5; color: var(--fd-muted); cursor: pointer; }
.fd-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--fd-navy); cursor: pointer; }
.fd-check a { color: var(--fd-ink); font-weight: 600; }

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

.fd-notice {
	margin-bottom: var(--fd-s5);
	padding: var(--fd-s4) var(--fd-s5);
	border-radius: var(--fd-r);
	border-left: 4px solid;
	font-size: var(--fd-fs-sm);
	font-weight: 500;
}
.fd-notice--success { background: #e7f5ee; border-color: var(--fd-success); color: #0f4d30; }
.fd-notice--error { background: #fdecea; border-color: var(--fd-error); color: #7a1a12; }

/* --------------------------------------------------------------------------
   Programme (Karten)
   -------------------------------------------------------------------------- */

.fd-cards { display: grid; gap: var(--fd-s4); }
@media (min-width: 760px) { .fd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fd-s5); } }

.fd-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--fd-s4);
	padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
	border: 1px solid var(--fd-line);
	border-radius: var(--fd-r-lg);
	background: var(--fd-white);
	transition: transform 0.4s var(--fd-ease), box-shadow 0.4s var(--fd-ease), border-color 0.4s;
}
.fd-card:hover { transform: translateY(-4px); box-shadow: var(--fd-shadow-lg); border-color: transparent; }
.fd-card p { color: var(--fd-muted); }
.fd-card .fd-mono {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: var(--fd-s3);
	border-radius: 18px;
	background: var(--fd-mist);
	color: var(--fd-navy);
	font: 700 1.05rem/1 var(--fd-font-display);
	letter-spacing: 0.02em;
}
.fd-card--feature { background: var(--fd-navy); border-color: var(--fd-navy); }
.fd-card--feature h3 { color: var(--fd-white); }
.fd-card--feature p { color: var(--fd-on-dark-muted); }
.fd-card--feature .fd-mono { background: var(--fd-amber); color: var(--fd-ink); }

/* --------------------------------------------------------------------------
   Förderstaffel (Tabelle)
   -------------------------------------------------------------------------- */

.fd-table { margin: 0; overflow-x: auto; }
.fd-table table {
	width: 100%;
	min-width: 520px;
	border-collapse: separate;
	border-spacing: 0;
	font-variant-numeric: tabular-nums;
	table-layout: fixed;
}
.fd-table thead { border: 0; }
.fd-table :is(th, td) {
	padding: clamp(0.9rem, 0.7rem + 0.8vw, 1.5rem) clamp(0.75rem, 0.5rem + 1vw, 1.75rem);
	border: 0;
	border-bottom: 1px solid var(--fd-line-light);
	hyphens: auto;
	overflow-wrap: normal;
	text-align: left;
	vertical-align: middle;
}
.fd-table th {
	font-size: var(--fd-fs-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fd-on-dark-muted);
}
.fd-table td:first-child { font-weight: 600; color: var(--fd-white); }
.fd-table td:not(:first-child) {
	font: 650 clamp(1.15rem, 1rem + 0.8vw, 1.75rem)/1.1 var(--fd-font-display);
	color: var(--fd-white);
}
.fd-table tbody tr { transition: background-color 0.2s; }
.fd-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.fd-table tbody tr:first-child td:not(:first-child) { color: var(--fd-amber); }
.fd-table figcaption { margin-top: var(--fd-s3); font-size: var(--fd-fs-xs); color: var(--fd-on-dark-muted); }

/* Smartphone: jede Zeile als Karte, Spaltenbeschriftung aus dem Tabellenkopf */
@media (max-width: 599px) {
	.fd-table { overflow: visible; }
	.fd-table table, .fd-table tbody, .fd-table tr, .fd-table td { display: block; width: 100%; min-width: 0; }
	.fd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.fd-table tbody { display: grid; gap: var(--fd-s3); }
	.fd-table tr {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: var(--fd-s4);
		padding: var(--fd-s4) var(--fd-s5);
		border: 1px solid var(--fd-line-light);
		border-radius: var(--fd-r);
	}
	.fd-table td { padding: 0; border: 0; }
	.fd-table td:first-child { grid-column: 1 / -1; margin-bottom: var(--fd-s3); }
	.fd-table td:not(:first-child)::before {
		display: block;
		margin-bottom: 4px;
		font: 600 var(--fd-fs-xs)/1.3 var(--fd-font-body);
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--fd-on-dark-muted);
	}
	.fd-table td:nth-child(2)::before { content: "Schulungskosten"; }
	.fd-table td:nth-child(3)::before { content: "Lohnkosten"; }
}

.fd-note { margin-top: var(--fd-s5); font-size: var(--fd-fs-sm); color: var(--fd-muted); }
.fd-section--dark .fd-note { color: var(--fd-on-dark-muted); }

.fd-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--fd-s6); }
.fd-split > * { min-width: 0; }
.fd-split .fd-head h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); }
@media (min-width: 960px) {
	.fd-split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: clamp(3rem, 2rem + 4vw, 6rem); align-items: start; }
	.fd-split .fd-head { position: sticky; top: calc(var(--fd-header-h) + 32px); margin-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Ablauf (Schritte)
   -------------------------------------------------------------------------- */

.fd-steps {
	counter-reset: fd-step;
	display: grid;
	gap: var(--fd-s4);
}
@media (min-width: 720px) { .fd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fd-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--fd-s5); } }

.fd-step {
	counter-increment: fd-step;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--fd-s3);
	padding-top: var(--fd-s7);
}
.fd-step::before {
	content: counter(fd-step, decimal-leading-zero);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--fd-ink);
	color: var(--fd-amber);
	font: 700 0.95rem/1 var(--fd-font-display);
	font-variant-numeric: tabular-nums;
	z-index: 1;
}
.fd-step::after {
	content: "";
	position: absolute;
	top: 22px;
	left: 56px;
	right: 12px;
	height: 1px;
	background: repeating-linear-gradient(90deg, var(--fd-line) 0 6px, transparent 6px 12px);
}
.fd-step:last-child::after { display: none; }
@media (max-width: 1099px) { .fd-step::after { display: none; } }
.fd-step p { color: var(--fd-muted); font-size: var(--fd-fs-sm); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.fd-faq { display: grid; gap: var(--fd-s3); }
.fd-faq .wp-block-details {
	border: 1px solid var(--fd-line);
	border-radius: var(--fd-r);
	background: var(--fd-white);
	transition: border-color 0.2s, box-shadow 0.3s;
}
.fd-faq .wp-block-details[open] { border-color: transparent; box-shadow: var(--fd-shadow); }
.fd-faq summary {
	position: relative;
	display: block;
	padding: 1.25rem 3.75rem 1.25rem 1.5rem;
	font: 600 clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem)/1.35 var(--fd-font-display);
	color: var(--fd-ink);
	cursor: pointer;
	list-style: none;
}
.fd-faq summary::-webkit-details-marker { display: none; }
.fd-faq summary::after {
	content: "";
	position: absolute;
	right: 1.25rem;
	top: 50%;
	width: 28px;
	height: 28px;
	transform: translateY(-50%);
	border-radius: 50%;
	background:
		linear-gradient(var(--fd-ink), var(--fd-ink)) center / 10px 2px no-repeat,
		linear-gradient(var(--fd-ink), var(--fd-ink)) center / 2px 10px no-repeat,
		var(--fd-mist);
	transition: transform 0.3s var(--fd-ease), background-color 0.2s;
}
.fd-faq details[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
	background:
		linear-gradient(var(--fd-ink), var(--fd-ink)) center / 10px 2px no-repeat,
		linear-gradient(var(--fd-ink), var(--fd-ink)) center / 2px 10px no-repeat,
		var(--fd-amber);
}
.fd-faq .wp-block-details > :not(summary) { margin: 0; padding: 0 1.5rem 1.4rem; color: var(--fd-muted); }

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

.fd-contact { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
@media (min-width: 960px) { .fd-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.fd-contact__copy > * + * { margin-top: var(--fd-s5); }

.fd-benefits { margin: var(--fd-s6) 0 0; padding: 0; list-style: none; display: grid; gap: var(--fd-s4); }
.fd-benefits li {
	position: relative;
	padding: var(--fd-s4) var(--fd-s4) var(--fd-s4) 3.75rem;
	border: 1px solid var(--fd-line-light);
	border-radius: var(--fd-r);
	color: var(--fd-on-dark-muted);
	font-size: var(--fd-fs-sm);
}
.fd-benefits li::before {
	content: "";
	position: absolute;
	left: var(--fd-s4);
	top: 1.1rem;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--fd-amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.2 2.6 2.6L14 7.4' fill='none' stroke='%230b2230' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.fd-benefits strong { display: block; margin-bottom: 2px; font-size: var(--fd-fs-base); color: var(--fd-white); }

.fd-form-card {
	padding: clamp(1.5rem, 1rem + 2vw, 3rem);
	border-radius: var(--fd-r-lg);
	background: var(--fd-white);
	color: var(--fd-text);
	box-shadow: var(--fd-shadow-lg);
}
.fd-form-card > h3 { color: var(--fd-ink); font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
.fd-form-card > p { margin: var(--fd-s3) 0 var(--fd-s6); color: var(--fd-muted); }

/* --------------------------------------------------------------------------
   Unterseiten (Impressum, Datenschutz …)
   -------------------------------------------------------------------------- */

.fd-page__hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) clamp(2.5rem, 2rem + 2vw, 4rem);
	background: var(--fd-ink);
	color: var(--fd-on-dark);
}
.fd-page__hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -120px;
	top: -160px;
	width: 440px;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 70px solid rgba(249, 169, 2, 0.07);
}
.fd-page__title { margin-top: var(--fd-s4); color: var(--fd-white); font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); }

.fd-prose {
	max-width: 760px;
	padding-block: clamp(3rem, 2rem + 3vw, 5rem) var(--fd-section);
	color: var(--fd-text);
}
.fd-prose > * + * { margin-top: var(--fd-s4); }
.fd-prose :is(h2, h3) + * { margin-top: var(--fd-s3); }
.fd-prose h2 {
	margin-top: var(--fd-s7);
	padding-top: var(--fd-s5);
	border-top: 1px solid var(--fd-line);
	font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
}
.fd-prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.fd-prose h3 { margin-top: var(--fd-s6); }
.fd-prose ul { padding-left: 1.25rem; }
.fd-prose li + li { margin-top: var(--fd-s2); }
.fd-prose li::marker { color: var(--fd-amber-ink); }
.fd-prose a:not(.fd-btn) { color: var(--fd-navy); font-weight: 500; }

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

.fd-footer {
	background: #071a25;
	color: var(--fd-on-dark-muted);
	font-size: var(--fd-fs-sm);
}
.fd-footer__grid {
	display: grid;
	gap: var(--fd-s6);
	padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem) var(--fd-s7);
}
@media (min-width: 760px) { .fd-footer__grid { grid-template-columns: 1.4fr 1fr auto; } }
.fd-footer .fd-logo img { height: 52px; }
.fd-footer__claim { margin-top: var(--fd-s4); max-width: 36ch; }
.fd-footer__address { font-style: normal; line-height: 1.8; }
.fd-footer__address strong { color: var(--fd-white); }
.fd-footer a { color: var(--fd-on-dark); text-decoration: none; }
.fd-footer a:hover { color: var(--fd-amber); }
.fd-footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--fd-s2); }
.fd-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--fd-s3);
	padding-block: var(--fd-s5);
	border-top: 1px solid var(--fd-line-light);
	font-size: var(--fd-fs-xs);
}

/* --------------------------------------------------------------------------
   Bewegung: ruhige Einblendung beim Scrollen (nur mit JS und ohne reduzierte Bewegung)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	.fd-js [data-reveal] {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity 0.8s var(--fd-ease), transform 0.8s var(--fd-ease);
		transition-delay: var(--fd-delay, 0ms);
	}
	.fd-js [data-reveal].is-visible { opacity: 1; transform: none; }

	.fd-hero__copy > * { animation: fd-rise 0.9s var(--fd-ease) both; }
	.fd-hero__copy > :nth-child(2) { animation-delay: 0.06s; }
	.fd-hero__copy > :nth-child(3) { animation-delay: 0.12s; }
	.fd-hero__copy > :nth-child(4) { animation-delay: 0.18s; }
	.fd-hero .fd-panel { animation: fd-rise 1s 0.2s var(--fd-ease) both; }
}

@keyframes fd-rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   Block-Editor: Abschnitte im Editor lesbar halten
   -------------------------------------------------------------------------- */

.editor-styles-wrapper .fd-section,
.editor-styles-wrapper .fd-hero { padding-block: 3rem; }
.editor-styles-wrapper .fd-hero::before { display: none; }
