/* ==========================================================================
   EDITORIAL DESIGN UNIFICATION & SCROLLYTELLING 2026 (scrolly.css)
   Einheitliche Gestaltungssprache nach dem Vorbild von „Drei Schichten“:
   - Hell, offen, großzügig und redaktionell (#F7F8FA / #FFFFFF)
   - Gedämpftes Bordeaux als edler Akzent (--accent-h: 338, hsl(338 65% 28%))
   - Feine kreisrunde Nummerierungen (01, 02, 03)
   - Zweistimmige Typografie: klare Inter + kursive Cormorant Garamond in Bordeaux
   - Weiche, physische Tiefe statt dunkler Admin-/Dashboard-Kästen
   ========================================================================== */

:root {
  --sc-p: 0;
  --sc-scan-x: 68;
  --sc-akzent: var(--t-accent, hsl(var(--accent-h, 338) 65% 28%));
  --sc-akzent-vivid: var(--t-accent-vivid, hsl(var(--accent-h, 338) 62% 34%));
  --sc-akzent-wash: color-mix(in srgb, var(--sc-akzent) 7%, transparent);
  --sc-akzent-border: color-mix(in srgb, var(--sc-akzent) 36%, transparent);
  --sc-paper: var(--t-paper, #F7F8FA);
  --sc-surface: var(--t-panel, #FFFFFF);
  --sc-surface-soft: color-mix(in srgb, var(--sc-akzent) 3%, #FFFFFF);
  --sc-ink: var(--t-ink, #0F172A);
  --sc-muted: var(--t-ink-2, #475569);
  --sc-border: rgba(15, 23, 42, 0.09);
  --sc-shadow: 0 18px 42px -22px rgba(15, 23, 42, 0.09);
  --sc-shadow-lift: 0 24px 52px -22px color-mix(in srgb, var(--sc-akzent) 16%, rgba(15, 23, 42, 0.12));
}

html[data-mode="dark"] {
  --sc-akzent: var(--t-accent, hsl(var(--accent-h, 338) 72% 68%));
  --sc-akzent-vivid: var(--t-accent-vivid, hsl(var(--accent-h, 338) 74% 62%));
  --sc-akzent-wash: color-mix(in srgb, var(--sc-akzent) 12%, transparent);
  --sc-akzent-border: color-mix(in srgb, var(--sc-akzent) 42%, transparent);
  --sc-paper: #0B0C10;
  --sc-surface: #14161D;
  --sc-surface-soft: #181B24;
  --sc-ink: #F4F4F6;
  --sc-muted: #94A3B8;
  --sc-border: rgba(255, 255, 255, 0.10);
  --sc-shadow: 0 22px 48px -24px rgba(0, 0, 0, 0.55);
  --sc-shadow-lift: 0 26px 56px -22px rgba(0, 0, 0, 0.65);
}

/* ==========================================================================
   1. SEKTION 1 · DAS PROBLEM / SUCHEN
   Redaktioneller Digital-Filter im Hero-Vergleich + Offene Ordnungs-Tafel
   ========================================================================== */

.sw-vergleich[data-sc-scanner] {
  position: relative;
}

.sc-scan-hud {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.65rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font: 500 0.74rem/1.3 var(--font-main, 'Inter', sans-serif);
  letter-spacing: 0.01em;
  background: var(--sc-surface);
  color: var(--sc-ink);
  border: 1px solid var(--sc-akzent-border);
  box-shadow: 0 8px 22px -12px rgba(15, 23, 42, 0.12);
}

.sc-scan-hud__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sc-akzent);
  box-shadow: 0 0 0 3px var(--sc-akzent-wash);
  flex-shrink: 0;
}

.sw-vergleich[data-sc-scanner] .sw-vergleich__griff {
  width: 2px;
  background: var(--sc-akzent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--sc-akzent) 35%, transparent);
}

/* Redaktionelle Ordnungs-Tafel (auf /leistungen, /leistung-digital-check, /leistung-wiki, /wissen) */
.sc-chaos-box {
  position: relative;
  margin: 1.5rem 0;
  padding: 1.35rem 1.45rem;
  border-radius: 16px;
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  box-shadow: var(--sc-shadow);
  overflow: hidden;
}

.sc-chaos-box__beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--sc-p, 0.5) * 100%);
  width: 1.5px;
  background: linear-gradient(180deg, transparent, var(--sc-akzent), transparent);
  box-shadow: 0 0 24px 4px var(--sc-akzent-wash);
  pointer-events: none;
  z-index: 3;
}

