/*
 * Luparis – Komponenten der Inhaltsseiten, direkt nach css/style.css eingebunden.
 * Nur Tokens aus style.css; Verläufe und Keyframes liegen dort, nicht hier. Schatten nur über --shadow-*.
 */

/* ---------- Kopf und Navigation ---------- */

/* Kopf ohne eigene Fläche: Logo links in Tinte auf dem hellen Grund, rechts schwebt die dunkle Leiste.
   Das Markup ist auf allen Seiten gleich. */
.site-header {
  position: relative;
  z-index: 30;
  color: var(--ink);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  min-height: var(--header-h);
  padding-block: 12px;
}

/* Dunkle Leiste mit Radius 22 px (rund, aber keine Pille) und leichtem Glas; ab 960 px schwebt sie oben rechts mit (position: fixed). */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius-bar);
  background: var(--ink-glass);
  color: var(--paper);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: var(--radius-m);
  font: 600 16px/1.2 var(--font-head);
  letter-spacing: -0.01em;
  text-decoration: none;
}

@media (hover: hover) {
  .nav a:hover {
    text-decoration: underline var(--brass-light);
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
  }
}

.nav a[aria-current="page"] {
  text-decoration: underline var(--brass-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

/* Mit Bewegung wächst der goldene Unterstrich beim Überfahren von links. */
.nav a:not(.nav__cta):not([aria-current])::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  border-top: 2px solid var(--brass-light);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) {
    .motion .nav a:not(.nav__cta):not([aria-current]):hover { text-decoration-color: transparent; }
  }
  @media (hover: hover) {
    .motion .nav a:not(.nav__cta):not([aria-current]):hover::after { transform: scaleX(1); }
  }
  .motion .nav a:not(.nav__cta)::after { transition: transform 0.3s var(--ease-out); }
}

/* Flaches Gold mit weißer Schrift wie bei den Knöpfen (Schleier beim Überfahren: style.css). Schriftgröße wie die übrigen Links (16 px), nur fetter;
   der Radius sitzt konzentrisch in der Leiste (Radius der Leiste minus Innenabstand). */
.nav .nav__cta {
  position: relative;
  isolation: isolate;
  margin-left: 4px;
  padding: 0 18px;
  border-radius: var(--radius-bar-inner);
  background: var(--gold-flat);
  color: var(--on-gold);
  font-weight: 700;
  text-decoration: none;
}

@media (hover: hover) {
  .nav .nav__cta:hover { text-decoration: none; }
}

/* Auf der Kontaktseite trägt der Knopf aria-current; der Unterstrich der übrigen Links gilt dort nicht. */
.nav .nav__cta[aria-current="page"] { text-decoration: none; }

/* Fokus auf der dunklen Leiste in hellem Gold. */
.nav :focus-visible { outline-color: var(--brass-light); }

/* Breit: Die Leiste schwebt oben rechts, bündig mit dem Inhalt, und bleibt beim Scrollen stehen. */
@media (min-width: 960px) {
  .nav {
    position: fixed;
    top: calc((var(--header-h) - 54px) / 2);
    right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    z-index: 30;
  }
}

/* Schmal (unter 960 px) wie eine App (Inhaber-Wahl 10.10.2026): oben eine schlanke helle Leiste mit dem Logo, die beim
   Runterscrollen verschwindet und beim Hochscrollen zurückkommt (js/nav.js), unten die Tab-Leiste. Die dunkle Navigation
   entfällt hier; ihre Ziele liegen in Tab-Leiste und „Mehr“. Oben bleibt Platz für Kerbe und Statusleiste (safe-area). */
@media (max-width: 959px) {
  .nav { display: none; }

  .site-header {
    position: sticky;
    top: 0;
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid transparent;
    background: var(--paper-glass);
  }

  .site-header.is-scrolled { border-bottom-color: var(--line-strong); }

  .site-header.is-hidden { transform: translateY(-100%); }

  .header__inner { min-height: var(--appbar-h); padding-block: 6px; }
}

/* Menü-Knopf oben rechts (nur schmal, Inhaber-Wunsch 10.10.2026): öffnet dasselbe Menü wie „Mehr“ in der Tab-Leiste. */
.appbar__menu { display: none; }

@media (max-width: 959px) {
  .appbar__menu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-m);
    color: var(--ink);
    font: 600 16px/1 var(--font-head);
    text-decoration: none;
    -webkit-touch-callout: none;
  }

  .appbar__icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 959px) {
  .motion .site-header { transition: transform 0.25s var(--ease-out); }
  .motion .toc { transition: transform 0.25s var(--ease-out); }
}

/* ---------- Tab-Leiste und Fenster „Mehr“ (unter 960 px) ---------- */

/* Unten fest wie in einer App: fünf Ziele mit Symbol und Beschriftung, in der Mitte „Erstgespräch“ als Goldfeld mit weißem
   Symbol. Unter der Leiste bleibt Platz für die Home-Leiste des iPhones (safe-area). Ab 960 px gibt es sie nicht. */
.tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
  border-top: 1px solid var(--line-strong);
  background: var(--paper-glass);
}

.tabbar__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: var(--tabbar-h);
  color: var(--ink-muted);
  font: 600 11px/1.1 var(--font-head);
  text-decoration: none;
  -webkit-touch-callout: none;
}

.tabbar__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tabbar__icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Die drei Punkte von „Mehr“ sind gefüllt. */
.tabbar__item[data-sheet-open] .tabbar__icon { fill: currentColor; stroke: none; }

/* Aktives Ziel: Tinte, fett und ein kurzer Goldstrich am oberen Rand. */
.tabbar__item--active { color: var(--ink); font-weight: 700; }

.tabbar__item--active::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 28px;
  margin-left: -14px;
  border-top: 2px solid var(--brass);
}

.tabbar__item--cta { color: var(--ink); }

.tabbar__item--cta.tabbar__item--active::before { content: none; }

/* Erstgespräch: Goldfeld mit weißem Symbol (weiße Schrift auf Gold, Inhaber-Regel). */
.tabbar__pill {
  display: grid;
  place-items: center;
  width: 46px;
  height: 28px;
  border-radius: var(--radius-tile);
  background: var(--gold-metal);
  color: var(--on-gold);
  text-shadow: var(--on-gold-shadow);
}

.tabbar__pill .tabbar__icon { width: 20px; height: 20px; stroke-width: 2; }

