/* =====================================================
   FINANCE Homepage
   =====================================================
   Gestaltung nach dem FINANCE-Agenturhandbuch v1.0 (26.10.2026): helle Flächen, kräftige dunkle Typografie,
   FINANCE Rot #E51D35 für Hauptknöpfe und gezielte Akzente (diagonale Flächen, nie hinter langem Text),
   Deep Ink #090F1B für Text und dunkle Kontrastflächen, Hellgrau #F4F5F7 für Abschnitte, Sekundär #596170.
   Karten weiß mit feiner Kontur, Radius 16 px. Schrift des Geräts, keine Webfonts.
   ===================================================== */

:root {
  --ink: #090f1b;
  --ink-2: #3b4352;
  --muted: #596170;
  --page: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --line: #e3e6eb;
  --line-2: #cfd5de;
  --rot: #e51d35;
  --rot-tief: #c41429;
  --rot-hell: #fdecee;
  --gruen: #17703e;
  --gruen-kreis: #22a05a;
  --gelb: #8a4b0a;
  --gelb-hell: #fdf3e1;
  --auf-dunkel: #c9cfda;
  --auf-dunkel-2: #a9b0bf;
  --nav-tief: #05080f;
  --schatten: 0 1px 2px rgba(9, 15, 27, 0.06), 0 24px 48px -16px rgba(9, 15, 27, 0.22);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Kein weiches Scrollen: nach „Informiert bleiben“ lädt die Seite mit #danke und soll direkt dort stehen, statt von
   oben herunterzufahren (ohne JavaScript lässt sich das nicht nur für Klicks einschalten) */
html {
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

a {
  color: var(--ink);
  text-decoration-color: rgba(229, 29, 53, 0.55);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--rot);
}

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

img.logo {
  display: block;
  height: 20px;
  width: auto;
}

.breite {
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 20px;
}

.schmal {
  max-width: 820px;
}

@media (min-width: 640px) {
  .breite {
    padding: 0 24px;
  }
}

.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rot {
  color: var(--rot);
}

.sprung {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 20;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 6px;
}

.sprung:focus {
  left: 8px;
}

.symbol {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-weight: 650;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.knopf .symbol {
  width: 18px;
  height: 18px;
}

.knopf-gross {
  padding: 14px 22px;
  font-size: 16px;
}

.knopf-breit {
  width: 100%;
  white-space: normal;
  text-align: center;
}

/* Hauptknopf: FINANCE Rot mit weißer Schrift */
.knopf-primaer {
  background: var(--rot);
  color: #fff;
}

.knopf-primaer:hover {
  background: var(--rot-tief);
}

/* Zweitknopf: dunkle Kontur auf weißem Grund (bleibt lesbar, auch wenn eine rote Fläche dahinter liegt) */
.knopf-rand {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
}

.knopf-rand:hover {
  background: var(--surface-2);
}

.knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Kopfzeile ---------- */

.kopfzeile {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.kopfzeile-innen {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
}

.marke {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.marke-zusatz {
  display: none;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.navigation {
  display: none;
}

.navigation a,
.kopf-anmelden {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
}

.navigation a:hover,
.kopf-anmelden:hover {
  color: var(--ink);
}

.kopf-anmelden,
.nur-menue,
.menue-zu {
  display: none;
}

.kopf-anmelden {
  color: var(--ink);
}

/* Menü-Knopf unter 1080 px; öffnet die Navigation über :target (siehe Kopfzeile in rahmen.tsx) */
.menue-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border-radius: 10px;
  color: var(--ink);
}

.menue-knopf:hover {
  background: var(--surface-2);
}

/* „Schließen“ nur bei offenem Menü (Regel mit #menue:target unten) */
.menue-knopf.menue-zu {
  display: none;
}

@media (max-width: 1079px) {
  .navigation:target {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    top: 60px;
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    padding: 4px 20px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px -16px rgba(9, 15, 27, 0.3);
  }

  .navigation:target a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
  }

  .navigation:target a:last-child {
    border-bottom: 0;
  }

  .navigation:target .nur-menue {
    display: block;
  }

  #menue:target ~ .menue-auf {
    display: none;
  }

  #menue:target ~ .menue-zu {
    display: inline-flex;
  }
}

@media (max-width: 420px) {
  img.logo {
    height: 16px;
  }

  .kopfzeile .knopf {
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media (min-width: 640px) {
  .kopfzeile-innen {
    gap: 16px;
    height: 68px;
  }

  .navigation:target {
    top: 68px;
  }
}

@media (min-width: 760px) {
  .marke-zusatz {
    display: inline;
  }
}

@media (min-width: 1080px) {
  .kopfzeile-innen {
    gap: 24px;
  }

  .navigation {
    display: flex;
    gap: 28px;
    margin-right: 12px;
  }

  .kopf-anmelden {
    display: inline;
  }

  .menue-knopf {
    display: none !important;
  }
}

/* ---------- Überschriften und Abschnitte ---------- */

.abschnitt {
  padding: 56px 0;
}

.abschnitt-flaeche {
  background: var(--page);
}

@media (min-width: 960px) {
  .abschnitt {
    padding: 104px 0;
  }
}

.abschnitt h2,
.familie h2,
.beta h2 {
  font-size: clamp(28px, 1.6vw + 20px, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.kicker {
  margin: 0 0 12px;
  color: var(--rot);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.unterzeile,
.hero-zeile {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 1vw + 15px, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.einleitung {
  color: var(--ink-2);
  font-size: 17px;
  max-width: 680px;
  margin: 16px 0 0;
}

@media (min-width: 960px) {
  .einleitung {
    font-size: 18px;
  }
}

.raster {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 760px) {
  .raster-drei {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 1080px) {
  .raster-vier {
    grid-template-columns: repeat(4, 1fr);
  }
}

.karte {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.karte h3,
.karte h4 {
  font-size: 18px;
  font-weight: 700;
}

.karte p {
  color: var(--ink-2);
  font-size: 15px;
  margin: 8px 0 0;
}

.kachel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--rot-hell);
  color: var(--rot);
}

.kachel .symbol {
  width: 22px;
  height: 22px;
}

.haken {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.haken li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
}

.haken li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--rot);
  border-bottom: 2.5px solid var(--rot);
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--page);
  padding: 40px 0 64px;
}

.hero-innen {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 104px;
  }

  .hero-innen {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}

.start-plakette {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--rot);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(36px, 2.6vw + 20px, 56px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero h1 span {
  display: block;
}

.hero-absatz {
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 17px;
  max-width: 580px;
}

@media (min-width: 960px) {
  .hero-absatz {
    font-size: 18px;
  }
}

.hero-beta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 550;
}

.hero-beta::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rot);
  box-shadow: 0 0 0 4px var(--rot-hell);
  flex-shrink: 0;
}

/* Rote diagonale Fläche hinter der Produktansicht */
.hero-bild {
  position: relative;
}

.hero-bild::before {
  content: "";
  position: absolute;
  left: -30%;
  right: -60vw;
  top: 30%;
  bottom: -40%;
  background: var(--rot);
  clip-path: polygon(0 100%, 100% 0, 100% 48%, 34% 100%);
}

/* ---------- Produktansichten (Beispieldaten) ---------- */

.ansicht {
  position: relative;
  margin: 0;
  font-size: 14px;
}

.fenster {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--schatten);
  overflow: hidden;
}

.fenster-leiste {
  display: flex;
  gap: 6px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}

.fenster-leiste span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}

