/* ==========================================================================
   MR.KNOW — Components: buttons, header, nav, rail, hero, cards, footer …
   ========================================================================== */

/* --- Buttons (STYLEGUIDE V3: 4 Typen · Radius 12px · Pfeil rechts) ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: var(--fs-400);
  border: 1.5px solid transparent; border-radius: var(--radius-btn);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  text-align: center; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary — Schwarzwald Rot */
.btn--cta { background: var(--cta); color: #fff; }
.btn--cta:hover { background: var(--cta-hover); }
/* Secondary — MR.KNOW Purple #4E3F8E */
.btn--primary, .btn--secondary { background: var(--brand-2); color: #fff; }
.btn--primary:hover, .btn--secondary:hover { background: #3e318e; }
/* Tertiary — Border (auf Weiß) */
.btn--ghost, .btn--tertiary { background: transparent; border-color: var(--brand-2); color: var(--brand-2); }
.btn--ghost:hover, .btn--tertiary:hover { background: var(--c-purple-050); }
/* Ghost — transparent + Underline */
.btn--text { background: transparent; color: var(--brand-2); text-decoration: underline; }

/* Pfeil-Icon rechts (Primary/Secondary) — nicht bei Formular-/Cookie-Buttons */
.btn--cta::after, .btn--primary::after, .btn--secondary::after { content: "\2192"; transition: transform var(--dur) var(--ease); }
.btn--cta:hover::after, .btn--primary:hover::after, .btn--secondary:hover::after { transform: translateX(3px); }
.cc-actions .btn::after, .calc .btn::after, [data-contact-form] .btn::after, [data-widget] .btn::after { content: none; }

/* Helle Buttons auf dunklen Flächen */
.section--dark .btn--ghost, .cta-band .btn--ghost, .footer-cta .btn--ghost, .assistantcore .btn--ghost,
.section--dark .btn--tertiary { color: #fff; border-color: rgba(255,255,255,0.85); background: transparent; }
.section--dark .btn--ghost:hover, .cta-band .btn--ghost:hover, .footer-cta .btn--ghost:hover { background: #fff; color: var(--brand); }

.btn--lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-500); }
.btn--sm { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-300); }
.btn[disabled], .btn--disabled { opacity: 0.45; pointer-events: none; }

.arrow-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: var(--fw-bold); color: var(--cta);
}
.arrow-link::after { content: "→"; transition: transform var(--dur) var(--ease); }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::after { transform: translateX(4px); }

/* --- Overflow-Menü / linke Ribbon-Leiste (Styleguide 06) -------------- */
.rail {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 0;
  /* Pyramidenstumpf um 90° nach rechts gedreht: linke Kante = volle Höhe (Basis),
     rechte Kante kurz; Oberkante fällt nach rechts, Unterkante steigt nach rechts. */
  background: linear-gradient(180deg, #d11414 0%, #9a1616 40%, #5e1616 84%, #8f4a4f 100%);
  padding-block: 26px;
  clip-path: polygon(0 0, 100% 30px, 100% calc(100% - 30px), 0 100%);
  box-shadow: 6px 8px 24px rgba(36, 28, 66, 0.28);
}
.rail__btn {
  min-width: var(--rail-w); height: 50px; display: flex; align-items: center; justify-content: center;
  background: transparent; color: #fff; border-radius: 0; white-space: nowrap;
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.rail__btn:hover { background: rgba(0, 0, 0, 0.16); }
.rail__btn svg { width: 22px; height: 22px; }
@media (max-width: 720px) {
  .rail { top: auto; bottom: 0; left: 0; right: 0; width: 100%; transform: none;
    flex-direction: row; justify-content: space-around; align-items: center; gap: 0;
    padding: 2px 0 calc(2px + env(safe-area-inset-bottom));
    clip-path: none; border-radius: 0; box-shadow: 0 -4px 16px rgba(36,28,66,.22); z-index: 90; }
  .rail__btn { width: auto; flex: 1; justify-content: center; padding: 12px 0; }
  .rail__btn::after { display: none; }
}

/* --- Header ----------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: var(--header-h);
}
.brand-logo {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-size: 1.5rem; letter-spacing: -0.02em; color: var(--brand);
}
.brand-logo .dot { color: var(--cta); }
.brand-logo:hover { text-decoration: none; }
/* Offizielles MR.KNOW-Logo (Styleguide: nie strecken/einfärben/verzerren) */
.brand-logo__img { height: 46px; width: auto; display: block; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--sp-5); }
.nav__link {
  font-weight: var(--fw-medium); font-size: var(--fs-400);
  padding: var(--sp-2) 0; position: relative; color: var(--text);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--cta); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { text-decoration: none; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link--external::before { content: "↗"; font-size: 0.75em; margin-right: 2px; opacity: 0.6; }

.lang-switch { display: inline-flex; align-items: center; gap: 4px; }
.lang-switch a {
  padding: 4px 10px; border-radius: var(--radius-pill); font-size: var(--fs-300);
  font-weight: var(--fw-bold); color: var(--text-muted);
}
.lang-switch a[aria-current="true"] { background: var(--brand); color: #fff; }
.lang-switch a:hover { text-decoration: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto;
  border-radius: var(--radius-sm);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--brand);
  border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur);
  margin-inline: auto;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after  { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); padding: var(--sp-3) var(--gutter) var(--sp-5);
    transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: transform var(--dur) var(--ease), opacity var(--dur), visibility var(--dur);
  }
  .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: var(--sp-2); }
  .nav__list .nav__link { padding-block: var(--sp-3); min-height: 44px; display: flex; align-items: center; }
}

/* --- Badges (Made in Black Forest, award) ----------------------------- */
.badges { display: flex; gap: var(--sp-4); align-items: center; }
.badge {
  display: inline-flex; flex-direction: column; align-items: center;
  text-align: center; font-size: 0.6rem; font-weight: var(--fw-bold);
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
  color: var(--brand); padding: var(--sp-3); border: 1.5px solid var(--brand);
  border-radius: var(--radius); min-width: 88px; background: #fff;
}
.badge .flag { font-size: 1rem; margin-bottom: 2px; }

