/*
 * Luparis – Startseite. Farben nur über Tokens aus style.css.
 * Bewegung nur mit prefers-reduced-motion: no-preference und .motion am <html>.
 */

/* ---------- Hero (hell, auf dem sanften Verlauf aus style.css) ---------- */

/* Oben reines Papier (kein Goldhauch mehr, Inhaber-Wunsch 10.10.2026), von unten steigt das Blaugrau des Branchen-Wählers auf.
   Die untere Kante hat exakt dessen Farbe (--ground-soft), damit zwischen den beiden Kapiteln keine Naht entsteht. */
.hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(to bottom, transparent 0, transparent 40%, var(--ground-soft) 100%);
}

/* Leises digitales Element: eine feine Signal-Welle wie bei einem Sprachassistenten (KI, die zuhört und mitarbeitet). Drei Haarlinien,
   eine davon in Messing, liegen unten im blauen Bereich und laufen links und rechts weich aus. Mit Bewegung zieht die Welle im selben
   Tempo wie das Werkzeug-Laufband nach links (Inhaber-Wunsch 10.10.2026): Ihre Strecke ist in der Schriftgröße des Bands gerechnet
   (--band-font), 60 em in 31,6 s ergeben dieselben rund 1,9 em/s wie eine Liste des Bands in 64 s. 1 Einheit der Grafik = 0,05 em;
   jede Periode (400, 300, 240) passt genau in 1200 Einheiten, die Schleife springt nicht. Nur transform. */
.hero__wave {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  z-index: -1;
  height: 72px;
  overflow: hidden;
  font-size: var(--band-font);
  -webkit-mask-image: linear-gradient(to right, transparent, black 22%, black 78%, transparent);
  mask-image: linear-gradient(to right, transparent, black 22%, black 78%, transparent);
  pointer-events: none;
}

.hero__wave svg {
  display: block;
  width: 240em;
  height: 100%;
  overflow: visible;
}

.hero__wave-line {
  fill: none;
  stroke: var(--wave);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.hero__wave-line:nth-child(2) { stroke: color-mix(in srgb, var(--brass) 45%, transparent); }

@keyframes wave-flow {
  to { transform: translateX(-60em); }
}

@media (prefers-reduced-motion: no-preference) {
  .motion .hero__wave svg { animation: wave-flow 31.6s linear infinite; will-change: transform; }
}

.hero__grid {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(24px, 4.4vw, 64px) clamp(120px, 11vw, 160px);
}

/* Ab 1024 px stehen Text und Feed nebeneinander, beide an der Oberkante: die erste Karte beginnt auf der Höhe der Überschrift. */
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}

