/*
Theme Name:   SAMFEX Child
Theme URI:    https://cmms.samfex.com/
Description:  Child-Theme für cmms.samfex.com auf GeneratePress. Trägt das bestehende SAMFEX-Design (Stand Live 20.09.2026) als versionierte Dateien: Designsystem sfx-*, Gutenberg-Patterns, Formular-Flyouts. Verfahren und Konventionen: Vault PRO_iSFX/SAMFEX/08_Website-Verfahren.md.
Author:       K60 | Analytics für Mellex Services GmbH
Template:     generatepress
Version:      1.1.0
Text Domain:  samfex-child
*/

/* =========================================================================
   Aufbau dieser Datei
   01 Schrift (lokal, kein Google-Fonts-Aufruf)
   02 Designsystem sfx-* (unverändert von der Live-Startseite übernommen, 20.09.2026)
   03 Gutenberg-Anpassungen (native Blöcke tragen die sfx-Klassen)
   04 Formular-Flyout (ersetzt Popup Maker)
   05 Korrekturen gegenüber Live (jede mit Datum und Befund)
   06 Ergänzungen nach Live (jede mit Datum und Auftrag)
   07 Ersatz für GenerateBlocks (Wissen, Team, Fuss; Werte aus den GenerateBlocks-Regeln von Live)
   Das frühere Customizer-CSS (Navigation, smfx-article, Gravity Forms) liegt
   unverändert in assets/css/legacy-customizer.css.
   ========================================================================= */

/* ── 01 SCHRIFT ─────────────────────────────────────────────── */
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('assets/fonts/Plus_Jakarta_Sans/PlusJakartaSans-VariableFont_wght.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url('assets/fonts/Plus_Jakarta_Sans/PlusJakartaSans-Italic-VariableFont_wght.woff2') format('woff2');
}

/* ── 02 DESIGNSYSTEM ────────────────────────────────────────── */
/* ── TOKENS ──────────────────────────────────────────────────── */
.sfx-page, .sfx-modal {
  --green:        #9AC13C;
  --green-600:    #84A82F;
  --slate:        #305773;
  --slate-300:    #6E8DA7;
  --yellow:       #FFC107;
  --ink-950:      #0A0F1A;
  --ink-900:      #101828;
  --ink-800:      #1D2939;
  --ink-700:      #344054;
  --ink-600:      #475467;
  --ink-500:      #667085;
  --ink-400:      #98A2B3;
  --ink-300:      #D0D5DD;
  --ink-200:      #EAECF0;
  --ink-100:      #F2F4F7;
  --ink-50:       #F9FAFB;
  --ink-0:        #FFFFFF;
  --canvas:       #F9FAFB;
  --surface:      #FFFFFF;
  --border:       #EAECF0;
  --border-2:     #D0D5DD;
  --text-1:       #101828;
  --text-2:       #344054;
  --text-3:       #667085;
  --shadow-xs:    0 1px 2px rgba(16,24,40,.08);
  --shadow-sm:    0 2px 6px rgba(16,24,40,.12);
  --shadow-md:    0 8px 24px rgba(16,24,40,.18);
  --shadow-lg:    0 20px 48px rgba(16,24,40,.28);
  --glow-green:   0 0 0 4px rgba(154,193,60,.18);
  --glow-yellow:  0 0 0 4px rgba(255,193,7,.22);
  --r-sm:  8px;  --r-md: 12px; --r-lg: 16px;
  --r-xl:  24px; --r-pill: 9999px;
  --font:  'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ease:  cubic-bezier(.16,1,.3,1);
  --fast:  120ms; --base: 200ms;
}
 