.sc-chaos-box__kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font: 600 0.74rem/1.2 var(--font-main, 'Inter', sans-serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sc-muted);
}

.sc-chaos-box__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: var(--sc-akzent-wash);
  border: 1px solid var(--sc-akzent-border);
  color: var(--sc-akzent);
  font-weight: 600;
}

.sc-chaos-box__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sc-akzent);
}

.sc-chaos-box__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sc-chaos-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: var(--sc-paper);
  border: 1px solid var(--sc-border);
  font-size: 0.84rem;
  color: var(--sc-ink);
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.sc-chaos-item:nth-child(1) {
  transform: translate3d(calc((1 - var(--sc-p, 1)) * -10px), calc((1 - var(--sc-p, 1)) * 5px), 0) rotate(calc((1 - var(--sc-p, 1)) * -1.8deg));
}
.sc-chaos-item:nth-child(2) {
  transform: translate3d(calc((1 - var(--sc-p, 1)) * 12px), calc((1 - var(--sc-p, 1)) * -4px), 0) rotate(calc((1 - var(--sc-p, 1)) * 1.6deg));
}
.sc-chaos-item:nth-child(3) {
  transform: translate3d(calc((1 - var(--sc-p, 1)) * -8px), calc((1 - var(--sc-p, 1)) * -5px), 0) rotate(calc((1 - var(--sc-p, 1)) * 1.4deg));
}
.sc-chaos-item:nth-child(4) {
  transform: translate3d(calc((1 - var(--sc-p, 1)) * 9px), calc((1 - var(--sc-p, 1)) * 6px), 0) rotate(calc((1 - var(--sc-p, 1)) * -1.5deg));
}

.sc-chaos-item__raw,
.sc-chaos-item__name {
  font: 500 0.8rem/1.35 var(--font-main, 'Inter', sans-serif);
  color: var(--sc-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-chaos-item__sub {
  display: block;
  font: 400 0.72rem/1.3 var(--font-main, 'Inter', sans-serif);
  color: var(--sc-muted);
}

.sc-chaos-item__tag,
.sc-chaos-item__state {
  flex: none;
  font: 600 0.7rem/1 var(--font-main, 'Inter', sans-serif);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  color: var(--sc-akzent);
  background: var(--sc-akzent-wash);
  border: 1px solid var(--sc-akzent-border);
}

.sc-chaos-item__badge {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  height: 1.6rem;
  padding: 0 0.45rem;
  border-radius: 6px;
  font: 600 0.66rem/1 var(--font-mono, monospace);
  color: var(--sc-akzent);
  background: var(--sc-akzent-wash);
  border: 1px solid var(--sc-akzent-border);
}

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

/* ==========================================================================
   2. SEKTION 2 · DER WEG / WECHSELN („Alles an einem Ort“)
   Strukturell neu gestaltet: Offenes redaktionelles Triptychon ohne dunklen
   Balken! Freistehende helle Karten mit feinen Kreis-Nummern (01–04),
   gestrichelter Bordeaux-Verbindungslinie und Serif-Kursiv-Akzenten.
   ========================================================================== */

.sc-flyin-stage {
  position: relative;
  margin: 2.2rem 0 2.8rem;
  padding: 0.25rem 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

/* Feine gestrichelte Verbindungslinie wie in .sw-schichten */
.sc-flyin-stage::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 0;
  border-top: 1.5px dashed color-mix(in srgb, var(--sc-akzent) 38%, transparent);
  pointer-events: none;
  z-index: 0;
}

.sc-flyin-stage__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1.18fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.85rem);
  align-items: center;
}