/* --- Hero ------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 92% 0%, var(--c-purple-050), transparent 60%),
    var(--bg);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero__grid {
  display: grid; gap: var(--sp-7); align-items: center;
}
.hero__grid > * { min-width: 0; } /* Grid-Items sonst nicht schmaler als ihr Inhalt (Widget-Overflow auf Mobile) */
@media (min-width: 940px) {
  .hero__grid { grid-template-columns: 0.92fr 1.08fr; }
  .hero__media { order: -1; } /* Bild/Avatare links, Text rechts (image001) */
}

.hero h1 { font-size: clamp(2rem, 2.5vw + 0.75rem, 3.25rem); }
.hero h1 .accent { color: var(--cta); }
.hero__sub { font-size: var(--fs-500); color: var(--text-muted); margin-top: var(--sp-5); max-width: 46ch; }

.hero__art {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  background:
    radial-gradient(closest-side at 40% 45%, var(--c-purple-400), transparent 70%),
    linear-gradient(135deg, var(--c-purple-700), var(--c-purple-900));
  display: grid; place-items: center; color: #fff; overflow: hidden;
}
.hero__art .placeholder-note {
  font-size: var(--fs-300); opacity: 0.85; text-align: center; padding: var(--sp-5);
  font-weight: var(--fw-medium);
}
.hero__badges { margin-top: var(--sp-6); }

/* P5.1 — Hero-Art „Comic-Charaktere vor Schwarzwald" (Platzhalter, V8) */
.hero__art--characters {
  aspect-ratio: 720 / 560;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(36,28,66,0.10), transparent 60%),
    repeating-linear-gradient(45deg, #efeaf8 0 11px, #e7e0f3 11px 22px);
  border: 1px dashed var(--c-purple-300, #b6a9e0);
  border-radius: var(--radius-lg);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.hero__badge {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: #fff; color: var(--brand); font-weight: var(--fw-bold);
  font-size: var(--fs-300); border-radius: var(--radius-pill);
  padding: var(--sp-2) var(--sp-4); box-shadow: var(--shadow);
}
.hero__badge { padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-md); }
.hero__badge .mibf-mark { width: auto; height: clamp(72px, 8vw, 96px); object-fit: contain; border-radius: 0; }
.hero__art-note { text-align: center; color: var(--c-purple-700); font-weight: var(--fw-bold); line-height: 1.4; }
.hero__art-note b { display: block; font-size: var(--fs-500); }

/* Hero widget — the "Jetzt Potential berechnen" placeholder */
.widget {
  background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--cta); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: var(--sp-6); margin-top: var(--sp-6);
}
.widget__label { font-weight: var(--fw-bold); color: var(--brand); font-size: var(--fs-400); margin-bottom: var(--sp-4); }
.widget__row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.widget__input {
  flex: 1 1 220px; padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
}
.widget__hint { font-size: var(--fs-300); color: var(--text-muted); margin-top: var(--sp-3); }
.widget__hint--err { color: var(--cta); }
.widget__btn { width: 100%; justify-content: center; margin-top: var(--sp-4); }
.widget__how { display: block; text-align: center; margin-top: var(--sp-4); font-size: var(--fs-300);
  color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.widget__how::after { content: " \203a"; text-decoration: none; }
.widget__how:hover { color: var(--brand); }
.widget__back { display: block; width: 100%; margin-top: var(--sp-3); background: none; border: none; font: inherit; font-size: var(--fs-300); color: var(--text-muted); cursor: pointer; text-align: center; }
.widget__back:hover { color: var(--brand); }

/* Widget body — fixed height prevents jumping between steps; button always at bottom */
.widget__body { min-height: 292px; display: flex; flex-direction: column; }
[data-widget-step] { display: flex; flex-direction: column; flex: 1; }
[data-widget-step][hidden] { display: none; }
[data-widget-step] .widget__btn { margin-top: auto; padding-top: var(--sp-4); }

/* Step indicator */
.widget__stepper { display: flex; align-items: center; margin-bottom: var(--sp-5); }
.widget__step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.widget__step-num {
  width: 28px; height: 28px; border-radius: 50%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-300); font-weight: var(--fw-bold);
  background: #fff; color: var(--text); border: 2px solid var(--text);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.widget__step-label { font-size: 11px; color: var(--text); white-space: nowrap; transition: color var(--dur) var(--ease); }
.widget__step--active .widget__step-num { background: var(--cta); color: #fff; border-color: var(--cta); }
.widget__step--active .widget__step-label { color: var(--brand); font-weight: var(--fw-bold); }
.widget__step--done .widget__step-num { color: var(--text-muted); border-color: var(--c-grey-300); }
.widget__step--done .widget__step-label { color: var(--text-muted); }
.widget__step-line { flex: 1; height: 2px; background: var(--text); margin: 0 var(--sp-2); margin-bottom: 14px; transition: background var(--dur) var(--ease); }
.widget__step-line--done { background: var(--c-grey-300); }

/* Step intro text */
.widget__step-intro { font-size: var(--fs-400); color: var(--text-muted); margin-bottom: var(--sp-4); line-height: 1.5; }

/* Email input inside widget */
.widget .field { margin-bottom: var(--sp-4); }
.widget .field label { display: block; font-size: var(--fs-300); font-weight: var(--fw-bold); margin-bottom: var(--sp-2); color: var(--text); }
.widget__input { display: block; box-sizing: border-box; width: 100%; padding: var(--sp-3) var(--sp-4); border: 2px solid var(--c-purple-200); border-radius: var(--radius); background: var(--c-purple-050); font: inherit; font-size: var(--fs-400); color: var(--text); transition: border-color var(--dur) var(--ease); }
.widget__input:focus { outline: none; border-color: var(--cta); background: #fff; }

/* Success state */
.widget__success { text-align: center; padding: var(--sp-4) 0; }
.widget__success-icon { width: 48px; height: 48px; color: var(--brand); margin: 0 auto var(--sp-3); display: block; }
.widget__success-title { font-size: var(--fs-600); color: var(--brand); margin-bottom: var(--sp-2); }
.widget__success-text { font-size: var(--fs-300); color: var(--text-muted); line-height: 1.6; }

/* Widget tabs */
.widget__tabs {
  display: flex; gap: var(--sp-2); margin-bottom: var(--sp-4);
  border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.widget__tab {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3); border: none; background: none;
  font: inherit; font-size: var(--fs-300); color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.widget__tab svg { width: 16px; height: 16px; flex-shrink: 0; }
.widget__tab:hover { color: var(--brand); }
.widget__tab--active { color: var(--brand); border-bottom-color: var(--cta); font-weight: var(--fw-bold); }
.widget__tab:disabled { opacity: 0.38; cursor: not-allowed; pointer-events: none; }

/* Widget panels */
.widget__panel { display: none; }
.widget__panel--active { display: flex; flex-direction: column; }

/* Drop zone for PDF */
.widget__drop {
  display: block; box-sizing: border-box; width: 100%;
  border: 2px dashed var(--c-purple-200); border-radius: var(--radius);
  padding: var(--sp-5); text-align: center; color: var(--text-muted);
  background: var(--c-purple-050); margin-bottom: 0; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.widget__drop.is-dragover { border-color: var(--cta); background: var(--c-red-100); }
.widget__drop:focus-within { border-color: var(--cta); background: var(--c-red-100); }
.widget__drop-inner { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); pointer-events: none; }
.widget__drop-inner svg { width: 32px; height: 32px; color: var(--c-purple-300); }
.widget__drop-text { font-size: var(--fs-400); color: var(--text); }
.widget__drop-link { color: var(--cta); text-decoration: underline; }
.widget__drop-sub { font-size: var(--fs-300); color: var(--text-muted); }
.widget__drop-filename { font-size: var(--fs-300); color: var(--brand); font-weight: var(--fw-bold); }
.widget__file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Drop zone URL variant */
.widget__drop--url {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); text-align: left; cursor: text;
}
.widget__drop--url svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--c-purple-300); }

/* Widget URL input */
.widget__url { flex: 1; border: none; background: transparent; font: inherit;
  color: var(--text); padding: var(--sp-2); min-width: 0; }
.widget__url:focus { outline: none; }

/* Widget textarea */
.widget__textarea {
  display: block; box-sizing: border-box; width: 100%; resize: vertical;
  border: 2px solid var(--c-purple-200); border-radius: var(--radius);
  padding: var(--sp-4); font: inherit; font-size: var(--fs-400); color: var(--text);
  background: var(--c-purple-050); line-height: 1.6;
  transition: border-color var(--dur) var(--ease);
}
.widget__textarea:focus { outline: none; border-color: var(--cta); background: #fff; }

/* Eingabe-Feld kompakt & in allen drei Tabs gleich groß */
.widget__drop[data-drop], .widget__drop--url, .widget__textarea { box-sizing: border-box; height: 112px; min-height: 0; }
.widget__drop[data-drop] { display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--sp-4); }
.widget__drop[data-drop] .widget__drop-sub { display: none; }
.widget__textarea { resize: none; padding: var(--sp-3) var(--sp-4); line-height: 1.4; }

/* Hero certificates row (bottom-left under avatars) */
.hero__certs { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.cert { display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-300); font-weight: var(--fw-bold); color: var(--brand);
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4); min-height: 48px; }

