/* Inter selbst gehostet (kein Google-CDN), variable Schrift für alle Stärken */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Adence-Blautöne (aus dem Logo) */
  --blue: #324d9b;
  --blue-dark: #22366e;
  --teal: #34a5bf;
  --ink: #0f1b33;
  --muted: #64708c;
  --bg: #eef2f9;
  --surface: #ffffff;
  --border: #dfe6f2;
  --radius: 18px;

  /* Akzent je Kategorie, wird per JS gesetzt. Fallback: Hausfarben */
  --accent: #324d9b;
  --accent-2: #34a5bf;
  --accent-rgb: 50, 77, 155;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--blue) #dde5f2;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #dde5f2; }

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue), var(--teal));
  border-radius: 999px;
  border: 3px solid #dde5f2;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--blue-dark), var(--blue));
}

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(52, 165, 191, 0.16), transparent 60%),
    radial-gradient(800px 500px at 8% -6%, rgba(50, 77, 155, 0.16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Schwebende Leiste ---------- */
.bar {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0 20px;
  /* eigener GPU-Layer, damit die Glas-Leiste beim Scrollen nicht flackert */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.3, 1);
}

/* Beim Runterscrollen fährt die Leiste weg, beim Hochscrollen kommt sie zurück.
   translateZ(0) bleibt drin, sonst verliert sie ihren eigenen Layer und flackert. */
.bar.is-hidden { transform: translateY(-135%) translateZ(0); }

@media (prefers-reduced-motion: reduce) {
  .bar { transition: none; }
}

.bar__pill {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 10px 9px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px -14px rgba(15, 27, 51, 0.28);
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

/* Beim Scrollen deckend statt Glas: backdrop-filter kostet sonst jeden Frame Rechenzeit */
.bar.is-stuck .bar__pill {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 14px 40px -16px rgba(15, 27, 51, 0.36);
}

.bar__logo { flex: none; display: flex; align-items: center; }
.bar__logo img { height: 30px; display: block; }

/* Kategorien: immer EINE Zeile, horizontal scrollbar, mit weichen Rändern */
.bar__cats {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 18px;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}

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

.cats__btn {
  flex: none;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cats__btn:hover { color: var(--blue); border-color: var(--blue); }

.cats__btn.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(var(--accent-rgb, 50, 77, 155), 0.8);
}

/* Suche */
.bar__search {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 164px;
  padding: 0 14px;
  height: 38px;
  border-radius: 999px;
  background: rgba(238, 242, 249, 0.9);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bar__search:focus-within { border-color: var(--blue); background: #fff; }
.bar__search svg { width: 16px; height: 16px; flex: none; }

.bar__search input {
  width: 100%;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

.bar__search input::placeholder { color: var(--muted); }
.bar__search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- Hero (Übersicht): volle Bildschirmhöhe ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  max-width: none;
  margin: 0;
  padding: 132px 32px 100px;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
  align-content: center;
  justify-content: center;
}

/* der Inhalt bleibt auf der gleichen Kante wie überall sonst */
.hero > .hero__text { max-width: 628px; justify-self: end; width: 100%; }
.hero > .collage { max-width: 628px; justify-self: start; width: 100%; }

/* ---------- animierter Hintergrund ---------- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  /* eigener Layer, damit die Glas-Leiste darüber nicht bei jedem Frame neu rechnet */
  will-change: transform;
  transform: translateZ(0);
}

.hero__blob--1 {
  left: -12%;
  top: -18%;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(closest-side, rgba(50, 77, 155, 0.34), transparent 72%);
  animation: driftA 34s ease-in-out infinite alternate;
}

.hero__blob--2 {
  right: -14%;
  top: -10%;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(closest-side, rgba(52, 165, 191, 0.36), transparent 72%);
  animation: driftB 28s ease-in-out infinite alternate;
}

.hero__blob--3 {
  left: 26%;
  bottom: -30%;
  width: 66vw;
  height: 66vw;
  background: radial-gradient(closest-side, rgba(111, 91, 196, 0.22), transparent 70%);
  animation: driftC 40s ease-in-out infinite alternate;
}

/* feines Raster darüber, läuft nach außen weich aus */
.hero__raster {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(50, 77, 155, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 77, 155, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 45%, #000 30%, transparent 82%);
  mask-image: radial-gradient(closest-side at 50% 45%, #000 30%, transparent 82%);
}

@keyframes driftA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(7%, 9%, 0) scale(1.14); }
}

@keyframes driftB {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-9%, 12%, 0) scale(0.94); }
}

@keyframes driftC {
  from { transform: translate3d(0, 0, 0) scale(0.96); }
  to   { transform: translate3d(-11%, -8%, 0) scale(1.16); }
}

/* außerhalb des Bildes wird angehalten, sonst rechnet der Browser umsonst weiter */
.hero.is-paused .hero__blob { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .hero__blob { animation: none; }
}

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

/* Hinweis am unteren Rand */
.hero__hint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__hint:hover { color: var(--blue); border-color: var(--blue); }
.hero__hint svg { width: 14px; height: 14px; animation: tippen 2.4s ease-in-out infinite; }

@keyframes tippen {
  0%, 62%, 100% { transform: translateY(0); }
  76%           { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__hint svg { animation: none; }
}

/* Kopf über dem Raster */
.gridkopf {
  max-width: 1320px;
  margin: 0 auto;
  padding: 74px 32px 24px;
  scroll-margin-top: 90px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.hero__title {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 14px;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(115deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 680px;
  margin: 0;
}

.hero__count { font-size: 13px; color: var(--muted); margin: 0; }

.hero__note {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0 0;
  max-width: 620px;
  opacity: 0.85;
}

/* Branchenleiste unter dem Einstieg: macht sofort klar, dass es nicht für eine
   einzelne Branche gebaut ist */
/* Beschriftung in der ersten Zeile, die Branchen darunter in einer Reihe */
.branchen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
}

.branchen__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.branchen__liste {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  max-width: 100%;
}

.branchen__chip {
  flex: none;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  padding: 6px 11px;
  border-radius: 999px;
}

/* nur solange sie wirklich in eine Zeile passt, sonst umbrechen */
@media (max-width: 1250px) {
  .branchen__liste { flex-wrap: wrap; }
}

/* ---------- Anwendungsfenster (überall wiederverwendet) ---------- */
.win {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(15, 27, 51, 0.14);
  box-shadow: 0 18px 34px -20px rgba(15, 27, 51, 0.5);
}

.win__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  background: linear-gradient(180deg, #f4f7fc, #e9eff8);
  border-bottom: 1px solid var(--border);
}

.win__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e6;
  flex: none;
}

.win__dot:nth-child(1) { background: #e6a0a0; }
.win__dot:nth-child(2) { background: #e6cf9f; }
.win__dot:nth-child(3) { background: #a8ceac; }

.win__name {
  margin: 0 auto;
  padding-right: 34px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.win__screen { display: block; background: var(--bg); }

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

/* ---------- Grid (Übersicht) ---------- */
.grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-rgb, 50, 77, 155), 0.45);
  box-shadow: 0 24px 45px -22px rgba(var(--accent-rgb, 50, 77, 155), 0.42);
}

.card__visual {
  position: relative;
  padding: 24px 24px 0;
  background: linear-gradient(150deg, #eef3fa 0%, #e2ecf6 55%, #dbebf1 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Lichtschein in der Kategoriefarbe, gibt der Bühne Tiefe */
.card__visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30%;
  width: 130%;
  height: 130%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(var(--accent-rgb, 50, 77, 155), 0.22), transparent 70%);
  pointer-events: none;
}

.card__visual .win { position: relative; }

/* Fenster ragt unten aus der Bühne heraus: wirkt wie ein Ausschnitt, nicht wie ein Screenshot */
.card__visual .win {
  margin-bottom: -14px;
  transition: transform 0.3s ease;
}

.card:hover .card__visual .win { transform: translateY(-6px); }

.card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__cat {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb, 50, 77, 155), 0.09);
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.card__title {
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 3px;
  letter-spacing: -0.01em;
}

.card__claim {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}

.card__claim svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.card:hover .card__claim svg { opacity: 1; transform: translateX(0); }

.card__text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.empty {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding: 0 32px 100px;
  margin: 0;
}

/* ---------- Produktseite: Kopf ---------- */
.phero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 140px 32px 20px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
  overflow-x: clip;
}

.phero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.phero__title {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 10px;
}

.phero__claim {
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 18px;
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.phero__lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 28px;
}

.phero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hinweis unter der großen Ansicht: es ist ein Beispiel, kein Auslieferungsstand */
.phero__note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn svg { width: 16px; height: 16px; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 12px 26px -12px rgba(50, 77, 155, 0.9);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(50, 77, 155, 1); }

.btn--ghost {
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn--ghost:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- Kennzahlen ---------- */
.kpis {
  max-width: 1320px;
  margin: 0 auto;
  padding: 46px 32px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.kpi__v {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.kpi__l { font-size: 14px; color: var(--muted); }

/* ---------- Abschnitte ---------- */
.sec {
  max-width: 1320px;
  margin: 0 auto;
  padding: 66px 32px 0;
}

/* Getönter Streifen über die volle Breite. Der Inhalt darin steckt in einem
   normalen .sec, damit er exakt auf derselben Kante sitzt wie überall sonst. */
.sec--tint {
  margin-top: 66px;
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow-x: clip;
}

.sec--tint > .sec { padding-top: 58px; padding-bottom: 66px; }

.sec__title {
  font-size: clamp(22px, 2.6vw, 29px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.sec__lead {
  font-size: 15.5px;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 640px;
}

.sec__title + .feats,
.sec__title + .shots,
.sec__title + .steps,
.sec__title + .stack,
.sec__title + .rel { margin-top: 26px; }

/* Funktionen */
.feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 24px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feat:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb, 50, 77, 155), 0.45);
  box-shadow: 0 20px 38px -24px rgba(15, 27, 51, 0.45);
}

.feat__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(var(--accent-rgb, 50, 77, 155), 0.13), rgba(var(--accent-rgb, 50, 77, 155), 0.07));
  color: var(--accent);
  margin-bottom: 16px;
}

.feat__icon svg { width: 21px; height: 21px; }

.feat__title { font-size: 16.5px; font-weight: 650; margin: 0 0 7px; letter-spacing: -0.01em; }
.feat__text { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* Praxisbeispiele */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Branchen-Label: zeigt auf einen Blick, dass es nicht nur eine Branche betrifft */
.case__branch {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb, 50, 77, 155), 0.12);
  padding: 4px 9px;
  border-radius: 999px;
}