.fenster-inhalt {
  padding: 20px;
}

@media (min-width: 640px) {
  .fenster-inhalt {
    padding: 24px;
  }
}

.fenster-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.fenster-titel {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.fenster-titel .kachel {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.fenster-titel .kachel .symbol {
  width: 20px;
  height: 20px;
}

.plakette {
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}

.erledigt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gruen-kreis);
  color: #fff;
}

.erledigt .symbol {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

/* Hero: Belegübersicht, dahinter die Rechnung als PDF */
.ansicht-hero {
  padding: 56px 0 0 14%;
}

.ansicht-hero figcaption {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 12px;
}

.blatt {
  position: absolute;
  left: 0;
  top: 0;
  width: 46%;
  height: 72%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--schatten);
  transform: rotate(-6deg);
  font-size: 12px;
  font-weight: 600;
}

/* Schmal: das Fenster nimmt die ganze Breite, vom PDF schaut nur der Kopf heraus */
@media (max-width: 639px) {
  .ansicht-hero {
    padding: 44px 0 0;
  }

  .blatt {
    left: 4%;
    width: 58%;
    transform: rotate(-4deg);
  }
}

.blatt-kopf {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
}

.pdf {
  background: var(--rot);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 6px;
  border-radius: 4px;
}

.linie {
  display: block;
  height: 8px;
  width: 70%;
  border-radius: 4px;
  background: var(--surface-2);
}

.linie.lang {
  width: 90%;
}

.linie.kurz {
  width: 45%;
}

.schrittliste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.schrittliste li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.schrittliste-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.schrittliste-text strong {
  font-size: 16px;
}

.schrittliste-text span {
  color: var(--muted);
}

/* KI-Belegerfassung */
.felder {
  margin: 0;
  display: grid;
  gap: 10px;
}

.feld dt {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.feld dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}

.feld dd > span:first-child {
  flex: 1;
  min-width: 0;
}

.feld .erledigt {
  width: 22px;
  height: 22px;
}

.feld .erledigt .symbol {
  width: 13px;
  height: 13px;
}

.vorschlag {
  background: var(--surface-2);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
}

.fenster-knopf {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 650;
}

.fenster-knopf .symbol {
  width: 18px;
  height: 18px;
}

.fenster-hinweis {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--gelb-hell);
  color: var(--gelb);
  font-weight: 550;
}