.hero h1 {
  max-width: 11em;
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Breite = Text, damit das Messing am Ende der längsten Zeile ankommt. Ohne background-clip bleibt der Titel Tinte. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero h1 {
    width: fit-content;
    background: var(--title-fill);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* Wechselzeile: alle Wörter im selben Rasterfeld, Höhe = längstes Wort, kein Springen.
   Gold auf Papier 2,6 : 1: große fette Schrift (ab 26 px), gelbwarm statt bräunlich. Mit Glanz verläuft der Ton von
   --brass-lo (2,9 : 1) bis --brass-hi (2,4 : 1). */
.rotator {
  margin-top: clamp(20px, 2.6vw, 32px);
  font: 800 clamp(26px, 2.7vw, 36px)/1.15 var(--font-head);
  letter-spacing: -0.02em;
}

.rotator__lead { display: block; color: var(--ink); }

.rotator__words {
  display: grid;
  color: var(--brass);
}

.rotator__word { grid-area: 1 / 1; justify-self: start; }

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .rotator__word {
    background: linear-gradient(100deg, var(--brass-lo) 0%, var(--brass) 45%, var(--brass-hi) 70%, var(--brass) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.rotator__word:not(.is-current) { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .motion .rotator__word { transition: opacity 0.3s ease, transform 0.3s var(--ease-out); }
  .motion .rotator__word:not(.is-current) { transform: translateY(0.5em); }
  .motion .rotator__word.is-leaving { transform: translateY(-0.5em); }
}

.hero__sub {
  max-width: 33em;
  margin-top: clamp(20px, 2.4vw, 28px);
  color: var(--ink-muted);
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

.hero__actions .button { margin-top: 0; }

.hero__link.text-link { font-size: 18px; }

.hero__promise {
  margin-top: 24px;
  color: var(--ink-muted);
  font: 600 15px/1.6 var(--font-head);
}

/* ---------- Live-Feed: Benachrichtigungen wie auf dem Handy ---------- */

.feed { min-width: 0; }

/* Mit Bewegung ist der Feed per Tab erreichbar (js/hero-feed.js setzt tabindex): Fokus hält ihn an. */
.feed:focus-visible { outline-offset: 8px; border-radius: var(--radius-m); }

/* Benachrichtigungen wie auf dem Handy, ohne Panel: Der feste Ausschnitt blendet unten weich in den Grund aus (kein weißer Rest).
   Seitlich etwas Luft, damit die Schatten der Karten nicht abgeschnitten werden. */
.feed__window {
  height: 520px;
  margin-inline: -24px;
  padding: 4px 24px 0;
  overflow: hidden;
  /* Das Einschieben einer Karte berechnet nur den Feed neu, nicht die ganze Seite. */
  contain: layout paint;
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 72px), transparent);
  mask-image: linear-gradient(to bottom, black calc(100% - 72px), transparent);
}

.feed__list {
  display: flex;
  flex-direction: column;
  padding: 0;
  list-style: none;
}

.feed__item {
  display: grid;
  grid-template-rows: 1fr;
}

/* Ohne Skript stehen die ersten sieben Karten still (so viele zeigt auch das Skript ab 1024 px; die Spalte ist immer gefüllt). */
.feed__item:nth-child(n + 8) { display: none; }

.feed--live .feed__item { display: none; }
.feed--live .feed__item.is-on { display: grid; }

.feed__clip { min-height: 0; overflow: hidden; }

/* Eine Benachrichtigung: helle, fast deckende Fläche mit großem Radius, App-Symbol links, Titel und Branche oben, Detail darunter. */
.feed__card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "check name tag"
    "check detail detail";
  align-items: baseline;
  gap: 2px 13px;
  margin-bottom: 10px;
  padding: 13px 16px 14px 13px;
  border: 1px solid color-mix(in srgb, var(--white) 80%, transparent);
  border-radius: var(--radius-note);
  /* Fast deckend statt Milchglas: Ein Unschärfefilter je Karte ließ die Animationen stocken (alle Filter rechnen bei jeder Bewegung neu). */
  background: color-mix(in srgb, var(--white) 90%, transparent);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent), 0 14px 30px -20px color-mix(in srgb, var(--ink) 34%, transparent);
}

/* Leiser goldener Haken: zarte Goldscheibe mit feinem Rand, Haken in Messing (wie bei den Zusagen im Vorgehen). */
.feed__check {
  grid-area: check;
  align-self: center;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--brass) 30%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold-hi) 26%, var(--white));
  color: var(--brass);
}

.feed__check::after {
  content: "";
  width: 10px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(-45deg);
}

.feed__name {
  grid-area: name;
  min-width: 0;
  font: 700 16px/1.3 var(--font-head);
  letter-spacing: -0.01em;
}

/* Branche an der Stelle der Uhrzeit: klein und gedämpft. */
.feed__tag {
  grid-area: tag;
  justify-self: end;
  color: var(--ink-muted);
  font: 600 13px/1.3 var(--font-head);
  white-space: nowrap;
}

/* Detailzeile in der Schrift der Überschriften, aber im normalen Schnitt: ruhiger und eleganter als die Serife (Inhaber, 12.10.2026). */
.feed__detail {
  grid-area: detail;
  color: var(--ink-muted);
  font: 400 15px/1.45 var(--font-head);
}

.feed__note {
  text-align: right;
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 15px;
  font-style: italic;
}

/* Ab 1024 px: Der Feed ist so hoch wie die Textspalte, das Fenster füllt den Platz über der Fußnote.
   contain: size, damit die Liste die Rasterzeile nicht höher macht als den Text. */
@media (min-width: 1024px) {
  .feed {
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }

  .feed__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
  }

  .feed__window {
    flex: 1 1 0;
    height: auto;
    min-height: 380px;
    contain: size layout paint;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .motion .feed__item { transition: grid-template-rows 0.4s var(--ease-out), opacity 0.4s ease; }
  .motion .feed__card { transition: transform 0.4s var(--ease-out); }
  .motion .feed__item.is-entering { grid-template-rows: 0fr; opacity: 0; }
  .motion .feed__item.is-entering .feed__card { transform: translateY(-10px) scale(0.98); }
  .motion .feed__item.is-leaving { opacity: 0; }
}