.case__text { font-size: 14.5px; line-height: 1.6; color: #3c4763; margin: 0; }

/* weitere Ansichten */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 24px;
  position: relative;
}

.step__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.step__title { font-size: 16px; font-weight: 650; margin: 0 0 6px; }
.step__text { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* Systeme */
.stack { display: flex; flex-wrap: wrap; gap: 10px; }

.stack__chip {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
}

/* Verwandte Produkte */
.rel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.rel__card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rel__card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb, 50, 77, 155), 0.45);
  box-shadow: 0 22px 40px -24px rgba(15, 27, 51, 0.42);
}

.rel__visual {
  padding: 16px 16px 0;
  background: linear-gradient(150deg, #eaf0f9, #d7e8ef);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.rel__visual img {
  display: block;
  width: 100%;
  border-radius: 8px 8px 0 0;
  border: 1px solid rgba(15, 27, 51, 0.14);
  border-bottom: 0;
  margin-bottom: -10px;
  box-shadow: 0 14px 26px -18px rgba(15, 27, 51, 0.5);
}
.rel__body { padding: 16px 18px 20px; }
.rel__title { font-size: 16.5px; font-weight: 650; margin: 0 0 6px; }
.rel__text { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }

/* ---------- Aufruf-Band ---------- */
.band {
  max-width: 1320px;
  margin: 76px auto 0;
  padding: 0 32px;
  overflow-x: clip;
}

.band__inner {
  position: relative;
  border-radius: 24px;
  padding: 52px 48px 56px;
  background: linear-gradient(125deg, var(--blue-dark), var(--blue) 45%, var(--teal));
  color: #fff;
  overflow: hidden;
}

.band__inner::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.band__title {
  position: relative;
  font-size: clamp(22px, 2.8vw, 31px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: 700px;
}

.band__text {
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 26px;
  max-width: 620px;
  opacity: 0.9;
}

.band__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 650;
  color: var(--blue-dark);
  background: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5);
}

