/* ==========================================================
   Clublify Produktwebsite
   Gestaltung: kuehles Papierweiss, Navy als Schrift- und
   Handlungsfarbe, Teal als einzige Akzentfarbe.
   Formregel: Knoepfe und Plaettchen sind Pillen, Karten 20px,
   grosse Flaechen 28px, Eingabefelder 12px.
   ========================================================== */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #e9edf3;
  --ink: #17203f;
  --ink-2: #2e3d7a;
  --muted: #4f5873;
  --muted-2: #6b7390;
  --line: #dde2eb;
  --line-strong: #858da6;
  --teal: #2aa6b8;
  --teal-ink: #0d6774;
  --teal-tint: #d9f0f3;
  --teal-line: #a9dbe2;
  --band: #17203f;
  --on-band: #f3f5f8;
  --on-band-muted: #b8c0d8;
  --focus: #1b6bd4;
  --danger: #a3332d;
  --danger-tint: #f9e9e8;
  --success: #24694d;
  --success-tint: #e3f2eb;

  --logo-shield: #2e3d7a;
  --logo-dot: #2aa6b8;
  --logo-word: #17203f;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --step-3: clamp(1.625rem, 1.25rem + 1.4vw, 2.25rem);
  --step-4: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --step-5: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem);

  --radius-input: 12px;
  --radius-card: 20px;
  --radius-stage: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgb(23 32 63 / 0.06), 0 12px 32px -16px rgb(23 32 63 / 0.22);
  --shadow-float: 0 2px 4px rgb(23 32 63 / 0.08), 0 24px 48px -20px rgb(23 32 63 / 0.35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-space: clamp(64px, 5vw + 40px, 128px);
  --header-height: 68px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1322;
    --surface: #161c2f;
    --surface-2: #1d2440;
    --ink: #edf0f7;
    --ink-2: #b3bfeb;
    --muted: #a7afc6;
    --muted-2: #8d96b1;
    --line: #283050;
    --line-strong: #6d7695;
    --teal: #4cc3d3;
    --teal-ink: #7dd6e2;
    --teal-tint: #12333b;
    --teal-line: #1f5761;
    --band: #1b2342;
    --on-band: #edf0f7;
    --on-band-muted: #b3bbd3;
    --focus: #7fb2f0;
    --danger: #ec8f88;
    --danger-tint: #33191b;
    --success: #79c7a2;
    --success-tint: #142a22;

    --logo-shield: #e7eaf6;
    --logo-dot: #58c6d8;
    --logo-word: #edf0f7;

    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -16px rgb(0 0 0 / 0.6);
    --shadow-float: 0 2px 4px rgb(0 0 0 / 0.4), 0 24px 48px -20px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

/* ---------- Grundlagen ------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

/* Bildausschnitt aus der Mediathek, wenn ein Format beschnitten wird */
.focus--left { object-position: 25% 50%; }
.focus--right { object-position: 75% 50%; }

[hidden] { display: none !important; }

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

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

.skip {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

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

.section { padding-block: var(--section-space); }
.section--tight { padding-block: calc(var(--section-space) * 0.6); }

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
  max-width: 38ch;
}

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

.section-head {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head h2 { font-size: var(--step-4); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 60ch; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1.4;
}
.chip .icon { width: 16px; height: 16px; color: var(--teal-ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: gap 200ms var(--ease-out);
}
.text-link:hover { gap: 12px; }
.text-link .icon { width: 18px; height: 18px; }

/* ---------- Knoepfe --------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .icon { width: 18px; height: 18px; }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-2); }

.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); background: var(--surface); }

.btn--light { background: var(--on-band); color: var(--band); }
.btn--light:hover { background: #ffffff; }

.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }

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

/* ---------- Logo ------------------------------------------ */

.logo { display: block; width: 136px; height: auto; }
.logo__shield { fill: none; stroke: var(--logo-shield); }
.logo__dot { fill: var(--logo-dot); }
.logo__word { fill: var(--logo-word); }

/* ---------- Kopfzeile ------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: var(--header-height);
}

.site-header__brand { display: flex; border-radius: 6px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.site-nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
.site-nav__link:hover { color: var(--ink); background: var(--surface-2); }
.site-nav__link[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

.site-nav__cta { margin-left: auto; }

.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 860px) {
  .site-header__inner { gap: 16px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-float);
  }
  .site-nav--open { display: flex; }
  .site-nav__link { padding: 14px 16px; font-size: var(--step-0); }
  .site-nav__cta { margin: 12px 0 0; }
}

/* ---------- Hero ------------------------------------------ */

.hero { padding-block: clamp(40px, 5vw, 80px) clamp(56px, 6vw, 96px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
}

.hero__copy { display: grid; gap: 28px; justify-items: start; }

.hero h1 {
  font-size: clamp(2.375rem, 1.2rem + 3.3vw, 4.125rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--teal-ink); }

.hero .button-row { margin-top: 4px; }

/* Buehne rechts: Markenflaeche mit Ablaufkarte. Kann durch ein
   echtes Produktbild aus der Mediathek ersetzt werden. */
.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-stage);
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(42 166 184 / 0.55), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgb(46 61 122 / 0.9), transparent 60%),
    #17203f;
  display: grid;
  align-content: center;
}

.stage__mark {
  position: absolute;
  right: -60px;
  bottom: -70px;
  z-index: -1;
  width: 340px;
  height: auto;
  color: rgb(255 255 255 / 0.09);
}

.stage__image {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-card {
  position: relative;
  max-width: 420px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-float);
  color: var(--ink);
}

.flow-card__label { color: var(--muted); font-size: var(--step--1); font-weight: 500; }
.flow-card__title { margin: 6px 0 24px; font-size: var(--step-2); }

.flow {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow__item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding-bottom: 22px;
}
.flow__item:last-child { padding-bottom: 0; }

/* Verbindungslinie zwischen den Schritten: zeigt, dass die
   Schritte aufeinander aufbauen. */
.flow__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--teal-line);
}