/* Unterstützung für direkte 3-Spalten-Kinder (.sc-flyin-wing + .sc-flyin-hub) auf Unterseiten */
.sc-flyin-stage:not(:has(.sc-flyin-stage__grid)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1.18fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.85rem);
  align-items: center;
}

.sc-flyin-wing {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sc-flyin-pill,
.sc-flyin-chip {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  box-shadow: var(--sc-shadow);
  color: var(--sc-ink);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.sc-flyin-pill:hover,
.sc-flyin-chip:hover {
  border-color: var(--sc-akzent-border);
  box-shadow: var(--sc-shadow-lift);
}

.sc-flyin-wing--left .sc-flyin-pill:nth-child(1),
.sc-flyin-wing--left .sc-flyin-chip:nth-child(1) {
  transform: translate3d(calc((1 - var(--sc-p, 1)) * -26px), calc((1 - var(--sc-p, 1)) * -6px), 0);
}
.sc-flyin-wing--left .sc-flyin-pill:nth-child(2),
.sc-flyin-wing--left .sc-flyin-chip:nth-child(2) {
  transform: translate3d(calc((1 - var(--sc-p, 1)) * -18px), calc((1 - var(--sc-p, 1)) * 6px), 0);
}
.sc-flyin-wing--right .sc-flyin-pill:nth-child(1),
.sc-flyin-wing--right .sc-flyin-chip:nth-child(1) {
  transform: translate3d(calc((1 - var(--sc-p, 1)) * 26px), calc((1 - var(--sc-p, 1)) * -6px), 0);
}
.sc-flyin-wing--right .sc-flyin-pill:nth-child(2),
.sc-flyin-wing--right .sc-flyin-chip:nth-child(2) {
  transform: translate3d(calc((1 - var(--sc-p, 1)) * 18px), calc((1 - var(--sc-p, 1)) * 6px), 0);
}

/* Feine Kreis-Nummer exakt wie .sw-schichten__nr */
.sc-flyin-pill__nr,
.sc-flyin-chip__icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sc-akzent) 45%, transparent);
  background: color-mix(in srgb, var(--sc-akzent) 5%, var(--sc-surface));
  color: var(--sc-akzent);
  font: 600 0.82rem/1 var(--font-main, 'Inter', sans-serif);
  flex-shrink: 0;
}

.sc-flyin-pill__body,
.sc-flyin-chip__text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.sc-flyin-pill__body strong,
.sc-flyin-chip__text b {
  font: 600 1rem/1.28 var(--font-main, 'Inter', sans-serif);
  color: var(--sc-ink);
}

.sc-flyin-pill__body strong em,
.sc-flyin-chip__text b em {
  color: var(--sc-akzent);
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.22em;
}

.sc-flyin-pill small,
.sc-flyin-chip__text small {
  font: 400 0.84rem/1.4 var(--font-main, 'Inter', sans-serif);
  color: var(--sc-muted);
}

/* Das zentrale Herzstück: hell, offen, redaktionell statt grell-pinkem Block */
.sc-flyin-core,
.sc-flyin-hub {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.55rem 1.65rem;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--sc-surface) 0%, var(--sc-surface-soft) 100%);
  border: 1px solid var(--sc-akzent-border);
  box-shadow: var(--sc-shadow-lift);
  transform: translateY(calc((1 - var(--sc-p, 1)) * 8px));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sc-flyin-core__nr {
  display: inline-grid;
  place-items: center;
  height: 2.2rem;
  padding: 0 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sc-akzent) 45%, transparent);
  background: var(--sc-akzent-wash);
  color: var(--sc-akzent);
  font: 600 0.78rem/1 var(--font-main, 'Inter', sans-serif);
}

.sc-flyin-core__eyebrow,
.sc-flyin-hub__badge {
  font: 600 0.68rem/1.2 var(--font-main, 'Inter', sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sc-akzent);
  margin-bottom: 0.35rem;
}

.sc-flyin-core__title,
.sc-flyin-hub__title {
  font: 650 clamp(1.18rem, 1.6vw, 1.38rem)/1.25 var(--font-main, 'Inter', sans-serif);
  color: var(--sc-ink);
  letter-spacing: -0.015em;
}

