/* ==========================================================================
   Fahrzeugtechnik Schiffmann – Version 3 „Klarer Reparaturweg“ (Pilot 05.10.2026)
   Farben/Schriften zentral in theme.json; hier Proportionen und responsive Regeln.
   Aufbau: 1 Grundlagen · 2 Kopf · 3 Bänder · 4 Startseite · 5 Unterseiten
           6 Bausteine · 7 Abschluss/Fuß · 8 Lokale Prüfhilfen · 9 Bestandsseiten
           10 Responsive
   ========================================================================== */

:root {
	--sf-red: #d62d29;
	--sf-red-dark: #b3241f;
	--sf-blue: #494e8b;
	--sf-blue-light: #c3c7f0;
	--sf-ink: #171b23;
	--sf-gray: #626975;
	--sf-paper: #f3f4f5;
	--sf-tint: #eceef6;
	--sf-line: #d9dde3;
	--sf-line-dark: #3b4150;
	--sf-on-dark: #ffffff;
	--sf-on-dark-2: #c9ced8;
	--sf-max: 1200px;
	--sf-gutter: clamp(20px, 3.4vw, 48px);
	--sf-pad-x: max(var(--sf-gutter), calc((100% - var(--sf-max)) / 2));
	--sf-section-y: clamp(44px, 6.5vw, 96px);
	--sf-logo-w: 290px;
}

/* 1 Grundlagen ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a, button, input, select, textarea, summary { touch-action: manipulation; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--sf-blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { letter-spacing: -.025em; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
p, li { text-wrap: pretty; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > *, .sf-main, .sf-main > *, .sf-main .wp-block-post-content > .sf-band,
.sf-main .wp-block-post-content > .sf-start { margin-block: 0 !important; }
.sf-main { background: #fff; }
.wp-element-caption, figcaption { font-size: 14px; line-height: 1.45; color: var(--sf-gray); margin-top: 10px; }

/* Buttons */
.wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; gap: .4em; text-decoration: none; transition: background-color .15s ease; }
.wp-block-button__link:hover { background-color: var(--sf-red-dark); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--sf-ink); border: 2px solid var(--sf-ink); padding: 12px 20px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--sf-ink); color: #fff; }
.wp-block-buttons { gap: 12px; }

