/*
Theme Name: Benjamin Kaim
Theme URI: https://benjamin-kaim.de/
Author: Benjamin Kaim
Author URI: https://benjamin-kaim.de/
Description: Schlankes Custom-Theme fuer benjamin-kaim.de. Ohne Page Builder, ohne Framework, ohne externe Abhaengigkeiten. SEO- und GEO-optimiert.
Version: 1.21.1
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: benjamin-kaim
Tags: seo, custom, blog, one-page
*/

/* ==========================================================================
   1. Design-Tokens
   ========================================================================== */

:root {
  /* Farben */
  --bg:            #FDFCFF;
  --bg-2:          #F6F2FF;
  --surface:       #FFFFFF;
  --ink:           #1E1730;
  --muted:         #5F5880;
  --muted-2:       #8D86AB;
  --violet:        #8B5CF6;
  --violet-soft:   #7C3AED;
  --violet-deep:   #6D28D9;
  --violet-light:  #9D6BFF;
  --fuchsia:       #D946EF;
  --lilac:         #C4B5FD;
  --green:         #16A34A;
  --red:           #DC2626;
  --chart-line:    #7C3AED;
  --chart-before:  #9D6BFF;
  --chart-after:   #5B21B6;

  /* Neutrale Ebene fuer "Frueher" - bewusst entsaettigt */
  --stale-bg:      #F3F2F6;
  --stale-line:    #DCD9E4;
  --stale-ink:     #6E6980;
  --stale-head:    #8A8598;

  --glass:         rgba(139, 92, 246, 0.06);
  --glass-strong:  rgba(139, 92, 246, 0.10);
  --stroke:        rgba(124, 58, 237, 0.16);
  --stroke-strong: rgba(124, 58, 237, 0.30);

  --grad-cta:      linear-gradient(135deg, #9D6BFF 0%, #8B5CF6 45%, #6D28D9 100%);
  --grad-accent:   linear-gradient(100deg, #D946EF 0%, #8B5CF6 55%, #6D28D9 100%);
  --glow:          radial-gradient(circle, rgba(196, 181, 253, 0.55), rgba(255, 255, 255, 0) 65%);
  --glow-2:        radial-gradient(circle, rgba(240, 171, 252, 0.35), rgba(255, 255, 255, 0) 65%);

  /* Typografie */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif:   "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Masse */
  --radius:      1.25rem;
  --radius-card: 24px;
  --radius-pill: 999px;
  --radius-sm:   12px;

  --container:   1160px;
  --container-narrow: 760px;
  --gutter:      20px;

  --space-section: 104px;
  --space-hero:    120px;

  --shadow-cta:  0 4px 28px rgba(139, 92, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  --shadow-soft: 0 10px 40px rgba(109, 40, 217, 0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #12101A;
    --bg-2:          #191529;
    --surface:       #1B1728;
    --ink:           #F2EFFA;
    --muted:         #B3ABCF;
    --muted-2:       #8D86AB;
    --glass:         rgba(139, 92, 246, 0.10);
    --glass-strong:  rgba(139, 92, 246, 0.16);
    --stroke:        rgba(167, 139, 250, 0.22);
    --stroke-strong: rgba(167, 139, 250, 0.40);
    --glow:          radial-gradient(circle, rgba(139, 92, 246, 0.30), rgba(0, 0, 0, 0) 65%);
    --glow-2:        radial-gradient(circle, rgba(217, 70, 239, 0.18), rgba(0, 0, 0, 0) 65%);
    --shadow-soft:   0 10px 40px rgba(0, 0, 0, 0.45);
  --stale-bg:      #1A1824;
  --stale-line:    #2E2B3A;
  --stale-ink:     #837D95;
  --stale-head:    #6F6981;
  --red:           #F87171;
  --green:         #4ADE80;
  --chart-line:    #9D6BFF;
  --chart-before:  #6D28D9;
  --chart-after:   #9D6BFF;
  }
}

:root[data-theme="dark"] {
  --bg:            #12101A;
  --bg-2:          #191529;
  --surface:       #1B1728;
  --ink:           #F2EFFA;
  --muted:         #B3ABCF;
  --muted-2:       #8D86AB;
  --glass:         rgba(139, 92, 246, 0.10);
  --glass-strong:  rgba(139, 92, 246, 0.16);
  --stroke:        rgba(167, 139, 250, 0.22);
  --stroke-strong: rgba(167, 139, 250, 0.40);
  --glow:          radial-gradient(circle, rgba(139, 92, 246, 0.30), rgba(0, 0, 0, 0) 65%);
  --glow-2:        radial-gradient(circle, rgba(217, 70, 239, 0.18), rgba(0, 0, 0, 0) 65%);
  --shadow-soft:   0 10px 40px rgba(0, 0, 0, 0.45);
  --stale-bg:      #1A1824;
  --stale-line:    #2E2B3A;
  --stale-ink:     #837D95;
  --stale-head:    #6F6981;
  --red:           #F87171;
  --green:         #4ADE80;
  --chart-line:    #9D6BFF;
  --chart-before:  #6D28D9;
  --chart-after:   #9D6BFF;
}

/* ==========================================================================
   2. Reset und Grundlagen
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--violet-soft); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--violet-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

hr { border: 0; border-top: 1px solid var(--stroke); margin: 2.5rem 0; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--violet-deep); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-pill);
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   3. Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: 72px; }
.section--alt { background: var(--bg-2); }

.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { color: var(--muted); font-size: 1.125rem; margin-top: -0.2em; }

.grid { display: grid; gap: 24px; }
@media (min-width: 720px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   4. Komponenten
   ========================================================================== */

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass);
  border: 1px solid var(--stroke-strong);
  color: var(--violet-soft);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 1rem; line-height: 1;
  border-radius: var(--radius-pill);
  padding: 16px 34px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn { white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--grad-cta); color: #fff; box-shadow: var(--shadow-cta); }
.btn--primary:hover { box-shadow: 0 8px 34px rgba(139, 92, 246, 0.55), inset 0 1px 0 rgba(255,255,255,0.25); }

.btn--ghost { background: var(--glass); color: var(--ink); border-color: var(--stroke); }
.btn--ghost:hover { background: var(--glass-strong); }

.btn--sm { padding: 11px 22px; font-size: 0.9rem; }

.card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  padding: 34px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--stroke-strong); }
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--muted); margin-bottom: 0; }