.flow__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--teal-tint);
  color: var(--teal-ink);
}
.flow__icon .icon { width: 22px; height: 22px; }

.flow__item strong { display: block; font-weight: 600; line-height: 1.3; padding-top: 2px; }
.flow__item p { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; margin-top: 2px; }

.stage__note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  margin-top: 20px;
  margin-right: clamp(0px, 2vw, 24px);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.22);
  color: #f3f5f8;
  font-size: 0.9375rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.stage__note .icon { color: #7fd8e4; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .stage { min-height: 0; }
}

@media (max-width: 480px) {
  .stage { padding: 16px; border-radius: var(--radius-card); }
  .flow-card { padding: 22px; }
  .stage__note { justify-self: stretch; margin-right: 0; }
}

/* Hero mit Foto: Text oben in zwei Spalten, darunter das Bild im
   Panoramaformat. Die Ablaufkarte liegt rechts auf dem Bild. */
.hero--photo .hero__grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end;
}
.hero--photo .hero__aside { display: grid; gap: 28px; justify-items: start; padding-bottom: 6px; }

.hero__media {
  position: relative;
  display: grid;
  margin-top: clamp(32px, 4vw, 56px);
}
/* Foto und Karte liegen in derselben Rasterzelle. Ist die Karte hoeher
   als das Foto im Panoramaformat, waechst das Foto mit, statt dass die
   Karte nach oben ueber Text und Knoepfe ragt. */
.hero__media > * { grid-area: 1 / 1; }
.hero__media picture { display: block; }
.hero__photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-stage);
}
.hero__media .flow-card {
  align-self: end;
  justify-self: end;
  margin: clamp(16px, 3vw, 40px);
  width: calc(100% - 2 * clamp(16px, 3vw, 40px));
  max-width: 380px;
}

@media (max-width: 960px) {
  .hero--photo .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 4 / 3; border-radius: var(--radius-card); }
  .hero__media { display: block; }
  .hero__photo { height: auto; }
  .hero__media .flow-card { position: relative; width: auto; margin: -72px 16px 0; max-width: none; }
}

/* ---------- Schritte -------------------------------------- */

/* Nummerierter Ablauf, nebeneinander mit Verbindungslinie; auf
   schmalen Bildschirmen untereinander wie die Ablaufkarte. */
.steps {
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps--2 { --steps: 2; }
.steps--3 { --steps: 3; }
.steps--5 { --steps: 5; }
.steps--6 { --steps: 3; }

.steps__item { position: relative; display: grid; gap: 10px; align-content: start; }
.steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 60px;
  right: -20px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-line);
}
.steps--6 .steps__item:nth-child(3n)::after { display: none; }