.tabbar__item--cta[aria-current="page"] .tabbar__pill { outline: 2px solid var(--brass); outline-offset: 2px; }

.tabbar :focus-visible { outline-offset: -4px; }

/* Menü (Knopf „Menü“ oben rechts und „Mehr“ in der Tab-Leiste): ganzseitig auf Tinte wie ein App-Menü (Inhaber-Wunsch 10.10.2026:
   „moderner, minimalistischer, cooler“). Oben Logo und ein runder Schließen-Knopf an derselben Stelle wie Logo und Menü-Knopf, darunter
   die Seiten in großer Schrift ohne Zusatztexte, unten der Goldknopf zum Erstgespräch und leise die Rechtstexte.
   Ohne Skript über #mehr (:target), mit js/nav.js über .is-open als Dialog. */
.sheet { display: none; }

.sheet:target,
.sheet.is-open {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
}

.sheet--js:target:not(.is-open) { display: none; }

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: var(--ink);
}

.sheet__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: var(--ink);
  color: var(--paper);
  transform: translateY(var(--drag));
}

.sheet :focus-visible { outline-color: var(--brass-light); }

/* Beim Öffnen bekommt das Menü selbst den Fokus (js/nav.js), nicht „Start“; die ganze Fläche braucht keinen Rahmen. */
.sheet__panel:focus { outline: none; }

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--appbar-h);
  padding-block: 6px;
}

.sheet .sheet__logo { color: var(--paper); }

/* Schließen: runder Knopf mit feinem Rand, das Kreuz aus zwei Linien. */
.sheet__close {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-on-ink);
  border-radius: 50%;
  color: var(--paper);
}

.sheet__close::before,
.sheet__close::after {
  content: "";
  position: absolute;
  width: 18px;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.sheet__close::after { transform: rotate(-45deg); }

/* Die Seiten groß und ruhig in der Mitte des freien Raums; die aktuelle in hellem Gold und etwas größer, ohne Punkt
   (Inhaber-Wunsch 10.10.2026). */
.sheet__list {
  margin-block: auto;
  padding: 28px 0;
  list-style: none;
}

.sheet__list a {
  display: flex;
  align-items: center;
  min-height: 58px;
  color: var(--paper);
  font: 800 clamp(30px, 9vw, 40px)/1.1 var(--font-head);
  letter-spacing: -0.022em;
  text-decoration: none;
}

.sheet__list a[aria-current="page"] { color: var(--brass-light); font-size: clamp(35px, 10.5vw, 46px); }

.sheet__foot { display: grid; gap: 6px; }

.sheet__cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
}

.sheet__legal { display: flex; flex-wrap: wrap; gap: 0 22px; }

.sheet__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--field);
  font-size: 15px;
}

/* Öffnen: das Menü blendet ein, die Seiten steigen nacheinander auf (nur opacity und transform). */
@media (prefers-reduced-motion: no-preference) {
  .motion .sheet.is-open .sheet__panel { transition: opacity 0.22s ease; }
  .motion .sheet.is-open .sheet__panel.is-dragging { transition-duration: 0s; }
  .motion .sheet.is-open .sheet__list li,
  .motion .sheet.is-open .sheet__foot { transition: opacity 0.35s ease, transform 0.45s var(--ease-out); }
  .motion .sheet.is-open .sheet__list li:nth-child(2) { transition-delay: 0.04s; }
  .motion .sheet.is-open .sheet__list li:nth-child(3) { transition-delay: 0.08s; }
  .motion .sheet.is-open .sheet__list li:nth-child(4) { transition-delay: 0.12s; }
  .motion .sheet.is-open .sheet__list li:nth-child(5) { transition-delay: 0.16s; }
  .motion .sheet.is-open .sheet__list li:nth-child(6) { transition-delay: 0.2s; }
  .motion .sheet.is-open .sheet__foot { transition-delay: 0.26s; }

  @starting-style {
    .motion .sheet.is-open .sheet__panel { opacity: 0; }

    .motion .sheet.is-open .sheet__list li,
    .motion .sheet.is-open .sheet__foot { opacity: 0; transform: translateY(14px); }
  }
}

/* Unter der Tab-Leiste bleibt Platz, damit der Fuß nicht verdeckt wird; offenes Fenster sperrt das Scrollen der Seite. */
@media (max-width: 959px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

  .sheet-open,
  .sheet-open body { overflow: hidden; }
}

/* Seitenwechsel (css/style.css): Diese Leisten stehen still, nur der Inhalt blendet über. */
.tabbar { view-transition-name: app-tabbar; }

@media (max-width: 959px) {
  .site-header { view-transition-name: app-header; }
}

@media (min-width: 960px) {
  .nav { view-transition-name: app-nav; }
}

@media (min-width: 960px) {
  .tabbar,
  .sheet,
  .sheet:target,
  .sheet.is-open { display: none; }
}

/* ---------- Listen mit Trennpunkten ---------- */

/* Fließtext mit Trennpunkten: Der Punkt hängt wie ein Komma am Eintrag davor. */
.dot-list {
  padding: 0;
  list-style: none;
  text-wrap: pretty;
}

/* Umbrüche nur zwischen den Einträgen, auch auf dem Handy („Festpreis vor | Projektstart“ wirkte zerrissen; jeder Eintrag passt
   auch bei 320 px in eine Zeile). */
.dot-list li { display: inline; white-space: nowrap; }

/* Auf dem Handy passt ohnehin nur ein Eintrag je Zeile: untereinander, ohne Trennpunkt am Zeilenende. */
@media (max-width: 479px) {
  .dot-list li { display: block; }

  .dot-list li:not(:last-child)::after { content: none; }
}

.dot-list li:not(:last-child)::after {
  content: "·";
  content: "·" / "";
  margin-inline: 0.45em;
  color: var(--brass);
}

/* Gold auf Feldblau erreicht nur 3,1 : 1, deshalb dort Tinte; auf dunklen Flächen helles Gold. */
.band--field .dot-list li:not(:last-child)::after { color: var(--ink); }
.stage .dot-list li:not(:last-child)::after { color: var(--brass-light); }

/* ---------- Seitenkopf der Unterseiten ---------- */