/* ── BASE ────────────────────────────────────────────────────── */
.sfx-page *, .sfx-page *::before, .sfx-page *::after { box-sizing: border-box; }
.sfx-page {
  font-family: var(--font); font-size: 16px;
  color: var(--text-2); line-height: 1.6;
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.sfx-page img  { max-width: 100%; height: auto; display: block; }
.sfx-page a    { text-decoration: none; }
.sfx-page ul   { margin: 0; padding: 0; list-style: none; }
.sfx-page p    { margin: 0; }
.sfx-page h1,.sfx-page h2,.sfx-page h3,.sfx-page h4 {
  font-family: var(--font); margin: 0;
  color: var(--text-1); line-height: 1.08; letter-spacing: -0.02em;
}
 
/* ── LAYOUT ──────────────────────────────────────────────────── */
.sfx-w   { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.sfx-sec { padding: clamp(64px,9vw,120px) 0; }
.sfx-sec--tight { padding: clamp(40px,6vw,72px) 0; }
.sfx-g3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.sfx-g2  { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
@media (max-width: 1024px) { .sfx-w { padding: 0 24px; } }
@media (max-width: 768px)  { .sfx-g3,.sfx-g2 { grid-template-columns: 1fr; } .sfx-w { padding: 0 20px; } }
 
/* ── EYEBROW ─────────────────────────────────────────────────── */
.sfx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green); margin-bottom: 16px;
}
.sfx-eyebrow::before { content: ""; width: 16px; height: 1px; background: currentColor; }
 
/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn,
.wp-block-button.sfx-btn > .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--r-md);
  font-family: var(--font); font-weight: 700; font-size: 15px;
  line-height: 1; border: 1.5px solid transparent; cursor: pointer;
  white-space: nowrap; text-decoration: none;
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease),
              background var(--fast), border-color var(--fast), color var(--fast);
}
.btn:hover,
.wp-block-button.sfx-btn > .wp-block-button__link:hover { transform: translateY(-1px) scale(1.02); }
.btn:active,
.wp-block-button.sfx-btn > .wp-block-button__link:active { transform: scale(.99); }
.btn--lg,
.wp-block-button.sfx-btn--lg > .wp-block-button__link { padding: 18px 28px; font-size: 16px; }
.btn--block,
.wp-block-button.sfx-btn--block > .wp-block-button__link { width: 100%; justify-content: center; }
.btn .arrow { transition: transform var(--base) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
 
.btn--yellow,
.wp-block-button.sfx-btn--yellow > .wp-block-button__link {
  background: var(--yellow); color: var(--ink-900);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), var(--shadow-sm);
}
.btn--yellow:hover,
.wp-block-button.sfx-btn--yellow > .wp-block-button__link:hover {
  color: var(--ink-900);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), var(--shadow-md), var(--glow-yellow);
}
.btn--ghost,
.wp-block-button.sfx-btn--ghost > .wp-block-button__link {
  background: transparent; color: var(--ink-0);
  border-color: rgba(255,255,255,.28);
}
.btn--ghost:hover,
.wp-block-button.sfx-btn--ghost > .wp-block-button__link:hover { border-color: rgba(255,255,255,.65); color: var(--ink-0); }
.btn--outline,
.wp-block-button.sfx-btn--outline > .wp-block-button__link {
  background: var(--surface); color: var(--text-1);
  border-color: var(--border-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), var(--shadow-xs);
}
.btn--outline:hover,
.wp-block-button.sfx-btn--outline > .wp-block-button__link:hover {
  border-color: var(--green); color: var(--text-1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), var(--shadow-sm), var(--glow-green);
}
 
/* ── HERO ────────────────────────────────────────────────────── */
.sfx-hero {
  background: var(--ink-900);
  background-image:
    radial-gradient(1100px 700px at 108% -10%, rgba(154,193,60,.18) 0%, transparent 60%),
    radial-gradient(800px 500px at -8% 60%, rgba(48,87,115,.22) 0%, transparent 60%);
  padding: clamp(72px,10vw,140px) 0 0;
  overflow: hidden;
}
.sfx-hero__inner {
  display: grid; grid-template-columns: 1fr;
  gap: 48px; align-items: flex-end; max-width: 860px;
}
.sfx-hero__content { padding-bottom: clamp(64px,8vw,120px); }
 
.sfx-hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green); margin-bottom: 24px;
}
.sfx-hero__kicker::before { content: ""; width: 16px; height: 1px; background: currentColor; }
 