.steps__number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--teal-tint);
  color: var(--teal-ink);
  font-size: var(--step-1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.steps__title { font-size: var(--step-1); letter-spacing: -0.015em; }
.steps__item p { color: var(--muted); line-height: 1.55; }

.steps__note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 760px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--muted);
}
.steps__note .icon { color: var(--teal-ink); margin-top: 3px; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps__item {
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    row-gap: 4px;
    padding-bottom: 28px;
  }
  .steps__item:last-child { padding-bottom: 0; }
  .steps__number { grid-row: span 2; margin-bottom: 0; }
  .steps__item:not(:last-child)::after,
  .steps--6 .steps__item:nth-child(3n)::after {
    display: block;
    top: 56px;
    bottom: 4px;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
  }
}

/* ---------- Kennzahlen ------------------------------------ */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.fact {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 28px 24px 0 0;
}
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact strong { font-size: var(--step-3); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.fact span { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }

.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 860px) {
  .facts, .facts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Bereiche als grosse Reiter -------------------- */

.areas {
  padding: 12px;
  border-radius: var(--radius-stage);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.areas__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.areas__tab {
  flex: 1 1 0;
  min-width: max-content;
  padding: 18px 28px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted-2);
  font: inherit;
  font-size: var(--step-4);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease;
}
.areas__tab:hover { color: var(--ink); }
.areas__tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }

.areas__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 3.5vw, 48px) clamp(16px, 2.5vw, 36px) clamp(16px, 2.5vw, 36px);
  animation: panel-in 360ms var(--ease-out);
}

.areas__text { display: grid; gap: 18px; align-content: start; }
.areas__text h3 { font-size: var(--step-3); }
.areas__text p { color: var(--muted); max-width: 46ch; }
.areas__text .text-link { margin-top: 8px; }

.areas__visual {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 12px;
  min-height: 300px;
  margin: 0;
  list-style: none;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-card);
  background: var(--teal-tint);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgb(23 32 63 / 0.08);
}
.pill .icon { width: 18px; height: 18px; color: var(--teal-ink); }

/* Variante mit Foto: Faehigkeiten stehen links unter dem Text,
   rechts das Bild. Keine Beschriftungen auf dem Foto. */
.areas__panel--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.areas__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.areas__pills .pill { background: var(--paper); box-shadow: none; font-size: 0.9375rem; padding: 8px 14px; }
.areas__photo {
  width: 100%;
  height: 100%;
  min-height: 340px;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius-card);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Ohne JavaScript stehen alle Bereiche untereinander. */
.no-js .areas__tabs { display: none; }
.no-js .areas__panel[hidden] { display: grid !important; }

@media (max-width: 860px) {
  .areas__tab { font-size: var(--step-1); padding: 12px 14px; letter-spacing: -0.02em; }
  .areas__panel, .areas__panel--photo { grid-template-columns: 1fr; }
  .areas__visual { min-height: 0; }
  .areas__photo { min-height: 220px; max-height: 280px; }
}

/* ---------- Farbblock "Modular" --------------------------- */

.band-teal {
  background: var(--teal-tint);
  overflow: hidden;
}

.modular {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.modular__copy { display: grid; gap: 24px; justify-items: start; }
.modular__copy h2 { font-size: var(--step-5); letter-spacing: -0.045em; line-height: 1; }
.modular__copy p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }

.include-card {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.include-card h3 { font-size: var(--step-2); margin-bottom: 20px; }
.include-card .fine { margin-top: 20px; color: var(--muted); font-size: 0.9375rem; }

.checklist { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; line-height: 1.45; }
.checklist .icon {
  width: 24px; height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-ink);
}

/* Laufband mit den Modulen. Steht bei reduzierter Bewegung still
   und bricht dann in Zeilen um. */