/* 2 Kopf ---------------------------------------------------------------- */
.sf-staging { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 5px var(--sf-pad-x); background: #fff3cd; color: #5c4300; font-size: 13px; line-height: 1.4; border-bottom: 1px solid #e8d38a; }
.sf-staging strong { letter-spacing: .04em; }
.sf-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 32px; padding: 10px var(--sf-pad-x); background: #fff; border-bottom: 1px solid var(--sf-line); position: relative; z-index: 20; }
.sf-header > * { margin: 0 !important; }
/* Originallogo (900 × 260 px mit weißem Rand): Rand per Zuschnitt ausblenden, Datei bleibt unverändert. */
.sf-logo { margin: 0; line-height: 0; }
.sf-logo .custom-logo-link { display: block; position: relative; width: var(--sf-logo-w); max-width: 100%; aspect-ratio: 743 / 186; overflow: hidden; }
.sf-logo img.custom-logo { position: absolute; max-width: none !important; width: 121.131% !important; height: auto !important; left: -5.518%; top: -22.581%; }
.sf-nav { justify-self: end; }
.sf-nav .wp-block-navigation__container { gap: 28px; }
.sf-nav .wp-block-navigation-item__content { color: var(--sf-ink); font-size: 16px; font-weight: 700; text-decoration: none; padding: 10px 0; }
.sf-nav .wp-block-navigation-item__content:hover { color: var(--sf-red); }
.sf-nav .wp-block-navigation__responsive-container-open,
.sf-nav .wp-block-navigation__responsive-container-close { color: var(--sf-ink); }
.sf-nav .wp-block-navigation__responsive-container-open { min-height: 44px; padding: 8px 14px; border: 2px solid var(--sf-ink); border-radius: 3px; font-size: 16px; font-weight: 700; }
.sf-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px var(--sf-gutter) !important; }
.sf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 6px; }
.sf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 22px; padding: 10px 0; }
.sf-header-cta .wp-block-button__link { font-size: 15px; padding: 12px 18px; white-space: nowrap; }
/* Geöffnetes Handymenü: linksbündig, Anfrage als letzter Eintrag (der Kopf-Knopf ist dann verdeckt). */
.sf-nav .sf-nav-cta { display: none; }
.sf-nav .is-menu-open .sf-nav-cta { display: flex; margin-top: 12px; }
.sf-nav .is-menu-open .sf-nav-cta .wp-block-navigation-item__content { background: var(--sf-red); color: #fff; padding: 12px 18px; border-radius: 3px; font-size: 18px; }
.sf-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.sf-nav .is-menu-open .wp-block-navigation__container { align-items: flex-start !important; }
.sf-nav .wp-block-navigation__responsive-container-close { min-height: 44px; padding: 8px 14px; border: 2px solid var(--sf-ink); border-radius: 3px; font-size: 16px; font-weight: 700; }

/* 3 Bänder: volle Breite, Inhalt höchstens 1200 px ------------------------- */
.sf-band { padding: var(--sf-section-y) var(--sf-pad-x); background: #fff; }
.sf-band > :first-child { margin-top: 0; }
.sf-paper { background: var(--sf-paper); }
.sf-tint { background: var(--sf-tint); }
.sf-dark { background: var(--sf-ink); color: var(--sf-on-dark); }
.sf-dark h1, .sf-dark h2, .sf-dark h3 { color: #fff; }
.sf-dark p, .sf-dark li { color: var(--sf-on-dark-2); }
.sf-dark a { color: #fff; }
.sf-dark a:hover { color: var(--sf-blue-light); }
.sf-dark :focus-visible { outline-color: #fff; }
.sf-dark figcaption, .sf-dark .wp-element-caption { color: var(--sf-on-dark-2); }
.sf-dark .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: #fff; }
.sf-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--sf-ink); }
/* Aneinanderstoßende dunkle Flächen: helle Naht bei Bruchteil-Pixeln vermeiden. */
.sf-choice, .sf-intro { box-shadow: 0 -2px 0 var(--sf-ink); }
.sf-band > h2, .sf-section-head h2 { margin-top: 0; }
.sf-section-head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 40px); }
.sf-section-head p { color: var(--sf-gray); margin-top: 12px; }
.sf-dark .sf-section-head p { color: var(--sf-on-dark-2); }

.sf-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 12px !important; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sf-blue); }
.sf-eyebrow::before { content: ""; width: 36px; height: 3px; background: var(--sf-red); flex-shrink: 0; }
.sf-dark .sf-eyebrow { color: var(--sf-blue-light); }
.sf-lead { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; max-width: 40em; }

