/* ============================================================
   57Marketing Design System — styles.css
   ============================================================ */

/* 0. Web fonts — Inter (lokal/self-hosted, DSGVO-konform)
   Variable Font (wght 100–900), keine Verbindung zu Google-Servern.
   ============================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 1. Custom Properties
   ============================================================ */
:root {
  /* Colors */
  --color-primary:      #0067ff;
  --color-primary-dark: #003e99;
  --color-primary-light:#3385ff;
  --color-sky:          #e6f0ff;
  --color-sky-soft:     #f3f7ff;
  --color-ink:          #001f4d;
  --color-body:         #535862;
  --color-border:       #e9eaeb;
  --color-white:        #FFFFFF;
  --color-signal:       #ff9700;  /* savings/go signal — highlights "ohne Agentur-Preise!" */

  /* Brand scale reference tokens */
  --brand-25: #f3f7ff;
  --brand-50: #e6f0ff;
  --brand-100:#b3d1ff;
  --brand-200:#99c2ff;
  --brand-300:#66a4ff;
  --brand-400:#3385ff;
  --brand-600:#0067ff;
  --brand-700:#003e99;
  --brand-900:#001f4d;

  /* Typography scale */
  --fs-display: clamp(2.75rem, 2.2rem + 2.4vw, 4rem);
  --fs-h1:      clamp(2.25rem, 1.85rem + 1.9vw, 3.25rem);
  --fs-h2:      clamp(1.75rem, 1.45rem + 1.4vw, 2.5rem);
  --fs-h3:      clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --fs-h4:      1.125rem;
  --fs-lg:      1.125rem;
  --fs-base:    1rem;
  --fs-sm:      .875rem;
  --fs-xs:      .75rem;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;

  /* Radius scale */
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;

  /* Shadow set */
  --shadow-xs:       0 1px 2px rgba(16,24,40,.05);
  --shadow-sm:       0 1px 3px rgba(16,24,40,.10), 0 1px 2px -1px rgba(16,24,40,.10);
  --shadow:          0 3px 3px -1.5px rgba(16,24,40,.04), 0 8px 8px -4px rgba(16,24,40,.03), 0 20px 24px -4px rgba(16,24,40,.08);
  --shadow-lg:       0 10px 20px rgba(16,24,40,.12);
  --shadow-btn:      inset 0 2px 2px rgba(255,255,255,.25), 0 2px 4px rgba(16,24,40,.18);
  --shadow-btn-hover:inset 0 2px 2px rgba(255,255,255,.30), 0 6px 16px rgba(0,103,255,.30);

  /* Spacing & layout */
  --section-pad:    clamp(3.5rem, 2.608rem + 4.46vw, 6rem);
  --section-pad-lg: clamp(5.5rem, 3.892rem + 8.04vw, 10rem);
  --maxw:           1216px;

  /* Inset panels: colored sections pull in from the page edges and round,
     instead of running full-bleed. */
  --panel-gutter:   clamp(12px, 1.5vw, 24px);
  --panel-radius:   clamp(20px, 2.5vw, 32px);
}

/* 2. Reset / Base
   ============================================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--color-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-ink);
  margin-top: 0;
  overflow-wrap: break-word;
  hyphens: manual;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--color-ink);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--color-ink);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  color: var(--color-ink);
}

a {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  display: block;
}

p {
  margin-top: 0;
}

/* 3. Layout
   ============================================================ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 820px;
}

.section {
  padding: var(--section-pad) 0;
  background: #fff;
}

/* Colored sections become rounded panels inset from the page edges
   (not edge-to-edge). The container inside keeps its max-width, so on
   desktop the content columns stay aligned with the white sections. */
.section--sky {
  background: var(--color-sky);
  margin: clamp(28px, 4vw, 56px) var(--panel-gutter);
  border-radius: var(--panel-radius);
}

/* Iceberg section — Hintergrund UND Grafik sind EINE nahtlose Szene.
   Streng auf DIESE Sektion gescoped (viele .section--sky Panels bleiben neutral).
   Desktop: Szene als Section-Hintergrund, Text rechts über dem offenen Wasser;
   das Panel ist bewusst schmaler & zentriert, damit Eisberg und Text nah
   beieinander liegen und der Bezug sofort lesbar ist. Mobil: Himmel oben hinter
   dem Text, Foto randlos darunter bis zur Unterkante. */
.section--iceberg {
  overflow: hidden;             /* full-bleed Szene an die runden Panel-Ecken clippen */
}
.section--iceberg .iceberg-illu {
  display: block;
  width: 100%;
  border-radius: var(--radius-xl);
}

@media (min-width: 901px) {
  .section--iceberg {
    max-width: 1120px;          /* schmaler als full-width → Eisberg & Text rücken zusammen */
    margin-left: auto;
    margin-right: auto;
    background-image: url("/assets/img/iceberg-scene-wide.webp?v=4k");
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
  }
  .section--iceberg .split {
    min-height: 480px;
    align-items: center;
  }
  .section--iceberg .split-media {
    display: none;              /* Eisberg steckt im Hintergrund */
  }
  .section--iceberg .split-content {
    grid-column: 2 / 3;         /* Text über dem hellen, offenen Wasser rechts */
  }
}

/* Mobil: eine durchgehende Szene füllt die ganze Sektion — Himmel oben hinter
   dem Text, Foto randlos bis an die Panel-Kanten und bündig zur Unterkante.
   Der Section-Hintergrund trägt exakt die Himmelsfarbe der Bild-Oberkante
   (#d7e6f2), damit Text-Bereich und Bild nahtlos übergehen. */
@media (max-width: 900px) {
  /* .section.section--iceberg (2 Klassen) schlägt das spätere
     `.section { padding }` in @media (max-width:768px) → Bild bleibt bündig. */
  .section.section--iceberg {
    background-color: #d7e6f2;
    padding-bottom: 0;
  }
  .section--iceberg .split {
    gap: 28px;
  }
  .section--iceberg .split-media {
    width: auto;
    margin: 0 -24px;            /* Container-Innenabstand (24px) aufheben → full-bleed */
  }
  .section--iceberg .iceberg-illu {
    border-radius: 0;           /* randlos, kein Karten-Look */
  }
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  color: var(--color-primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
  margin-bottom: 12px;
  display: block;
}

/* 4. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
}

.btn-primary{ background: var(--color-primary); color:#fff; border-color:transparent;
  box-shadow: var(--shadow-btn); }
.btn-primary:hover{ color:#fff; background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover); }
.btn-primary:active{ transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(16,24,40,.22); }

.btn-outline {
  background: #fff;
  border-color: var(--color-border);
  color: var(--color-ink);
  box-shadow: 0 1px 2px rgba(14,27,51,.06);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(14,27,51,.10);
}

.btn-outline:active { transform: translateY(0); box-shadow: inset 0 1px 3px rgba(14,27,51,.10), 0 1px 2px rgba(14,27,51,.06); }

.btn-light {
  background: linear-gradient(180deg, #ffffff 0%, #EFF5FF 100%);
  color: var(--color-primary);
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(14,27,51,.10), 0 1px 2px rgba(14,27,51,.08);
}

.btn-light:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e6f0ff 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(14,27,51,.14), 0 2px 4px rgba(14,27,51,.10);
}

.btn-light:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(14,27,51,.12), 0 1px 3px rgba(14,27,51,.08);
}

/* 5a. Announcement Bar
   ============================================================ */
.announce-bar {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 10px 44px;
  font-size: .95rem;
  position: relative;
  overflow: hidden;
  transition: height .25s ease, padding .25s ease, opacity .25s ease;
}

.announce-bar a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.announce-bar.is-hidden {
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
}

.announce-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background .15s;
}

.announce-close:hover {
  background: rgba(255,255,255,.15);
}

/* 5. Header — Floating Pill Navbar
   ============================================================ */