.band__btn { color: var(--blue-dark); }
.band__btn:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(0, 0, 0, 0.55); }
.band__btn svg { width: 16px; height: 16px; }

/* ---------- Rechtliche Seiten ---------- */
.bar__back {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.bar__back:hover { color: var(--blue); border-color: var(--blue); }
.bar__back svg { width: 15px; height: 15px; }

.legal { max-width: 780px; margin: 0 auto; padding: 150px 32px 80px; }

.legal__title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.legal__intro { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0 0 48px; }

.legal__body h2 {
  font-size: 17px;
  font-weight: 650;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.legal__body p,
.legal__body li { font-size: 15px; line-height: 1.7; color: #3c4763; }
.legal__body p { margin: 0 0 14px; }
.legal__body ul { margin: 0 0 14px; padding-left: 20px; }
.legal__body li { margin-bottom: 6px; }

.legal__body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal__body a:hover { color: var(--teal); }

.legal__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #3c4763;
  margin-bottom: 14px;
}

.legal__body small { color: var(--muted); }

/* ---------- Nach-oben-Button ---------- */
.totop {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 55;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(140deg, var(--blue), var(--teal));
  box-shadow: 0 12px 26px -10px rgba(50, 77, 155, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, box-shadow 0.25s ease;
}

.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { box-shadow: 0 16px 32px -10px rgba(50, 77, 155, 0.95); transform: translateY(-2px); }
.totop svg { width: 19px; height: 19px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  padding: 30px 32px;
  margin-top: 90px;
}

.footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  padding-right: 72px;
}

.footer__logo { height: 22px; opacity: 0.65; }
.footer p { margin: 0; }

.footer__links { margin-left: auto; display: flex; gap: 22px; }
.footer__links a { color: var(--muted); transition: color 0.15s ease; }
.footer__links a:hover,
.footer__links a[aria-current="page"] { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .feats, .cases, .rel { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1050px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .phero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 150px;
  }
}

@media (max-width: 980px) {
  .bar__pill {
    flex-wrap: wrap;
    border-radius: 24px;
    padding: 12px 14px;
    row-gap: 10px;
  }
  .bar__search { flex: 1 1 auto; width: auto; }
  .bar__back { margin-left: auto; }
  .bar__cats { order: 3; flex: 1 1 100%; }
  .cats { padding: 2px 16px; }
  .phero { padding-top: 176px; }
}

@media (max-width: 820px) {
  .kpis { grid-template-columns: 1fr; gap: 14px; }
  .shots { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .footer__inner { flex-wrap: wrap; row-gap: 14px; padding-right: 0; }
  .footer__links { margin-left: 0; flex: 1 1 100%; }
}

@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; padding: 0 18px 10px; gap: 18px; }
  .hero { padding: 150px 18px 96px; }
  .gridkopf { padding: 44px 18px 18px; }
  .phero { padding: 168px 18px 10px; }
  .sec { padding: 48px 18px 0; }
  .sec--tint { margin-top: 48px; }
  .sec--tint > .sec { padding-top: 44px; padding-bottom: 48px; }
  .kpis { padding: 34px 18px 0; }
  .feats, .cases, .steps, .rel { grid-template-columns: 1fr; }
  .band { padding: 0 18px; margin-top: 56px; }
  .band__inner { padding: 36px 26px 40px; border-radius: 20px; }
  .legal { padding: 168px 18px 60px; }
  .bar { padding: 0 12px; top: 12px; }
  .bar__back { padding: 8px 12px; font-size: 13px; }
  .footer { padding: 26px 18px; margin-top: 60px; }
  .card__visual { padding: 18px 18px 0; }
}

/* ==========================================================================
   Optische Ergänzungen: Hero-Collage, gekippte Ansicht, Bewegung
   ========================================================================== */

/* ---------- Hero der Übersicht: Text links, Fenster-Collage rechts ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
  overflow-x: clip;
}

.hero__text { min-width: 0; }

.collage {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  perspective: 1800px;
}

.collage__win {
  --tilt: rotateY(-9deg) rotateX(3deg);
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(15, 27, 51, 0.14);
  transform-style: preserve-3d;
  transform: var(--tilt);
}

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

/* vorne: das große Fenster, leicht zum Betrachter gedreht */
.collage__win--front {
  left: 0;
  top: 16%;
  width: 76%;
  z-index: 3;
  box-shadow: 0 40px 70px -34px rgba(15, 27, 51, 0.6);
}

.collage__win--back {
  right: 5%;
  top: 2%;
  width: 50%;
  z-index: 2;
  box-shadow: 0 28px 54px -30px rgba(15, 27, 51, 0.55);
}

.collage__win--low {
  right: 10%;
  bottom: 2%;
  width: 45%;
  z-index: 4;
  box-shadow: 0 30px 56px -28px rgba(15, 27, 51, 0.6);
}

/* Lichtschein hinter der Collage */
.collage::before {
  content: "";
  position: absolute;
  inset: -8% -4%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(52, 165, 191, 0.3), transparent 72%),
    radial-gradient(closest-side at 30% 70%, rgba(50, 77, 155, 0.26), transparent 70%);
  filter: blur(6px);
  z-index: 1;
}