/* --- Generic card ----------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-6); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
  background: var(--c-purple-100); color: var(--brand-2);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-500); margin-bottom: var(--sp-3); }
.card p { color: var(--text-muted); }

/* --- Checklist (Aufgaben / Nutzen / Features) — EINE Definition ------- */
.checklist { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.checklist li { display: flex; gap: var(--sp-3); align-items: flex-start; line-height: 1.4; }
.checklist li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-purple-050); color: var(--brand-2); display: grid; place-items: center;
  font-size: 0.72rem; font-weight: var(--fw-bold); margin-top: 1px;
}
.card--feature .checklist li { color: rgba(255,255,255,0.92); }
.card--feature .checklist li::before { background: rgba(255,255,255,0.22); color: #fff; }
.callout {
  background: var(--c-red-100); border-left: 6px solid var(--cta);
  border-radius: var(--radius); padding: var(--sp-6); font-size: var(--fs-500);
}

/* --- Problem/solution narrative (V7 ROI intro) ------------------------ */
.story { max-width: 64ch; margin-bottom: var(--sp-7); display: grid; gap: var(--sp-5); }
.story p { font-size: var(--fs-500); line-height: var(--lh-snug); font-style: italic; padding-left: var(--sp-5); }
.story__problem { color: var(--text-muted); border-left: 4px solid var(--c-grey-300); }
.story__solution { color: var(--brand); font-weight: var(--fw-medium); border-left: 4px solid var(--cta); }

/* --- ROI tiles -------------------------------------------------------- */
.roi { text-align: center; }
.roi__num { font-size: var(--fs-700); font-weight: var(--fw-black); color: var(--brand-2); }
.roi p { color: var(--text-muted); margin-top: var(--sp-2); }
.roi a { display: inline-block; margin-top: var(--sp-3); font-weight: var(--fw-bold); color: var(--brand-2); }

/* --- Fachkräfte cards + filter --------------------------------------- */
.filterbar { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.chip {
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-pill);
  border: 1px solid var(--border); font-weight: var(--fw-medium); font-size: var(--fs-300);
  background: #fff; transition: all var(--dur) var(--ease);
}
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip:hover { border-color: var(--brand-2); }

/* Gleiche Kartenhöhe unabhängig vom Inhalt: Flex-Column, Meter/CTA bündig unten.
   Im Slider (Flex) und Katalog (Grid) strecken die Karten auf die Reihenhöhe. */
.fk-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.fk-card__img { flex-shrink: 0; }
.slider__track { align-items: stretch; }
.fk-card__tag {
  position: absolute; top: var(--sp-4); left: var(--sp-4);
  font-size: 0.65rem; font-weight: var(--fw-bold); letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-pill);
  color: #fff;
}
.fk-card__tag--assistant { background: var(--c-purple-500); }
.fk-card__tag--agent     { background: var(--c-purple-700); }
.fk-card__tag--worker    { background: var(--cta); }
.fk-card__img {
  aspect-ratio: 16 / 10; border-radius: var(--radius); margin-bottom: var(--sp-4);
  background: linear-gradient(135deg, var(--c-purple-200), var(--c-purple-400));
  display: grid; place-items: center; color: #fff; font-size: var(--fs-300);
}
.fk-card h3 { font-size: var(--fs-500); }
.fk-card h3 a { color: inherit; text-decoration: none; }
.fk-card h3 a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.fk-card:hover { transform: translateY(-4px); }
.fk-card:hover h3 a { color: var(--cta); }
.fk-card__more { margin-top: var(--sp-3); }
.fk-card__more .arrow-link { font-size: var(--fs-300); position: relative; z-index: 1; }
.fk-card .role { color: var(--text-muted); font-size: var(--fs-300); margin-bottom: var(--sp-3); }
.fk-card ul.mini { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0; }
.fk-card ul.mini li { display: flex; gap: var(--sp-2); font-size: var(--fs-300); }
.fk-card ul.mini li::before { content: "✓"; color: var(--brand-2); font-weight: 700; }
.fk-card .meter { display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--border); padding-top: var(--sp-3); margin-top: auto; }
.fk-card .meter b { color: var(--brand-2); font-size: var(--fs-500); }
/* P5.6 — „Verwandte Fachkräfte" (Card als Link, mit Bild) */
.fk-related { display: flex; flex-direction: column; gap: var(--sp-2); text-decoration: none; color: inherit; }
.fk-related__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius);
  margin-bottom: var(--sp-3); background-size: cover; background-position: center; min-height: 0; }