/* Hell auf dem sanften Verlauf; große Überschrift links, Einleitung rechts. Alle Köpfe sind gleich hoch (--head-h),
   Überschrift und Einleitung stehen darin mittig zueinander, damit der Titel beim Seitenwechsel nicht springt. */
.page-head {
  --head-h: 13rem;
  padding-block: clamp(24px, 4.4vw, 64px) clamp(40px, 5vw, 72px);
}

.page-head__inner {
  display: grid;
  gap: 20px var(--col-gap);
  align-content: start;
}

@media (min-width: 960px) {
  .page-head__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-auto-rows: minmax(var(--head-h), auto);
    align-items: center;
  }
}

.page-head h1 {
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.page-head h1:only-child { grid-column: 1 / -1; }

.page-head .lead {
  max-width: 30em;
  margin-top: 0;
}

/* Fett in Schrift der Überschriften statt Kursiv: Bezeichnungen wie „Ihr Aufwand:“. */
.step__effort em {
  font-family: var(--font-head);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Gemeinsame Karte: helle Fläche, feiner Rand, kleiner Radius, kein Schatten. */
.solution,
.topic,
.explorer:not(.is-tabbed) .industry {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--white);
}

/* ---------- Lösungen ---------- */

/* Bereichsleiste: steht ruhig unter dem Kopfband (nicht mitlaufend) und verlinkt die Bereiche.
   Waagerecht mittig. Jeder Eintrag ist ein heller Knopf (Radius 8 px) in Tinte; beim Überfahren und bei Fokus
   zeigt er dezent Gold. Es gibt keinen „aktiven“ Eintrag: Die Leiste scrollt mit der Seite weg, eine Markierung
   wäre nach dem Sprung unsichtbar und später veraltet. Schmal scrollt sie seitlich, statt umzubrechen. */
.toc {
  padding-bottom: clamp(8px, 1.6vw, 16px);
}

.toc__list {
  display: flex;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.toc__list::-webkit-scrollbar { display: none; }

.toc li { flex: 0 0 auto; }

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--white);
  color: var(--ink);
  font: 600 15px/1.2 var(--font-head);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}

/* Beim Überfahren Dunkelblau mit weißer Schrift, wie der gewählte Reiter auf der Branchen-Seite (Inhaber-Wunsch vom 10.10.2026). */
@media (hover: hover) {
  .toc a:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
}

.toc a:focus-visible { outline-offset: -2px; }

/* Schmal wie eine App (Inhaber-Wahl 10.10.2026): Die Leiste läuft unter der oberen Leiste mit (verschwindet diese, rückt sie nach oben),
   rastet beim Wischen ein, blendet rechts aus, wenn es weitergeht, und markiert den Bereich, in dem man liest (js/nav.js).
   Breit bleibt sie ruhig stehen und ohne Markierung wie bisher. */
@media (max-width: 959px) {
  .toc {
    position: sticky;
    top: calc(var(--appbar-h) + env(safe-area-inset-top));
    z-index: 20;
    padding-block: 8px;
    background: var(--paper-glass);
  }

  /* Verschwindet die obere Leiste, rückt die Bereichsleiste mit ihr nach oben (nur transform). */
  .appbar-hidden .toc { transform: translateY(calc(-1 * var(--appbar-h))); }

  .toc__list {
    width: auto;
    margin-inline: 0;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    -webkit-mask-image: var(--fade-end);
    mask-image: var(--fade-end);
  }

  .toc li { scroll-snap-align: start; }

  .toc a[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--white); }
}

/* Je Bereich: Überschrift über dem Raster in voller Breite; Haarlinie zwischen den Bereichen. */
.area { padding-block: clamp(16px, 2vw, 24px); }

/* Lösungen als Kapitel (Inhaber-Wahl 10.10.2026, Richtung A): Jeder Bereich trägt eine große Nummer in Messing, die flache Goldkachel
   seines Symbols und den Titel; ab 1100 px steht dieser Kopf links und bleibt beim Scrollen stehen, rechts liegen die Lösungen. */
#inhalt { counter-reset: area; }
.area { counter-increment: area; }

.area__inner {
  display: grid;
  gap: clamp(20px, 2.4vw, 28px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line-strong);
}

.area__head {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 14px;
}

.area__head::before {
  content: counter(area, decimal-leading-zero);
  color: var(--brass);
  font: 900 clamp(44px, 4.4vw, 60px)/0.9 var(--font-head);
  letter-spacing: -0.03em;
}

.area__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-tile);
  background: var(--gold-flat);
  color: var(--on-gold);
}

.area__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Reihenfolge im Kopf: Nummer, Titel, darunter immer die Goldkachel (Inhaber-Wunsch 10.10.2026). */
.area__head .area__icon { order: 1; margin-top: 4px; }

@media (min-width: 1100px) {
  .area__inner {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: clamp(40px, 5vw, 72px);
  }

  .area__head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    align-self: start;
    grid-row: 1 / span 2;
  }

  .slider,
  .area .examples__more { grid-column: 2; }
}

.toc + .area { padding-top: clamp(8px, 1.2vw, 14px); }

/* Anker landen unter dem Kopf; bei einer Lösung bleibt die Leiste des Karussells darüber sichtbar (64 + 48 + 28 px). */
.area__title { scroll-margin-top: 64px; }
.solution { scroll-margin-top: 140px; }

.area__title {
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  hyphens: manual;
  overflow-wrap: break-word;
}

/* Die drei Lösungen eines Bereichs als Karussell (Inhaber-Wunsch 10.10.2026: weniger scrollen, Pfeile links und rechts).
   Oben die Titel als Leiste, unter der sichtbaren Lösung zieht ein Messingstrich auf; rechts daneben zwei runde Pfeile, die
   js/slider.js einblendet und die im Kreis laufen. Darunter die Spur mit Scroll-Snap, in der immer genau eine Karte steht; alle Karten sind gleich hoch.
   Wischen und Anker gehen ohne Skript. Die Spur hat ringsum Luft (--room, mit gleich großem negativem Außenabstand), damit
   Schatten und Hub der Karte nicht abgeschnitten werden; der Kartenabstand ist 16 px größer, so schaut nicht einmal der Schatten
   der Nachbarkarte herein. */
