/* Everts IT-Sicherheit - Stilgrundlage */

/* Schrift: Geist (SIL Open Font License, siehe ../fonts/LIZENZ-Geist.txt), lokal eingebunden.
   Eine variable Datei deckt alle Staerken von 100 bis 900 ab; genutzt werden 400, 500 und 600.
   Die Datei enthaelt den lateinischen Zeichensatz. Andere Zeichen (zum Beispiel das Haekchen
   in den Paketlisten) kommen aus der Systemschrift. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-variabel.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Variablen (Farben nach Spec Abschnitt 13)
   ========================================================================== */
:root {
  --nacht: #0b100e;
  --graphit: #161d1a;
  --graphit-rand: #26302b;
  --nebel: #f5f5f7;
  --tinte: #1d1d1f;
  --gruen: #30b158;
  --gruen-hell: #5fd98a;
  --gruen-dunkel: #1a7f37;
  --gruen-text: #04140a;
  --gruen-flaeche: #e3f3e8;
  --gelb: #f5a623;
  --rot: #e5484d;
  --rot-dunkel: #b42318;
  --grau-dunkel: #a1a1a6;
  --grau-hell: #6e6e73;
  /* Gedimmter Text fuer Effekte auf Nacht; Kontrast bleibt ueber 5:1 */
  --gedimmt: #7f8a84;

  /* Muster der dunklen Flaechen: feines Punktraster und weicher gruener Schein */
  --muster-punkte: radial-gradient(circle at 1px 1px, rgba(95, 217, 138, 0.11) 1px, transparent 1.5px);
  --muster-schein: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(48, 177, 88, 0.12), transparent 70%);
  --raster: 24px;

  --schrift: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --rand: 24px;
  --radius: 18px;
  --sanft: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
em { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Grundtypografie
   ========================================================================== */
body {
  font-family: var(--schrift);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--tinte);
  background: var(--nacht);
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.02em; line-height: 1.2; }

p, li { max-width: 70ch; }
.gross { font-size: clamp(19px, 2vw, 21px); }

/* ==========================================================================
   Abschnitte und Muster der dunklen Flaechen
   ========================================================================== */
.abschnitt { padding: clamp(64px, 10vw, 120px) 0; overflow-wrap: break-word; }
.abschnitt--dunkel {
  background-color: var(--nacht);
  background-image: var(--muster-schein), var(--muster-punkte);
  background-size: 100% 100%, var(--raster) var(--raster);
  color: var(--nebel);
}
.abschnitt--hell { background: var(--nebel); color: var(--tinte); }
:where(.abschnitt--dunkel) :where(p, .sekundaer) { color: var(--grau-dunkel); }
:where(.abschnitt--hell) :where(p, .sekundaer) { color: var(--grau-hell); }
:where(.abschnitt--dunkel) :where(h1, h2, h3) { color: var(--nebel); }
:where(.abschnitt--hell) :where(h1, h2, h3) { color: var(--tinte); }

.inhalt { width: 100%; max-width: calc(1080px + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); }

/* Gemeinsamer Kopf der Inhaltsabschnitte. Unter 821 px steht alles untereinander. */
.abschnitt__kopf { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.abschnitt__kopf p { margin-top: 20px; }

/* ==========================================================================
   Schaltflaechen und Links
   Schaltflaeche: hebt sich an, gruener Schein, ein Glanz streicht einmal darueber.
   ========================================================================== */
.knopf {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: 980px;
  background-color: var(--gruen);
  color: var(--gruen-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 0 rgba(48, 177, 88, 0);
  transition: transform 0.2s var(--sanft), box-shadow 0.2s ease, background-color 0.2s ease;
}
/* Glanz liegt zwischen Hintergrund und Schrift (negativer z-index im eigenen Stapelkontext) */
.knopf::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
}
.knopf:hover {
  transform: translateY(-2px);
  background-color: #3cc265;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 28px -8px rgba(48, 177, 88, 0.65), 0 0 0 1px rgba(95, 217, 138, 0.45);
}
.knopf:hover::after { animation: glanz 0.9s ease forwards; }
.knopf:active {
  transform: translateY(0) scale(0.97);
  background-color: #2a9e4e;
  box-shadow: inset 0 2px 4px rgba(4, 20, 10, 0.25), 0 2px 8px -2px rgba(48, 177, 88, 0.5);
  transition-duration: 0.08s;
}
.knopf--klein { min-height: 36px; padding: 6px 16px; font-size: 15px; }
@keyframes glanz { to { transform: translateX(120%); } }

/* Textlinks: dezente Unterstreichung in Ruhe; beim Zeigen waechst eine volle Linie von links ein */
.textlink {
  color: var(--gruen-hell);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(95, 217, 138, 0.4);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.3s var(--sanft), text-decoration-color 0.2s ease;
}
.abschnitt--hell .textlink { color: var(--gruen-dunkel); text-decoration-color: rgba(26, 127, 55, 0.4); }
.textlink:hover, .textlink:focus-visible,
.abschnitt--hell .textlink:hover, .abschnitt--hell .textlink:focus-visible { background-size: 100% 2px; text-decoration-color: transparent; }

/* Linien-Effekt fuer Menue-Links (eigenstaendige Menuepunkte, daher ohne Unterstreichung in Ruhe) */
.kopf__links a:not(.knopf) {
  text-decoration: none;
  background: linear-gradient(var(--gruen-hell), var(--gruen-hell)) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.3s var(--sanft), opacity 0.2s ease;
}
.kopf__links a:not(.knopf):hover, .kopf__links a:not(.knopf):focus-visible { background-size: 100% 2px; }

/* Tastaturfokus: Gruen hell auf Nacht, Gruen dunkel auf Hell */
:focus-visible { outline: 3px solid var(--gruen-hell); outline-offset: 3px; }
.abschnitt--hell :focus-visible { outline-color: var(--gruen-dunkel); }
.knopf:focus-visible { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 28px -8px rgba(48, 177, 88, 0.65); }

/* ==========================================================================
   Karten
   ========================================================================== */
.karte {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.25s var(--sanft), border-color 0.2s ease, box-shadow 0.25s ease;
}
.abschnitt--dunkel .karte { background: var(--graphit); border-color: var(--graphit-rand); color: var(--nebel); --karte-sekundaer: var(--grau-dunkel); --karte-akzent: var(--gruen-hell); }
.abschnitt--hell .karte { background: #ffffff; border-color: rgba(0, 0, 0, 0.08); color: var(--tinte); --karte-sekundaer: var(--grau-hell); --karte-akzent: var(--gruen-dunkel); }
.karte :where(h1, h2, h3) { color: inherit; }
.karte :where(p, .sekundaer) { color: var(--karte-sekundaer); }
.karte:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(11, 16, 14, 0.35); }

/* ==========================================================================
   Kopfzeile und Menue
   ========================================================================== */
.kopf {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 14, 0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--graphit-rand);
  color: var(--nebel);
}
.kopf__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  max-width: calc(1080px + 2 * var(--rand));
  margin: 0 auto;
  padding: 0 var(--rand);
}
.marke { display: block; flex: none; text-decoration: none; }
.marke img { height: 36px; width: auto; }
.kopf__links { display: flex; align-items: center; gap: 28px; }
.kopf__links a:not(.knopf) { color: var(--nebel); font-size: 15px; opacity: 0.85; }
.kopf__links a:not(.knopf):hover { opacity: 1; }