/* ---------- Detailseite: Kopfansicht leicht gekippt ---------- */
.phero__visual { perspective: 1800px; }

.phero__visual .win {
  transform: rotateY(-7deg) rotateX(3deg);
  box-shadow: 0 44px 76px -38px rgba(15, 27, 51, 0.62);
  transition: transform 0.5s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.phero__visual:hover .win { transform: rotateY(-3deg) rotateX(1.5deg); }

/* ---------- Funktionen: zweispaltig neben einer großen Ansicht ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 44px;
  align-items: start;
}

.split__list { display: flex; flex-direction: column; gap: 4px; }

.featrow {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.featrow:hover {
  background: var(--surface);
  border-color: var(--border);
}

.featrow__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb, 50, 77, 155), 0.11);
  color: var(--accent);
}

.featrow__icon svg { width: 20px; height: 20px; }
.featrow__title { font-size: 16.5px; font-weight: 650; margin: 1px 0 5px; letter-spacing: -0.01em; }
.featrow__text { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* die Ansicht daneben bleibt beim Scrollen stehen */
.split__visual { position: sticky; top: 116px; }
.split__visual .win__screen img { min-height: 1px; }

.split__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Eine große Ansicht ---------- */
.shot-big { max-width: 1120px; margin: 0 auto; }

/* ---------- Bewegung: sanft, kurz, einmalig ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.9, 0.3, 1),
              transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phero__visual .win { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive Ergänzungen ---------- */
@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-content: stretch;
    padding-top: 150px;
  }
  .hero > .hero__text, .hero > .collage { justify-self: stretch; max-width: 720px; }
  .collage { max-width: 620px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split__visual { position: static; }
}

@media (max-width: 620px) {
  .collage { display: none; }
  .phero__visual .win { transform: none; box-shadow: 0 24px 44px -26px rgba(15, 27, 51, 0.5); }
  .featrow { padding: 14px 0; }
  .featrow:hover { background: none; border-color: transparent; }
}

/* ==========================================================================
   Kontaktseite
   ========================================================================== */
.khero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 150px 32px 34px;
}

.khero__von {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.khero__von strong { color: var(--blue); }

.kontakt {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px 20px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 26px;
  align-items: start;
}

.kside { display: flex; flex-direction: column; gap: 26px; }

.kcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 32px 34px;
}

.kcard__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.kcard__lead { font-size: 15px; color: var(--muted); margin: 0 0 24px; }

/* ---------- Formular ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

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

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.field__label em { font-style: normal; color: var(--teal); }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #f7f9fd;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { resize: vertical; min-height: 108px; line-height: 1.55; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(50, 77, 155, 0.12);
}

.field input::placeholder,
.field textarea::placeholder { color: #9aa5bd; }

.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 2px;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
}

.check a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.check em { font-style: normal; color: var(--teal); }

.form__send { align-self: flex-start; margin-top: 6px; border: 0; cursor: pointer; }
.form__send.is-sent { background: linear-gradient(135deg, #1f8f6d, #3fb894); }

.form__hint {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.form__hint strong { color: var(--ink); }

.form__error {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #d1495b;
  background: rgba(209, 73, 91, 0.08);
  border: 1px solid rgba(209, 73, 91, 0.3);
  border-radius: 11px;
  padding: 11px 14px;
}

.form__error[hidden] { display: none; }

/* ---------- Direkter Draht ---------- */
.kontaktliste { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }

.kontaktliste li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.6;
  color: #3c4763;
}

.kontaktliste__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(50, 77, 155, 0.09);
  color: var(--blue);
}

.kontaktliste__icon svg { width: 18px; height: 18px; }

.kontaktliste__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.kontaktliste a { color: var(--blue); font-weight: 600; }
.kontaktliste a:hover { color: var(--teal); }

/* ---------- Ablauf ---------- */
.ablauf { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }

.ablauf li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.ablauf strong { color: var(--ink); font-weight: 650; }

.ablauf__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

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

@media (max-width: 620px) {
  .khero { padding: 168px 18px 26px; }
  .kontakt { padding: 0 18px 10px; gap: 18px; }
  .kside { gap: 18px; }
  .kcard { padding: 24px 20px 28px; }
  .form__row { grid-template-columns: 1fr; }
}

/* Honeypot: muss für Menschen unsichtbar sein, für Bots aber im Formular stehen */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__meldung {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  border-radius: 11px;
  padding: 12px 15px;
  line-height: 1.5;
}

.form__meldung[hidden] { display: none; }

.form__meldung.ist-fehler {
  color: #d1495b;
  background: rgba(209, 73, 91, 0.08);
  border: 1px solid rgba(209, 73, 91, 0.3);
}

.form__meldung.ist-ok {
  color: #1f8f6d;
  background: rgba(31, 143, 109, 0.09);
  border: 1px solid rgba(31, 143, 109, 0.32);
}

/* ==========================================================================
   Hero auf dem Handy: kompakter Text, Collage als flacher Stapel, alles
   passt ohne Scrollen auf einen Bildschirm
   ========================================================================== */
@media (max-width: 780px) {
  .hero {
    min-height: 100svh;
    padding: 118px 20px 84px;
    gap: 30px;
    align-content: center;
  }

  .hero__eyebrow { font-size: 11px; margin-bottom: 10px; }
  .hero__title { font-size: clamp(28px, 8.4vw, 38px); line-height: 1.1; }
  .hero__lead { font-size: 15.5px; line-height: 1.55; }
  .branchen { margin-top: 20px; gap: 8px; }
  .branchen__liste { gap: 6px; }
  .branchen__chip { font-size: 12px; padding: 5px 10px; }
  .hero__actions { margin-top: 24px; gap: 10px; width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; padding: 13px 18px; }

  /* Collage bleibt sichtbar, aber flach und ohne Drehung */
  .collage {
    display: block;
    aspect-ratio: 16 / 10;
    max-width: 460px;
    margin: 0 auto;
    perspective: none;
  }

  .collage__win { --tilt: rotateY(0deg); }
  .collage__win--front { left: 0; top: 10%; width: 84%; }
  .collage__win--back { right: 0; top: 0; width: 46%; }
  .collage__win--low { right: 2%; bottom: 0; width: 44%; }
  .collage::before { inset: 0 -6%; filter: blur(4px); }

  .hero__blob--1 { width: 105vw; height: 105vw; left: -30%; top: -14%; }
  .hero__blob--2 { width: 100vw; height: 100vw; right: -30%; top: 4%; }
  .hero__blob--3 { width: 110vw; height: 110vw; left: 8%; bottom: -24%; }
  .hero__raster { background-size: 34px 34px; }

  .hero__hint { bottom: 20px; font-size: 12px; padding: 8px 15px; }
}


/* ==========================================================================
   Auftritt des Heros beim Laden: alles fliegt gestaffelt herein
   ========================================================================== */
@keyframes reinVonUnten {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes reinVonRechts {
  from { opacity: 0; transform: translate3d(80px, 44px, 0) scale(0.9) var(--tilt); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1) var(--tilt); }
}

@keyframes reinVonLinks {
  from { opacity: 0; transform: translate3d(-56px, 30px, 0) scale(0.93) var(--tilt); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1) var(--tilt); }
}