/* Transparent navbar with no own background/band: sits ON TOP of the hero
   (sticky, high z-index). The hero is pulled up underneath it so the hero
   background runs behind the navbar. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  padding-top: 18px;
}

.site-header.is-scrolled .header-inner {
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px 26px;
  margin-top: 0;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 35px;
  background-color: var(--color-primary);
  -webkit-mask: url("/assets/img/logo-mark.svg") center / contain no-repeat;
          mask: url("/assets/img/logo-mark.svg") center / contain no-repeat;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-ink);
  letter-spacing: -.01em;
}

.logo--light .logo-text {
  color: #fff;
}

.logo--light .logo-mark {
  background-color: #fff;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

/* Center the nav links between logo and CTA (two auto-margins) */
.nav-menu > li:first-child {
  margin-left: auto;
}

.nav-link {
  color: var(--color-body);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}

.nav-link:hover {
  color: var(--color-primary);
}

/* Nav toggle (hamburger) — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-ink);
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: .2s;
}

.nav-cta {
  margin-left: auto;
}

/* Dropdown */
.has-dropdown {
  position: relative;
  list-style: none;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-body);
  font-weight: 500;
  font-size: .95rem;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: color .2s;
}

.dropdown-toggle:hover {
  color: var(--color-primary);
}

/* Animated chevron next to the toggle */
.dropdown-toggle .chev {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  transition: transform .25s ease;
}

.has-dropdown:hover .dropdown-toggle .chev,
.has-dropdown.open .dropdown-toggle .chev {
  transform: rotate(180deg);
}

/* Mega menu (Leistungen) */
.mega {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 92vw);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px;
  margin: 0;
  z-index: 10;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

/* Invisible hover bridge so the menu doesn't close while the cursor crosses
   the gap between the toggle and the panel. */
.mega::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s ease;
}

.mega-item:hover {
  background: var(--color-sky);
}

.mega-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.mega-ico svg {
  width: 20px;
  height: 20px;
}

.mega-text {
  display: flex;
  flex-direction: column;
}

.mega-title {
  color: var(--color-ink);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.3;
}

.mega-desc {
  color: var(--color-body);
  font-size: .82rem;
  line-height: 1.35;
  margin-top: 2px;
}

.mega-cta {
  color: var(--color-primary);
  font-weight: 600;
  font-size: .8rem;
  margin-top: 6px;
}

/* Show mega on hover (desktop) and on .open (JS toggle) */
.has-dropdown:hover .mega,
.has-dropdown.open .mega {
  display: grid;
}

/* 6. Hero
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #f3f7ff, #fff);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.0625rem;
  max-width: 54ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 6c. Hero — Split-Layout: Text links (linksbündig, Checkmarks) + Ad-Wand
   rechts in horizontaler Dauerschleife (3 Reihen, wechselnde Richtung).
   ============================================================ */
.hero--split {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  margin-top: -84px;        /* unter die transparente Navbar ziehen */
  padding-top: 100px;
  background-color: #fff;    /* ganz weiß */
  display: flex;
  align-items: center;
}
.hero--split .hero-graph { display: none; }   /* im Split-Layout ohne Graph */

/* Textfarben auf hellem Hintergrund */
.hero--split .eyebrow { color: var(--color-primary-dark); }
.hero--split h1 { color: var(--color-ink); }
.hero--split .hero-sub { color: var(--color-body); }
.hero--split .hero-checks li { color: var(--color-ink); }
.hero--split .hero-note { color: var(--color-body); opacity: .85; }

/* Textspalte links */
.hero-split-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  pointer-events: none;     /* leere Fläche lässt Hover zur Ad-Wand durch */
}
.hero-text { max-width: 580px; text-align: left; pointer-events: auto; }
.hero--split h1 { font-size: var(--fs-h1); line-height: 1.26; margin-bottom: 20px; }
/* Highlight-Chip nie umbrechen (eine Zeile) + Luft nach oben zur Zeile darüber */
.hero--split .hero-highlight { white-space: nowrap; }
.hero--split .hero-sub { font-size: 1.0625rem; color: var(--color-body); margin: 0 0 26px; max-width: 30rem; }
.hero-checks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 13px; }
.hero-checks li { display: flex; align-items: flex-start; gap: 11px; font-size: 1.02rem; line-height: 1.4; color: var(--color-ink); font-weight: 500; }
.hero-checks svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--color-signal); margin-top: 2px; }
.hero-note { margin: 16px 0 0; font-size: .9rem; opacity: .8; }

/* Ad-Wand rechts – full-bleed bis zum rechten Rand, 3 horizontale Loops */
.hero-gallery {
  position: absolute;
  inset: 0 0 0 auto;
  width: 56%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 14px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
}
.hero-gallery__row { flex: 1; min-height: 0; display: flex; align-items: center; overflow: hidden; }
.hero-gallery__track {
  display: flex; align-items: center; gap: 16px;
  height: 100%; width: max-content;
  will-change: transform;
}
.hero-gallery__track img {
  height: 100%; width: auto; aspect-ratio: 1 / 1;
  border-radius: 16px; object-fit: cover; display: block;
  box-shadow: 0 16px 36px -14px rgba(0, 31, 77, .30), 0 3px 10px rgba(0, 31, 77, .08);
}
.hg-row--a .hero-gallery__track { animation: hg-left  58s linear infinite; }
.hg-row--b .hero-gallery__track { animation: hg-right 70s linear infinite; }
.hg-row--c .hero-gallery__track { animation: hg-left  64s linear infinite; }
@keyframes hg-left  { to   { transform: translateX(-50%); } }
@keyframes hg-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.hero-gallery:hover .hero-gallery__track { animation-play-state: paused; }

.hero--split h1 { hyphens: manual; }   /* nur am echten Bindestrich umbrechen */

