/* ==========================================================================
   SEOTHON – Brand Stylesheet
   Palette:  Cyan #27a1e8 · Charcoal #323740 · Lime #84CC16 · Teal #0891B2
   Type:     Clash Display (Display) · IBM Plex Sans (Body) · IBM Plex Mono (Daten)
   Konzept:  Die Seite ist die Marathonstrecke – Scroll-Progress als Distanz,
             Sections als Kilometermarken, Ziel = Kontakt (KM 42).
   ========================================================================== */

/* ---------- Fonts (selbst gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/clash-display-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/clash-display-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --cyan:       #27a1e8;
  --cyan-deep:  #1a7ab8;
  --cyan-soft:  rgba(39, 161, 232, 0.14);
  --lime:       #84CC16;
  --teal:       #0891B2;
  --charcoal:   #323740;
  --red:        #DC2626;

  --dark:       #0F172A;
  --dark-2:     #131E36;
  --dark-line:  rgba(232, 238, 246, 0.12);
  --ink:        #E8EEF6;
  --ink-dim:    #96A3B8;

  --paper:      #F9FAFB;
  --paper-2:    #EEF1F5;
  --paper-line: rgba(50, 55, 64, 0.14);
  --text:       #323740;
  --text-dim:   #5B6573;

  --display: 'Clash Display', 'Segoe UI', system-ui, sans-serif;
  --body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

  --wrap: 1160px;
  --radius: 10px;
  --sec-pad: clamp(4.5rem, 10vw, 8rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Gemeinsam genutzte Standard-Design-Tokens (2026-07-24 zusammengefasst,
     damit interaktive Standardelemente EINE Definition teilen statt sie zu
     duplizieren). Werte 1:1 wie bisher - rein additiv, keine Optik-Aenderung. */
  --lift-transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);  /* Karten/Buttons mit Hover-Anheben */
  --dark-panel: rgba(19, 30, 54, 0.72);   /* dunkle "Frosted-Glass"-Flaeche (Steps/Formulare/Nodes) */
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
/* Bewusst KEIN globales scroll-behavior:smooth – das würde auch die initiale
   Sprungnavigation (z.B. /#faq von einer anderen Seite) sichtbar "durchscrollen"
   statt direkt springen zu lassen. In-Page-Klicks scrollen stattdessen gezielt
   per JS smooth (siehe main.js), Cross-Page-Hashes springen instant. */
body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--dark);
  overflow-x: hidden;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--cyan); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--cyan); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.25rem); letter-spacing: 0.002em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); letter-spacing: 0.002em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem);  letter-spacing: 0.005em; font-weight: 600; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  max-width: 38em;
}

/* KM-Marker (Eyebrow) – Marathon-Metapher */
.km {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--body); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.km::before {
  content: ''; width: 7px; height: 7px;
  background: var(--lime); border-radius: 50%;
  flex: none;
}
.sec-light .km { color: var(--cyan-deep); }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

section { padding-block: var(--sec-pad); position: relative; }
.sec-dark  { background: var(--dark); color: var(--ink); }
.sec-light { background: var(--paper); color: var(--text); }
.sec-light-2 { background: var(--paper-2); color: var(--text); }
.sec-head { max-width: 44em; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head p { margin-top: 1rem; color: var(--ink-dim); }
.sec-light .sec-head p, .sec-light-2 .sec-head p { color: var(--text-dim); }

/* ---------- Scroll-Progress (Distanzlinie) ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: transparent; pointer-events: none;
}
.progress__bar {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav--solid {
  background: rgba(15, 23, 42, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--dark-line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.9rem;
}
.logo {
  font-family: var(--display); font-weight: 700;
  font-size: 1.35rem; letter-spacing: 0.015em;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center;
  position: relative; z-index: 110;
}
.logo:hover { text-decoration: none; }
.logo img { display: block; width: 8.3rem; height: auto; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav__links a {
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
  text-decoration: none;
}
.nav__links a:hover { color: var(--cyan); }
.nav__toggle {
  display: none; background: none; border: 0; color: var(--ink);
  width: 44px; height: 44px; position: relative; z-index: 110;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ''; display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px; margin-inline: auto;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  position: relative;
}
.nav__toggle span::before { position: absolute; top: -7px; left: 0; }
.nav__toggle span::after  { position: absolute; top: 7px;  left: 0; }
.nav__toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::before { transform: rotate(-90deg) translateX(-7px); }
.nav__toggle[aria-expanded="true"] span::after  { opacity: 0; }

body.nav-open { overflow: hidden; }

@media (max-width: 1020px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; justify-content: center; gap: 2.2rem;
    background: rgba(15, 23, 42, 0.97);
    min-height: 100vh; min-height: 100dvh;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
  }
  .nav__links.open { opacity: 1; visibility: visible; }
  .nav__links a { font-size: 1.4rem; font-family: var(--display); font-weight: 600; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 0.95rem 1.7rem; border-radius: var(--radius);
  border: 1px solid transparent; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.65; cursor: wait; transform: none; }
.btn--primary {
  background: var(--cyan); color: #fff !important;
  box-shadow: 0 6px 18px rgba(39, 161, 232, 0.22);
}
.btn--primary:hover { background: var(--cyan-deep); color: #fff !important; box-shadow: 0 10px 26px rgba(39, 161, 232, 0.30); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: rgba(232, 238, 246, 0.35);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.sec-light .btn--ghost, .sec-light-2 .btn--ghost { color: var(--charcoal); border-color: var(--paper-line); }
.sec-light .btn--ghost:hover { color: var(--cyan-deep); border-color: var(--cyan-deep); }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Gründer-Karten (kompaktes Zwei-Personen-Trust-Element,
   ersetzt seit 2026-07-26 den fruehen Einzelperson-Trust-Banner) ---------- */
.trust-checklist { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: 0.6rem; }
.trust-checklist li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.96rem; color: var(--ink); }
@media (max-width: 760px) { .trust-checklist li { justify-content: center; } }
.trust-checklist svg { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; stroke: var(--cyan); }