/* Menue: <details> nur auf schmalen Schirmen */
.kopf__menue { display: none; position: relative; }
.kopf__menue summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}
.kopf__menue summary::-webkit-details-marker { display: none; }
.kopf__menue nav {
  position: absolute;
  right: 0;
  top: 100%;
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 12px;
  border: 1px solid var(--graphit-rand);
  border-radius: var(--radius);
  background: var(--graphit);
}
.kopf__menue nav a { padding: 10px 12px; color: var(--nebel); text-decoration: none; border-radius: 10px; }
.kopf__menue nav a:hover { background: var(--graphit-rand); color: var(--gruen-hell); }

@media (max-width: 820px) {
  .kopf__links { display: none; }
  .kopf__menue { display: block; }
}

/* ==========================================================================
   Kopfbereich (Hero) mit bewegtem Muster
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--nacht);
  color: var(--nebel);
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 80px);
  text-align: center;
}
/* Punktraster: die Maske sitzt fest auf .hero__muster, das Raster darin ist eine
   uebergrosse Ebene, die per transform um genau eine Rasterweite wandert (nahtlos). */
.hero__muster {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 35%, #fff 35%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 35%, #fff 35%, transparent 85%);
}
.hero__muster::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--raster));
  left: calc(-1 * var(--raster));
  right: 0;
  bottom: 0;
  background-image: var(--muster-punkte);
  background-size: var(--raster) var(--raster);
}
/* Gruener Schein */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -320px;
  width: 1200px;
  height: 760px;
  margin-left: -600px;
  background: radial-gradient(closest-side, rgba(48, 177, 88, 0.2), transparent);
}
/* Bewegung nur mit JavaScript (die Pause-Schaltflaeche haelt sie an) und ohne reduzierte Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__muster::before { animation: raster-wandern 16s linear infinite; }
  .js .hero::after { animation: schein-schweben 20s ease-in-out infinite alternate; }
  .js .hero--angehalten .hero__muster::before,
  .js .hero--angehalten::after { animation-play-state: paused; }
}
@keyframes raster-wandern { to { transform: translate(var(--raster), var(--raster)); } }
@keyframes schein-schweben { from { transform: translateX(-14%); } to { transform: translateX(14%); } }

.hero h1 { max-width: 14em; margin: 0 auto; color: var(--nebel); }
.hero__text { max-width: 38em; margin: 24px auto 0; color: var(--grau-dunkel); }
.hero__aktionen { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; margin-top: 36px; }

/* ==========================================================================
   Beispielband im Kopfbereich
   Ohne JavaScript: von Hand scrollbar, mit schmaler Leiste.
   Mit JavaScript (band--laeuft): main.js schiebt das Band langsam weiter.
   ========================================================================== */
/* Rahmen mit zwei festen Verlaufsflaechen an den Raendern (statt Maske auf der scrollenden Flaeche).
   Links erscheint der Verlauf erst, wenn das Band laeuft, damit die erste Karte ohne JavaScript ganz sichtbar ist. */
.band-rahmen { position: relative; margin-top: clamp(48px, 7vw, 80px); }
.band-rahmen::before,
.band-rahmen::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: min(8%, 96px);
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.band-rahmen::before { left: 0; background: linear-gradient(90deg, var(--nacht), rgba(11, 16, 14, 0)); opacity: 0; }
.band-rahmen::after { right: 0; background: linear-gradient(270deg, var(--nacht), rgba(11, 16, 14, 0)); }
.band-rahmen--laeuft::before { opacity: 1; }
.band-rahmen:focus-within::before,
.band-rahmen:focus-within::after { opacity: 0; }