/* Tablet/Mobile: Ad-Wand aus, Text volle Breite */
@media (max-width: 980px) {
  .hero--split {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    padding-bottom: 32px;
  }
  .hero-split-inner { order: 1; }
  .hero-text { max-width: none; }
  .hero--split h1 { font-size: clamp(2rem, 7.4vw, 2.7rem); }
  /* schmale Spalte → Chip darf wieder umbrechen, sonst wird "Preise!" abgeschnitten */
  .hero--split .hero-highlight { white-space: normal; }

  /* Ad-Wand jetzt UNTER dem Text sichtbar – volle Breite, Animation läuft weiter */
  .hero--split .hero-gallery {
    display: flex;
    order: 2;
    position: static;
    inset: auto;
    width: 100%;
    margin-top: 30px;
    padding: 0;
    gap: 12px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  }
  .hero-gallery__row { height: 128px; flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-gallery__track { animation: none !important; }
}

/* 6b. Hero — Centered variant (index.html)
   ============================================================ */
.hero--centered {
  text-align: center;
  background-color: var(--color-sky);
  background-image: radial-gradient(rgba(0,103,255,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  margin-top: -84px;        /* pull hero up under the transparent navbar */
  padding-top: 100px;       /* clear the navbar (≈84px) + etwas Luft */
  overflow: hidden;
  /* Volle Viewport-Höhe: Content vertikal mittig, Marquee unten */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero--centered .hero-inner {
  flex: 1 1 auto;           /* füllt die Höhe → zentriert den Content vertikal */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

/* Marquee als eigenständiges Band direkt unter dem Vollhöhen-Hero */
.tools-marquee { margin: 0; padding: 24px 0 30px; }

.hero--centered .hero-content {
  /* min() keeps the 880px cap on desktop but guarantees a 24px gutter on
     phones (the .hero-inner padding is zeroed, so without this the hero
     text would run edge-to-edge). Matches the section container gutter.
     max-width overrides the base .hero-content 600px cap. */
  width: min(880px, 100% - 48px);
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.hero--centered h1 {
  font-size: var(--fs-h1);
  line-height: 1.22;   /* extra leading so the highlight chip clears the line above */
}

.hero-em-muted {
  color: var(--color-body);
}

/* Signal-color callout for the "ohne Agentur-Preise!" hero line —
   solid fill, straight (square) edges, straight underline. */
.hero-highlight {
  color: var(--color-white);
  background: var(--color-signal);
  padding: .02em .28em .1em;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .85);
  text-decoration-thickness: .05em;
  text-underline-offset: .12em;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

.hero--centered .hero-sub {
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--centered .hero-actions {
  justify-content: center;
}

/* Product mockup */
.hero-mockup {
  max-width: 1040px;
  margin: 0 auto -40px;
  perspective: 1600px;
  padding: 0 24px;
}

.hero-mockup-inner {
  transform: rotateX(8deg);
  border-radius: 14px;
  overflow: hidden;
}

.hero-mockup-inner svg, .hero-mockup-inner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Flat variant: transparent illustration, no product-shot frame
   (used on the homepage hero; ki-umsetzung keeps the tilted frame) */
.hero-mockup--flat {
  perspective: none;
  margin-bottom: 0;
}
.hero-mockup--flat .hero-mockup-inner {
  transform: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

/* 7. USP Strip
   ============================================================ */
.usp-strip {
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.usp {
  text-align: center;
}

.usp-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-sky);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.usp-ico svg {
  width: 24px;
  height: 24px;
}

.usp strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 4px;
  line-height: 1.35;
}

.usp span {
  font-size: .9rem;
  color: var(--color-body);
}

/* 7b. Tool-Marquee (Logo-Laufband)
   ============================================================
   Endlos horizontal scrollendes Laufband der Tools, die wir für
   unsere Kunden einsetzen. Sitzt direkt unter dem Hero-Textblock
   und blendet sich in den Hero-Hintergrund (Dot-Grid) ein – kein
   eigenes Band, kein Rahmen. Rein CSS: der Track fährt per
   transform: translateX(-50%) → GPU-composited (kein Repaint),
   deshalb auch auf Mobile günstig. Zwei identische Gruppen
   nebeneinander → nach -50% liegt Gruppe 2 exakt auf Gruppe 1:
   nahtlose Endlosschleife. Pause bei Hover/Fokus, aus bei
   prefers-reduced-motion (dann manuell scrollbar). */
.tools-marquee {
  margin: 20px 0 4px;
}

.tools-marquee__eyebrow {
  text-align: center;
  color: var(--color-primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
  margin: 0 0 18px;
}

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 46s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* Zwei Reihen: Reihe 2 läuft in Gegenrichtung und etwas langsamer → lebendiger */
.marquee--row2 { margin-top: 16px; }
.marquee--row1 .marquee__track { animation-duration: 46s; }
.marquee--row2 .marquee__track { animation-duration: 54s; animation-direction: reverse; }

.marquee__group {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0 9px;
  list-style: none;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: 0 0 auto;
  padding: .72rem 1.3rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 31, 77, .06);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-ink);
  white-space: nowrap;
}

.tool-pill img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  flex: 0 0 auto;
}

.tool-pill--more {
  color: var(--color-primary-dark);
  background: var(--color-sky);
  border-color: var(--brand-100);
}

@media (max-width: 768px) {
  .tools-marquee { margin: 28px 0 4px; }
  .tools-marquee__eyebrow { margin-bottom: 14px; }
  .marquee--row2 { margin-top: 12px; }
  .marquee__group { gap: 12px; padding: 0 6px; }
  .tool-pill { padding: .58rem 1rem; font-size: 1rem; gap: .55rem; }
  .tool-pill img { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; }
}

/* 7c. Schwebende Meta-Ad-Creatives im Hero (dekorativ, nur großer Desktop)
   ============================================================
   4 Ad-Preview-Karten in den Seiten-Guttern neben dem zentrierten
   880px-Textblock. Sie fliegen beim Laden herein (Slot = einmaliger
   Fly-in translateX/opacity, gestaffelt) und schweben danach dezent
   (Card = Dauer-Float, transform-only → GPU-composited). Die horizontale
   Position folgt der Gutter-Breite per calc(): die Innenkante bleibt
   immer 16px vom Text entfernt; auf schmaleren Screens schieben die
   Karten aus dem Rand heraus. Erst ab 1280px sichtbar, darunter aus.
   prefers-reduced-motion → statisch (kein Fly-in/Float). */
.hero--centered { position: relative; }

/* Ambient-Ergebnis-Graph (steigt links→rechts, Signal-Grün, sehr transparent) */
.hero-graph {
  position: absolute;
  inset: 0;
  z-index: 0;                 /* über dem Dot-Grid, hinter Cards (z1) und Text (z2) */
  pointer-events: none;
  overflow: hidden;
}
.hero-graph svg {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 92%;
  display: block;
}
/* Auf Smartphones stapelt der Hero einspaltig → kein leerer Raum zu füllen;
   der gestreckte Graph würde zu steil über die Buttons laufen → ausblenden. */
/* Wachstums-Puls: ein leuchtendes Segment wandert die steigende Linie
   von links nach rechts – „eure Ergebnisse steigen mit uns". */
.hero-graph__pulse {
  stroke-dasharray: 16 84;      /* pathLength=100 → 16% helles Segment */
  stroke-dashoffset: 100;
  opacity: .9;
  filter: drop-shadow(0 0 5px rgba(10, 156, 99, .55));
  animation: graph-pulse 4.5s linear infinite;
}
@keyframes graph-pulse { to { stroke-dashoffset: 0; } }

@media (max-width: 768px) { .hero-graph { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-graph__pulse { animation: none; opacity: 0; } }

.hero-ads {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: none;
  /* Große Creatives – ohne Marquee im Hero ist die Höhe reichlich. */
  --card-w: clamp(190px, min(15vw, 25vh), 300px);
  /* Vertikale Mitte der Karten = Mitte des zentrierten Content-Blocks
     (Content ist in der vollen Höhe unterhalb der Navbar-Padding zentriert). */
  --cy: calc(50% + 50px);
  /* Zickzack-Versatz nach innen – wächst mit der Breite, bleibt aber
     immer frei vom 880px-Textblock. */
  --stagger: clamp(24px, calc((100vw - 1280px) * 0.085), 130px);
  /* Karte mittig im Gutter neben dem 880px-Textblock (zentriert). */
  --cx: calc((100vw - 880px) / 4 - var(--card-w) / 2);
}

.hero-inner { position: relative; z-index: 2; }

.ad-slot {
  position: absolute;
  width: var(--card-w);
  will-change: transform, opacity;
}
/* 3 Creatives pro Seite, versetzt (Zickzack): mittlere Karte am weitesten innen */
.ad-slot--l1 { top: calc(var(--cy) - 1.5 * var(--card-w) - 24px); left:  calc(var(--cx) + var(--stagger) * 0.15); --rot: -5deg; animation: ad-fly-l .9s cubic-bezier(.2,.75,.25,1) .12s both; }
.ad-slot--l2 { top: calc(var(--cy) - 0.5 * var(--card-w));        left:  calc(var(--cx) + var(--stagger));        --rot:  4deg; animation: ad-fly-l .9s cubic-bezier(.2,.75,.25,1) .34s both; }
.ad-slot--l3 { top: calc(var(--cy) + 0.5 * var(--card-w) + 24px); left:  calc(var(--cx) + var(--stagger) * 0.45); --rot: -4deg; animation: ad-fly-l .9s cubic-bezier(.2,.75,.25,1) .56s both; }
.ad-slot--r1 { top: calc(var(--cy) - 1.5 * var(--card-w) - 34px); right: calc(var(--cx) + var(--stagger) * 0.15); --rot:  5deg; animation: ad-fly-r .9s cubic-bezier(.2,.75,.25,1) .23s both; }
.ad-slot--r2 { top: calc(var(--cy) - 0.5 * var(--card-w) - 10px); right: calc(var(--cx) + var(--stagger));        --rot: -4deg; animation: ad-fly-r .9s cubic-bezier(.2,.75,.25,1) .45s both; }
.ad-slot--r3 { top: calc(var(--cy) + 0.5 * var(--card-w) + 14px); right: calc(var(--cx) + var(--stagger) * 0.45); --rot:  4deg; animation: ad-fly-r .9s cubic-bezier(.2,.75,.25,1) .67s both; }

@keyframes ad-fly-l { from { opacity: 0; transform: translateX(-150px); } to { opacity: 1; transform: translateX(0); } }
@keyframes ad-fly-r { from { opacity: 0; transform: translateX( 150px); } to { opacity: 1; transform: translateX(0); } }

/* Das Creative selbst (KI-generierte, fertige Ad inkl. Text – kein Rahmen) */
.ad-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;                 /* UA-Default figure-margin (1em 40px) zurücksetzen */
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-sky);
  box-shadow: 0 24px 48px -14px rgba(0, 31, 77, .36), 0 4px 14px rgba(0, 31, 77, .12);
  transform: rotate(var(--rot));
  animation: ad-float 6s ease-in-out 1.1s infinite;
}
.ad-slot--l2 .ad-card, .ad-slot--r2 .ad-card { animation-duration: 7.4s; }

@keyframes ad-float {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50%      { transform: rotate(var(--rot)) translateY(-10px); }
}

.ad-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 1360px) { .hero-ads { display: block; } }

@media (prefers-reduced-motion: reduce) {
  .ad-slot { animation: none; }
  .ad-card { animation: none; }
}

/* 8. Cards
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-sky);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card h3 {
  margin-bottom: 10px;
}

/* 9. Split (alternating text-image)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split--reverse .split-media {
  order: -1;
}

.split-content h2 {
  margin-bottom: 16px;
}

.split-media img,
.split-media svg {
  width: 100%;
  border-radius: var(--radius);
}

/* 10. Steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: steps;
}

.step {
  text-align: center;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* 10b. Animated timeline (homepage "In vier Schritten")
   ============================================================ */
.timeline {
  position: relative;
  margin-top: 12px;
}
.tl-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--tl-n, 4), 1fr);
}
.tl-step {
  position: relative;
  z-index: 1;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tl-node {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  margin-bottom: 20px;
  box-shadow: 0 0 0 6px #fff, 0 6px 16px rgba(0, 103, 255, .28);
}
.tl-body {
  position: relative;
  z-index: 2;
}
.tl-body h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  color: var(--color-ink);
}
.tl-body p {
  margin: 0;
  color: var(--color-body);
  font-size: .95rem;
}