.card__icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-cta);
  color: #fff;
  margin-bottom: 20px;
}
.card__icon svg { width: 22px; height: 22px; }

.glow {
  position: absolute; inset-inline: 0; pointer-events: none; z-index: -1;
  filter: blur(6px);
}
.glow--hero {
  top: -160px; left: 50%; translate: -50% 0;
  width: min(1100px, 130vw); aspect-ratio: 1.4 / 1;
  background: var(--glow);
}
.glow--cta {
  bottom: -220px; left: 50%; translate: -50% 0;
  width: min(900px, 120vw); aspect-ratio: 1.6 / 1;
  background: var(--glow-2);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet-soft);
  margin-bottom: 14px;
  display: block;
}

.accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ==========================================================================
   5. Header und Navigation
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--stroke); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}

.site-brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.site-brand:hover { text-decoration: none; }
.site-brand__mark {
  width: auto; height: 28px;
  display: block; flex: none;
}
/* Ein im Customizer hochgeladenes Logo ersetzt die Marke komplett. */
.site-brand .custom-logo,
.custom-logo-link img { max-height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  color: var(--muted); font-size: 0.95rem; font-weight: 500;
  transition: color 0.16s var(--ease);
}
.nav__list a:hover,
.nav__list .current-menu-item > a { color: var(--ink); text-decoration: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--stroke); background: var(--glass);
  border-radius: 12px; cursor: pointer;
  padding: 0; place-items: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--ink); position: relative;
  transition: background 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 0.22s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--stroke);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px var(--gutter) 28px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    max-height: calc(100dvh - 76px); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--stroke); }
  .nav .btn { margin-top: 18px; width: 100%; }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero { padding-top: 72px; padding-bottom: 72px; position: relative; overflow: clip; }

.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) {
  .hero { padding-top: 96px; }
  .hero__grid { grid-template-columns: 1fr 1.02fr; gap: 56px; }
}

.hero h1 { margin-block: 18px 20px; font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
.hero h1 .accent { color: var(--violet-soft); }

.hero__kicker {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 20px 0 0;
  max-width: 44ch;
}

.hero__lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--muted);
  max-width: 52ch;
}
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__lead + .hero__lead { margin-top: 0.9em; }
.hero__lead--first {
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  max-width: 34ch;
  line-height: 1.4;
  text-wrap: pretty;
}

/* Hält Wortgruppen zusammen, die nicht umbrechen sollen. */
.nowrap { white-space: nowrap; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Medium rechts */
.hero__media { display: grid; gap: 18px; }
.hero-media-wrap { position: relative; }

.hero-media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--glass-strong);
  aspect-ratio: var(--hero-ratio, 4 / 3);
  box-shadow: var(--shadow-soft);
}
.hero-media__asset { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-media__placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  padding: 28px; text-align: center;
  color: var(--muted);
  background: linear-gradient(160deg, rgba(196, 181, 253, 0.22), rgba(139, 92, 246, 0.08));
}
.hero-media__placeholder-icon { width: 44px; height: 44px; color: var(--violet-soft); }
.hero-media__placeholder p { margin: 0; font-size: 0.95rem; }
.hero-media__placeholder strong { color: var(--ink); font-weight: 600; }
.hero-media__placeholder span { font-size: 0.85rem; color: var(--muted-2); }

/* Schwebende Kennzahl-Karten */
.hero-stat {
  position: absolute;
  display: none;
  flex-direction: column; gap: 2px;
  padding: 13px 17px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(28, 22, 46, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(20, 12, 40, 0.35);
  color: #fff;
  max-width: 196px;
}
@media (min-width: 620px) { .hero-stat { display: flex; } }
.hero-stat__label {
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-display); font-weight: 500;
}
.hero-stat__value { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; }
.hero-stat__note { font-size: 0.76rem; color: var(--lilac); }