.band {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--graphit-rand) transparent;
}
.band:focus-visible { outline-offset: -3px; border-radius: 12px; }
.band--laeuft { scrollbar-width: none; cursor: grab; }
.band--laeuft::-webkit-scrollbar { display: none; }
.band--zieht { cursor: grabbing; -webkit-user-select: none; user-select: none; }
.band__spur { display: flex; gap: 20px; width: max-content; padding: 8px var(--rand) 16px; }
.band__eintrag { flex: none; max-width: none; }

.beispiel { width: 300px; text-align: left; }
.beispiel__text { margin-top: 14px; padding: 0 4px; font-size: 15px; line-height: 1.4; color: var(--grau-dunkel); }

.band__fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 16px; padding: 0 var(--rand); }
.band__hinweis { font-size: 14px; color: var(--grau-dunkel); }
.band__steuerung { display: flex; align-items: center; gap: 8px; }
.band__steuerung[hidden] { display: none; }
.band__schalter,
.band__pfeil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--graphit-rand);
  border-radius: 980px;
  background: rgba(22, 29, 26, 0.7);
  color: var(--nebel);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.band__schalter[hidden] { display: none; }
.band__pfeil { width: 44px; padding: 0; }
.band__pfeil svg { width: 16px; height: 16px; }
.band__schalter:hover, .band__pfeil:hover { border-color: var(--gruen-hell); color: var(--gruen-hell); }
.band__schalter:active, .band__pfeil:active { transform: scale(0.96); }
/* Symbol: zwei Balken (laeuft) oder Dreieck (angehalten), aus Rahmen gezeichnet */
.band__symbol { width: 10px; height: 12px; border-style: solid; border-color: currentColor; border-width: 0 3px; }
.band__schalter.ist-angehalten .band__symbol { width: 0; height: 0; border-color: transparent transparent transparent currentColor; border-width: 6px 0 6px 10px; }