.founders {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem; margin-top: 0.4rem;
}
@media (max-width: 720px) { .founders { grid-template-columns: 1fr; } }
.founder-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.4rem; background: var(--paper-2);
  border: 1px solid var(--paper-line); border-radius: var(--radius);
}
.founder-card__photo {
  /* 96px statt 72px (Chef-Auftrag 2026-07-26: "Bilder etwas groesser").
     Die Assets liegen mit 800px vor, also auch auf HiDPI-Displays scharf. */
  flex: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--cyan); background: linear-gradient(155deg, #d9dee6, #ffffff);
}
.founder-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.founder-card__photo--pending {
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.4rem;
  color: var(--cyan-deep); background: var(--cyan-soft);
}
.founder-card__body { min-width: 0; }
.founder-card__name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--charcoal); margin: 0; }
.founder-card__role { font-size: 0.82rem; color: var(--text-dim); margin: 0.1rem 0 0.7rem; }
.founder-card__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.founder-card__facts li {
  font-size: 0.86rem; line-height: 1.42; color: var(--text-dim);
  padding-left: 1rem; position: relative;
}
.founder-card__facts li::before {
  content: ''; position: absolute; left: 0; top: 0.5em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
}
.founders-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 1.8rem; }
@media (max-width: 500px) {
  .founder-card { flex-direction: column; align-items: center; text-align: center; }
  .founder-card__facts { text-align: left; }
}