.marquee {
  margin-top: clamp(48px, 5vw, 72px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee .pill { font-size: var(--step-1); padding: 14px 22px; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; flex-wrap: wrap; animation: none; }
  .marquee__track [aria-hidden="true"] { display: none; }
}

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

/* ---------- Zustaendigkeiten (Aufklapper) ----------------- */

.duties {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.duties__head { display: grid; gap: 20px; position: sticky; top: calc(var(--header-height) + 32px); }
.duties__head h2 { font-size: var(--step-4); }
.duties__head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.duties__head .text-link { margin-top: 8px; }

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

.disclosure summary {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  gap: 16px;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary:hover .disclosure__toggle { background: var(--surface-2); }

.disclosure__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--teal-ink);
}

.disclosure__toggle {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  transition: transform 240ms var(--ease-out), background-color 160ms ease;
}
.disclosure__toggle .icon { width: 18px; height: 18px; }
details[open] .disclosure__toggle { transform: rotate(45deg); }

.disclosure details p {
  padding: 0 40px 28px 60px;
  color: var(--muted);
  max-width: 62ch;
}

@media (max-width: 860px) {
  .duties { grid-template-columns: 1fr; }
  .duties__head { position: static; }
  .disclosure details p { padding-left: 0; padding-right: 0; }
}

/* ---------- Abschlussband --------------------------------- */

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--radius-stage);
  background:
    radial-gradient(70% 120% at 100% 100%, rgb(42 166 184 / 0.35), transparent 60%),
    var(--band);
  color: var(--on-band);
}
.cta-band h2 { font-size: var(--step-5); letter-spacing: -0.045em; line-height: 1; }
.cta-band p { margin-top: 20px; color: var(--on-band-muted); font-size: var(--step-1); max-width: 40ch; }
.cta-band .stage__mark { color: rgb(255 255 255 / 0.06); right: auto; left: 55%; bottom: -120px; width: 380px; }

.cta-band--photo {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: ". copy" ". action";
  align-items: start;
  min-height: 420px;
  background: var(--band);
}
.cta-band--photo > div { grid-area: copy; align-self: end; }
.cta-band--photo > .btn { grid-area: action; justify-self: start; }
.cta-band--photo > picture { position: absolute; inset: 0; z-index: -2; }
.cta-band__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
/* Motiv links, Text rechts: der Verlauf dunkelt die rechte Haelfte ab. */
.cta-band--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(23 32 63 / 0.15) 0%, rgb(23 32 63 / 0.55) 45%, rgb(23 32 63 / 0.92) 70%),
    radial-gradient(60% 120% at 100% 100%, rgb(42 166 184 / 0.3), transparent 60%);
}

@media (max-width: 760px) {
  .cta-band--photo {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "action";
    padding-top: 200px;
  }
  .cta-band--photo::before {
    background: linear-gradient(180deg, rgb(23 32 63 / 0.1) 0%, rgb(23 32 63 / 0.85) 45%, rgb(23 32 63 / 0.95) 100%);
  }
}