/* Schmaler: Feed unter dem Text, drei Karten im Bild. Mit Skript ein eigener Ausschnitt zum Hoch- und Runterscrollen mit weiteren
   Karten darunter (Inhaber-Wunsch 10.10.2026); unten Platz, damit auch die letzte Karte aus der Ausblendung herausrollt.
   Ruhiger als breit: Karten blenden langsamer ein (Dauer wie FEED_TRANSITION_MOBILE_MS in js/hero-feed.js). */
@media (max-width: 1023px) {
  .feed__window { height: 300px; }
  .feed__item:nth-child(n + 4) { display: none; }

  .feed--live .feed__window {
    padding-bottom: 64px;
    overflow-y: auto;
    overscroll-behavior-x: none;
    scrollbar-width: none;
  }

  .feed--live .feed__window::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 1023px) {
  .motion .feed__item,
  .motion .feed__card { transition-duration: 0.7s; }
}

@media (max-width: 599px) {
  .hero__sub { margin-top: 12px; }
  .feed__window { height: 318px; }
  .feed__card { padding: 12px 14px 13px 12px; gap: 2px 12px; }
  .feed__name { font-size: 15px; }
}

/* ---------- Branchen-Wähler ---------- */

/* Reiter als schlanke Textleiste; ein goldener Strich gleitet unter den gewählten Reiter (js/tabs.js).
   Kein Rahmen beim Anklicken: Der Fokusrahmen erscheint nur bei Tastaturbedienung (:focus-visible, dazu style.css). */
.picker__tabs {
  position: relative;
  display: flex;
  gap: clamp(18px, 2.2vw, 28px);
  margin-bottom: clamp(28px, 3.2vw, 40px);
  border-bottom: 1px solid var(--line-strong);
}

.picker__tab {
  flex: 0 0 auto;
  min-height: 48px;
  /* Etwas Luft für den Fokusrahmen; der Strich darunter bleibt so breit wie das Wort (js/tabs.js). */
  margin-inline: -8px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  color: var(--ink-muted);
  font: 600 17px/1.2 var(--font-head);
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
}

.picker__tab[aria-selected="true"] { color: var(--ink); }

@media (hover: hover) {
  .picker__tab:hover { color: var(--ink); }
}

.picker__tab[aria-selected="true"] { font-weight: 700; }

/* Unsichtbares Wort in 700 (data-label, js/tabs.js): Jeder Reiter hat die Breite der fetten Schrift. */
.picker__tab::after {
  content: attr(data-label);
  content: attr(data-label) / "";
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 700;
  pointer-events: none;
}

/* Innerhalb der seitlich scrollbaren Leiste bliebe ein äußerer Rahmen abgeschnitten, deshalb nach innen versetzt. */
.picker__tab:focus-visible { outline-offset: -4px; border-radius: var(--radius-m); }

/* Breite 1 px, Lage und Länge kommen als transform aus dem Skript: nur transform wird animiert. */
.picker__indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 1px;
  height: 2px;
  background: var(--brass);
  transform-origin: left;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .motion .picker__indicator.is-ready { transition: transform 0.4s var(--ease-out); }
}