/* ---------- Login & Konto ---------- */
.account-shell { min-height: calc(100vh - 80px); padding: 9rem 0 5rem; }
.account-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.account-copy h1 { margin: .65rem 0 1rem; color: #fff; }
.account-copy p { max-width: 52ch; color: var(--ink-dim); }
.account-card { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--dark-line); border-radius: var(--radius); background: rgba(255,255,255,.06); box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.account-card h2 { margin-bottom: .5rem; color: #fff; }
.account-card > p { color: var(--ink-dim); }
.account-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.account-form label { display: grid; gap: .45rem; color: var(--ink); font-size: .9rem; }
.account-form input { width: 100%; padding: .9rem 1rem; color: #fff; border: 1px solid var(--dark-line); border-radius: 8px; background: rgba(15,23,42,.72); font: inherit; }
.account-form select {
  width: 100%; padding: .9rem 2.6rem .9rem 1rem; color: #fff; border: 1px solid var(--dark-line); border-radius: 8px;
  background: rgba(15,23,42,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2396A3B8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1rem center;
  font: inherit; appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .25s;
}
.account-form select:hover { border-color: rgba(232,238,246,.28); }
.account-form input:focus, .account-form select:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }
.account-form select option { color: #000; background: #fff; }
.account-note { margin-top: 1rem; font-size: .82rem; line-height: 1.55; }
.account-note--info { margin-top: 0; margin-bottom: 1.25rem; padding: .75rem 1rem; border-left: 3px solid var(--cyan); border-radius: 4px; background: rgba(39,161,232,.1); color: var(--ink); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.account-panel { padding: 1.25rem; border: 1px solid var(--dark-line); border-radius: 10px; background: rgba(15,23,42,.52); }
.account-panel h3 { margin-bottom: .5rem; color: #fff; }
.account-panel p { color: var(--ink-dim); font-size: .9rem; }
.account-status { display: inline-flex; margin-top: .75rem; padding: .3rem .6rem; border-radius: 999px; color: #132318; background: var(--lime); font: 600 .72rem/1 var(--mono); }
.account-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
@media (max-width: 800px) { .account-layout, .account-grid { grid-template-columns: 1fr; } .account-shell { padding-top: 7rem; } }

/* ---------- Hero (Scroll-Scrub) ---------- */
/* 420vh = 220vh Scrub-Strecke (Frames + Wegpunkte, unveraendert) + 100vh
   Zuschlag, der allein der Abschluss-Botschaft .hero__layer--b gehoert.
   Gegenstueck: SCRUB_END in main.js::initHeroScrubber (Chef 2026-07-25). */
.hero { height: 420vh; padding: 0; }
.hero__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  /* Reserviert unten Platz fuer den Scrollhint, damit lange Headline/CTA-Bloecke
     bei kurzen Viewports (Tablet-/Laptop-Querformat) nicht damit kollidieren. */
  padding-bottom: clamp(3.5rem, 10vh, 5.5rem);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.40) 0%, rgba(15,23,42,0.16) 38%, rgba(15,23,42,0.30) 62%, rgba(15,23,42,0.78) 100%),
    radial-gradient(90% 70% at 50% 45%, transparent 34%, rgba(15,23,42,0.30) 100%);
}
.hero__layer {
  position: relative; z-index: 2; text-align: center;
  width: 100%; padding-inline: 1.5rem; max-width: 62rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}
.hero__layer--b {
  position: absolute; inset: 0; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center;
  opacity: 0; pointer-events: none;
  padding-inline: 1.5rem;
}
.hero__layer--b p {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  letter-spacing: 0.002em; line-height: 1.15;
  text-wrap: balance; width: 100%; max-width: 20em;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.hero__layer--b strong { color: var(--lime); font-weight: 700; }
.hero h1 .accent { color: var(--cyan); display: block; }
.hero .lead { margin: 1.4rem auto 2.2rem; color: rgba(232, 238, 246, 0.88); }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
/* Der Ghost-Button braucht auf dem Fotohintergrund einen eigenen Halt,
   sonst verschwindet die dünne 35%-Border je nach Bildstelle fast unsichtbar. */
.hero__cta .btn--ghost {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(232, 238, 246, 0.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero__cta .btn--ghost:hover { background: rgba(15, 23, 42, 0.58); border-color: var(--cyan); color: var(--cyan); }
/* .hero__cta wird auch fuer reines Flex/Gap-Layout in Blogartikeln auf hellem
   Hintergrund wiederverwendet (kein Foto-Hero) - der dunkle, geblurrte
   Hintergrund oben ist dort fehl am Platz und macht den Hover-Text kaum
   lesbar (Chef-Fund 2026-07-26, blog-geo-ki-suchassistenten.php). Auf
   hellen Sections deshalb zurueck auf transparent. */
.sec-light .hero__cta .btn--ghost,
.sec-light-2 .hero__cta .btn--ghost {
  background: transparent; border-color: var(--paper-line);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.sec-light .hero__cta .btn--ghost:hover,
.sec-light-2 .hero__cta .btn--ghost:hover { background: transparent; }
.hero__km { justify-content: center; display: flex; }

/* Info-Wegpunkte: erscheinen seitlich waehrend des Scrollens, unabhaengig von Headline/Finale */
.hero__way {
  position: absolute; top: 50%; z-index: 3;
  width: min(21rem, 42vw);
  padding: 1.3rem 1.4rem;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(232, 238, 246, 0.18);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transform: translateY(-50%) translateX(0);
}
.hero__way--left  { left: clamp(1rem, 5vw, 4rem); transform: translateY(-50%) translateX(-14px); }
.hero__way--right { right: clamp(1rem, 5vw, 4rem); transform: translateY(-50%) translateX(14px); }
.hero__way.is-in   { transform: translateY(-50%) translateX(0); }
.hero__way .km { margin-bottom: 0.5rem; }
.hero__way-title { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--ink); }
.hero__way p { font-size: 0.9rem; color: var(--ink-dim); line-height: 1.55; margin: 0; }
@media (max-width: 760px) {
  /* Eine Regel statt zwei gegen Kaskaden-Mehrdeutigkeit: erzwingt zuverlässig
     volle Breite minus Rand, unabhängig von --left/--right-Varianten. */
  .hero__way { left: 1rem; right: 1rem; width: auto; }
  /* Während der kurzen Überblendung sind beide Karten sichtbar. Getrennte
     Höhen verhindern, dass ihre Texte in schmalen Viewports kollidieren. */
  .hero__way--left { top: 42%; }
  .hero__way--right { top: 62%; }
}

.hero__scrollhint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim);
}
.hero__scrollhint::after {
  content: ''; width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: hint 1.8s var(--ease) infinite;
}
@keyframes hint {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Auf schmalen Viewports gibt es kein Scroll-Scrubbing: Standbild statt
   320vh-Scrollstrecke, siehe isMobile-Weiche in initHeroScrubber() (main.js).
   Der "Scrollen"-Hinweis entfällt dort ebenfalls, da nichts mehr freigescrollt wird. */
@media (max-width: 760px) {
  .hero { height: auto; }
  /* Fixer Header (.nav, position:fixed) ueberlagert sonst die zentrierte
     H1 auf schmalen Viewports, wenn der Titel auf 3-4 Zeilen umbricht -
     Top-Padding haelt den Inhalt zuverlaessig darunter (2026-07-23).
     min-height statt height + overflow:visible statt dem geerbten hidden
     (Basisregel oben): bei langen Headlines plus zwei CTA-Buttons reichte
     100svh nicht, .hero__stage ist eine zentrierte Grid-Box, also wurde
     der zweite Button unten UND ein Teil der Headline oben abgeschnitten
     statt dass die Box mitgewachsen ist (Screenshot Chef, 2026-07-26). */
  .hero__stage {
    position: relative; height: auto; min-height: 100vh; min-height: 100svh;
    overflow: visible; padding-top: 5.5rem; padding-bottom: 3rem;
  }
  .hero__scrollhint { display: none; }
}

/* Kurze Viewports (Tablet-/Laptop-Querformat, gezoomte Fenster): dieselbe
   Kollisionsgefahr wie auf schmalen Mobilgeraeten, deshalb hier ebenfalls
   ausblenden statt nur ueber die Breite zu entscheiden. */
@media (max-height: 640px) and (min-width: 761px) {
  .hero__scrollhint { display: none; }
}

/* ---------- Proof-Block direkt unter dem Hero (index.php) ---------- */
.home-proof {
  display: grid; gap: 1.2rem; align-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--dark-line); border-radius: 14px;
  background: rgba(19, 30, 54, 0.55);
}
.home-proof p { margin: 0; color: var(--ink-dim); font-size: 0.9rem; line-height: 1.65; }
@media (min-width: 860px) { .home-proof { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- Ticker / Metrik-Leiste ---------- */
.ticker {
  padding-block: 1.2rem;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  background: var(--dark-2);
}
.ticker ul {
  list-style: none; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 1rem 3rem;
  font-family: var(--body); font-weight: 500; font-size: 0.86rem;
  letter-spacing: 0.01em; color: var(--ink-dim);
}
.ticker li { display: flex; align-items: center; gap: 0.55rem; white-space: nowrap; }
.ticker li::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime); flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
.ticker li:nth-child(2)::before { animation-delay: 0.6s; }
.ticker li:nth-child(3)::before { animation-delay: 1.2s; }
.ticker li:nth-child(4)::before { animation-delay: 1.8s; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (max-width: 560px) {
  .ticker ul { display: grid; justify-content: stretch; gap: 0.75rem; }
  .ticker li { white-space: normal; justify-content: flex-start; }
}

/* ---------- Säulen (Value Props) ---------- */
.pillars {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pillar {
  background: #fff; border: 1px solid var(--paper-line);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 18px 40px rgba(50, 55, 64, 0.10);
}
.pillar { color: var(--text); }
.pillar h3 { color: var(--charcoal); }
.pillar__icon {
  width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--cyan-soft); color: var(--cyan-deep);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 { margin-bottom: 0.5rem; }
.pillar p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Video-Sections (Autoplay-Hintergrund) ---------- */
.vsec { overflow: hidden; }
.vsec__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%; opacity: 0.42;
}
.vsec__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--dark) 0%, rgba(15,23,42,0.35) 25%, rgba(15,23,42,0.35) 75%, var(--dark) 100%);
}
.vsec .wrap { position: relative; z-index: 2; }
/* Die Sektion ist auf Mobil viel schmaler als hoch (gestapelte Schritt-Karten),
   während das Loop-Video quer (16:9) ist. "Cover" schneidet dann so stark
   horizontal zu, dass der mittig-links im Bild laufende Läufer aus dem
   sichtbaren Fenster fällt. Object-Position holt ihn zurück in die Mitte. */
@media (max-width: 760px) {
  .vsec__bg { object-position: 40% 42%; }
}

/* ---------- Ablauf (4 Schritte) ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem;
  align-items: start;
  background: var(--dark-panel);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius); padding: 1.6rem 1.7rem;
  transition: border-color 0.3s;
}
.step:hover { border-color: rgba(39, 161, 232, 0.55); }
.step__num {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em;
  color: var(--lime); border: 1px solid rgba(132, 204, 22, 0.4);
  border-radius: 999px; padding: 0.35rem 0.75rem; margin-top: 0.2rem;
  white-space: nowrap;
}
.step > div { min-width: 0; }
/* Demo-Ablauf (beratung.php): einzelne Zahl-"Kreise" vertikal mittig zum
   Textblock statt oben buendig (Chef 2026-07-24). */
.steps--centered .step { align-items: center; }
.steps--centered .step__num { margin-top: 0; }
/* Workflow-Schritte (agenturen.php): Label (z.B. "1 · Einrichten") bleibt
   LINKS neben dem Text, aber die erste Spalte hat eine FESTE Breite - so
   starten alle Texte an derselben Linie, unabhaengig davon, wie breit das
   jeweilige Label ist (Chef 2026-07-24). Das Label huggt dabei seinen Inhalt
   (justify-self:start), nur der Textanfang ist einheitlich. Nur ab Tablet
   aufwaerts; das 640px-Stack-Layout unten bleibt fuer Mobil unveraendert. */
@media (min-width: 641px) {
  .steps--labeled .step { grid-template-columns: 10rem 1fr; }
  .steps--labeled .step__num { justify-self: start; }
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--ink-dim); font-size: 0.97rem; max-width: 56em; }
.step p strong { color: var(--ink); font-weight: 600; }
.step h3, .step p { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1.25rem;
  }
  .step__num {
    justify-self: start;
    margin-top: 0;
  }
}

/* ---------- Features ---------- */
.features {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.feature {
  position: relative;
  background: #fff; border: 1px solid var(--paper-line);
  border-radius: var(--radius); padding: 1.7rem 1.6rem;
  overflow: hidden;
  transition: var(--lift-transition);
}
.feature::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
  opacity: 0; transition: opacity 0.3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(50, 55, 64, 0.10); }
.feature:hover::before { opacity: 1; }
.feature { color: var(--text); }
.feature h3 { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.6rem; color: var(--charcoal); }
.feature h3 svg { width: 22px; height: 22px; color: var(--teal); flex: none; }
.feature p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Agenturen ---------- */
.agency-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.agency-checks {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.6rem;
}
.agency-checks li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--ink-dim);
}
.agency-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.63em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--lime);
}
.agency-panel {
  padding: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--ink);
  border: 1px solid rgba(79, 190, 255, 0.5);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #193a5b 0%, #131e36 58%, #0f172a 100%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}