/* --- Nachgebaute Oberflaechen (Mock-ups), bewusst ohne Marken --- */
.mock {
  display: flex;
  flex-direction: column;
  height: 212px;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  color: var(--tinte);
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 44px -12px rgba(0, 0, 0, 0.6);
}
.mock p, .mock li { max-width: none; }
.mock__leiste {
  display: flex;
  flex: none;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  background: #eceeed;
  border-bottom: 1px solid #dde1df;
}
.mock__titel { padding-left: 4px; font-weight: 600; color: #3d4340; }
.mock__adresse {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: #ffffff;
  color: #3d4340;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
}
.mock__adresse svg { flex: none; width: 13px; height: 13px; }
.mock__adresse--warnung { color: var(--rot-dunkel); font-weight: 500; }
.mock__flaeche { flex: 1; min-height: 0; padding: 14px 16px; overflow: hidden; }
.mock__flaeche--mitte { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.mock__flaeche--grau { background: #f4f5f4; }
.mock__symbol { width: 30px; height: 30px; margin-bottom: 4px; color: #6b716e; }
.mock__symbol--rot { color: var(--rot); }
.mock__ueberschrift { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: var(--tinte); }
.mock__klein { font-size: 11.5px; color: #555b58; }
.mock__knopf { margin-top: 8px; padding: 5px 14px; border-radius: 6px; background: #3d4340; color: #ffffff; font-size: 11.5px; font-weight: 500; }
.mock__knopf--rand { background: transparent; border: 1px solid #c5cbc8; color: #3d4340; }
.mock__balken { display: block; height: 6px; width: 60%; border-radius: 3px; background: #e1e5e3; }
.mock__balken--lang { width: 85%; background: #f2c9c9; }

/* Gefaelschte Rechnung */
.mail__kopf { display: flex; align-items: center; gap: 8px; }
.mail__avatar { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #dfe8e3; color: #2d5a3c; font-weight: 600; }
.mail__absender { display: grid; min-width: 0; line-height: 1.3; color: #555b58; font-size: 11px; }
.mail__absender b { color: var(--tinte); font-size: 12px; font-weight: 600; }
.etikett { flex: none; margin-left: auto; padding: 2px 9px; border-radius: 980px; font-size: 10.5px; font-weight: 600; }
.etikett--rot { background: #fde8e8; color: var(--rot-dunkel); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, 0.5); }
.mail__betreff { margin-top: 12px; font-size: 12.5px; font-weight: 600; }
.mail__text { margin-top: 4px; color: #555b58; font-size: 11.5px; }
.mail__konto { display: grid; gap: 6px; margin-top: 10px; padding: 8px 10px; border-left: 3px solid var(--rot); border-radius: 4px; background: #fdf1f1; color: var(--rot-dunkel); font-size: 11px; font-weight: 600; }

/* Kasse mit fremdem Skript */
.kasse__titel { font-size: 13px; font-weight: 600; }
.kasse__titel span { margin-left: 6px; font-weight: 400; color: #555b58; font-size: 11px; }
.kasse__feld { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 28px; margin-top: 6px; padding: 0 8px; border: 1px solid #cfd5d2; border-radius: 6px; color: #3d4340; letter-spacing: 0.08em; font-size: 11px; }
.kasse__feld span { letter-spacing: 0; color: #555b58; }
.kasse__reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fremd { display: grid; gap: 2px; margin-top: 10px; padding: 6px 8px; border: 1px dashed var(--rot); border-radius: 6px; background: #fdeeee; }
.fremd__marke { color: var(--rot-dunkel); font-size: 10.5px; font-weight: 600; }
.fremd code { overflow: hidden; color: #7a1d16; font-family: var(--mono); font-size: 10.5px; white-space: nowrap; text-overflow: ellipsis; }

/* Kundenmail im Spam */
.spam { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 12px 12px 12px 8px; }
.spam__ordner { display: grid; align-content: start; gap: 2px; padding-right: 8px; border-right: 1px solid #e1e5e3; }
.spam__ordner li { padding: 4px 6px; border-radius: 5px; color: #555b58; font-size: 11px; }
.spam__ordner .ist-aktiv { background: #fde8e8; color: var(--rot-dunkel); font-weight: 600; }
.spam__inhalt { min-width: 0; }
.spam__hinweis { padding: 6px 8px; border-radius: 6px; background: #fff3d1; color: #5c3f00; font-size: 10.5px; line-height: 1.35; }
.spam__nachricht { display: grid; gap: 4px; margin-top: 8px; padding: 8px; border: 1px solid #e1e5e3; border-radius: 6px; font-size: 11px; color: #555b58; }
.spam__nachricht b { color: var(--tinte); font-size: 11.5px; }

@media (max-width: 480px) {
  .beispiel { width: 264px; }
}

/* ==========================================================================
   KI-Aussage: grosser Satz, dessen Woerter beim Scrollen aufleuchten
   ========================================================================== */
.aussage { padding: clamp(96px, 16vw, 200px) 0; }
.aussage.abschnitt--dunkel { background-image: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(48, 177, 88, 0.1), transparent 70%), var(--muster-punkte); }
.aussage__titel { font-size: clamp(17px, 1.6vw, 19px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; }
.abschnitt--dunkel .aussage__titel { color: var(--gruen-hell); }
.aussage__text {
  max-width: 24em;
  margin-top: 28px;
  font-size: clamp(30px, 5.2vw, 60px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.abschnitt--dunkel .aussage__text { color: var(--nebel); }
.aussage__akzent { color: var(--gruen-hell); }
.aussage__folge { max-width: 36em; margin-top: clamp(32px, 5vw, 56px); }

/* ==========================================================================
   Risiken: vier Spalten mit Linien-Icons
   ========================================================================== */
.risiken { display: grid; gap: 40px; }
.risiko { max-width: none; }
.risiko__symbol {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--gruen-flaeche);
  color: var(--gruen-dunkel);
}
.risiko__symbol svg { width: 28px; height: 28px; }
.risiko p { margin-top: 12px; font-size: 17px; }
@media (min-width: 821px) { .risiken { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; } }
@media (min-width: 1024px) { .risiken { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

/* ==========================================================================
   Leistungen: vier Gruppen, durch Linien getrennt
   ========================================================================== */
/* Trennlinien als Rahmen der Gruppen selbst, nicht als Hintergrund des Containers:
   so zeigt der Container beim gestaffelten Einblenden keine graue Flaeche. */
.gruppen {
  display: grid;
  border: 1px solid var(--graphit-rand);
  border-radius: var(--radius);
  overflow: hidden;
}
.gruppe { padding: 28px 24px; background: var(--graphit); }
.gruppe + .gruppe { border-top: 1px solid var(--graphit-rand); }
.gruppe > p { margin-top: 8px; font-size: 17px; }
.gruppe__liste { display: grid; gap: 10px; margin-top: 20px; }
.gruppe__liste li { position: relative; padding-left: 22px; font-size: 17px; color: var(--nebel); }
.gruppe__liste li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 2px; border-radius: 1px; background: var(--gruen-hell); }
.leistungen__systeme { margin-top: 32px; font-size: 17px; }
@media (min-width: 821px) {
  .gruppen { grid-template-columns: repeat(2, 1fr); }
  .gruppe { padding: 40px; }
  .gruppe + .gruppe { border-top: 0; }
  .gruppe:nth-child(n + 3) { border-top: 1px solid var(--graphit-rand); }
  .gruppe:nth-child(odd) { border-right: 1px solid var(--graphit-rand); }
}

/* ==========================================================================
   Bericht: Text oben, darunter das Dashboard (Tafel)
   ========================================================================== */
.bericht__text { max-width: 760px; }
.bericht__text p { margin-top: 20px; }
.bericht__beispiel { margin-top: clamp(40px, 6vw, 64px); }
.bericht__unterschrift { display: grid; gap: 4px; margin-top: 20px; font-size: 14px; text-align: center; color: var(--grau-hell); }
.bericht__unterschrift span { font-size: 13.5px; }

.tafel {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 3vw, 32px);
  border-radius: 24px;
  background-color: var(--nacht);
  background-image: var(--muster-schein), var(--muster-punkte);
  background-size: 100% 100%, var(--raster) var(--raster);
  color: var(--nebel);
  box-shadow: 0 0 0 1px var(--graphit-rand), 0 40px 80px -30px rgba(11, 16, 14, 0.55);
}
.tafel :where(p, h3, li, dt, dd) { color: inherit; max-width: none; }
.tafel__kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 4px 4px 20px; border-bottom: 1px solid var(--graphit-rand); }
.tafel__titel { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.tafel .tafel__domain { margin-top: 4px; font-size: 15px; color: var(--grau-dunkel); }
.tafel .tafel__gesamt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 980px;
  background: rgba(48, 177, 88, 0.12);
  box-shadow: inset 0 0 0 1px rgba(95, 217, 138, 0.35);
  color: var(--gruen-hell);
  font-size: 15px;
  font-weight: 500;
}

.tafel__zahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kennzahl { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 16px; border: 1px solid var(--graphit-rand); border-radius: 14px; background: var(--graphit); }
.kennzahl:last-child { grid-column: 1 / -1; }
.tafel .kennzahl dt { font-size: 13.5px; line-height: 1.35; color: var(--grau-dunkel); -webkit-hyphens: auto; hyphens: auto; }
.kennzahl dd { font-size: clamp(24px, 3vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tafel .kennzahl small { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--gruen-hell); }

.tafel__felder { display: grid; gap: 16px; }
.tafel__feld { min-width: 0; padding: 20px; border: 1px solid var(--graphit-rand); border-radius: 16px; background: var(--graphit); }
.tafel__ueberschrift { margin-bottom: 8px; font-size: 15px; letter-spacing: -0.01em; line-height: 1.3; }

/* Statuspunkte (Dashboard) */
.status__punkt { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 0 4px rgba(48, 177, 88, 0.16); }
.status__punkt--gelb { background: var(--gelb); box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.16); }
.pruefpunkt { display: grid; grid-template-columns: 12px minmax(0, 1fr); align-items: center; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--graphit-rand); }
.pruefpunkt:last-child { border-bottom: 0; padding-bottom: 4px; }
.pruefpunkt__name { font-size: 15px; line-height: 1.4; }
.tafel .status__text { grid-column: 2; font-size: 14px; color: var(--gruen-hell); }
.tafel .status__punkt--gelb ~ .status__text { color: var(--gelb); font-weight: 500; }

/* Verlauf der Erreichbarkeit: Achse beginnt bei 95 %, links beschriftet, damit nichts uebertrieben wirkt */
.verlauf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; margin-top: 12px; }
.tafel .verlauf__skala { display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; line-height: 1; text-align: right; color: var(--grau-dunkel); font-variant-numeric: tabular-nums; }
.verlauf__grafik { width: 100%; height: auto; }
.verlauf__linien { fill: none; stroke: var(--graphit-rand); stroke-width: 1; }
.verlauf__balken rect { fill: var(--gruen); }
.verlauf__balken .verlauf__stoerung { fill: var(--gelb); }
.tafel .verlauf__achse { grid-column: 2; display: flex; justify-content: space-between; font-size: 13px; color: var(--grau-dunkel); }

/* Protokoll */
.protokoll li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--graphit-rand); font-size: 14.5px; line-height: 1.4; }
.protokoll li:last-child { border-bottom: 0; padding-bottom: 0; }
.protokoll time { color: var(--gruen-hell); font-variant-numeric: tabular-nums; }

@media (min-width: 560px) {
  .pruefpunkt { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .tafel .status__text { grid-column: auto; text-align: right; }
}
@media (min-width: 821px) {
  .tafel__zahlen { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .kennzahl:last-child { grid-column: auto; }
  .tafel__felder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tafel__feld--pruefung { grid-row: span 2; }
}

/* ==========================================================================
   Preise: drei Paketkarten, Plus dunkel hervorgehoben
   ========================================================================== */
.pakete { display: grid; gap: 20px; }
.paket { display: flex; flex-direction: column; padding: 32px 28px; }
.paket__titel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.paket__marke {
  padding: 4px 12px;
  border: 1px solid var(--gruen-hell);
  border-radius: 980px;
  color: var(--gruen-hell);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}
.paket__preis { display: flex; flex-direction: column; margin-top: 20px; color: inherit; }
.paket__betrag { font-size: clamp(44px, 5vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.paket__zeitraum { margin-top: 8px; font-size: 15px; color: var(--karte-sekundaer); }
.paket__fuer { margin-top: 16px; font-size: 16px; }
.paket__liste { display: grid; align-content: start; gap: 10px; margin: 24px 0 32px; padding-top: 24px; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.paket__liste li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.45; }
.paket__liste li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid var(--karte-akzent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.paket__knopf { width: 100%; margin-top: auto; }
.karte.paket--empfohlen {
  background: var(--graphit);
  border-color: var(--gruen);
  color: var(--nebel);
  --karte-sekundaer: var(--grau-dunkel);
  --karte-akzent: var(--gruen-hell);
  box-shadow: 0 24px 60px -24px rgba(48, 177, 88, 0.45);
}
.karte.paket--empfohlen:hover { box-shadow: 0 30px 70px -24px rgba(48, 177, 88, 0.6); }
.paket--empfohlen .paket__liste { border-top-color: var(--graphit-rand); }
.preise__hinweise { display: grid; gap: 12px; max-width: 760px; margin-top: 40px; font-size: 16px; }
.preise__hinweise strong { font-weight: 600; color: var(--tinte); }
@media (min-width: 821px) { .pakete { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 821px) and (max-width: 1023px) { .paket { padding: 28px 20px; } }
/* Die Beschriftung der Schaltflaeche ist lang: in den schmalen Karten etwas kleiner setzen, damit sie einzeilig bleibt */
.paket .knopf { font-size: 15px; padding-inline: 12px; text-align: center; }
/* Gleiche Zeilenhoehen in allen drei Karten, damit Preise und Listen auf einer Linie stehen */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 821px) {
    .paket { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  }
}

/* ==========================================================================
   Ablauf: drei Schritte mit grossen Ziffern und Fortschrittslinie
   ========================================================================== */
.schritte { display: grid; gap: 48px; counter-reset: schritt; }
.schritt { position: relative; max-width: none; padding-top: 28px; border-top: 1px solid var(--graphit-rand); counter-increment: schritt; }
.schritt::before {
  content: counter(schritt);
  display: block;
  margin-bottom: 20px;
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--gruen-hell);
}
/* Fortschrittslinie auf der oberen Kante */
.schritt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--gruen);
  box-shadow: 0 0 12px rgba(48, 177, 88, 0.6);
  transform-origin: left center;
}
.schritt p { margin-top: 12px; font-size: 17px; }
@media (min-width: 821px) { .schritte { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ==========================================================================
   Fragen: eine schmale Spalte, aufklappbar, Plus/Minus aus CSS
   ========================================================================== */
.inhalt.fragen { max-width: calc(720px + 2 * var(--rand)); }
.fragen h2 { margin-bottom: clamp(32px, 5vw, 56px); }
.fragen__liste { border-top: 1px solid rgba(0, 0, 0, 0.14); }
.frage { border-bottom: 1px solid rgba(0, 0, 0, 0.14); }
.frage summary {
  position: relative;
  display: block;
  padding: 22px 44px 22px 0;
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--tinte);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.frage summary::-webkit-details-marker { display: none; }
.frage summary::before,
.frage summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 16px;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.25s var(--sanft);
}
.frage summary::after { transform: rotate(90deg); }
.frage[open] summary::after { transform: rotate(0deg); }
.frage summary:hover, .frage[open] summary { color: var(--gruen-dunkel); }
.frage__antwort { padding-bottom: 24px; }
.frage__antwort p { font-size: 17px; }
.frage__antwort p + p { margin-top: 12px; }
@media (min-width: 821px) { .frage__antwort { padding-right: 44px; } }

/* ==========================================================================
   Termin: Text links, Formular rechts (dunkler Abschnitt)
   ========================================================================== */
.termin { display: grid; gap: 40px; align-items: start; }
.termin__text p { margin-top: 20px; }
.termin__direkt { font-size: 17px; color: var(--nebel); }
@media (min-width: 821px) { .termin { grid-template-columns: 5fr 6fr; gap: 64px; } }

.formular { display: grid; gap: 20px; }
.feld { display: grid; gap: 8px; align-content: start; }
/* Vorname und Nachname: ab 480 px nebeneinander, je zur Haelfte */
.feldreihe { display: grid; gap: 20px; }
@media (min-width: 480px) { .feldreihe { grid-template-columns: 1fr 1fr; } }
.pflicht { color: var(--gruen-hell); }.feld label, .formular__falle label { font-size: 16px; font-weight: 500; color: var(--nebel); }
.feld input, .feld textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--grau-hell);
  border-radius: 12px;
  background: var(--graphit);
  color: var(--nebel);
  font-size: 17px;
  line-height: 1.4;
  transition: border-color 0.2s ease;
}
.feld input:hover, .feld textarea:hover { border-color: var(--grau-dunkel); }
.feld textarea { min-height: 140px; resize: vertical; }
.feld input::placeholder, .feld textarea::placeholder { color: var(--grau-dunkel); opacity: 1; }
.feld input:focus-visible, .feld textarea:focus-visible { border-color: var(--gruen-hell); outline: 3px solid var(--gruen-hell); outline-offset: 2px; }
.feld input:user-invalid, .feld textarea:user-invalid { border-color: var(--rot); box-shadow: inset 0 0 0 1px var(--rot); }
.formular .knopf { justify-self: start; }
.formular__hinweis { margin-top: 20px; font-size: 15px; }
/* Honigtopf: aus dem Blickfeld, aber ohne display:none, damit einfache Bots ihn ausfuellen */
.formular__falle { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Meldungsseiten (danke.html, 404.html, Fehlerseite von kontakt.php)
   ========================================================================== */
.meldung { min-height: 60vh; }
.meldung h1 { font-size: clamp(32px, 5vw, 56px); }
.meldung p { margin-top: 20px; }
.meldung__liste { display: grid; gap: 8px; margin-top: 24px; }
.meldung__liste li { padding-left: 20px; position: relative; color: var(--nebel); }
.meldung__liste li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; height: 2px; background: var(--rot); }
.meldung .knopf { margin-top: 32px; }

/* ==========================================================================
   Fusszeile
   ========================================================================== */
.fuss { background: var(--nacht); color: var(--grau-dunkel); padding: 64px 0 32px; font-size: 15px; line-height: 1.6; border-top: 1px solid var(--graphit-rand); }
.fuss p { margin: 0; max-width: none; color: inherit; font-size: inherit; }
.fuss p + p { margin-top: 12px; }

/* Vier Spalten: Firma, Kontakt, Seite, Rechtliches. Schmal: untereinander, ab 560 px zwei Spalten */
.fuss__raster { display: grid; grid-template-columns: 1fr; gap: 40px 32px; }
.fuss__firma p { margin-top: 16px; max-width: 34ch; }
.fuss .fuss__titel { color: var(--nebel); font-weight: 600; margin-bottom: 10px; }
.fuss .fuss__titel + p { margin-top: 0; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li + li { margin-top: 8px; }

/* Links in den Listen: ruhig, Unterstrich bei Beruehrung. Links im Fliesstext: dauerhaft unterstrichen,
   damit sie nicht nur ueber die Farbe erkennbar sind */
.fuss a:not(.marke) { color: var(--nebel); transition: color 0.2s ease, text-decoration-color 0.2s ease; }
.fuss li a { text-decoration: none; }
.fuss p a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(245, 245, 247, 0.45);
}
.fuss a:not(.marke):hover, .fuss a:not(.marke):focus-visible {
  color: var(--gruen-hell);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: currentColor;
}

.fuss__unten { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--graphit-rand); font-size: 13px; }

@media (min-width: 560px) {
  .fuss__raster { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 821px) {
  .fuss__raster { grid-template-columns: 1.5fr 1.2fr 0.8fr 0.8fr; }
}

/* ==========================================================================
   Rechtstexte (impressum.html, datenschutz.html): heller Grund, schmale Textspalte
   ========================================================================== */
.rechtstext .inhalt > * { max-width: 68ch; }
.rechtstext h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 32px; }
.rechtstext h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; line-height: 1.2; margin-top: 48px; }
.rechtstext p, .rechtstext li { max-width: 68ch; font-size: 17px; color: var(--tinte); }
.rechtstext h2 + p, .rechtstext p + p { margin-top: 12px; }
.rechtstext__liste { display: grid; gap: 8px; margin: 12px 0; padding-left: 22px; list-style: disc; }
.rechtstext__liste + p { margin-top: 12px; }

/* ==========================================================================
   Scroll-Effekte
   Nur wenn main.js die Klasse "js" an <html> gesetzt hat UND keine reduzierte Bewegung
   gewuenscht ist, starten Inhalte versteckt. main.js setzt "ist-sichtbar" beim Hineinscrollen.
   Alle Einblendungen laufen als Keyframes mit "both", damit Hover-Transformationen frei bleiben.
   ========================================================================== */
@keyframes aufsteigen { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: none; } }
@keyframes einblenden { from { opacity: 0; scale: 0.97; } to { opacity: 1; scale: 1; } }
@keyframes zeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes kachel-an { from { opacity: 0; scale: 0.6; } to { opacity: 1; scale: 1; } }
@keyframes punkt-an { from { background-color: var(--graphit-rand); box-shadow: 0 0 0 0 transparent; scale: 0.5; } 60% { scale: 1.3; } }
@keyframes wachsen { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wischen { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes linie-fuellen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ziffer-an { from { color: var(--gedimmt); } to { color: var(--gruen-hell); } }

@media (prefers-reduced-motion: no-preference) {
  /* Aufsteigen: Abschnittskoepfe */
  .js [data-effekt="aufsteigen"]:not(.ist-sichtbar) { opacity: 0; }
  .js [data-effekt="aufsteigen"].ist-sichtbar { animation: aufsteigen 0.7s var(--sanft) both; }

  /* Gestaffelt: Leistungsgruppen und Paketkarten steigen nacheinander auf */
  .js [data-effekt="gestaffelt"]:not(.ist-sichtbar) > * { opacity: 0; }
  .js [data-effekt="gestaffelt"].ist-sichtbar > * { animation: aufsteigen 0.75s var(--sanft) both; }
  .js [data-effekt="gestaffelt"].ist-sichtbar > :nth-child(2) { animation-delay: 0.12s; }
  .js [data-effekt="gestaffelt"].ist-sichtbar > :nth-child(3) { animation-delay: 0.24s; }
  .js [data-effekt="gestaffelt"].ist-sichtbar > :nth-child(4) { animation-delay: 0.36s; }

  /* Zeichnen: Risiko-Icons ziehen ihre Linien nach */
  .js [data-effekt="zeichnen"] .risiko__symbol svg * { stroke-dasharray: 1; }
  .js [data-effekt="zeichnen"]:not(.ist-sichtbar) .risiko__symbol { opacity: 0; }
  .js [data-effekt="zeichnen"]:not(.ist-sichtbar) .risiko__symbol svg * { stroke-dashoffset: 1; }
  .js [data-effekt="zeichnen"].ist-sichtbar .risiko__symbol { animation: kachel-an 0.45s var(--sanft) both; }
  .js [data-effekt="zeichnen"].ist-sichtbar .risiko__symbol svg * { animation: zeichnen 1s ease-out both; animation-delay: 0.2s; }
  .js [data-effekt="zeichnen"].ist-sichtbar .risiko:nth-child(2) .risiko__symbol { animation-delay: 0.15s; }
  .js [data-effekt="zeichnen"].ist-sichtbar .risiko:nth-child(2) .risiko__symbol svg * { animation-delay: 0.35s; }
  .js [data-effekt="zeichnen"].ist-sichtbar .risiko:nth-child(3) .risiko__symbol { animation-delay: 0.3s; }
  .js [data-effekt="zeichnen"].ist-sichtbar .risiko:nth-child(3) .risiko__symbol svg * { animation-delay: 0.5s; }
  .js [data-effekt="zeichnen"].ist-sichtbar .risiko:nth-child(4) .risiko__symbol { animation-delay: 0.45s; }
  .js [data-effekt="zeichnen"].ist-sichtbar .risiko:nth-child(4) .risiko__symbol svg * { animation-delay: 0.65s; }

  /* Aufbauen: Dashboard setzt sich zusammen (Tafel, Kennzahlen, Felder, Punkte, Balken) */
  .js [data-effekt="aufbauen"]:not(.ist-sichtbar) .tafel,
  .js [data-effekt="aufbauen"]:not(.ist-sichtbar) .kennzahl,
  .js [data-effekt="aufbauen"]:not(.ist-sichtbar) .tafel__feld { opacity: 0; }
  .js [data-effekt="aufbauen"].ist-sichtbar .tafel { animation: einblenden 0.6s var(--sanft) both; }
  .js [data-effekt="aufbauen"].ist-sichtbar .kennzahl { animation: aufsteigen 0.6s var(--sanft) both; animation-delay: 0.2s; }
  .js [data-effekt="aufbauen"].ist-sichtbar .kennzahl:nth-child(2) { animation-delay: 0.28s; }
  .js [data-effekt="aufbauen"].ist-sichtbar .kennzahl:nth-child(3) { animation-delay: 0.36s; }
  .js [data-effekt="aufbauen"].ist-sichtbar .kennzahl:nth-child(4) { animation-delay: 0.44s; }
  .js [data-effekt="aufbauen"].ist-sichtbar .kennzahl:nth-child(5) { animation-delay: 0.52s; }
  .js [data-effekt="aufbauen"].ist-sichtbar .tafel__feld { animation: aufsteigen 0.6s var(--sanft) both; animation-delay: 0.5s; }
  .js [data-effekt="aufbauen"].ist-sichtbar .tafel__feld:nth-child(2) { animation-delay: 0.62s; }
  .js [data-effekt="aufbauen"].ist-sichtbar .tafel__feld:nth-child(3) { animation-delay: 0.74s; }
  .js [data-effekt="aufbauen"].ist-sichtbar .pruefpunkt .status__punkt { animation: punkt-an 0.5s ease-out both; animation-delay: 0.8s; }
  .js [data-effekt="aufbauen"].ist-sichtbar .pruefpunkt:nth-child(2) .status__punkt { animation-delay: 0.95s; }
  .js [data-effekt="aufbauen"].ist-sichtbar .pruefpunkt:nth-child(3) .status__punkt { animation-delay: 1.1s; }
  .js [data-effekt="aufbauen"].ist-sichtbar .pruefpunkt:nth-child(4) .status__punkt { animation-delay: 1.25s; }
  .js [data-effekt="aufbauen"].ist-sichtbar .pruefpunkt:nth-child(5) .status__punkt { animation-delay: 1.4s; }
  .verlauf__balken rect { transform-box: fill-box; transform-origin: 50% 100%; }
  .js [data-effekt="aufbauen"].ist-sichtbar .verlauf__balken { animation: wischen 1.1s ease-out both; animation-delay: 0.75s; }
  .js [data-effekt="aufbauen"].ist-sichtbar .verlauf__balken rect { animation: wachsen 0.9s var(--sanft) both; animation-delay: 0.75s; }

  /* Schritte: Linie fuellt sich nacheinander, Ziffern leuchten auf */
  .js [data-effekt="schritte"]:not(.ist-sichtbar) .schritt::before { color: var(--gedimmt); }
  .js [data-effekt="schritte"]:not(.ist-sichtbar) .schritt::after { transform: scaleX(0); }
  .js [data-effekt="schritte"].ist-sichtbar .schritt::after { animation: linie-fuellen 0.6s ease-out both; }
  .js [data-effekt="schritte"].ist-sichtbar .schritt::before { animation: ziffer-an 0.4s ease-out both; animation-delay: 0.45s; }
  .js [data-effekt="schritte"].ist-sichtbar .schritt:nth-child(2)::after { animation-delay: 0.6s; }
  .js [data-effekt="schritte"].ist-sichtbar .schritt:nth-child(2)::before { animation-delay: 1.05s; }
  .js [data-effekt="schritte"].ist-sichtbar .schritt:nth-child(3)::after { animation-delay: 1.2s; }
  .js [data-effekt="schritte"].ist-sichtbar .schritt:nth-child(3)::before { animation-delay: 1.65s; }

  /* KI-Aussage: Woerter sind gedimmt, bis sie die Lesezeile passieren (main.js setzt "ist-an") */
  .js .aussage__text.ist-aktiv .wort { color: var(--gedimmt); transition: color 0.35s ease; }
  .js .aussage__text.ist-aktiv .wort.ist-an { color: inherit; }
}

/* Bloecke, die beim Laden schon im Bild stehen, zeigt main.js sofort ohne Einblendung ("sofort") */
.js .sofort, .js .sofort *, .js .sofort ::before, .js .sofort ::after { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .knopf:hover, .knopf:active, .karte:hover { transform: none; }
}

/* ==========================================================================
   Druck: alles sichtbar im Endzustand, nichts bewegt sich, keine Bandsteuerung
   ========================================================================== */
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-effekt], .js [data-effekt] * { opacity: 1 !important; }
  .js [data-effekt] svg * { stroke-dashoffset: 0 !important; }
  .js [data-effekt="schritte"] .schritt::before { color: var(--gruen-hell) !important; }
  .js [data-effekt="schritte"] .schritt::after { transform: none !important; }
  .js .aussage__text .wort { color: inherit !important; }
  .kopf { position: static; }
  .band__steuerung, .band-rahmen::before, .band-rahmen::after { display: none !important; }
}