.sc-flyin-core__title em,
.sc-flyin-hub__title em {
  color: var(--sc-akzent);
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.24em;
}

.sc-flyin-core__sub,
.sc-flyin-hub__sub {
  margin-top: 0.45rem;
  font: 400 0.9rem/1.55 var(--font-main, 'Inter', sans-serif);
  color: var(--sc-muted);
}

@media (max-width: 900px) {
  .sc-flyin-stage::before {
    display: none;
  }
  .sc-flyin-stage__grid,
  .sc-flyin-stage:not(:has(.sc-flyin-stage__grid)) {
    grid-template-columns: 1fr;
  }
  .sc-flyin-wing {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sc-flyin-pill,
  .sc-flyin-chip {
    flex: 1 1 220px;
    transform: none !important;
  }
}

/* ==========================================================================
   3. SEKTION 3 · DAS HAUPTPRODUKT / EIGENE SOFTWARE („Deine Software“)
   Redaktionelle Schichten-Karten (Daten, Quelltext, Unabhängigkeit)
   ========================================================================== */

.sc-layers-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.65rem 0;
}

.sc-layer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem 1.3rem;
  border-radius: 16px;
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  box-shadow: var(--sc-shadow);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.sc-layer-card:hover {
  transform: translateY(-3px);
  border-color: var(--sc-akzent-border);
}

.sc-layer-card.is-active {
  transform: translateY(-5px);
  background: linear-gradient(180deg, var(--sc-surface) 0%, var(--sc-surface-soft) 100%);
  border-color: color-mix(in srgb, var(--sc-akzent) 52%, transparent);
  box-shadow: var(--sc-shadow-lift);
}

.sc-layer-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.sc-layer-card__nr,
.sc-layer-card__num {
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sc-akzent) 45%, transparent);
  background: color-mix(in srgb, var(--sc-akzent) 5%, var(--sc-surface));
  color: var(--sc-akzent);
  font: 600 0.78rem/1 var(--font-main, 'Inter', sans-serif);
  align-self: flex-start;
}

.sc-layer-card__badge {
  font: 500 0.7rem/1 var(--font-main, 'Inter', sans-serif);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--sc-akzent-wash);
  color: var(--sc-akzent);
}

.sc-layer-card__title {
  font: 650 1.05rem/1.28 var(--font-main, 'Inter', sans-serif);
  color: var(--sc-ink);
}

.sc-layer-card__title em {
  color: var(--sc-akzent);
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.22em;
}

.sc-layer-card__desc,
.sc-layer-card__meta {
  font: 400 0.86rem/1.5 var(--font-main, 'Inter', sans-serif);
  color: var(--sc-muted);
}