.hero-stat--1 { top: 7%;   left: 14px; }
.hero-stat--2 { top: 45%;  right: 14px; }
.hero-stat--3 { bottom: 7%; left: 10%; }
@media (min-width: 1100px) {
  .hero-stat--1 { left: -22px; }
  .hero-stat--2 { right: -18px; }
  .hero-stat--3 { left: 6%; }
}
/* Werte aus inc/content.php schlagen die Voreinstellungen oben */
.hero-stat[style] { left: auto; right: auto; top: auto; bottom: auto; }

/*
 * Überhang über die Bildkante. Bewusst als Verschiebung und nicht als
 * negativer Positionswert: so lässt er sich per Media Query zurücknehmen,
 * wenn das Bild schmaler wird und der Überhang sonst am Seitenrand
 * abgeschnitten würde. Inline-Styles ließen sich dort nicht überschreiben.
 */
.hero-stat--bleed-left   { transform: translateX(-26px); }
.hero-stat--bleed-right  { transform: translateX(26px); }
.hero-stat--bleed-top    { transform: translateY(-38px); }
.hero-stat--bleed-bottom { transform: translateY(24px); }

@media (max-width: 1080px) {
  .hero-stat--bleed-left,
  .hero-stat--bleed-right,
  .hero-stat--bleed-top,
  .hero-stat--bleed-bottom { transform: none; }
}

/* Auszeichnungen unter dem Medium */
.credentials { display: grid; gap: 10px; }
@media (min-width: 520px) { .credentials { grid-template-columns: 1fr 1fr; } }

.credential {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 16px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--glass);
  color: var(--ink);
  font-size: 0.88rem; font-weight: 500;
  line-height: 1.3;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.credential:hover { text-decoration: none; background: var(--glass-strong); border-color: var(--stroke-strong); }
.credential__icon {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--grad-cta); color: #fff;
}
.credential__icon svg { width: 17px; height: 17px; }
.credential__title { flex: 1; }
.credential__ext { width: 14px; height: 14px; flex: none; color: var(--muted-2); }

/* Trust-Leiste */
.trust {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 16px;
  margin-top: 32px;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  background: var(--glass);
  width: fit-content;
  max-width: 100%;
}
.trust__avatars { display: flex; flex: none; }

/*
 * Der Ring liegt als eigenes Element um das Bild: nur so lässt sich der
 * Markenverlauf sauber als Kreisrand zeichnen - ein CSS-Rahmen kann keinen
 * Verlauf tragen. Innen trennt ein schmaler Rand in Hintergrundfarbe Ring
 * und Foto, damit der Verlauf nicht am Gesicht klebt.
 */
.trust__ring {
  display: block; flex: none;
  padding: 2px;
  border-radius: 50%;
  background: var(--grad-cta);
  /* Wenig Überlappung: echte Gesichter müssen erkennbar bleiben. */
  margin-right: -7px;
}
.trust__ring:last-child { margin-right: 0; }