/* connecting line — horizontal, exactly through the node centers (12.5% / 87.5%) */
.tl-line {
  position: absolute;
  top: 26px;
  left: calc(50% / var(--tl-n, 4));
  right: calc(50% / var(--tl-n, 4));
  height: 3px;
  transform: translateY(-50%);
  background: #dbe7fb;
  border-radius: 3px;
  z-index: 0;
  overflow: hidden;
}
.tl-line-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
  border-radius: 3px;
}

/* per-step stagger */
.tl-step:nth-child(1) { --tl-d: .10s; }
.tl-step:nth-child(2) { --tl-d: .30s; }
.tl-step:nth-child(3) { --tl-d: .50s; }
.tl-step:nth-child(4) { --tl-d: .70s; }
.tl-step:nth-child(5) { --tl-d: .90s; }
.tl-step:nth-child(6) { --tl-d: 1.10s; }

/* animation only runs when JS is active (no-JS = everything visible) */
.js .timeline .tl-step {
  transition: opacity .55s ease var(--tl-d), transform .55s cubic-bezier(.2, .7, .3, 1.2) var(--tl-d);
}
.js .timeline .tl-node {
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) var(--tl-d), box-shadow .3s ease;
}
.js .timeline .tl-line-fill {
  transition: width 1.25s cubic-bezier(.45, 0, .2, 1) .12s;
}
.js .timeline:not(.is-revealed) .tl-step { opacity: 0; transform: translateY(18px); }
.js .timeline:not(.is-revealed) .tl-node { transform: scale(.4); }
.js .timeline:not(.is-revealed) .tl-line-fill { width: 0; }

/* mobile → vertical timeline */
@media (max-width: 760px) {
  .tl-steps { grid-template-columns: 1fr; }
  .tl-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 0 0 30px;
    gap: 18px;
  }
  .tl-step:last-child { padding-bottom: 0; }
  .tl-node { margin-bottom: 0; flex: 0 0 auto; }
  .tl-body { padding-top: 6px; }

  .tl-line { display: none; }
  .tl-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 52px;
    bottom: -8px;
    width: 3px;
    transform: translateX(-50%);
    background-color: #dbe7fb;
    border-radius: 3px;
    z-index: 0;
  }
  .js .timeline .tl-step:not(:last-child)::before {
    transition: background-color .5s ease var(--tl-d);
  }
  .js .timeline.is-revealed .tl-step:not(:last-child)::before {
    background-color: var(--color-primary);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .timeline .tl-step,
  .js .timeline .tl-node,
  .js .timeline .tl-line-fill,
  .js .timeline .tl-step::before {
    transition: none !important;
  }
  .js .timeline:not(.is-revealed) .tl-step { opacity: 1; transform: none; }
  .js .timeline:not(.is-revealed) .tl-node { transform: none; }
  .js .timeline:not(.is-revealed) .tl-line-fill { width: 100%; }
}

/* 11. Pricing
   ============================================================ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1140px;
  margin: 0 auto;
}

.price-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  border-color: var(--color-primary);
  box-shadow: 0 16px 40px rgba(0,103,255, .18);
}

.price-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-ink);
  margin-bottom: 20px;
}

.price sup {
  font-size: 1.2rem;
  vertical-align: super;
}

.price sub {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-body);
  white-space: nowrap;
}

/* 12. FAQ
   ============================================================ */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: color .2s;
}

.faq-q:hover {
  color: var(--color-primary);
}

.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 16px;
  transition: .2s;
}

.faq-item.open .faq-q::after {
  content: '–';
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-item.open .faq-a {
  max-height: 400px;
}

.faq-a p {
  padding-bottom: 20px;
  margin: 0;
}

/* 13. CTA Band
   ============================================================ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg, #001331 0%, #002356 48%, #003a8f 100%);
  color: #fff;
  text-align: center;
  padding: clamp(4rem, 3rem + 4vw, 7rem) 0 0;
  margin: clamp(40px, 5vw, 72px) var(--panel-gutter);
  border-radius: var(--panel-radius);
}

.cta-band h2,
.cta-band h3,
.cta-band p {
  color: #fff;
}

.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-size: clamp(1.9rem, 1.25rem + 2.7vw, 3.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}

/* Feature pills */
.cta-checks {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 32px;
}

.cta-checks li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: #fff;
}

.cta-checks li::before {
  content: "";
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: url("/assets/img/check-circle.svg") center / contain no-repeat;
}

/* Perspective product mockup that rises into the footer */
.cta-mockup {
  max-width: 900px;
  margin: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) auto -90px;
  padding: 0 24px;
  perspective: 1600px;
}

.cta-mockup img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  transform: rotateX(6deg);
  transform-origin: center top;
  filter: drop-shadow(0 32px 60px rgba(0, 12, 40, .55));
}

/* Inline SEO dashboard — same look as the old <img>, but animatable */
.cta-mockup .seo-dash {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  transform: rotateX(6deg);
  transform-origin: center top;
  filter: drop-shadow(0 32px 60px rgba(0, 12, 40, .55));
}

/* scaled parts need a local box + centred origin */
.seo-dash .sd-panel,
.seo-dash .sd-card,
.seo-dash .sd-dot,
.seo-dash .sd-ring,
.seo-dash .sd-row--1 {
  transform-box: fill-box;
  transform-origin: center;
}

/* the visibility line is drawn via dash-offset */
.seo-dash .sd-trend { stroke-dasharray: 210; }

/* staggered entry delays — builds the story up to #1, then the trend climbs */
.seo-dash .sd-ring    { --d: 0s;    }
.seo-dash .sd-panel   { --d: .05s;  }
.seo-dash .sd-title   { --d: .22s;  }
.seo-dash .sd-search  { --d: .34s;  }
.seo-dash .sd-row--5  { --d: .50s;  }
.seo-dash .sd-row--4  { --d: .60s;  }
.seo-dash .sd-row--3  { --d: .70s;  }
.seo-dash .sd-row--2  { --d: .82s;  }
.seo-dash .sd-row--1  { --d: .96s;  }
.seo-dash .sd-card    { --d: 1.15s; }
.seo-dash .sd-pill--1 { --d: 1.55s; }
.seo-dash .sd-pill--2 { --d: 1.72s; }
.seo-dash .sd-area    { --d: 1.70s; }
.seo-dash .sd-dot     { --d: 1.95s; }