/* FIX v1.4: .sfx-page-Scope + !important schlägt Theme-Regel .entry-content h1 */
.sfx-page .sfx-hero__h1 {
  font-size: clamp(32px,4.8vw,62px); font-weight: 800;
  line-height: 1.06; letter-spacing: -.028em;
  color: var(--ink-0) !important;
  margin-bottom: 24px;
  overflow-wrap: break-word; word-break: break-word;
}
.sfx-page .sfx-hero__h1 em { font-style: normal; color: var(--green) !important; }
 
.sfx-hero__sub {
  font-size: clamp(16px,1.4vw,19px); color: var(--ink-300);
  line-height: 1.68; margin-bottom: 52px; max-width: 50ch;
}
 
.sfx-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
 
@media (max-width: 960px) {
  .sfx-hero__content { padding-bottom: 64px; }
}
 
/* ── MARQUEE LOGO BAR ────────────────────────────────────────── */
.sfx-proof {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 0; overflow: hidden;
  display: flex; align-items: center; gap: 0;
}
.sfx-proof__label {
  flex-shrink: 0; padding: 0 40px 0 32px;
  font-size: 11px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
  border-right: 1px solid var(--border);
}
.sfx-proof__marquee {
  flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image:         linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.sfx-proof__track {
  display: flex; align-items: center;
  gap: 80px; /* wide spacing between logos */
  width: max-content; padding: 0 40px;
  animation: sfx-marquee 28s linear infinite;
}
.sfx-proof__track:hover { animation-play-state: paused; }
@keyframes sfx-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.sfx-proof__track img {
  height: 38px; width: auto; flex-shrink: 0;
  opacity: .5; filter: grayscale(100%);
  transition: opacity .3s, filter .3s;
}
.sfx-proof__track img:hover { opacity: 1; filter: grayscale(0%); }
 
/* ── SECTION HEADER ──────────────────────────────────────────── */
.sfx-sh { margin-bottom: 56px; }
.sfx-sh--c { text-align: center; }
.sfx-sh--c .sfx-eyebrow { justify-content: center; }
.sfx-sh__title {
  font-size: clamp(28px,4vw,48px); font-weight: 700;
  letter-spacing: -.02em; color: var(--text-1); margin-bottom: 16px;
}
.sfx-sh__sub {
  font-size: clamp(16px,1.3vw,18px); color: var(--text-3);
  line-height: 1.75; max-width: 62ch;
}
.sfx-sh--c .sfx-sh__sub { margin: 0 auto; }
 
/* ── FEATURE CARDS ───────────────────────────────────────────── */
.sfx-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 36px 32px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), var(--shadow-sm);
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease), border-color var(--base) var(--ease);
}
.sfx-card:hover {
  transform: translateY(-3px);
  border-color: rgba(154,193,60,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), var(--shadow-md), 0 0 0 1px rgba(154,193,60,.12);
}
.sfx-card__icon {
  width: 52px; height: 52px; border-radius: var(--r-sm);
  background: rgba(154,193,60,.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.sfx-card h3  { font-size: 18px; font-weight: 700; margin-bottom: 12px; letter-spacing: -.01em; }
.sfx-card p   { font-size: 15px; color: var(--text-3); line-height: 1.75; }
 
/* ── COMPLIANCE ──────────────────────────────────────────────── */
.sfx-compliance {
  background: var(--ink-900);
  background-image: radial-gradient(1000px 600px at 92% 50%, rgba(48,87,115,.30), transparent);
}
.sfx-compliance .sfx-sh__title { color: var(--ink-0); }
.sfx-compliance .sfx-sh__sub   { color: var(--ink-300); }
.sfx-compcards { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.sfx-compcard {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-md); padding: 32px 28px;
  transition: background var(--base);
}
.sfx-compcard:hover { background: rgba(255,255,255,.075); }
.sfx-compcard__tag {
  display: inline-flex; align-items: center;
  padding: 3px 12px; border-radius: var(--r-pill);
  background: rgba(154,193,60,.14); color: var(--green);
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 16px;
  border: 1px solid rgba(154,193,60,.25);
}
.sfx-compcard h3 { font-size: 16px; font-weight: 700; color: var(--ink-0); margin-bottom: 12px; }
.sfx-compcard p  { font-size: 14px; color: var(--ink-300); line-height: 1.75; }
.sfx-compcard strong { color: var(--yellow); }
.sfx-comp-cta {
  margin-top: 48px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.sfx-comp-cta h3 { font-size: 20px; font-weight: 700; color: var(--ink-0); margin: 0; }
.sfx-comp-cta p  { font-size: 14px; color: var(--ink-400); margin: 6px 0 0; }
@media (max-width: 960px) { .sfx-compcards { grid-template-columns: 1fr; } }
 
/* ── PRICING ─────────────────────────────────────────────────── */
.sfx-pricing { background: var(--ink-50); }
.sfx-pricing-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; align-items: start;
}
.sfx-price {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 36px 32px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--shadow-sm);
  position: relative; display: flex; flex-direction: column;
}
.sfx-price--hot {
  border-color: var(--green);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--shadow-lg),
              0 0 0 1px rgba(154,193,60,.18), var(--glow-green);
  transform: translateY(-6px);
}
.sfx-price__star {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: var(--ink-900);
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 18px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.sfx-price__name   { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.sfx-price__amount { font-size: 52px; font-weight: 800; color: var(--text-1); letter-spacing: -.03em; line-height: 1; }
.sfx-price__amount sub { font-size: 16px; font-weight: 500; color: var(--text-3); }
.sfx-price__period { font-size: 13px; color: var(--text-3); margin: 4px 0 16px; }
.sfx-price__desc   { font-size: 14px; font-weight: 600; color: var(--text-2); padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.sfx-price__list   { display: flex; flex-direction: column; gap: 11px; margin: 0 0 32px; flex: 1; }
.sfx-price__list li {
  display: flex; gap: 10px; font-size: 14px;
  color: var(--text-2); align-items: flex-start; line-height: 1.5;
}
.sfx-price__list li::before { content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0; font-size: 13px; margin-top: 1px; }
.sfx-price__list li.opt { color: var(--text-3); }
.sfx-price__list li.opt::before { content: "+"; color: var(--slate-300); }
.sfx-price__note   { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 14px; }
@media (max-width: 960px) { .sfx-pricing-grid { grid-template-columns: 1fr; } .sfx-price--hot { transform: none; } }
 
/* ── TESTIMONIALS ────────────────────────────────────────────── */
.sfx-testimonials { background: var(--surface); }
.sfx-testi {
  background: var(--ink-50); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.sfx-stars { color: var(--yellow); font-size: 14px; letter-spacing: 2px; margin-bottom: 4px; }
.sfx-testi__q { font-size: 15px; color: var(--text-2); line-height: 1.75; font-style: italic; flex: 1; }
.sfx-testi__a { display: flex; align-items: center; gap: 12px; }
.sfx-testi__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.sfx-testi__name { font-size: 14px; font-weight: 700; color: var(--text-1); line-height: 1.3; }
.sfx-testi__role { font-size: 13px; color: var(--text-3); }
 
/* ── CTA SECTION ─────────────────────────────────────────────── */
.sfx-cta {
  background: var(--ink-900);
  background-image: radial-gradient(700px 400px at 95% 60%, rgba(154,193,60,.12), transparent);
  text-align: center;
}
.sfx-cta__mascot { width: 130px; margin: 0 auto 32px; }
.sfx-cta h2 { font-size: clamp(28px,4vw,44px); font-weight: 800; color: var(--ink-0); margin-bottom: 16px; letter-spacing: -.025em; }
.sfx-cta__sub { font-size: 18px; color: var(--ink-300); margin-bottom: 40px; max-width: 52ch; margin-left: auto; margin-right: auto; }
.sfx-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
 
/* ── FAQ ─────────────────────────────────────────────────────── */
.sfx-faq { background: var(--ink-50); }
.sfx-faq__list { max-width: 840px; margin: 0 auto; }
.sfx-faq details { border-bottom: 1px solid var(--border); }
.sfx-faq details:first-child { border-top: 1px solid var(--border); }
.sfx-faq summary {
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; padding: 22px 0;
  font-weight: 700; font-size: 16px; color: var(--text-1);
  cursor: pointer; gap: 20px; user-select: none;
}
.sfx-faq summary::-webkit-details-marker { display: none; }
.sfx-faq summary::after {
  content: "+"; width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border-2); border-radius: 50%;
  font-size: 18px; color: var(--text-3); font-weight: 400;
  transition: border-color var(--fast), color var(--fast);
}
.sfx-faq details[open] summary::after { content: "−"; color: var(--green); border-color: var(--green); }
.sfx-faq__body { padding: 0 0 24px; font-size: 15px; color: var(--text-3); line-height: 1.8; }
.sfx-faq__body a { color: var(--slate); text-decoration: underline; }
.sfx-faq__body a:hover { color: var(--green); }

/* ── 03 GUTENBERG-ANPASSUNGEN ───────────────────────────────── */
/* Jedes Pattern trägt .sfx-page selbst; Abschnitte liegen ohne Abstand aneinander. */
/* GeneratePress setzt .entry-content > [class*=wp-block-]:not(:last-child) auf 1.5em Abstand, deshalb die hohe Spezifität. */
.entry-content > .wp-block-group.sfx-page:not(:last-child):not(.wp-block-heading) { margin-bottom: 0; }
.entry-content > .wp-block-shortcode { margin: 0; }
/* Absätze statt div: .sfx-page p{margin:0} würde die Abstände der Klassen sonst überstimmen. */
.sfx-page p.sfx-eyebrow       { margin-bottom: 16px; }
.sfx-page p.sfx-hero__kicker  { margin-bottom: 24px; }
.sfx-page p.sfx-hero__sub     { margin-bottom: 26px; } /* Live: margin 0 plus <br>, gleiche Höhe */
.sfx-page p.sfx-compcard__tag { margin-bottom: 16px; font-size: 11px; line-height: 1.6; color: var(--green); }
.sfx-page p.sfx-stars         { margin-bottom: 4px; }
.sfx-page p.sfx-cta__sub      { margin: 0 auto 40px; }
.sfx-page p.sfx-price__period { margin: 4px 0 16px; }
.sfx-page p.sfx-price__desc   { padding-bottom: 24px; margin-bottom: 24px; }
.sfx-page p.sfx-price__name   { margin-bottom: 10px; }
.sfx-page p.sfx-price__note   { margin-top: 14px; }
/* Hinweis: Auf Live überstimmt .sfx-page h2{margin:0} den Abstand von .sfx-sh__title. Bewusst nicht korrigiert (Design = Live-Stand). */
.sfx-compliance .sfx-sh__title.wp-block-heading { color: var(--ink-0); }
/* Buttons */
.sfx-page .wp-block-buttons { gap: 12px; }
.sfx-page .wp-block-button.sfx-btn { margin: 0; }
.wp-block-button.sfx-btn--arrow > .wp-block-button__link::after { content: "→"; transition: transform var(--base) var(--ease); }
.wp-block-button.sfx-btn--arrow > .wp-block-button__link:hover::after { transform: translateX(4px); }
.sfx-cta__actions.wp-block-buttons { justify-content: center; }
/* Icons: <svg class="sfx-i" data-i="name"> wird von assets/js/samfex.js gezeichnet */
.sfx-i { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Bilder als Bild-Block */
.sfx-page figure.wp-block-image { margin: 0; }
.sfx-proof__track figure.wp-block-image { flex-shrink: 0; }
figure.sfx-testi__avatar { border: 0; width: 44px; height: 44px; }
figure.sfx-testi__avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
figure.sfx-cta__mascot img { width: 130px; margin: 0 auto; }
.sfx-page figure.sfx-cta__mascot { margin: 0 auto 32px; width: 130px; }
/* Preisliste als Listen-Block */
.sfx-page ul.sfx-price__list { list-style: none; padding: 0; margin: 0 0 32px; }
.sfx-price .wp-block-buttons, .sfx-price .wp-block-button.sfx-btn--block { width: 100%; }
.sfx-page p.sfx-price__amount--text { font-size: 30px; line-height: 52px; letter-spacing: -.02em; }
/* FAQ als Details-Block */
.sfx-faq details.wp-block-details > :not(summary) { padding: 0 0 24px; font-size: 15px; color: var(--text-3); line-height: 1.8; }
.sfx-faq details.wp-block-details > :not(summary) a { color: var(--slate); text-decoration: underline; }
.sfx-faq details.wp-block-details > :not(summary) a:hover { color: var(--green); }
@media (prefers-reduced-motion: reduce) { .sfx-proof__track { animation: none; } .btn, .wp-block-button.sfx-btn > .wp-block-button__link, .sfx-card { transition: none; } }

/* ── 04 FORMULAR-FLYOUT ─────────────────────────────────────── */
.sfx-modal[hidden] { display: none; }
.sfx-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; font-family: var(--font); }
.sfx-modal__scrim { position: absolute; inset: 0; background: rgba(10,15,26,.72); backdrop-filter: blur(4px); }
.sfx-modal__box {
  position: relative; width: min(720px,100%); max-height: calc(100vh - 32px);
  background: var(--surface); color: var(--text-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
}
.sfx-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--border); }
.sfx-modal__title { display: block; font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--text-1); }
.sfx-modal__sub { display: block; margin-top: 4px; font-size: 14px; color: var(--text-3); }
.sfx-modal__x {
  flex: none; width: 40px; height: 40px; padding: 0; border-radius: var(--r-sm); border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text-1); font-size: 22px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.sfx-modal__x:hover, .sfx-modal__x:focus { background: var(--ink-100); color: var(--text-1); border-color: var(--green); }
.sfx-modal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 26px 28px; -webkit-overflow-scrolling: touch; }
.sfx-modal__body .gform_wrapper { margin: 0; }
.sfx-modal__note { margin: 0 0 20px; font-size: 14px; color: var(--text-3); }
.sfx-modal.is-confirmed .sfx-modal__head { border-bottom: 0; padding-bottom: 0; justify-content: flex-end; }
.sfx-modal.is-confirmed .sfx-modal__head > div { display: none; }
.sfx-answer { text-align: center; padding: 8px 0 12px; }
.sfx-answer h3 { font-size: 22px; font-weight: 800; color: var(--text-1); margin: 0 0 12px; }
.sfx-answer p { color: var(--text-2); margin: 0; }
@media (max-width: 640px) { .sfx-modal { padding: 0; } .sfx-modal__box { height: 100vh; max-height: 100vh; border-radius: 0; } .sfx-modal__head, .sfx-modal__body { padding-left: 20px; padding-right: 20px; } }