/* 4 Startseite ------------------------------------------------------------ */
.sf-start > * { margin-block: 0 !important; }
.sf-hero { padding-top: clamp(28px, 2.8vw, 40px); padding-bottom: clamp(20px, 2vw, 28px); }
.sf-hero h1 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.02; letter-spacing: -.035em; margin: 0; }
.sf-hero h1::after { content: ""; display: block; width: 76px; height: 5px; background: var(--sf-red); margin-top: clamp(14px, 1.3vw, 18px); }
.sf-hero .sf-lead { color: #d7dbe3; margin: clamp(12px, 1vw, 14px) 0 0; }

.sf-choice { padding-top: 0; padding-bottom: clamp(24px, 2vw, 28px); }
.wp-block-columns.sf-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; }
.sf-choice-grid > .wp-block-column { padding-block: 4px; margin: 0; }
.sf-choice-grid > .wp-block-column:first-child { padding-right: clamp(24px, 4vw, 56px); border-right: 1px solid var(--sf-line-dark); }
.sf-choice-grid > .wp-block-column:last-child { padding-left: clamp(24px, 4vw, 56px); }
.sf-num { margin: 0 !important; font-size: 22px; font-weight: 700; line-height: 1; color: var(--sf-red) !important; letter-spacing: .02em; }
.sf-choice h2 { font-size: clamp(26px, 2.5vw, 34px); margin: 8px 0 0; }
.sf-choice p { margin-top: 8px; }
.sf-choice .sf-arrow-link { margin-top: 6px; }
.sf-choice .sf-small { margin-top: 4px; }
.sf-arrow-link a { font-weight: 700; font-size: 18px; text-decoration-thickness: 1px; }
.sf-small { font-size: 15px; }
.sf-dark .sf-small { color: #b9bfca; }

.sf-help { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: clamp(16px, 1.4vw, 20px) !important; padding: 12px 20px; border-left: 4px solid var(--sf-blue); background: var(--sf-tint); }
.sf-help p { margin: 0 !important; color: var(--sf-ink); }
.sf-help p:first-child { flex: 1 1 340px; }
.sf-help a { color: var(--sf-blue); font-weight: 700; }
.sf-dark .sf-help { background: #232836; border-left-color: var(--sf-blue-light); }
.sf-dark .sf-help p { color: #eceef3; }
.sf-dark .sf-help a { color: #fff; }

.sf-proof { padding-top: clamp(24px, 2vw, 28px); }
.wp-block-columns.sf-proof-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin: 0; }
.sf-proof-grid > .wp-block-column { margin: 0; }
.sf-proof-media .wp-block-image { margin: 0; }
.sf-proof-media img { display: block; width: 100%; height: auto; border-radius: 3px; }
.sf-proof-text h2 { font-size: clamp(30px, 3vw, 44px); margin: 0 0 8px; }

.sf-steps { counter-reset: sf-step; }
.sf-step { border-top: 1px solid var(--sf-line); padding: 16px 0 6px; margin: 0 !important; }
.sf-step h3 { font-size: 20px; margin: 0; }
.sf-step h3::before { counter-increment: sf-step; content: "0" counter(sf-step); display: block; color: var(--sf-red); font-size: 16px; font-weight: 700; letter-spacing: .04em; margin-bottom: 4px; }
.sf-step p { font-size: 16px; color: var(--sf-gray); margin-top: 6px; }
.sf-dark .sf-step { border-top-color: var(--sf-line-dark); }
.sf-dark .sf-step p { color: var(--sf-on-dark-2); }
.sf-steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.sf-steps-row.sf-steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.wp-block-columns.sf-company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin: 0; }
.sf-company-grid > .wp-block-column { margin: 0; }
.sf-company-grid .wp-block-image { margin: 0; }
.sf-company-grid img { display: block; width: 100%; border-radius: 3px; }

/* 5 Unterseiten ----------------------------------------------------------- */
.sf-crumbs-band { background: var(--sf-ink); padding: 18px var(--sf-pad-x) 0; margin: 0 !important; }
.sf-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--sf-on-dark-2); }
.sf-crumbs li + li::before { content: "›"; padding: 0 10px; color: #8d94a3; }
.sf-crumbs a { color: #fff; }
.sf-crumbs [aria-current] { color: var(--sf-on-dark-2); }

.sf-intro { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(36px, 4.5vw, 64px); }
.wp-block-columns.sf-intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; margin: 0; }
.sf-intro-grid > .wp-block-column { margin: 0; }
.sf-intro h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: -.03em; margin: 0; }
.sf-intro h1::after { content: ""; display: block; width: 64px; height: 5px; background: var(--sf-red); margin-top: 18px; }
.sf-intro .sf-lead { color: #d7dbe3; margin-top: 16px; }
.sf-intro .wp-block-buttons { margin-top: 24px; }
.sf-intro .wp-block-image { margin: 0; }
.sf-intro .wp-block-image img { display: block; width: 100%; border-radius: 3px; }

.sf-facts-inline { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 20px 0 0; list-style: none; }
.sf-facts-inline li { position: relative; padding-left: 26px; font-weight: 700; font-size: 16px; }
.sf-facts-inline li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 3px solid var(--sf-red); border-bottom: 3px solid var(--sf-red); transform: rotate(-45deg); }
.sf-dark .sf-facts-inline li { color: #fff; }

/* 6 Bausteine ------------------------------------------------------------- */
.sf-check { list-style: none; padding: 0; margin: 16px 0 0; }
.sf-check li { position: relative; padding: 6px 0 6px 30px; }
.sf-check li::before { content: ""; position: absolute; left: 3px; top: .85em; width: 12px; height: 7px; border-left: 3px solid var(--sf-red); border-bottom: 3px solid var(--sf-red); transform: rotate(-45deg); }
.sf-dash { padding-left: 1.2em; }
.sf-dash li { padding: 4px 0; }
.sf-note { font-size: 15px; color: var(--sf-gray); }
.sf-dark .sf-note { color: var(--sf-on-dark-2); }
.sf-h2-small { font-size: clamp(24px, 2.2vw, 30px) !important; }

.wp-block-columns.sf-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin: 0; }
.sf-two > .wp-block-column { margin: 0; }
.sf-two h3 { margin-top: 0; }