.trust__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--bg);
  object-fit: cover;
  display: block;
}
.trust__avatar--ph { background: var(--grad-cta); }
.trust__avatar--2 { background: linear-gradient(135deg, #F0ABFC, #8B5CF6); }
.trust__avatar--3 { background: linear-gradient(135deg, #A78BFA, #6D28D9); }
.trust__avatar--4 { background: linear-gradient(135deg, #C4B5FD, #7C3AED); }

.trust__body { display: grid; gap: 1px; }
.trust__rating { display: flex; align-items: center; gap: 8px; margin: 0; }
.trust__stars { color: #F59E0B; letter-spacing: 1px; font-size: 0.95rem; line-height: 1; }
.trust__score { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.trust__text { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.trust__text strong { color: var(--ink); font-weight: 600; }

.rating-line {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px; color: var(--muted); font-size: 0.95rem;
}
.rating-line strong { color: var(--ink); }

/* ==========================================================================
   7. Logo-Leiste (endlos laufender Slider)
   ========================================================================== */

.logobar { padding-block: 44px 56px; background: var(--bg-2); }

.logobar__label {
  text-align: center; color: var(--muted-2);
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 20px;
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding-block: 30px;

  /* weiche Kanten links und rechts */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  animation: bk-marquee var(--marquee-speed, 42s) linear infinite;
}
.logo-marquee:hover .logo-marquee__track,
.logo-marquee:focus-within .logo-marquee__track { animation-play-state: paused; }

.logo-marquee__set {
  display: flex; align-items: center;
  gap: 62px;
  list-style: none; margin: 0; padding: 0 31px;
  flex: none;
}

.logo-marquee__item {
  display: flex; align-items: center;
  flex: none;
  color: var(--muted-2);
  opacity: 0.85;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.logo-marquee__item:hover { color: var(--muted); opacity: 1; }

.logo-marquee__item svg { height: 30px; width: auto; display: block; }

/* Bildlogos einfarbig ausspielen, damit die Leiste ruhig bleibt */
.logo-marquee__img {
  height: var(--logo-h, 28px);
  width: auto; max-width: 200px; display: block;
  object-fit: contain;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.2s var(--ease);
}
.logo-marquee__item:hover .logo-marquee__img { filter: grayscale(1) opacity(0.85); }

/* Im Dark Mode invertiert, sonst verschwinden dunkle Logos im Hintergrund */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-marquee__img {
    filter: grayscale(1) invert(1) opacity(0.62);
  }
  :root:not([data-theme="light"]) .logo-marquee__item:hover .logo-marquee__img {
    filter: grayscale(1) invert(1) opacity(0.92);
  }
}
:root[data-theme="dark"] .logo-marquee__img { filter: grayscale(1) invert(1) opacity(0.62); }
:root[data-theme="dark"] .logo-marquee__item:hover .logo-marquee__img { filter: grayscale(1) invert(1) opacity(0.92); }

@keyframes bk-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 600px) {
  .logo-marquee__set { gap: 40px; padding-inline: 20px; }
  .logo-marquee__item svg { height: 24px; }
  .logo-marquee__img { height: calc(var(--logo-h, 28px) * 0.82); max-width: 145px; }
}

/* Ohne Bewegung: Slider steht still und lässt sich wischen */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .logo-marquee__track { animation: none; }
  .logo-marquee__set:last-child { display: none; }
}

/* ==========================================================================
   8. Split / Gegenueberstellung
   ========================================================================== */

.split { display: grid; gap: 22px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 28px; } }

.split__col {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  padding: 34px 32px;
  background: var(--glass);
}

/* "Frueher" - entsaettigt, damit es auf den ersten Blick veraltet wirkt */
.split__col--then {
  background: var(--stale-bg);
  border-color: var(--stale-line);
}
.split__col--then h3 { color: var(--stale-head); }
.split__col--then .split__list li { color: var(--stale-ink); }

.split__col--now { background: var(--glass-strong); border-color: var(--stroke-strong); }

.split__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.split__head h3 { margin: 0; }

.split__badge {
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--radius-pill);
  line-height: 1;
}
.split__badge--then { background: var(--stale-line); color: var(--stale-head); }
.split__badge--now  { background: rgba(22, 163, 74, 0.12); color: var(--green); }

.split__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 13px; }
.split__list li { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); }

.marker {
  width: 21px; height: 21px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  margin-top: 2px;
}
.marker svg { width: 13px; height: 13px; stroke-width: 2.6; }
.marker--no  { background: rgba(220, 38, 38, 0.12); color: var(--red); }
.marker--yes { background: rgba(22, 163, 74, 0.14); color: var(--green); }

/* ==========================================================================
   9. Prozess
   ========================================================================== */

.steps { counter-reset: step; display: grid; gap: 20px; }
@media (min-width: 760px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  position: relative;
}
.step__no {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.08em;
  color: var(--violet-soft);
  display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ==========================================================================
   10. Cases und Stats
   ========================================================================== */

.case {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  padding: 34px 32px;
  background: var(--glass);
  display: flex; flex-direction: column; gap: 18px;
}
.case__metric {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.case__rows strong { color: var(--ink); font-weight: 600; }
.case__rows li { color: var(--muted); }
.case__note { font-size: 0.85rem; color: var(--muted-2); margin: 0; }

/* ==========================================================================
   11. Ueber mich
   ========================================================================== */

.about { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 0.85fr 1.15fr; gap: 56px; } }

.about__media { position: relative; }
.about__asset {
  border-radius: var(--radius-card);
  width: 100%; height: auto; display: block;
  object-fit: cover;
  background: var(--glass-strong);
}
.about__placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius-card);
  background: var(--glass-strong); border: 1px solid var(--stroke);
  display: grid; place-items: center; text-align: center;
  padding: 24px; color: var(--muted-2);
}
.about__placeholder small { color: var(--muted-2); opacity: 0.8; }
.about__media::after {
  content: ""; position: absolute; inset: -18px -18px 18px 18px; z-index: -1;
  border-radius: var(--radius-card); background: var(--grad-cta); opacity: 0.16;
}
.about__facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.about__facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.about__facts svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 4px; }
.about__connect { color: var(--muted); margin: 28px 0 12px; font-size: 0.97rem; }
.about__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 0; }

/* ==========================================================================
   12. Testimonials
   ========================================================================== */

.quote-grid {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 680px)  { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .quote-grid { grid-template-columns: repeat(4, 1fr); } }

.quote {
  margin: 0;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  background: var(--glass);
  display: flex; flex-direction: column; gap: 16px;
}
.quote blockquote { margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--ink); }
.quote__meta { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__meta img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote__initial {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-cta); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  flex: none;
}
.quote__name { font-weight: 600; font-size: 0.95rem; }
.quote__role { color: var(--muted-2); font-size: 0.85rem; }
.quote__stars { color: #F59E0B; letter-spacing: 2px; font-size: 0.9rem; }

/* ==========================================================================
   13. FAQ
   ========================================================================== */

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--glass);
  overflow: hidden;
}
.faq__q {
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  padding: 20px 56px 20px 24px;
  position: relative;
}
.faq__q::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--violet-soft);
  border-bottom: 2px solid var(--violet-soft);
  transform: rotate(45deg);
  transition: transform 0.22s var(--ease);
}
.faq__item.is-open .faq__q::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.28s var(--ease), padding 0.28s var(--ease); }
.faq__item.is-open .faq__a { padding: 0 24px 22px; max-height: 900px; }
.faq__a p { color: var(--muted); margin-bottom: 0.8em; }

