/* ==========================================================================
   screenflow · Designsystem (Redesign 2026-10)

   Eine Datei für Tokens, Gerüst und Komponenten aller Seiten, ohne
   Ausnahme.

   Richtung: die klassische Agenturseite, sauber gemacht. Weiß und ein
   neutrales Hellgrau als Flächen, Text in Logo-Marine, eine einzige
   Farbe (Logo-Blau) für Hauptaktion, Links und aktive Navigation.
   Eine Schrift: Figtree (Variable Font, selbst gehostet, OFL).

   Reihenfolge: Schrift · Tokens · Grundlagen · Kopf · Hero · Abschnitte ·
   Produkte · Branchen · Vorteile · Ablauf · Team · Fragen · Kontakt ·
   Unterseiten · Fuß · Bewegung · Druck
   ========================================================================== */

/* ── Schrift ─────────────────────────────────────────────────────────────
   Ein @font-face je Subset mit Gewichtsbereich (Variable Font). Deutsche
   Umlaute, ß und „ " liegen im latin-Subset; latin-ext lädt nur, wenn
   eine Seite Zeichen daraus braucht. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(assets/fonts/figtree-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(assets/fonts/figtree-latin.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;
}

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  --bg:          #ffffff;
  --bg-soft:     #f4f5f7;
  --surface:     #ffffff;
  --ink:         #000e32;   /* Logo-Marine */
  --ink-soft:    #4a5368;   /* 8,1:1 auf Weiß */
  --ink-faint:   #5a6275;   /* 6,1:1 auf Weiß, 4,8:1 auf --line */
  --line:        #e4e6eb;
  --line-strong: #cfd3db;
  --field-border:#868d9d;   /* 3,3:1 auf Weiß: Rahmen von Bedienelementen */

  --accent:       #024af6;  /* Logo-Blau: Flächen unter weißer Schrift, 6,3:1 */
  --accent-hover: #0039cf;
  --accent-text:  #024af6;  /* Links und aktive Navigation */
  --accent-wash:  rgb(2 74 246 / 0.16);

  --navy:        #000e32;   /* Kontaktband */
  --navy-ink:    #ffffff;
  --navy-soft:   #b8c1d8;   /* 10:1 auf Marine */

  --danger:      #b42318;
  --shot-bg:     #e8ebf1;   /* Bühne hinter allen Produktbildern */

  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   18px;
  --r-pill: 999px;

  /* Der einzige Schatten der Seite: das geöffnete Menü. */
  --sh-menu: 0 18px 40px -12px rgb(0 0 0 / 0.2), 0 2px 6px rgb(0 0 0 / 0.06);

  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --shell:    1200px;
  --pad-x:    clamp(20px, 5vw, 40px);
  --header-h: 64px;
  --section-y: clamp(72px, 10vw, 128px);
}

/* Dunkel: reines Schwarz, neutrale Flächen ohne Blaustich, Blau aus dem
   dunklen Logo. theme-init.js setzt data-theme vor dem ersten Malen aus
   localStorage["sf-theme"]; ohne gespeicherte Wahl bleibt es hell. */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:          #000000;
  --bg-soft:     #0e0e10;
  --surface:     #161618;
  --ink:         #f5f5f7;
  --ink-soft:    #a9adb8;   /* 9,4:1 auf Schwarz */
  --ink-faint:   #8d919c;   /* 6,5:1 auf Schwarz */
  --line:        #26262b;
  --line-strong: #3a3a41;
  --field-border:#73767f;

  --accent:       #2a62f5;  /* 4,9:1 unter Weiß */
  --accent-hover: #4677f7;
  --accent-text:  #7ea6f2;  /* aus logo-dark */
  --accent-wash:  rgb(126 166 242 / 0.26);

  --navy:        #08102a;
  --navy-soft:   #b3bccf;

  --danger:      #ff8a80;
  --shot-bg:     #1b1c20;

  --sh-menu: 0 18px 40px -12px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.04);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--line-strong) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent-text);
}

::selection { background: var(--accent-wash); color: inherit; }

/* Komponenten mit eigenem display (Erfolgsmeldung, Fehler) bleiben trotzdem
   versteckt, solange das hidden-Attribut gesetzt ist. */
