@font-face {
  font-family: "Lora";
  src: url("fonts/Lora/Lora-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 400 700;
  font-style: normal;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/Lora/Lora-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 400 700;
  font-style: italic;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans/PlusJakartaSans-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-style: normal;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans/PlusJakartaSans-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-style: italic;
}

:root {
  --bg-hell: #fdfcf8;
  --bg: #faf9f5;
  --bg-alt: #ede9e0;
  --card: #edf2f1;
  --text: #1a1f1e;
  --text-muted: #5a6566;
  --highlight: #a6c2c4;
  /* Markenfarbe = #14383a (Petrol). Alle Grün-Akzente leiten sich davon ab. */
  --accent: #14383a;
  --accent-hover: #0d2728;
  --border: #7c5f1c;
  --accent-teal: #14383a;
  --radius: 10px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  /* KI-generiert. Reserviert den Scrollbar-Platz immer, egal ob die
     Seite tatsächlich scrollbar ist — sonst rutscht zentrierter Inhalt
     (z.B. das Logo im Header) zwischen langen Seiten (mit Scrollbar)
     und kurzen Seiten (ohne Scrollbar) um die Scrollbar-Breite hin und
     her. Browser ohne Support (z.B. ältere Safari) ignorieren die
     Zeile einfach und verhalten sich wie bisher — kein Risiko. */
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* KI-generiert. Bugfix: Lange deutsche Komposita ohne Leerzeichen (z.B.
   "Datenschutzerklärung") sind EIN Wort und konnten ohne diese Regel bei
   schmalen Viewports nicht umbrechen -- der Browser lässt sie dann über
   den Container hinauslaufen (gemessen: H1 434px breit in einem 327px-
   Container auf 390px-Screens). overflow-wrap erlaubt den Notfall-
   Umbruch NUR wenn ein einzelnes Wort nicht passt, normaler Umbruch an
   Leerzeichen bleibt überall unverändert. */
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; overflow-wrap: break-word; }
h1 {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
}
.h1-nowrap { white-space: nowrap; text-decoration: underline; text-underline-offset: 0.08em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
p { color: var(--text-muted); margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }

::selection {
  background: var(--highlight);
  color: var(--text);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: inline-flex;
  align-items: center;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.logo-mark {
  display: inline-block;
  height: 0.85em;
  width: auto;
  margin-right: 0.02em;
  vertical-align: -0.08em;
}
/* KI-generiert. Logo-Swap beim Rausscrollen aus dem Hero (Anthropic-Stil):
   App-Icon liegt exakt deckungsgleich über dem bisherigen "W"-Mark und
   wird per Scroll-Fortschritt per JS ein-/ausgeblendet (siehe tickLogoSwap
   im Script). .logo-mark-wrap ist der Anker, beide Marks liegen über
   denselben Platz, nur der Text "isstum" bleibt unverändert daneben stehen. */
.logo-mark-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.logo-mark-current {
  position: relative;
  opacity: 1;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.logo-mark-scrolled {
  position: absolute;
  left: 50%;
  top: 50%;
  /* 1.55em statt der geerbten 0.85em: Das W füllt im kleinen Icon fast
     die ganze Canvas, im App-Icon-Badge sitzt es mit Rand drumrum bei
     ca. 54% der Badge-Höhe (exakt vermessen) — die größere Skalierung
     gleicht das aus, damit beide W-Formen deckungsgleich liegen. Beide
     Glyphen sitzen in ihrer jeweiligen Canvas bereits mittig, daher
     reicht zentrierte statt linksbündige Positionierung. */
  height: 1.55em;
  width: auto;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
/* KI-generiert. "isstum" tippt beim Logo-Wechsel schwunghaft nach links
   weg (Swoosh: Richtung + leichte Rotation). Ausgelöst durch die Klasse
   "is-scrolled" auf dem .logo-Link (siehe initLogoSwap im Script), die
   Animation selbst läuft komplett über CSS-Transition — bleibt also
   auch dann vollständig stehen bzw. läuft komplett durch, wenn der
   Nutzer mitten in der Animation aufhört zu scrollen. */
.logo-text {
  display: inline-block;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo.is-scrolled .logo-mark-current { opacity: 0; }
.logo.is-scrolled .logo-mark-scrolled { opacity: 1; }
.logo.is-scrolled .logo-text {
  opacity: 0;
  transform: translateX(-18px) rotate(-7deg);
}
.cta-brand-font {
  display: inline-flex;
  align-items: center;
}

/* Header-Nav: schlichter Textlink zur eigenen Seite. */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  margin-right: 1.75rem;
}
.nav-link {
  position: relative;
  display: inline-block;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.nav-link:hover { color: var(--accent-teal); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover::after {
  transform: scaleX(1);
}
/* Mobile-Hamburger-Menü: Toggle-Button ist auf Desktop per default
   ausgeblendet (display:none) und wird nur in der Media Query unten
   sichtbar gemacht. .nav-right ist auf Desktop "display:contents", also
   optisch unsichtbar als Wrapper — Toggle + Demo-Button verhalten sich
   dort exakt wie vorher zwei einzelne Flex-Items in .nav-inner. */
.nav-right { display: contents; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-inner { position: relative; }
  .nav-right { display: flex; align-items: center; gap: 0.75rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    padding: 1rem 1.5rem 1.25rem;
    background: var(--bg-hell);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.2);
  }
  .nav-links.is-open { display: flex; }
  .nav-link { margin-right: 0; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  transition: background 0.15s ease;
}
/* Demo-Anfragen-Buttons: goldene Border zeichnet sich bei Hover von
   oben-mittig im Uhrzeigersinn einmal komplett herum, beim Verlassen
   läuft dieselbe Animation rückwärts (siehe initDemoBtnOutline im
   Script — SVG-Pfad mit stroke-dashoffset-Transition). */
.btn-demo {
  position: relative;
  overflow: visible;
}
.btn-demo-outline {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  pointer-events: none;
  overflow: visible;
}
.btn-demo-outline path {
  fill: none;
  stroke: #d9ab48;
  stroke-width: 1.5;
  transition: stroke-dashoffset 0.6s ease;
}
.btn-primary { background: var(--accent); color: var(--bg-hell); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; background: var(--text); color: #fff; border: 1px solid var(--text); }
.btn-small:hover { background: #000; border-color: #000; }

/* Sections */
section { padding: 4.5rem 1.5rem; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-inner.narrow { max-width: 640px; }
.center { text-align: center; }

.hero {
  position: relative;
  padding: 6rem 1.5rem 5rem;
  background: var(--bg);
  overflow: hidden;
}
.hero-inner { max-width: 1320px; margin: 0 auto; }
/* KI: Desktop – Hero füllt beim Öffnen den ganzen Bildschirm (abzgl. Nav),
   Inhalt vertikal mittig; Himmel-Bereich beginnt erst darunter. */
@media (min-width: 761px) {
  .hero {
    /* 64px Nav + ~110px, damit die Oberkante des geschlossenen
       Himmel-Fensters beim Öffnen klar sichtbar bleibt */
    min-height: calc(100vh - 175px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  .hero-inner { width: 100%; }
}
.subhead { font-size: 1.35rem; margin-bottom: 2rem; color: var(--text); }
/* KI: Hero-Text kleiner, damit das Showcase-Fenster rechts mehr Platz bekommt */
.hero-text h1 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); }
.hero-text .subhead { font-size: 1.1rem; }

/* KI: Hero-Anordnung nach Hyros-Vorbild — links zentrierter Text,
   rechts Showcase-Rahmen mit Kartenstapel (Funktionen der App). */
.hero-text { text-align: center; max-width: 560px; margin: 0 auto; }
@media (min-width: 761px) {
  .hero-text .subhead { text-align: left; }
}

/* ── Showcase-Rahmen im Stil der App (Dark Mode, Werte aus app theme.css):
   fast schwarzer warmer Grund, weiche Petrol-/Grün-Lichtwolken, dazu zwei
   angeschnittene, schräge "Papierbögen" in dunklen Farbvarianten. ── */
.showcase-frame {
  position: relative;
  width: 100%;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 3.5rem;
  background:
    radial-gradient(circle at 42% 44%, rgba(87, 128, 128, 0.26) 0%, rgba(87, 128, 128, 0.1) 30%, rgba(87, 128, 128, 0) 60%),
    radial-gradient(circle at 60% 60%, rgba(90, 150, 95, 0.16) 0%, rgba(90, 150, 95, 0.06) 30%, rgba(90, 150, 95, 0) 60%),
    #1a1916;
  border: 1px solid #332f29;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
}
.showcase-frame::before,
.showcase-frame::after {
  content: "";
  position: absolute;
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
}
.showcase-frame::before {
  width: 70%; height: 80%;
  left: -18%; top: -22%;
  background: #222018;
  border: 1px solid #332f29;
  transform: rotate(-14deg);
}
.showcase-frame::after {
  width: 62%; height: 70%;
  right: -20%; bottom: -26%;
  background: #1d2a28;
  border: 1px solid rgba(87, 128, 128, 0.22);
  transform: rotate(11deg);
}
/* ── Kartenstapel ── */
.sc-stack {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 470px;
  height: 450px;
}
.sc-card {
  --sc-tint: #e3eded;
  --sc-ink: #14383a;
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 400px;
  background: var(--sc-tint);
  border: 1px solid rgba(20, 56, 58, 0.12);
  border-radius: 14px;
  box-shadow: 0 26px 56px -24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform-origin: 50% 100%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
}
.sc-card.no-anim { transition: none; }
.sc-card[data-pos="0"] { z-index: 4; transform: translateY(0) scale(1); opacity: 1; }
.sc-card[data-pos="1"] { z-index: 3; transform: translateY(22px) scale(0.95); opacity: 0.95; }
.sc-card[data-pos="2"] { z-index: 2; transform: translateY(44px) scale(0.9); opacity: 0.85; }
.sc-card[data-pos="3"] { z-index: 1; transform: translateY(60px) scale(0.86); opacity: 0; }
/* KI: Vorderste Karte wird nach rechts "weggeworfen" und verschwindet unter dem rechten Rand des Rahmens (overflow: hidden) – kein Ausblenden. */
.sc-card[data-pos="out"] {
  z-index: 5;
  transform: translate(175%, 18px) rotate(9deg);
  opacity: 1;
  transition: transform 0.85s cubic-bezier(0.55, 0.05, 0.75, 0.35);
}
.sc-card:not([data-pos="0"]):not([data-pos="out"]) .sc-body { opacity: 0.55; }

/* Kartenfarben (blasse Töne) */
.sc-green { --sc-tint: #e3eded; --sc-ink: #14383a; }
.sc-blue  { --sc-tint: #e2e9f4; --sc-ink: #2c4a7a; }
.sc-red   { --sc-tint: #f4e3e1; --sc-ink: #8a3a30; }
.sc-sand  { --sc-tint: #f2ead8; --sc-ink: #7c5f1c; }
.sc-lilac { --sc-tint: #ebe5f3; --sc-ink: #54407a; }

.sc-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-bottom: 1px solid rgba(20, 56, 58, 0.1);
  background: rgba(255, 255, 255, 0.55);
}
.sc-dots { position: absolute; left: 14px; display: flex; gap: 6px; }
.sc-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(20, 56, 58, 0.16); }
.sc-url, .sc-status, .sc-src, .sc-ficon, .sc-chip {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.sc-url { font-size: 0.74rem; color: var(--text-muted); letter-spacing: 0.02em; }
.sc-body { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; height: calc(100% - 38px); transition: opacity 0.5s ease; }
.sc-title { font-family: "Lora", Georgia, serif; font-weight: 700; font-size: 1.2rem; color: var(--sc-ink); }
.sc-sub { font-size: 0.82rem; color: var(--text-muted); margin-top: -0.35rem; margin-bottom: 0.2rem; }
.sc-foot { margin-top: auto; font-size: 0.8rem; color: var(--sc-ink); border-top: 1px solid rgba(20, 56, 58, 0.1); padding-top: 0.65rem; }

/* 1 Chat */
.sc-status { font-size: 0.68rem; letter-spacing: 0.08em; color: var(--sc-ink); display: flex; align-items: center; gap: 0.45rem; }
.sc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sc-ink); }
.sc-user {
  align-self: flex-end;
  max-width: 82%;
  background: #14383a;
  color: #fff;
  padding: 0.6rem 0.85rem;
  border-radius: 12px 12px 3px 12px;
  font-size: 0.88rem;
}
.sc-answer {
  position: relative;
  background: #fff;
  border: 1px solid rgba(20, 56, 58, 0.1);
  border-radius: 12px 12px 12px 3px;
  padding: 0.7rem 0.85rem;
  font-size: 0.86rem;
  max-width: 92%;
}
.sc-answer p { margin: 0 0 0.5rem; color: var(--text); font-family: inherit; line-height: 1.45; }
.sc-chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; color: #14383a; background: #e3eded; padding: 0.2rem 0.5rem; border-radius: 6px; }
.sc-typing { display: none; gap: 4px; }
.sc-typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(20, 56, 58, 0.4); animation: scDot 1s infinite; }
.sc-typing i:nth-child(2) { animation-delay: 0.15s; }
.sc-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes scDot { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.sc-input {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff;
  border: 1px solid rgba(20, 56, 58, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  font-size: 0.82rem; color: var(--text-muted);
  gap: 0.4rem;
}
.sc-input > span:first-child { flex: 1; }
.sc-mic { width: 28px; height: 28px; display: grid; place-items: center; color: var(--text-muted); }
.sc-mic svg, .sc-ico { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sc-send { background: #14383a; color: #fff; border-radius: 999px; padding: 0.4rem 0.95rem; font-size: 0.8rem; font-weight: 600; }

/* 2 Upload */
.sc-file {
  display: grid;
  grid-template-columns: auto 1fr 70px auto;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid rgba(20, 56, 58, 0.08);
  border-radius: 9px;
  padding: 0.55rem 0.7rem;
  font-size: 0.8rem;
}
.sc-ficon { font-size: 0.62rem; font-weight: 700; color: var(--sc-ink); background: var(--sc-tint); border-radius: 4px; padding: 0.15rem 0.3rem; }
.sc-fname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-bar { height: 5px; background: rgba(20, 56, 58, 0.1); border-radius: 3px; overflow: hidden; }
.sc-bar span { display: block; height: 100%; width: 100%; background: var(--sc-ink); border-radius: 3px; }
.sc-tag { font-size: 0.7rem; font-weight: 700; color: var(--sc-ink); background: var(--sc-tint); border-radius: 999px; padding: 0.15rem 0.5rem; white-space: nowrap; }

/* 3 Fehler-Scan */
.sc-scan { height: 4px; border-radius: 2px; background: rgba(138, 58, 48, 0.12); overflow: hidden; }
.sc-scan span { display: block; height: 100%; width: 100%; background: var(--sc-ink); }
.sc-conflict { display: flex; flex-direction: column; gap: 0.45rem; }
.sc-cline { background: #fff; border: 1px solid rgba(138, 58, 48, 0.15); border-radius: 9px; padding: 0.55rem 0.7rem; font-size: 0.84rem; }
.sc-src { display: block; font-size: 0.66rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.sc-cline mark { background: rgba(138, 58, 48, 0.16); color: var(--sc-ink); font-weight: 700; padding: 0 0.2rem; border-radius: 3px; }
.sc-alert { display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start; font-size: 0.78rem; font-weight: 700; color: #fff; background: var(--sc-ink); padding: 0.3rem 0.7rem; border-radius: 999px; }
.sc-actions { display: flex; gap: 0.5rem; margin-top: auto; }
.sc-btn { font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 8px; background: #fff; border: 1px solid rgba(20, 56, 58, 0.18); }
.sc-btn-dark { background: var(--text); color: #fff; border-color: var(--text); }

/* 4 Zugriffsrechte */
.sc-role { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid rgba(20, 56, 58, 0.08); border-radius: 9px; padding: 0.55rem 0.75rem; font-size: 0.86rem; }
.sc-toggle { position: relative; width: 34px; height: 19px; border-radius: 999px; background: rgba(20, 56, 58, 0.18); }
.sc-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform 0.3s; }
.sc-toggle.on { background: #14383a; }
.sc-toggle.on::after { transform: translateX(15px); }
.sc-lock { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; color: var(--text-muted); }

/* 5 Einweisungen */
.sc-check { display: flex; align-items: center; gap: 0.6rem; background: #fff; border: 1px solid rgba(20, 56, 58, 0.08); border-radius: 9px; padding: 0.5rem 0.7rem; font-size: 0.85rem; }
.sc-box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--sc-ink); background: var(--sc-ink); position: relative; flex: 0 0 auto; }
.sc-box::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 0.65rem; font-weight: 700; }
.sc-progress { height: 6px; border-radius: 3px; background: rgba(84, 64, 122, 0.15); overflow: hidden; margin-top: 0.2rem; }
.sc-progress span { display: block; height: 100%; width: 100%; background: var(--sc-ink); }

/* ── Abläufe: nur die aktive (vorderste) Karte spielt ── */
@keyframes scIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes scGrow { from { width: 0; } to { width: 100%; } }
@keyframes scPop { 0% { opacity: 0; transform: scale(0.7); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes scTypeHide { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }

.sc-card.is-active .a1 { animation: scIn 0.5s ease 0.3s both; }
.sc-card.is-active .a2 { animation: scIn 0.5s ease 1.3s both; }
.sc-card.is-active .a3 { animation: scPop 0.45s ease 2.6s both; }
.sc-card.is-active .a4 { animation: scIn 0.5s ease 3.3s both; }

/* Chat: Antworttext erst nach "tippt..." */
.sc-card.is-active .sc-answer .sc-typing { display: flex; position: absolute; left: 0.85rem; top: 0.85rem; animation: scTypeHide 1.2s linear 1.3s both; }
.sc-card.is-active .sc-answer p,
.sc-card.is-active .sc-answer .sc-chip { animation: scIn 0.45s ease 2.5s both; }
.sc-card.is-active .sc-answer .sc-chip { animation-delay: 3.1s; }

/* Upload */
.sc-card.is-active .b1 { animation: scGrow 1.1s ease 0.4s both; }
.sc-card.is-active .b2 { animation: scGrow 1.1s ease 1.0s both; }
.sc-card.is-active .b3 { animation: scGrow 1.1s ease 1.6s both; }
.sc-card.is-active .t1 { animation: scPop 0.4s ease 1.5s both; }
.sc-card.is-active .t2 { animation: scPop 0.4s ease 2.1s both; }
.sc-card.is-active .t3 { animation: scPop 0.4s ease 2.7s both; }

/* Fehler-Scan */
.sc-card.is-active .sc-scan span { animation: scGrow 1.6s ease 0.1s both; }

/* Rechte */
.sc-card.is-active .r1, .sc-card.is-active .r2,
.sc-card.is-active .r3, .sc-card.is-active .r4 { animation: scPop 0.4s ease both; }
.sc-card.is-active .r1 { animation-delay: 0.6s; }
.sc-card.is-active .r2 { animation-delay: 1.1s; }
.sc-card.is-active .r3 { animation-delay: 1.6s; }
.sc-card.is-active .r4 { animation-delay: 2.1s; }

/* Einweisung */
.sc-card.is-active .c1 .sc-box, .sc-card.is-active .c2 .sc-box,
.sc-card.is-active .c3 .sc-box, .sc-card.is-active .c4 .sc-box { animation: scCheck 0.35s ease both; }
@keyframes scCheck { from { background: transparent; } to { background: var(--sc-ink); } }
.sc-card.is-active .c1 .sc-box { animation-delay: 0.6s; }
.sc-card.is-active .c2 .sc-box { animation-delay: 1.2s; }
.sc-card.is-active .c3 .sc-box { animation-delay: 1.8s; }
.sc-card.is-active .c4 .sc-box { animation-delay: 2.4s; }
.sc-card.is-active .sc-progress span { animation: scGrow 2.4s linear 0.5s both; }

/* KI-Bugfix: Animierte Inhalte sind standardmäßig im START-Zustand (leer).
   So blitzt beim Nach-vorne-Rücken nie der fertige Zustand auf. */
.sc-card .a1, .sc-card .a2, .sc-card .a3, .sc-card .a4,
.sc-card .sc-answer p, .sc-card .sc-answer .sc-chip,
.sc-card .t1, .sc-card .t2, .sc-card .t3,
.sc-card .r1, .sc-card .r2, .sc-card .r3, .sc-card .r4 { opacity: 0; }
.sc-card .b1, .sc-card .b2, .sc-card .b3,
.sc-card .sc-scan span, .sc-card .sc-progress span { width: 0; }
.sc-card .sc-box { background: transparent; }
/* KI: Chat-Karte mit zwei Fragen nacheinander. Der Verlauf ist unten
   ausgerichtet; Frage 2 + Antwort 2 "wachsen" per max-height ein und
   schieben Frage 1 nach oben aus dem Bild, wie in einem echten Chat. */
.sc-msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.sc-thread { display: flex; flex-direction: column; }
.sc-thread > * + * { margin-top: 0.6rem; }
.sc-thread .sc-user { align-self: flex-end; }
.sc-thread .sc-answer { align-self: flex-start; }
.sc-card .q1, .sc-card .ans1, .sc-card .q2, .sc-card .ans2 { opacity: 0; }
.sc-card .q2, .sc-card .ans2 { max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; border-width: 0; overflow: hidden; }
@keyframes scGrowIn {
  from { opacity: 0; max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
  to   { opacity: 1; max-height: 220px; margin-top: 0.6rem; padding-top: 0.6rem; padding-bottom: 0.7rem; border-width: 1px; }
}
.sc-card.is-active .q1   { animation: scIn 0.5s ease 0.3s both; }
.sc-card.is-active .ans1 { animation: scIn 0.5s ease 1.2s both; }
.sc-card.is-active .ans1 .sc-typing { display: flex; position: absolute; left: 0.85rem; top: 0.85rem; animation: scTypeHide 1.2s linear 1.2s both; }
.sc-card.is-active .ans1 p    { animation: scIn 0.45s ease 2.4s both; }
.sc-card.is-active .ans1 .sc-chip { animation: scIn 0.45s ease 2.9s both; }
.sc-card.is-active .q2   { animation: scGrowIn 0.7s ease 6.5s both; }
.sc-card.is-active .ans2 { animation: scGrowIn 0.7s ease 7.6s both; }
.sc-card.is-active .ans2 .sc-typing { display: flex; position: absolute; left: 0.85rem; top: 0.85rem; animation: scTypeHide 1.2s linear 7.8s both; }
.sc-card.is-active .ans2 p    { animation: scIn 0.45s ease 9.0s both; }
.sc-card.is-active .ans2 .sc-chip { animation: scIn 0.45s ease 9.5s both; }

@media (max-width: 760px) {
  .showcase-frame { min-height: 0; padding: 1.5rem 0.75rem 2.5rem; }
  .sc-stack { height: 440px; }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
}
@media (max-width: 760px) {
  /* KI-generiert. Bugfix: Ohne minmax(0, 1fr) darf eine 1fr-Spalte nicht
     unter die "natürliche" Breite ihres Inhalts schrumpfen (CSS-Grid-
     Default-Minimum ist "auto", nicht 0). Dadurch wurden Headline und
     Chat-Demo-Fenster auf schmalen Viewports ca. 45px breiter als der
     Bildschirm und rechts abgeschnitten (sichtbar z.B. bei "Euer
     Betriebswiss[en]" oder dem abgeschnittenen Chat-Fenster-Rand). */
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-demo { order: -1; min-width: 0; }
  .hero-text { min-width: 0; }
  /* Die erzwungene Einzeiligkeit ("Für jeden Mitarbeiter.") passt bei
     kleinen Schriftgrößen (clamp-Minimum 2.6rem) nicht mehr in 390px
     Breite und wurde rechts abgeschnitten statt umzubrechen. */
  .h1-nowrap { white-space: normal; }
}


/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--text-muted);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* Expanding Video Window — Scroll-gekoppelter Effekt wie im Claude-Fable-
   Bereich auf der Anthropic-Seite. Klassisches Sticky+Scale-Muster:
   .video-scroll-section ist 200vh hoch, der Sticky-Wrapper klebt bei
   top:0 über die volle Scrollstrecke, JS berechnet den Fortschritt
   (0–1) daraus und interpoliert width/border-radius live (siehe Script). */
.video-outer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: var(--bg);
  display: flex;
  justify-content: center;
  padding: 0 0 5rem;
}
.video-box {
  position: relative;
  width: 70%;
  max-width: 1000px;
  height: 100vh;
  border-radius: 20px;
  overflow: hidden;
  transition: none;
}
.video-box video {
  position: absolute;
  width: 100vw;
  height: 100%;
  min-height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  object-fit: cover;
}
#grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  z-index: 1;
}

/* Problem/Lösung-Text im Video — gekoppelt an denselben Feder-Wert,
   der auch die Box öffnet (siehe tick() im Script). Dunkler Scrim
   unten sorgt für Lesbarkeit von weißem Text auf hellen Wolken. */
.video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(8, 14, 13, 0.5) 0%, rgba(8, 14, 13, 0.22) 45%, rgba(8, 14, 13, 0.1) 70%);
  pointer-events: none;
  z-index: 1;
}
.video-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: grid;
  align-items: center;
  padding: 0 8%;
}
/* Problem- und Lösung-Panel sollen exakt dieselbe Bezugslinie haben
   (nicht wie das dritte Panel einzeln nach eigener Höhe zentriert) --
   sonst verschiebt unterschiedlich langer Text sie gegeneinander. */
#panel-problem,
#panel-solution {
  align-self: center;
  min-height: 68vh;
  justify-content: center;
}
.copy-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  max-width: 900px;
  pointer-events: auto;
}
.copy-row {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  row-gap: 0.75rem;
  flex-wrap: wrap;
}
.copy-panel h3 {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  letter-spacing: -0.01em;
  margin: 0;
  flex: 0 0 auto;
}
.copy-panel p {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.6;
  flex: 1 1 320px;
  max-width: 40ch;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.6);
}
#panel-solution p {
  max-width: 52ch;
}
#panel-solution .copy-row {
  align-items: center; /* Headline automatisch mittig zur Texthöhe, egal wie lang der Text ist */
}
.copy-stats {
  flex: 1 1 320px;
  max-width: 40ch;
}
.copy-stats h4 {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  margin: 0 0 0.75rem;
}
.copy-stats p {
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  margin: 0 0 0.35rem;
}
.copy-stats p:last-child {
  margin-bottom: 0;
}

/* Ausgangszustand: Problem sanft ausgeblendet (scroll-gesteuert via JS),
   Lösung unsichtbar nach rechts versetzt bis zum Button-Klick. */
#panel-problem {
  opacity: 0;
  transform: translateY(14px);
}
#panel-solution {
  opacity: 0;
  transform: translateX(48px);
  filter: blur(10px);
  pointer-events: none;
}

/* Klick-Übergang: Problem wischt schnell dezent nach links weg und löst
   sich auf, Lösung löst sich von rechts kommend sichtbar ein — leicht
   zeitversetzt für einen fließenden Wechsel statt hartem Cut. */
.video-copy.is-swapped #panel-problem {
  transition: opacity 0.32s ease, transform 0.32s ease, filter 0.32s ease;
  opacity: 0 !important;
  transform: translateX(-56px) !important;
  filter: blur(10px);
  pointer-events: none;
}
.video-copy.is-swapped #panel-solution {
  transition: opacity 0.5s ease 0.14s, transform 0.5s ease 0.14s, filter 0.5s ease 0.14s;
  opacity: 1 !important;
  transform: translateX(0) !important;
  filter: blur(0);
  pointer-events: auto;
}

/* Problem-Panel: Headline + erster Text bleiben 1:1 an der
   ursprünglichen Stelle (eigene, unveränderte Zeile mit fester
   max-width wie vorher) — die Fluktuations-Spalte wird absolut
   positioniert rechts daneben gelegt, ohne die Zeile zu beeinflussen. */
.copy-panel-problem {
  max-width: 1200px;
  position: relative;
}
.copy-panel-problem .copy-row {
  max-width: 760px;
  flex-wrap: nowrap;
  align-items: flex-start;
}
.copy-panel-problem .copy-row h3 {
  margin-top: 4.5rem; /* exakt wie bei "Unsere Lösung" */
}
.copy-panel-problem .copy-row > p {
  /* margin-top wird per JS pixelgenau auf die Höhe von "Die Fluktuation..."
     gesetzt, damit "Wissen steckt..." exakt auf Höhe von "Produktion ..."
     startet (siehe alignProblemText im Script). */
}
.copy-panel-problem .copy-stats p {
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
}
.copy-panel-problem .copy-stats {
  position: absolute;
  top: 0;
  left: 72%;
  width: 30%;
  max-width: 420px;
}

/* Drittes Panel: breiter/wichtiger, reicht bis über die Mitte hinaus */
.copy-panel-wide {
  max-width: 1300px;
  width: 100%;
  margin: 6.5rem auto 0;
  align-items: center;
}
.copy-panel-wide h3 {
  margin-bottom: 0.25rem;
}
.copy-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8.5rem;
  width: 100%;
}
.copy-col {
  min-width: 0;
}
.copy-col:first-child {
  margin-top: 3.5rem; /* bewusst asymmetrisch tiefer als die rechte Spalte */
}
.copy-steps {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.copy-step {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}
.copy-step-num {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}
.copy-step h4 {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin: 0 0 0.3rem;
}
.copy-step p {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Tresorschloss-Rotation: 3 Sätze gleichzeitig sichtbar, laufen von oben
   nach unten durch — oben klein/verblasst einblendend, in der Mitte groß
   und voll sichtbar, unten wieder klein/verblasst ausblendend. Schmaler
   als die beiden Spalten, mittig darunter. Position/Skalierung/Opacity
   werden pro Frame in JS gesetzt (siehe tickSafeDial). */
.safe-dial {
  --slot-h: 2.6rem;
  position: relative;
  width: 100%;
  max-width: 560px;
  height: calc(var(--slot-h) * 3);
  margin: 2.25rem auto 0;
  overflow: hidden;
  perspective: 420px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.safe-dial-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.safe-dial-item {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--slot-h);
  line-height: var(--slot-h);
  text-align: center;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* Ausgangszustand & zweiter Klick-Übergang: Solution -> Wie funktioniert */
#panel-howitworks {
  opacity: 0;
  transform: translateX(48px);
  filter: blur(10px);
  pointer-events: none;
}
.video-copy.is-swapped-2 #panel-solution {
  transition: opacity 0.32s ease, transform 0.32s ease, filter 0.32s ease;
  opacity: 0 !important;
  transform: translateX(-56px) !important;
  filter: blur(10px);
  pointer-events: none;
}
.video-copy.is-swapped-2 #panel-howitworks {
  transition: opacity 0.5s ease 0.14s, transform 0.5s ease 0.14s, filter 0.5s ease 0.14s;
  opacity: 1 !important;
  transform: translateX(0) !important;
  filter: blur(0);
  pointer-events: auto;
}

.copy-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}
.copy-btn svg {
  transition: transform 0.2s ease;
}
.copy-btn:hover svg {
  transform: translateX(4px);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.target {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding-top: 0.25rem;
}
.target h2 {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
}
.target .section-inner.narrow {
  max-width: 760px;
}
.target > .section-inner > p {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.65;
}
.target-bg {
  position: absolute;
  inset: -96px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg, rgba(20, 56, 58, 0.1) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(20, 56, 58, 0.1) 0 1px, transparent 1px 96px);
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  animation: target-bg-drift 40s linear infinite;
}
@keyframes target-bg-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(96px, 96px); }
}
.target .section-inner {
  position: relative;
  z-index: 1;
}

.fit-check {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.fit-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.fit-chip::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex: 0 0 auto;
  transition: background 0.15s ease;
}
.fit-chip:hover {
  border-color: var(--accent-teal);
}
.fit-chip[data-checked="true"] {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: #fff;
}
.fit-chip[data-checked="true"]::before {
  background: #fff;
}
.fit-result {
  margin: 1.25rem 0 0;
  min-height: 1.6em;
  font-weight: 600;
  color: var(--accent-teal);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fit-result.is-visible {
  opacity: 1;
}

/* CTA-Video-Bereich — 1:1 dieselbe Mechanik wie der Himmel-Bereich:
   Video immer 100vw fix, nur die Box wächst beim Scrollen (siehe
   tick() im Script), plus Film-Grain-Canvas obendrauf. */
.cta-video-outer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: var(--bg);
  display: flex;
  justify-content: center;
  padding: 0 0 5rem;
}
.cta-video-box {
  position: relative;
  width: 62%;
  max-width: 880px;
  height: 62vh;
  max-height: 620px;
  border-radius: 20px;
  overflow: hidden;
  transition: none;
}
.cta-video-box video {
  position: absolute;
  width: 100vw;
  height: 100%;
  min-height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  object-fit: cover;
}
.cta-card-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0 6%;
}
/* Kein Container mehr — Typografie selbst ist die Struktur. Große,
   selbstbewusste Headline; Text/Button bewusst klein und zurückhaltend
   darunter. Kein Rand, kein Schatten, kein Blur. */
.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 780px;
  text-align: center;
}
.cta-brand-font {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12em;
}
.cta-card h2 {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.8vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}
.cta-card-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.cta-card-side p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  margin: 0;
}
.cta-card .btn-primary {
  background: var(--text);
  color: #fff;
  border: 1px solid var(--text);
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cta-card .btn-primary:hover {
  background: #000;
  border-color: #000;
  box-shadow: none;
}

/* Datenschutz-für-Mitarbeiter-Seite: zweispaltiges Layout nach
   Anthropic-Vorbild — links eine feste Intro-Spalte, rechts ein
   2-spaltiges Raster nummerierter FAQ-Punkte. Kein Kasten, keine
   Trennlinien, Struktur kommt aus Raster + Nummerierung. */
.dsm-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.dsm-intro h1 {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  margin: 0 0 1rem;
}
.dsm-intro p {
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0;
}
.dsm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem 3rem;
}
.dsm-item {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
}
.dsm-item h3 {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--text);
  margin: 0 0 0.6em;
}
.dsm-item p {
  color: var(--text);
  margin: 0;
}
/* Kernfrage bricht bewusst das gleichförmige Raster auf: volle Breite,
   goldener statt grüner Akzentrand, größere Headline. */