.fenster-hinweis .symbol {
  width: 18px;
  height: 18px;
}

/* Bank und Zahlungen */
.fenster-unterzeile {
  margin: -6px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

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

.bewegung {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.bewegung-text,
.bewegung-betrag {
  font-size: 15px;
  font-weight: 650;
}

.bewegung-betrag {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bewegung-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gruen);
  font-size: 13px;
  font-weight: 550;
}

.bewegung-status .symbol {
  width: 16px;
  height: 16px;
}

.bewegung-offen .bewegung-status {
  color: var(--gelb);
}

/* Liquidität */
.liq-kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.liq-klein {
  color: var(--muted);
  font-size: 13px;
}

.liq-gross {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.liq-warnung {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--rot-hell);
  color: var(--rot-tief);
  font-size: 13px;
  font-weight: 600;
}

.liq-warnung .symbol {
  width: 16px;
  height: 16px;
}

.liq-diagramm {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 150px;
  margin-top: 20px;
  border-bottom: 1px solid var(--line-2);
}

.liq-balken {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--line-2);
}

.liq-balken.heute {
  background: var(--ink);
}

.liq-balken.knapp {
  background: var(--rot);
}

.liq-schwelle {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  border-top: 2px dashed var(--rot);
}

.liq-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.liq-legende span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.liq-legende span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.liq-legende-heute::before {
  background: var(--ink);
}

.liq-legende-prognose::before {
  background: var(--line-2);
}

.liq-legende-schwelle::before {
  height: 0 !important;
  width: 14px !important;
  border-top: 2px dashed var(--rot);
  border-radius: 0 !important;
}

/* ---------- Alltag ---------- */

.problem h3 {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 700;
}

.problem p {
  margin: 8px 0 0;
  color: var(--ink-2);
}

/* ---------- Ablauf ---------- */