/* ==========================================================================
   14. Abschluss-CTA
   ========================================================================== */

.cta-final { position: relative; overflow: hidden; text-align: center; padding-block: 112px 96px; }
.cta-final h2 { max-width: 640px; margin-inline: auto; }
.cta-final p { color: var(--muted); max-width: 540px; margin-inline: auto; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.cta-final__contact {
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center;
  margin-top: 28px; color: var(--muted); font-size: 0.95rem;
}

/* ==========================================================================
   15. Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--stroke); padding-block: 56px 40px; background: var(--bg-2); }
.site-footer__top { display: grid; gap: 32px; }
@media (min-width: 820px) { .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.site-footer p, .site-footer a { color: var(--muted); font-size: 0.95rem; }
.site-footer h4 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--stroke);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  color: var(--muted-2); font-size: 0.875rem;
}
.site-footer__signature { display: inline-flex; align-items: center; gap: 0.3em; }
.site-footer__heart {
  /* Emoji-Schriften zuerst, damit das Herz überall farbig kommt. */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.05em; line-height: 1;
}
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--stroke); background: var(--glass);
  display: grid; place-items: center; color: var(--ink);
}
.social a:hover { background: var(--glass-strong); }
.social svg { width: 18px; height: 18px; }

/* ==========================================================================
   16. Blog: Uebersicht und Archive
   ========================================================================== */

.page-hero { padding-block: 72px 40px; position: relative; overflow: hidden; }
.page-hero__inner { max-width: 760px; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; }

.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cat-filter a {
  display: inline-flex; align-items: center;
  border: 1px solid var(--stroke); background: var(--glass);
  color: var(--muted); border-radius: var(--radius-pill);
  padding: 9px 18px; font-size: 0.9rem; font-weight: 500;
}
.cat-filter a:hover { color: var(--ink); background: var(--glass-strong); text-decoration: none; }
.cat-filter a.is-active { background: var(--grad-cta); color: #fff; border-color: transparent; }

.post-grid { display: grid; gap: 26px; }
@media (min-width: 680px)  { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--stroke); border-radius: var(--radius-card);
  background: var(--glass); overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: var(--stroke-strong); }
.post-card__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

/* Kacheln ohne Beitragsbild: mehr Luft, größerer Titel, farbige Oberkante */
.post-card--flat { position: relative; overflow: hidden; }
.post-card--flat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-cta);
  opacity: 0.85;
}
.post-card--flat .post-card__body { padding: 30px 28px 28px; gap: 14px; }
.post-card--flat h2, .post-card--flat h3 { font-size: 1.32rem; }
.post-card--flat .post-card__excerpt { font-size: 0.97rem; }
.post-card__cat { align-self: flex-start; }
.post-card h2, .post-card h3 {
  font-size: 1.2rem; margin: 0; line-height: 1.3;
}
.post-card h2 a, .post-card h3 a { color: var(--ink); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--violet-soft); text-decoration: none; }
.post-card__excerpt { color: var(--muted); font-size: 0.95rem; margin: 0; }
.post-card__meta {
  margin-top: auto; padding-top: 14px;
  color: var(--muted-2); font-size: 0.82rem;
  display: flex; flex-wrap: wrap; gap: 6px 14px;
}

.pagination { margin-top: 56px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 14px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--stroke); border-radius: 12px;
  color: var(--muted); font-size: 0.95rem;
}
.pagination .page-numbers:hover { background: var(--glass); color: var(--ink); text-decoration: none; }
.pagination .page-numbers.current { background: var(--grad-cta); color: #fff; border-color: transparent; }

/* ==========================================================================
   17. Einzelbeitrag
   ========================================================================== */

.reading-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad-cta); z-index: 200;
  transition: width 0.1s linear;
}

.breadcrumbs {
  font-size: 0.85rem; color: var(--muted-2);
  padding-top: 28px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span[aria-hidden] { opacity: 0.5; }

.article-head { padding-block: 26px 34px; max-width: var(--container-narrow); margin-inline: auto; }
.article-head h1 { margin-block: 18px 20px; font-size: clamp(1.95rem, 4vw, 3rem); }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  color: var(--muted-2); font-size: 0.88rem;
  padding-top: 6px;
}
.article-meta strong { color: var(--muted); font-weight: 500; }

.article-figure { max-width: var(--container); margin: 0 auto 44px; }
.article-figure img { border-radius: var(--radius-card); width: 100%; }