.dsm-item-featured {
  grid-column: 1 / -1;
  border-left-color: var(--border);
  padding: 0.25rem 0 0.25rem 1.5rem;
}
.dsm-item-featured h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}
.dsm-item-featured p {
  max-width: 65ch;
}
@media (max-width: 900px) {
  .dsm-item-featured { grid-column: 1; }
}
@media (max-width: 900px) {
  .dsm-layout { grid-template-columns: 1fr; }
  .dsm-grid { grid-template-columns: 1fr; }
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
}
.footer-inner a {
  position: relative;
  display: inline-block;
  color: var(--text-muted);
}
.footer-inner a:hover { color: var(--accent-teal); }
.footer-inner a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.footer-inner a:hover::after {
  transform: scaleX(1);
}
.footer-links { display: flex; gap: 1.25rem; }

/* KI-generiert. Bugfix: Bei sehr schmalen Screens (z.B. iPhone SE,
   320px) passten "Impressum", "Datenschutz" und "Zurück zur Startseite"
   nicht mehr nebeneinander in eine Zeile und liefen ca. 32px über den
   rechten Rand hinaus (gemessen per automatischem Overflow-Scan).
   Footer stapelt sich ab hier vertikal statt nebeneinander zu laufen. */
@media (max-width: 480px) {
  .footer-inner {
    flex-direction: column;
    gap: 0.9rem;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* KI-generiert. Mobile-Fallback für die beiden scroll-gekoppelten
   Video-Bereiche (Himmel/Problem-Lösung und CTA-Marmor). Das JS
   überspringt den Scroll-Pin-Effekt unter 760px komplett (siehe
   isMobileViewport() im Script) — hier übernehmen rein statische Maße.
   Nur additive Regeln innerhalb dieser Media Query, Desktop bleibt
   unberührt. */
@media (max-width: 760px) {
  .video-outer,
  .cta-video-outer {
    padding: 0 0 3rem;
  }

  /* Himmel-Box: statt fixer 100vh-Pin-Höhe fließt sie normal mit dem
     Inhalt (Video oben in normalem Seitenverhältnis, Text darunter). */
  .video-box {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }
  .video-box video {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: block;
    aspect-ratio: 16 / 9;
  }
  .video-scrim,
  #grain {
    display: none;
  }

  /* Text-Overlay: von absolut überlagertem Scroll-Layout auf normalen,
     lesbaren Blockfluss umgestellt. Alle drei Panels werden direkt
     sichtbar untereinander dargestellt statt per Klick/Scroll ein- und
     auszublenden — auf Mobile ist Lesen in einem Rutsch sinnvoller als
     die Desktop-Klick-Interaktion. */
  .video-copy {
    position: static;
    display: block;
    padding: 1.75rem 1.25rem;
  }
  .copy-panel {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
    max-width: 100% !important;
    margin-bottom: 2.25rem;
  }
  .copy-btn { display: none; }
  .copy-row { flex-direction: column; gap: 0.75rem; }
  .copy-panel-problem .copy-row { max-width: 100%; }
  .copy-panel-problem .copy-row h3 { margin-top: 0; }
  .copy-panel-problem .copy-stats {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
  }
  .copy-columns { grid-template-columns: 1fr; gap: 2rem; }
  .copy-panel-wide { margin-top: 0; }
  .safe-dial { display: none; }

  /* KI-generiert. Bugfix: Diese drei Textblöcke sind für die Desktop-
     Overlay-Darstellung auf dem dunklen Video gestaltet (weiße Schrift,
     Text-Shadow fürs Kontrastlesen auf bewegtem Hintergrund). Auf Mobile
     fließt derselbe Text aber normal UNTER dem Video auf dem hellen
     Seitenhintergrund weiter (siehe .video-copy-Regel oben) -- weiße
     Schrift auf Cremeweiß war dadurch praktisch unlesbar. Hier auf die
     normalen dunklen Textfarben der Seite umgestellt, nur innerhalb
     dieser Mobile-Media-Query (Desktop-Overlay bleibt unberührt). */
  .copy-panel h3,
  .copy-step h4 {
    color: var(--text);
    text-shadow: none;
  }
  .copy-panel p,
  .copy-step p {
    color: var(--text-muted);
    text-shadow: none;
  }
  .copy-step-num {
    color: var(--accent-teal);
  }

  /* CTA-Marmor-Box: bleibt als Overlay-Design (Headline+Button auf
     Video), nur mit statischer statt Scroll-wachsender Größe. */
  .cta-video-box {
    width: 100% !important;
    max-width: 100% !important;
    height: 65vh !important;
    max-height: none !important;
    border-radius: 0 !important;
  }
  .cta-card h2 {
    font-size: clamp(1.7rem, 7.5vw, 2.3rem);
  }
}


/* ═══════════════════════════════════════════════════════════════════
   KI: Funktions-Tour "So arbeitet Wisstum" (5 Reiter, Autoplay)
   ═══════════════════════════════════════════════════════════════════ */
.features { padding: 5.5rem 1.5rem 6rem; background: var(--bg); }
.features-inner { max-width: 1240px; margin: 0 auto; }
.features h2 { text-align: center; font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 0.4rem; }
.features-sub { text-align: center; font-size: 1.05rem; margin-bottom: 2.4rem; }

.ft-tabs { display: flex; justify-content: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.ft-tab {
  position: relative;
  overflow: hidden;
  font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid rgba(20, 56, 58, 0.14);
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.ft-tab:hover { color: var(--text); border-color: rgba(20, 56, 58, 0.35); }
.ft-tab.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }
.ft-tab-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: rgba(255, 255, 255, 0.75); }
.ft-tab.is-playing .ft-tab-bar { animation: scGrow var(--ft-hold, 11000ms) linear both; }

.ft-panes { position: relative; }
.ft-pane { display: none; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: center; }
.ft-pane.is-shown { display: grid; animation: scIn 0.5s ease both; }
.ft-copy h3 { font-family: "Lora", Georgia, serif; font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.3; color: var(--text); margin-bottom: 0.9rem; }
.ft-copy p { font-size: 1.02rem; line-height: 1.65; }
.ft-points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-direction: column; gap: 0.55rem; font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Arial, sans-serif; font-size: 0.95rem; color: var(--text); }
.ft-points li { position: relative; padding-left: 1.5rem; }
.ft-points li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.75rem; height: 0.4rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Bühne = derselbe dunkle App-Rahmen wie im Hero-Showcase */
.ft-stage {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1.75rem;
  background:
    radial-gradient(circle at 42% 44%, rgba(87, 128, 128, 0.26) 0%, rgba(87, 128, 128, 0.1) 30%, rgba(87, 128, 128, 0) 60%),
    radial-gradient(circle at 60% 60%, rgba(90, 150, 95, 0.16) 0%, rgba(90, 150, 95, 0.06) 30%, rgba(90, 150, 95, 0) 60%),
    #1a1916;
  border: 1px solid #332f29;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
}
.ft-stage::before, .ft-stage::after { content: ""; position: absolute; border-radius: 14px; pointer-events: none; z-index: 0; }
.ft-stage::before { width: 70%; height: 80%; left: -18%; top: -22%; background: #222018; border: 1px solid #332f29; transform: rotate(-14deg); }
.ft-stage::after { width: 62%; height: 70%; right: -20%; bottom: -26%; background: #1d2a28; border: 1px solid rgba(87, 128, 128, 0.22); transform: rotate(11deg); }

.ft-win {
  --sc-tint: #e3eded; --sc-ink: #14383a;
  position: relative; z-index: 1;
  width: 100%; max-width: 520px; min-height: 430px;
  background: var(--sc-tint);
  border: 1px solid rgba(20, 56, 58, 0.12);
  border-radius: 14px;
  box-shadow: 0 26px 56px -24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
}
.ft-green { --sc-tint: #e3eded; --sc-ink: #14383a; }
.ft-blue  { --sc-tint: #e2e9f4; --sc-ink: #2c4a7a; }
.ft-red   { --sc-tint: #f4e3e1; --sc-ink: #8a3a30; }
.ft-sand  { --sc-tint: #f2ead8; --sc-ink: #7c5f1c; }
.ft-lilac { --sc-tint: #ebe5f3; --sc-ink: #54407a; }

/* 0 Upload */
.ft-drop { border: 1.5px dashed rgba(44, 74, 122, 0.35); border-radius: 10px; padding: 0.75rem; text-align: center; font-size: 0.8rem; color: var(--text-muted); background: rgba(255, 255, 255, 0.45); }
.ft-stats { margin-top: auto; display: flex; justify-content: space-between; gap: 0.5rem; border-top: 1px solid rgba(20, 56, 58, 0.1); padding-top: 0.7rem; font-size: 0.8rem; color: var(--text-muted); }
.ft-stats b { color: var(--sc-ink); font-size: 1.05rem; margin-right: 0.15rem; }

/* 1 Prüfung */
.ft-scanrow { display: flex; flex-direction: column; gap: 0.35rem; }
.ft-scanlabel { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.7rem; letter-spacing: 0.04em; color: var(--sc-ink); }
.ft-finding { background: #fff; border: 1px solid rgba(138, 58, 48, 0.15); border-radius: 10px; padding: 0.65rem 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.82rem; }
.ft-quote { background: var(--sc-tint); border-radius: 7px; padding: 0.4rem 0.55rem; }
.ft-quote mark { background: rgba(138, 58, 48, 0.18); color: var(--sc-ink); font-weight: 700; padding: 0 0.2rem; border-radius: 3px; }
.ft-suggest { font-size: 0.78rem; color: var(--text-muted); font-style: italic; }
.ft-badge { align-self: flex-start; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; padding: 0.15rem 0.55rem; }
.ft-badge-red { background: #8a3a30; color: #fff; }
.ft-badge-amber { background: #f1dfb6; color: #7c5f1c; }
.ft-summary { margin-top: auto; font-size: 0.8rem; font-weight: 600; color: var(--sc-ink); border-top: 1px solid rgba(20, 56, 58, 0.1); padding-top: 0.65rem; }

/* 2 Chat */
.ft-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.65rem; }
.ft-chat .sc-user { align-self: flex-end; }
.ft-chat .sc-answer { align-self: flex-start; }
.ft-input { position: relative; }
.ft-listen { position: absolute; left: 1rem; color: var(--sc-ink); font-weight: 600; opacity: 0; }
.ft-mic { border-radius: 50%; }
.ft-input .ft-placeholder { flex: 1; }

/* 3 Rechte */
.ft-viewas { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.ft-viewlabel { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.ft-seg { position: relative; display: inline-flex; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(20, 56, 58, 0.12); border-radius: 999px; padding: 3px; font-size: 0.78rem; font-weight: 600; }
.ft-seg > span:not(.ft-seg-pill) { position: relative; z-index: 1; padding: 0.3rem 0.8rem; color: var(--text); transition: color 0.35s; }
.ft-seg > span.ft-seg-a { color: #fff; }
.ft-seg-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(var(--seg-a, 128px)); border-radius: 999px; background: var(--sc-ink); }
.ft-lib { display: flex; flex-direction: column; gap: 0.4rem; }
.ft-doc { display: flex; align-items: center; gap: 0.6rem; background: #fff; border: 1px solid rgba(20, 56, 58, 0.08); border-radius: 9px; padding: 0.5rem 0.7rem; font-size: 0.84rem; max-height: 44px; overflow: hidden; }
.ft-count { position: relative; font-size: 0.78rem; font-weight: 600; color: var(--sc-ink); height: 1.2em; }
.ft-count > span { position: absolute; left: 0; top: 0; }
.ft-count-b { opacity: 0; }
.ft-mini { display: flex; flex-direction: column; gap: 0.45rem; margin-top: auto; }
.ft-mini .sc-user { align-self: flex-end; font-size: 0.8rem; }
.ft-mini .sc-answer { align-self: flex-start; font-size: 0.8rem; }
.ft-mini .sc-answer p { margin: 0; }

/* 4 Einweisungen */
.ft-person { display: grid; grid-template-columns: auto 1fr 90px 3.2rem; align-items: center; gap: 0.7rem; background: #fff; border: 1px solid rgba(20, 56, 58, 0.08); border-radius: 10px; padding: 0.55rem 0.75rem; font-size: 0.85rem; }
.ft-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sc-ink); color: #fff; font-size: 0.7rem; font-weight: 700; }
.ft-pname { display: flex; flex-direction: column; line-height: 1.25; }
.ft-pname small { font-size: 0.7rem; color: var(--text-muted); }
.ft-pstate { font-size: 0.74rem; font-weight: 700; color: var(--sc-ink); text-align: right; }

/* ── Startzustände (leer) ── */
.ft-pane .f1, .ft-pane .f2, .ft-pane .f3, .ft-pane .f4, .ft-pane .f5, .ft-pane .f6,
.ft-pane .p1, .ft-pane .p2, .ft-pane .p3, .ft-pane .p4,
.ft-pane .sc-answer p, .ft-pane .sc-answer .sc-chip { opacity: 0; }
.ft-pane .ft-mini .sc-answer p { opacity: 1; }
.ft-pane .sc-bar span, .ft-pane .sc-scan span { width: 0; }
.ft-pane .sc-typing { display: none; }

/* ── Abläufe (nur im aktiven Reiter) ── */
.ft-pane.is-active .f1 { animation: scIn 0.5s ease 0.3s both; }
.ft-pane.is-active .f2 { animation: scIn 0.5s ease 0.8s both; }
.ft-pane.is-active .f3 { animation: scIn 0.5s ease 1.3s both; }
.ft-pane.is-active .f4 { animation: scIn 0.5s ease 1.8s both; }
.ft-pane.is-active .f5 { animation: scIn 0.5s ease 2.3s both; }
.ft-pane.is-active .f6 { animation: scIn 0.5s ease 4.6s both; }

/* Upload: Balken + Kategorie-Badges */
[data-pane="0"].is-active .g1 { animation: scGrow 1.1s ease 1.0s both; }
[data-pane="0"].is-active .g2 { animation: scGrow 1.1s ease 1.6s both; }
[data-pane="0"].is-active .g3 { animation: scGrow 1.1s ease 2.2s both; }
[data-pane="0"].is-active .g4 { animation: scGrow 1.4s ease 2.7s both; }
[data-pane="0"].is-active .p1 { animation: scPop 0.4s ease 2.1s both; }
[data-pane="0"].is-active .p2 { animation: scPop 0.4s ease 2.7s both; }
[data-pane="0"].is-active .p3 { animation: scPop 0.4s ease 3.3s both; }
[data-pane="0"].is-active .p4 { animation: scPop 0.4s ease 4.1s both; }

/* Prüfung: Scan, dann Funde */
[data-pane="1"].is-active .f1 { animation: scIn 0.4s ease 0.2s both; }
[data-pane="1"].is-active .g1 { animation: scGrow 2.2s ease 0.3s both; }
[data-pane="1"].is-active .f2 { animation: scPop 0.5s ease 2.6s both; }
[data-pane="1"].is-active .f3 { animation: scPop 0.5s ease 3.6s both; }
[data-pane="1"].is-active .f4 { animation: scIn 0.5s ease 4.5s both; }

/* Chat: Mikro pulsiert, "Wird erkannt", Frage, Antwort */
@keyframes ftMic { 0%, 100% { background: transparent; color: var(--text-muted); box-shadow: none; } 15%, 85% { background: #14383a; color: #fff; box-shadow: 0 0 0 6px rgba(20, 56, 58, 0.15); } }
@keyframes ftListen { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ftHide { 0%, 100% { opacity: 0; } }
[data-pane="2"].is-active .ft-mic { animation: ftMic 2.2s ease 0.4s both; }
[data-pane="2"].is-active .ft-listen { animation: ftListen 2.2s ease 0.4s both; }
[data-pane="2"].is-active .ft-placeholder { animation: ftHide 2.2s step-end 0.4s; }
[data-pane="2"].is-active .f3 { animation: scIn 0.5s ease 2.7s both; }
[data-pane="2"].is-active .f4 { animation: scIn 0.5s ease 3.4s both; }
[data-pane="2"].is-active .sc-typing { display: flex; position: absolute; left: 0.85rem; top: 0.85rem; animation: scTypeHide 1.3s linear 3.4s both; }
[data-pane="2"].is-active .sc-answer p { animation: scIn 0.45s ease 4.7s both; }
[data-pane="2"].is-active .sc-answer .sc-chip { animation: scIn 0.45s ease 5.3s both; }

/* Rechte: Umschalten auf "Lager", Dokumente klappen weg, Chat findet nichts */
@keyframes ftPill { from { left: 3px; width: var(--seg-a, 128px); } to { left: calc(100% - var(--seg-b, 58px) - 3px); width: var(--seg-b, 58px); } }
@keyframes ftToDark { to { color: var(--text); } }
@keyframes ftToLight { to { color: #fff; } }
@keyframes ftCollapse { 0% { opacity: 1; max-height: 44px; } 40% { opacity: 0; max-height: 44px; padding-top: 0.5rem; padding-bottom: 0.5rem; margin-top: 0; } 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; margin-top: -0.4rem; } }
@keyframes ftSwapOut { to { opacity: 0; } }
@keyframes ftSwapIn { to { opacity: 1; } }
[data-pane="3"].is-active .ft-seg-pill { animation: ftPill 0.5s cubic-bezier(0.22, 1, 0.36, 1) 2.0s both; }
[data-pane="3"].is-active .ft-seg-a { animation: ftToDark 0.3s ease 2.1s both; }
[data-pane="3"].is-active .ft-seg-b { animation: ftToLight 0.3s ease 2.1s both; }
[data-pane="3"].is-active .ft-doc-hide { animation: ftCollapse 0.9s ease 2.7s both; }
[data-pane="3"].is-active .ft-count-a { animation: ftSwapOut 0.3s ease 3.3s both; }
[data-pane="3"].is-active .ft-count-b { animation: ftSwapIn 0.3s ease 3.4s both; }
[data-pane="3"].is-active .f5 { animation: scIn 0.5s ease 4.6s both; }

/* Einweisungen: Personen erscheinen, Balken laufen auf unterschiedliche Stände */
@keyframes ftTo100 { from { width: 0; } to { width: 100%; } }
@keyframes ftTo75 { from { width: 0; } to { width: 75%; } }
@keyframes ftTo25 { from { width: 0; } to { width: 25%; } }
[data-pane="4"].is-active .g1 { animation: ftTo100 1.6s ease 1.0s both; }
[data-pane="4"].is-active .g2 { animation: ftTo75 1.4s ease 1.5s both; }
[data-pane="4"].is-active .g3 { animation: ftTo25 1.0s ease 2.0s both; }
[data-pane="4"].is-active .f4 { animation: scIn 0.5s ease 3.4s both; }

/* Himmel-Panel: Stichpunkte als Links zur Tour */
.copy-step-link { cursor: pointer; border-radius: 10px; margin: -0.35rem -0.6rem; padding: 0.35rem 0.6rem; transition: background 0.25s ease; }
.copy-step-link h4 { position: relative; display: inline-block; }
.copy-step-link h4::after { content: " →"; opacity: 0; transition: opacity 0.25s ease, margin-left 0.25s ease; margin-left: -0.2rem; }
.copy-step-link:hover, .copy-step-link:focus-visible { background: rgba(255, 255, 255, 0.1); outline: none; }
.copy-step-link:hover h4::after, .copy-step-link:focus-visible h4::after { opacity: 1; margin-left: 0.15rem; }
.copy-step-link:hover h4 { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }


@media (max-width: 900px) {
  .ft-pane.is-shown { grid-template-columns: 1fr; gap: 1.75rem; }
  .ft-copy { text-align: left; }
}
@media (max-width: 760px) {
  .features { padding: 3.5rem 1rem 4rem; }
  .ft-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 0.4rem; margin: 0 -1rem 1.75rem; padding-left: 1rem; padding-right: 1rem; scrollbar-width: none; }
  .ft-tab { flex: 0 0 auto; }
  .ft-stage { min-height: 0; padding: 1.25rem 0.75rem; }
  .ft-win { min-height: 0; }
}
/* ═══ KI: "So arbeitet Wisstum" komplett als dunkler App-Bereich (Dark-Mode-
   Werte aus app theme.css). Fenster hier ebenfalls im App-Dark-Look, damit
   sich der Bereich optisch vom hellen Hero-Showcase unterscheidet. ═══ */
.features {
  position: relative;
  background: #1a1916;

  color: #f0ebe3;
}
.features h2 { color: #f0ebe3; }
.features-sub, .features .ft-copy p { color: #a8a295; }
.features .ft-copy h3 { color: #f0ebe3; }
.features .ft-points { color: #f0ebe3; }
.features .ft-points li::before { border-color: #578080; }
.features ::selection { background: #578080; color: #fff; }

/* Reiter im App-Stil */
.features .ft-tab { color: #a8a295; background: #222018; border-color: #332f29; }
.features .ft-tab:hover { color: #f0ebe3; border-color: #578080; }
.features .ft-tab.is-active { color: #fff; background: #578080; border-color: #578080; }

/* Bühne: kein zweiter dunkler Rahmen, nur ein weicher Lichtschein */
.features .ft-stage { background: none; border: none; }
.features .ft-stage::before, .features .ft-stage::after { display: none; }

/* Fenster im App-Dark-Mode, Funktionsfarbe nur als Akzent */
.features .ft-win {
  --d-surface: #222018; --d-raise: #2b2823; --d-border: #332f29;
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  color: #f0ebe3;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
}
.features .ft-green { --sc-ink: #6fa3a3; --sc-tint: rgba(87, 128, 128, 0.18); }
.features .ft-blue  { --sc-ink: #86a6dc; --sc-tint: rgba(134, 166, 220, 0.14); }
.features .ft-red   { --sc-ink: #e0786d; --sc-tint: rgba(224, 87, 74, 0.14); }
.features .ft-sand  { --sc-ink: #d9ab48; --sc-tint: rgba(217, 171, 72, 0.14); }
.features .ft-lilac { --sc-ink: #a995d6; --sc-tint: rgba(169, 149, 214, 0.15); }
.features .ft-win .sc-head { background: #1f1d19; border-bottom-color: var(--d-border); }
.features .ft-win .sc-dots i { background: #3a352e; }
.features .ft-win .sc-url, .features .ft-win .sc-sub, .features .ft-win .ft-pname small,
.features .ft-win .sc-src, .features .ft-win .ft-suggest, .features .ft-win .ft-viewlabel,
.features .ft-stats { color: #a8a295; }
.features .ft-win .sc-file, .features .ft-win .ft-finding, .features .ft-win .ft-doc,
.features .ft-win .ft-person, .features .ft-win .sc-answer, .features .ft-win .sc-input {
  background: var(--d-raise); border-color: var(--d-border); color: #f0ebe3;
}
.features .ft-win .sc-answer p, .features .ft-win .ft-quote { color: #f0ebe3; }
.features .ft-win .ft-quote { background: var(--sc-tint); }
.features .ft-win .sc-user { background: #578080; color: #fff; }
.features .ft-win .sc-send { background: #578080; }
.features .ft-win .sc-chip { background: rgba(87, 128, 128, 0.2); color: #9cc4c4; }
.features .ft-win .sc-bar, .features .ft-win .sc-scan { background: rgba(240, 235, 227, 0.08); }
.features .ft-win .ft-drop { background: rgba(240, 235, 227, 0.03); border-color: rgba(134, 166, 220, 0.35); color: #a8a295; }
.features .ft-win .ft-stats, .features .ft-win .ft-summary, .features .ft-win .sc-foot { border-top-color: var(--d-border); }
.features .ft-win .ft-avatar { color: #1a1916; }
.features .ft-win .ft-badge-red { background: #e0574a; }
.features .ft-win .ft-badge-amber { background: rgba(217, 171, 72, 0.2); color: #d9ab48; }
.features .ft-win .ft-quote mark { background: rgba(224, 87, 74, 0.25); color: #f3a59c; }
.features .ft-win .ft-seg { background: #1f1d19; border-color: var(--d-border); }
.features .ft-win .ft-seg > span:not(.ft-seg-pill) { color: #f0ebe3; }
.features .ft-win .ft-seg > span.ft-seg-a { color: #1a1916; }
.features .ft-win .ft-seg-pill { background: var(--sc-ink); }
@keyframes ftToDarkD { to { color: #f0ebe3; } }
@keyframes ftToLightD { to { color: #1a1916; } }
.features [data-pane="3"].is-active .ft-seg-a { animation: ftToDarkD 0.3s ease 2.1s both; }
.features [data-pane="3"].is-active .ft-seg-b { animation: ftToLightD 0.3s ease 2.1s both; }
@keyframes ftMicD { 0%, 100% { background: transparent; color: #a8a295; box-shadow: none; } 15%, 85% { background: #578080; color: #fff; box-shadow: 0 0 0 6px rgba(87, 128, 128, 0.25); } }
.features [data-pane="2"].is-active .ft-mic { animation: ftMicD 2.2s ease 0.4s both; }
.features .ft-win .sc-mic, .features .ft-win .ft-input { color: #a8a295; }
/* ═══ KI: Variante A – kein Fenster mehr. Die App-Bausteine schweben
   einzeln und leicht gestaffelt auf dem dunklen Grund (App-Dark-Werte:
   Fläche #222018, Rand #332f29, Radius 12px). ═══ */
.features .ft-win { background: none; border: none; box-shadow: none; overflow: visible; max-width: 500px; min-height: 0; }
.features .ft-win .sc-head { display: none; }
.features .ft-win .sc-title { font-size: 1.35rem; margin-bottom: 0.2rem; }

/* Jeder Baustein = eigene schwebende App-Fläche */
.features .ft-win .sc-file, .features .ft-win .ft-finding, .features .ft-win .ft-doc,
.features .ft-win .ft-person, .features .ft-win .sc-answer, .features .ft-win .sc-input,
.features .ft-win .ft-drop, .features .ft-win .ft-seg {
  background: #222018;
  border: 1px solid #332f29;
  border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(240, 235, 227, 0.04);
}
.features .ft-win .sc-file, .features .ft-win .ft-person, .features .ft-win .ft-doc { padding: 0.7rem 0.9rem; }
.features .ft-win .sc-user { box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.8); }

/* Fußzeilen ohne Linie, frei stehend */
.features .ft-win .ft-stats, .features .ft-win .ft-summary, .features .ft-win .sc-foot { border-top: none; margin-top: 0.4rem; }
.features .ft-win .ft-stats { justify-content: flex-start; gap: 1.4rem; }
.features .ft-win .ft-chat { flex: 0 0 auto; }
.features .ft-win .ft-mini { margin-top: 0.4rem; }

@media (max-width: 760px) {
  .features .ft-win .sc-file, .features .ft-win .ft-person, .features .ft-lib .ft-doc,
  .features .ft-win .ft-finding { margin-left: 0 !important; margin-right: 0 !important; }
}
/* ═══ KI: Einheitliche Schriften auf der ganzen Seite:
   Überschriften = Plus Jakarta Sans, Fließtext = Lora (wie im Hero). ═══ */
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
.features .ft-copy h3 { font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -0.01em; }
.features .ft-points { font-family: "Lora", Georgia, serif; }

/* ═══ KI: Funktions-Ansichten nah an der echten App (Screenshots
   Bibliothek / Chat / Mitarbeiter & Rollen), jede als gerahmter Bereich in
   der Themenfarbe. Keine Versetzung, kein freies Schweben. ═══ */
.features .ft-win {
  display: flex; flex-direction: column; gap: 0.7rem;
  max-width: 520px; min-height: 450px;
  padding: 1.4rem 1.5rem;
  background: #1a1916;
  border: 1.5px solid var(--sc-ink);
  border-radius: 18px;
  box-shadow: 0 0 0 6px var(--sc-tint);
  overflow: hidden;
}
.features .ft-stage { min-height: 0; padding: 1rem 0; }
.features .ft-win .ap-row, .features .ft-win .ft-person, .features .ft-lib .ft-doc,
.features .ft-win .ft-finding { margin-left: 0 !important; margin-right: 0 !important; }
.features .ft-win .ap-row, .features .ft-win .ft-finding, .features .ft-win .ft-doc,
.features .ft-win .ft-person, .features .ft-win .sc-input, .features .ft-win .ft-drop,
.features .ft-win .ft-seg { box-shadow: none; }

/* App-Bausteine */
.ap-head { display: flex; align-items: center; gap: 0.75rem; font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 700; font-size: 1.15rem; color: #f0ebe3; }
.ap-back { width: 32px; height: 32px; border-radius: 8px; background: #2b2823; display: grid; place-items: center; flex: 0 0 auto; }
.ap-back svg, .ap-icon svg { width: 15px; height: 15px; fill: none; stroke: #a8a295; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ap-head .ft-seg { margin-left: auto; font-size: 0.74rem; }
.ap-desc { font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Arial, sans-serif; font-size: 0.8rem; line-height: 1.5; color: #a8a295; }
.ap-search { border: 1px solid #332f29; border-radius: 9px; padding: 0.55rem 0.8rem; font-size: 0.85rem; color: #8d887d; }
.features .ft-win .ap-row, .features .ft-win .ft-doc {
  display: grid; align-items: center; gap: 0.7rem;
  background: #24221d; border: none; border-radius: 10px;
  padding: 0 0.9rem; height: 46px; font-size: 0.84rem; color: #f0ebe3;
}
.features .ft-win .ap-row { grid-template-columns: 1fr 80px auto; }
.features .ft-win .ft-doc { grid-template-columns: 1fr auto; max-height: 46px; }
.ap-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-btn { background: #2e2b26; color: #a8a295; border-radius: 8px; padding: 0.3rem 0.8rem; font-size: 0.78rem; }
@keyframes ftCollapse { 0% { opacity: 1; max-height: 46px; } 40% { opacity: 0; max-height: 46px; margin-top: 0; } 100% { opacity: 0; max-height: 0; height: 0; margin-top: -0.4rem; } }

/* Chat wie in der App: Frage grau rechts, Antwort frei in Lora, Meta-Zeilen */
.features .ft-win-chat { justify-content: space-between; }
.ap-chat { display: flex; flex-direction: column; gap: 1rem; padding-top: 0.5rem; }
.ap-q { align-self: flex-end; max-width: 85%; background: #2b2823; color: #c9c3b8; border-radius: 14px; padding: 0.5rem 0.95rem; font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Arial, sans-serif; font-size: 0.86rem; }
.ap-a { position: relative; align-self: stretch; min-height: 2rem; }
.ap-atext { font-family: "Lora", Georgia, serif; font-size: 0.98rem; line-height: 1.55; color: #f0ebe3; margin: 0 0 0.5rem; }
.ap-meta { display: flex; flex-direction: column; gap: 0.3rem; font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Arial, sans-serif; font-size: 0.7rem; color: #a8a295; }
.ap-meta u { text-underline-offset: 2px; }
.ap-a-miss { border-left: 3px solid #e0574a; padding-left: 0.85rem; }
.ap-miss { display: block; font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Arial, sans-serif; font-size: 0.72rem; color: #e0574a; margin-bottom: 0.3rem; }
.features .ft-win .ap-a-miss .ap-atext { font-size: 0.86rem; margin: 0; }
.features .ft-win .sc-input { margin-top: 1rem; background: #24221d; border: 1px solid #332f29; }
.features .ft-win .ft-mini { gap: 0.6rem; margin-top: 0.3rem; }

/* Rollen-Kachel wie "Mitarbeiter & Rollen" */
.ap-card { background: #24221d; border-radius: 12px; padding: 0.85rem 0.95rem; display: flex; flex-direction: column; gap: 0.2rem; }
.ap-card-head { display: flex; align-items: center; gap: 0.7rem; font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Arial, sans-serif; }
.ap-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(87, 128, 128, 0.15); display: grid; place-items: center; }
.ap-icon svg { stroke: #578080; }
.ap-card-title { font-weight: 700; font-size: 0.95rem; color: #f0ebe3; }
.ap-card-title small { font-weight: 500; color: #a8a295; }
.ap-chev { margin-left: auto; color: #a8a295; }
.ap-card-sub { font-size: 0.76rem; color: #a8a295; margin: 0.2rem 0 0.4rem; padding-bottom: 0.5rem; border-bottom: 1px solid #332f29; }
.features .ft-win .ap-card .ft-person { background: transparent; border: none; border-radius: 0; padding: 0.5rem 0; }

/* Rollen-Name in der Beschreibung tauscht mit */
.ft-role { display: inline-grid; }
.ft-role > span { grid-area: 1 / 1; }
.ft-role-b { opacity: 0; }
[data-pane="3"].is-active .ft-role-a { animation: ftSwapOut 0.3s ease 2.1s both; }
[data-pane="3"].is-active .ft-role-b { animation: ftSwapIn 0.3s ease 2.2s both; }

/* Chat-Ablauf */
.ft-pane .ap-a .ap-atext, .ft-pane .ap-a .ap-meta { opacity: 0; }
.ft-pane .ft-mini .ap-atext { opacity: 1; }
[data-pane="2"].is-active .sc-typing { left: 0; top: 0.35rem; }
[data-pane="2"].is-active .ap-atext { animation: scIn 0.45s ease 4.7s both; }
[data-pane="2"].is-active .ap-meta { animation: scIn 0.45s ease 5.3s both; }
/* ═══ KI: Feinschliff Funktions-Bereich ═══ */
/* Fenster: nur minimal heller als der Bereich, dezenter Rand in Themenfarbe */
.features .ft-win {
  background: #1f1e1a;
  border: 1px solid color-mix(in srgb, var(--sc-ink) 38%, transparent);
  box-shadow: none;
}
.features .ft-win .ap-row, .features .ft-win .ft-doc, .features .ft-win .ap-card,
.features .ft-win .ft-finding { background: #282620; }
.features .ft-win .sc-input { background: #282620; }

/* Feste Höhe: der Bereich springt beim Reiterwechsel nicht */
@media (min-width: 901px) {
  .ft-panes { height: 540px; }
  .ft-pane.is-shown { height: 100%; }
  .features .ft-win { height: 490px; min-height: 0; }
}

/* Dezente Trennlinien über und unter den Reitern */
.features .ft-tabs {
  border-top: 1px solid rgba(240, 235, 227, 0.08);
  border-bottom: 1px solid rgba(240, 235, 227, 0.08);
  padding: 1.1rem 0;
  margin-bottom: 2.6rem;
}

/* Logo-W in "So arbeitet Wisstum" */
.ft-brand { white-space: nowrap; }
.ft-brand .logo-mark { height: 0.82em; width: auto; vertical-align: baseline; margin-right: 0.02em; }
/* KI: Trennlinien über volle Fensterbreite (randlos) */
.features .ft-tabs { position: relative; border-top: none; border-bottom: none; }
.features .ft-tabs::before, .features .ft-tabs::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(240, 235, 227, 0.08);
  pointer-events: none;
}
.features .ft-tabs::before { top: 0; }
.features .ft-tabs::after { bottom: 0; }
@media (max-width: 760px) {
  .features .ft-tabs::before, .features .ft-tabs::after { position: fixed; display: none; }
  .features .ft-tabs { border-top: 1px solid rgba(240, 235, 227, 0.08); border-bottom: 1px solid rgba(240, 235, 227, 0.08); }
}
/* KI-Bugfix: Rollenname wechselt ohne Leerraum ("Lager" statt "Lager   ") */
.ft-role { display: inline-flex; vertical-align: bottom; }
.ft-role > span { grid-area: auto; display: inline-block; overflow: hidden; white-space: nowrap; }
.ft-role-a { max-width: 6em; }
.ft-role-b { max-width: 0; opacity: 0; }
@keyframes ftRoleOut { to { max-width: 0; opacity: 0; } }
@keyframes ftRoleIn { to { max-width: 6em; opacity: 1; } }
[data-pane="3"].is-active .ft-role-a { animation: ftRoleOut 0.35s ease 2.1s both; }
[data-pane="3"].is-active .ft-role-b { animation: ftRoleIn 0.35s ease 2.1s both; }

/* ═══ KI: Fixes & Ergänzungen Funktions-Bereich ═══ */

/* Bugfix: Bei "Animationen reduzieren" sofort den fertigen Zustand zeigen
   (statt Animationen abzuschalten, wodurch Inhalte unsichtbar blieben). */
@media (prefers-reduced-motion: reduce) {
  .sc-card, .sc-card *, .ft-pane, .ft-pane * {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
  .ft-tab-bar { animation: none !important; }
}

/* Bugfix: Chat-Antwort im Rechte-Beispiel belegt erst Platz, wenn sie
   erscheint (sonst wird das Fenster unten abgeschnitten). */
.features [data-pane="3"] .ft-mini { max-height: 0; overflow: hidden; margin-top: 0; }
@keyframes ftMiniIn { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 220px; } }
.features [data-pane="3"].is-active .ft-mini { animation: ftMiniIn 0.7s ease 4.4s both; }

/* Autoplay-Pause: Fortschrittsbalken friert ein */
.features.is-paused .ft-tab.is-playing .ft-tab-bar { animation-play-state: paused; }

/* Reiterleiste bricht bei mittleren Breiten nicht um */
@media (max-width: 1150px) {
  .features .ft-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .features .ft-tabs::-webkit-scrollbar { display: none; }
  .features .ft-tab { flex: 0 0 auto; font-size: 0.86rem; padding: 0.55rem 0.95rem; }
}
@media (min-width: 761px) and (max-width: 1150px) {
  .features .ft-tabs { justify-content: center; }
}

/* Datenschutz-Hinweis */
.ft-privacy {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem; flex-wrap: wrap;
  margin: 2.6rem auto 0; max-width: 760px; text-align: center;
  font-family: "Lora", Georgia, serif; font-size: 0.92rem; color: #a8a295;
}
.ft-privacy svg { width: 16px; height: 16px; fill: none; stroke: #7fb0b0; stroke-width: 1.8; stroke-linejoin: round; flex: 0 0 auto; }
.ft-privacy a { color: #7fb0b0; text-decoration: underline; text-underline-offset: 3px; }

/* Abschluss: Satz + Button */
.ft-cta {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  margin-top: 2.6rem; padding-top: 2.6rem; text-align: center;
}
.ft-cta::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 1px;
  transform: translateX(-50%); background: rgba(240, 235, 227, 0.08);
}
.ft-cta-line { font-family: "Lora", Georgia, serif; font-size: 1.15rem; color: #f0ebe3; margin: 0; }
.ft-eurem { color: #7fb0b0; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
.ft-cta-btn {
  background: #f0ebe3; color: #1a1916; border: 1px solid #f0ebe3;
  padding: 0.75rem 1.4rem; font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 700;
}
.ft-cta-btn:hover { background: #fff; border-color: #fff; }

/* Mehr Luft zwischen dunklem Bereich und Marmor-Abschluss */
.features + .cta-video-outer { padding-top: 0; }
@media (max-width: 760px) {
  .features + .cta-video-outer { padding-top: 0; }
  .ft-cta::before { width: 100%; }
}
/* KI: Pfeil statt Button unter "Wisstum passt sich eurem Unternehmen an." */
.ft-cta-arrow {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  color: #f0ebe3; border: 1px solid rgba(240, 235, 227, 0.25);
  animation: bob 2s ease-in-out infinite;
  transition: background 0.2s, border-color 0.2s;
}
.ft-cta-arrow:hover { background: rgba(240, 235, 227, 0.08); border-color: rgba(240, 235, 227, 0.5); }
@keyframes ftBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.ft-cta-arrow { animation-name: ftBob; }

/* KI: Hintergrund hinter der Marmor-Karte etwas dunkler als der Seiten-Creme */
.cta-video-outer { background: #1a1916; } /* KI: dunkel bis zum Footer, nahtlos an 'So arbeitet Wisstum' */
/* KI-Bugfix: Lange Überschriften auf Rechtsseiten (z.B. "Datenschutzerklärung")
   passen in die schmale Textspalte, statt abgeschnitten zu werden. */
.legal-page h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.2; hyphens: auto; -webkit-hyphens: auto; }
/* KI: weniger Abstand unter dem Pfeil, Marmor-Karte rückt näher heran */
.features { padding-bottom: 3rem; }

/* KI: 'Demo buchen'-Buttons mit abgeschrägten Ecken (Fase).
   Bugfix: Die Fase wird NICHT mehr per clip-path auf dem Button selbst
   geschnitten (das hat die goldene Hover-Umrandung mit abgeschnitten),
   sondern nur auf einer Hintergrund-Ebene (::before). Die SVG-Umrandung
   liegt darüber und bleibt vollständig sichtbar. */
.btn-demo {
  border-radius: 0;
  background: transparent !important;
  border-color: transparent !important;
  isolation: isolate;
}
.btn-demo::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--text);
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
  transition: background 0.2s ease;
}
.btn-demo:hover::before { background: #000; }

/* KI-Bugfix 2: Hintergrund-Fase und goldene Linie beziehen sich jetzt exakt
   auf dieselbe Box (kein Rand mehr, der je nach Button 0 oder 1px breit war). */
.btn-demo { border: 0 !important; }
.btn-small.btn-demo { padding: calc(0.5rem + 1px) calc(1rem + 1px); }
.btn-demo::before { inset: 0; }
.btn-demo .btn-demo-outline { inset: 0; width: 100%; height: 100%; }
.btn-demo-outline path { stroke-linejoin: miter; }
/* KI-Bugfix 3: Bei krummen Pixelwerten (z.B. Header-Button endet bei x.5 px) blitzte
   am Rand ein schwarzer Saum neben der goldenen Linie auf. Der Hintergrund liegt
   jetzt 1px innerhalb der Linie, sodass sie ihn an jeder Kante vollständig überdeckt. */
.btn-demo::before { inset: 1px; }

/* KI: Alle Buttons der Seite fast eckig, nur ganz leicht abgerundet (3px).
   Gilt für normale Buttons, die Buttons im Himmel-Bereich, die "Für wen?"-
   Kärtchen und die Reiter in "So arbeitet Wisstum". Die Buttons innerhalb
   der App-Beispiele bleiben bewusst wie in der echten App. */
.btn, .copy-btn, .fit-chip, .features .ft-tab { border-radius: 5px; }