.wp-block-columns.sf-ways { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin: 0; }
.sf-ways > .wp-block-column { margin: 0; }
.sf-card { height: 100%; padding: clamp(22px, 2.6vw, 34px); background: #fff; border: 1px solid var(--sf-line); border-top: 4px solid var(--sf-red); border-radius: 3px; display: flex; flex-direction: column; }
.sf-card.sf-card-blue { border-top-color: var(--sf-blue); }
.sf-card h3 { font-size: clamp(22px, 2vw, 26px); margin: 0; }
.sf-card .sf-eyebrow { font-size: 13px; letter-spacing: .1em; }
.sf-card .wp-block-buttons { margin-top: auto !important; padding-top: 20px; }
.sf-price { font-size: 16px; color: var(--sf-gray); line-height: 1.45; }
.sf-slogan { font-weight: 700; font-size: 18px; color: var(--sf-ink); padding-left: 12px; border-left: 4px solid var(--sf-red); }
.sf-section-head .sf-slogan { color: var(--sf-ink); margin-top: 14px; }
.sf-dark .sf-slogan { color: #fff; }

.sf-media-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: clamp(24px, 3vw, 40px) !important; }
.sf-media-row .wp-block-image { margin: 0; }
.sf-media-row img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }

.sf-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sf-feature > * { margin: 0 !important; }
.sf-feature .sf-lead { color: #e1e4ea; }

.sf-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 0; margin: 20px 0 0; list-style: none; }
.sf-type-grid li { margin: 0; }
.sf-type-grid a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 14px 18px; background: #fff; border: 1px solid var(--sf-line); border-radius: 3px; color: var(--sf-ink); font-weight: 700; text-decoration: none; }
.sf-type-grid a::after { content: "→"; color: var(--sf-red); }
.sf-type-grid a strong { font-weight: 700; }
.sf-type-grid a em { display: block; font-style: normal; font-weight: 400; font-size: 15px; color: var(--sf-gray); margin-top: 2px; }
.sf-type-grid a:has(em) { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: center; }
.sf-type-grid a:has(em) strong { grid-column: 1; grid-row: 1; }
.sf-type-grid a:has(em) em { grid-column: 1; grid-row: 2; }
.sf-type-grid a:has(em)::after { grid-column: 2; grid-row: 1 / span 2; }
.sf-price-table td { white-space: nowrap; hyphens: none; }
.sf-price-table th { white-space: normal; }
.sf-price-table td:first-child a { font-weight: 700; }
.sf-type-grid a:hover { border-color: var(--sf-blue); color: var(--sf-blue); }
.sf-type-grid .sf-type-unknown { grid-column: span 2; }
.sf-type-grid .sf-type-unknown a { border-style: dashed; border-color: var(--sf-blue); color: var(--sf-blue); }