.agency-panel .km { margin-bottom: 0.8rem; color: #69c9ff; }
.agency-panel h3 { margin-bottom: 0.8rem; color: #fff; }
.agency-panel p { color: #d5deea; }
.agency-attribution {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.case-study {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(50, 55, 64, 0.08);
}
.case-study__intro {
  padding: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--ink);
  background: linear-gradient(155deg, #13223a, #0f172a);
}
.case-study__intro p { color: var(--ink-dim); margin-top: 0.9rem; }
.case-study__body { padding: clamp(1.6rem, 4vw, 2.5rem); }
.case-study__body h3 { color: var(--charcoal); margin-bottom: 0.7rem; }
.case-study__body > p { color: var(--text-dim); }
.rule-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-block: 1.4rem;
}
.rule-list li {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--cyan);
  background: var(--cyan-soft);
  color: var(--text);
}
.scope-note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d9c995;
  border-radius: var(--radius);
  background: #fff9e7;
  color: #5b5133;
  font-size: 0.9rem;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .agency-split, .case-study { grid-template-columns: 1fr; }
}

/* ---------- Zahlen / Ergebnisse ---------- */
.stats {
  display: grid; gap: 2.5rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
}
.stat__value {
  font-family: var(--mono); font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.stat__value .unit { font-size: 0.45em; color: var(--ink-dim); margin-left: 0.2em; }
.stat__label { margin-top: 0.5rem; color: var(--ink-dim); font-size: 0.92rem; }

/* ---------- Preise ---------- */
.plans {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  align-items: stretch;
}
.plan {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--paper-line);
  border-radius: var(--radius); padding: 2rem 1.8rem;
  position: relative; color: var(--text);
  transition: var(--lift-transition);
}
.plan h3 { color: var(--charcoal); }
.plan .btn--ghost { color: var(--charcoal); border-color: var(--paper-line); }
.plan .btn--ghost:hover { color: var(--cyan-deep); border-color: var(--cyan-deep); }
.plan:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(50, 55, 64, 0.10); }
.plan--hot { border: 2px solid var(--cyan); box-shadow: 0 12px 44px rgba(39, 161, 232, 0.18); }
.plan__badge {
  position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: #fff;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.35rem 0.9rem; border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { margin-bottom: 0.3rem; }
.plan__tag { color: var(--text-dim); font-size: 0.9rem; min-height: 2.6em; }
.plan__price {
  font-family: var(--display); font-weight: 700;
  font-size: 2.6rem; letter-spacing: 0.002em; line-height: 1;
  margin: 1.2rem 0 0.2rem; color: var(--charcoal);
}
.plan__price .per { font-family: var(--body); font-weight: 400; font-size: 0.95rem; color: var(--text-dim); letter-spacing: 0; }
.plan__note { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 1.3rem; }
.plan ul { list-style: none; display: grid; gap: 0.65rem; margin-bottom: 1.8rem; }
.plan li { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.95rem; }
.plan li::before {
  content: '✓'; color: var(--lime); font-weight: 700; flex: none;
  transform: translateY(-1px);
}
.plan li.off { color: var(--text-dim); }
.plan li.off::before { content: '✗'; color: var(--paper-line); }
.plan .btn { margin-top: auto; }
.plans-foot { text-align: center; margin-top: 2rem; color: var(--text-dim); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; margin-inline: auto; display: grid; gap: 0.8rem; }
.faq details {
  background: #fff; border: 1px solid var(--paper-line);
  border-radius: var(--radius); overflow: hidden; color: var(--text);
  transition: border-color 0.3s;
}
.faq details[open] { border-color: var(--cyan); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-weight: 600; font-size: 1.02rem; color: var(--charcoal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--mono); font-size: 1.3rem;
  color: var(--cyan-deep); transition: transform 0.3s var(--ease); flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 1.4rem 1.3rem; color: var(--text-dim); max-width: 60em; }
.faq .faq__a a { color: var(--cyan-deep); font-weight: 500; }

/* ---------- Kontakt / Ziel ---------- */
.contact-grid {
  display: grid; gap: 3rem;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.2fr);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-side p { color: var(--ink-dim); margin-top: 1rem; max-width: 34em; }
/* Kontakt-Sektion ist seit 2026-07-26 hell (.sec-light) statt dunkel, fuer
   den strikten Hell/Dunkel-Rhythmus (Chef-Auftrag) - .contact-side p war
   mit --ink-dim fest auf einen dunklen Hintergrund ausgelegt und waere auf
   hellem Grund kaum lesbar gewesen. Das .form-Panel selbst bleibt bewusst
   dunkel (Frosted-Glass-Karte auf hellem Grund, gleiches Muster wie
   .roi__result auf tools.php), braucht deshalb keine Anpassung. */
.sec-light .contact-side p { color: var(--text-dim); }
.contact-side .mail {
  display: inline-block; margin-top: 1.5rem;
  font-family: var(--body); font-weight: 500; font-size: 0.98rem; color: var(--cyan);
}
.contact-side .mail:hover { text-decoration: underline; }

.form {
  background: var(--dark-panel);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius); padding: 2rem;
  display: grid; gap: 1.1rem;
}
.form__row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--ink-dim); }
.field label .req { color: var(--lime); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink);
  width: 100%; min-width: 0;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--dark-line); border-radius: 8px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--cyan);
}
.field input.touched:invalid, .field textarea.touched:invalid, .field select.touched:invalid { border-color: var(--red); }
.field input.touched:valid:not(:placeholder-shown) { border-color: rgba(132, 204, 22, 0.6); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.85rem; color: var(--ink-dim); }
.check input { margin-top: 0.25rem; accent-color: var(--cyan); width: 1.05rem; height: 1.05rem; flex: none; }
.check a { color: var(--ink); text-decoration: underline; }
.form__hint { font-size: 0.78rem; color: var(--ink-dim); }
.form__hint.is-success { color: var(--lime); }
.form__hint.is-error { color: #FCA5A5; }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

@media (max-width: 480px) {
  .hero__cta { align-items: center; }
  .hero__cta .btn { width: min(100%, 300px); }
}

/* ---------- Footer ---------- */
.footer {
  background: #0B1120; border-top: 1px solid var(--dark-line);
  padding-block: 3.5rem 2rem; color: var(--ink-dim); font-size: 0.92rem;
}
.footer__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 2.8rem;
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; } }
.footer .logo { margin-bottom: 0.8rem; display: inline-flex; }
.footer p { max-width: 30em; }
.footer-label {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 1rem; font-weight: 400;
}
.footer ul { list-style: none; display: grid; gap: 0.55rem; }
.footer a { color: var(--ink-dim); }
.footer a:hover { color: var(--cyan); }
.footer__base {
  border-top: 1px solid var(--dark-line); padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em;
}