/* ── 05 KORREKTUREN GEGENÜBER LIVE ──────────────────────────── */
/* 20.09.2026, Befund QS 02.001: H1 „Prüfungsdokumentation“ bricht auf 375 px mitten im Wort („…dokumentati / on“). */
@media (max-width: 420px) { .sfx-page .sfx-hero__h1 { font-size: 28px; word-break: normal; overflow-wrap: normal; hyphens: manual; } }
/* 02.11.2026, Gesamtprüfung S20: Ohne Popup Maker rendert Gravity Forms im Orbital-Stil (Popup Maker erzwang den alten Stil).
   Dessen Zeilen haben seitlich -6 px Rand; auf „Anfrage starten“ läuft das Namensfeld bei 375 px 6 px über den Rand. */
@media (max-width: 640px) { .entry-content > .gform_wrapper .gform-grid-row { margin-inline: 0; } }

/* ── 06 ERGÄNZUNGEN NACH LIVE ───────────────────────────────── */
/* 02.11.2026, Liste Veith Punkt 3: Abschnitt „SAMFEX im Überblick“ mit Satz links und Video rechts (Muster samfex/video). */
.sfx-video { background: var(--surface); }
.sfx-video__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sfx-video__copy .sfx-sh__title { margin-bottom: 16px; }
.sfx-page p.sfx-video__text { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--text-2); margin: 0; }
.sfx-video__media .wp-block-embed { margin: 0; }
@media (max-width: 860px) { .sfx-video__grid { grid-template-columns: 1fr; } }
/* YouTube mit Klick-Laden (functions.php, assets/js/samfex.js) */
.sfx-yt { margin: 0; }
.sfx-yt__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-900); box-shadow: var(--shadow-lg); }
.sfx-yt__frame iframe, .sfx-yt__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sfx-yt__play { padding: 0; cursor: pointer; background: var(--ink-900); }
.sfx-yt__play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sfx-yt__play:hover img, .sfx-yt__play:focus-visible img { transform: scale(1.03); }
.sfx-yt__play:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.sfx-yt__icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--yellow); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .2s ease; }
.sfx-yt__icon::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--ink-900); }
.sfx-yt__play:hover .sfx-yt__icon { transform: scale(1.08); }
.sfx-yt__note { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--text-3); }
.sfx-yt__note a { color: inherit; text-decoration: underline; }
.sfx-yt__cap { display: block; margin-bottom: 4px; font-size: 14px; color: var(--text-2); }