@keyframes hintergrundAuf {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes hinweisAuf {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Erst wenn die Seite bereit ist, damit nichts ruckelt oder halb sichtbar startet */
.hero--auftritt .hero__text > * {
  opacity: 0;
  animation: reinVonUnten 0.72s cubic-bezier(0.18, 0.85, 0.28, 1) forwards;
}

.hero--auftritt .hero__eyebrow { animation-delay: 0.06s; }
.hero--auftritt .hero__title   { animation-delay: 0.14s; }
.hero--auftritt .hero__lead    { animation-delay: 0.24s; }
.hero--auftritt .branchen      { animation-delay: 0.34s; }
.hero--auftritt .hero__actions { animation-delay: 0.44s; }

/* die Branchen-Pillen kommen einzeln nach */
.hero--auftritt .branchen__chip {
  opacity: 0;
  animation: reinVonUnten 0.5s cubic-bezier(0.18, 0.85, 0.28, 1) forwards;
}

.hero--auftritt .branchen__chip:nth-child(1) { animation-delay: 0.46s; }
.hero--auftritt .branchen__chip:nth-child(2) { animation-delay: 0.52s; }
.hero--auftritt .branchen__chip:nth-child(3) { animation-delay: 0.58s; }
.hero--auftritt .branchen__chip:nth-child(4) { animation-delay: 0.64s; }
.hero--auftritt .branchen__chip:nth-child(5) { animation-delay: 0.70s; }
.hero--auftritt .branchen__chip:nth-child(6) { animation-delay: 0.76s; }

/* die Fenster fliegen von rechts herein, hinten zuerst */
.hero--auftritt .collage__win {
  opacity: 0;
  animation: reinVonRechts 0.9s cubic-bezier(0.16, 0.86, 0.26, 1) forwards;
}

.hero--auftritt .collage__win--back  { animation-delay: 0.30s; }
.hero--auftritt .collage__win--front { animation-delay: 0.42s; animation-name: reinVonLinks; }
.hero--auftritt .collage__win--low   { animation-delay: 0.56s; }

/* Hintergrund und Hinweis */
.hero--auftritt .hero__bg {
  opacity: 0;
  animation: hintergrundAuf 1.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.hero--auftritt .hero__hint {
  opacity: 0;
  animation: hinweisAuf 0.7s cubic-bezier(0.18, 0.85, 0.28, 1) 1.05s forwards;
}

/* Wer Bewegung reduziert hat, sieht alles sofort */
@media (prefers-reduced-motion: reduce) {
  .hero--auftritt .hero__text > *,
  .hero--auftritt .branchen__chip,
  .hero--auftritt .collage__win,
  .hero--auftritt .hero__bg,
  .hero--auftritt .hero__hint { animation: none; opacity: 1; }
}

/* ---------- Hero auf kleinen Bildschirmhöhen weiter verdichten ---------- */
@media (max-width: 780px) and (max-height: 900px) {
  /* die Leiste ist auf dem Handy zweizeilig, darum mehr Platz oben */
  .hero { padding: 148px 20px 62px; gap: 20px; }
  .hero__lead { font-size: 14.5px; line-height: 1.5; }
  .hero__title { font-size: clamp(25px, 7.6vw, 33px); margin-bottom: 12px; }
  .hero__eyebrow { margin-bottom: 8px; }
  .branchen { margin-top: 14px; gap: 7px; }
  .hero__actions { margin-top: 16px; }
  .hero__actions .btn { padding: 12px 14px; font-size: 14.5px; }
  .collage { max-width: 320px; aspect-ratio: 16 / 11; }
}

/* kurze Bildschirme: Collage kleiner bzw. weglassen, damit der Hero
   ohne Scrollen auf einen Bildschirm passt */
@media (max-width: 780px) and (max-height: 890px) {
  .collage { max-width: 238px; }
  .hero { padding-bottom: 56px; gap: 16px; }
}

@media (max-width: 780px) and (max-height: 875px) {
  .collage { display: none; }
  .hero { padding-bottom: 70px; }
}

/* ==========================================================================
   Mehr Leben im Hero: schwebende Fenster und funkelnde Punkte
   ========================================================================== */

/* die Fenster atmen langsam, jedes in eigenem Takt */
@keyframes schwebenA {
  0%, 100% { transform: translate3d(0, 0, 0) var(--tilt); }
  50%      { transform: translate3d(0, -13px, 0) var(--tilt); }
}

@keyframes schwebenB {
  0%, 100% { transform: translate3d(0, 0, 0) var(--tilt); }
  50%      { transform: translate3d(-6px, 10px, 0) var(--tilt); }
}

@keyframes schwebenC {
  0%, 100% { transform: translate3d(0, 0, 0) var(--tilt); }
  50%      { transform: translate3d(5px, -9px, 0) var(--tilt); }
}

/* nach dem Einflug übernimmt das Schweben */
.hero--auftritt .collage__win--front {
  animation: reinVonLinks 0.9s cubic-bezier(0.16, 0.86, 0.26, 1) 0.42s forwards,
             schwebenA 9s ease-in-out 1.6s infinite;
}

.hero--auftritt .collage__win--back {
  animation: reinVonRechts 0.9s cubic-bezier(0.16, 0.86, 0.26, 1) 0.30s forwards,
             schwebenB 11s ease-in-out 1.7s infinite;
}

.hero--auftritt .collage__win--low {
  animation: reinVonRechts 0.9s cubic-bezier(0.16, 0.86, 0.26, 1) 0.56s forwards,
             schwebenC 8s ease-in-out 1.9s infinite;
}

.hero.is-paused .collage__win { animation-play-state: paused; }

/* ---------- funkelnde Punkte ---------- */
.hero__sterne {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* eigener Layer, damit das Funkeln die Glas-Leiste nicht bei jedem Frame neu rechnen lässt */
  transform: translateZ(0);
}

.stern {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  will-change: opacity, transform;
  animation: funkeln var(--dauer, 4s) ease-in-out var(--start, 0s) infinite;
}

@keyframes funkeln {
  0%, 100%  { opacity: 0; transform: scale(0.4); }
  8%        { opacity: var(--staerke, 0.9); transform: scale(1); }
  16%       { opacity: 0.15; transform: scale(0.75); }
  24%       { opacity: var(--staerke, 0.9); transform: scale(1.08); }
  40%, 100% { opacity: 0; transform: scale(0.5); }
}

.hero.is-paused .stern { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .stern { animation: none; opacity: 0.35; }
  .hero--auftritt .collage__win--front,
  .hero--auftritt .collage__win--back,
  .hero--auftritt .collage__win--low { animation: none; opacity: 1; }
}

/* ==========================================================================
   Einwilligungsbanner
   ========================================================================== */
.cc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0 20px 20px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.2, 0.85, 0.3, 1);
}

.cc.ist-da { opacity: 1; transform: none; }

.cc__karte {
  pointer-events: auto;
  width: 100%;
  max-width: 660px;
  max-height: min(78vh, 640px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 28px 60px -24px rgba(15, 27, 51, 0.42);
  padding: 26px 28px 24px;
}

.cc__titel { font-size: 19px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }

.cc__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
}

.cc__text a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.cc__details {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cc__details[hidden] { display: none; }

.cc__katkopf { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cc__kattitel { font-size: 15px; font-weight: 650; }
.cc__kattext { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 5px 0 0; }

.cc__pflicht {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Schalter */
.cc__schalter { position: relative; flex: none; cursor: pointer; }
.cc__schalter input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.cc__vorlesen { position: absolute; left: -9999px; }

.cc__gleis {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d7dfec;
  transition: background 0.2s ease;
}

.cc__gleis::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 27, 51, 0.3);
  transition: transform 0.2s cubic-bezier(0.2, 0.85, 0.3, 1);
}

.cc__schalter input:checked ~ .cc__gleis { background: linear-gradient(135deg, var(--blue), var(--teal)); }
.cc__schalter input:checked ~ .cc__gleis::after { transform: translateX(18px); }
.cc__schalter input:disabled ~ .cc__gleis { opacity: 0.55; }
.cc__schalter input:focus-visible ~ .cc__gleis { outline: 2px solid var(--blue); outline-offset: 3px; }

.cc__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }

.cc__btn {
  flex: 1 1 auto;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.cc__btn:hover { border-color: var(--blue); color: var(--blue); }

.cc__btn--voll {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 12px 24px -12px rgba(50, 77, 155, 0.9);
}

.cc__btn--voll:hover { color: #fff; transform: translateY(-1px); }
.cc__btn--leise { flex: 0 0 auto; color: var(--muted); border-color: transparent; }
.cc__btn--leise:hover { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .cc, .cc__gleis::after { transition: none; }
}

@media (max-width: 560px) {
  .cc { padding: 0 12px 12px; }
  .cc__karte { padding: 22px 20px 20px; border-radius: 16px; }
  .cc__btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Leucht-Rand: liegt beim Überfahren fein um die ganze Karte und pulsiert.
   Bewusst ohne rgba(var(...)): Variablen mit Kommas darin zerlegen manche
   Server-Optimierer, der Rand wurde dadurch schwarz.
   ========================================================================== */
.card,
.rel__card { position: relative; }

.card::after,
.rel__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;                      /* hauchfeine Linie */
  background: linear-gradient(135deg,
    var(--accent-2) 0%,
    var(--accent) 34%,
    var(--accent-2) 62%,
    var(--accent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  /* der Schein kommt aus dem Schatten, die Transparenz aus der Deckkraft */
  box-shadow: 0 0 6px var(--accent-2), 0 0 16px var(--accent);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transform: translateZ(0);
  transition: opacity 0.24s ease;
}

/* Ohne mask-composite würde die ganze Fläche gefüllt. Dann lieber nichts zeigen. */
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .card::after, .rel__card::after { display: none; }
}

.card:hover::after,
.card:focus-visible::after,
.rel__card:hover::after,
.rel__card:focus-visible::after {
  opacity: 0.85;
  animation: leuchtPuls 2.1s ease-in-out infinite;
}

@keyframes leuchtPuls {
  0%, 100% { opacity: 0.32; }
  50%      { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .card::after, .rel__card::after { animation: none; }
}

/* ==========================================================================
   Auftritt der Karten beim Scrollen: sie schweben sanft an ihren Platz
   ========================================================================== */
.card.reveal {
  opacity: 0;
  /* je nach Spalte leicht von der Seite, dadurch wirkt es wie Einschweben */
  transform: translate3d(var(--vonX, 0px), 56px, 0) scale(0.94);
  filter: blur(4px);
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.85, 0.3, 1),
    transform 1s cubic-bezier(0.16, 0.9, 0.24, 1),
    filter 0.55s ease;
  transition-delay: var(--delay, 0ms);
}

.card.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .card.reveal { opacity: 1; transform: none; filter: none; transition: none; }
}


/* ==========================================================================
   Vorspann: Logo, digitale Störung, dann fliegt der Inhalt herein
   ========================================================================== */
.intro {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.intro[hidden] { display: none; }

.intro__buehne {
  position: relative;
  width: clamp(150px, 20vw, 230px);
  animation: introBuehne 1.5s ease-out forwards;
}

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

/* die beiden Farbgeister erzeugen den Versatz wie bei einem gestörten Signal */
.intro__bild--geist {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0;
}

.intro__bild--cyan { filter: hue-rotate(-42deg) saturate(3); }
.intro__bild--magenta { filter: hue-rotate(128deg) saturate(3.4); }

/* heller Streifen, der einmal durchläuft */
.intro__streifen {
  position: absolute;
  left: -14%;
  right: -14%;
  height: 16%;
  top: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  opacity: 0;
  mix-blend-mode: overlay;
}

/* ---- Ablauf ---- */
.hero--intro .intro__bild {
  animation: introLogo 1.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.hero--intro .intro__bild--cyan { animation: introGeistA 1.5s steps(1, end) forwards; }
.hero--intro .intro__bild--magenta { animation: introGeistB 1.5s steps(1, end) forwards; }
.hero--intro .intro__streifen { animation: introStreifen 1.5s ease-in-out forwards; }

@keyframes introBuehne {
  0%   { transform: scale(0.86); }
  38%  { transform: scale(1); }
  /* kurzes Zucken, bevor es auseinanderfliegt */
  62%  { transform: scale(1.02) skewX(-1.5deg); }
  68%  { transform: scale(0.99) skewX(2deg); }
  74%  { transform: scale(1.03) skewX(-1deg); }
  100% { transform: scale(1.5); }
}

@keyframes introLogo {
  0%   { opacity: 0; filter: blur(10px); clip-path: inset(0 0 0 0); }
  26%  { opacity: 1; filter: blur(0); }
  /* das Signal reißt in waagerechte Streifen */
  60%  { opacity: 1; clip-path: inset(0 0 0 0); transform: translateX(0); }
  64%  { clip-path: inset(14% 0 52% 0); transform: translateX(-9px); }
  68%  { clip-path: inset(46% 0 22% 0); transform: translateX(11px); }
  71%  { clip-path: inset(6% 0 74% 0); transform: translateX(-14px); }
  74%  { clip-path: inset(64% 0 8% 0); transform: translateX(8px); }
  77%  { clip-path: inset(0 0 0 0); transform: translateX(0); opacity: 1; }
  82%  { opacity: 0.85; filter: blur(1px); }
  100% { opacity: 0; filter: blur(16px); }
}

@keyframes introGeistA {
  0%, 58%  { opacity: 0; transform: translateX(0); }
  62%      { opacity: 0.9; transform: translate(-13px, 3px); }
  67%      { opacity: 0.7; transform: translate(9px, -4px); }
  72%      { opacity: 0.95; transform: translate(-16px, 2px); }
  78%      { opacity: 0.5; transform: translate(6px, 0); }
  84%, 100% { opacity: 0; transform: translateX(0); }
}

@keyframes introGeistB {
  0%, 58%  { opacity: 0; transform: translateX(0); }
  62%      { opacity: 0.85; transform: translate(12px, -3px); }
  67%      { opacity: 0.6; transform: translate(-10px, 4px); }
  72%      { opacity: 0.9; transform: translate(15px, -2px); }
  78%      { opacity: 0.45; transform: translate(-7px, 0); }
  84%, 100% { opacity: 0; transform: translateX(0); }
}

@keyframes introStreifen {
  0%, 52% { opacity: 0; top: -20%; }
  58%     { opacity: 0.9; }
  80%     { opacity: 0.7; top: 96%; }
  100%    { opacity: 0; top: 110%; }
}

/* Solange der Vorspann läuft, bleibt der Inhalt zurückhaltend */
.hero--intro .hero__text > *,
.hero--intro .collage__win,
.hero--intro .hero__hint { opacity: 0; }
.hero--intro .hero__bg { opacity: 0.35; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* ==========================================================================
   Handy: oben mehr Luft, die Kopfzeile ist dort zweizeilig
   ========================================================================== */
@media (max-width: 780px) {
  .hero { padding-top: 168px; }

  /* die Einordnung darf umbrechen, aber ruhiger und kleiner */
  .hero__eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.09em;
    line-height: 1.5;
    max-width: 34ch;
    margin-bottom: 12px;
  }
}

@media (max-width: 780px) and (max-height: 900px) {
  .hero { padding-top: 164px; }
}

@media (max-width: 780px) and (max-height: 875px) {
  .hero { padding-top: 158px; padding-bottom: 62px; }
  .hero__title { font-size: clamp(24px, 7.2vw, 31px); }
  .hero__lead { font-size: 14.5px; }
}

/* ==========================================================================
   Handy: Knöpfe über die volle Breite, keine Querscroll-Reste
   ========================================================================== */
/* Der seitliche Versatz beim Einschweben darf die Seite nicht breiter machen */
.grid { overflow-x: clip; }

@media (max-width: 620px) {
  /* einspaltig, deshalb kommen die Karten gerade von unten */
  .card.reveal { --vonX: 0px; }
}

@media (max-width: 780px) {
  .hero__actions,
  .phero__actions { flex-direction: column; align-items: stretch; width: 100%; }

  .hero__actions .btn,
  .phero__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 15.5px;
  }

  .band__btn { width: 100%; justify-content: center; }
  .form__send { align-self: stretch; width: 100%; justify-content: center; }
}

/* auf hohen Handys bleibt der Hero sonst länger als der Bildschirm */
@media (max-width: 780px) and (min-height: 901px) {
  .hero { padding-top: 172px; padding-bottom: 76px; }
  .collage { max-width: 300px; }
}

/* Auf dem Handy stehen die Knöpfe untereinander, dann bleibt für die Collage
   kein Platz mehr. Der Hero ist dort bewusst rein textlich. */
@media (max-width: 780px) {
  .collage { display: none; }
  .hero { padding-bottom: 76px; }
}

/* Auf dem Handy steht der Hero-Text mittig, das wirkt ruhiger als linksbündig
   mit vollbreiten Knöpfen darunter */
@media (max-width: 780px) {
  .hero__text { text-align: center; }

  .hero__eyebrow,
  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__lead { max-width: 34ch; }

  .branchen { align-items: center; }
  .branchen__liste { justify-content: center; }
}