@media (max-width: 760px) {
  .cta-band { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Fusszeile ------------------------------------- */

.site-footer {
  margin-top: var(--section-space);
  padding-block: 56px 32px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.site-footer__brand p { margin-top: 16px; color: var(--muted); max-width: 32ch; }

.site-footer__col { display: grid; gap: 10px; align-content: start; }
.site-footer__col h2 { font-size: var(--step--1); font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: 6px; }
.site-footer__col a { color: var(--muted); text-decoration: none; width: fit-content; }
.site-footer__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer__bottom a { color: var(--muted); }

@media (max-width: 760px) {
  .site-footer__main { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ---------- Store-Abzeichen -------------------------------- */

/* Offizielle Abzeichen von Apple und Google, unveraendert. Das Google-
   Abzeichen enthaelt eigenen Weissraum; mit dem negativen Rand stehen
   beide gleich hoch. */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.store-badge { display: block; border-radius: 8px; }
.store-badge img { display: block; width: auto; }
.store-badge--apple img { height: 40px; }
.store-badge--google { margin: -6px 0; }
.store-badge--google img { height: 52px; }

/* ---------- Social Media --------------------------------- */

/* Einfache Links mit eigenen Symbolen, nichts wird von den Netzwerken
   nachgeladen. 40px Klickflaeche, Symbol 18px. */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: color .15s, border-color .15s;
}
.social-link:hover { color: var(--ink); border-color: var(--ink); }
.social-link svg { width: 18px; height: 18px; }

/* ---------- Vorschau im Backend --------------------------- */

.preview-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 10px var(--gutter);
  background: #fdf3d8;
  color: #4d3a0a;
  font-size: 0.9375rem;
}
.preview-bar a { color: inherit; font-weight: 600; }

/* ---------- Seitenkopf ------------------------------------ */

.intro { padding-block: clamp(40px, 5vw, 80px) clamp(24px, 3vw, 48px); }
.intro + .section { padding-top: clamp(24px, 3vw, 48px); }
.intro__text { display: grid; gap: 24px; justify-items: start; max-width: 820px; }
.intro h1, .intro h2 { font-size: var(--step-5); letter-spacing: -0.045em; line-height: 1.02; }
.intro .lead { max-width: 56ch; }
/* Abstand am <picture>, damit das KI-Label an der Bildkante sitzt. */
.intro picture { display: block; margin-top: clamp(32px, 4vw, 56px); }
.intro__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  object-fit: cover;
  border-radius: var(--radius-stage);
}
@media (max-width: 760px) {
  .intro__photo { aspect-ratio: 4 / 3; border-radius: var(--radius-card); }
}

/* ---------- Kacheln mit Sinnbild -------------------------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tiles--2, .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tile {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(24px, 2.5vw, 32px);
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.tile__title { font-size: var(--step-1); letter-spacing: -0.02em; line-height: 1.25; margin-top: 8px; }
.tile p { color: var(--muted); font-size: 0.9875rem; }
.tile__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--teal-tint);
  color: var(--teal-ink);
}
.tile__icon .icon { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .tiles, .tiles--4, .tiles--8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tiles, .tiles--2, .tiles--4, .tiles--8 { grid-template-columns: 1fr; }
}

/* ---------- Bild und Text --------------------------------- */

.media-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.media-text--left .media-text__copy { order: 2; }
.media-text__copy { display: grid; gap: 20px; justify-items: start; }
.media-text__copy { min-width: 0; }
.media-text__copy h2 { font-size: var(--step-4); hyphens: auto; overflow-wrap: break-word; }
/* Neben einem breiten Screenshot ist die Textspalte schmal: kleinere Ueberschrift,
   damit lange Woerter wie „Jahreshauptversammlung“ nicht ins Bild laufen. */
.media-text--browser .media-text__copy h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
.media-text__image { width: 100%; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
@media (max-width: 860px) {
  .media-text { grid-template-columns: 1fr; }
  .media-text--left .media-text__copy { order: 0; }
}

/* ---------- App-Ansichten im Handyrahmen ------------------ */

.device {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border-radius: 44px;
  background: #11182d;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06) inset, var(--shadow-float);
}
.device__screen {
  width: 100%;
  height: auto;
  aspect-ratio: 1038 / 2048;
  object-fit: cover;
  object-position: top;
  border-radius: 34px;
  background: var(--surface);
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin: 0;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 64px) 0;
  list-style: none;
  border-radius: var(--radius-stage);
  background: var(--teal-tint);
  overflow: hidden;
}
.screens--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.screens--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.screens__item { display: grid; gap: 10px; justify-items: center; text-align: center; padding-bottom: clamp(32px, 4vw, 56px); }
/* Die mittlere Ansicht steht etwas hoeher, damit die Reihe nicht wie ein Raster wirkt. */
.screens--3 .screens__item:nth-child(2) { transform: translateY(-24px); }
.screens__item .device { margin-bottom: 14px; }
.screens__title { font-size: var(--step-1); letter-spacing: -0.02em; line-height: 1.25; }
.screens__item p { color: var(--muted); font-size: 0.9375rem; max-width: 30ch; }

/* Screenshot der Webanwendung: schlichter Browserrahmen, Bild breiter als der Text. */
.media-text--browser { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
.media-text--browser.media-text--left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.media-text--browser .media-text__media--screen { padding: clamp(16px, 2.5vw, 32px); }
.browser {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
}
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser__bar span:not(.browser__address) { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); opacity: 0.5; }
.browser__address { margin-left: 12px; padding: 2px 12px; border-radius: var(--radius-pill); background: var(--surface); color: var(--muted); font-size: 0.75rem; }
.browser__screen { display: block; width: 100%; height: auto; }
/* Unter 1240px wird die Textspalte neben dem Screenshot zu schmal: dann untereinander. */
@media (max-width: 1239px) {
  .media-text--browser, .media-text--browser.media-text--left { grid-template-columns: minmax(0, 1fr); }
  .media-text--browser.media-text--left .media-text__copy { order: 0; }
  .media-text--browser .media-text__copy { max-width: 720px; }
}

.media-text__media--screen { display: grid; justify-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-stage); background: var(--teal-tint); }

@media (max-width: 860px) {
  .screens, .screens--2, .screens--4 {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(72%, 280px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-inline: 24px;
  }
  .screens__item { scroll-snap-align: center; }
  .screens--3 .screens__item:nth-child(2) { transform: none; }
}

/* ---------- Fliesstext ------------------------------------ */

.prose { color: var(--muted); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.6em; }
.prose h2 { font-size: var(--step-3); }
.prose h3 { font-size: var(--step-2); }
.prose h4 { font-size: var(--step-1); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--ink); text-decoration-color: var(--teal); text-underline-offset: 4px; }
.prose strong { color: var(--ink); font-weight: 600; }

.prose--page { max-width: 760px; }
.prose--page h1 { font-size: var(--step-5); letter-spacing: -0.045em; color: var(--ink); margin-bottom: 0.6em; }

.section--first { padding-top: clamp(40px, 5vw, 80px); }

/* ---------- Modulkatalog ---------------------------------- */

.base-package {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 4vw, 56px);
  margin-bottom: var(--section-space);
  border-radius: var(--radius-stage);
  background: var(--teal-tint);
}
.base-package h2 { font-size: var(--step-4); margin-bottom: 16px; }
.base-package p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.checklist--columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-content: center; }
@media (max-width: 860px) {
  .base-package { grid-template-columns: 1fr; }
  .checklist--columns { grid-template-columns: 1fr; }
}