.fk-related__media .fk-card__tag { position: absolute; top: var(--sp-3); left: var(--sp-3); }
.fk-related h3 { font-size: var(--fs-500); }
.fk-related .role { color: var(--text-muted); font-size: var(--fs-300); }
.fk-related .arrow-link { margin-top: auto; padding-top: var(--sp-3); font-size: var(--fs-300); }
.fk-related:hover { transform: translateY(-4px); }
.fk-related:hover h3 { color: var(--cta); }

/* Detail-Seiten: Hero-Chips (Kennzahlen unter dem Lead) */
.hero-chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5);
  list-style: none; padding: 0; }
.hero-chips li { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: var(--sp-2) var(--sp-4); font-size: var(--fs-300); color: var(--brand); }
.hero-chips b { color: var(--cta); font-weight: var(--fw-bold); }


/* Detail-Seiten: 3 Automatisierungsgrade, aktueller hervorgehoben */
.gradcard { border-top: 4px solid var(--c-grey-300); }
.gradcard--assistant { border-top-color: var(--brand-2); }
.gradcard--agent { border-top-color: var(--cta); }
.gradcard--worker { border-top-color: var(--c-grey-500); }
.gradcard--active { box-shadow: 0 0 0 2px var(--cta), var(--shadow-lg); }
.gradcard__badge { display: inline-block; background: var(--cta); color: #fff; font-size: 0.7rem;
  font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: var(--radius-pill); padding: 2px 10px; margin-bottom: var(--sp-2); }
.gradcard h3 { font-size: var(--fs-500); }
.gradcard .role { color: var(--text-muted); font-size: var(--fs-300); margin: var(--sp-2) 0; }
.gradcard p { color: var(--text-muted); font-size: var(--fs-300); }

.is-hidden { display: none !important; }

/* --- Why MR.KNOW quadrants ------------------------------------------- */
.quad { border-top: 4px solid var(--brand-2); }
.quad--red    { border-color: var(--cta); }
.quad--green  { border-color: var(--brand-2); }
.quad--orange { border-color: var(--c-grey-500); }
.quad--purple { border-color: var(--brand); }
.quad .eyebrow { color: inherit; }

/* --- Automation levels ------------------------------------------------ */
.level { border-left: 4px solid var(--brand-2); padding-left: var(--sp-5); }
.level + .level { margin-top: var(--sp-6); }
.level h3 .lv { display: block; font-size: var(--fs-300); color: var(--text-muted); font-weight: var(--fw-medium); }

/* --- Overview capability list ---------------------------------------- */
.caps { display: grid; gap: var(--sp-3); }
.caps li {
  display: flex; align-items: center; gap: var(--sp-4);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); font-weight: var(--fw-bold);
}
.caps li .n { color: var(--cta); font-weight: var(--fw-black); }

/* --- Integrations strip ---------------------------------------------- */
.logos { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.logo-chip {
  flex: 1 1 140px; min-height: 96px; border: 1px solid var(--border);
  border-radius: var(--radius); display: grid; place-items: center; text-align: center;
  padding: var(--sp-4); color: var(--text-muted); font-weight: var(--fw-bold);
  background: #fff;
}

/* --- Aktuelles (Infowall teaser) ------------------------------------- */
.news-card { position: relative; overflow: hidden; color: #fff; min-height: 240px;
  border-radius: var(--radius); display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--sp-5); background: linear-gradient(180deg, var(--c-purple-700), var(--c-purple-900)); }
.news-card__kicker { font-size: 0.65rem; font-weight: var(--fw-bold); letter-spacing: 0.08em;
  text-transform: uppercase; align-self: flex-start; background: var(--cta); padding: 3px 10px;
  border-radius: var(--radius-pill); margin-bottom: var(--sp-3); }