.entry-content {
  max-width: var(--container-narrow);
  margin-inline: auto;
  font-size: 1.09rem;
  line-height: 1.75;
}
.entry-content > * { margin-bottom: 1.3em; }
/* Überschriften gehören zum folgenden Absatz, nicht zum vorigen. */
.entry-content > h2, .entry-content > h3, .entry-content > h4 { margin-bottom: 0.55em; }
.entry-content h2 { margin-top: 2.2em; font-size: clamp(1.55rem, 2.8vw, 2rem); }
.entry-content h3 { margin-top: 1.8em; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content li::marker { color: var(--violet-soft); }
.entry-content strong { font-weight: 600; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.entry-content blockquote {
  margin: 2em 0; padding: 26px 30px;
  border: 1px solid var(--stroke); border-left: 3px solid var(--violet);
  border-radius: var(--radius-sm);
  background: var(--glass);
  font-size: 1.08rem;
}
.entry-content blockquote cite {
  display: block; margin-top: 14px;
  font-style: normal; font-size: 0.88rem; color: var(--muted-2);
}

.entry-content table {
  width: 100%; border-collapse: collapse;
  font-size: 0.95rem;
  border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  overflow: hidden;
  display: block; overflow-x: auto; white-space: nowrap;
}
@media (min-width: 720px) { .entry-content table { display: table; white-space: normal; } }
.entry-content th, .entry-content td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--stroke); }
.entry-content th { background: var(--glass-strong); font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.02em; }
.entry-content tr:last-child td { border-bottom: 0; }

.entry-content pre {
  background: var(--bg-2); border: 1px solid var(--stroke);
  border-radius: var(--radius-sm); padding: 20px 22px;
  overflow-x: auto; font-size: 0.9rem;
}
.entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em; background: var(--glass-strong);
  padding: 2px 6px; border-radius: 5px;
}
.entry-content pre code { background: none; padding: 0; }

/* Antwortblock und Kurzfassung (GEO) */
.answer-box {
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-card);
  background: var(--glass-strong);
  padding: 26px 28px;
  margin-bottom: 2em;
}
.answer-box p:last-child { margin-bottom: 0; }

.key-points {
  border: 1px solid var(--stroke); border-radius: var(--radius-card);
  padding: 26px 28px; margin-bottom: 2em;
}
.key-points h2, .key-points h3 {
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--violet-soft); margin-bottom: 14px; margin-top: 0;
}
.key-points ul { margin: 0; padding-left: 1.2em; }

/* Inhaltsverzeichnis */
.toc {
  border: 1px solid var(--stroke); border-radius: var(--radius-card);
  padding: 24px 26px; margin-bottom: 2.4em;
  background: var(--glass);
}
.toc__title {
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 14px;
}
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--violet-soft); }
.toc li li { margin-top: 8px; }

/* Quellen */
.sources { max-width: var(--container-narrow); margin: 3em auto 0; }
.sources h2 { font-size: 1.2rem; }
.sources ol { padding-left: 1.2em; color: var(--muted); font-size: 0.95rem; }

/* Autorenbox */
.author-box {
  max-width: var(--container-narrow); margin: 3.5em auto 0;
  border: 1px solid var(--stroke); border-radius: var(--radius-card);
  background: var(--glass); padding: 30px 32px;
  display: grid; gap: 20px;
}
@media (min-width: 620px) { .author-box { grid-template-columns: 88px 1fr; gap: 26px; } }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.author-box h2 { font-size: 1.15rem; margin-bottom: 8px; }
.author-box p { color: var(--muted); font-size: 0.95rem; }
.author-box__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 0.9rem; }

/* Verifiziert-Abzeichen neben dem Autorennamen */
.verified-badge {
  display: inline-flex; align-items: center;
  vertical-align: baseline;
  margin-left: 5px;
  line-height: 0;
  text-decoration: none;
}
.verified-badge__icon {
  width: 1em; height: 1em;
  display: block;
  transform: translateY(0.1em);
  transition: transform 0.18s var(--ease);
}
a.verified-badge:hover { text-decoration: none; }
a.verified-badge:hover .verified-badge__icon { transform: translateY(0.1em) scale(1.12); }
a.verified-badge:focus-visible { outline-offset: 1px; }

/* Aehnliche Beitraege */
.related { margin-top: 4em; }

/* Abstand zwischen dem letzten Artikelbaustein und dem Footer. */
.single-article { padding-bottom: clamp(64px, 8vw, 112px); }
.related h2 { font-size: 1.5rem; margin-bottom: 26px; }

/* Artikel-CTA */
.article-cta {
  max-width: var(--container-narrow); margin: 3.5em auto 0;
  border: 1px solid var(--stroke-strong); border-radius: var(--radius-card);
  background: var(--glass-strong); padding: 34px 32px;
  text-align: center;
}
.article-cta h2 { font-size: 1.35rem; margin-bottom: 10px; }
.article-cta p { color: var(--muted); margin-bottom: 22px; }

/* ==========================================================================
   18. Seiten (Impressum, Datenschutz)
   ========================================================================== */

.page-content {
  max-width: var(--container-narrow);
  margin-inline: auto;
  /* Luft zwischen Seitentitel und erstem Abschnitt: Rechtstexte starten
     ohne Einleitungssatz, sonst klebt die erste Überschrift am Hero. */
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: 80px;
}

/* Rechtstexte: ruhigere Überschrift, damit der Fließtext führt. */
.page-hero--legal h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: 0; }

/* Hervorhebung im Fließtext - in der Markenfarbe statt im Browser-Gelb. */
.entry-content mark {
  background: var(--glass-strong);
  color: var(--ink);
  border-bottom: 2px solid var(--stroke-strong);
  padding: 0.05em 0.3em;
  border-radius: 4px;
}