/* Schmaler als die neun Reiter breit sind (Telefon, Tablet, kleines Fenster): Reiter seitlich scrollbar, der Strich scrollt mit. */
@media (max-width: 1199px) {
  .picker__tabs {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

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

/* Ohne Skript stehen alle Branchen untereinander, jede mit ihrer Überschrift. */
.picker__panel + .picker__panel { margin-top: clamp(48px, 6vw, 72px); }

/* „Beispiele für …“: klein über den Spalten. Ohne Skript trägt sie als Überschrift jede Branche. */
.picker__label {
  margin-bottom: clamp(20px, 2.4vw, 28px);
  color: var(--ink-muted);
  font: 600 15px/1.3 var(--font-head);
  letter-spacing: -0.005em;
}

.picker:not(.is-tabbed) .picker__label {
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

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

.picker__panel:focus-visible { outline-offset: 10px; border-radius: var(--radius-m); }

/* Knopf und Link zu allen Branchen in einer Zeile, rechtsbündig (wie „Erstgespräch“ auf der Branchen-Seite).
   Mobil untereinander und linksbündig, mit mehr Luft zwischen Knopf und Link (Inhaber-Wunsch 10.10.2026).
   Ohne Skript steht der Link nur unter der letzten Branche. */
.picker__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 28px;
  margin-top: clamp(32px, 3.6vw, 44px);
}

@media (max-width: 599px) {
  .picker__actions {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 28px;
  }
}

.picker__actions .button { margin-top: 0; }

.picker:not(.is-tabbed) .picker__panel:not(:last-child) .picker__all { display: none; }

/* Mit Skript: alle Felder im selben Rasterfeld, die Höhe richtet sich nach dem längsten. */
.picker.is-tabbed .picker__panels { display: grid; }
.picker.is-tabbed .picker__panel { grid-area: 1 / 1; }
.picker.is-tabbed .picker__panel + .picker__panel { margin-top: 0; }

.picker.is-tabbed .picker__panel[hidden] {
  display: grid;
  visibility: hidden;
  opacity: 0;
}

/* Wechsel: Der neue Inhalt blendet ein und gleitet 8 px hoch. */
@media (prefers-reduced-motion: no-preference) {
  .motion .picker.is-tabbed .picker__panel:not([hidden]) { transition: opacity 0.35s ease, transform 0.45s var(--ease-out); }
  .motion .picker.is-tabbed .picker__panel[hidden] { transform: translateY(8px); }
}

/* Branchen-Feld als ruhige Karte (Inhaber-Wunsch 10.10.2026: hochwertiger und übersichtlicher). Links die Branche als Überschrift,
   darunter Erstgespräch und der Link zu allen Branchen; rechts die Beispiele als Zeilen zwischen Haarlinien, „Zur Lösung“ rechts
   daneben, „Und vieles mehr“ als leise Fußzeile. Mobil eine Spalte. Gilt nur hier; Branchen- und Lösungsseite behalten ihre Spalten. */
.picker__panel {
  display: grid;
  grid-template-areas: "label" "examples" "actions";
  padding: clamp(24px, 3.4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.picker .picker__label {
  grid-area: label;
  margin-bottom: 20px;
  color: var(--ink);
  font: 800 clamp(24px, 2.4vw, 32px)/1.1 var(--font-head);
  letter-spacing: -0.02em;
  text-wrap: var(--wrap-title);
}

.picker .examples {
  grid-area: examples;
  display: block;
}

.picker .uses { display: block; }

.picker .use {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title more" "text more";
  column-gap: 28px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

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

.picker .use::before,
.picker .examples__more::before { content: none; }

.picker .use__title { grid-area: title; text-wrap: pretty; }

.picker .use__text {
  grid-area: text;
  margin: 6px 0 0;
  text-wrap: pretty;
}

.picker .use__more {
  grid-area: more;
  align-self: center;
  margin: 0;
  white-space: nowrap;
}

.picker .examples__more {
  display: block;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font: italic 400 16px/1.5 var(--font-text);
  letter-spacing: 0;
}

.picker__actions { grid-area: actions; }

/* Ab 960 px: Kopfzeile mit Branche links und „Alle Branchen ansehen“ rechts; darunter jede Beispielzeile wie eine Tabelle
   (Titel, Satz, „Zur Lösung“), damit sich die Zeilen auf einen Blick vergleichen lassen; unten „Und vieles mehr“ und das Erstgespräch
   in einer Fußzeile. Beispiele und Aktionen geben ihre Kinder dafür direkt an das Raster der Karte ab (display: contents). */
@media (min-width: 960px) {
  .picker__panel {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "label all" "uses uses" "more cta";
    align-items: center;
    column-gap: 40px;
  }

  .picker .picker__label { margin-bottom: 0; font-size: clamp(22px, 2.2vw, 28px); }

  .picker .examples,
  .picker__actions { display: contents; }

  .picker .uses {
    grid-area: uses;
    margin-top: clamp(24px, 2.6vw, 32px);
    border-block: 1px solid var(--line);
  }

  .picker .examples__more {
    grid-area: more;
    margin-top: 24px;
    padding-top: 0;
    border-top: 0;
  }

  .picker__actions .button { grid-area: cta; justify-self: end; margin-top: 24px; }
  .picker__actions .picker__all { grid-area: all; justify-self: end; }

  .picker .use {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
    grid-template-areas: "title text more";
    align-items: baseline;
    column-gap: clamp(24px, 3vw, 40px);
  }

  .picker .use:first-child { padding-top: 20px; }

  .picker .use__text { margin: 0; }
}

@media (max-width: 599px) {
  .picker .use {
    grid-template-areas: "title" "text" "more";
    grid-template-columns: minmax(0, 1fr);
  }

  .picker .use__more { justify-self: start; margin-top: 10px; }
}

/* ---------- Fünf Wege ---------- */

/* Links Überschrift und Einleitung (bleibt beim Scrollen stehen), rechts fünf Zeilen zwischen Haarlinien, je mit Goldkachel und rundem Pfeil-Knopf. */
.ways {
  display: grid;
  gap: var(--head-gap) var(--col-gap);
}

@media (min-width: 960px) {
  .ways {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .ways__head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.ways__head .more { margin-top: 24px; }

.ways__list {
  display: grid;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line-strong);
}

/* Die Zeile reicht beidseits um --way-pad über die Spalte; beim Überfahren erscheint dort die weiße Karte (::after, opacity).
   Die Haarlinie (::before) blendet dann für diese Zeile und die darauffolgende aus. */
.way {
  --way-pad: clamp(10px, 1.6vw, 20px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px clamp(16px, 2.4vw, 28px);
  margin-inline: calc(-1 * var(--way-pad));
  padding: clamp(18px, 2.2vw, 26px) var(--way-pad);
}

.way::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--way-pad);
  left: var(--way-pad);
  border-top: 1px solid var(--line-strong);
  pointer-events: none;
}

.way:focus-within::before,
.way:focus-within + .way::before { opacity: 0; }

@media (hover: hover) {
  .way:hover::before,
  .way:hover + .way::before { opacity: 0; }
}

.way::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
}

.way:focus-within::after { opacity: 1; }

@media (hover: hover) {
  .way:hover::after { opacity: 1; }
}

/* Goldkachel mit weißem Linien-Symbol und weichem Schatten wie bei weißer Schrift auf Gold. */
.way__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-tile);
  background: var(--gold-metal);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--white) 38%, transparent), 0 8px 16px -10px color-mix(in srgb, var(--gold-shade) 60%, transparent);
  color: var(--on-gold);
  text-shadow: var(--on-gold-shadow);
}