.news-card h3 { color: #fff; font-size: var(--fs-500); }
.news-card p { color: rgba(255,255,255,0.8); font-size: var(--fs-300); margin-top: var(--sp-2); }
.news-card:hover { text-decoration: none; transform: translateY(-4px); }

/* --- Final CTA -------------------------------------------------------- */
.cta-band { background: linear-gradient(135deg, var(--c-purple-800), var(--c-purple-900));
  border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 52ch; margin: var(--sp-4) auto var(--sp-6); }

/* --- Footer ----------------------------------------------------------- */
.footer { background: var(--c-purple-900); color: var(--text-on-dark); padding-block: var(--sp-8); }
.footer a { color: rgba(255,255,255,0.85); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: var(--sp-7); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer h4 { color: #fff; font-size: var(--fs-400); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-4); }
.footer ul { display: grid; gap: var(--sp-2); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: var(--sp-7); padding-top: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; font-size: var(--fs-300); color: rgba(255,255,255,0.7); }

/* ======================================================================
   V8 components — Problem/Solution, Process timeline, A·A·W cards,
   Potential calculator, AssistantCore block, two-button CTA
   ====================================================================== */

/* Problem / Solution two columns (ROI) */
.problemsolution { display: grid; gap: var(--sp-5); }
@media (min-width: 820px) { .problemsolution { grid-template-columns: 1fr 1fr; } }
.ps-col { border-radius: var(--radius-lg); padding: var(--sp-6); }
.ps-col--problem  { background: var(--c-red-100); border: 1px solid #f1c9c9; }
.ps-col--solution { background: #f3f1f9; border: 1px solid #ddd6ef; }
.ps-head { font-size: var(--fs-500); margin-bottom: var(--sp-4);
  text-transform: uppercase; letter-spacing: 0.04em; }
.ps-head--problem  { color: var(--cta); }
.ps-head--solution { color: var(--brand-2); }
.ps-list { display: grid; gap: var(--sp-3); }
.ps-list li { display: flex; gap: var(--sp-3); align-items: flex-start;
  color: var(--c-grey-800); font-weight: var(--fw-medium); }
.ps-list li::before { flex: none; width: 22px; height: 22px; border-radius: 50%;
  color: #fff; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; }
.ps-list--x li::before     { content: "\2715"; background: var(--cta); }
.ps-list--check li::before { content: "\2713"; background: var(--brand-2); }

/* Herausforderungen: Liste + Person-Bild im roten Kasten */
.ps-split { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 560px) { .ps-split { grid-template-columns: 1fr minmax(130px, 190px); } }
.ps-figure { width: 100%; max-width: 320px; height: auto; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); justify-self: center; }

/* Process timeline (Stellenanzeige -> digitale Fachkraft) */
.process { display: grid; gap: var(--sp-5); counter-reset: pstep; }
@media (min-width: 760px) { .process { grid-template-columns: repeat(5, 1fr); } }
.process__step { position: relative; text-align: center; padding-top: var(--sp-7); }
.process__step::before { counter-increment: pstep; content: counter(pstep);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: var(--fw-black); z-index: 1; }
.process__step h3 { font-size: var(--fs-400); margin-bottom: var(--sp-2); }
.process__step p { color: var(--text-muted); font-size: var(--fs-300); }
@media (min-width: 760px) {
  .process__step:not(:last-child)::after { content: ""; position: absolute; top: 22px;
    left: calc(50% + 26px); right: calc(-50% + 26px); height: 2px; background: var(--c-purple-200); }
}
/* P5.5 — Icon je Prozessschritt */
.process__icon { display: block; width: 30px; height: 30px; margin: 0 auto var(--sp-3);
  color: var(--brand-2); }
.process__icon svg { width: 100%; height: 100%; }

/* P5.4 — AAW: Grad-Akzent oben (Assistant=Purpur · Agent=Rot · Worker=Grau) */
.aaw { border-top: 4px solid var(--c-purple-400); }
.aaw--assistant { border-top-color: var(--brand-2); }
.aaw--agent { border-top-color: var(--cta); }
.aaw--worker { border-top-color: var(--c-grey-500); }
.aaw--assistant .aaw__kicker { color: var(--brand-2); }
.aaw--agent .aaw__kicker { color: var(--cta); }
.aaw--worker .aaw__kicker { color: var(--c-grey-600); }

/* P5.3 — Stat-Cluster (V8: KPI-Mini-Cards) */
.statgrid { display: grid; gap: var(--sp-5); margin-bottom: var(--sp-7); }
@media (min-width: 720px) { .statgrid { grid-template-columns: repeat(3, 1fr); } }
.statcard { text-align: left; padding: var(--sp-5) var(--sp-6); }
.statcard .kpi-num { font-size: clamp(1.8rem, 3vw, var(--fs-700)); line-height: 1; display: block; }
.statcard .kpi-num--brand { color: var(--brand-2); }
.statcard h4 { font-size: var(--fs-300); color: var(--text-muted); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.05em; margin-top: var(--sp-3); }
.card--feature.statcard h4 { color: rgba(255,255,255,0.82); }

/* P5.2 — Schwarzwald-Statement-Band (PDF-Signatur) */
.statement-band {
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(28,20,46,0.88) 0%, rgba(28,20,46,0.58) 55%, rgba(28,20,46,0.30) 100%),
    url(../assets/img/schwarzwald-1.jpg) center / cover no-repeat;
  color: #fff; padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.statement-band__lead { color: rgba(255,255,255,0.80); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--fs-300); margin-bottom: var(--sp-4); }
.statement-band__title { color: #fff; font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.04; letter-spacing: -0.01em; text-transform: uppercase; max-width: 18ch; }
.statement-band__title .text-cta { color: var(--cta); }

/* Assistant · Agent · Worker cards */
.aaw__img { aspect-ratio: 4 / 3; border-radius: var(--radius); margin-bottom: var(--sp-4);
  background: linear-gradient(135deg, var(--c-purple-400), var(--c-purple-700));
  display: grid; place-items: center; color: #fff; font-size: var(--fs-300); }
.aaw__kicker { display: inline-block; font-size: 0.65rem; font-weight: var(--fw-bold);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-2);
  background: var(--c-purple-100); border-radius: var(--radius-pill); padding: 3px 10px; margin-bottom: var(--sp-2); }

/* Potential calculator (homepage) */
.calc-grid { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 860px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-panel { background: var(--c-purple-900); color: #fff; border-radius: var(--radius-lg);
  padding: var(--sp-7); text-align: center; }
.calc-panel .big { font-size: clamp(2rem, 4vw, 3rem); font-weight: var(--fw-black);
  color: #fff; display: block; line-height: 1.1; }
.calc-panel .stat-badges { display: flex; gap: var(--sp-3); justify-content: center;
  flex-wrap: wrap; margin-top: var(--sp-5); }
.calc-panel .stat-badges span { background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-pill);
  padding: 6px 14px; font-weight: var(--fw-bold); font-size: var(--fs-300); }

/* AssistantCore highlight block */
.assistantcore { background: linear-gradient(135deg, var(--c-purple-700), var(--c-purple-900));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); }
.assistantcore h2 { color: #fff; }
.assistantcore p { color: rgba(255,255,255,0.85); }
.ac-grid { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 820px) { .ac-grid { grid-template-columns: 1.3fr 1fr; } }
.ac-art { aspect-ratio: 1; max-width: 220px; margin-inline: auto; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  display: grid; place-items: center; color: rgba(255,255,255,0.8); font-size: var(--fs-300); text-align: center; padding: var(--sp-4); }

/* Two-button CTA actions + ghost button on dark band */
.cta-actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }
.cta-band .btn--ghost { color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--brand); }

/* Hero / card real images */
.hero__art img, .aaw__img img, .fk-card__img img { width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit; }

/* ======================================================================
   Feedback-Runde: aufklappbare Rail, "Mehr als Software", Cookie-Consent
   ====================================================================== */

/* Expandable left action rail (labels via aria-label) */
.rail__btn { width: var(--rail-w); justify-content: center; gap: 0;
  transition: width var(--dur) var(--ease), padding var(--dur) var(--ease), background var(--dur) var(--ease); }
.rail__btn::after { content: attr(aria-label); max-width: 0; overflow: hidden; opacity: 0;
  white-space: nowrap; font-size: var(--fs-300); font-weight: var(--fw-bold);
  transition: max-width var(--dur) var(--ease), opacity var(--dur) var(--ease), margin var(--dur) var(--ease); }
.rail:hover .rail__btn, .rail:focus-within .rail__btn, .rail[data-open="true"] .rail__btn { width: auto; padding-right: var(--sp-5); justify-content: flex-start; gap: var(--sp-3); }
.rail:hover .rail__btn::after, .rail:focus-within .rail__btn::after, .rail[data-open="true"] .rail__btn::after { max-width: 220px; opacity: 1; margin-left: var(--sp-2); }

/* "Mehr als Software" closing section (text + CTA | image) */
.mas { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 820px) { .mas { grid-template-columns: 1.05fr 0.95fr; } }
.mas h2 { margin-bottom: var(--sp-4); }
.mas p { color: var(--text-muted); }
.mas .actions { margin-top: var(--sp-6); display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.mas__img { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--c-purple-200), var(--c-purple-500));
  display: grid; place-items: center; color: #fff; font-size: var(--fs-300); text-align: center; padding: var(--sp-5); }
.mas__img img { width: 100%; height: 100%; object-fit: cover; }

/* Cookie consent (DOM injected by js/cookie-consent.js) */
.cc-banner { position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); z-index: 200;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: var(--sp-5); max-width: 600px; margin-inline: auto; }
.cc-banner[hidden], .cc-modal[hidden] { display: none; }
.cc-banner h3 { font-size: var(--fs-500); margin-bottom: var(--sp-2); }
.cc-banner p { font-size: var(--fs-300); color: var(--c-grey-800); }
.cc-banner a { color: var(--brand-2); text-decoration: underline; }
.cc-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-4); }
.cc-actions .btn { padding: var(--sp-2) var(--sp-5); font-size: var(--fs-300); }
.cc-modal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center;
  background: rgba(36, 28, 66, 0.55); padding: var(--sp-4); }
.cc-modal__box { background: #fff; border-radius: var(--radius-lg); max-width: 600px; width: 100%;
  padding: var(--sp-6); max-height: 86vh; overflow: auto; box-shadow: var(--shadow-lg); }
.cc-cat { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4);
  margin-top: var(--sp-3); display: flex; justify-content: space-between; gap: var(--sp-4); align-items: flex-start; }