/* ==========================================================================
   19. 404 und Suche
   ========================================================================== */

.error-404 { text-align: center; padding-block: 120px; }
.error-404 .pill { margin-bottom: 20px; }
.search-form { display: flex; gap: 10px; max-width: 460px; margin: 28px auto 0; }
.search-form input[type="search"] {
  flex: 1; border: 1px solid var(--stroke); background: var(--surface);
  border-radius: var(--radius-pill); padding: 14px 22px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.search-form input[type="search"]::placeholder { color: var(--muted-2); }

/* ==========================================================================
   20. Animationen und Motion
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ==========================================================================
   21. Print
   ========================================================================== */

@media print {
  .site-header, .site-footer, .article-cta, .related, .reading-bar, .toc { display: none !important; }
  body { background: #fff; color: #000; }
  .entry-content a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* ==========================================================================
   22. Lead-Formular (Pop-up, drei Schritte)
   ========================================================================== */

.lead {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
@media (min-width: 640px) { .lead { align-items: center; padding: 24px; } }

.lead[hidden] { display: none; }

.lead__backdrop {
  position: absolute; inset: 0;
  background: rgba(19, 14, 34, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}
.lead.is-open .lead__backdrop { opacity: 1; }

.lead__panel {
  position: relative;
  width: 100%; max-width: 640px;
  max-height: 94dvh; overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 30px 80px rgba(20, 12, 40, 0.35);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.26s var(--ease), opacity 0.22s var(--ease);
}
@media (min-width: 640px) { .lead__panel { border-radius: var(--radius-card); } }
.lead.is-open .lead__panel { transform: none; opacity: 1; }

.lead__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 26px 26px 18px;
}
.lead__step-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet-soft);
  margin-bottom: 8px;
}
.lead__title { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 0; }

.lead__close {
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--stroke); background: var(--glass);
  border-radius: 12px; color: var(--muted);
  display: grid; place-items: center; cursor: pointer;
  padding: 0;
}
.lead__close:hover { color: var(--ink); background: var(--glass-strong); }
.lead__close svg { width: 17px; height: 17px; }

.lead__progress {
  height: 3px; margin: 0 26px;
  background: var(--stroke); border-radius: 2px; overflow: hidden;
}
.lead__progress-bar {
  display: block; height: 100%; width: 33%;
  background: var(--grad-cta);
  transition: width 0.3s var(--ease);
}

.lead__form { padding: 22px 26px 26px; }
.lead__lead { color: var(--muted); font-size: 0.95rem; margin: 0 0 20px; }

.lead__hp {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

/* Auswahl-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--ink);
  font: inherit; font-size: 0.92rem;
  cursor: pointer; text-align: left;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.chip:hover { background: var(--glass-strong); border-color: var(--stroke-strong); }
.chip[aria-pressed="true"] {
  background: var(--grad-cta);
  border-color: transparent;
  color: #fff;
}
.chip__check {
  width: 17px; height: 17px; flex: none;
  border: 1.5px solid var(--stroke-strong);
  border-radius: 5px;
  display: grid; place-items: center;
  color: transparent;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.chip__check svg { width: 12px; height: 12px; stroke-width: 3; }
.chip[aria-pressed="true"] .chip__check {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* Felder */
.field { margin-bottom: 18px; border: 0; padding: 0; min-width: 0; }
.field:last-child { margin-bottom: 0; }

.field__label {
  display: block; padding: 0;
  font-size: 0.85rem; font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.field__req { color: var(--violet-soft); }

.field__input {
  width: 100%;
  border: 1px solid var(--stroke);
  background: var(--bg);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: var(--font-body); font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field__input::placeholder { color: var(--muted-2); }
.field__input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}
textarea.field__input { resize: vertical; min-height: 92px; }

.field__note { font-size: 0.8rem; color: var(--muted-2); margin: 9px 0 0; }

.field-row { display: grid; gap: 0; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; gap: 0 16px; } }

.consent {
  display: flex; gap: 11px; align-items: flex-start;
  margin-top: 20px;
  font-size: 0.85rem; color: var(--muted); line-height: 1.5;
  cursor: pointer;
}
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--violet-soft); flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }

.lead__error {
  margin: 16px 0 0;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.28);
  color: var(--red);
  font-size: 0.88rem;
}
.lead__error[hidden] { display: none; }

.lead__foot {
  display: flex; gap: 10px; justify-content: flex-end; align-items: center;
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--stroke);
}
.lead__foot [hidden] { display: none; }
.lead__foot #lead-back { margin-right: auto; }

#lead-submit.is-busy { opacity: 0.6; pointer-events: none; }

/* Erfolgsansicht */
.lead__success { text-align: center; padding-block: 18px 6px; }
.lead__success-icon {
  width: 58px; height: 58px; margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.14);
  color: var(--green);
}
.lead__success-icon svg { width: 27px; height: 27px; stroke-width: 2.4; }
.lead__success h3 { margin-bottom: 10px; }
.lead__success p { color: var(--muted); max-width: 42ch; margin-inline: auto; }
.lead__success .btn { margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  .lead__panel, .lead__backdrop, .lead__progress-bar { transition: none; }
}

