/* ==========================================================================
   Startseite
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; background: transparent; clip-path: inset(0); min-height: 584px; }
.hero__copy {
  position: relative;
  z-index: 2;
  width: 648px;
  max-width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 23px;
}
.hero__title { display: flex; flex-direction: column; gap: 8px; }

/* Hero headline word rotator: Wortwechsel über .swap-word (main.css). Der
   Verlauf liegt auf dem Block, jedes Wort bekommt denselben Ausschnitt. */
.hero__actions { display: flex; flex-direction: column; gap: 24px; margin-top: 9px; }
.hero__img {
  position: absolute;
  top: 67px;
  left: 43.333%;
  width: 56.25%;
  aspect-ratio: 3 / 2;
  z-index: 1;
  pointer-events: none;
  /* Die Lottie-Szene wird eingeblendet, sobald sie geparst ist. */
  opacity: 0;
  transform: translateY(10px) scale(.985);
  transition: opacity .7s ease, transform .9s cubic-bezier(.22, .8, .28, 1);
}
.hero__img.is-ready { opacity: 1; transform: none; }
.hero__img svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero__img > img { width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  .hero__img { transition: none; opacity: 1; transform: none; }
}

@media (max-width: 1000px) {
  .hero { min-height: 0; }
  .hero__copy { width: 100%; padding-top: 48px; padding-bottom: 32px; }
  .hero__img { position: static; width: 100%; margin: 0 auto 48px; max-width: 640px; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
}
@media (max-width: 560px) {
  .hero__actions { flex-direction: column; width: 100%; }
}

/* --- "Kein OCR-Tool" — 4 feature cards ----------------------------------- */
.intro { position: relative; background: transparent; }
.intro__inner { padding-block: var(--section-y); position: relative; z-index: 1; }
.intro .shead { width: 628px; max-width: 100%; }
.intro .shead__title { width: 612px; max-width: 100%; }
/* Vier gleich große Karten: gleiche Spaltenbreite (minmax(0, 1fr), damit
   kein langer Titel eine Spalte aufdrückt) und gleiche Zeilenhöhe in jeder
   Anordnung – 4 nebeneinander, 2 × 2 oder gestapelt (grid-auto-rows: 1fr
   nimmt die Höhe der längsten Karte, ohne feste Höhe). */
.intro__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
  margin-top: 50px;
}
.fcard {
  background: var(--white);
  box-shadow: var(--ring), var(--elev-2);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.fcard__body { display: flex; flex-direction: column; gap: 8px; }
.fcard__body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: normal;
  text-transform: uppercase;
}
.fcard__body p { font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: normal; }
.intro__cta { margin-top: 48px; }
/* bg-ellipse: 715.5x658.2 blob, centred at (1191.4, 397.9) of the 1440 frame, rotated 150deg */
.intro__glow {
  position: absolute;
  left: 82.73%;
  top: 397.9px;
  width: 715.5px;
  height: 658.2px;
  --glow-scale: .9;
  --glow-rot: 150deg;
  --glow-dur: 27s;
  --glow-delay: -4s;
}
@media (max-width: 1100px) { .intro__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .intro__cards { grid-template-columns: minmax(0, 1fr); } }

/* --- Flow (Eingang → Analyse → Verarbeitung → Übergabe) ------------------ */
.flow { background: var(--blue-dark-2); color: var(--white); }
.flow__inner { padding-block: var(--section-y); }
.flow .shead { width: 612px; max-width: 100%; }
.flow__row {
  display: flex;
  align-items: stretch;             /* alle vier Karten gleich hoch */
  gap: 16px;
  margin-top: 73px;
}
.flow__arrow {
  flex: none;
  align-self: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .369px;
  color: var(--white);
  white-space: nowrap;
}
.fstep {
  flex: 1 1 0;
  min-width: 0;
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius-md);
  min-height: 488px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fstep__head { display: flex; align-items: center; gap: 8px; }
.fstep__head .ico--flip { transform: rotate(180deg); }
.fstep__head h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: normal;
  text-transform: uppercase;
}
.fstep--blue .fstep__head h3 { color: var(--blue-main); }
.fstep--plum .fstep__head h3 { color: var(--plum-main); }
.fstep__text { font-family: var(--font-body); font-weight: 300; font-size: 14px; line-height: normal; }
.fstep__list { display: flex; flex-direction: column; gap: 12px; }
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px;
  min-height: 42px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--gray-1);
  border-radius: var(--radius-xs);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  line-height: normal;
  color: var(--text-muted);
  text-align: left;
}
.chip--tall { min-height: 50px; }
.chip span { white-space: nowrap; }

/* Analyse diagram */
.diagram {
  position: relative;
  width: 223.4px;
  height: 221px;
  margin: 0 auto;
  flex: none;
}
.diagram__node {
  position: absolute;
  width: 48.043px;
  height: 48.043px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--plum-light);
  border-radius: var(--radius-xs);
}
.diagram__node--t { left: 88.88px; top: 0; }
.diagram__node--r { left: 175.36px; top: 85.28px; }
.diagram__node--b { left: 88.88px; top: 172.96px; }
.diagram__node--l { left: 0; top: 85.28px; }
.diagram__center { position: absolute; left: 69.66px; top: 67.26px; width: 84.076px; height: 84.076px; }
.diagram__line { position: absolute; border-top: 1px dashed var(--plum-light); }
.diagram__line--h { left: 48.04px; top: 111.7px; width: 127.315px; }
.diagram__line--v {
  left: 111.71px; top: 48.05px; width: 127.315px;
  transform: rotate(90deg); transform-origin: 0 0;
}
.fstep__mid { display: flex; flex-direction: column; gap: 0; position: relative; }
.fstep__mid .connector {
  width: 1px; height: 32px; margin: 0 auto;
  border-left: 1px dashed var(--gray-1);
}
/* cards 2–4 keep a 51px gap between the intro copy and the visual block */
.fstep__top { display: flex; flex-direction: column; gap: 16px; align-items: center; width: 100%; }
.fstep--split { gap: 51px; align-items: center; }
.fstep--split .fstep__head { width: 100%; }
/* Text steht in allen vier Karten an derselben Kante wie Icon und Titel;
   nur die Grafik darunter ist mittig. */