@media (max-width: 780px) {
  .sc-layers-deck {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   4. SEKTION 4 · DIE VERBINDUNG / AUTOMATISIERUNG („Nichts mehr abtippen“)
   Redaktionelles Prozess-Schaubild mit feiner Bordeaux-Vektorlinie
   ========================================================================== */

.sc-flow-graph {
  position: relative;
  margin: 1.75rem 0 2.1rem;
  padding: 1.5rem 1.65rem;
  border-radius: 18px;
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  box-shadow: var(--sc-shadow);
}

.sc-flow-graph__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.sc-flow-graph__head > span:first-child {
  font: 600 0.72rem/1.2 var(--font-main, 'Inter', sans-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sc-muted);
}

.sc-flow-graph__head b,
.sc-flow-graph__badge {
  font: 600 1.02rem/1.3 var(--font-main, 'Inter', sans-serif);
  color: var(--sc-ink);
}

.sc-flow-graph__head b em {
  color: var(--sc-akzent);
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.24em;
}

.sc-flow-graph__svg {
  display: block;
  width: 100%;
  height: 58px;
  overflow: visible;
}

.sc-flow-graph__edge {
  fill: none;
  stroke: color-mix(in srgb, var(--sc-akzent) 24%, transparent);
  stroke-width: 2;
  stroke-dasharray: 4 6;
}

.sc-flow-graph__edge-active {
  fill: none;
  stroke: var(--sc-akzent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 360;
  stroke-dashoffset: calc(360 - var(--sc-p, 0.65) * 360);
  transition: stroke-dashoffset 0.15s linear;
}

.sc-flow-graph__station,
.sc-flow-graph__node {
  fill: var(--sc-surface);
  stroke: color-mix(in srgb, var(--sc-akzent) 55%, transparent);
  stroke-width: 2;
}

.sc-flow-graph__station--mid {
  fill: color-mix(in srgb, var(--sc-akzent) 10%, var(--sc-surface));
  stroke: var(--sc-akzent);
  stroke-width: 2.2;
}

.sc-flow-graph__packet,
.sc-flow-graph__pulse {
  fill: var(--sc-akzent);
}

.sc-flow-graph__packet-ring,
.sc-flow-graph__pulse-ring {
  fill: color-mix(in srgb, var(--sc-akzent) 14%, transparent);
  stroke: color-mix(in srgb, var(--sc-akzent) 42%, transparent);
  stroke-width: 1.2;
}

.sc-flow-graph__nodes,
.sc-flow-nodes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.sc-flow-node,
.sc-flow-node-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  background: var(--sc-paper);
  border: 1px solid var(--sc-border);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.sc-flow-node-card {
  flex-direction: column;
  gap: 0.25rem;
}

.sc-flow-node.is-lit,
.sc-flow-node-card.is-lit {
  background: var(--sc-surface);
  border-color: var(--sc-akzent-border);
  box-shadow: 0 10px 26px -16px rgba(15, 23, 42, 0.10);
}

.sc-flow-node__nr {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sc-akzent) 45%, transparent);
  color: var(--sc-akzent);
  font: 600 0.78rem/1 var(--font-main, 'Inter', sans-serif);
  flex-shrink: 0;
}

.sc-flow-node-card__step {
  font: 600 0.7rem/1.2 var(--font-main, 'Inter', sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc-akzent);
}

.sc-flow-node strong,
.sc-flow-node-card__title {
  display: block;
  font: 600 0.96rem/1.3 var(--font-main, 'Inter', sans-serif);
  color: var(--sc-ink);
  margin-bottom: 0.18rem;
}

.sc-flow-node strong em {
  color: var(--sc-akzent);
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2em;
}

.sc-flow-node span,
.sc-flow-node-card__sub {
  display: block;
  font: 400 0.82rem/1.45 var(--font-main, 'Inter', sans-serif);
  color: var(--sc-muted);
}

@media (max-width: 720px) {
  .sc-flow-graph__nodes,
  .sc-flow-nodes {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   5. SEKTION 5 · DIE ZUKUNFT / KI IM TEAM („Sichere KI“)
   Redaktionelle KI- Karte mit feinem Bordeaux-Rahmen & Serif-Akzent
   ========================================================================== */

.sc-ai-guard {
  position: relative;
  margin: 1.75rem 0 2.2rem;
  padding: 1.6rem 1.75rem;
  border-radius: 18px;
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  box-shadow: var(--sc-shadow);
  overflow: hidden;
}

.sc-ai-guard__perimeter {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sc-ai-guard__rect {
  fill: none;
  stroke: var(--sc-akzent);
  stroke-width: 1.75;
  stroke-dasharray: 1600;
  stroke-dashoffset: calc(1600 - var(--sc-p, 0.7) * 1600);
  opacity: 0.55;
  transition: stroke-dashoffset 0.15s linear;
}

.sc-ai-guard__head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sc-ai-guard__title {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font: 650 1.1rem/1.3 var(--font-main, 'Inter', sans-serif);
  color: var(--sc-ink);
}

.sc-ai-guard__title em {
  color: var(--sc-akzent);
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.24em;
}

.sc-ai-guard__nr {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sc-akzent) 45%, transparent);
  background: color-mix(in srgb, var(--sc-akzent) 5%, var(--sc-surface));
  color: var(--sc-akzent);
  font: 600 0.8rem/1 var(--font-main, 'Inter', sans-serif);
}

.sc-ai-guard__meta,
.sc-ai-guard__badge {
  font: 600 0.72rem/1 var(--font-main, 'Inter', sans-serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  color: var(--sc-akzent);
  background: var(--sc-akzent-wash);
  border: 1px solid var(--sc-akzent-border);
}

.sc-ai-guard__prompt {
  position: relative;
  z-index: 1;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: var(--sc-paper);
  border: 1px solid var(--sc-border);
  border-left: 3px solid var(--sc-akzent);
  font: 400 0.94rem/1.55 var(--font-main, 'Inter', sans-serif);
  color: var(--sc-ink);
  min-height: 3.5rem;
}

.sc-ai-guard__prompt-label {
  display: block;
  font: 600 0.68rem/1.2 var(--font-main, 'Inter', sans-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sc-akzent);
  margin-bottom: 0.35rem;
}

.sc-ai-guard__cursor {
  display: inline-block;
  width: 6px;
  height: 1.05em;
  vertical-align: text-bottom;
  margin-left: 3px;
  background: var(--sc-akzent);
  animation: scBlink 1s steps(2, start) infinite;
}

@keyframes scBlink {
  to { opacity: 0; }
}

.sc-ai-guard__rules {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.sc-ai-guard__rule {
  font: 500 0.78rem/1.2 var(--font-main, 'Inter', sans-serif);
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: var(--sc-surface-soft);
  color: var(--sc-ink);
  border: 1px solid var(--sc-akzent-border);
}

/* ==========================================================================
   6. SEKTION 6 · DER ABSCHLUSS / GESPRÄCH VEREINBAREN („Einfach anfangen“)
   Helle, redaktionelle Abschluss-Sektion & Formular-Karte
   ========================================================================== */

[data-sc-cta] .sc-cta-slide {
  transform: translateY(calc((1 - var(--sc-p, 1)) * 18px));
  transition: transform 0.25s ease-out;
}

.sc-cta-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.35rem 0;
}

.sc-cta-step {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem 0.45rem 0.5rem;
  border-radius: 999px;
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.08);
  font: 500 0.84rem/1.2 var(--font-main, 'Inter', sans-serif);
  color: var(--sc-ink);
}

.sc-cta-step i {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sc-akzent) 45%, transparent);
  background: var(--sc-akzent-wash);
  color: var(--sc-akzent);
  font: 600 0.74rem/1 var(--font-main, 'Inter', sans-serif);
  font-style: normal;
}