/* transitions only run with JS (no-JS → everything stays visible) */
.js .seo-dash .sd-ring,
.js .seo-dash .sd-panel,
.js .seo-dash .sd-title,
.js .seo-dash .sd-search,
.js .seo-dash .sd-row,
.js .seo-dash .sd-card,
.js .seo-dash .sd-area,
.js .seo-dash .sd-dot,
.js .seo-dash .sd-pill {
  transition:
    opacity .6s ease var(--d, 0s),
    transform .7s cubic-bezier(.2, .7, .3, 1.1) var(--d, 0s);
}
.js .seo-dash .sd-trend {
  transition: stroke-dashoffset 1.15s cubic-bezier(.45, 0, .2, 1) 1.3s;
}

/* hidden (pre-reveal) state */
.js .cta-mockup:not(.is-revealed) .sd-ring   { opacity: 0; }
.js .cta-mockup:not(.is-revealed) .sd-panel  { opacity: 0; transform: translateY(14px) scale(.97); }
.js .cta-mockup:not(.is-revealed) .sd-title,
.js .cta-mockup:not(.is-revealed) .sd-search { opacity: 0; transform: translateY(10px); }
.js .cta-mockup:not(.is-revealed) .sd-row    { opacity: 0; transform: translateY(24px); }
.js .cta-mockup:not(.is-revealed) .sd-row--1 { opacity: 0; transform: translateY(40px) scale(.98); }
.js .cta-mockup:not(.is-revealed) .sd-card   { opacity: 0; transform: translateY(10px) scale(.9); }
.js .cta-mockup:not(.is-revealed) .sd-area   { opacity: 0; }
.js .cta-mockup:not(.is-revealed) .sd-dot    { opacity: 0; transform: scale(0); }
.js .cta-mockup:not(.is-revealed) .sd-pill   { opacity: 0; transform: translateY(16px); }
.js .cta-mockup:not(.is-revealed) .sd-trend  { stroke-dashoffset: 210; }

/* ambient life once revealed: slow ring drift + gently pulsing endpoint */
@keyframes sd-spin  { to { transform: rotate(360deg); } }
@keyframes sd-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.js .cta-mockup.is-revealed .sd-ring { animation: sd-spin 60s linear 1.2s infinite; }
.js .cta-mockup.is-revealed .sd-dot  { animation: sd-pulse 2.4s ease-in-out 3s infinite; }
/* Die Endlos-Animation liegt innerhalb des großen drop-shadow-Filters:
   jede Bewegung erzwingt sonst einen kompletten Schatten-Repaint pro Frame.
   Das Mockup sitzt ganz unten, ist also fast immer außerhalb des Sichtfelds —
   dort die Animation pausieren spart auf Mobile das dauerhafte Neurendern.
   `is-onscreen` wird von main.js per IntersectionObserver getogglet. */
.js .cta-mockup:not(.is-onscreen) .sd-ring,
.js .cta-mockup:not(.is-onscreen) .sd-dot { animation-play-state: paused; }

/* CTA copy reveals on scroll-in, just ahead of the graphic */
.js .cta-inner > h2,
.js .cta-inner > .cta-checks {
  transition:
    opacity .6s ease var(--d, 0s),
    transform .6s cubic-bezier(.2, .7, .3, 1.1) var(--d, 0s);
}
.js .cta-inner:not(.is-revealed) > h2,
.js .cta-inner:not(.is-revealed) > .cta-checks {
  opacity: 0;
  transform: translateY(20px);
}
.cta-inner > h2          { --d: .05s; }
.cta-inner > .cta-checks { --d: .18s; }

/* the button fades in only — keeps its own snappy hover/active transform */
.js .cta-inner > .btn {
  transition: opacity .6s ease .30s, transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.js .cta-inner:not(.is-revealed) > .btn { opacity: 0; }

/* respect reduced-motion: observer reveals instantly, we just kill the motion */
@media (prefers-reduced-motion: reduce) {
  .js .seo-dash *,
  .js .cta-inner > * {
    transition: none !important;
    animation: none !important;
  }
}

/* 14. Footer
   ============================================================ */
.site-footer {
  background: var(--color-white);
  color: var(--color-body);
  border-top: 1px solid var(--color-border);
  padding: clamp(3.5rem, 2.6rem + 3vw, 5rem) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 48px;
}

/* On the light footer the logo reads in brand colors, not white */
.site-footer .logo--light .logo-text { color: var(--color-ink); }
.site-footer .logo--light .logo-mark { background-color: var(--color-primary); }

.footer-brand {
  max-width: 340px;
}

.footer-brand p {
  margin: 16px 0 0;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--color-body);
}

.footer-col h3 {
  color: var(--color-ink);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: .01em;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--color-body);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-contact {
  font-size: var(--fs-sm);
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-body);
}

.footer-contact a::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: var(--color-primary);
  -webkit-mask: center / contain no-repeat;
          mask: center / contain no-repeat;
}

.footer-contact a[href^="mailto:"]::before {
  -webkit-mask-image: url("/assets/img/icon-mail.svg");
          mask-image: url("/assets/img/icon-mail.svg");
}

.footer-contact a[href^="tel:"]::before {
  -webkit-mask-image: url("/assets/img/icon-phone.svg");
          mask-image: url("/assets/img/icon-phone.svg");
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  font-size: var(--fs-xs);
  color: var(--color-body);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  margin: 0;
}

/* 15. Forms
   ============================================================ */
.form-grid {
  display: grid;
  gap: 18px;
  max-width: 640px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--color-ink);
  transition: border-color .2s;
  background: #fff;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,103,255, .12);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

/* 16a. Pastel icon-tile color variants
   ============================================================ */
