/*
 * Marketingseite Garagencockpit. Die Farbtokens (--color-*) sind identisch mit denen der App
 * (modernized/frontend/src/styles/index.css); tests/tokens.test.mjs prüft den Gleichlauf.
 * Schrift: Systemschrift wie in der App, keine Webfonts. Keine Inline-Styles (CSP).
 */
:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --color-nav: #142b3d;
  --color-nav-hover: #1e3d54;
  --color-nav-active: #234b66;
  --color-nav-ink: #f4f7f9;
  --color-nav-muted: #a9bac6;
  --color-nav-focus: #7fd6cf;

  --color-canvas: #f5f7f8;
  --color-surface: #ffffff;
  --color-surface-muted: #eef2f4;
  --color-line: #d3dbe0;
  --color-line-strong: #7b8c99;

  --color-ink: #142b3d;
  --color-ink-muted: #526a7a;
  --color-accent: #087773;
  --color-accent-strong: #005b59;
  --color-accent-soft: #e2f1f0;
  --color-on-accent: #ffffff;

  --color-free-fg: #14602e;
  --color-free-bg: #e2f3e7;
  --color-rented-fg: #1c4a8a;
  --color-rented-bg: #e1ebf8;
  --color-becoming-fg: #7a4a00;
  --color-becoming-bg: #fbefd2;
  --color-reserved-fg: #55349a;
  --color-reserved-bg: #ece6f8;
  --color-danger-fg: #9c1f17;
  --color-danger-bg: #fbe3e1;
  --color-neutral-fg: #3b4d5a;
  --color-neutral-bg: #e8edf0;

  /* nur Marketing */
  --tiefe: #0b1a26;
  --wrap: 1200px;
  --rand: clamp(1.25rem, 4vw, 2.25rem);
  --abschnitt: clamp(4.5rem, 9vw, 8rem);
  --rundung: clamp(1.5rem, 3vw, 2.5rem);
  --schatten-gross: 0 40px 80px -30px rgb(11 26 38 / 0.55), 0 12px 28px -14px rgb(11 26 38 / 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--color-accent);
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

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

.on-dark :focus-visible,
.kopf :focus-visible {
  outline-color: var(--color-nav-focus);
}

.on-dark {
  color: var(--color-nav-ink);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.num {
  font-variant-numeric: tabular-nums;
}

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

.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 700;
  transition: top 0.2s;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2 * var(--rand), var(--wrap));
  margin-inline: auto;
}