/* ---------- Sub-Hero (Innenseiten) ---------- */
.subhero { padding-top: clamp(7rem, 14vw, 10rem); text-align: center; }
.subhero .lead { max-width: 42em; margin: 1.4rem auto 0; }
.subhero .km { justify-content: center; display: flex; }

/* Subhero mit Hintergrundfoto (Agenturen/Blog/Tools, 2026-07-23): Foto liegt
   als ::before-Pseudo-Element hinter dem Text (kein <img>-Element im Markup),
   zentriert/cover/nicht wiederholt, bei opacity 0.2 gegen den dunklen
   sec-dark-Ton dahinter. Die konkrete Bild-URL kommt je Seite ueber die
   CSS-Variable --subhero-img (siehe agenturen.php/blog.php/tools.php). */
.subhero--media { position: relative; overflow: hidden; padding-bottom: clamp(3.5rem, 8vw, 5rem); }
.subhero--media::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--subhero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
}
.subhero--media > .wrap { position: relative; z-index: 1; }
.agency-hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.9rem 1rem; margin-top: 2rem;
}
.agency-hero__note {
  max-width: 42rem; margin: 1rem auto 0; color: var(--ink-dim);
  font-size: 0.9rem;
}
.agency-partner-grid { align-items: start; }
.agency-checks--compact { margin-top: 1.5rem; }
.agency-partner-note {
  margin-top: 1.5rem; padding-top: 1.2rem;
  border-top: 1px solid var(--dark-line); font-size: 0.9rem;
}
.agency-partner-note a { color: var(--cyan); }
.form__title { color: var(--ink); font-size: 1.25rem; margin-bottom: -0.55rem; }
.form__intro { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 0.2rem; }
@media (max-width: 640px) {
  .agency-hero__actions { flex-direction: column; align-items: center; gap: 1rem; }
  .agency-hero__actions .btn { width: min(100%, 24rem); }
}