.way svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.way__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.9;
  filter: drop-shadow(0 1px 1px color-mix(in srgb, var(--gold-shade) 50%, transparent));
}

.way__title {
  font-size: clamp(20px, 1.8vw, 23px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.way__text {
  max-width: 34em;
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* Runder Pfeil-Knopf: dünner Rand, Pfeil in Tinte; beim Überfahren der Zeile blendet .way__fill (Gold, weißer Pfeil) per opacity ein. */
.way__link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
}

.way__link svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* Die ganze Zeile ist der Link (Inhaber-Wunsch 10.10.2026): Eine unsichtbare Fläche des Links liegt über der Zeile (.way ist der Bezug).
   Der Knopf selbst ist dafür nicht positioniert; Pfeil und Goldfüllung liegen im selben Rasterfeld übereinander. */
.way__link::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: var(--radius-l);
}

.way__link > svg,
.way__link > .way__fill { grid-area: 1 / 1; }

.way__fill {
  z-index: 1;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  margin: -1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-metal);
  color: var(--on-gold);
  text-shadow: var(--on-gold-shadow);
  opacity: 0;
  pointer-events: none;
}

.way__fill svg { filter: drop-shadow(0 1px 1px color-mix(in srgb, var(--gold-shade) 50%, transparent)); }

.way__link:focus-visible .way__fill { opacity: 1; }