.wp-block-table.sf-table { margin: 20px 0 0; overflow-x: auto; }
.sf-table table { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; }
.sf-table th, .sf-table td { text-align: left; vertical-align: top; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--sf-line); }
.sf-table thead th { background: var(--sf-ink); color: #fff; font-size: 14px; letter-spacing: .03em; }
.sf-table tbody tr:nth-child(even) td { background: #fafbfc; }
.sf-table td:first-child { font-weight: 700; }
.sf-table th, .sf-table td { hyphens: auto; overflow-wrap: break-word; }
.sf-table-nummern td:first-child { white-space: nowrap; hyphens: none; }
.sf-table figcaption { text-align: left; }

.sf-faq-list { max-width: 860px; }
.sf-faq-list .wp-block-details { border-bottom: 1px solid var(--sf-line); margin: 0 !important; padding: 0; }
.sf-faq-list .wp-block-details:first-child { border-top: 1px solid var(--sf-line); }
.sf-faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 18px 44px 18px 0; font-weight: 700; font-size: 18px; line-height: 1.4; }
.sf-faq-list summary::-webkit-details-marker { display: none; }
.sf-faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--sf-red); }
.sf-faq-list details[open] > summary::after { content: "–"; }
.sf-faq-list details > :not(summary) { margin: 0 0 18px; color: #3d434e; }

.sf-feature > :only-child { grid-column: 1 / -1; max-width: 860px; }

.sf-toc { padding: clamp(18px, 2vw, 28px); border: 1px solid var(--sf-line-dark); border-radius: 3px; }
.sf-toc-title { font-size: 14px !important; text-transform: uppercase; letter-spacing: .12em; color: var(--sf-blue-light) !important; margin: 0 0 8px; }
.sf-toc-list { margin: 0; padding-left: 1.4em; }
.sf-toc-list li { padding: 5px 0; color: var(--sf-on-dark-2); }
.sf-toc-list a { font-weight: 700; }
.sf-symptom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sf-symptom-grid > * { margin: 0 !important; }
.sf-symptom-grid h2 { font-size: clamp(22px, 2vw, 26px); margin: 0; }
.sf-price-box { padding: clamp(22px, 2.6vw, 32px); background: #232836; border-radius: 3px; }
.sf-price-box p:first-child { color: #fff; font-size: 18px; }

.sf-photo-pending { display: flex; align-items: center; justify-content: center; min-height: 240px; padding: 24px; border: 2px dashed #8d94a3; border-radius: 3px; text-align: center; color: #e1e4ea; }
.sf-photo-pending p { color: inherit; }
.sf-photo-pending.sf-pending-light { min-height: 0; margin-top: 24px !important; color: #694820; background: #faf0de; border-color: #b36a22; text-align: left; justify-content: flex-start; }

/* 7 Abschluss und Fuß ------------------------------------------------------ */
.wp-block-columns.sf-closing-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); margin: 0; }
.sf-closing-grid > .wp-block-column { margin: 0; }
.sf-closing-title { margin-top: 0; }
.sf-closing h3 { font-size: 18px; margin: 0; }
.sf-facts { list-style: none; padding: 0; margin: 10px 0 0; }
.sf-facts li { padding: 8px 0; border-bottom: 1px solid #d2d6e6; font-size: 16px; }

.sf-footer { background: var(--sf-ink); color: var(--sf-on-dark-2); padding: clamp(40px, 5vw, 64px) var(--sf-pad-x) 24px; font-size: 15px; }
.sf-footer p, .sf-footer li { color: var(--sf-on-dark-2); }
.sf-footer a { color: #fff; overflow-wrap: anywhere; }
.sf-footer a:hover { color: var(--sf-blue-light); }
.sf-footer :focus-visible { outline-color: #fff; }
.wp-block-columns.sf-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; margin: 0; }
.sf-footer-grid > .wp-block-column { margin: 0; }
.sf-footer-title { font-size: 22px !important; color: #fff !important; margin: 0 0 12px; letter-spacing: -.01em; }
.sf-footer-head { font-size: 14px !important; color: var(--sf-blue-light) !important; text-transform: uppercase; letter-spacing: .12em; margin: 4px 0 12px; }
.sf-footer-links { list-style: none; padding: 0; margin: 0; }
.sf-footer-links li { padding: 5px 0; }
.sf-footer-bottom { margin-top: 36px !important; padding-top: 20px; border-top: 1px solid var(--sf-line-dark); font-size: 14px; }

/* 6a Preise gut sichtbar (Rückmeldung Alex 05.10.2026: Preise schneller finden) ---------
   Preiskacheln im Seitenkopf, Preiszeile in Karten, große Zahlen in Tabellen und Typ-Kacheln. */
.sf-preise { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; max-width: 560px; }
.sf-preise li { margin: 0; padding: 12px 16px 14px; background: #fff; border: 1px solid var(--sf-line); border-top: 4px solid var(--sf-red); border-radius: 3px; font-size: 15px; line-height: 1.35; color: var(--sf-gray); }
.sf-preise strong { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -.02em; color: var(--sf-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sf-dark .sf-preise li { background: #232836; border-color: #3a4152; border-top-color: var(--sf-red); color: var(--sf-on-dark-2); }
.sf-dark .sf-preise strong { color: #fff; }
.sf-preise-hinweis { margin: 8px 0 0 !important; font-size: 15px; color: var(--sf-gray); }
.sf-dark .sf-preise-hinweis { color: var(--sf-on-dark-2); }
.sf-preiszeile { margin: 6px 0 10px !important; font-size: 16px; line-height: 1.5; color: var(--sf-gray); }
.sf-preiszeile strong { font-size: clamp(22px, 2vw, 26px); letter-spacing: -.02em; color: var(--sf-ink); white-space: nowrap; }
.sf-dark .sf-preiszeile { color: var(--sf-on-dark-2); }
.sf-dark .sf-preiszeile strong { color: #fff; }
.sf-price strong { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.02em; color: var(--sf-ink); white-space: nowrap; }
.sf-type-grid a em strong { font-weight: 700; font-size: 17px; color: var(--sf-ink); }
.sf-price-table td + td, .sf-kosten td:last-child { font-weight: 700; font-size: 19px; color: var(--sf-ink); white-space: nowrap; }

/* 7a Übrige Seiten: Seitenkopf ohne Bild, Rechtstexte, Kontakt ---------------- */
.sf-intro-grid > .wp-block-column:only-child { grid-column: 1 / -1; max-width: 860px; }
.sf-prose { max-width: 860px; }
.sf-prose h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 44px 0 10px; }
.sf-prose > h2:first-child { margin-top: 0; }
.sf-prose h3 { font-size: 20px; margin: 26px 0 6px; }
.sf-prose p, .sf-prose li { overflow-wrap: break-word; }
.wp-block-columns.sf-contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin: 0; }
.sf-contact-grid > .wp-block-column { margin: 0; }
.sf-contact-grid .sf-form { margin-top: 0; }
.sf-numbers { font-variant-numeric: tabular-nums; word-spacing: .15em; line-height: 1.9; overflow-wrap: anywhere; }
.sf-nobr { white-space: nowrap; }
.wp-block-buttons + h3.wp-block-heading { margin-top: clamp(32px, 4vw, 48px) !important; }
.wp-block-table + .wp-block-columns, .wp-block-table + .wp-block-group { margin-top: clamp(24px, 3vw, 36px) !important; }
.wp-block-table + h3.wp-block-heading { margin-top: 28px !important; }
@media (max-width: 599px) {
	.sf-table-stapel table, .sf-table-stapel tbody, .sf-table-stapel tr, .sf-table-stapel td { display: block; width: 100%; }
	.sf-table-stapel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.sf-table-stapel tr { padding: 10px 0; border-bottom: 1px solid var(--sf-line); }
	.sf-table-stapel tbody tr:nth-child(even) td { background: transparent; }
	.sf-table-stapel tbody tr:nth-child(even) { background: #fafbfc; }
	.sf-table-stapel td { border: 0 !important; padding: 3px 14px !important; hyphens: manual; }
	.sf-table-stapel td:first-child { font-size: 18px; padding-top: 6px !important; }
	.sf-table-stapel td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 700; color: var(--sf-ink); }
	/* Codex M-L4: In der gestapelten Preistabelle steht die Beschriftung über dem Preis, und der Preis darf umbrechen.
	   Sonst ragt „Preis inkl. MwSt.: 1.499 € bis 1.899 € je Typ“ bei 320 und 390 px aus der Zelle. */
	.sf-table-stapel.sf-kosten td:last-child { white-space: normal; }
	.sf-table-stapel.sf-kosten td[data-label]:last-child::before { display: block; font-size: .8em; letter-spacing: .02em; }
}
@media (max-width: 781px) {
	.wp-block-columns.sf-contact-grid { grid-template-columns: 1fr; }
}

/* 8 Lokale Prüfhilfen – erscheinen nur in der lokalen Testinstallation ------ */
.sf-local .sf-to-confirm { outline: 2px dashed #b36a22; outline-offset: 3px; }
.sf-local .sf-to-confirm::after { content: "zur Bestätigung"; display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 2px; background: #8a4f12; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; vertical-align: middle; line-height: 1.5; }

/* 9 Bestandsseiten (bis zur Übertragung in das neue System) ---------------- */
.sf-content { max-width: calc(var(--sf-max) + 2 * var(--sf-gutter)); margin: 0 auto; padding: clamp(36px, 5vw, 56px) var(--sf-gutter) clamp(48px, 6vw, 72px); }
.sf-content h1 { max-width: 1000px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -.03em; }
.sf-content h1 em { font-style: normal; color: var(--sf-blue); }
.sf-content h2 { font-size: clamp(26px, 2.6vw, 32px); margin-top: 40px; }
.sf-content h3 { font-size: 22px; }
.sf-content > p, .sf-content > ul, .sf-content > ol { max-width: 830px; }
.sf-content .sf-lead { color: var(--sf-gray); }
.sf-content details { padding: 18px 0; border-bottom: 1px solid var(--sf-line); }
.sf-content summary { font-weight: 700; cursor: pointer; line-height: 1.5; }
.sf-banner { border-left: 4px solid var(--sf-blue); background: var(--sf-tint); padding: 20px 24px; color: #363e60; font-size: 16px; }
.sf-banner.sf-warning { border-color: #b36a22; background: #faf0de; color: #694820; }
.sf-service-card { border: 1px solid var(--sf-line); border-top: 4px solid var(--sf-blue); background: #fafbfc; padding: 28px; height: 100%; }
.sf-service-card.sf-red { border-top-color: var(--sf-red); }
.sf-type-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.sf-type-list a { background: #fff; border: 1px solid var(--sf-line); padding: 16px 18px; text-decoration: none; font-weight: 700; }
.sf-process-picture { max-width: 820px; margin-block: 30px; }
.sf-meister-picture img { width: 300px; height: 196px; object-fit: cover; }

/* Anfrageformular */
.sf-form { max-width: 830px; background: #fff; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--sf-line); border-top: 4px solid var(--sf-red); margin-top: 30px; }
.sf-form fieldset { border: 0; padding: 0; margin: 0; }
.sf-form legend { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.sf-form .sf-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sf-form label { display: block; font-weight: 700; font-size: 15px; margin: 0 0 18px; }
.sf-form input, .sf-form select, .sf-form textarea { width: 100%; min-height: 48px; margin-top: 6px; background: #f7f8fa; border: 1px solid #737a87; border-radius: 3px; padding: 12px; color: var(--sf-ink); font-size: 16px; font-weight: 400; }
.sf-form textarea { resize: vertical; min-height: 140px; }
.sf-form .sf-honeypot { position: absolute; left: -10000px; height: 1px; width: 1px; overflow: hidden; }
.sf-form small { display: block; color: var(--sf-gray); font-size: 14px; line-height: 1.6; }
.sf-form button { background: var(--sf-red); color: #fff; border: 0; border-radius: 3px; padding: 14px 24px; font-weight: 700; font-size: 16px; cursor: pointer; margin-top: 20px; min-height: 50px; }
.sf-form button:hover { background: var(--sf-red-dark); }
.sf-form .sf-local-note { padding: 14px; background: var(--sf-tint); font-size: 14px; color: #363e60; margin: 0 0 24px; }
.sf-form .sf-prefill { padding: 12px 16px; background: #eef7f1; border-left: 4px solid #267344; color: #184e2e; font-size: 15px; margin: 0 0 20px; }
.sf-form-result { padding: 22px 25px; background: #e5f3ea; border-left: 4px solid #267344; color: #184e2e; }
.sf-form-error { padding: 22px 25px; background: #fae9e8; border-left: 4px solid var(--sf-red); color: #942c29; }

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

/* 10 Responsive ----------------------------------------------------------- */
@media (max-width: 1099px) {
	.sf-header { grid-template-columns: auto 1fr auto; gap: 12px 16px; }
	.sf-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	.sf-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
	.sf-steps-row.sf-steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wp-block-columns.sf-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 781px) {
	/* Startseite: echtes Foto direkt nach Überschrift und Einordnung, danach die Leistungswahl. */
	.sf-start { display: flex; flex-direction: column; }
	.sf-start > .sf-hero { order: 1; }
	.sf-start > .sf-proof, .sf-start > .sf-proof > .sf-proof-grid { display: contents; }
	.sf-start .sf-proof-media { order: 2; background: var(--sf-ink); padding: 0 var(--sf-gutter) 24px; }
	.sf-start .sf-proof-media figcaption { color: var(--sf-on-dark-2); }
	.sf-start > .sf-choice { order: 3; padding-top: 8px; }
	.sf-start .sf-proof-text { order: 4; padding: var(--sf-section-y) var(--sf-gutter); background: #fff; }

	.wp-block-columns.sf-choice-grid { grid-template-columns: 1fr; }
	.sf-choice-grid > .wp-block-column:first-child { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--sf-line-dark); }
	.sf-choice-grid > .wp-block-column:last-child { padding: 24px 0 0; }

	.wp-block-columns.sf-proof-grid, .wp-block-columns.sf-company-grid, .wp-block-columns.sf-intro-grid,
	.wp-block-columns.sf-two, .wp-block-columns.sf-ways, .wp-block-columns.sf-closing-grid,
	.sf-feature, .sf-media-row { grid-template-columns: 1fr; }
	.sf-steps-row, .sf-steps-row.sf-steps-4 { grid-template-columns: 1fr; }
	.sf-intro .wp-block-column:last-child { order: 2; }
	.sf-symptom-grid { grid-template-columns: 1fr; }
	.sf-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sf-form .sf-field-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 599px) {
	/* Zweizeiliger Kopf: vollständiges Logo lesbar, darunter Menü und Anfrage. */
	.sf-header { grid-template-columns: 1fr auto; grid-template-areas: "logo logo" "nav cta"; padding-block: 10px; gap: 10px 12px; }
	.sf-logo { grid-area: logo; }
	.sf-nav { grid-area: nav; justify-self: start; }
	.sf-header-cta { grid-area: cta; }
	.sf-logo .custom-logo-link { width: min(var(--sf-logo-w), 100%); }
	.sf-header-cta .wp-block-button__link { font-size: 15px; padding: 10px 14px; min-height: 44px; }
	.sf-staging { font-size: 12px; padding-block: 4px; }
	.sf-staging span + span { display: none; }
	.sf-hero h1 { font-size: clamp(32px, 9.2vw, 38px); }
	.sf-intro h1 { font-size: clamp(30px, 8.6vw, 36px); }
	.wp-block-buttons > .wp-block-button { width: 100%; }
	.wp-block-buttons > .wp-block-button > .wp-block-button__link { width: 100%; justify-content: center; }
	.sf-header-cta > .wp-block-button { width: auto; }
	.sf-header-cta > .wp-block-button > .wp-block-button__link { width: auto; }
	.sf-type-grid .sf-type-unknown { grid-column: 1 / -1; }
	.wp-block-columns.sf-footer-grid { grid-template-columns: 1fr; gap: 24px; }
	.sf-table table { font-size: 15px; }
	.sf-table th, .sf-table td { padding: 10px 8px; }
	.sf-type-list { grid-template-columns: 1fr; }
}