.card-icon--blue   { background: #e6f0ff; color: #0067ff; }
.card-icon--green  { background: #d3f8df; color: #16b364; }
.card-icon--orange { background: #fdead7; color: #ef6820; }
.card-icon--purple { background: #ece9fe; color: #875bf7; }
.card-icon--teal   { background: #cff9fe; color: #088ab2; }
.card-icon--pink   { background: #e0eaff; color: #6172f3; }

/* 16b. Card hover polish
   ============================================================ */
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* 16b-2. Pain points ("Kommt dir das bekannt vor?")
   ============================================================ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pain-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pain-card .card-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.pain-card p {
  margin: 0;
  color: var(--color-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.pain-conclusion {
  max-width: 680px;
  margin: 40px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-ink);
}

.pain-conclusion strong {
  color: var(--color-primary);
}

@media (max-width: 640px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }
}

/* 16c. Comparison section (Vergleich)
   ============================================================ */
.compare { }

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.compare-grid--duo {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
}

.compare-col {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow);
}

.compare-col--featured {
  background: linear-gradient(180deg, #0067ff, #003e99);
  color: #fff;
  box-shadow: 0 24px 50px rgba(0,103,255,.30);
  transform: translateY(-8px);
}

.compare-col h3 {
  text-align: center;
  margin: 0 0 4px;
}

.compare-col--featured h3 {
  color: #fff;
}

.compare-sub {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-body);
  margin: 0 0 20px;
}

.compare-col--featured .compare-sub {
  color: rgba(255,255,255,.75);
}

.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
}

.compare-col--featured .compare-list li {
  border-bottom-color: rgba(255,255,255,.18);
}

.compare-list li:last-child {
  border-bottom: 0;
}

.compare-ico {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.compare-ico--yes { background: #17b26a; }
.compare-ico--mid { background: #f79009; }
.compare-ico--no  { background: #f04438; }

/* 16d. Illustration image classes
   ============================================================ */
.split-illu {
  display: block;
  width: 100%;
  height: auto;
}

.illu-frame {
  background: #f3f7ff;
  border-radius: var(--radius-xl);
  padding: 28px;
}

.section-illu {
  display: block;
  max-width: 760px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* 16. Responsive — max-width: 900px
   ============================================================ */
@media (max-width: 900px) {
  /* Pill navbar spacing tweak on tablet */
  .header-inner {
    margin-top: 10px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse .split-media {
    order: 0;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-col--featured {
    transform: none;
  }
}

/* 17. Responsive — max-width: 768px
   ============================================================ */
@media (max-width: 768px) {
  .announce-bar {
    font-size: .82rem;
    padding: 8px 40px;
  }

  /* Der Split-Hero zieht sich per margin-top:-84px unter die schwebende
     Desktop-Navbar. Auf Mobile ist die Navbar aber eine flache, deckende
     Leiste (66px) — der Negativ-Rand würde den Hero über die Announce-Bar
     ziehen und deren zweite Zeile verdecken. Darum hier bündig unter den
     Header setzen, egal ob die Announce-Bar sichtbar ist oder nicht. */
  .hero--split {
    margin-top: 0;
    padding-top: 28px;
  }

  /* Flush, full-bleed navbar on mobile: no top gap, no rounding */
  .site-header {
    padding-top: 0;
  }

  .header-inner {
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--color-border);
  }

  .hero--centered {
    padding-top: 96px;
  }

  /* Slightly smaller, better-balanced headings on small screens so long
     German compound words fit comfortably within the 24px gutters. */
  h1,
  .hero--centered h1 {
    font-size: 2.125rem;
    line-height: 1.12;
  }

  /* Keep the leading looser on the centered hero so the highlight chip
     doesn't collide with the line above. */
  .hero--centered h1 {
    line-height: 1.2;
  }

  /* Auto-hyphenate headings on mobile (lang="de") so long words like
     "Geschäftsbedingungen" break at syllables instead of mid-word. */
  h1, h2, h3 {
    -webkit-hyphens: auto;
            hyphens: auto;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-mockup {
    margin-bottom: -20px;
  }

  .hero-mockup-inner {
    transform: none;
    box-shadow: 0 20px 40px rgba(14,27,51,.16);
  }

  .section {
    padding: var(--section-pad) 0;
  }

  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Mobile nav — full-screen takeover (reqSuite-Stil) ── */
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 2;               /* stays above the panel within the header */
  }

  /* Hamburger animates into an X when the menu is open */
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: relative;
    justify-content: flex-end;
  }

  /* reset desktop link-centering in the stacked menu */
  .nav-menu > li:first-child { margin-left: 0; }

  /* Dimmed backdrop behind the panel; tap to close */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;              /* below the sticky header (60) → header stays bright */
    background: rgba(0, 15, 45, .5);
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility 0s linear .2s;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .2s ease;
  }

  /* Full-page white takeover, flush under the header — no margins, no rounding */
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;     /* full-width rows, left-aligned (override desktop centering) */
    gap: 0;
    position: fixed;
    top: var(--nav-top, 96px);
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 12px calc(18px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }

  .nav-menu.nav-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav-menu > li {
    list-style: none;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu > li:last-child { border-bottom: none; }

  /* Large, bold, stacked links */
  .nav-link,
  .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 12px;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-ink);
    text-align: left;
  }

  /* Current page rendered in brand blue (the "Home-is-blue" effect) */
  .nav-link.is-current { color: var(--color-primary); }

  .dropdown-toggle .chev {
    width: 22px;
    height: 22px;
    margin-left: 8px;
    flex-shrink: 0;
  }

  /* CTA button — full width, no divider */
  .nav-cta {
    border-bottom: none;
    margin: 16px 0 4px;
    padding: 0 6px;
  }

  .nav-cta .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 16px;
    font-size: 1.05rem;
  }

  /* Leistungen mega: inline, single column, larger on mobile */
  .has-dropdown .mega {
    position: static;
    transform: none;
    width: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 2px 4px 8px;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .mega::before { display: none; }
  .mega-cta { display: none; }
  .mega-item { padding: 12px; }
  .mega-item.is-current .mega-title { color: var(--color-primary); }
  .mega-title { font-size: 1.02rem; }
  .mega-desc { font-size: .85rem; }

  .has-dropdown:hover .mega { display: none; }
  .has-dropdown.open .mega { display: grid; }

  /* Lock body scroll while the menu is open */
  .nav-locked { overflow: hidden; }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* Respect reduced-motion for the mobile menu (no slide, instant fade) */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .nav-menu    { transform: none !important; transition: opacity .12s ease, visibility 0s !important; }
  .nav-toggle span { transition: none !important; }
  .nav-backdrop { transition: opacity .12s ease, visibility 0s !important; }
}

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }

  h1,
  .hero--centered h1 {
    font-size: 1.95rem;
  }

  /* Stacked hero buttons span the content width for easy tapping */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero--centered .hero-actions {
    align-items: stretch;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Card CTA */
.card-cta {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.card-cta:hover {
  color: var(--color-primary-dark);
}

/* Price card feature list */
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.price-card li {
  padding: 0.35em 0;
  padding-left: 1.5em;
  position: relative;
}
/* CTA an den unteren Kartenrand heften, damit alle Buttons auf einer Linie sitzen */
.price-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.price-card li::before {
  content: "✓";
  color: var(--color-primary);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ============================================================
   Agentur-Selbst-Check  (Ratgeber: agentur-ergebnisse-pruefen)
   ============================================================ */
.selfcheck { max-width: 760px; margin: 0 auto; }
.selfcheck-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px; counter-reset: sc;
}
.selfcheck-q {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
}
.selfcheck-text {
  margin: 0 0 14px; font-weight: var(--fw-semibold);
  color: var(--color-ink); counter-increment: sc;
}
.selfcheck-text::before { content: counter(sc) ". "; color: var(--color-primary); }
.selfcheck-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.selfcheck-opt {
  flex: 1 1 auto; min-width: 90px; padding: 10px 14px;
  font: inherit; font-weight: var(--fw-medium); color: var(--color-ink);
  background: var(--color-sky-soft); border: 1.5px solid var(--color-border);
  border-radius: var(--radius); cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.selfcheck-opt:hover { border-color: var(--color-primary-light); }
.selfcheck-opt.is-selected { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.selfcheck-progress { margin: 16px 0 0; text-align: center; font-size: var(--fs-sm); color: var(--color-body); }
.selfcheck-result {
  margin: 24px 0 0; padding: 24px 26px;
  border-radius: var(--radius-lg); border: 1.5px solid var(--color-border);
  background: var(--color-white);
}
.selfcheck-result h3 { margin: 0 0 8px; color: var(--color-ink); }
.selfcheck-result p  { margin: 0 0 14px; }
.selfcheck-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.selfcheck-result.is-green  { border-color: #16a34a; background: #f0fdf4; }
.selfcheck-result.is-yellow { border-color: #d97706; background: #fffbeb; }
.selfcheck-result.is-red    { border-color: #dc2626; background: #fef2f2; }
@media (max-width: 480px) { .selfcheck-opts { flex-direction: column; } }

/* ============================================================
   Consent / Cookie-Banner (CMP) — .cc-*
   ============================================================ */
.cc-root { position: fixed; inset: 0; z-index: 10000; display: none; }
.cc-root.is-open { display: block; }
.cc-backdrop { position: absolute; inset: 0; background: rgba(0,31,77,.55); }
.cc-dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px); overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 32px);
}
.cc-dialog h2 { font-size: 1.4rem; line-height: 1.2; margin: 0 0 .5rem; color: var(--color-ink); }
.cc-intro { font-size: .95rem; color: var(--color-body); margin: 0 0 1.25rem; }
.cc-intro a { color: var(--color-primary); }
.cc-cats { display: grid; gap: .5rem; margin: 0 0 1.25rem; }
.cc-cat { border: 1px solid var(--color-border); border-radius: var(--radius, 12px); padding: .75rem .9rem; }
.cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cc-cat__title { font-weight: 600; color: var(--color-ink); font-size: .95rem; }
.cc-cat__desc { font-size: .84rem; line-height: 1.45; color: var(--color-body); margin: .45rem 0 0; }
.cc-switch { position: relative; width: 42px; height: 24px; flex: 0 0 auto; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch__track { position: absolute; inset: 0; background: #cdd3dc; border-radius: 999px; transition: background .15s; }
.cc-switch__track::after { content:''; position:absolute; top:2px; left:2px; width:20px; height:20px; background:#fff; border-radius:50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.cc-switch input:checked + .cc-switch__track { background: var(--color-primary); }
.cc-switch input:checked + .cc-switch__track::after { transform: translateX(18px); }
.cc-switch input:disabled + .cc-switch__track { background: var(--color-primary); opacity: .45; }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:focus-visible + .cc-switch__track { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cc-actions .cc-btn { flex: 1 1 140px; }
.cc-btn { font: inherit; font-weight: 600; font-size: .95rem; padding: .7rem 1rem; border-radius: var(--radius, 12px); cursor: pointer; border: 1.5px solid var(--color-primary); transition: background .15s, color .15s, border-color .15s; }
.cc-btn--primary { background: var(--color-primary); color: #fff; }
.cc-btn--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.cc-btn--outline { background: #fff; color: var(--color-primary); }
.cc-btn--outline:hover { background: var(--color-sky-soft); }
.cc-links { margin: 1rem 0 0; font-size: .8rem; color: var(--color-body); }
.cc-links a { color: var(--color-primary); }
.footer-cc-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.footer-cc-btn:hover { color: #fff; }
body.cc-locked { overflow: hidden; }
@media (max-width: 480px) { .cc-actions .cc-btn { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .cc-switch__track, .cc-switch__track::after { transition: none; } }

/* 20. Lokale SEO-Landingpages (Südwestfalen)
   ============================================================ */
/* Footer-Block mit allen Orts-Links */
.footer-locations {
  border-top: 1px solid var(--color-border);
  padding-top: 36px;
}
.footer-locations h3 {
  color: var(--color-ink);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: .01em;
  margin: 0 0 16px;
}
.footer-locations-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.footer-locations-list a {
  color: var(--color-body);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color .2s;
}
.footer-locations-list a:hover { color: var(--color-primary); }

/* Regionaler Fließtext im Footer als Fine-Print */
.footer-region { padding: 20px 0 4px; }
.footer-region p {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--color-body);
}

/* Ortsseiten: linksbündiger Section-Head + Intro-Lead */
.section-head--left {
  max-width: 760px;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.prose-lead {
  font-size: var(--fs-lg);
  line-height: 1.75;
  color: var(--color-body);
  max-width: 760px;
  margin: 0;
}

/* Ortsteile als Chips (lokales/GEO-Signal) */
.region-tags-wrap { margin-top: 36px; max-width: 760px; }
.region-tags-title {
  font-weight: var(--fw-semibold);
  color: var(--color-ink);
  margin: 0 0 14px;
}
.region-tags {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.region-tags li {
  background: var(--color-sky-soft);
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
}
.region-tags-note {
  font-size: var(--fs-sm);
  color: var(--color-body);
  margin: 0;
}

/* ============================================================
   14. Globales Scroll-Reveal (dezent)
   Nutzt die eigenständige `translate`-Property → entkoppelt von
   Hover-`transform`. Startzustände .js-gegatet → kein FOUC.
   ============================================================ */
:root {
  --reveal-y:    16px;
  --reveal-dur:  .6s;
  --reveal-ease: cubic-bezier(.2, .7, .3, 1);
}

@keyframes reveal-in {
  from { opacity: 0; translate: 0 var(--reveal-y); }
  to   { opacity: 1; translate: 0 0; }
}

/* Reveal-Items: ab erstem Paint versteckt (nur mit JS)
   NB: Diese :is(...)-Liste steht an 4 Stellen synchron (Hidden-State, .inview,
   .inview-instant, Reduced-Motion) — beim Ergänzen eines Ziels ALLE 4 anpassen. */
.js :is(
  .hero-content > *, .hero-mockup,
  .section-head > *,
  .split-content > *, .split-media,
  .usp, .pain-card, .price-card,
  .site-footer .footer-col
) { opacity: 0; }

/* Enthüllen, sobald Sektion/Footer .inview trägt */
.js .inview :is(
  .hero-content > *, .hero-mockup,
  .section-head > *,
  .split-content > *, .split-media,
  .usp, .pain-card, .price-card,
  .site-footer .footer-col
) { animation: reveal-in var(--reveal-dur) var(--reveal-ease) both; }

/* Oberhalb-der-Falz-Sofort-Reveal (flash-frei auf Seiten ohne .js-<head>-Snippet) */
.js .inview-instant :is(
  .hero-content > *, .hero-mockup,
  .section-head > *,
  .split-content > *, .split-media,
  .usp, .pain-card, .price-card,
  .site-footer .footer-col
) { opacity: 1; animation: none; }

/* Staffelung via animation-delay (gedeckelt) */
.js .inview :is(.hero-content, .section-head, .split-content) > *:nth-child(2)   { animation-delay: .08s; }
.js .inview :is(.hero-content, .section-head, .split-content) > *:nth-child(3)   { animation-delay: .16s; }
.js .inview :is(.hero-content, .section-head, .split-content) > *:nth-child(4)   { animation-delay: .24s; }
.js .inview :is(.hero-content, .section-head, .split-content) > *:nth-child(n+5) { animation-delay: .32s; }

.js .inview :is(.usp, .pain-card, .price-card, .footer-col):nth-child(2)   { animation-delay: .07s; }
.js .inview :is(.usp, .pain-card, .price-card, .footer-col):nth-child(3)   { animation-delay: .14s; }
.js .inview :is(.usp, .pain-card, .price-card, .footer-col):nth-child(4)   { animation-delay: .21s; }
.js .inview :is(.usp, .pain-card, .price-card, .footer-col):nth-child(n+5) { animation-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  .js :is(
    .hero-content > *, .hero-mockup, .section-head > *,
    .split-content > *, .split-media, .usp, .pain-card,
    .price-card, .site-footer .footer-col
  ) { opacity: 1; animation: none !important; }
}

/* ── Mobile-Performance: animierte Grafiken statisch, teure GPU-Effekte aus ──
   Ursache des Mobile-Ruckelns: Animationen, die INNERHALB des großen
   drop-shadow-Filters (0 32px 60px) und der rotateX-3D-Ebene laufen, zwingen
   schwächere Handy-GPUs, die ganze Grafik in JEDEM Frame neu zu rastern.
   Auf kleinen Screens sind diese Effekte kaum sichtbar → wir zeigen die
   Grafiken/Reveals sofort und statisch (wie bei prefers-reduced-motion) und
   lassen die teuren Filter/3D-Ebenen weg. Desktop bleibt voll erhalten. */
@media (max-width: 768px) {
  /* 1) Scroll-Reveal (Sektionen, Grafiken, Karten): sofort sichtbar, ohne Motion */
  .js :is(
    .hero-content > *, .hero-mockup, .section-head > *,
    .split-content > *, .split-media, .usp, .pain-card,
    .price-card, .site-footer .footer-col
  ) { opacity: 1; animation: none !important; }

  /* 2) SEO-Dashboard-Grafik + CTA-Copy: keine Reveal-/Endlos-Animation */
  .js .seo-dash *,
  .js .cta-inner > * { transition: none !important; animation: none !important; }

  /* 3) Timeline: keine Reveal-Animation, sofort im Endzustand */
  .js .timeline .tl-step,
  .js .timeline .tl-node,
  .js .timeline .tl-line-fill,
  .js .timeline .tl-step::before { transition: none !important; }
  .js .timeline:not(.is-revealed) .tl-step { opacity: 1; transform: none; }
  .js .timeline:not(.is-revealed) .tl-node { transform: none; }
  .js .timeline:not(.is-revealed) .tl-line-fill { width: 100%; }

  /* 4) Teure GPU-Ebenen der Mockups weglassen: großer drop-shadow + 3D-Tilt.
        Der dezente interne SVG-Panel-Schatten (#seoSoft) bleibt erhalten. */
  .cta-mockup .seo-dash,
  .cta-mockup img { filter: none !important; transform: none !important; }
  .cta-mockup,
  .hero-mockup { perspective: none !important; }
  .hero-mockup-inner { transform: none !important; }
}

/* ── Paket-Konfigurator ─────────────────────────────────── */
.konfig-block { border: 0; margin: 0 0 2rem; padding: 0; }
.konfig-legend { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 700; color: var(--brand-900); margin-bottom: 1rem; }
.konfig-step { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--brand-600); color: #fff; font-size: .9rem; }
.konfig-optional { font-size: .8rem; font-weight: 500; color: #6b7280; }

.konfig-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.konfig-cards--modules { grid-template-columns: repeat(2, 1fr); }

.konfig-card { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem 1.25rem 1.1rem; background: #fff; border: 2px solid #e5e7eb; border-radius: 16px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.konfig-card:hover { border-color: var(--brand-300); }
.konfig-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.konfig-card:has(input:checked) { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-50); }
.konfig-card:has(input:focus-visible) { outline: 2px solid var(--brand-600); outline-offset: 2px; }

.konfig-card-body { display: flex; flex-direction: column; gap: .25rem; }
.konfig-card-name { font-weight: 700; color: var(--brand-900); font-size: 1.05rem; }
.konfig-card-desc { font-size: .85rem; color: #4b5563; line-height: 1.35; }
.konfig-card-price { margin-top: auto; display: flex; flex-direction: column; }
.konfig-card-price strong { font-size: 1.35rem; color: var(--brand-900); }
.konfig-card-price span { font-size: .78rem; color: #6b7280; }
.konfig-strike { text-decoration: line-through; opacity: .7; }

.konfig-badge { position: absolute; top: -.7rem; left: 1rem; background: var(--brand-600); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.konfig-badge--soft { background: var(--brand-50); color: var(--brand-700); }

.konfig-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 1.5rem; padding: 1.5rem; background: #fff; border: 2px solid var(--brand-600); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,103,255,.08); }
.konfig-summary-figures { display: flex; flex-direction: column; gap: .3rem; }
.konfig-total-label { font-size: .8rem; color: #6b7280; }
.konfig-total-value strong { font-size: 2rem; color: var(--brand-900); }
.konfig-rate { font-size: .9rem; color: #374151; }
.konfig-saving { font-size: .85rem; font-weight: 700; color: #067647; }
.konfig-laufend { font-size: .82rem; color: #6b7280; }
.konfig-cta { white-space: nowrap; }

@media (max-width: 720px) {
  .konfig-cards, .konfig-cards--modules { grid-template-columns: 1fr; }
  .konfig-summary { position: sticky; bottom: 0; z-index: 20; margin-left: -1rem; margin-right: -1rem; border-radius: 16px 16px 0 0; flex-direction: column; align-items: stretch; text-align: center; }
  .konfig-cta { width: 100%; }
}

/* ============================================================
   15. Header-Scroll-Fortschritt — entfernt
   Die fixierte Leiste wurde pro Scroll-Frame neu gezeichnet und war eine
   geräteübergreifende Mobile-Scroll-Ruckel-Quelle (siehe main.js). Bei
   Bedarf compositor-sicher via CSS `animation-timeline: scroll()` neu.
   ============================================================ */

/* ============================================================
   16. Hover-Feinschliff (dezentes Anheben)
   Nutzt `transform` → orthogonal zum `translate`-basierten Reveal.
   ============================================================ */
.usp {
  transition: transform .18s ease, box-shadow .18s ease;
}
.usp:hover {
  transform: translateY(-4px);
}
.usp:hover .usp-ico {
  box-shadow: 0 6px 16px rgba(0, 103, 255, .18);
}

.price-card {
  transition: transform .18s ease, box-shadow .18s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
  .usp:hover, .price-card:hover { transform: none; }
}

/* Touch-Geräte kennen kein echtes „Hover": beim Antippen bliebe der Lift
   sonst hängen, bis man woanders hintippt — das wirkt „buggy". Auf
   (hover: none) den Positions-Lift neutralisieren. Buttons behalten ihr
   Farb-Feedback, Karten fallen auf ihren Ruhe-Schatten zurück. */
@media (hover: none) {
  .btn-primary:hover,
  .btn-outline:hover,
  .btn-light:hover,
  .usp:hover            { transform: none; }
  .card:hover,
  .pain-card:hover,
  .price-card:hover     { transform: none; box-shadow: var(--shadow); }
  .usp:hover .usp-ico   { box-shadow: none; }
}

/* ── Vorgehen: Prozess-Timeline („So gehen wir vor") ─────────
   Saubere vertikale Timeline: Rail (Linie + Nodes) LINKS, Content RECHTS.
   Bewusst OHNE JS-Reveal-Gate — die Sektion ist sehr hoch, ein
   [data-timeline]-Observer (0.35-Threshold) würde auf Desktop nie auslösen
   und die Schritte blieben unsichtbar. Alles ist ab Paint sichtbar. */
.process {
  background-color: #fff;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .50), rgba(255, 255, 255, .74) 45%, rgba(255, 255, 255, .90) 100%),
    url("/assets/img/process-sky.webp");
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center top;
  background-size: cover, cover;
}

.section-sub {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--color-body);
  font-size: 1.05rem;
  line-height: 1.6;
}

.pflow {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  position: relative;
}

.pflow-step {
  position: relative;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 34px;
}
.pflow-step:last-child { padding-bottom: 0; }

/* Progress-Rail: heller Track + blauer Fill, der beim Scrollen wächst.
   top/height setzt main.js anhand erstem/letztem Node; Fallback: volle Höhe.
   Fill wächst über transform: scaleY() → GPU-composited, kein Layout-Thrash
   (bewusst NICHT über height, um Mobile-Scroll-Ruckeln zu vermeiden). */
.pflow-rail {
  position: absolute;
  left: 15px;          /* Mitte des 30px-Node */
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: #dbe7fb;
  border-radius: 3px;
  z-index: 0;
  overflow: hidden;
}
.pflow-rail__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(var(--pflow-p, 0));
  transform-origin: top center;
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary));
  border-radius: 3px;
  will-change: transform;
}

/* Node: standardmäßig in Track-Farbe (#dbe7fb); sobald die Progress-Rail ihn
   erreicht (JS setzt .is-active), wird er blau. Keine weiße Umrandung. */
.pflow-node {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-top: 3px;
  border-radius: 9px;
  background: #dbe7fb;
  transition: background-color .35s ease, box-shadow .35s ease;
}
.pflow-step.is-active .pflow-node {
  background: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 103, 255, .28);
}

/* Content-Reveal: Karte erscheint, sobald die Progressbar den Node erreicht
   (.pflow-step.is-active). Erster Schritt ist immer sichtbar. Nur mit JS
   versteckt (ohne JS = alles sichtbar; kein Flash, da .js synchron gesetzt wird). */
.js .pflow-step:not(:first-of-type) .pflow-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
}
.js .pflow-step.is-active .pflow-card {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .pflow-step:not(:first-of-type) .pflow-card { opacity: 1; transform: none; transition: none; }
}

.pflow-card {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 3px;
}
.pflow-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}
.pflow-card h3 { font-size: 1.2rem; margin: 0 0 8px; color: var(--color-ink); }
.pflow-card p { margin: 0 0 12px; color: var(--color-body); font-size: .97rem; line-height: 1.6; }
.pflow-card > p:last-child { margin-bottom: 0; }

.pflow-logos {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pflow-logos li {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-xs);
}
.pflow-logos img {
  width: 28px;
  height: 28px;
  display: block;
}

.pflow-media { margin: 16px 0 0; }
.pflow-media figcaption { margin-top: 10px; font-size: .8rem; color: var(--color-body); }
.pflow-adwall__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pflow-adwall__grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: block;
}
.pflow-landing img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: block;
}

.pflow-cta {
  max-width: 760px;
  margin: 10px auto 0;
  padding-left: 52px; /* an die Content-Spalte ausrichten (Node 30 + Gap 22) */
}
/* Reveal wie die Schritte: erscheint, sobald man unten ankommt (JS: .is-active) */
.js .pflow-cta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
}
.js .pflow-cta.is-active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .pflow-cta { opacity: 1; transform: none; transition: none; }
}
.pflow-cta__lead {
  font-weight: 700;
  color: var(--color-ink);
  font-size: 1.2rem;
  margin: 0 0 20px;
}
/* Großer, auffälliger Abschluss-Button, der zum Klick anregt */
.pflow-cta .btn {
  font-size: 1.15rem;
  padding: 18px 40px;
  border-radius: 14px;
}

/* Mobile */
@media (max-width: 640px) {
  .pflow-step { gap: 16px; padding-bottom: 28px; }
  .pflow-rail { left: 14px; }
  .pflow-node { width: 28px; height: 28px; border-radius: 8px; }
  .pflow-step.is-active .pflow-node { box-shadow: 0 4px 10px rgba(0, 103, 255, .28); }
  .pflow-adwall__grid { grid-template-columns: repeat(2, 1fr); }
  .pflow-cta { padding-left: 0; text-align: center; }
  .pflow-cta .btn { width: 100%; justify-content: center; padding: 18px 24px; }
}