/* ---------- Org-Chart (Analyse-Team) ---------- */
.orgchart { display: grid; gap: 1rem; justify-items: center; }
.org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; width: 100%; }
.org-node {
  background: var(--dark-panel);
  border: 1px solid var(--dark-line); border-radius: var(--radius);
  padding: 1.1rem 1.4rem; text-align: center; min-width: 180px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.org-node:hover { border-color: var(--cyan); transform: translateY(-3px); }
.org-node strong { display: block; font-family: var(--display); font-size: 1.02rem; margin-bottom: 0.3rem; color: var(--ink); }
.org-node span { font-size: 0.85rem; color: var(--ink-dim); }
.org-node--accent { border-color: rgba(39, 161, 232, 0.5); background: rgba(39, 161, 232, 0.08); }
.org-connector { width: 1px; height: 28px; background: linear-gradient(180deg, var(--cyan), transparent); }
.org-branch { position: relative; width: 100%; display: flex; justify-content: center; }
.org-branch::before {
  content: ''; position: absolute; top: -28px; left: 50%; width: 70%; height: 1px;
  background: var(--dark-line); transform: translateX(-50%);
}

/* ---------- Timeline (Rhythmus) ---------- */
.timeline { display: grid; gap: 1rem; }
.tl-item {
  display: grid; grid-template-columns: 100px 1fr; gap: 1.4rem;
  align-items: baseline; padding-block: 1rem;
  border-bottom: 1px solid var(--paper-line);
}
.tl-item:last-child { border-bottom: none; }
.tl-when {
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em;
  color: var(--cyan-deep); text-transform: uppercase;
}
.tl-item h3 { margin-bottom: 0.25rem; font-size: 1.08rem; }
.tl-item p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- Status-Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.28rem 0.65rem; border-radius: 999px;
  border: 1px solid currentColor;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--wait   { color: #D97706; }
.chip--queue  { color: var(--cyan-deep); }
.chip--active { color: #7C3AED; }
.chip--done   { color: #16A34A; }
.chip--fail   { color: var(--red); }

/* ---------- Reveal-Animationen ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.blog-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--paper-line);
  border-radius: var(--radius); overflow: hidden; color: var(--text);
  transition: var(--lift-transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(50, 55, 64, 0.10); }
.blog-card__media {
  aspect-ratio: 16/9; background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.blog-card__media svg { width: 34%; height: 34%; color: var(--cyan); opacity: 0.85; }
.blog-card__cat {
  position: absolute; top: 0.8rem; left: 0.8rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: rgba(39, 161, 232, 0.9); padding: 0.3rem 0.65rem; border-radius: 999px;
}
.blog-card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.blog-card__meta { font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim); letter-spacing: 0.04em; }
.blog-card h3 { font-size: 1.15rem; color: var(--charcoal); }
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h3 a:hover { color: var(--cyan-deep); }
.blog-card p { font-size: 0.92rem; color: var(--text-dim); flex: 1; }
.blog-card__more { font-size: 0.88rem; font-weight: 600; color: var(--cyan-deep); }

.blog-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.2rem; }
.blog-filter button {
  border: 1px solid var(--paper-line); background: #fff; color: var(--text-dim);
  font: inherit; font-size: 0.85rem; font-weight: 600; padding: 0.5rem 1rem;
  border-radius: 999px; cursor: pointer; transition: all 0.2s;
}
.blog-filter button.active, .blog-filter button:hover { border-color: var(--cyan); color: var(--cyan-deep); background: var(--cyan-soft); }
.journal-paths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.journal-path { display: block; text-decoration: none; }
.journal-path .km { margin-bottom: 0.8rem; }
.journal-path .blog-card__more { display: inline-block; margin-top: 1rem; }
@media (max-width: 820px) { .journal-paths { grid-template-columns: 1fr; } }

/* Artikel-Seite */
.article-hero { padding-top: clamp(7rem, 13vw, 9.5rem); padding-bottom: 2.5rem; }
.breadcrumb { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-dim); margin-bottom: 1.3rem; }
.breadcrumb a { color: var(--ink-dim); }
.breadcrumb a:hover { color: var(--cyan); }
.article-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.2rem; font-size: 0.88rem; color: var(--ink-dim); }
.article-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* Eigene, schmalere Lesespalte statt der vollen Layout-Breite (--wrap):
   1160px Zeilenlaenge ist fuer Fliesstext schwer lesbar, ~46rem entspricht
   dem uebrigen Blog-Standard von ca. 70-75 Zeichen pro Zeile. */
.article-body { width: min(46rem, 100% - 2.5rem); margin-inline: auto; padding-block: clamp(2rem, 5vw, 3.5rem); }
.article-body h2 { font-size: 1.6rem; margin: 2.4rem 0 0.9rem; color: var(--charcoal); }
.article-body h3 { font-size: 1.2rem; margin: 1.8rem 0 0.6rem; color: var(--charcoal); }
.article-body p { color: var(--text-dim); margin-bottom: 1.1rem; font-size: 1.02rem; }
.article-body ul, .article-body ol { color: var(--text-dim); margin: 0 0 1.1rem 1.3rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body a { color: var(--cyan-deep); font-weight: 500; }
.article-body .btn--ghost { color: var(--charcoal); border-color: var(--paper-line); }
.article-body .btn--ghost:hover { color: var(--cyan-deep); border-color: var(--cyan-deep); }
.article-body strong { color: var(--charcoal); }
.article-callout {
  background: var(--cyan-soft); border: 1px solid rgba(39,161,232,0.25);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 2rem 0;
}
.article-callout p { margin: 0; color: var(--text); }
.article-callout p + p { margin-top: 0.6rem; }
.article-quick {
  background: var(--paper-2); border-left: 3px solid var(--lime);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.2rem 1.4rem; margin-bottom: 2rem;
}
.article-quick p { margin: 0; color: var(--text); font-weight: 500; }

/* Premium-Wissensmodule: Praxis, Entscheidung und Quellen */
.article-lab {
  margin: 2.4rem 0;
  padding: clamp(1.35rem, 4vw, 2rem);
  background: linear-gradient(145deg, #111C33, #17243F);
  border: 1px solid rgba(39, 161, 232, 0.32);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}
.article-lab .km { margin-bottom: 0.75rem; }
.article-lab h2,
.article-lab h3 { color: var(--ink); margin-top: 0; }
.article-lab h2 { font-size: clamp(1.35rem, 4vw, 1.65rem); }
.article-lab h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.article-lab p,
.article-lab li { color: var(--ink-dim); }
.article-lab strong { color: var(--ink); }
.article-lab a { color: #62C7FF; }
.article-lab__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.article-lab__card {
  padding: 1rem;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--dark-line);
  border-radius: 10px;
}
.article-lab__card p:last-child,
.article-lab__card ul:last-child { margin-bottom: 0; }
.decision-rule {
  margin: 1.35rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--lime);
  background: rgba(132, 204, 22, 0.07);
  border-radius: 0 9px 9px 0;
}
.decision-rule p { margin: 0; color: var(--ink); }
/* Abschluss-CTA am Ende eines Artikels (z. B. Fallstudie -> Systemanalyse) */
.article-cta {
  margin: 2.3rem 0 0;
  padding: 1.6rem 1.7rem;
  border: 1px solid var(--paper-line);
  border-radius: 14px;
  background: var(--paper-2, rgba(39, 161, 232, 0.05));
}
.article-cta h2 { margin-top: 0; }
.article-cta p:last-child { margin-bottom: 0; }
.article-evidence {
  margin: 2.3rem 0 1.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--paper-line);
}
.article-evidence h2 { margin-top: 0; }
.article-evidence ol { font-size: 0.92rem; }
.article-evidence li { margin-bottom: 0.65rem; }
.article-evidence .source-note { font-size: 0.88rem; color: var(--text-dim); }

@media (max-width: 640px) {
  .article-lab__grid { grid-template-columns: 1fr; }
  .article-lab { border-radius: 12px; }
}

.author-box {
  display: flex; gap: 1rem; align-items: flex-start;
  border-top: 1px solid var(--paper-line); margin-top: 2.5rem; padding-top: 2rem;
}
.author-box__avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}
.author-box__name { font-size: 1rem; font-weight: 600; color: var(--charcoal); margin-bottom: 0.2rem; }
.author-box p { font-size: 0.9rem; color: var(--text-dim); margin: 0; }

.related { background: var(--paper-2); }
.related .blog-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- Legal-Seiten ---------- */
.legal-page { background: var(--paper); color: var(--text); min-height: 100vh; }
.legal-page .nav { position: sticky; background: var(--dark); }
.legal {
  max-width: 46rem; margin-inline: auto;
  padding: clamp(3rem, 8vw, 5rem) 1.25rem 5rem;
}
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 2rem; color: var(--charcoal); }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 0.7rem; color: var(--charcoal); }
.legal p, .legal li { color: var(--text-dim); }
.legal ul { padding-left: 1.2rem; margin-block: 0.6rem; }
.legal p { margin-block: 0.6rem; }
.legal .todo {
  background: #FEF3C7; border: 1px solid #F59E0B; border-radius: 8px;
  padding: 0.9rem 1.1rem; color: #92400E; font-size: 0.9rem; margin-block: 1.2rem;
}
.legal a { color: var(--cyan-deep); }
.legal .back { display: inline-block; margin-top: 3rem; font-weight: 600; }

/* ---------- 404 ---------- */
.err {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr);
  place-items: center; text-align: center; padding: 2rem;
}
.err > div { width: 100%; max-width: 34rem; }
.err .km { justify-content: center; }
.err h1 { margin-bottom: 1rem; }
.err p { color: var(--ink-dim); margin-bottom: 2rem; max-width: 32em; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero { height: auto; }
  .hero__stage { position: relative; height: auto; min-height: 100vh; overflow: visible; }
  .hero__scrollhint::after, .ticker li::before { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