.catalog-head { display: grid; gap: 24px; margin-bottom: 32px; }
.catalog-head .section-head { margin-bottom: 0; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.filter-chip:hover { background: var(--surface); }
.filter-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.module-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.module-card h3 { font-size: var(--step-1); letter-spacing: -0.02em; }
.module-card p { color: var(--muted); font-size: 0.9875rem; }
.module-card__group { color: var(--teal-ink); font-size: var(--step--1); font-weight: 600; }
.module-card__needs { display: flex; gap: 8px; align-items: center; font-size: var(--step--1) !important; }
.module-card__needs .icon { width: 16px; height: 16px; }
.module-card__link { justify-self: start; padding-top: 4px; font-size: var(--step--1); }
.filter-empty { margin-top: 24px; color: var(--muted); }

/* ---------- Hinweiskasten --------------------------------- */

.note-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.note-box__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--teal-tint);
  color: var(--teal-ink);
}
.note-box__body { display: grid; gap: 12px; justify-items: start; }
.note-box h2 { font-size: var(--step-2); }

/* ---------- Formularelemente der Website ------------------ */

.form-field { display: grid; gap: 8px; align-content: start; }
.form-field label { font-weight: 600; font-size: 0.9375rem; }
.form-field .optional { color: var(--muted); font-weight: 400; }
.form-field__hint { color: var(--muted); font-size: var(--step--1); }
.form-field__error { display: flex; gap: 6px; color: var(--danger); font-size: var(--step--1); font-weight: 500; }
.form-field--narrow { max-width: 280px; }

.input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.input:hover { border-color: var(--ink); }
.input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
textarea.input { resize: vertical; min-height: 160px; }
select.input { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 20px center, right 14px center; background-size: 6px 6px; background-repeat: no-repeat; }
.form-field--invalid .input { border-color: var(--danger); }

.form-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-input);
  background: var(--danger-tint);
  color: var(--danger);
  font-weight: 500;
}

.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Konfigurator ---------------------------------- */

.section--configurator { padding-top: clamp(16px, 2vw, 32px); }

.configurator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.configurator__steps { display: grid; gap: 16px; }