.wrap--schmal {
  --wrap: 820px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--hell {
  color: var(--color-nav-focus);
}

.lead {
  max-width: 62ch;
  margin: 0;
  color: var(--color-ink-muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.on-dark .lead {
  color: var(--color-nav-muted);
}

.klein {
  margin: 0.75rem 0 0;
  color: var(--color-ink-muted);
  font-size: 0.875rem;
}

/* Schaltflächen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--klein {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
}

.btn--gross {
  min-height: 56px;
  padding: 0.9rem 1.9rem;
  font-size: 1.0625rem;
}

.btn--primaer {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn--primaer:hover {
  background: var(--color-accent-strong);
  box-shadow: 0 14px 30px -12px rgb(8 119 115 / 0.6);
}

.btn--hell {
  background: var(--color-nav-focus);
  color: var(--color-nav);
}

.btn--hell:hover {
  background: color-mix(in srgb, var(--color-nav-focus) 80%, white);
  box-shadow: 0 14px 34px -12px rgb(127 214 207 / 0.55);
}

.btn--geist {
  border-color: rgb(255 255 255 / 0.35);
  background: rgb(255 255 255 / 0.04);
  color: var(--color-nav-ink);
}

.btn--geist:hover {
  background: rgb(255 255 255 / 0.12);
}

.btn--geist-hell {
  border-color: var(--color-line-strong);
  background: transparent;
  color: var(--color-ink);
}

.btn--geist-hell:hover {
  background: var(--color-surface-muted);
}

/* Statuskennzeichen wie in der App: immer Text und Symbol */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.chip--gross {
  padding: 0.45rem 0.9rem;
  font-size: 0.9375rem;
}

.chip--frei {
  background: var(--color-free-bg);
  color: var(--color-free-fg);
}

.chip--vermietet {
  background: var(--color-rented-bg);
  color: var(--color-rented-fg);
}

.chip--wird-frei {
  background: var(--color-becoming-bg);
  color: var(--color-becoming-fg);
}

.chip--reserviert {
  background: var(--color-reserved-bg);
  color: var(--color-reserved-fg);
}

.chip--offen {
  background: var(--color-danger-bg);
  color: var(--color-danger-fg);
}

.chip--neutral {
  background: var(--color-neutral-bg);
  color: var(--color-neutral-fg);
}

.tag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.tag--vision {
  color: #d9c9ff;
}

.tag--konzept {
  color: #ffd88a;
}

/* Kopfzeile */
.kopf {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--color-nav-ink);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.kopf.ist-gescrollt,
.kopf.ist-offen {
  background: rgb(20 43 61 / 0.93);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08);
}

@supports (backdrop-filter: blur(1px)) {
  .kopf.ist-gescrollt,
  .kopf.ist-offen {
    background: rgb(20 43 61 / 0.82);
    backdrop-filter: blur(14px) saturate(1.4);
  }
}

.kopf__zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.marke__name span {
  color: var(--color-nav-focus);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__liste {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__liste a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  color: var(--color-nav-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav__liste a:hover,
.nav__liste a[aria-current] {
  background: rgb(255 255 255 / 0.09);
  color: var(--color-nav-ink);
}

.nav-schalter {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-schalter__zu {
  display: none;
}

.kopf.ist-offen .nav-schalter__auf {
  display: none;
}

.kopf.ist-offen .nav-schalter__zu {
  display: block;
}

@media (max-width: 899px) {
  .js .nav-schalter {
    display: inline-flex;
  }

  .js .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    max-height: calc(100dvh - 4.25rem);
    padding: 0.25rem var(--rand) 1.5rem;
    overflow-y: auto;
    background: var(--color-nav);
    box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.5);
  }

  .js .kopf.ist-offen .nav {
    display: flex;
  }

  .js .nav__liste {
    flex-direction: column;
    gap: 0;
  }

  .js .nav__liste a {
    padding: 1rem 0.25rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    border-radius: 0;
    font-size: 1.125rem;
  }

  .nav .btn {
    min-height: 52px;
  }

  :root:not(.js) .kopf__zeile {
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }

  :root:not(.js) .nav {
    flex-basis: 100%;
    overflow-x: auto;
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--color-nav);
}

.hero__hintergrund,
.zukunft__hintergrund,
.demo__hintergrund {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Lamellen des Garagentors, wie im Symbol */
.lamellen {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 34px, rgb(255 255 255 / 0.05) 34px 36px);
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.glow {
  position: absolute;
  border-radius: 50%;
}

.glow--a {
  top: -14rem;
  right: -10rem;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(closest-side, rgb(8 119 115 / 0.6), transparent);
}

.glow--b {
  top: 14rem;
  left: -16rem;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(closest-side, rgb(42 105 140 / 0.4), transparent);
}

.glow--c {
  top: -10rem;
  right: -8rem;
  width: 44rem;
  height: 44rem;
  background: radial-gradient(closest-side, rgb(127 214 207 / 0.22), transparent);
}

.glow--d {
  bottom: -14rem;
  left: -10rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(closest-side, rgb(8 119 115 / 0.5), transparent);
}

.glow--e {
  top: -12rem;
  left: 50%;
  width: 56rem;
  height: 30rem;
  margin-left: -28rem;
  background: radial-gradient(closest-side, rgb(8 119 115 / 0.5), transparent);
}

.tacho {
  position: absolute;
  color: rgb(127 214 207 / 0.16);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
}

.hero .tacho {
  top: 6.5rem;
  right: max(1.5rem, 5vw);
  width: min(36vw, 32rem);
}

.zukunft .tacho {
  bottom: -4rem;
  left: -5rem;
  width: 40rem;
  color: rgb(127 214 207 / 0.1);
}

.hero__kopf {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
  padding-top: clamp(7.5rem, 14vw, 10.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero__kopf > * {
  margin: 0;
  animation: hoch 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.hero__kopf > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero__kopf > :nth-child(3) {
  animation-delay: 0.2s;
}
.hero__kopf > :nth-child(4) {
  animation-delay: 0.3s;
}
.hero__kopf > :nth-child(5) {
  animation-delay: 0.4s;
}

.hero .eyebrow {
  margin: 0;
}

.hero__titel {
  max-width: 14ch;
  font-size: clamp(2.75rem, 8.4vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero__titel span {
  display: block;
}

.hero__akzent {
  color: var(--color-nav-focus);
}

.hero .lead {
  max-width: 54ch;
}

.aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.preisband {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgb(127 214 207 / 0.4);
  border-radius: 999px;
  background: rgb(127 214 207 / 0.08);
  color: var(--color-nav-focus);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.preisband:hover {
  border-color: var(--color-nav-focus);
  background: rgb(127 214 207 / 0.16);
}

.hero__buehne {
  position: relative;
  background: linear-gradient(to bottom, transparent 0 40%, var(--color-canvas) 40% 100%);
}

.hero__rahmen {
  position: relative;
  animation: hoch 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s backwards;
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(20 43 61 / 0.14);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: 0 30px 60px -30px rgb(20 43 61 / 0.4);
}

.shot picture {
  display: block;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-ink-muted);
  font-size: 0.875rem;
}

.shot--hero {
  border-color: rgb(255 255 255 / 0.12);
  box-shadow: 0 60px 100px -30px rgb(0 0 0 / 0.6), 0 0 90px -20px rgb(127 214 207 / 0.25);
}

.beispiel {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border: 1px dashed var(--color-line-strong);
  border-radius: 999px;
  background: var(--color-surface-muted);
  color: var(--color-ink-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__chips {
  display: none;
}

@media (min-width: 1000px) {
  .hero__chips {
    display: block;
  }

  .hero__chip {
    position: absolute;
    z-index: 3;
    box-shadow: 0 18px 40px -14px rgb(0 0 0 / 0.5);
    animation: schweben 7s ease-in-out infinite;
  }

  .hero__chip--a {
    top: 17%;
    left: -1.75rem;
  }

  .hero__chip--b {
    top: 44%;
    right: -1.75rem;
    animation-delay: -2.5s;
  }

  .hero__chip--c {
    top: -1.1rem;
    right: 14%;
    animation-delay: -4.5s;
  }
}

/* Abschnitte */
.abschnitt {
  position: relative;
  padding-block: var(--abschnitt);
}

.abschnitt--canvas {
  background: var(--color-canvas);
}

.abschnitt--weiss {
  background: var(--color-surface);
}

.abschnittskopf {
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.abschnittskopf .lead {
  margin-top: 1.25rem;
}

.karten {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.karten--vier {
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.karten--drei {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.karte {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgb(20 43 61 / 0.06);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.karte:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 28px 50px -28px rgb(20 43 61 / 0.3);
}

.karte__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.karte h3 {
  margin-top: 0.5rem;
  font-size: 1.3rem;
}

.karte p {
  margin: 0;
  color: var(--color-ink-muted);
}

.karte p.karte__mikro {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-line);
}

/* Produktabschnitte */
.funktion {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.funktion + .funktion {
  border-top: 1px solid var(--color-line);
}

@media (min-width: 960px) {
  .funktion {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  }

  .funktion--rueck {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  }

  .funktion--rueck .funktion__text {
    order: 2;
  }
}

.heute {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--color-free-bg);
  color: var(--color-free-fg);
  font-size: 0.8125rem;
  font-weight: 800;
}

.funktion h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.funktion__lead {
  margin: 0 0 1.4rem;
  font-size: 1.1875rem;
}

.punkte {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.punkte li {
  position: relative;
  padding-left: 2rem;
  color: var(--color-ink-muted);
}

.punkte li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--color-accent-soft);
}

.punkte li::after {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.5em;
  width: 0.28rem;
  height: 0.55rem;
  border: solid var(--color-accent-strong);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

.funktion__medien {
  position: relative;
}

.funktion__medien:has(.telefon) {
  padding-bottom: 2.5rem;
}

.telefon {
  position: absolute;
  right: 0.75rem;
  bottom: 0;
  width: clamp(6.5rem, 21%, 11rem);
  margin: 0;
  overflow: hidden;
  border: 0.4rem solid var(--color-nav);
  border-radius: 1.7rem;
  background: var(--color-nav);
  box-shadow: 0 36px 60px -24px rgb(11 26 38 / 0.7);
}

.telefon img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
}

@media (min-width: 960px) {
  .telefon {
    right: -1.5rem;
  }
}

/* Zukunft */
.zukunft {
  position: relative;
  z-index: 1;
  isolation: isolate;
  margin-top: calc(-1 * var(--rundung));
  padding-block: var(--abschnitt) calc(var(--abschnitt) + 1rem);
  border-radius: var(--rundung);
  background: linear-gradient(180deg, var(--color-nav) 0%, var(--tiefe) 100%);
}

.zukunft h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
}

.zukunft__kopf {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

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

.konzepthinweis {
  display: flex;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px dashed rgb(255 216 138 / 0.5);
  border-radius: 14px;
  background: rgb(255 216 138 / 0.06);
  color: #ffe9be;
  font-size: 0.9375rem;
}

.ki {
  overflow: hidden;
  border: 1px solid rgb(127 214 207 / 0.3);
  border-radius: 20px;
  background: rgb(8 20 30 / 0.72);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7), 0 0 110px -30px rgb(127 214 207 / 0.4);
}

.ki__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.04);
}

.ki__titel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-nav-focus);
  font-weight: 800;
}

.ki__kopf .tag {
  margin-left: 0;
}

.ki__verlauf {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
}

.blase {
  max-width: 94%;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.blase--frage {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--color-accent);
  color: #fff;
}

.blase--antwort {
  justify-self: start;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-bottom-left-radius: 4px;
  background: rgb(255 255 255 / 0.08);
  color: var(--color-nav-ink);
}

.blase--antwort p {
  margin: 0 0 0.5rem;
}

.blase--antwort p:last-child {
  margin-bottom: 0;
}

.blase--antwort ul {
  display: grid;
  gap: 0.4rem;
  margin: 0.25rem 0 0.75rem;
  padding: 0;
  list-style: none;
}

.ki__fuss {
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-top: 1px dashed rgb(255 255 255 / 0.2);
  color: var(--color-nav-muted);
  font-size: 0.8125rem;
}

.ki.ist-sichtbar .blase {
  animation: einblenden 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.ki.ist-sichtbar .blase:nth-child(1) {
  animation-delay: 0.3s;
}
.ki.ist-sichtbar .blase:nth-child(2) {
  animation-delay: 0.9s;
}
.ki.ist-sichtbar .blase:nth-child(3) {
  animation-delay: 1.6s;
}
.ki.ist-sichtbar .blase:nth-child(4) {
  animation-delay: 2.2s;
}

.zukunftskarten {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.zukunftskarte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.75rem;
  border: 1px dashed rgb(127 214 207 / 0.45);
  border-radius: 20px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.02));
}

.zukunftskarte .tag {
  margin-left: 0;
}

.zukunftskarte h3 {
  font-size: 1.4rem;
}

.zukunftskarte p {
  margin: 0;
  color: var(--color-nav-muted);
}

/* Gemeinsam weiterentwickeln */
.ideen {
  margin-top: calc(-1 * var(--rundung));
  padding-top: calc(var(--abschnitt) * 0.75 + var(--rundung));
  padding-bottom: calc(var(--abschnitt) * 0.75);
}

.ideen__karte {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--color-line);
  border-radius: 28px;
  background: var(--color-surface);
  box-shadow: 0 30px 60px -36px rgb(20 43 61 / 0.35);
}

@media (min-width: 900px) {
  .ideen__karte {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 2.5rem;
  }
}

.ideen__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.ideen h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.ideen__text p {
  max-width: 58ch;
  margin: 0;
  color: var(--color-ink-muted);
}

.ideen__aktion .klein {
  max-width: 18rem;
}

/* Preise */
.preise {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

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

.stufen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.stufe {
  padding: 1.25rem 1.4rem;
  border: 2px solid var(--color-line);
  border-radius: 18px;
  background: var(--color-canvas);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.stufe[aria-current="true"] {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  box-shadow: 0 0 0 4px rgb(8 119 115 / 0.12);
}

.stufe p {
  margin: 0;
}

.stufe__bereich {
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
  font-weight: 700;
}

.stufe__preis {
  margin-top: 0.35rem !important;
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
}

.stufe__preis strong {
  display: block;
  color: var(--color-ink);
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.stufe__hinweis {
  margin-top: 0.5rem !important;
  color: var(--color-ink-muted);
  font-size: 0.875rem;
}

.beispiele {
  width: 100%;
  margin: 0 0 0.5rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.beispiele caption {
  padding-bottom: 0.6rem;
  font-weight: 800;
  text-align: left;
}

.beispiele th,
.beispiele td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
}

.beispiele thead th {
  color: var(--color-ink-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.beispiele td.num {
  text-align: right;
}

.beispiele thead th:not(:first-child) {
  text-align: right;
}

.beispiele tbody th {
  font-weight: 600;
}

.rechner {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 24px;
  background: radial-gradient(30rem 20rem at 100% 0, rgb(8 119 115 / 0.5), transparent 60%), var(--color-nav);
  box-shadow: 0 40px 80px -40px rgb(11 26 38 / 0.7);
  color: var(--color-nav-ink);
}

.rechner h3 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.rechner :focus-visible {
  outline-color: var(--color-nav-focus);
}

.rechner__label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.rechner__zeile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rechner__zahl {
  width: 9rem;
  min-height: 58px;
  padding: 0 1rem;
  border: 2px solid rgb(255 255 255 / 0.28);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.07);
  color: #fff;
  font: inherit;
  font-size: 1.75rem;
  font-weight: 800;
}

.rechner__einheit {
  color: var(--color-nav-muted);
  font-size: 1.125rem;
}

.rechner__regler {
  position: relative;
  padding: 1.5rem 0 2.4rem;
}

.rechner__regler input {
  --fuellung: 5%;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.rechner__regler input::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--color-nav-focus) var(--fuellung), rgb(255 255 255 / 0.22) var(--fuellung));
}

.rechner__regler input::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border: 4px solid var(--color-nav-focus);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.45);
  -webkit-appearance: none;
}

.rechner__regler input::-moz-range-track {
  height: 8px;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.22);
}

.rechner__regler input::-moz-range-progress {
  height: 8px;
  border-radius: 99px;
  background: var(--color-nav-focus);
}

.rechner__regler input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 4px solid var(--color-nav-focus);
  border-radius: 50%;
  background: #fff;
}

.rechner__marke {
  position: absolute;
  bottom: 0;
  left: calc(var(--marke, 0.2) * (100% - 28px) + 14px);
  transform: translateX(-50%);
  color: var(--color-nav-muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.rechner__marke::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 2px;
  height: 0.6rem;
  background: rgb(255 255 255 / 0.5);
}

.rechner__vorgaben {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vorgabe {
  min-width: 3.5rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--color-nav-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.vorgabe:hover {
  background: rgb(255 255 255 / 0.12);
}

.vorgabe[aria-pressed="true"] {
  border-color: var(--color-nav-focus);
  background: var(--color-nav-focus);
  color: var(--color-nav);
}

.rechner__ergebnis {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.16);
}

.rechner__betrag {
  color: var(--color-nav-focus);
  font-size: clamp(2.75rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.rechner__zeitraum {
  color: var(--color-nav-muted);
  font-size: 1.125rem;
}

.rechner__detail {
  margin: 0.75rem 0 0;
  color: var(--color-nav-muted);
  font-size: 0.9375rem;
}

.rechner__hinweis {
  margin: 0.9rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(255 216 138 / 0.45);
  border-radius: 12px;
  background: rgb(255 216 138 / 0.1);
  color: #ffe9be;
  font-size: 0.9375rem;
}

.preise__aktion {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  text-align: center;
}

/* Herkunft */
.herkunft__innen {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

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

.herkunft h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.herkunft__text p:not(.eyebrow):not(.lead) {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  color: var(--color-ink-muted);
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: 0.75rem;
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.fakten {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fakten li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: var(--color-surface);
}

.fakten__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.fakten strong {
  display: block;
}

.fakten p {
  margin: 0.25rem 0 0;
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--color-line);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 1.25rem 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.faq summary:hover {
  color: var(--color-accent);
}

.faq summary .icon {
  color: var(--color-accent);
  transition: transform 0.25s;
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq details p {
  max-width: 64ch;
  margin: 0 0 1.4rem;
  padding-inline: 0.25rem;
  color: var(--color-ink-muted);
}

/* Abschluss */
.demo {
  position: relative;
  z-index: 1;
  isolation: isolate;
  margin-top: calc(-1 * var(--rundung));
  padding-block: calc(var(--abschnitt) * 1.1);
  border-radius: var(--rundung) var(--rundung) 0 0;
  background: linear-gradient(180deg, var(--color-nav), var(--tiefe));
  text-align: center;
}

.demo h2 {
  max-width: 17ch;
  margin: 0 auto 1.5rem;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  letter-spacing: -0.04em;
}

.demo .lead {
  margin: 0 auto 2rem;
}

.demo p {
  margin-inline: auto;
}

.demo__hinweis {
  max-width: 44rem;
  margin-top: 1.75rem;
  color: var(--color-nav-muted);
  font-size: 0.9375rem;
}

.demo__hinweis a {
  color: var(--color-nav-focus);
}

.fuss {
  padding-top: 4rem;
  background: var(--tiefe);
  color: var(--color-nav-muted);
  font-size: 0.9375rem;
}

.fuss__innen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 2.5rem;
}

.fuss__marke p {
  margin: 1rem 0 0;
}

.fuss h2 {
  margin: 0 0 1rem;
  color: var(--color-nav-ink);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.fuss ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss a {
  color: var(--color-nav-muted);
  text-underline-offset: 0.2em;
}

.fuss a:hover {
  color: #fff;
}

.fuss .marke {
  color: var(--color-nav-ink);
}

.fuss .marke:hover {
  color: var(--color-nav-ink);
}

.fuss address {
  font-style: normal;
  line-height: 1.85;
}

.fuss__zeile {
  margin: 3rem auto 0;
  padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.8125rem;
}

/* Feedback-Dialog */
.dlg {
  width: min(36rem, 100% - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: 0 40px 100px -20px rgb(0 0 0 / 0.55);
  color: var(--color-ink);
}

.dlg::backdrop {
  background: rgb(11 26 38 / 0.65);
  backdrop-filter: blur(4px);
}

.dlg__innen {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.dlg__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dlg__kopf h2 {
  font-size: 1.6rem;
}

.dlg__zu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.dlg__zu:hover {
  background: var(--color-surface-muted);
}

.dlg__lead {
  margin: 0.75rem 0 1.5rem;
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
}

.feld {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.feld label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.feld label span {
  color: var(--color-ink-muted);
  font-weight: 400;
}

.feld input,
.feld textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
  font: inherit;
}

.feld textarea {
  resize: vertical;
}

.dlg__datenschutz {
  margin: 0 0 0.5rem;
  color: var(--color-ink-muted);
  font-size: 0.875rem;
}

.dlg__status {
  min-height: 1.5em;
  margin: 0.5rem 0;
  color: var(--color-free-fg);
  font-size: 0.9375rem;
  font-weight: 600;
}

.dlg__aktionen {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Bewegung */
@keyframes hoch {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes einblenden {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes schweben {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.reveal.wartet {
  opacity: 0;
}

.reveal.ist-sichtbar {
  animation: einblenden 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.reveal[data-delay="1"] {
  animation-delay: 0.08s;
}
.reveal[data-delay="2"] {
  animation-delay: 0.16s;
}
.reveal[data-delay="3"] {
  animation-delay: 0.24s;
}
.reveal[data-delay="4"] {
  animation-delay: 0.32s;
}

@supports (animation-timeline: view()) {
  @keyframes naeher {
    from {
      transform: scale(1.06);
    }
    to {
      transform: scale(1);
    }
  }

  .funktion .shot img {
    animation: naeher linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }
}

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

  .reveal.wartet {
    opacity: 1;
  }
}

@media (max-width: 599px) {
  /* Auf dem Smartphone zeigen die Produktbilder bereits die mobile Ansicht, der Telefonrahmen entfällt. */
  .telefon {
    display: none;
  }

  .funktion__medien:has(.telefon) {
    padding-bottom: 0;
  }

  .aktionen .btn {
    flex: 1 1 100%;
  }

  .hero__titel {
    max-width: none;
  }
}