.cc-cat h4 { margin-bottom: var(--sp-1); } .cc-cat p { font-size: var(--fs-300); color: var(--text-muted); }
.cc-cat input { width: 22px; height: 22px; flex: none; accent-color: var(--brand-2); }
.cc-cat input:disabled { opacity: 0.5; }

/* Form consent row + honeypot */
.form-consent { display: block; position: relative; padding-left: 30px; font-size: var(--fs-300); color: var(--c-grey-800); line-height: 1.5; }
.form-consent input { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; accent-color: var(--brand-2); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: var(--sp-4); font-weight: var(--fw-bold); }
.form-status--ok { color: var(--brand-2); } .form-status--err { color: var(--cta); }

/* ======================================================================
   Footer-Redesign — CTA-Banner mit Schwarzwald-Panorama + Rechtsleiste
   ====================================================================== */
.footer { padding-block: 0; background: var(--c-purple-900); }

.footer-cta { position: relative; overflow: hidden; color: #fff; display: flex; align-items: center;
  min-height: 380px;
  background: var(--c-purple-900) url(../assets/img/footer-bg.jpg) center / cover no-repeat; }
/* Komposit hat die Avatare rechts → Text links abdunkeln, rechts Szene zeigen */
.footer-cta::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(36,28,66,0.92) 0%, rgba(36,28,66,0.62) 40%, rgba(36,28,66,0.10) 100%); }
.footer-cta__inner { position: relative; width: 100%; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.footer-cta__copy { max-width: 560px; }
.footer-cta__copy h2 { color: #fff; font-size: clamp(1.6rem, 3vw + 1rem, 2.75rem); max-width: 14ch; }
.footer-cta__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-5); }
.footer-cta .btn--ghost { color: #fff; border-color: #fff; }
.footer-cta .btn--ghost:hover { background: #fff; color: var(--brand); }
@media (max-width: 819px) {
  .footer-cta { min-height: 300px; }
  .footer-cta::before { background: linear-gradient(180deg, rgba(36,28,66,0.45), rgba(36,28,66,0.86)); }
}

.footer-bar { background: rgba(0,0,0,0.35); border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bar__inner { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between; padding-block: var(--sp-4); font-size: var(--fs-300); }
.footer-bar__brand { color: rgba(255,255,255,0.7); }
.footer-bar__links { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); }
.footer-bar__links a { color: rgba(255,255,255,0.85); }
.footer-bar__links a:hover { color: #fff; }

/* ======================================================================
   STYLEGUIDE V3 — Honeycomb-Motiv, Card-Typen (Feature/KPI), Bild-Platzhalter
   ====================================================================== */

/* Honeycomb-Watermark (immer Hintergrund, nie Hauptinhalt) */
.hero { } /* siehe oben */
.hero::before, .hex-corner::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: clamp(180px, 22vw, 340px); aspect-ratio: 1;
  background: url(../assets/img/honeycomb.svg) right top / contain no-repeat;
  pointer-events: none; z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hex-corner { position: relative; }
.hex-corner > * { position: relative; z-index: 1; }

/* Feature Card — Lila-Gradient (Styleguide) */
.card--feature { background: linear-gradient(135deg, var(--c-purple-600), var(--c-purple-900));
  color: #fff; border-color: transparent; }
.card--feature h3, .card--feature h4 { color: #fff; }
.card--feature p { color: rgba(255,255,255,0.86); }
.card--feature .arrow-link { color: #fff; }

/* KPI Card — Schwarzwald Rot (Styleguide; sparsam einsetzen) */
.card--kpi { background: var(--cta); color: #fff; border-color: transparent; }
.card--kpi h3, .card--kpi h4, .card--kpi p { color: #fff; }
.card--kpi .kpi-num { display: block; font-size: var(--fs-700); font-weight: var(--fw-bold);
  line-height: 1.05; letter-spacing: -0.01em; }

/* Dimensionierter Bild-Platzhalter (Text = benötigte Pixelmaße) */
.img-ph { display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(45deg, var(--c-grey-050) 0 10px, var(--c-grey-100) 10px 20px);
  border: 1px dashed var(--c-grey-300); border-radius: var(--radius);
  color: var(--c-grey-600); font-size: var(--fs-300); font-weight: var(--fw-bold);
  min-height: 160px; padding: var(--sp-5); }
.img-ph::before { content: "▦  " attr(data-dim); white-space: nowrap; }
/* gleiche Platzhalter-Optik, nur ohne px-Maße (z. B. Infowall) */
.img-ph--blank::before { content: "▦"; }

/* Infowall-Karten: einheitliche Platzhalter-Optik (img-ph) + Text auf weißer Karte */
.iw-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 332px; grid-auto-flow: dense; }
@media (max-width: 900px) { .iw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .iw-grid { grid-template-columns: 1fr; grid-auto-rows: 320px; } }
.iw-card { position: relative; display: flex; flex-direction: column; }
.iw-card__media { position: relative; aspect-ratio: 16 / 10;
  margin-bottom: var(--sp-4); font-size: var(--fs-600); }
/* im Infowall-Grid füllt die Platzhalter-Fläche den Raum → 2×2 = gleiche Optik, nur größer */
.iw-grid .iw-card__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 120px; }
/* 2×2-Feature-Kacheln: gleiche Karte, doppelt so groß */
.iw-card--2x2 { grid-column: span 2; grid-row: span 2; }
.iw-card--2x2 .iw-card__media { font-size: var(--fs-800); }
.iw-card--2x2 h3 { font-size: var(--fs-600); }
@media (max-width: 560px) { .iw-card--2x2 { grid-column: span 1; grid-row: span 1; }
  .iw-card--2x2 .iw-card__media { font-size: var(--fs-600); }
  .iw-card--2x2 h3 { font-size: var(--fs-500); } }
.iw-card__tag { position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 1;
  font-size: 0.65rem; font-weight: var(--fw-bold); letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--cta); color: #fff; padding: 3px 10px; border-radius: var(--radius-pill); }
.iw-card h3 { font-size: var(--fs-500); }
.iw-card h3 a { color: inherit; text-decoration: none; }
.iw-card h3 a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.iw-card:hover { transform: translateY(-4px); }
.iw-card:hover h3 a { color: var(--cta); }
.iw-card p { color: var(--text-muted); font-size: var(--fs-300); margin-top: var(--sp-2); }

/* Mediawall (Infowall) — 1×1 & 2×2 Kacheln */
.mediawall { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px;
  gap: var(--sp-4); grid-auto-flow: dense; }
.mw-tile { position: relative; overflow: hidden; border-radius: var(--radius); padding: var(--sp-5);
  display: flex; flex-direction: column; justify-content: flex-start; color: #fff;
  /* Platzhalter: neutrales Grau, Inhalt oben-bündig (einheitlicher Look) */
  background: linear-gradient(160deg, #9799a0, #66686e);
  transition: transform var(--dur) var(--ease); }
.mw-tile--2x2 { grid-column: span 2; grid-row: span 2; }
.mw-tile--img { background-size: cover; background-position: center; }
.mw-tile::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40,40,46,0.55) 0%, rgba(40,40,46,0.22) 50%, rgba(40,40,46,0.05) 100%); }
.mw-tile > * { position: relative; z-index: 1; }
.mw-tag { align-self: flex-start; font-size: 0.65rem; font-weight: var(--fw-bold); letter-spacing: 0.06em;
  text-transform: uppercase; background: var(--cta); color: #fff; padding: 3px 10px;
  border-radius: var(--radius-pill); margin-bottom: var(--sp-3); }
.mw-tile h3 { color: #fff; font-size: var(--fs-500); }
.mw-tile--2x2 h3 { font-size: var(--fs-600); }
.mw-tile h3 a { color: #fff; }
.mw-tile h3 a:hover { text-decoration: underline; }
.mw-tile p { color: rgba(255,255,255,0.85); font-size: var(--fs-300); margin-top: var(--sp-2); }
.mw-tile:hover { transform: translateY(-3px); }
@media (max-width: 860px) { .mediawall { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 165px; } }
@media (max-width: 520px) { .mediawall { grid-template-columns: 1fr; } .mw-tile--2x2 { grid-column: span 1; grid-row: span 1; min-height: 220px; } }

/* Slider (4 Karten gleichzeitig sichtbar) */
.slider { position: relative; }
/* Grid statt Flex: Grid-Zeilen strecken zuverlässig auf gleiche Höhe – auch im
   horizontal scrollenden Container (Flex-Stretch versagt hier in Chromium). */
.slider__track { display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--sp-5)) / 4);
  align-items: stretch; gap: var(--sp-5); overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 4px var(--sp-3); scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > .fk-card { scroll-snap-align: start; }
@media (max-width: 980px) { .slider__track { grid-auto-columns: calc((100% - var(--sp-5)) / 2); } }
@media (max-width: 620px) { .slider__track { grid-auto-columns: 84%; } }
.slider__nav { position: absolute; top: 42%; z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--brand-2);
  font-size: 1.6rem; line-height: 1; display: grid; place-items: center; }
.slider__nav--prev { left: -12px; } .slider__nav--next { right: -12px; }
.slider__nav:hover { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }
@media (max-width: 1260px) { .slider__nav--prev { left: 2px; } .slider__nav--next { right: 2px; } }

/* Design-Varianten-Umschalter (Demo) */
.theme-switch { position: fixed; left: 50%; bottom: var(--sp-4); transform: translateX(-50%);
  z-index: 300; display: flex; gap: 4px; align-items: center; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
  padding: 6px 8px 6px 14px; }
.theme-switch__label { font-weight: var(--fw-bold); color: var(--c-grey-600);
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; margin-right: 4px; }
.theme-switch button { padding: 7px 13px; border-radius: var(--radius-pill); color: var(--brand-2);
  font-weight: var(--fw-bold); font-size: var(--fs-300); white-space: nowrap; }
.theme-switch button[aria-pressed="true"] { background: var(--brand-2); color: #fff; }
@media (max-width: 600px) { .theme-switch__label { display: none; }
  .theme-switch button { padding: 7px 10px; } .theme-switch button b + * { display: none; } }

/* --- Reveal-on-scroll (progressive enhancement) ----------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   KUNDENFEEDBACK v2 (2026-06-22) — Heading-System, AAW, Warum, Bänder
   ============================================================ */
/* Eyebrows über Überschriften entfernen (Sektion + Hero); Karten-Labels bleiben */
.section__head .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow { display: none !important; }

/* H2-Markierung: rotes Dreieck NUR vor h2.titlebar (nicht h3) */
h2.titlebar { position: relative; padding-left: 1.15em; }
h2.titlebar::before {
  content: ""; position: absolute; left: 0; top: 0.16em;
  width: 0.62em; height: 0.74em;
  background: url(../assets/img/heading-marker.png) left center / contain no-repeat;
}
/* auf dunklen Bändern (weiße H2) Marker sichtbar lassen – Bild ist eh rot */

/* Warum-MR.KNOW: alle Quad-Eyebrows einheitlich Lila */
.quad .eyebrow { color: var(--brand-2) !important; }

/* Automatisierungsgrade: Kicker als farbige Pills, weißer Text */
.aaw__kicker { display: inline-block; padding: 3px 12px; border-radius: var(--radius-pill);
  background: var(--c-purple-600); color: #fff !important; }
.aaw--assistant .aaw__kicker { background: var(--c-purple-500); }
.aaw--agent     .aaw__kicker { background: var(--c-purple-700); }
.aaw--worker    .aaw__kicker { background: var(--cta); }

/* Bänder: keine runden Ecken (Breitband-Look, kein „Button") */
.cta-band { border-radius: 0; }

/* Überblick: Icon-Liste statt Nummern, kein Button-Look */
.caps--icons li { background: none; border: 0; border-radius: 0; padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.14); align-items: center; }
.caps--icons li:last-child { border-bottom: 0; }
.caps__ic { flex: none; width: 26px; height: 26px; color: #fff; }
.caps__ic svg { width: 100%; height: 100%; }

/* Klickbare Karten (Academy) */
a.card--link { display: block; color: inherit; text-decoration: none; }
a.card--link:hover { text-decoration: none; }


/* ============ Flyout: Schnellkontakt mit Inline-Formularen ============ */
.flyout-overlay { position: fixed; inset: 0; background: rgba(36,28,66,.45);
  opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 600; }
.flyout-overlay[data-open="true"] { opacity: 1; visibility: visible; }

.flyout { position: fixed; top: 0; bottom: 0; left: 0; width: min(420px, 92vw); z-index: 610;
  background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  transform: translateX(-100%); transition: transform .28s var(--ease); visibility: hidden; }
.flyout[data-open="true"] { transform: translateX(0); visibility: visible; }

.flyout__head { display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); }
.flyout__title { font-weight: var(--fw-black); font-size: var(--fs-500); color: var(--brand); }
.flyout__close { width: 40px; height: 40px; border: 0; background: none; border-radius: var(--radius-pill);
  font-size: 26px; line-height: 1; color: var(--brand); cursor: pointer; }
.flyout__close:hover { background: var(--c-grey-050); }

.flyout__tabs { display: flex; border-bottom: 1px solid var(--border); }
.flyout__tab { flex: 1; padding: 13px 6px; background: none; border: 0; border-bottom: 3px solid transparent;
  font: inherit; font-weight: var(--fw-bold); color: var(--text-muted); cursor: pointer; }
.flyout__tab:hover { color: var(--brand); }
.flyout__tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--cta); }

.flyout__body { flex: 1; overflow-y: auto; padding: var(--sp-5); }
.flyout__panel[hidden] { display: none; }
.flyout__panel .intro { color: var(--text-muted); font-size: var(--fs-300); margin: 0 0 var(--sp-4); }

body.flyout-open { overflow: hidden; }

@media (max-width: 720px) {
  .flyout { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 88vh;
    border-radius: 18px 18px 0 0; transform: translateY(100%); }
  .flyout[data-open="true"] { transform: translateY(0); }
  .flyout__body { padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom)); }
  .flyout input, .flyout textarea, .flyout select { font-size: 16px; }
}

@media (max-width: 720px) { body { padding-bottom: calc(54px + env(safe-area-inset-bottom)); } }

.flyout__panel .calc { border: 0; box-shadow: none; padding: 0; background: none; }