.sc-cta-checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: var(--sc-muted);
  font-size: 0.95rem;
}

.sc-cta-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sc-cta-checklist .ww-badge-check {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--sc-akzent-wash);
  border: 1px solid var(--sc-akzent-border);
  color: var(--sc-akzent);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sc-cta-card {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  border-radius: 20px;
  padding: clamp(1.4rem, 3.8vw, 2.2rem);
  box-shadow: var(--sc-shadow-lift);
}

.sc-cta-label {
  display: block;
  margin-bottom: 0.35rem;
  font: 600 0.88rem/1.3 var(--font-main, 'Inter', sans-serif);
  color: var(--sc-ink);
}

.sc-cta-consent {
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: var(--sc-muted);
}

.sc-cta-consent a {
  color: var(--sc-akzent);
  text-decoration: underline;
}

.sc-cta-foot {
  margin: 1.15rem 0 0;
  font-size: 0.86rem;
  color: var(--sc-muted);
  text-align: center;
}

/* 7. (31.10.2026) Der Abschnitt "Globale redaktionelle Vereinheitlichung (Hell-Modus)" vom 24.10.2026
   ist entfernt: Er machte im Hellmodus die Schrift dunkler Abschnitte dunkel, waehrend site.css
   den Hintergrund dunkel hielt (Schrift unlesbar). Wortlaut in arbeit/_entwuerfe/
   sicherung_2026-10-31_vor-branding/scrolly.css. */

@media (prefers-reduced-motion: reduce) {
  .sc-chaos-item,
  .sc-flyin-pill,
  .sc-flyin-chip,
  .sc-flyin-core,
  .sc-flyin-hub,
  .sc-layer-card,
  [data-sc-cta] .sc-cta-slide {
    transform: none !important;
    transition: none !important;
  }
}