.fstep--split .fstep__text { width: 100%; }
.fstep--split .fstep__list,
.fstep--split .fstep__mid { width: 228px; max-width: 100%; }
.fstep--split .diagram { margin-top: 0; }

/* 2 × 2 mit gleich hohen Zeilen, gestapelt dann je nach Inhalt */
@media (max-width: 1180px) {
  .flow__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .flow__arrow { display: none; }
  .fstep { min-height: 0; }
  .fstep--split { gap: 32px; }
}
@media (max-width: 620px) {
  .flow__row { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; margin-top: 40px; }
}

/* --- Stats --------------------------------------------------------------- */
.stats { background: var(--blue-dark-2); }
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-block: var(--band-y);
}
/* Ohne Rahmen und Schatten: Die Kennzahlen stehen direkt auf dem dunklen
   Grund, Abstand und Raster tragen die Gliederung. */
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 4.445vw, 64px);
  line-height: 1;
  color: var(--plum-medium);
  white-space: nowrap;
}
.stat__lt { font-size: .72em; vertical-align: .08em; margin-right: .04em; }
.stat__label {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: normal;
  color: var(--white);
}
@media (max-width: 1100px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat { padding: 28px 16px; }
}
@media (max-width: 600px) {
  .stats__inner { grid-template-columns: 1fr; }
}

/* --- Claim (big logo) ---------------------------------------------------- */
.claim { background: var(--white); text-align: center; }
.claim__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: var(--section-y);
}
.claim__logo { width: 356px; height: 88.72px; max-width: 80%; object-fit: contain; }
/* Animiertes Logo: der Rahmen hat die Maße des ruhenden Logos. Die Animation
   (Inline-SVG 224 × 64, Wortmarke mit 8 Einheiten Rand) sitzt zentriert darauf
   und ist um diesen Rand größer: Maßstab 1,85, also 116,4 % der Rahmenbreite. */
.claim__logo--anim { position: relative; display: block; height: auto; aspect-ratio: 356 / 88.72; }
.claim__logo--anim img { display: block; width: 100%; height: 100%; }
.claim__logo--anim .is-anim {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 116.4%;
  height: auto;
  aspect-ratio: 224 / 64;
  max-width: none;
  transform: translate(-50%, -50%);
}
.claim__sub {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: normal;
  margin-top: 10px;
}
.claim__inner .btn { margin-top: 34px; }

/* --- Security collage ---------------------------------------------------- */
.secure { position: relative; background: transparent; }
.secure__inner { padding-block: var(--section-y); position: relative; z-index: 1; }
.secure .shead { width: 738px; max-width: 100%; }
.secure__lead { width: 501px; max-width: 100%; }
.secure__badges { display: flex; gap: 80px; margin-top: 46px; }
.secure__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 64px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 16px;
  line-height: normal;
}
.secure__badge .w98 { width: 98px; }
.secure__badge .nowrap { white-space: nowrap; }
.secure__cta { margin-top: 48px; }
.secure__cards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.scard {
  position: absolute;
  background: var(--white);
  box-shadow: var(--ring), var(--elev-2);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}
.scard__head { display: flex; align-items: center; gap: 16px; }
.scard__head h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: normal;
  text-transform: uppercase;
}
.scard p { font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: normal; }
.scard--a { left: 50.55%; top: calc(var(--section-y) + 116px); width: 32.57%; }
.scard--b { left: 66.32%; top: calc(var(--section-y) + 237px); width: 28.26%; }
.scard--c { left: 46.18%; top: calc(var(--section-y) + 343px); width: 27.64%; }
/* bg-ellipse 1022x855, centred at (1089, 405.8) of the 1440 frame */
.secure__glow {
  position: absolute;
  left: 70%;
  top: calc(var(--section-y) + 357.8px);
  width: 1022px;
  height: 855px;
  --glow-dur: 33s;
  --glow-delay: -11s;
}

@media (max-width: 1100px) {
  .secure__cards { position: static; display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
  .scard { position: static; width: 100%; }
  /* Die drei Badges verteilen sich über die ganze Zeile; erster und letzter
     fluchten mit dem Text darüber. */
  .secure__badges { gap: 24px; justify-content: space-between; }
  .secure__badge { width: auto; }
}

/* --- Branchen section ---------------------------------------------------- */
.branchen { position: relative; background: transparent; }
.branchen__inner { padding-block: var(--section-y); position: relative; z-index: 1; }
.branchen .shead { width: 738px; max-width: 100%; }
.branchen__grid { margin-top: 50px; }
.branchen__cta { display: flex; justify-content: center; margin-top: 24px; }
/* --- FAQ section --------------------------------------------------------- */
/* .faq-Layout liegt in sections.css (auch auf Pricing und Sicherheit) */