.slider {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.slider__nav {
  display: flex;
  align-items: flex-end;
  gap: clamp(16px, 3vw, 40px);
}

.slider__pager {
  display: grid;
  flex: 1;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  min-width: 0;
  padding: 0;
  list-style: none;
}

/* Schmal nur die Striche (mittig neben den Pfeilen), ab 760 px die Titel darüber. */
/* Jeder Link füllt die ganze Zeile: Auch neben einem zweizeiligen Titel liegen alle Striche auf einer Linie. */
.slider__pager li { display: grid; }

.slider__pager a {
  --bar-y: 22px;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 48px;
  padding-bottom: 14px;
  color: var(--ink-muted);
  font: 600 15px/1.3 var(--font-head);
  letter-spacing: -0.01em;
  text-decoration: none;
  text-wrap: var(--wrap-title);
}

/* Strich je Titel: ruhend eine Haarlinie, darüber Messing, das unter der sichtbaren Lösung von links aufzieht (transform). */
.slider__pager a::before,
.slider__pager a::after {
  content: "";
  position: absolute;
  inset: auto 0 var(--bar-y);
  height: 3px;
  border-radius: 2px;
  background: var(--line-strong);
}

.slider__pager a::after {
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
}

.slider__pager a[aria-current="true"] { color: var(--ink); }

.slider__pager a[aria-current="true"]::after { transform: scaleX(1); }

.slider__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 760px) {
  .slider__pager a { --bar-y: 0px; }

  .slider__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
}

.slider__arrows {
  display: flex;
  flex: none;
  gap: 8px;
}

.slider__arrows[hidden] { display: none; }

.slider__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.slider__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Beim Überfahren Dunkelblau mit weißem Pfeil, wie die Bereichsleiste; der Pfeil rückt ein Stück in seine Richtung. */
@media (hover: hover) {
  .slider__pager a:hover { color: var(--ink); }
  .slider__arrow:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
}

.slider__track {
  --room: min(40px, var(--gutter));
  position: relative;
  display: flex;
  gap: calc(var(--room) + 16px);
  margin: -28px calc(-1 * var(--room)) -56px;
  padding: 28px var(--room) 56px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--room);
  scrollbar-width: none;
}

.slider__track::-webkit-scrollbar { display: none; }