[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
/* <picture> nur als Hülle für die AVIF-Quelle: Layout und Selektoren
   sehen weiter direkt das <img>. */
picture { display: contents; }
img { height: auto; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: 100%;
  max-width: calc(var(--shell) + 2 * var(--pad-x));
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 0.9688rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 1.0625rem; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:disabled { opacity: 0.6; cursor: progress; }

/* Umriss-Knopf auf dem Foto: weiß in beiden Themes */
.btn--on-photo { border-color: rgb(255 255 255 / 0.72); color: #fff; }
.btn--on-photo:hover { background: rgb(255 255 255 / 0.14); border-color: #fff; }

.text-link {
  display: inline-block;
  margin-top: 32px;
  font-weight: 650;
  color: var(--accent-text);
}

/* ── Kopf ────────────────────────────────────────────────────────────── */
/* Deckend, ohne Glas-Unschärfe. Achtung: Kein backdrop-filter, transform
   oder filter an .header setzen: Das macht den Kopf zum Bezugsrahmen für
   das position:fixed-Vollbildmenü, das dann nur 64px hoch wäre. */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.logo { display: block; flex: none; border-radius: 6px; }
.logo__img { width: auto; height: 28px; }
.logo__img--dark { display: none; }
:root[data-theme="dark"] .logo__img--light { display: none; }
:root[data-theme="dark"] .logo__img--dark { display: block; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav__list { display: flex; align-items: center; gap: 2px; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 0.9688rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease);
}
.nav__link:hover { background: var(--bg-soft); }
.nav__link[aria-current="page"] { color: var(--accent-text); }

/* Aufklappmenü „Produkte" */
.menu { position: relative; }
.menu__toggle { list-style: none; user-select: none; }
.menu__toggle::-webkit-details-marker { display: none; }
.menu__chevron {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}
.menu[open] .menu__chevron { transform: rotate(180deg); }
.menu[open] > .menu__toggle { background: var(--bg-soft); }

.menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  width: 600px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-menu);
}
.menu[open] .menu__panel { animation: menu-in 0.22s var(--ease) both; }

.menu__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

.menu__link {
  display: block;
  height: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s var(--ease);
}
.menu__link:hover { background: var(--bg-soft); }
.menu__link[aria-current="page"] .menu__name { color: var(--accent-text); }
.menu__name { display: block; font-weight: 650; letter-spacing: -0.005em; }
.menu__text { display: block; margin-top: 2px; color: var(--ink-faint); font-size: 0.875rem; line-height: 1.4; }

.menu__all {
  display: block;
  margin: 8px 0 0;
  padding: 12px 14px 4px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
}
.menu__all:hover { text-decoration: underline; }

/* Menü-Knopf (nur schmal sichtbar) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__icon { position: relative; display: block; width: 20px; height: 12px; }
.nav-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.75px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle__icon span:first-child { top: 0; }
.nav-toggle__icon span:last-child { top: 10px; }
.header.is-open .nav-toggle__icon span:first-child { top: 5px; transform: rotate(45deg); }
.header.is-open .nav-toggle__icon span:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 8px var(--pad-x) 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
  }
  .header.is-open .nav { display: flex; animation: menu-in 0.22s var(--ease) both; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    border-radius: 0;
    font-size: 1.25rem;
    font-weight: 650;
  }
  .nav__link:hover, .menu[open] > .menu__toggle { background: none; }

  .menu__panel {
    position: static;
    width: auto;
    padding: 0 0 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }
  .menu[open] .menu__panel { animation: none; }
  .menu__list { grid-template-columns: 1fr; }
  .menu__link { padding: 10px 0; }
  .menu__link:hover { background: none; }
  .menu__name { font-size: 1.0625rem; }
  .menu__all { margin: 4px 0 0; padding: 10px 0 0; border-top: 0; }

  .nav__cta { width: 100%; min-height: 52px; font-size: 1.0625rem; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  background: #1a2433;  /* Grundton des Studiohintergrunds, bis das Foto da ist */
  color: #fff;
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}
/* Lesbarkeit: Marine von unten links, oben bleibt das Foto unberührt. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(0 10 36 / 0.9) 0%, rgb(0 10 36 / 0.62) 30%, rgb(0 10 36 / 0) 62%),
    linear-gradient(to right, rgb(0 10 36 / 0.38) 0%, rgb(0 10 36 / 0) 55%);
}

.hero__content {
  position: relative;
  padding-block: 48px clamp(40px, 7vh, 80px);
}

.hero__title {
  max-width: 12.5em;
  font-size: clamp(2.5rem, 1.15rem + 4.3vw, 4.75rem);
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: -0.033em;
  text-wrap: balance;
}

.hero__text {
  max-width: 34rem;
  margin-top: 20px;
  color: rgb(255 255 255 / 0.88);
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.5;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__caption {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(40px, 7vh, 80px);
  max-width: 17rem;
  color: rgb(255 255 255 / 0.72);
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: right;
}

/* Gestaffelte Einblendung beim Laden: einmal, nur CSS, Text ist kein LCP. */
.hero__title, .hero__text, .hero__actions, .hero__caption {
  animation: rise 0.8s var(--ease) both;
}
.hero__text    { animation-delay: 0.08s; }
.hero__actions { animation-delay: 0.16s; }
.hero__caption { animation-delay: 0.3s; }

/* Schmal oder hochkant: Foto oben mit allen drei Gesichtern, Text darunter
   auf Marine. Der Verlauf lässt die schwarzen Shirts nahtlos in die Fläche
   übergehen. Hochkant gilt auch für Tablets: dort würde „cover" zwei der
   drei Gründer abschneiden. */
@media (max-width: 719px), (max-aspect-ratio: 1/1) {
  .hero { display: block; min-height: 0; background: #050b1c; }
  .hero__media { position: relative; z-index: 0; }
  .hero__photo { aspect-ratio: 4 / 3.15; height: auto; object-position: 50% 0; }
  .hero__media::after {
    background: linear-gradient(to top, #050b1c 0%, rgb(5 11 28 / 0.55) 22%, rgb(5 11 28 / 0) 48%);
  }
  .hero__content { margin-top: -56px; padding-block: 0 48px; }
  .hero__caption {
    position: static;
    max-width: none;
    margin-top: 28px;
    text-align: left;
  }
}
@media (max-width: 719px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ── Abschnitte ──────────────────────────────────────────────────────── */
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }

.section__head { max-width: 44rem; margin-bottom: clamp(36px, 4.5vw, 56px); }

.section__title {
  font-size: clamp(2rem, 1.35rem + 2.1vw, 3.125rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.section__lead {
  max-width: 40rem;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ── Produkte ────────────────────────────────────────────────────────── */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
}
.product:has(.product__link:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 3px; }

/* Eine Bühne für alle vier Produkte: gleicher Grund, gleicher Rahmen,
   gleicher Ausschnitt. Jedes Bild sitzt eingerückt wie ein Fenster, das
   unten rechts aus der Fläche läuft. Kante: Haarlinie statt Schatten. */
.product__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 32px 0 0 32px;
  background: var(--shot-bg);
}
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  border-radius: var(--r-sm) 0 0 0;
  box-shadow: 0 0 0 1px var(--line-strong);
  transition: transform 0.7s var(--ease);
}
.product:hover .product__media img { transform: translate(-4px, -4px); }
.product__media--photo img { object-position: center; }

/* Kennzeichnung für Ansichten mit erfundenen Beispielzahlen: als Textzeile
   unter der Beschreibung, damit nichts im Screenshot verdeckt wird. */
.product__note { margin-top: 8px; color: var(--ink-faint); font-size: 0.8125rem; }

/* Dunkel: Das Geräte-Foto hat einen weißen Grund, der als einzige grelle
   Fläche im Raster stünde. Leicht abgedunkelt fügt es sich ein. */
:root[data-theme="dark"] .product__media--device img { filter: brightness(0.8); }

.product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 30px 30px;
}

.product__name, .digicheck__title {
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.product__link { color: var(--ink); text-decoration: none; }
.product__link:focus-visible { outline: none; }
/* Gestreckter Link: die ganze Kachel ist klickbar. */
.product__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.product__text { max-width: 34rem; margin-top: 10px; color: var(--ink-soft); }

.product__more {
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent-text);
  font-size: 0.9688rem;
  font-weight: 650;
}
.product:hover .product__more { text-decoration: underline; text-underline-offset: 0.2em; }

.product__extra {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.product__extra:hover { color: var(--ink); }

/* Digi-Check unter dem Raster: eine Kachel über die volle Breite, Frage
   links, Adressfeld rechts (5:7 wie die übrigen Paare). Das Formular
   schickt per GET an digicheck.screen-flow.de, ohne Skript. */
.digicheck {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(40px, 6vw, 88px);
  align-items: center;
  margin-top: 20px;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
}
.digicheck__title { text-wrap: balance; }
.digicheck__lead { margin-top: 10px; color: var(--ink-soft); }
.digicheck__form { display: flex; align-items: flex-end; gap: 12px; }
.digicheck__field { flex: 1; }
/* Feld und Knopf gleich hoch: das Feld wächst mit Zeilenhöhe und
   Innenabstand auf knapp 51px, der große Knopf hat 52px. Zwei Klassen,
   weil .field input weiter unten steht. */
.digicheck .field input { min-height: 52px; }

@media (max-width: 900px) {
  .digicheck { grid-template-columns: 1fr; row-gap: 20px; }
}

@media (max-width: 760px) {
  .products { grid-template-columns: 1fr; gap: 16px; }
  .product__body { padding: 24px 24px 28px; }
  .product__media { padding: 24px 0 0 24px; }
  .digicheck { margin-top: 16px; }
}

@media (max-width: 560px) {
  .digicheck__form { flex-direction: column; align-items: stretch; }
}

/* ── Branchen ────────────────────────────────────────────────────────── */
.sectors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.sector img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--line);
}
.sector__name { margin-top: 14px; font-weight: 650; letter-spacing: -0.005em; }

@media (max-width: 760px) {
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .sector__name { margin-top: 10px; font-size: 0.9688rem; }
}

/* ── Vorteile ────────────────────────────────────────────────────────── */
.benefits {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.benefits__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% 50%;
  border-radius: var(--r-lg);
  background: var(--line);
}
.benefits__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 40px;
  margin-top: clamp(32px, 4vw, 48px);
}
.benefit { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.benefit__title { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
.benefit__text { margin-top: 8px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .benefits { grid-template-columns: 1fr; }
  .benefits__media img { aspect-ratio: 3 / 2; }
}
@media (max-width: 560px) {
  .benefits__list { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Ablauf ──────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
}
.step { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.step__nr {
  display: block;
  color: var(--ink);
  font-size: 2.25rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.step__title { margin-top: 20px; font-size: 1.3125rem; font-weight: 650; letter-spacing: -0.015em; }
.step__text { margin-top: 10px; color: var(--ink-soft); }
/* Vier Schritte statt drei: zweispaltig, sonst bleibt der vierte allein
   in einer dritten Zeile stehen. */
.steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Einzelleistungen unter einem Schritt – wie in den Paket-Details. */
.step .checklist { margin-top: 18px; font-size: 0.9688rem; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; }
  .step__nr { grid-row: span 2; font-size: 2.25rem; }
  .step__title { margin-top: 0; }
  /* Alles ausser der Nummer gehört in die rechte Spalte, sonst rutscht eine
     dritte Zeile (die Checkliste) unter die Nummer. */
  .step > :not(.step__nr) { grid-column: 2; }
}

/* ── Team ────────────────────────────────────────────────────────────── */
.team {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.team__people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--line);
}
.person__name { margin-top: 14px; font-weight: 650; letter-spacing: -0.01em; }
.person__role {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 0.9063rem;
  line-height: 1.4;
  hyphens: auto;          /* „Softwarearchitektur" passt sonst bei 390px nicht in die Spalte */
  overflow-wrap: break-word;
}

@media (max-width: 900px) {
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .team__people { gap: 12px; }
  .person__name { font-size: 0.9375rem; }
  .person__role { font-size: 0.8125rem; }
}

/* ── Fragen ──────────────────────────────────────────────────────────── */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
  border-radius: 0;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent-text); }
.faq__icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__a { max-width: 62ch; padding-bottom: 24px; color: var(--ink-soft); }
.faq__a p + p { margin-top: 12px; }
.faq__a strong { color: var(--ink); font-weight: 650; }

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
}