/* ── 07 ERSATZ FÜR GENERATEBLOCKS ───────────────────────────── */
/* 02.11.2026, Liste Veith Punkt 6: Kernblöcke mit eigenen Klassen statt GenerateBlocks (Pro). Werte 1:1 aus
   style-global.css und den Element-Regeln von Live (gbp-section, gbp-card, gb-element-…). */
.sfx-gsec { padding: 8rem 2rem; }
.sfx-gsec__inner { margin-left: auto; margin-right: auto; max-width: 1200px; }
.sfx-gsec__headline.wp-block-heading { margin-bottom: 1.5rem; }
p.sfx-gsec__text { font-size: 1.125rem; }
@media (max-width: 767px) { .sfx-gsec { padding: 6rem 1.5rem; } .sfx-gsec__headline.wp-block-heading { margin-bottom: 1.25rem; } }
/* Wissen: Titelbild und Beitragsliste */
.sfx-wissen__bild.wp-block-image { margin: 0; }
.sfx-wissen__bild img { width: auto; max-width: 100%; object-fit: cover; padding-top: 30px; }
.sfx-gsec.sfx-wissen { aspect-ratio: 16 / 9; padding-top: 4rem; transition: all .5s ease 0s; }
.sfx-wissen .sfx-gsec__kopf { margin-bottom: 5rem; }
@media (max-width: 1024px) { .sfx-wissen .sfx-gsec__kopf { margin-bottom: 4rem; max-width: 100%; } }
.sfx-postgrid.wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1024px) { .sfx-postgrid.wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .sfx-postgrid.wp-block-post-template { grid-template-columns: 1fr; } }
.sfx-postcard { border: 1px solid #000; }
.sfx-postcard__bild.wp-block-post-featured-image { margin: 0; }
.sfx-postcard__bild img { display: block; height: auto; max-width: 100%; object-fit: cover; }
.sfx-postcard__body { padding: 1.5rem; }
@media (max-width: 767px) { .sfx-postcard__body { padding: 1.25rem; } }
.sfx-postcard__meta.wp-block-post-date { font-size: .875rem; margin-bottom: .5rem; }
.sfx-postcard__title.wp-block-post-title { font-size: 1.25rem; margin-bottom: .5rem; }
.sfx-postcard__title a { display: inline; }
.sfx-postcard__text .wp-block-post-excerpt__excerpt { margin: 0 0 24px; }
.sfx-postcard__more.wp-block-read-more { display: inline; margin-top: 1.5rem; padding: 8px 12px 8px 0; }
/* Team */
.sfx-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; margin-left: auto; margin-right: auto; position: relative; }
@media (max-width: 1024px) { .sfx-team { grid-template-columns: 1fr; } }
.sfx-team__intro { text-align: left; }
.sfx-team__bild.wp-block-image { margin: 0 0 1.5rem; }
.sfx-team__bild img { width: 80px; height: 80px; border-radius: 100%; object-fit: cover; }
p.sfx-team__name { font-size: 1.25rem; font-weight: 600; margin: 0; }
p.sfx-team__rolle { font-size: 1rem; font-weight: 400; padding-bottom: 1rem; margin: 0; }
p.sfx-team__bio { font-size: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 767px) { p.sfx-team__bio { font-size: 1.125rem; } }
.sfx-team__social.wp-block-social-links { display: flex; gap: 1rem; margin: 1.5rem 0 0; padding: 0; font-size: 1.5rem; }
.sfx-team__social.wp-block-social-links .wp-social-link { color: #000; background: none; margin: 0; }
.sfx-team__social.wp-block-social-links .wp-social-link a { padding: 0; color: #000; }
.sfx-team__social.wp-block-social-links .wp-social-link svg { width: 1em; height: 1em; }
/* Fuss (GP-Element „Footer“) */
.sfx-gsec.sfx-fuss { margin-left: auto; margin-right: auto; }
@media (max-width: 767px) { .sfx-gsec.sfx-fuss { width: 100%; border-radius: 0; padding: 4rem 1.5rem; } }
.sfx-fuss__grid { display: grid; grid-template-columns: 4fr 1fr 1fr; gap: 2em; margin-left: auto; margin-right: auto; max-width: 1200px; }
@media (max-width: 767px) { .sfx-fuss__grid { grid-template-columns: 1fr; } }
.sfx-fuss__marke { column-gap: 3rem; }
@media (max-width: 1024px) { .sfx-fuss__marke { grid-column: span 3; } }
@media (max-width: 767px) { .sfx-fuss__marke { grid-column: unset; display: flex; flex-direction: column; align-items: center; row-gap: 2rem; text-align: center; } }
.sfx-fuss .sfx-fuss__social { align-items: center; column-gap: 1.5rem; margin-top: 6px; }
.sfx-fuss__social a { color: var(--base-3); }
.sfx-fuss__social .wp-block-social-links { margin: 0 0 1.5em; }
.sfx-fuss__logo.wp-block-image { margin: 0 0 8px; } /* 8px = Grundlinienabstand des Inline-Bilds auf Live */
.sfx-fuss__logo img { width: 220px; height: 72px; margin-bottom: 2rem; }
.sfx-fuss p.sfx-fuss__copy { margin: 0 0 24px; display: inline-flex; align-items: center; column-gap: .25em; color: var(--contrast-3); font-size: .9375rem; }
.sfx-fuss__spalte a { color: var(--contrast-3); }
.sfx-fuss__spalte a:hover { color: var(--accent); }
@media (max-width: 767px) { .sfx-fuss__spalte { display: flex; flex-direction: column; align-items: center; text-align: center; } }
p.sfx-fuss__titel { display: flex; color: var(--contrast); font-size: .9375rem; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 1rem; text-transform: uppercase; }
p.sfx-fuss__link { display: flex; font-size: 1rem; line-height: 1.5em; margin-bottom: .25rem; }

/* Korrektur 02.11.2026 (Rechtscheck 03.08, Auftrag Veith): Team-Seite mit drei Personen. Einleitung plus drei Karten
   als Raster 2 x 2 statt 3 Spalten (sonst stünde eine Karte allein in der zweiten Zeile). Unter 1024 px wie bisher einspaltig. */
@media (min-width: 1025px) { .sfx-team { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 960px; } }

/* Ergänzung 02.11.2026 (Rechtscheck 02.15): Hinweis „nur für Unternehmer“ in den Formularen 2 und 3 (HTML-Feld) */
.gform_wrapper .sfx-b2b-hinweis p.sfx-b2b { margin: 0; font-size: 14px; line-height: 1.5; color: var(--contrast, #112337); }