@media (hover: hover) {
  .way:hover .way__fill { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .motion .way { transition: opacity 0.6s var(--ease-out), transform 0.35s var(--ease-out); }
  .motion .way::before { transition: opacity 0.3s ease; }
  .motion .way::after { transition: opacity 0.3s ease; }
  .motion .way__fill { transition: opacity 0.25s ease; }
  .motion .way:focus-within { transform: translateY(-2px); }

  @media (hover: hover) {
    .motion .way:hover { transform: translateY(-2px); }
  }
}

/* Schmal: Kachel und Pfeil oben an der Zeile. */
@media (max-width: 599px) {
  .way { align-items: start; gap: 8px 14px; }
  .way__icon { width: 40px; height: 40px; margin-top: 2px; }
  .way__link { margin-top: 2px; }
}

/* ---------- Rechnet sich das? (dunkel) ---------- */

/* Halber Abstand zum Rand des dunklen Abschnitts, oben und unten. */
.why { padding-block: calc(var(--section-pad) / 2); }

/* Bis 1199 px einspaltig: Überschrift mit Einleitung, darunter der Rechner in voller Breite. */
.why__grid {
  display: grid;
  gap: var(--head-gap) var(--col-gap);
}

/* Ab 1200 px links die Überschrift, rechts der Rechner (Inhaber-Wunsch 10.10.2026). Die linke Spalte ist genau so breit wie „sich das?“,
   das Ergebnisfeld fest 280 px, der Rest geht an die Regler: „Wiederkehrende, automatisierbare / Arbeit pro Person und Woche“ bleibt
   zweizeilig (ab rund 1170 px gemessen, 1200 px mit Luft für andere Schriftwiedergabe). Schmaler würde die Beschriftung drei- bis vierzeilig. */
@media (min-width: 1200px) {
  .why__grid {
    grid-template-columns: min-content minmax(0, 1fr);
    column-gap: clamp(32px, 3vw, 64px);
    align-items: start;
  }

  .why .calc__result { flex: 0 1 280px; }
}

/* Zwei feste Zeilen: „Rechnet“ und „sich das?“, jede für sich unumbrochen. */
.why__title .nowrap {
  display: block;
  white-space: nowrap;
}

.why__title {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.why__lead { max-width: 24em; color: var(--field); }

/* Der Rechner bleibt eine helle Karte mit Tinte, auch im dunklen Abschnitt. */
.why .calc {
  color: var(--ink);
  border-color: transparent;
}

/* ---------- Vorteile (unter dem Branchen-Wähler) ---------- */

/* Direkt unter der Branchenbox (Inhaber-Wunsch 10.10.2026), darunter die Fußnote zur Kostenangabe. */
.benefits { margin-top: clamp(28px, 3.2vw, 40px); }

.benefits__note {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Ohne Skript: breit im Raster, schmal zum Wischen (unten). */
.reasons {
  display: grid;
  gap: var(--card-gap);
  padding: 0;
  list-style: none;
}

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

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

/* Dunkle Karten mit feinem Rand, kleinem Radius und kurzem hellgoldenem Strich, auch auf dem hellen Grund. Der Strich ist ein auf die
   Kartenbreite gedehnter Rand, der per transform (scaleX, Ursprung links) kurz steht und beim Überfahren länger wird. Im Karussell kein
   Goldschein, kein Hub und kein Einblenden je Karte: Die Karten gleiten, das genügt (und nichts wird am Rand abgeschnitten). */
.reason {
  position: relative;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius-l);
  background: var(--ink-soft);
  color: var(--paper);
}

.reason::before {
  content: "";
  display: block;
  margin-bottom: 18px;
  border-top: 3px solid var(--brass-light);
  border-top-color: var(--brass-light);
  transform: scaleX(0.15);
  transform-origin: left;
}

/* Abdunklung der angeschnittenen Nachbarn im Karussell (unten, .is-side); sonst unsichtbar. */
.reason::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
}

.reason:focus-within::before { transform: scaleX(0.45); }

@media (hover: hover) {
  .reason:hover::before { transform: scaleX(0.45); }
}

@media (prefers-reduced-motion: no-preference) {
  .motion .reason::before { transition: transform 0.5s var(--ease-out); }
}

.reason h3 {
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
  .reason h3 { font-size: clamp(19px, 1.6vw, 22px); }
}

.reason p {
  max-width: 28em;
  margin-top: 10px;
  color: var(--field);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

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

/* Kopf mit Link: Überschrift und Einleitung links, der Link „Mehr zu unserem Vorgehen“ oben rechts auf Höhe der
   Überschrift, bündig mit der rechten Inhaltskante. Schmal steht er unter der Einleitung, linksbündig. */
.section-head--aside .more { margin-top: 16px; }

@media (min-width: 700px) {
  .section-head--aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--col-gap);
    max-width: none;
  }

  .section-head--aside h2,
  .section-head--aside .lead { grid-column: 1; }

  .section-head--aside .more {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    margin-top: 0;
  }
}

/* Drei Zusagen als editoriale Spalten (Inhaber-Wahl 10.10.2026, Richtung A; Inhalt seit 10.10.2026: Analyse, Plan mit ROI, Umsetzung):
   linksbündig, über jeder Spalte eine Haarlinie mit goldener Linie, darunter eine große Ziffer in Messing (wie auf der Seite „Vorgehen“),
   Titel, zwei Sätze und unten die Zusage. Keine Kreise, Karten oder Schatten: Die Typografie trägt. Bis 859 px untereinander, ab 860 px drei Spalten. */
.process {
  display: grid;
  column-gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(8px, 1.5vw, 16px);
  padding: 0;
  list-style: none;
}

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

/* Jede Spalte teilt sich über Subgrid vier Zeilen mit ihren Nachbarn (Ziffer, Titel, Text, Zusage): Titel, Texte und Zusagen
   stehen spaltenübergreifend auf einer Höhe, auch wenn eine Zusage umbricht. Abstand zwischen den Spalten untereinander (mobil) unten. */