/* ── Kontakt ─────────────────────────────────────────────────────────── */
.contact {
  padding-block: var(--section-y);
  background: var(--navy);
  color: var(--navy-ink);
  /* html hat schon scroll-padding-top (Kopf + 16px); beides addiert sich.
     -16px lässt das Band genau an der Kopfkante beginnen. */
  scroll-margin-top: -16px;
}
/* Breit: Einleitung und Direktkontakt links, Formular rechts über beide
   Zeilen. Schmal: Einleitung, Formular, Direktkontakt. */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "intro form" "direct form";
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact__intro { grid-area: intro; }
.contact__direct { grid-area: direct; }
.form { grid-area: form; }
.contact .section__title { color: #fff; }
.contact__lead { max-width: 30rem; margin-top: 18px; color: var(--navy-soft); font-size: 1.1875rem; }

.contact__direct { display: grid; gap: 18px; margin-top: 40px; }
.contact__direct dt { color: var(--navy-soft); font-size: 0.875rem; }
.contact__direct dd { margin-top: 2px; font-size: 1.0625rem; font-weight: 650; }
.contact__direct a { color: #fff; }
.contact :focus-visible { outline-color: #fff; }

.form {
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
}
/* Ausserhalb des Kontaktbandes (SEO-Prüfung in einem .split) gibt es keine
   benannten Rasterflächen – dort platziert sich die Karte von selbst. */
.split > .form { grid-area: auto; }
.form :focus-visible { outline-color: var(--accent-text); }
.form__body { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__hp { position: absolute; left: -9999px; }

.field { display: grid; gap: 6px; }
.field__label { font-size: 0.9375rem; font-weight: 650; }
.field__opt { color: var(--ink-faint); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.field input:user-invalid, .field textarea:user-invalid,
.field [aria-invalid="true"], .check [aria-invalid="true"] { border-color: var(--danger); outline-color: var(--danger); }
/* Ungültig bleibt auch im Fokus rot: sf.js setzt den Fokus nach einem
   Server-Fehler genau auf dieses Feld. */
.field input[aria-invalid="true"]:focus, .field textarea[aria-invalid="true"]:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgb(180 35 24 / 0.18);
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.form__error {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgb(180 35 24 / 0.08);
  color: var(--danger);
  font-size: 0.9375rem;
}
.form__submit { justify-self: start; }

.form__success { display: grid; justify-items: start; gap: 8px; padding: 24px 0; }
.form__success-icon {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 50%;
  background: var(--accent);
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form__success-title { margin-top: 8px; font-size: 1.375rem; font-weight: 650; letter-spacing: -0.015em; }
.form__success-text { color: var(--ink-soft); }

@media (max-width: 900px) {
  .contact { padding-block: 40px 64px; }
  .contact__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "form" "direct";
    grid-template-rows: auto;
    row-gap: 28px;
  }
  .contact__lead { margin-top: 12px; font-size: 1.0625rem; }
  .contact__direct { margin-top: 12px; }
}

/* Dunkel: keine Marine-Fläche zwischen schwarzen Abschnitten, sondern
   dieselbe neutrale Fläche wie die übrigen Wechselabschnitte. */
:root[data-theme="dark"] .contact { background: var(--bg-soft); }
:root[data-theme="dark"] .form { box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .form__submit { justify-self: stretch; }
}

/* ── Unterseiten ─────────────────────────────────────────────────────────
   Bausteine, aus denen alle Unterseiten gebaut sind. Gleiche Tokens,
   Radien und Linien wie die Startseite: Flächen in --bg-soft, Trennung
   über Haarlinien, Blau nur für Aktionen und Links. */

/* Seitenkopf: Brotkrumen, Überschrift, ein Satz, Aktionen. Ohne
   Einblende-Animation: Hier ist die Überschrift meist das LCP-Element,
   und ein Element mit opacity 0 zählt für Chrome nicht als gemalt. */
.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(36px, 5vw, 64px); }
.page-head--center { text-align: center; }
.page-head--center .page-head__title,
.page-head--center .page-head__lead { margin-inline: auto; }
.page-head--center .page-head__actions,
.page-head--center .crumbs ol { justify-content: center; }

.crumbs { margin-bottom: 24px; font-size: 0.9063rem; }
.crumbs ol { display: flex; flex-wrap: wrap; row-gap: 4px; }
.crumbs li { color: var(--ink-faint); }
.crumbs li + li::before { content: "/"; margin-inline: 8px; color: var(--line-strong); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.page-head__title {
  max-width: 15em;
  font-size: clamp(2.375rem, 1.3rem + 3.6vw, 4.25rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.page-head__lead {
  max-width: 40rem;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.page-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 560px) {
  .page-head__actions .btn { flex: 1 1 100%; }
}

/* Fehlerseiten: die Ziffer, groß und leise */
.page-head__code {
  margin-bottom: 8px;
  color: var(--line-strong);
  font-size: clamp(4.5rem, 3rem + 6vw, 8rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.05em;
}

/* Zweiter Knopf auf hellem Grund */
.btn--secondary { border-color: var(--line-strong); color: var(--ink); }
.btn--secondary:hover { border-color: var(--ink-faint); background: var(--bg-soft); }

/* Großes Bild direkt unter dem Seitenkopf. --photo: Foto im Querformat.
   Ohne Modifier steht eine Bildschirmansicht auf der Bühne (.stage). */
.page-media { padding-bottom: var(--section-y); }
.page-media--photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-lg); background: var(--line); }
.page-media__caption { margin-top: 12px; color: var(--ink-faint); font-size: 0.8125rem; }

/* Bühne für Bildschirmansichten: derselbe Grund wie im Produktraster.
   Die Ansicht läuft unten aus der Fläche. */
.stage {
  overflow: hidden;
  padding: clamp(24px, 5vw, 64px) clamp(24px, 5vw, 64px) 0;
  border-radius: var(--r-lg);
  background: var(--shot-bg);
}
.stage img {
  margin-inline: auto;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  box-shadow: 0 0 0 1px var(--line-strong);
}
/* Freigestellte Ansichten mit eigenen runden Ecken und transparentem
   Rand: ganz sichtbar, ohne zusätzliche Kante. */
.stage--free { padding-bottom: clamp(24px, 5vw, 64px); }
@media (max-width: 560px) {
  .stage--free { padding: 16px; }
}
.stage--free img { border-radius: 0; box-shadow: none; }
.stage + .stage { margin-top: 20px; }
/* Handy-Ansicht: Aufnahme in doppelter Auflösung, halb so breit gezeigt */
.stage--phone img { width: min(310px, 100%); }
.stage-note { margin-top: 12px; color: var(--ink-faint); font-size: 0.8125rem; }

/* Text und Bild nebeneinander; --flip stellt das Bild nach links. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.split--top { align-items: start; }
.split--flip .split__media { order: -1; }
.split__media img { width: 100%; border-radius: var(--r-lg); background: var(--line); }
.split__text .section__lead + .section__lead { margin-top: 14px; }
.split__text .checklist,
.split__text .features { margin-top: 32px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}

/* Gleichrangige Punkte mit Haarlinie darüber (wie Vorteile und Ablauf). */
.features {
  --cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 36px 40px;
}
.features--2 { --cols: 2; }
.features--4 { --cols: 4; }
.feature { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.feature__title { font-size: 1.1875rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; }
.feature__text { margin-top: 8px; color: var(--ink-soft); }
.feature__link { display: inline-block; margin-top: 12px; font-weight: 650; }
@media (max-width: 1023px) {
  .features--4 { --cols: 2; }
}
@media (max-width: 900px) {
  .features { --cols: 2; }
}
@media (max-width: 560px) {
  .features { --cols: 1; gap: 28px; }
}

.section__more { margin-top: clamp(32px, 4vw, 48px); color: var(--ink-soft); }

/* Häkchenliste: Leistungen, die in etwas enthalten sind. */
.checklist { display: grid; gap: 14px; }
.checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.checklist li::before {
  content: "";
  position: absolute;
  top: 0.15em;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-wash);
}
.checklist li::after {
  content: "";
  position: absolute;
  top: calc(0.15em + 5px);
  left: 8px;
  width: 6px;
  height: 10px;
  border: solid var(--accent-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checklist strong { color: var(--ink); font-weight: 650; }
@media (max-width: 760px) {
  .checklist--2 { grid-template-columns: 1fr; }
}

/* Preise: drei Pakete, das empfohlene mit blauem Rand. */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.tier {
  position: relative;
  padding: 32px 28px 24px;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
}
.tier--featured { background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent); }
.tier__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.2;
}
.tier__name { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.015em; }
.tier__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 16px; color: var(--ink-soft); }
.tier__amount { color: var(--ink); font-size: 2.75rem; font-weight: 750; line-height: 1; letter-spacing: -0.035em; }
.tier__monthly { margin-top: 8px; font-weight: 650; }
.tier__text { margin-top: 14px; color: var(--ink-soft); }
.tier__details { margin-top: 20px; border-top: 1px solid var(--line-strong); }
.tier__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-top: 12px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.tier__summary::-webkit-details-marker { display: none; }
.tier__summary:hover { color: var(--accent-text); }
.tier__details[open] .faq__icon { transform: rotate(180deg); }
.tier__details .checklist { margin-top: 12px; padding-bottom: 4px; font-size: 0.9688rem; }
@media (max-width: 900px) {
  .tiers { grid-template-columns: 1fr; max-width: 34rem; }
}

/* Kennzahlen mit Quelle */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.stat { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.stat__num {
  display: block;
  font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 14px; color: var(--ink-soft); }
/* Vier Kennzahlen statt drei. Ab mittlerer Breite zwei mal zwei, sonst wird
   die Spalte schmaler als die Zahl darin. */
.stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
}

.sources { margin-top: clamp(40px, 5vw, 56px); color: var(--ink-faint); font-size: 0.875rem; }
.sources__title { color: var(--ink-soft); font-weight: 650; }
.sources ol { margin-top: 8px; padding-left: 1.3em; list-style: decimal; }
.sources li + li { margin-top: 6px; }
.sources a { color: var(--ink-soft); overflow-wrap: anywhere; }

/* Hervorgehobener Satz: Versprechen, Grundsatz */
.callout {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
}
.section--soft .callout { background: var(--surface); }
.callout__label { color: var(--accent-text); font-size: 0.9375rem; font-weight: 650; }
.callout__text { max-width: 62ch; margin-top: 8px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.55; }

/* Protokoll einer Automation (KI-Lösungen): Zeit, Schritt, Ergebnis. */
.log {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong);
  font-size: 0.9375rem;
}
.log__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.8125rem;
  font-weight: 650;
}
.log__rows li {
  display: grid;
  grid-template-columns: 64px 76px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 20px;
}
.log__rows li + li { border-top: 1px solid var(--line); }
.log__time { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.log__kind { font-weight: 650; }
.log__val { color: var(--ink-soft); }
.log__val--hand { color: var(--accent-text); font-weight: 650; }
@media (max-width: 560px) {
  .log__rows li { grid-template-columns: 64px minmax(0, 1fr); row-gap: 2px; }
  .log__val { grid-column: 2; }
}

/* Abschluss jeder Unterseite: ein Satz, ein Knopf zum Erstgespräch. */
.cta-band {
  padding-block: clamp(72px, 9vw, 120px);
  background: var(--navy);
  color: var(--navy-ink);
  text-align: center;
}
.cta-band .section__title { max-width: 18em; margin-inline: auto; color: #fff; }
.cta-band__text { max-width: 36rem; margin: 18px auto 0; color: var(--navy-soft); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.cta-band :focus-visible { outline-color: #fff; }
:root[data-theme="dark"] .cta-band { background: var(--bg-soft); }
@media (max-width: 560px) {
  .cta-band__actions .btn { flex: 1 1 100%; }
}

/* Team auf „Über uns" */
.members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); background: var(--line); }
.member__name { margin-top: 20px; font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; }
.member__role { margin-top: 4px; color: var(--accent-text); font-weight: 650; }
.member .checklist { margin-top: 18px; gap: 10px; }
.member__quote {
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  font-size: 1.0625rem;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .members { grid-template-columns: 1fr; max-width: 30rem; }
}

.sector__text { margin-top: 4px; color: var(--ink-soft); font-size: 0.9688rem; }

/* Fließtext: Rechtliches */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 48px; font-size: 1.5rem; font-weight: 750; line-height: 1.25; letter-spacing: -0.02em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; font-size: 1.1875rem; font-weight: 650; }
.prose p, .prose ul, .prose dl, .prose address { margin-top: 14px; color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 4px; }
.prose address { font-style: normal; line-height: 1.7; }
.prose dt { margin-top: 20px; color: var(--ink); font-weight: 650; }
.prose dt:first-child { margin-top: 0; }
.prose dd { margin-top: 2px; }
.prose dd address { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { overflow-wrap: anywhere; }

/* Preisrechner: sieben Fragen, Empfehlung, Kontaktdaten. Die Antworten
   sind echte Radio-Knöpfe und Checkboxen, unsichtbar über ihrer Fläche:
   Tastatur, Screenreader und Pflichtfeld-Prüfung bleiben nativ. */
.quiz { max-width: 52rem; margin-inline: auto; }
/* Die Legende fließt (float) statt im Rahmen zu sitzen: Sonst läuft die
   Trennlinie rechts neben dem Fragetext weiter. */
.quiz__q { min-width: 0; margin: 0; padding: 28px 0 32px; border: 0; box-shadow: inset 0 1px 0 var(--line-strong); }
.quiz__legend { float: left; width: 100%; display: flex; gap: 14px; padding: 0; font-size: 1.25rem; font-weight: 650; line-height: 1.35; letter-spacing: -0.01em; }
.quiz__nr { flex: none; min-width: 1.5rem; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.quiz__hint { color: var(--ink-faint); font-size: 1rem; font-weight: 400; }

.choices { clear: both; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; padding-left: calc(1.5rem + 14px); }
.choices--stack { flex-direction: column; align-items: stretch; }
.choice { position: relative; display: flex; }
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice__box {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--field-border);
  border-radius: var(--r-sm);
  background: var(--surface);
  line-height: 1.35;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.choice:hover .choice__box { border-color: var(--ink-soft); }
.choice input:checked + .choice__box {
  border-color: var(--accent-text);
  background: var(--accent-wash);
  box-shadow: inset 0 0 0 1px var(--accent-text);
}
.choice input:focus-visible + .choice__box { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.choice__box strong { font-weight: 650; }
.choice__tag { margin-left: auto; padding-left: 8px; color: var(--ink-faint); font-size: 0.8125rem; white-space: nowrap; }

.quiz__result {
  margin-top: 8px;
  padding: 28px 32px;
  border-radius: var(--r-lg);
  background: var(--navy);
  color: var(--navy-ink);
}
.quiz__result-label { color: var(--navy-soft); font-size: 0.9375rem; font-weight: 650; }
.quiz__result-tier { margin-top: 4px; font-size: 2.25rem; font-weight: 750; letter-spacing: -0.03em; }
.quiz__result-price { margin-top: 4px; color: var(--navy-soft); }
:root[data-theme="dark"] .quiz__result { background: var(--bg-soft); box-shadow: 0 0 0 1px var(--line); }

.quiz__contact { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.quiz__contact-title { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; }
.quiz__contact-lead { margin: 8px 0 24px; color: var(--ink-soft); }
.quiz .form__success { padding: 32px 0 0; }

@media (max-width: 560px) {
  .choices { padding-left: 0; }
  .quiz__legend { font-size: 1.125rem; }
}

/* Abschnitt direkt unter dem Seitenkopf oder einem Bild: ohne
   doppelten Abstand oben. */
.section--flush { padding-top: 0; }

/* Zwei Bildschirmansichten nebeneinander */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.shots .stage + .stage { margin-top: 0; }
@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr; }
}

/* Teamfoto als Seitenbild: Die Köpfe stehen im oberen Drittel. */
.page-media--team img { aspect-ratio: 16 / 9; object-position: 50% 24%; }
@media (max-width: 719px) {
  .page-media--team img { aspect-ratio: 4 / 3; }
}

/* Geräte-Foto mit weißem Grund: im Dunkelmodus leicht abgedunkelt,
   wie in der Produktkachel. */
:root[data-theme="dark"] .media--device { filter: brightness(0.8); }

/* ── Fuß ─────────────────────────────────────────────────────────────── */
.footer {
  padding-top: clamp(56px, 7vw, 80px);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer__claim { max-width: 22rem; margin-top: 16px; color: var(--ink-soft); }
.footer__address { margin-top: 16px; color: var(--ink-faint); font-style: normal; line-height: 1.6; }
.footer__title { margin-bottom: 14px; font-size: 0.9375rem; font-weight: 650; }
.footer__col li + li { margin-top: 8px; }
.footer__col a { color: var(--ink-soft); text-decoration: none; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }

/* Die Trennlinie läuft nur über die Inhaltsbreite, nicht über das Padding
   der .shell: deshalb als Hintergrund statt als border. */
.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-block: 24px 32px;
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--pad-x)) 1px no-repeat;
  color: var(--ink-faint);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  cursor: pointer;
}
.theme-switch__track {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  transition: background-color 0.2s var(--ease);
}
.theme-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform 0.25s var(--ease);
}
.theme-switch[aria-checked="true"] .theme-switch__track { background: var(--accent); }
.theme-switch[aria-checked="true"] .theme-switch__knob { transform: translateX(18px); }

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer__bar { flex-direction: column; align-items: flex-start; }
}

/* ── Bewegung ────────────────────────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* Sachte Bewegung, die nichts kostet: alles reines CSS, kein Skript,
   kein Observer. Was ein Browser nicht kann, lässt er weg, und der Inhalt
   steht einfach da. Bei prefers-reduced-motion greift nichts davon.
   Nie an Elementen, die LCP sein können (Seitenkopf, Seitenbild, Bühne):
   Ein Element mit opacity 0 zählt für Chrome nicht als gemalt. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Seitenwechsel als kurze Überblendung statt hartem Schnitt
     (Chrome, Edge, Safari 18.2+). Kopf und Fuß sind auf allen Seiten
     gleich und bleiben dadurch scheinbar stehen. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 0.25s; }

  /* Karten und Listenpunkte gleiten beim Hereinscrollen 16px hoch, über
     die ersten 240px Scrollweg (feste Länge, damit hohe Karten auf dem
     Handy nicht halb durchsichtig gelesen werden). Scroll-getrieben: läuft
     im Compositor, hängt an keinem Skript, und was beim Laden schon im
     Bild ist, steht fertig da. */
  @supports (animation-timeline: view()) {
    .product, .digicheck, .sector, .benefit, .step, .feature, .tier,
    .stat, .member {
      animation: settle ease-out both;
      animation-timeline: view();
      animation-range: cover 0px cover 240px;
    }
    :is(.products, .sectors, .benefits, .steps, .features, .tiers, .stats, .members) > :nth-child(3n+2) { animation-range: cover 40px cover 280px; }
    :is(.products, .sectors, .benefits, .steps, .features, .tiers, .stats, .members) > :nth-child(3n+3) { animation-range: cover 80px cover 320px; }
  }

  /* Aufklapper (Fragen, Paket-Details) öffnen weich statt zu springen.
     Das Produkte-Menü ist bewusst ausgenommen: Sein Panel liegt absolut
     und hat eine eigene Einblendung. */
  @supports (interpolate-size: allow-keywords) {
    .faq__item, .tier__details { interpolate-size: allow-keywords; }
    .faq__item::details-content,
    .tier__details::details-content {
      height: 0;
      overflow: clip;
      transition: height 0.35s var(--ease), content-visibility 0.35s allow-discrete;
    }
    .faq__item[open]::details-content,
    .tier__details[open]::details-content { height: auto; }
  }
}
@keyframes settle {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Druck ───────────────────────────────────────────────────────────────
   Impressum, Preise oder eine Leistungsseite auf Papier: nur der Inhalt,
   dunkel auf Weiß, ohne Navigation, Formulare und Bewegung. Die Tokens
   bekommen hier die hellen Werte, damit auch eine im dunklen Design
   gedruckte Seite hell herauskommt; Marine-Bänder werden weiß. */
@media print {
  :root,
  :root[data-theme="dark"] {
    color-scheme: light;
    --bg: #ffffff;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --ink: #000e32;
    --ink-soft: #4a5368;
    --ink-faint: #5a6275;
    --line: #cfd3db;
    --line-strong: #868d9d;
    --accent-text: #024af6;
    --navy: #ffffff;
    --navy-ink: #000e32;
    --navy-soft: #4a5368;
    --shot-bg: #ffffff;
    --section-y: 28px;
  }
  @page { margin: 16mm 14mm; }

  body { font-size: 11pt; }
  *, *::before, *::after { animation: none !important; transition: none !important; }

  .skip-link, .nav, .nav-toggle, .theme-switch, .crumbs,
  .hero__actions, .page-head__actions, .cta-band,
  .form, .quiz, .digicheck, .contact__intro .btn, .footer__col { display: none !important; }

  .header { position: static; border-bottom: 1px solid var(--line); }
  .logo__img--light { display: block !important; }
  .logo__img--dark { display: none !important; }

  /* Startseite: Foto über dem Text statt dahinter */
  .hero { display: block; min-height: 0; color: var(--ink); background: none; }
  .hero__media { position: static; }
  .hero__media::after { display: none; }
  .hero__photo { height: auto; aspect-ratio: auto; }
  .hero__text, .hero__caption { color: var(--ink-soft); }
  .hero__content { margin-top: 0; padding-block: 24px 0; }
  .hero__caption { position: static; max-width: none; margin-top: 12px; text-align: left; }

  .contact__direct a, .cta-band .section__title { color: var(--ink); }

  /* Antworten der Aufklapper mitdrucken */
  .faq__item::details-content,
  .tier__details::details-content { content-visibility: visible; height: auto; overflow: visible; transition: none; }

  /* Externe Links: Adresse dahinter, auf Papier kann niemand klicken */
  main a[href^="http"]::after { content: " (" attr(href) ")"; color: var(--ink-faint); font-size: 0.85em; word-break: break-all; }

  h1, h2, h3 { break-after: avoid; }
  img, .product, .feature, .step, .tier, .faq__item, .member, .benefit, .sector { break-inside: avoid; }
}