/* ==========================================================================
   23. Case Study
   ========================================================================== */

.case-study-section { padding-top: 0; }
.section--alt + .case-study-section { background: var(--bg-2); padding-top: 60px; }

.case-study {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 38px 34px 30px;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 900px) { .case-study { padding: 48px 46px 36px; } }

.case-study__head { display: grid; gap: 34px; margin-bottom: 38px; }
@media (min-width: 900px) {
  .case-study__head { grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: start; }
}

.case-study__intro h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 0.5em;
  max-width: 16ch;
}
.case-study__intro p { color: var(--muted); max-width: 46ch; margin: 0; }

/* Kennzahlen */
.case-metrics { margin: 0; display: grid; }
.case-metric {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--stroke);
}
.case-metric:last-child { border-bottom: 1px solid var(--stroke); }
.case-metric dt { color: var(--muted); font-size: 0.93rem; }
.case-metric dd {
  margin: 0;
  display: flex; align-items: baseline; gap: 9px;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.case-metric__from { color: var(--muted-2); font-size: 1.05rem; font-weight: 500; }
.case-metric__arrow { color: var(--muted-2); font-size: 0.95rem; }
.case-metric__to { color: var(--ink); font-size: 1.28rem; font-weight: 700; }

/* Diagramm */
.case-chart { margin: 0; }

.case-chart__frame {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 18px 18px 14px;
  background: var(--bg);
}

.case-chart__plot {
  position: relative;
  height: 230px;
  min-width: 0;
  cursor: crosshair;
}
@media (min-width: 760px) { .case-chart__plot { height: 300px; } }

.case-chart__svg { width: 100%; height: 100%; display: block; overflow: visible; }
.case-chart__grid { stroke: var(--stroke); stroke-width: 1; }
.case-chart__line { stroke: var(--chart-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.case-chart__stop-top    { stop-color: var(--chart-line); stop-opacity: 0.26; }
.case-chart__stop-bottom { stop-color: var(--chart-line); stop-opacity: 0.02; }

.case-chart__series {
  position: absolute; top: 0; left: 0;
  font-size: 0.78rem; font-weight: 600;
  color: var(--chart-line);
  background: var(--bg);
  padding-right: 10px;
}

.case-chart__axis {
  position: relative;
  width: 44px;
  height: 230px;
}
@media (min-width: 760px) { .case-chart__axis { height: 300px; } }

.case-chart__tick {
  position: absolute; right: 0;
  transform: translateY(-50%);
  font-size: 0.76rem;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.case-chart__range {
  grid-column: 1;
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-size: 0.76rem; color: var(--muted-2);
}

/* Hover */
.case-chart__cursor { position: absolute; inset: 0; pointer-events: none; }
.case-chart__cursor[hidden] { display: none; }
.case-chart__cursor-line {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--stroke-strong);
}
.case-chart__cursor-dot {
  position: absolute;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--chart-line);
  border: 2px solid var(--bg);
  transform: translate(-50%, -50%);
}

.case-chart__tip {
  position: absolute; z-index: 2;
  transform: translate(-50%, -100%);
  margin-top: -14px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 12, 40, 0.16);
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.35;
}
.case-chart__tip[hidden] { display: none; }
.case-chart__tip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.case-chart__tip span { color: var(--muted-2); }

.case-chart figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-2);
}

/* ==========================================================================
   24. Case Study: gruppierte Balken (KI-Sichtbarkeit)
   ========================================================================== */

.case-bars { padding: 2px; }

.case-bars__legend {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  margin-bottom: 28px;
  font-size: 0.85rem; color: var(--muted);
}
.case-bars__key { display: inline-flex; align-items: center; gap: 8px; }
.case-bars__swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.case-bars__swatch--before { background: var(--chart-before); }
.case-bars__swatch--after  { background: var(--chart-after); }

.case-bars__rows { display: grid; gap: 26px; }

.case-bar { display: grid; gap: 7px; }
.case-bar__label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }

.case-bar__line {
  display: grid;
  grid-template-columns: 1fr 48px;
  align-items: center;
  gap: 12px;
}

.case-bar__track {
  display: block; height: 12px;
  border-radius: 6px;
  background: var(--glass);
  overflow: hidden;
}
.case-bar__fill {
  display: block; height: 100%;
  border-radius: 6px;
}
.case-bar__fill--before { background: var(--chart-before); }
.case-bar__fill--after  { background: var(--chart-after); }

.case-bar__value {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: right;
}
.case-bar__value--strong { color: var(--ink); font-weight: 700; font-size: 1.05rem; }

.case-bars__axis {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 12px;
  margin-top: 20px;
}
.case-bars__scale-line {
  position: relative;
  height: 20px;
  border-top: 1px solid var(--stroke);
}
.case-bars__tick {
  position: absolute; top: 6px;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.case-bars__caption { margin: 14px 0 0; font-size: 0.8rem; color: var(--muted-2); }

@media (max-width: 520px) {
  .case-bar__line, .case-bars__axis { grid-template-columns: 1fr 40px; gap: 9px; }
  .case-bar__value--strong { font-size: 0.98rem; }
}
