/* FKM Theme – Grundgerüst. Farben und Schrift lassen sich über die Variablen steuern. */
:root {
	--fkm-blue: #1D5FD0;
	--fkm-black: #0B0D10;
	--fkm-white: #fff;
	--fkm-grey: #F1F4F8;
	--fkm-line: #D5DBE4;
	--fkm-line-strong: #98A2B3;
	--fkm-text: #14181F;
	--fkm-muted: #556070;
	--fkm-font: Bahnschrift, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--fkm-radius: 2px;
	--fkm-max: 1180px;
	--fkm-space: clamp(56px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--fkm-font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--fkm-text);
	background: var(--fkm-white);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--fkm-blue); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fkm-blue); outline-offset: 3px; }
.fkm-bg-blue :focus-visible, .fkm-bg-black :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

h1, h2, h3 { line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--fkm-text); color: #fff; padding: 12px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

.fkm-wrap { width: 100%; max-width: var(--fkm-max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.fkm-wrap--narrow { max-width: 860px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--fkm-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.site-brand { display: flex; align-items: center; gap: 12px; color: var(--fkm-text); text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; }
.site-brand .custom-logo { display: block; max-height: 48px; width: auto; }
.brand-mark { flex: none; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a:not(.btn) { display: inline-block; padding: 6px 0; color: var(--fkm-text); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { border-bottom-color: var(--fkm-blue); }
.nav-toggle { display: none; background: none; border: 1px solid var(--fkm-line-strong); border-radius: var(--fkm-radius); padding: 8px 14px; font: inherit; font-weight: 600; color: var(--fkm-text); cursor: pointer; }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.js .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 20px; padding: 8px clamp(20px, 4vw, 40px) 24px; background: #fff; border-bottom: 1px solid var(--fkm-line); }
	.js .site-nav.is-open { display: flex; }
	.site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 20px; padding-bottom: 16px; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav li { border-bottom: 1px solid var(--fkm-line); }
	.site-nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 0; }
	.site-header__cta { text-align: center; }
	.site-header__inner { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 0.85em 1.6em; font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; border: 2px solid transparent; border-radius: var(--fkm-radius); transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn--primary { background: var(--fkm-blue); color: #fff; }
.btn--primary:hover { background: color-mix(in srgb, var(--fkm-blue) 80%, #000); }
.btn--ghost { color: inherit; border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: var(--fkm-text); border-color: var(--fkm-text); color: #fff; }
.btn--light { background: #fff; color: var(--fkm-blue); }
.btn--light:hover { background: var(--fkm-grey); }
.fkm-bg-blue .btn--primary { background: #fff; color: var(--fkm-blue); }
.fkm-bg-blue .btn--ghost:hover, .fkm-bg-black .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--fkm-text); }
.fkm-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Bereiche ---------- */
.fkm-sec { padding: var(--fkm-space) 0; }
.fkm-bg-grey { background: var(--fkm-grey); }
.fkm-bg-blue { background: var(--fkm-blue); color: #fff; }
.fkm-bg-black { background: var(--fkm-black); color: #fff; }
.fkm-bg-blue a:not(.btn), .fkm-bg-black a:not(.btn) { color: #fff; }
.fkm-sec__head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.fkm-sec__title { margin-bottom: 0.4em; }
.fkm-sec__intro > :last-child { margin-bottom: 0; }
.fkm-prose { max-width: 62ch; }
.fkm-prose--wide { max-width: 72ch; }
.fkm-prose > :last-child { margin-bottom: 0; }
.fkm-lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; max-width: 46ch; }

/* Hero */
.fkm-sec--hero { padding: clamp(40px, 7vw, 96px) 0; }
.fkm-hero__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.fkm-hero__text { border-left: 4px solid var(--fkm-blue); padding-left: clamp(16px, 3vw, 32px); }
.fkm-bg-blue .fkm-hero__text { border-color: #fff; }
.fkm-hero__title { margin-bottom: 0.45em; }
.fkm-hero__media { display: flex; justify-content: flex-end; }
.fkm-hero__img { display: block; width: 100%; height: auto; border-radius: var(--fkm-radius); }
.fkm-spring { width: 100%; max-width: 320px; color: var(--fkm-text); }
.fkm-bg-blue .fkm-spring, .fkm-bg-black .fkm-spring { color: #fff; }
.fkm-spring .plate { stroke: currentColor; stroke-width: 4; stroke-linecap: round; }
.fkm-spring .front, .fkm-spring .back { fill: none; stroke: var(--fkm-blue); stroke-linejoin: round; stroke-linecap: round; }
.fkm-spring .front { stroke-width: 6; }
.fkm-spring .back { stroke-width: 3; opacity: 0.4; }
.fkm-bg-blue .fkm-spring .front, .fkm-bg-blue .fkm-spring .back { stroke: #fff; }
.fkm-spring .dim line { stroke: currentColor; stroke-width: 1; opacity: 0.5; }
.fkm-spring text { fill: currentColor; font: 13px var(--fkm-font); opacity: 0.7; }

@media (max-width: 800px) {
	.fkm-hero__grid { grid-template-columns: 1fr; }
	.fkm-hero__media { justify-content: flex-start; }
	.fkm-spring { max-width: 200px; }
}

/* Text mit Bild */
.fkm-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.fkm-split.is-left .fkm-split__media { order: -1; }
.fkm-split__media img { display: block; width: 100%; height: auto; border-radius: var(--fkm-radius); }
@media (max-width: 800px) { .fkm-split { grid-template-columns: 1fr; } .fkm-split.is-left .fkm-split__media { order: 0; } }

/* Vorteile */
.fkm-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.fkm-feature { border-top: 3px solid var(--fkm-blue); padding-top: 18px; }
.fkm-bg-blue .fkm-feature { border-color: #fff; }
.fkm-feature h3 { margin-bottom: 0.4em; }

/* Ablauf (echte Reihenfolge, daher nummeriert) */
.fkm-steps-list { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 32px; }
.fkm-steps-list li { counter-increment: step; }
.fkm-steps-list li::before { content: counter(step); display: block; font-size: 2.75rem; font-weight: 600; line-height: 1; color: var(--fkm-blue); margin-bottom: 14px; }
.fkm-bg-black .fkm-steps-list li::before { color: color-mix(in srgb, var(--fkm-blue) 55%, #fff); }
.fkm-bg-blue .fkm-steps-list li::before { color: #fff; }

/* Leistungs-Karten */
.fkm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.fkm-card { display: flex; flex-direction: column; padding: 24px; background: #fff; color: var(--fkm-text); text-decoration: none; border: 1px solid var(--fkm-line); border-radius: var(--fkm-radius); transition: border-color 0.15s; }
.fkm-card:hover { border-color: var(--fkm-blue); }
.fkm-card h2, .fkm-card h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
.fkm-card p { color: var(--fkm-muted); }
.fkm-card__img { display: block; margin: -24px -24px 20px; }
.fkm-card__img img { display: block; width: 100%; height: auto; }
.fkm-card__more { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--fkm-blue); }
.fkm-bg-blue a.fkm-card, .fkm-bg-black a.fkm-card { color: var(--fkm-text); }

/* FAQ */
.fkm-faq { max-width: 820px; border-top: 1px solid var(--fkm-line); }
.fkm-faq__item { border-bottom: 1px solid var(--fkm-line); }
.fkm-faq__item summary { position: relative; padding: 20px 44px 20px 0; font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; }
.fkm-faq__item summary::-webkit-details-marker { display: none; }
.fkm-faq__item summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--fkm-blue); }
.fkm-faq__item[open] summary::after { content: "\2212"; }
.fkm-faq__item .fkm-prose { padding-bottom: 22px; }

/* Hinweis-Band (Namenswechsel) */
.fkm-sec--notice { padding: clamp(28px, 4vw, 44px) 0; }
.fkm-notice-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; border-left: 4px solid var(--fkm-blue); padding-left: clamp(16px, 3vw, 28px); }
.fkm-notice-band__title { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 0.3em; }
.fkm-notice-band .fkm-actions { margin-top: 0; }

/* Anfrage-Band */
.fkm-sec--cta { padding: clamp(48px, 6vw, 80px) 0; }
.fkm-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.fkm-cta .fkm-actions { margin-top: 0; }
.fkm-cta h2 { margin-bottom: 0.3em; }

/* Kontakt */
.fkm-contact { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 800px) { .fkm-contact { grid-template-columns: 1fr; } }
.fkm-address { font-style: normal; line-height: 1.8; }
.fkm-form p { margin: 0 0 20px; }
.fkm-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.fkm-form input[type="text"], .fkm-form input[type="email"], .fkm-form textarea { width: 100%; padding: 0.8em 0.9em; font: inherit; color: var(--fkm-text); background: #fff; border: 1px solid var(--fkm-line-strong); border-radius: var(--fkm-radius); }
.fkm-consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.fkm-consent input { margin-top: 0.35em; flex: none; width: 1.1em; height: 1.1em; }
.fkm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fkm-notice { padding: 14px 18px; margin: 0 0 24px; border-left: 4px solid; }
.fkm-notice--ok { background: #EAF6EF; border-color: #1A7F4B; color: #0E4B2B; }
.fkm-notice--error { background: #FDECEA; border-color: #B3261E; color: #6E1611; }

/* ---------- Seitenkopf, Brotkrumen, Einzelseiten ---------- */
.crumbs-wrap { padding-top: 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; color: var(--fkm-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--fkm-line-strong); }
.crumbs a { color: var(--fkm-muted); }
.page-head { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); }
.page-head__title { margin: 0; font-size: clamp(2rem, 4.5vw, 3.25rem); }
.page-body { padding-top: 16px; padding-bottom: var(--fkm-space); }
.fkm-single__img { margin-bottom: 32px; }
.fkm-single__img img { display: block; width: 100%; height: auto; border-radius: var(--fkm-radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--fkm-black); color: #fff; padding: 56px 0 24px; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.site-footer__brand { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.3em; }
.site-footer__h { font-weight: 600; margin-bottom: 0.6em; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-menu { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.9rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__former { margin-top: 0.4em; opacity: 0.75; font-size: 0.95rem; }
.site-footer__social { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