.process__step {
  position: relative;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
  padding-block: 28px 44px;
  border-top: 1px solid var(--line-strong);
}

@media (min-width: 860px) {
  .process__step { padding-bottom: 0; }
}

/* Goldene Linie auf der Haarlinie (2 px, liegt mittig darüber); zieht sich beim Hineinscrollen von links auf. */
.process__step::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  border-top: 2px solid var(--brass);
  transform-origin: left;
}

/* Messing auf Papier nur als große, fette Ziffer (ab 44 px); für Vorleser zählt die geordnete Liste. */
.process__num {
  color: var(--brass);
  font: 900 clamp(44px, 4.4vw, 60px)/0.9 var(--font-head);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.process h3 {
  margin-top: 24px;
  font-size: clamp(21px, 1.9vw, 24px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.process__step > p:not(.process__promise) {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.55;
}

/* Zusage in Tinte mit kleinem Haken in Messing (zwei Ränder, gedreht); ruhig statt grüner Badge. */
.process__promise {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 22px;
  color: var(--ink);
  font: 700 16px/1.3 var(--font-head);
  letter-spacing: -0.01em;
}

.process__promise::before {
  content: "";
  flex: none;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid var(--brass);
  border-left: 2px solid var(--brass);
  transform: translateY(-3px) rotate(-45deg);
}

/* Beim Hineinscrollen zieht sich die goldene Linie Spalte für Spalte (200 ms versetzt), die Inhalte jeder Spalte folgen ihr.
   Nur transform und opacity; ohne Skript oder bei reduzierter Bewegung steht alles sofort da. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .process.reveal:not(.is-visible) { opacity: 1; transform: none; }
  .reveal-ready .process__step { --delay: 0s; }
  .reveal-ready .process__step:nth-child(2) { --delay: 0.2s; }
  .reveal-ready .process__step:nth-child(3) { --delay: 0.4s; }
  .reveal-ready .process__step::before { transition: transform 0.9s var(--ease-out) var(--delay); }
  .reveal-ready .process__step > * { transition: opacity 0.6s ease calc(var(--delay) + 0.15s), transform 0.6s var(--ease-out) calc(var(--delay) + 0.15s); }
  .reveal-ready .process:not(.is-visible) .process__step::before { transform: scaleX(0); }
  .reveal-ready .process:not(.is-visible) .process__step > * { opacity: 0; transform: translateY(10px); }
}

/* ---------- Häufige Fragen auf der Startseite ---------- */

.home-faq .more { margin-top: 24px; }

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

/* ---------- Schmal wie eine App (Inhaber-Wahl 10.10.2026) ---------- */

/* Branchen-Wähler schmal (Inhaber-Wunsch 10.10.2026): statt der Wischleiste eine Auswahl (js/nav.js, gestaltet in
   components.css .branch-select). Bis eine Branche gewählt ist, steht darunter nichts; dann blendet ihr Feld ein.
   Ohne Skript oder wenn die Reiter nicht starten, bleibt alles wie breit. */
@media (max-width: 959px) {
  .compact-ready .picker.is-tabbed .picker__tabs { display: none; }

  .compact-ready .picker.is-tabbed .picker__select { display: grid; gap: 6px; margin-bottom: 16px; }

  .picker.is-tabbed.is-unchosen .picker__panels { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @starting-style {
    .motion .picker.is-tabbed .picker__panel:not([hidden]) { opacity: 0; transform: translateY(8px); }
  }
}

/* Vorteile als Endlos-Karussell (js/benefits.js setzt .is-live): runde dunkle Pfeile links und rechts, dazwischen der Ausschnitt, in dem
   die Spur per transform gleitet (langsam, 0,9 s wie SLIDE_MS). Im Fokus breit drei Karten, von 640 bis 1023 px zwei, schmal eine
   (--focus); links und rechts schaut je ein Stück der Nachbarkarte herein (--peek), kleiner und abgedunkelt (.is-side, Inhaber-Wunsch
   10.10.2026). Die erste Karte der Spur steht links angeschnitten (negativer Rand, width: 100% hält die Kartenbreite am Ausschnitt).
   Schmal gibt es keinen Anschnitt: --peek gleicht dort genau die Lücke aus; die Pfeile reichen bis nah an den Bildschirmrand. Ab 1280 px stehen die Pfeile im Seitenrand und die
   Karten bündig unter der Branchenbox. touch-action: pan-y lässt die Seite weiter senkrecht scrollen, zur Seite wischt das Skript. */
.carousel__arrows { display: none; }

.carousel__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

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

@media (hover: hover) {
  .carousel__arrow:hover { background: var(--ink-soft); }
}

.carousel.is-live {
  --arrow: 44px;
  --focus: 1;
  --peek: calc(-1 * var(--card-gap));
  display: grid;
  grid-template-columns: var(--arrow) minmax(0, 1fr) var(--arrow);
  align-items: center;
  gap: 12px;
}

.carousel.is-live .carousel__arrows { display: contents; }

.carousel__arrow[data-slide="prev"] { grid-area: 1 / 1; }

.carousel__arrow[data-slide="next"] { grid-area: 1 / 3; }

/* Oben und unten etwas Luft (mit gleich großem negativem Rand), damit eine Karte beim Überfahren wachsen kann, ohne abgeschnitten zu werden. */
.carousel.is-live .carousel__viewport {
  grid-area: 1 / 2;
  min-width: 0;
  padding-block: 12px;
  margin-block: -12px;
  overflow: hidden;
  touch-action: pan-y;
}

.carousel.is-live .reasons {
  --card: calc((100% - (var(--focus) + 1) * var(--card-gap) - 2 * var(--peek)) / var(--focus));
  display: flex;
  width: 100%;
  margin-left: calc(var(--peek) - var(--card));
}

.carousel.is-live .reasons > li { flex: 0 0 var(--card); }

@media (min-width: 640px) {
  .carousel.is-live { --focus: 2; --peek: clamp(28px, 4vw, 56px); }

  .carousel.is-live .reason.is-side { transform: scale(0.92); }

  /* Jede Karte außer der mittleren lässt sich anklicken und gleitet dann in die Mitte (js/benefits.js). */
  .carousel.is-live .reason:not(.is-center) { cursor: pointer; }

  .carousel.is-live .reason.is-side::after { opacity: 0.55; }
}

/* Beim Überfahren wächst jede Karte ein wenig (Inhaber-Wunsch 10.10.2026). Angeschnittene Nachbarn laden zum Klicken ein: größer und
   heller (Klick holt sie in die Mitte, js/benefits.js). */
@media (hover: hover) and (min-width: 640px) {
  .carousel.is-live .reason:hover { transform: scale(1.03); }

  .carousel.is-live .reason.is-side:hover { transform: scale(0.96); }

  .carousel.is-live .reason.is-side:hover::after { opacity: 0.25; }
}

@media (min-width: 1024px) {
  .carousel.is-live { --focus: 3; }
}

@media (min-width: 1280px) {
  .carousel.is-live { margin-inline: calc(-1 * (var(--arrow) + 12px)); }
}

@media (prefers-reduced-motion: no-preference) {
  .motion .carousel.is-live .reasons.is-sliding { transition: transform 0.9s var(--ease-out); }
  .motion .carousel.is-live .reason { transition: transform 0.9s var(--ease-out); }
  .motion .carousel.is-live .reason::after { transition: opacity 0.9s var(--ease-out); }

  /* Das Überfahren antwortet schneller als das Gleiten. */
  @media (hover: hover) {
    .motion .carousel.is-live .reason:hover,
    .motion .carousel.is-live .reason.is-side:hover::after { transition-duration: 0.3s; }
  }
}

@media (max-width: 639px) {
  .carousel.is-live { gap: 4px; margin-inline: calc(4px - var(--gutter)); }

  .reasons .reason { padding: 22px 20px; }

  /* Ohne Skript: wischen mit Scroll-Snap, die nächste Karte schaut rechts hervor.
     contain: inline-size: Die Spur zählt nicht zur Mindestbreite, sonst würde die Seite breiter als der Bildschirm. */
  .carousel:not(.is-live) .reasons {
    contain: inline-size;
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .carousel:not(.is-live) .reasons::-webkit-scrollbar { display: none; }

  .carousel:not(.is-live) .reasons > li { flex: 0 0 84%; scroll-snap-align: start; }
}

/* Branchen-Wähler schmal: Beispiele als Zeilen wie auf der Branchenseite (components.css), die ganze Zeile führt zur Lösung. */
@media (max-width: 959px) {
  .picker .use {
    position: relative;
    display: block;
    padding: 16px 36px 16px 0;
  }

  .picker .use:first-child { padding-top: 4px; }

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

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

  .picker .use__more::before,
  .picker .use__more::after { content: none; }

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

  .picker .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);
  }

  .picker .examples__more { display: none; }
}