.config-step {
  min-width: 0;
  margin: 0;
  padding: clamp(24px, 3vw, 40px);
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.config-step legend {
  float: left;
  width: 100%;
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
  padding: 0;
  font-size: var(--step-3);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.config-step legend + * { clear: both; }
.config-step legend h2 { font: inherit; letter-spacing: inherit; }
.config-step__label { color: var(--teal-ink); font-size: var(--step--1); font-weight: 600; letter-spacing: 0; }
.config-step__hint { color: var(--muted); margin-bottom: 20px; }

.config-auto {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-input);
  background: var(--teal-tint);
  color: var(--ink);
  font-size: 0.9375rem;
}

.config-group + .config-group { margin-top: 28px; }
.config-group h3 { font-size: var(--step-0); font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }

.option {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.option:hover { border-color: var(--line-strong); }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option__box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.option__box .icon { width: 16px; height: 16px; }
.option:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.option:has(input:checked) .option__box { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.option__body { display: grid; gap: 4px; }
.option__name { font-weight: 600; line-height: 1.3; }
.option__text { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.option__meta { color: var(--teal-ink); font-size: var(--step--1); font-weight: 500; }
.option__meta:empty { display: none; }
.option__link { justify-self: start; margin-top: 4px; font-size: var(--step--1); }

.form-row-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }

.summary { position: sticky; top: calc(var(--header-height) + 24px); }
.summary__card {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--band);
  color: var(--on-band);
}
.summary__card h2 { font-size: var(--step-1); letter-spacing: -0.01em; color: var(--on-band-muted); font-weight: 500; }
.summary__price { display: grid; gap: 4px; }
.summary__price #price { font-size: var(--step-4); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.summary__price #price.summary__price-text { font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1.1; }
.summary__caption { color: var(--on-band-muted); font-size: var(--step--1); }
.summary__list { display: grid; gap: 12px; margin: 0; padding: 20px 0; border-block: 1px solid rgb(255 255 255 / 0.14); }
.summary__list div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; font-size: 0.9375rem; }
.summary__list dt { color: var(--on-band-muted); }
.summary__list dd { margin: 0; }
.summary__detail { color: var(--on-band-muted); font-size: 0.9375rem; }
.summary__offer { background: var(--on-band); color: var(--band); width: 100%; }
.summary__offer:hover { background: #ffffff; }
.summary__sponsor { color: var(--on-band-muted); font-size: 0.9375rem; }
.summary__sponsor a { color: var(--on-band); font-weight: 500; text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.note-inline { color: var(--muted); }

/* Auf schmalen Bildschirmen steht die Zusammenfassung unter der
   Auswahl. Damit der Preis waehrend der Auswahl sichtbar bleibt,
   gibt es eine feste Leiste am unteren Rand. */
.summary-bar { display: none; }

@media (max-width: 1020px) {
  .configurator { grid-template-columns: 1fr; }
  .summary { position: static; scroll-margin-top: calc(var(--header-height) + 16px); }
  .section--configurator { padding-bottom: 120px; }
  .summary-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 20px;
    border-radius: var(--radius-pill);
    background: var(--band);
    color: var(--on-band);
    box-shadow: var(--shadow-float);
  }
  .summary-bar__price { display: grid; line-height: 1.2; }
  .summary-bar__price strong { font-size: var(--step-1); font-weight: 600; }
  .summary-bar__price span { color: var(--on-band-muted); font-size: var(--step--1); }
  .summary-bar .btn { min-height: 44px; }
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.section--contact { padding-top: clamp(16px, 2vw, 32px); }
.contact__info { display: grid; gap: 24px; }
.contact__info h2 { font-size: var(--step-3); }
.contact__details { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.contact__details li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.contact__details .icon { color: var(--teal-ink); margin-top: 2px; }
.contact__details a { color: var(--ink); text-underline-offset: 4px; }
.contact__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-card); }

.contact__form > form, .form-success {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-note { color: var(--muted); font-size: var(--step--1); }
.form-note a { color: var(--ink); }
.contact__form button[type="submit"] { justify-self: start; }

.config-attached {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  padding: 16px 18px;
  border-radius: var(--radius-input);
  background: var(--teal-tint);
}
.config-attached p { color: var(--muted); font-size: 0.9375rem; margin-top: 4px; }

.form-success { justify-items: start; }
.form-success:focus { outline: none; }
.form-success h2 { font-size: var(--step-3); }
.form-success p { color: var(--muted); }
.form-success__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--success-tint);
  color: var(--success);
}

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Fehlerseite ----------------------------------- */

.error-page { display: grid; gap: 24px; justify-items: start; padding-block: 40px; }
.error-page h1 { font-size: var(--step-5); letter-spacing: -0.045em; }

/* ---------- Bewegung -------------------------------------- */

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

/* ---------- Kennzeichnung KI-generierter Bilder ----------- */

/* Oben links, weil unten die Ablaufkarte im Hero liegt. Halbtransparent,
   damit das Label die Farben des Bildes aufnimmt; auf hellen Bildecken
   (Klasse aus Media::picture) mit dunkler Schrift. Kein backdrop-filter:
   Safari verliert damit die abgerundeten Ecken des Bildes. */
.ki-bild { position: relative; display: block; }
.ki-bild::after {
  content: "KI-generiert";
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgb(23 32 63 / 0.5);
  color: rgb(255 255 255 / 0.92);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  pointer-events: none;
}
.ki-bild--hell::after {
  background: rgb(255 255 255 / 0.6);
  color: rgb(23 32 63 / 0.85);
}