.slider__track > .solution {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

@media (prefers-reduced-motion: no-preference) {
  .motion .slider__pager a::after { transition: transform 0.5s var(--ease-out); }
  .motion .slider__arrow svg { transition: transform 0.25s var(--ease-out); }

  @media (hover: hover) {
    .motion .slider__arrow[data-slide="prev"]:hover svg { transform: translateX(-2px); }
    .motion .slider__arrow[data-slide="next"]:hover svg { transform: translateX(2px); }
  }
}

/* Lösung: links Titel, Satz und Branchen; rechts das Beispiel und als Herzstück der Wandel von Vorher zu Nachher.
   Alles ist sofort sichtbar, nichts klappt auf. Schmal steht alles untereinander. */
.solution {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "intro" "story" "fit";
  gap: 20px;
  min-width: 0;
  position: relative;
  padding: clamp(20px, 2.4vw, 32px);
  box-shadow: var(--shadow-card);
}

/* Beim Überfahren (und bei Fokus darin) hebt sich die Karte leicht. Ohne Goldschein (Inhaber-Wunsch 10.10.2026: mit dem
   Karussell zu viel). */
@media (prefers-reduced-motion: no-preference) {
  .motion .solution { transition: opacity 0.6s var(--ease-out), transform 0.4s var(--ease-out); }
  .motion .solution:focus-within { transform: translateY(-4px); }

  @media (hover: hover) {
    .motion .solution:hover { transform: translateY(-4px); }
  }
}

@media (min-width: 760px) {
  .solution {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: 1fr auto;
    grid-template-areas: "intro story" "fit fit";
    column-gap: clamp(24px, 3vw, 44px);
  }
}

.solution__intro { grid-area: intro; }

.solution h3 {
  font-size: clamp(20px, 1.7vw, 23px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  hyphens: manual;
  overflow-wrap: break-word;
  text-wrap: var(--wrap-title);
}

.solution__what {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.solution__story {
  grid-area: story;
  display: grid;
  align-content: start;
  gap: 18px;
}

/* Das Beispiel als kurze Geschichte mit feiner Linie in Messing. */
.solution__example {
  padding-left: 16px;
  border-left: 2px solid var(--brass);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Vorher (Papier, gedämpft) und Nachher (Tinte, hell) nebeneinander, dazwischen ein runder Pfeil in Gold; schmal untereinander. */
.change {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  margin: 0;
}

@media (min-width: 560px) {
  .change { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.change__before,
.change__after {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-m);
}

.change__before { background: var(--paper); color: var(--ink-muted); }

.change__after {
  position: relative;
  background: var(--ink);
  color: var(--paper);
}

.change dt { font: 600 13px/1.3 var(--font-head); letter-spacing: 0.01em; }

.change__after dt { color: var(--field); }

.change dd {
  margin: 0;
  font: 700 16px/1.35 var(--font-head);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.change__before dd { font-weight: 600; }

.change__after::before {
  content: "→";
  content: "→" / "";
  position: absolute;
  top: -31px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-flat);
  color: var(--on-gold);
  font: 700 15px/1 var(--font-head);
  transform: translateX(-50%) rotate(90deg);
}

@media (min-width: 560px) {
  .change__after::before {
    top: 50%;
    left: -31px;
    transform: translateY(-50%);
  }
}

/* „Typisch für“: ruhige Fußzeile über die ganze Karte, Bezeichnung und Schlagworte in einer Zeile; Radius 8 px, keine Pillen. */
.solution__fit {
  grid-area: fit;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.solution__fit-label {
  margin: 0;
  color: var(--ink-muted);
  font: 600 14px/1.3 var(--font-head);
}

.solution__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.solution__tags a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--white);
  color: var(--ink);
  font: 600 14px/1.25 var(--font-head);
  letter-spacing: -0.005em;
  text-decoration: none;
}

@media (hover: hover) {
  .solution__tags a:hover { border-color: var(--ink); }
}

/* Laufband auf der Lösungsseite: unter einer Haarlinie, eng an den Bereichen und am Abschluss. */
.tools-band--page { padding-bottom: clamp(28px, 3.4vw, 44px); }

.tools-band--page .tools-band__inner {
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--line-strong);
}

/* ---------- Beispiel-Spalten (Branchen-Wähler der Startseite, Branchen-Seite) ---------- */

/* Beispiele als ruhige Spalten: kurze Linie in Messing, Titel, ein Satz, „Zur Lösung“.
   Daneben, zurückgenommen, der Hinweis, dass es nur Beispiele sind. --use-gap ist der Abstand zwischen den Spalten. */
.examples {
  --use-gap: clamp(24px, 3vw, 44px);
  display: grid;
  gap: clamp(32px, 3.6vw, 44px) var(--col-gap);
}

@media (min-width: 1024px) {
  .examples { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }

  /* Branchen-Seite (Inhaber-Wunsch 10.10.2026): „Und vieles mehr“ nur so breit wie seine längste Zeile „abgestimmt auf Ihr“ (8,2 em)
     und ganz rechts, davor derselbe Abstand wie zwischen den Beispielen. Die drei Beispiele bekommen den Rest und werden breiter,
     damit lange Wörter wie „Überweisungswünsche“ nicht mitten im Wort umbrechen. */
  .industry .examples {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--use-gap);
  }

  .industry .examples__more { width: 8.4em; }
}

.uses {
  display: grid;
  gap: 32px var(--use-gap);
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .uses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.use {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.use::before,
.examples__more::before {
  content: "";
  width: 28px;
  margin-bottom: 18px;
  border-top: 2px solid var(--brass);
}

.use__title {
  font-size: clamp(19px, 1.6vw, 21px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  text-wrap: var(--wrap-title);
}

.use__text {
  margin-top: 8px;
  margin-bottom: 14px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.use__more { align-self: flex-start; margin-top: auto; }

/* Vierte, leise Spalte: Linie in gedämpfter Tinte, Text ohne Link. */
.examples__more {
  display: flex;
  flex-direction: column;
  color: var(--ink-muted);
  font: 600 clamp(18px, 1.5vw, 20px)/1.35 var(--font-head);
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.examples__more::before { border-top-color: var(--line-strong); }

@media (max-width: 699px) {
  .uses { gap: 28px; }
  .use::before,
  .examples__more::before { margin-bottom: 14px; }
  .use__text { margin-bottom: 8px; }
}

/* ---------- Branchen-Explorer ---------- */

/* Unter dem Knopf liegt der Innenabstand der Branche plus dieser Rest: zusammen ein normaler Abschnittsabstand zum Abschlusskasten. */
.explorer {
  --industry-pad: clamp(28px, 3.2vw, 40px);
  padding-bottom: calc(var(--section-pad) - var(--industry-pad));
}

/* Ohne Skript: alle Branchen untereinander, getrennt durch Haarlinien. */
.explorer__stage { display: grid; }

.industry {
  min-width: 0;
  padding-block: var(--industry-pad);
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.industry h2 {
  margin-bottom: clamp(22px, 2.6vw, 32px);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

/* Goldener Knopf wie überall, rechtsbündig wie die Knopfzeile der Startseite (mobil linksbündig);
   lange Branchennamen dürfen auf schmalen Geräten umbrechen. */
.industry__cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 50px;
  margin: var(--industry-pad) 0 0 auto;
  padding: 10px 24px;
  border-radius: var(--radius-m);
  background: var(--gold-flat);
  color: var(--on-gold);
  font: 700 19px/1.2 var(--font-head);
  letter-spacing: -0.01em;
  text-decoration: none;
}

@media (max-width: 599px) {
  .industry__cta { margin-left: 0; }
}

/* Mit Skript: alle Branchen als Raster aus gleich breiten Knöpfen (Radius 8 px), darunter die gewählte Branche.
   18 Knöpfe (17 Reiter und der Link „Andere Branche“): 2 Spalten mobil, 3 mittel, 6 auf breiten Bildschirmen.
   Die Reiterleiste löst sich auf (display: contents), damit Reiter und Link im selben Raster stehen. */
.explorer.is-tabbed {
  display: grid;
  gap: clamp(20px, 2.4vw, 28px);
}

/* Ohne Skript stehen alle Branchen untereinander; der Link „Andere Branche“ ersetzt dort das Abschlussband. */
.explorer:not(.is-tabbed) .explorer__choices { display: none; }

.explorer__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
}

.explorer__tabs { display: contents; }

.explorer__tabs[hidden] { display: none; }

/* Knöpfe: gleich breit und gleich hoch, weiß mit feinem Rand, Text waagerecht und senkrecht zentriert (auch zweizeilig);
   gewählt in Gold mit weißer Schrift. */
.explorer__tab,
.explorer__other {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 56px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--white);
  color: var(--ink);
  font: 600 15px/1.25 var(--font-head);
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  hyphens: manual;
  overflow-wrap: break-word;
  text-wrap: var(--wrap-title);
  cursor: pointer;
}

@media (hover: hover) {
  .explorer__tab:hover,
  .explorer__other:hover { border-color: var(--ink); }
}

/* Der Link führt auf eine andere Seite: Pfeil rechts, rein als Zeichen. */
.explorer__other { gap: 8px; }

.explorer__other::after {
  content: "→";
  content: "→" / "";
  flex: 0 0 auto;
  color: var(--ink-muted);
}

/* Gewählt: Dunkelblau (Tinte) mit weißer Schrift (Inhaber-Wunsch 10.10.2026, statt Gold), Archivo 700. Die engere Laufweite gleicht
   die 3,6 % größere Breite aus, so bricht jeder Name gleich um (höchstens zweizeilig). */
.explorer__tab[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.028em;
}

@media (max-width: 599px) {
  .explorer__tab,
  .explorer__other { font-size: 14px; }
}

@media (min-width: 600px) {
  .explorer__choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Sechs Spalten: Schrift von 14 px (1200) bis 15 px (1440), der längste Name bleibt zweizeilig. */
@media (min-width: 1200px) {
  .explorer__choices { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .explorer__tab,
  .explorer__other { font-size: clamp(14px, calc(14px + (100vw - 1200px) / 240), 15px); }
}

/* Alle Branchen im selben Rasterfeld: Die Höhe richtet sich nach der längsten, beim Wechsel springt nichts. */
.explorer.is-tabbed .industry { grid-area: 1 / 1; }

.explorer.is-tabbed .industry[hidden] {
  display: block;
  visibility: hidden;
  opacity: 0;
}

.explorer.is-tabbed .industry:focus-visible { outline-offset: 6px; border-radius: var(--radius-s); }

@media (prefers-reduced-motion: no-preference) {
  .motion .explorer.is-tabbed .industry:not([hidden]) { transition: opacity 0.35s ease, transform 0.45s var(--ease-out); }
  .motion .explorer.is-tabbed .industry[hidden] { transform: translateY(8px); }
}

/* ---------- Vorgehen ---------- */

/* Vier Schritte: untereinander, zu zweit, ab 1100 px nebeneinander (die Auto-Spalten aus style.css ergäben 3 + 1). */
.steps--four { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 600px) {
  .steps--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Ohne Überschrift darüber beginnt der Abschnitt direkt mit den Schritten. */
.page-head + .section { padding-top: 0; }

/* Auf dieser Seite sind die Schritte die Hauptüberschriften (h2); Aussehen wie .step h3. */
.step h2 {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  hyphens: auto;
  overflow-wrap: break-word;
}

.step__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.steps-note {
  max-width: 34em;
  margin-top: clamp(28px, 3.6vw, 44px);
  font: 700 clamp(19px, 1.8vw, 23px)/1.4 var(--font-head);
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

/* ---------- Sicherheit ---------- */

/* Acht Themen als weiße Karten, ab 960 px zu zweit. */
.page-head + .band > .wrap { padding-block: clamp(32px, 4vw, 48px); }

.topics {
  display: grid;
  gap: var(--card-gap);
  padding-block: var(--section-pad);
}

@media (min-width: 960px) {
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.topic { align-content: flex-start; padding: var(--card-pad); }

/* Die letzte Karte spannt auf breiten Bildschirmen über beide Spalten, wenn sonst eine allein stünde;
   ihr Text läuft dort über die ganze Breite, damit rechts keine leere Fläche bleibt. */
@media (min-width: 960px) {
  .topic:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .topic:last-child:nth-child(odd) .prose p { max-width: none; }
}

.band + .topics { padding-top: clamp(40px, 5vw, 64px); }

.topic .split__head,
.topic .split__body { flex-basis: 100%; max-width: none; }

/* Nur die Trennstellen aus dem Text (&shy;), keine automatische Silbentrennung. */
.topic h2 {
  min-width: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  hyphens: manual;
  overflow-wrap: anywhere;
}

.topic .prose p { color: var(--ink-muted); font-size: 17px; }

/* ---------- Häufige Fragen ---------- */

/* Die vier Gruppen wechseln die Fläche (Papier, zartes Feldblau). */
.faq-group { padding-block: clamp(48px, 6vw, 80px); }

.page-head + .faq-group { padding-top: clamp(8px, 2vw, 24px); }

@media (min-width: 860px) {
  .faq-group .split__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: flex-start; }
}

.faq-group h2 {
  min-width: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  hyphens: auto;
  overflow-wrap: anywhere;
}

/* ---------- Abschluss der Unterseiten ---------- */

/* Dunkle Karte mit kleinem Radius, so breit wie der Inhalt. Überschrift, Text und Knopf stehen mittig; die Startseite nutzt .closing. Raster und Goldschimmer kommen aus .stage (style.css), wie bei der Startseite. */
.page-end.band {
  margin-top: 0;
  padding: 0 var(--gutter) var(--section-pad);
  background: transparent;
}

.page-end > .wrap {
  max-width: calc(var(--max) - 2 * var(--gutter));
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  border-radius: var(--radius-l);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.page-end h2 {
  max-width: 15em;
  margin-inline: auto;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.page-end .lead {
  max-width: 32em;
  margin-inline: auto;
  margin-top: 18px;
  color: var(--field);
}

.page-end .button { margin-top: 30px; }

/* Nur der Knopf: kein Band, der Knopf steht ruhig am Ende des Inhalts. */
.page-end--bare > .wrap {
  display: flex;
  justify-content: center;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.page-end--bare .button { margin-top: 0; }

.band--field + .page-end,
.surface--field + .page-end { padding-top: var(--section-pad); }

/* Nach Papier: Der Knopf schließt den letzten Abschnitt ab, statt allein in einer leeren Fläche zu stehen
   (der Abstand nach oben ersetzt den unteren Innenabstand des Abschnitts davor). */
.section + .page-end--bare,
.topics + .page-end--bare { margin-top: calc(clamp(32px, 4vw, 48px) - var(--section-pad)); }

.faq-group + .page-end--bare { margin-top: calc(clamp(32px, 4vw, 48px) - clamp(48px, 6vw, 80px)); }

/* ---------- Kontakt ---------- */

/* Text links, Formular rechts ab 860 px; schmal untereinander. */
.contact {
  display: grid;
  gap: clamp(32px, 5vw, 56px) var(--col-gap);
  align-items: start;
  padding-top: clamp(24px, 4.4vw, 64px);
  padding-bottom: var(--section-pad);
}

@media (min-width: 860px) {
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* Schmal wie in einer App: nach Überschrift und Einleitung sofort das Formular, Schritte und E-Mail-Hinweis darunter.
   .contact__text löst sich dafür auf (display: contents), die Reihenfolge im HTML bleibt für Screenreader gleich. */
@media (max-width: 859px) {
  .contact { display: flex; flex-direction: column; gap: 0; }
  .contact__text { display: contents; }
  .contact h1 { order: 1; }
  .contact .lead { order: 2; }
  .contact__form { order: 3; margin-block: 28px 40px; }
  .contact__steps-title { order: 4; }
  .contact__steps { order: 5; }
  .contact__note { order: 6; }
}

.contact h1 {
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

.contact .lead { max-width: 30em; }

.contact__steps-title {
  margin-top: clamp(32px, 4vw, 44px);
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* Drei Schritte mit schlichten Ziffern in Messing (auf Papier große, fette Schrift). */
.contact__steps {
  counter-reset: contact-step;
  display: grid;
  gap: 12px;
  max-width: 30em;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.contact__steps li {
  counter-increment: contact-step;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.5;
}

/* ::before ohne Alternativtext: Die Liste liest „1, 2, 3“ schon vor. */
.contact__steps li::before {
  content: counter(contact-step);
  content: counter(contact-step) / "";
  color: var(--brass);
  font: 800 19px/1 var(--font-head);
  font-variant-numeric: tabular-nums;
}

.contact__note {
  margin-top: 28px;
  font: 700 18px/1.55 var(--font-head);
  letter-spacing: -0.01em;
}

/* ---------- Formular ---------- */

/* Das Formular steht auf einer weißen Karte. */
.contact__form {
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: var(--shadow-lift);
}

.form-required {
  margin-bottom: 22px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.5;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Beschriftung steht immer sichtbar über dem Feld, nie als Platzhalter im Feld. */
.form-field label {
  font: 700 16px/1.3 var(--font-head);
  letter-spacing: -0.01em;
}

/* Rahmen in Tinte (Kontrast der Feldgrenze); mindestens 16 px, sonst zoomt iOS beim Antippen. */
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--ink);
  font: 400 18px/1.4 var(--font-text);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.form-field textarea {
  min-height: 168px;
  resize: vertical;
}

.form-field textarea::placeholder {
  color: var(--ink);
  opacity: 0.72;
}

/* Auswahlfelder sehen aus wie die Textfelder; der Pfeil entsteht aus zwei Rahmenlinien (kein Bild, wegen der CSP). */
.form-field select {
  height: 52px;
  padding-right: 48px;
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.form-field--select { position: relative; }

.form-field--select::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 24px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}

/* Honigtopf für Spam-Programme: außerhalb des Bildschirms statt display: none. */
.form-trap {
  position: absolute;
  left: -10000px;
}

.form-note {
  max-width: 36em;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.contact-form .button {
  justify-self: start;
  margin-top: 4px;
}

/* ---------- Kurze Seiten (Danke, Fehler, 404) ---------- */

/* Der Fuß sitzt am unteren Fensterrand, auch wenn der Inhalt kurz ist. */
.page-short {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-short main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Der Kopf hat dieselbe Höhe wie auf allen Unterseiten; der freie Platz bis zum Fuß bleibt darunter leer.
   Die längeren Sätze als Überschrift sind kleiner gesetzt, damit sie in den Kopf passen. */
.page-short .page-head h1 {
  font-size: clamp(32px, 4vw, 52px);
  overflow-wrap: normal;
  hyphens: manual;
}

.page-head .button { margin-top: 26px; }

/* ---------- Einwilligungs-Banner (js/consent.js) ---------- */

/* Schwebende, abgerundete Karte unten rechts (links stehen die Knöpfe des Hero), nicht modal. Das Skript baut sie nur, solange keine Entscheidung
   gespeichert ist oder „Cookie-Einstellungen“ im Fuß gewählt wurde. Das Einblenden steht mit den Keyframes in style.css. */
.consent {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 40;
  max-width: 480px;
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius-l);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-float);
}

.consent[hidden] { display: none; }

/* Das Skript setzt den Fokus nur auf die Karte selbst, sie ist nichts zum Bedienen. */
.consent:focus { outline: none; }

.consent :focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; }

/* .wrap kommt aus dem Skript; in der Karte gelten eigene Abstände. */
.consent .consent__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: none;
  padding: 22px 24px;
}

.consent__text {
  font-size: 15px;
  line-height: 1.5;
}

/* Der Titel steht im selben Absatz (ein <p> für Screenreader), auf breiten Bildschirmen als eigene Zeile. */
.consent__title {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font: 800 18px/1.25 var(--font-head);
  letter-spacing: -0.015em;
}

.consent__text a {
  text-decoration-color: var(--brass-light);
  text-underline-offset: 4px;
}

@media (hover: hover) {
  .consent__text a:hover { text-decoration-color: var(--paper); }
}

.consent__actions { display: flex; gap: 10px; }

/* Ein Stil für beide Knöpfe: gleiche Größe, gleicher Rahmen, keiner hervorgehoben. */
.consent__button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--paper);
  border-radius: var(--radius-m);
  background: transparent;
  color: var(--paper);
  font: 700 16px/1.2 var(--font-head);
  letter-spacing: -0.01em;
  cursor: pointer;
}

@media (hover: hover) {
  .consent__button:hover { background: var(--paper); color: var(--ink); }
}

@media (min-width: 600px) {
  .consent { right: 24px; bottom: 24px; left: auto; }
}

/* Mobil kompakt: höchstens etwa ein Fünftel des Bildschirms (bei 375 × 812 rund 165 px), Knöpfe nebeneinander,
   Text 14 px in der schmaleren Archivo (fünf statt sechs Zeilen), in Feldblau etwas leiser als die Knöpfe. */
@media (max-width: 599px) {
  .consent { right: 8px; bottom: 8px; left: 8px; border-radius: var(--radius-m); }
  .consent .consent__inner { gap: 8px; padding: 11px 14px; }
  .consent__text { color: var(--field); font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1.32; letter-spacing: -0.005em; }
  .consent__title { display: inline; margin: 0; font-size: 14px; font-weight: 800; line-height: inherit; }
  .consent__actions { gap: 8px; }
  .consent__button { min-height: 40px; padding-inline: 12px; font-size: 15px; }
}

/* Mit Tab-Leiste (unter 960 px) schwebt das Banner über ihr, nicht dahinter. In der App-Ansicht steht „Lieber nicht“ links und
   „Einverstanden“ rechts (Inhaber-Wunsch 10.10.2026); beide bleiben gleich gestaltet, nur die Reihenfolge auf dem Bildschirm dreht sich. */
@media (max-width: 959px) {
  .consent { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); }
  .consent__actions { flex-direction: row-reverse; }
}

/* Solange das Banner offen ist, bleibt am Seitenende Platz, damit Impressum und Datenschutz nicht verdeckt sind. */
.consent-open .site-footer { padding-bottom: 11rem; }

@media (min-width: 600px) {
  .consent-open .site-footer { padding-bottom: 15rem; }
}

/* Widerruf: Der Knopf im Fuß sieht aus wie die Links daneben. Ohne Skript bleibt er verborgen,
   denn dann gäbe es kein Banner, das er öffnen könnte (das Skript setzt consent-ready am <html>). */
.footer__consent { display: none; }

.consent-ready .footer__consent {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

@media (hover: hover) {
  .consent-ready .footer__consent:hover { color: var(--paper); text-decoration-color: var(--brass-light); }
}

/* ---------- Sehr schmale Bildschirme ---------- */

/* „Kostenloses Erstgespräch“ soll bei 320 px in eine Zeile passen. */
@media (max-width: 359px) {
  .button { padding-inline: 18px; }
}

/* Zusammenarbeit (Vorgehen): Titel in Archivo wie die Preis-Boxen, Text darunter */
.collab { display: grid; gap: clamp(20px, 2.4vw, 28px); }
.collab__item h3 {
  margin-bottom: 4px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.collab__item p { color: var(--ink-muted); }

/* ---------- Schmal wie eine App: Lösungen und Branchen kompakt (Inhaber-Wahl 10.10.2026) ---------- */

/* Übersicht zuerst, Details auf Antippen. Breit bleibt alles wie oben beschrieben. js/nav.js setzt .compact-ready, fügt
   „Beispiel ansehen“ und „+N“ bei den Branchen einer Lösung ein und baut auf Branchenseite und Startseite die Auswahl. Ohne
   Skript bleibt alles sichtbar. */
.solution__toggle,
.solution__tags-more,
.branch-select { display: none; }

@media (max-width: 959px) {
  /* Bereichskopf in einer Zeile: Nummer, Titel, Goldkachel. */
  .area__head { display: flex; align-items: center; gap: 12px; }
  .area__head::before { font-size: 30px; }
  .area__head .area__icon { width: 36px; height: 36px; margin-top: 0; }
  .area__title { font-size: 24px; }

  /* Lösungskarte: Satz, Vorher und Nachher als zwei schmale Zeilen, das Beispiel auf Antippen. */
  .solution { gap: 14px; }
  .solution__story { gap: 10px; }
  .solution__story .change { order: 0; }
  .solution__toggle { order: 1; }
  .solution__example { order: 2; }

  .change { gap: 6px; }

  .change__before,
  .change__after {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    padding: 8px 12px;
  }

  .change dt { flex: 0 0 58px; }
  .change dd { font-size: 15px; }
  .change__after::before { content: none; }

  .compact-ready .solution__toggle {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: 700 16px/1.2 var(--font-head);
    cursor: pointer;
  }

  /* Pfeil nach unten, geöffnet nach oben. */
  .solution__toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 2px solid var(--brass);
    border-bottom: 2px solid var(--brass);
    transform: rotate(45deg);
  }

  .solution.is-open .solution__toggle::after { margin-top: 4px; transform: rotate(-135deg); }

  .compact-ready .solution:not(.is-open) .solution__example { display: none; }

  /* „Typisch für“: drei Branchen, der Rest hinter „+N“. */
  .solution__fit { padding-top: 12px; }
  .compact-ready .solution:not(.tags-open) .solution__tags li:nth-child(n + 4):not(.solution__tags-more) { display: none; }
  .compact-ready .solution__tags-more { display: block; }

  .solution__tags-more button {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-m);
    background: var(--paper);
    color: var(--ink);
    font: 700 14px/1.25 var(--font-head);
    cursor: pointer;
  }

  /* Branchen: statt 17 Knöpfen eine Auswahl, die beim Scrollen unter der oberen Leiste mitläuft; der Inhalt steht sofort darunter. */
  .explorer.is-tabbed .explorer__tab,
  .compact-ready .explorer.is-tabbed .explorer__other { display: none; }
  .explorer.is-tabbed .explorer__choices { grid-template-columns: minmax(0, 1fr); }

  .compact-ready .explorer.is-tabbed .explorer__select {
    position: sticky;
    top: calc(var(--appbar-h) + env(safe-area-inset-top));
    z-index: 20;
    display: grid;
    gap: 6px;
    padding-block: 8px 12px;
    background: var(--paper-glass);
  }

  .appbar-hidden .explorer__select { transform: translateY(calc(-1 * var(--appbar-h))); }

  /* Auswahlfeld (Branchenseite und Startseite): eine ruhige weiße Zeile wie in einer App, rechts der Pfeil in einem dunklen
     Kreis. Der Platzhalter „Branche wählen“ steht leiser da als eine gewählte Branche. */
  .branch-select__label { color: var(--ink-muted); font: 600 13px/1.2 var(--font-head); letter-spacing: 0.01em; }

  .branch-select__field { position: relative; display: block; }

  .branch-select select {
    width: 100%;
    min-height: 56px;
    padding: 0 60px 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-l);
    background: var(--white);
    box-shadow: var(--shadow-card);
    color: var(--ink);
    font: 700 17px/1.2 var(--font-head);
    letter-spacing: -0.01em;
    -webkit-appearance: none;
    appearance: none;
  }

  .branch-select select:has(option[value=""]:checked) { color: var(--ink-muted); font-weight: 600; }

  .branch-select__field::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 11px;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    border-radius: 50%;
    background: var(--ink);
    pointer-events: none;
  }

  .branch-select__field::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 23px;
    width: 8px;
    height: 8px;
    margin-top: -7px;
    border-right: 2px solid var(--paper);
    border-bottom: 2px solid var(--paper);
    transform: rotate(45deg);
    pointer-events: none;
  }

  /* Nach dem Wechsel steht die Branche direkt unter der mitlaufenden Auswahl (die obere Leiste ist beim Runterscrollen weg).
     Der Wert kommt zum Abstand der Seite für Sprungziele hinzu (scroll-padding-top in style.css); so bleiben rund 44 px Luft
     unter dem Feld (Inhaber-Wunsch 10.10.2026: vorher doppelt so viel). */
  .industry { scroll-margin-top: 50px; }

  /* Beispiele als Zeilen wie in einer App-Liste: Titel, ein Satz, rechts ein Pfeil; die ganze Zeile führt zur Lösung. */
  .industry .uses { display: block; }

  .industry .use {
    position: relative;
    display: block;
    padding: 16px 36px 16px 0;
    border-top: 1px solid var(--line);
  }

  .industry .use:first-child { padding-top: 4px; border-top: 0; }

  .industry .use::before,
  .industry .use__more::before,
  .industry .use__more::after { content: none; }

  .industry .use__title { font-size: 18px; }
  .industry .use__text { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }

  .industry .use__more {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: 0;
    color: transparent;
    font-size: 0;
  }

  .industry .use__more:focus-visible { outline-offset: -2px; }

  .industry .use::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--ink-muted);
    border-right: 2px solid var(--ink-muted);
    transform: translateY(-50%) rotate(45deg);
  }

  .industry .examples__more { display: none; }
  .industry h2 { margin-bottom: 14px; font-size: 24px; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 959px) {
  .motion .explorer__select { transition: transform 0.25s var(--ease-out); }
}

/* Stand: Menü ganzseitig (10.10.2026). */