.ablauf {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .ablauf {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .ablauf {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ablauf li {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.nummer {
  color: var(--rot);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ablauf h3 {
  margin-top: 6px;
  font-size: 21px;
  font-weight: 750;
}

.ablauf p {
  margin: 8px 0 20px;
  color: var(--ink-2);
  font-size: 15px;
}

.ablauf .status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: auto 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--page);
  color: var(--ink-2);
  font-size: 13px;
}

.ablauf .status .symbol {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--rot);
}

.status-nummer {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Kernfunktionen ---------- */

.kern {
  display: grid;
  gap: 64px;
  margin-top: 48px;
}

.kern-zeile {
  display: grid;
  gap: 28px;
  align-items: center;
}

.kern-zeile > *,
.hero-innen > * {
  min-width: 0;
}

@media (min-width: 960px) {
  .kern {
    gap: 96px;
    margin-top: 64px;
  }

  .kern-zeile {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
  }

  .kern-zeile:nth-child(even) .kern-text {
    order: 2;
  }
}

.kern-text h3 {
  font-size: clamp(24px, 1vw + 18px, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kern-text > p:not(.kicker) {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 17px;
}

.kern-bild {
  padding: 20px 14px;
  border-radius: 20px;
  background: var(--page);
}

@media (min-width: 640px) {
  .kern-bild {
    padding: 44px;
  }
}

.weitere-titel {
  margin-top: 88px;
  font-size: clamp(22px, 1vw + 16px, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- Für wen, Österreich, Steuerberatung ---------- */

.rolle .rolle-name {
  margin: 0 0 8px;
  color: var(--rot);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rolle h3 {
  font-size: 22px;
  font-weight: 800;
}

.zwei-spalten {
  display: grid;
  gap: 40px;
  margin-top: 64px;
}

@media (min-width: 900px) {
  .zwei-spalten {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.zwei-spalten h3 {
  font-size: 22px;
  font-weight: 800;
}

.zwei-spalten > div > p {
  margin: 14px 0 0;
  color: var(--ink-2);
}

/* ---------- Modellrechnung ---------- */

.nutzen {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .nutzen {
    grid-template-columns: 1.25fr 1fr;
    gap: 64px;
  }
}

.nutzen-hinweis {
  margin: 16px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--rot);
  color: var(--muted);
  font-size: 14px;
}

.nutzen-balken {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.nutzen-zeile {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-size: 15px;
}

.nutzen-wert {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.nutzen-spur {
  grid-column: 1 / -1;
  height: 14px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.nutzen-spur span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.nutzen-vorher {
  background: #8a93a3;
}

.nutzen-mit {
  background: var(--rot);
}

.annahmen {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.annahmen summary {
  position: relative;
  padding: 18px 56px 18px 24px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.annahmen summary::-webkit-details-marker {
  display: none;
}

.annahmen summary::after,
.fragen summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
}

.annahmen[open] summary::after,
.fragen details[open] summary::after {
  content: "−";
}

.annahmen-inhalt {
  padding: 0 24px 24px;
}

.annahmen-inhalt p {
  margin: 0 0 10px;
  color: var(--ink-2);
  font-size: 15px;
}

.tabelle-rahmen {
  margin-top: 16px;
  overflow-x: auto;
}

.annahmen table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.annahmen caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.annahmen th,
.annahmen td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.annahmen th[scope="row"] {
  text-align: left;
  font-weight: 500;
}

.annahmen thead th {
  background: var(--page);
  font-weight: 700;
}

.annahmen thead th:first-child {
  text-align: left;
}

.annahmen tfoot th,
.annahmen tfoot td {
  font-weight: 750;
}

/* ---------- Produktfamilie ---------- */

.familie {
  padding: 56px 0;
  background: var(--page);
}

.familie-innen {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .familie {
    padding: 80px 0;
  }

  .familie-innen {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.familie-innen p {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 17px;
}

.produkte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.produkte li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.produkte strong {
  font-size: 15px;
  letter-spacing: 0.14em;
}

.produkte span {
  color: var(--muted);
  font-size: 13px;
}

.produkte .aktiv {
  border-color: var(--rot);
  box-shadow: inset 0 0 0 1px var(--rot);
}

/* ---------- Fragen ---------- */

.fragen-raster {
  display: grid;
  gap: 28px;
}

@media (min-width: 960px) {
  .fragen-raster {
    grid-template-columns: 1fr 2fr;
    gap: 64px;
  }
}

.fragen {
  border-top: 1px solid var(--line);
}

.fragen details {
  border-bottom: 1px solid var(--line);
}

.fragen summary {
  position: relative;
  padding: 18px 44px 18px 0;
  font-size: 17px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.fragen summary::-webkit-details-marker {
  display: none;
}

.fragen summary::after {
  right: 6px;
}

.fragen p {
  margin: 0 0 20px;
  color: var(--ink-2);
}

/* ---------- Beta-Anmeldung ---------- */

.beta {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background: var(--ink);
  color: #fff;
}

@media (min-width: 960px) {
  .beta {
    padding: 104px 0;
  }
}

/* Rote diagonale Fläche unten rechts, hinter der Karte */
.beta::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70%;
  height: 70%;
  background: var(--rot);
  clip-path: polygon(100% 0, 100% 46%, 22% 100%, 0 100%);
}

.beta-innen {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .beta-innen {
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
  }
}

.beta-absatz {
  margin: 16px 0 0;
  max-width: 600px;
  color: var(--auf-dunkel);
  font-size: 18px;
}

.beta-listen {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

@media (min-width: 640px) {
  .beta-listen {
    grid-template-columns: 1fr 1fr;
  }
}

.beta-listen h3 {
  font-size: 17px;
  font-weight: 700;
}

.beta-listen .haken li {
  color: var(--auf-dunkel);
}

.beta :focus-visible {
  outline-color: #fff;
}

.beta-karte {
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.beta-karte :focus-visible {
  outline-color: var(--ink);
}

.beta-karte h3 {
  font-size: 21px;
  font-weight: 800;
}

.beta-schritte {
  counter-reset: schritt;
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 18px 0 24px;
  padding: 0;
}

.beta-schritte li {
  counter-increment: schritt;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink-2);
}

.beta-schritte li::before {
  content: counter(schritt);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rot-hell);
  color: var(--rot-tief);
  font-weight: 800;
}

.beta-direkt {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}

.beta-direkt a {
  font-weight: 600;
}

.beta-hinweis {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* Formular „Informiert bleiben“ (POST /api/interesse); Meldungen über :target nach der Rückleitung */
.informieren {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.informieren h3 {
  font-size: 18px;
}

.informieren-formular p {
  margin: 6px 0 14px;
  color: var(--ink-2);
  font-size: 14px;
}

.feld-name {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 650;
}

.informieren-zeile {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.informieren-zeile input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 11px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.informieren-zeile input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}

.knopf-dunkel {
  flex: 0 0 auto;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}

.knopf-dunkel:hover {
  background: #1f2a3d;
}

.einwilligung {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.einwilligung input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}

.einwilligung a {
  overflow-wrap: anywhere;
}

.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.meldung {
  display: none;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.meldung .symbol {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.meldung-gut {
  background: #e7f5ec;
  color: var(--gruen);
}

.meldung-fehler {
  background: var(--gelb-hell);
  color: var(--gelb);
}

.meldung:target {
  display: flex;
}

/* Nach erfolgreicher Anmeldung nur noch der Dank, kein zweites Formular */
#danke:target ~ .informieren-formular {
  display: none;
}

/* ---------- Fußzeile ---------- */

.fusszeile {
  background: var(--nav-tief);
  color: var(--auf-dunkel-2);
  padding: 40px 0;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fusszeile img.logo {
  height: 18px;
}

.fusszeile :focus-visible {
  outline-color: #fff;
}

.fusszeile-innen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.fusszeile-text {
  margin: 12px 0 0;
}

.fusszeile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}

.fusszeile-links a {
  color: var(--auf-dunkel-2);
  text-decoration: none;
}

.fusszeile-links a:hover {
  color: #fff;
}

/* ---------- Textseiten (Impressum, Datenschutz, Fehlerseite) ---------- */

.textseite {
  padding: 48px 0 80px;
  min-height: 60vh;
}

.textseite h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.textseite h2 {
  font-size: 20px;
  margin-top: 32px;
}

.textseite p {
  color: var(--ink-2);
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}

.stand {
  font-size: 14px;
  color: var(--muted) !important;
}

.angaben {
  display: grid;
  gap: 4px 24px;
  margin: 24px 0 0;
  align-items: baseline;
}

.angaben dt {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

.angaben dd {
  margin: 0;
}

@media (min-width: 640px) {
  .angaben {
    grid-template-columns: 220px 1fr;
  }

  .angaben dt {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---------- App-Vorschau (src/teile/vorschau.tsx) ----------
   Aussehen wie in der App (Finace-Controlling-app/src/app/globals.css): dunkle Navigation, helle Seite, Blau als
   Funktionsfarbe. Ohne Animation bleibt Szene 2 stehen (alle Felder, Status „zu prüfen“); die Bewegung steht nur
   unter prefers-reduced-motion: no-preference. Eine Runde dauert --dauer; Prozentwerte der Keyframes:
   0–24 % Hochladen · 27–70 % KI liest aus und Prüfen (Übernehmen bei 60 %) · 73–96 % Rechnung angelegt. */

.vorschau {
  --dauer: 18s;
  --app-seite: #f4f5f8;
  --app-linie: rgba(9, 15, 27, 0.1);
  --app-blau: #2a78d6;
  --app-blau-text: #1c5cab;
  --app-blau-hell: #e3eefb;
  --app-gut: #0ca30c;
  --app-gut-text: #006300;
  --app-warn: #fab219;
  margin: 40px 0 0;
}

.vorschau-pause {
  display: none;
}

.vorschau-leiste {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: 16px;
}

.vorschau-schritte {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.vs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.vs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}

.vorschau-pause-knopf {
  display: none;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
}

.vorschau-pause-knopf:hover {
  background: rgba(9, 15, 27, 0.06);
}

.vp-weiter,
.vorschau-pause:checked ~ .vorschau-leiste .vp-anhalten {
  display: none;
}

.vorschau-pause:checked ~ .vorschau-leiste .vp-weiter {
  display: inline;
}

.vorschau-pause:focus-visible ~ .vorschau-leiste .vorschau-pause-knopf {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.vorschau figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Fenster mit Adressleiste */
.app {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--schatten);
  font-size: 13px;
  line-height: 1.4;
}

.app-leiste {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: #eef0f4;
  border-bottom: 1px solid var(--app-linie);
}

.app-punkte {
  display: flex;
  gap: 6px;
}

.app-punkte span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}

.app-adresse {
  display: grid;
  flex: 1;
  min-width: 0;
  max-width: 420px;
  margin: 0 auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.app-adresse > span {
  grid-area: 1 / 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ad-liste {
  opacity: 0;
}

.app-koerper {
  display: grid;
  grid-template-columns: 196px 1fr;
}

/* Navigation wie in der App */
.app-nav {
  padding: 18px 10px;
  background: var(--ink);
  color: #fff;
}

.app-logo {
  display: block;
  height: 14px;
  width: auto;
  margin: 2px 10px 18px;
}

.app-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-nav li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--auf-dunkel-2);
  white-space: nowrap;
}

.app-nav li .symbol {
  width: 16px;
  height: 16px;
}

.app-nav li.gruppe {
  margin-top: 8px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.app-nav li.aktiv {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
}

.app-haupt {
  display: grid;
  min-width: 0;
  padding: 24px;
  background: var(--app-seite);
}

.szene {
  grid-area: 1 / 1;
  position: relative;
  min-width: 0;
}

.szene-1,
.szene-3 {
  opacity: 0;
}

.app-titel {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-titel small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.app-karte {
  padding: 18px;
  border: 1px solid var(--app-linie);
  border-radius: 12px;
  background: var(--surface);
}

/* Szene 1: Hochladen */
.ablage {
  margin-top: 16px;
}

.ablage-feld {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 16px;
  border: 2px dashed #c3c8d2;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.ablage-feld .symbol {
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
}

.ablage-feld strong {
  color: var(--ink);
  font-size: 15px;
}

.ablage-knoepfe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.app-knopf-rand {
  padding: 6px 12px;
  border: 1px solid var(--app-linie);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.datei {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 10px;
  width: min(340px, 100%);
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--app-linie);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 24px -8px rgba(9, 15, 27, 0.25);
}

.datei-name {
  font-weight: 600;
}

.datei-name small {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 400;
}

.fortschritt {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef0f4;
}

.fortschritt span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--app-blau);
}

/* Szene 2: KI liest aus */
.lesen {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.papier {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}

.papier-kopf {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.papier-kopf strong {
  font-size: 17px;
  letter-spacing: 0.08em;
}

.papier-kopf span {
  color: var(--ink-2);
  font-weight: 600;
}

.papier-daten {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
}

.papier-daten div,
.papier-tabelle div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.papier-daten dt {
  color: var(--muted);
}

.papier-daten dd {
  margin: 0;
  font-weight: 600;
}

.papier-tabelle {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--app-linie);
  font-variant-numeric: tabular-nums;
}

.papier-tabelle .summe {
  padding-top: 6px;
  border-top: 1px solid var(--app-linie);
  font-weight: 700;
}

.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44px;
  background: linear-gradient(to bottom, rgba(42, 120, 214, 0), rgba(42, 120, 214, 0.16));
  border-bottom: 2px solid var(--app-blau);
  opacity: 0;
  pointer-events: none;
}

.erkannt-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.erkannt-kopf strong {
  font-size: 15px;
}

.badges {
  display: grid;
  justify-items: end;
}

.badge {
  grid-area: 1 / 1;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.b-lesen {
  background: var(--app-blau-hell);
  color: var(--app-blau-text);
  opacity: 0;
}

.b-pruefen {
  background: #fff3d1;
  color: #7a5300;
}

.b-fertig {
  background: #e4f5e4;
  color: var(--app-gut-text);
  opacity: 0;
}

.erkannt-felder {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
}

.ef {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 8px;
}

.ef dt {
  color: var(--muted);
  font-size: 12px;
}

.ef dd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--app-linie);
  border-radius: 8px;
  font-weight: 600;
}

.ef-vorschlag dd {
  box-shadow: 0 0 0 2px var(--app-warn);
}

.app-vorschlag {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--app-blau-hell);
  color: var(--app-blau-text);
  font-size: 11px;
  font-weight: 600;
}

.app-knopf {
  display: block;
  margin-top: 14px;
  padding: 9px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* Szene 3: Rechnung angelegt */
.app-meldung {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--app-linie);
  border-left: 4px solid var(--app-gut);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 24px -8px rgba(9, 15, 27, 0.25);
  font-weight: 600;
}

.app-meldung .symbol {
  width: 16px;
  height: 16px;
  color: var(--app-gut);
}

.app-tabelle {
  margin-top: 28px;
  padding: 0;
  overflow: hidden;
}

.zeile {
  display: grid;
  grid-template-columns: 92px 1.6fr 0.9fr 92px 1.2fr;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--app-linie);
  font-variant-numeric: tabular-nums;
}

.zeile:last-child {
  border-bottom: 0;
}

.zeile.kopf {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.zeile.neu {
  font-weight: 600;
}

.st-bezahlt {
  color: var(--app-gut-text);
}

.st-offen {
  color: #7a5300;
}

@media (max-width: 899px) {
  .app-koerper {
    grid-template-columns: 1fr;
  }

  .app-nav {
    padding: 12px 16px;
  }

  .app-nav ul {
    display: none;
  }

  .app-logo {
    margin: 0;
  }

  .app-haupt {
    padding: 16px;
  }

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

  .papier {
    max-height: 210px;
  }

  .ef {
    grid-template-columns: 96px 1fr;
  }

  .zeile {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .zeile > :nth-child(1),
  .zeile > :nth-child(3) {
    display: none;
  }

  .app-meldung {
    left: 0;
    right: auto;
    top: 34px;
  }

  .app-tabelle {
    margin-top: 76px;
  }
}

/* Bewegung nur, wenn das Gerät sie nicht abbestellt hat */
@media (prefers-reduced-motion: no-preference) {
  .vorschau-pause {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .vorschau-pause-knopf {
    display: inline-block;
  }

  .vorschau .szene-1 { animation: sz-1 var(--dauer) infinite; }
  .vorschau .szene-2 { animation: sz-2 var(--dauer) infinite; }
  .vorschau .szene-3 { animation: sz-3 var(--dauer) infinite; }
  .vorschau .ad-erfassen { animation: ad-erfassen var(--dauer) infinite; }
  .vorschau .ad-liste { animation: ad-liste var(--dauer) infinite; }
  .vorschau .datei { animation: datei var(--dauer) infinite; }
  .vorschau .fortschritt span { animation: fortschritt var(--dauer) infinite; }
  .vorschau .scan { animation: scan var(--dauer) infinite; }
  .vorschau .ef { animation: feld var(--dauer) infinite both; animation-delay: calc(var(--i) * 0.4s); }
  .vorschau .ef-vorschlag dd { animation: vorschlag var(--dauer) infinite; }
  .vorschau .b-lesen { animation: b-lesen var(--dauer) infinite; }
  .vorschau .b-pruefen { animation: b-pruefen var(--dauer) infinite; }
  .vorschau .b-fertig { animation: b-fertig var(--dauer) infinite; }
  .vorschau .app-knopf { animation: klick var(--dauer) infinite; }
  .vorschau .app-meldung { animation: meldung var(--dauer) infinite; }
  .vorschau .zeile.neu { animation: neu var(--dauer) infinite; }
  .vorschau .vs-1 { animation: vs-1 var(--dauer) infinite; }
  .vorschau .vs-2 { animation: vs-2 var(--dauer) infinite; }
  .vorschau .vs-3 { animation: vs-3 var(--dauer) infinite; }
  .vorschau .vs-4 { animation: vs-4 var(--dauer) infinite; }

  .vorschau-pause:checked ~ .vorschau-leiste *,
  .vorschau-pause:checked ~ .app * {
    animation-play-state: paused !important;
  }
}

@keyframes sz-1 {
  0%, 24% { opacity: 1; }
  27%, 96% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes sz-2 {
  0%, 24% { opacity: 0; }
  27%, 70% { opacity: 1; }
  73%, 100% { opacity: 0; }
}

@keyframes sz-3 {
  0%, 70% { opacity: 0; }
  73%, 96% { opacity: 1; }
  99%, 100% { opacity: 0; }
}

@keyframes ad-erfassen {
  0%, 70% { opacity: 1; }
  71%, 97% { opacity: 0; }
  98%, 100% { opacity: 1; }
}

@keyframes ad-liste {
  0%, 70% { opacity: 0; }
  71%, 97% { opacity: 1; }
  98%, 100% { opacity: 0; }
}

@keyframes datei {
  0%, 3% { opacity: 0; transform: translate(120px, -110px) rotate(8deg); }
  5% { opacity: 1; transform: translate(120px, -110px) rotate(8deg); }
  13%, 100% { opacity: 1; transform: none; }
}

@keyframes fortschritt {
  0%, 14% { width: 0; }
  23%, 100% { width: 100%; }
}

@keyframes scan {
  0%, 28% { top: 0; opacity: 0; }
  29% { top: 0; opacity: 1; }
  47% { top: calc(100% - 44px); opacity: 1; }
  49%, 100% { top: calc(100% - 44px); opacity: 0; }
}

@keyframes feld {
  0%, 30% { opacity: 0; transform: translateY(4px); }
  32%, 100% { opacity: 1; transform: none; }
}

@keyframes vorschlag {
  0%, 51% { box-shadow: 0 0 0 0 transparent; }
  53%, 64% { box-shadow: 0 0 0 2px var(--app-warn); }
  67%, 100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes b-lesen {
  0%, 26% { opacity: 0; }
  27%, 51% { opacity: 1; }
  52%, 100% { opacity: 0; }
}

@keyframes b-pruefen {
  0%, 51% { opacity: 0; }
  52%, 62% { opacity: 1; }
  63%, 100% { opacity: 0; }
}

@keyframes b-fertig {
  0%, 62% { opacity: 0; }
  63%, 100% { opacity: 1; }
}

@keyframes klick {
  0%, 55% { transform: none; box-shadow: 0 0 0 0 transparent; }
  58% { transform: none; box-shadow: 0 0 0 4px var(--app-blau-hell); }
  60% { transform: scale(0.96); background: #1f2a3d; box-shadow: 0 0 0 4px var(--app-blau-hell); }
  63%, 100% { transform: none; background: var(--ink); box-shadow: 0 0 0 0 transparent; }
}

@keyframes meldung {
  0%, 72% { opacity: 0; transform: translateY(-6px); }
  75%, 92% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: none; }
}

@keyframes neu {
  0%, 74% { background: var(--app-blau-hell); }
  92%, 100% { background: transparent; }
}

@keyframes vs-1 {
  0%, 23% { background: var(--ink); color: #fff; border-color: var(--ink); }
  25%, 96% { background: var(--surface); color: var(--muted); border-color: var(--line); }
  98%, 100% { background: var(--ink); color: #fff; border-color: var(--ink); }
}

@keyframes vs-2 {
  0%, 24% { background: var(--surface); color: var(--muted); border-color: var(--line); }
  26%, 50% { background: var(--ink); color: #fff; border-color: var(--ink); }
  52%, 100% { background: var(--surface); color: var(--muted); border-color: var(--line); }
}

@keyframes vs-3 {
  0%, 50% { background: var(--surface); color: var(--muted); border-color: var(--line); }
  52%, 67% { background: var(--ink); color: #fff; border-color: var(--ink); }
  69%, 100% { background: var(--surface); color: var(--muted); border-color: var(--line); }
}

@keyframes vs-4 {
  0%, 68% { background: var(--surface); color: var(--muted); border-color: var(--line); }
  70%, 96% { background: var(--ink); color: #fff; border-color: var(--ink); }
  98%, 100% { background: var(--surface); color: var(--muted); border-color: var(--line); }
}

/* ---------- Unterseite Steuerberatung ---------- */

.hero-unterseite {
  padding-bottom: 72px;
}

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

.hero-unterseite .hero-text {
  max-width: 760px;
}

.hero-unterseite::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 100%;
  background: var(--rot);
  clip-path: polygon(100% 38%, 100% 70%, 30% 100%, 0 100%);
  pointer-events: none;
}

.hero-unterseite .breite {
  position: relative;
  z-index: 1;
}

@media (max-width: 959px) {
  .hero-unterseite::after {
    width: 70%;
    height: 22%;
  }
}

.teilung {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 760px) {
  .teilung {
    grid-template-columns: 1fr 1fr;
  }
}

.teilung .karte h3 {
  font-size: 20px;
}

.karte-akzent {
  border-color: var(--rot);
  box-shadow: inset 0 0 0 1px var(--rot);
}

.mehr-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 650;
}

.mehr-link .symbol {
  width: 16px;
  height: 16px;
  color: var(--rot);
}

/* ---------- Feinschliff für Handys ----------
   Überschreibt Werte von oben für schmale Bildschirme (Abnahme 360 und 390 px laut Agenturhandbuch). */

@media (max-width: 519px) {
  /* Gleich breite Knöpfe statt unterschiedlich langer Zeilen */
  .knopfreihe .knopf,
  .informieren-zeile .knopf-dunkel {
    flex: 1 1 100%;
  }

  /* Lange Beschriftungen dürfen umbrechen statt über den Rand zu ragen */
  .knopfreihe .knopf {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 639px) {
  .abschnitt {
    padding: 48px 0;
  }

  .raster {
    margin-top: 28px;
    gap: 14px;
  }

  /* Alltag und Kanzlei-Nutzen: Symbol links neben dem Titel spart Höhe */
  .problem {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
  }

  .problem .kachel {
    grid-row: span 2;
  }

  .problem h3 {
    margin-top: 10px;
    font-size: 18px;
  }

  .problem p {
    grid-column: 2;
    margin-top: 4px;
  }

  .karte {
    padding: 18px;
  }

  .karte p {
    font-size: 14px;
  }

  .ablauf li {
    padding: 20px;
  }

  .kern {
    gap: 48px;
    margin-top: 36px;
  }

  .kern-bild {
    padding: 14px 10px;
    border-radius: 16px;
  }

  .weitere-titel {
    margin-top: 56px;
  }

  /* Produktansichten kompakter; der Titel darf umbrechen, die Plakette rutscht dann in die nächste Zeile */
  .fenster-inhalt {
    padding: 16px;
  }

  .fenster-kopf {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .fenster-titel {
    font-size: 16px;
  }

  .fenster-titel .kachel {
    width: 32px;
    height: 32px;
  }

  .plakette {
    font-size: 11px;
  }

  .feld dd {
    padding: 7px 10px;
    font-size: 14px;
  }

  .liq-diagramm {
    height: 120px;
  }

  /* App-Vorschau: Schritte als vier gleiche Spalten, Beleg nur angeschnitten */
  .vorschau-leiste {
    gap: 10px;
  }

  .vorschau-schritte {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
  }

  .vs {
    flex-direction: column;
    gap: 4px;
    padding: 8px 2px;
    border-radius: 12px;
    font-size: 11.5px;
    line-height: 1.2;
    text-align: center;
  }

  .vorschau-pause-knopf {
    padding: 6px 12px;
    font-size: 13px;
  }

  .app-haupt {
    padding: 14px;
  }

  .app-titel {
    font-size: 17px;
  }

  .papier {
    max-height: 150px;
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
    mask-image: linear-gradient(to bottom, #000 65%, transparent);
  }

  /* Produktfamilie als Liste */
  .produkte {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .produkte li {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 14px 16px;
  }

  .produkte span {
    text-align: right;
  }

  .beta-karte {
    padding: 22px 18px;
  }

  /* iOS vergrößert Eingabefelder unter 16 px beim Antippen */
  .informieren-zeile input {
    font-size: 16px;
  }

  /* E-Mail-Adressen als Ganzes umbrechen, nicht mitten im Wort */
  .beta-direkt a,
  .einwilligung a[href^="mailto"] {
    white-space: nowrap;
  }

  /* Fußzeile: Links als Raster mit großen Tippflächen */
  .fusszeile-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    width: 100%;
  }

  .fusszeile-links a {
    padding: 8px 0;
  }

  /* Die E-Mail-Adresse bekommt eine eigene Zeile und bricht nicht mitten im Wort */
  .fusszeile-links a[href^="mailto"] {
    grid-column: 1 / -1;
    order: 9;
    white-space: nowrap;
  }
}

@media (max-width: 959px) {
  /* Beta und Partner: rote Fläche nur hinter dem unteren Rand der Karte, nie hinter den Listen */
  .beta::before {
    width: 100%;
    height: 16%;
    clip-path: polygon(100% 0, 100% 45%, 25% 100%, 0 100%);
  }
}
