@import url("fonts.css");

/* =========================================================================
   ClosingHub Landingpage
   Farben und Formsprache aus assets/logo/README.md und dem Design-Briefing.
   Radius-Skala 8 / 14 / 20. Genau eine Akzentfarbe.
   z-index-Skala: 1 Inhalt, 10 Sticky-Header, 20 Mobil-Menue.
   ========================================================================= */

:root {
  color-scheme: light;

  --accent:        #6C2BF2;
  --accent-hover:  #5A20D8;
  --accent-deep:   #4B18B8;
  --accent-soft:   #C0A5FB;
  --tint:          #F1EBFE;
  --tint-weak:     #F7F3FE;

  --ink:           #17102B;
  --ink-2:         #4B4459;
  --ink-3:         #6B6379;
  --ink-4:         #767083;

  --paper:         #FFFFFF;
  --paper-2:       #FBFAFE;
  --line:          #EDE7F9;
  --line-soft:     #F0EAFB;
  --field-line:    #E7E1F2;

  --dark:          #17102B;
  --dark-2:        #211838;
  --on-dark:       #FFFFFF;
  --on-dark-2:     #CFC8DD;
  --on-dark-3:     #ADA4C0;

  --r-btn:  8px;
  --r-card: 14px;
  --r-big:  20px;

  --maxw:    1200px;
  --gutter:  clamp(20px, 5vw, 56px);
  --section: clamp(56px, 9vw, 116px);

  --shadow-card: 0 1px 2px rgba(23, 16, 43, .05), 0 12px 28px -22px rgba(23, 16, 43, .40);
  --shadow-lift: 0 1px 2px rgba(23, 16, 43, .05), 0 22px 48px -32px rgba(23, 16, 43, .45);
  --shadow-shot: 0 40px 80px -40px rgba(23, 16, 43, .28);
  --btn-face:    inset 0 1px 0 rgba(255, 255, 255, .32), 0 3px 0 var(--accent-deep), 0 14px 26px -16px rgba(108, 43, 242, .75);
  --btn-face-sm: inset 0 1px 0 rgba(255, 255, 255, .30), 0 2px 0 var(--accent-deep), 0 8px 16px -10px rgba(108, 43, 242, .70);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

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

html { scroll-behavior: smooth; }

/* Sprungziele dürfen nicht unter der Kopfzeile landen */
:where(section[id], main[id], details, .faq summary, [id]) { scroll-margin-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: Outfit, Manrope, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
fieldset { min-width: 0; }

a { color: var(--accent); text-decoration: none; }
a, button, summary, label, input, textarea, select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(108, 43, 242, .12);
}
a:hover { color: var(--accent-deep); }

img, svg { max-width: 100%; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--field-line);
  border-radius: var(--r-btn);
  padding: 12px 18px;
  font-weight: 600;
  transition: top .18s var(--ease);
}
.skip:focus { top: 16px; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

section { padding-block: var(--section); }
.bg-soft { background: var(--paper-2); border-top: 1px solid var(--line-soft); }
.bg-tint { background: var(--tint); }
.bg-dark { background: var(--dark); color: var(--on-dark); }
.bg-dark h2 { color: var(--on-dark); }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.bg-dark .eyebrow { color: var(--accent-soft); }

.h2 { font-size: clamp(28px, 3.6vw, 38px); }
.lead {
  font-size: clamp(16px, 1.4vw, 17px);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 52ch;
}
.bg-dark .lead { color: var(--on-dark-2); }

.head { max-width: 42ch; margin-bottom: clamp(32px, 4vw, 48px); }
.head .lead { margin-top: 14px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.2;
  padding: 15px 28px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s var(--ease), transform .1s var(--ease), border-color .16s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--btn-face);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--field-line);
}
.btn-ghost:hover { border-color: var(--accent-soft); color: var(--ink); }

.btn-sm { font-size: 15px; padding: 11px 18px; box-shadow: var(--btn-face-sm); }
.btn-block { width: 100%; }

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

#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-head.is-stuck {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 8px 20px -18px rgba(23, 16, 43, .5);
}
.site-head .wrap {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { display: flex; align-items: center; flex: none; }
.logo-mark i {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
}
.logo-mark i + i { background: var(--accent-soft); margin-left: -10px; }
.logo-type {
  font-family: Outfit, sans-serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -.035em;
}
.logo-type b { font-weight: 600; color: var(--accent); }

.site-nav {
  display: flex;
  gap: 22px;
  margin-inline: auto;
  font-size: 15.5px;
  font-weight: 500;
}
.site-nav a { color: var(--ink-2); white-space: nowrap; }
.site-nav a:hover { color: var(--accent); }
.site-nav .btn { display: none; }

/* Ab Tablet ist die Navigation immer sichtbar, das hidden-Attribut steuert
   nur das mobile Menue. */
@media (min-width: 901px) {
  .site-nav[hidden] { display: flex; }
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--field-line);
  border-radius: var(--r-btn);
  padding: 9px;
  color: var(--ink);
  cursor: pointer;
}

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

.hero { padding-block: clamp(48px, 6vw, 88px) 0; position: relative; }
.hero-copy { max-width: 46rem; margin-inline: auto; text-align: center; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-bottom: 20px;
}
.hero .lead {
  font-size: clamp(17px, 1.7vw, 19px);
  max-width: 34em;
  margin-inline: auto;
  margin-bottom: 30px;
}
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.hero-stage { position: relative; margin-top: clamp(40px, 5vw, 60px); }
.hero-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  width: min(1100px, 120%);
  height: 520px;
  background: radial-gradient(50% 50% at 50% 45%, var(--tint) 0%, rgba(241, 235, 254, 0) 72%);
  pointer-events: none;
}
.hero-stage .shot {
  position: relative;
  border-radius: var(--r-big) var(--r-big) 0 0;
  box-shadow: var(--shadow-shot);
}

/* ---------- Screenshot-Rahmen und Platzhalter ----------------------------- */

.shot {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.shot img { display: block; width: 100%; height: auto; }

.shot.is-missing {
  border-style: dashed;
  border-color: #D9CFF3;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 32px;
  aspect-ratio: var(--ratio, 16 / 10);
}
.shot.is-missing::before {
  content: "Screenshot folgt";
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.shot.is-missing::after {
  content: attr(data-missing);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 28em;
}

/* ---------- Arbeitstag ---------------------------------------------------- */

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.flow-step { position: relative; padding-right: 8px; }
.flow-step::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
}
.flow-step h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 8px; }
.flow-step p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Split (Dialer, Recht) ---------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.split h2 { margin-bottom: 16px; }

.facts { display: flex; flex-direction: column; gap: 11px; margin-top: 26px; font-size: 15.5px; line-height: 1.55; }
.facts li { display: flex; gap: 11px; align-items: baseline; }
.facts li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-2px);
}
ul.facts { list-style: none; margin: 26px 0 0; padding: 0; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { background: var(--dark-2); border-radius: var(--r-card); padding: 22px; }
.tile h3 { font-size: 17px; letter-spacing: -.02em; margin-bottom: 6px; color: var(--on-dark); }
.tile p { font-size: 14px; line-height: 1.55; color: var(--on-dark-3); }

/* ---------- Funktionen (Bento) -------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.card {
  background: var(--paper);
  border-radius: var(--r-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.card h3 { font-size: 19.5px; letter-spacing: -.02em; margin-bottom: 8px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

.card-lg { border-radius: var(--r-big); padding: 32px; box-shadow: var(--shadow-lift); }
.card-lg h3 { font-size: 24px; letter-spacing: -.025em; margin-bottom: 10px; }
.card-lg p { font-size: 15.5px; margin-bottom: 22px; }
.card-lg .shot { margin-top: auto; }

.card-tint { background: var(--tint); box-shadow: none; }
.card-tint p { color: #4A3A6E; }

.c2 { grid-column: span 2; }
.c3 { grid-column: span 3; }
.c4 { grid-column: span 4; }

/* ---------- Preise -------------------------------------------------------- */

.price-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(32px, 4vw, 44px);
}
.price-head > div { max-width: 36em; }
.price-head .lead { margin-top: 12px; }

.toggle {
  display: flex;
  gap: 4px;
  background: #F4F1FB;
  border-radius: var(--r-card);
  padding: 4px;
  flex: none;
}
.toggle button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.toggle button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(23, 16, 43, .08);
}

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: var(--paper);
  border-radius: var(--r-big);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-lift);
}
.plan-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-name h3 { font-size: 22px; letter-spacing: -.02em; }
.plan-for { font-size: 14.5px; line-height: 1.5; color: var(--ink-3); margin-top: 6px; }

.badge {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 5px 9px;
  border-radius: var(--r-btn);
  background: var(--tint);
  color: var(--accent);
}
.badge-solid { background: var(--accent); color: #fff; }

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.price b {
  font-family: Outfit, sans-serif;
  font-weight: 600;
  font-size: 42px;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.price s {
  font-family: Outfit, sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink-3);
  white-space: nowrap;
}
.price b.price-text { font-size: 30px; }
.price span { font-size: 14.5px; color: var(--ink-3); }
.price-note { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; font-variant-numeric: tabular-nums; }

.plan-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; line-height: 1.5; }
.plan-items li { display: flex; gap: 10px; align-items: baseline; }
.plan-items li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-2px);
}
.plan .btn { margin-top: auto; }
.plan-quiet .btn { background: #F4F1FB; color: var(--ink-3); border-color: var(--line); box-shadow: none; }
.plan-quiet .btn:hover { background: var(--line); color: var(--ink-2); }

.plan-dark { background: var(--dark); color: var(--on-dark); }
.plan-dark h3 { color: var(--on-dark); }
.plan-dark .plan-for,
.plan-dark .price span,
.plan-dark .price s,
.plan-dark .price-note { color: var(--on-dark-3); }
.plan-dark .plan-items li::before { background: var(--accent-soft); }

.addons {
  margin-top: 24px;
  background: var(--paper-2);
  border-radius: var(--r-card);
  padding: 24px 28px;
}
.addons h3 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
}
.addons dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; font-size: 15px; line-height: 1.55; }
.addons dt { font-weight: 600; }
.addons dd { margin: 0; color: var(--ink-2); }

/* ---------- In Kuerze ----------------------------------------------------- */

.roadmap { list-style: none; margin: 0; padding: 0; }
.roadmap li {
  display: grid;
  grid-template-columns: 120px minmax(0, 22ch) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.roadmap li:first-child { border-top: 1px solid var(--line); }
.roadmap h3 { font-size: 19.5px; letter-spacing: -.02em; }
.roadmap p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* ---------- FAQ ----------------------------------------------------------- */

.faq { display: flex; flex-direction: column; gap: 12px; max-width: 62rem; }
.faq details {
  background: var(--paper);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-family: Outfit, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--accent); transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding: 0 24px 22px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }

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

.access { text-align: center; }
.access h2 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.035em; }
.access .lead { margin: 16px auto 0; text-align: center; }

.promise {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-size: 15.5px;
  color: var(--ink);
}

.form-card {
  max-width: 680px;
  margin: clamp(32px, 4vw, 44px) auto 0;
  background: var(--paper);
  border-radius: var(--r-big);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-lift);
  text-align: left;
}
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .fieldset-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--field-line);
  border-radius: var(--r-btn);
  padding: 12px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 43, 242, .18);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #B4231F; }

.error {
  display: none;
  font-size: 13px;
  color: #B4231F;
  margin-top: 6px;
}
.field.has-error .error { display: block; }

fieldset { border: 0; margin: 0 0 16px; padding: 0; }
.seats { display: flex; gap: 8px; flex-wrap: wrap; }
.seats label {
  flex: 1 1 30%;
  margin: 0;
  border: 1px solid var(--field-line);
  border-radius: var(--r-btn);
  padding: 11px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.seats input { position: absolute; opacity: 0; pointer-events: none; }
.seats label.is-on,
.seats label:has(input:checked) { border-color: var(--accent); background: var(--tint-weak); color: var(--accent-deep); font-weight: 600; }
.seats label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--accent); }

.form-note { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); margin-top: 12px; }

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

.form-status { margin-top: 14px; font-size: 14.5px; line-height: 1.55; border-radius: var(--r-btn); padding: 12px 14px; }
.form-status:empty { display: none; }
.form-status.ok { background: #EAF6EE; color: #1E5B33; }
.form-status.bad { background: #FBEDEC; color: #8E1C18; }

button[data-loading="true"] { pointer-events: none; opacity: .8; }
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

.site-foot { padding-block: 44px; border-top: 1px solid var(--line-soft); }
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .logo-mark i { width: 20px; height: 20px; }
.foot-brand .logo-mark i + i { margin-left: -8px; }
.foot-brand .logo-type { font-size: 17px; }
.foot-domain { font-size: 13.5px; color: var(--ink-4); }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13.5px; }
.foot-links a { color: var(--ink-3); }
.foot-links a:hover { color: var(--accent); }

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

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ---------- Umbrueche ----------------------------------------------------- */

@media (max-width: 1040px) {
  .site-nav { gap: 16px; font-size: 15px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-head .wrap { gap: 12px; }
  .site-head .btn { display: none; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    z-index: 20;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 20px 40px -30px rgba(23, 16, 43, .6);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav[hidden] { display: none; }
  .site-nav a { padding-block: 13px; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .site-nav .btn { display: inline-flex; margin-top: 16px; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c2, .c3, .c4 { grid-column: span 1; }
  .card-lg { grid-column: span 2; }
  .plans { grid-template-columns: 1fr; }
  .addons dl { grid-template-columns: 1fr; }
  .roadmap li { grid-template-columns: 1fr; gap: 8px; }
  .flow { grid-template-columns: 1fr; gap: 32px; border-top: 0; padding-top: 0; }
  .flow-step { border-top: 1px solid var(--line); padding-top: 30px; }
  .flow-step::before { top: -5px; }
}

@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .card-lg { grid-column: span 1; }
  .tiles { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .price-head { align-items: flex-start; }
  .toggle { width: 100%; }
  .toggle button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Rechtsseiten -------------------------------------------------- */

.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.035em; margin-bottom: 28px; }
.legal h2 { font-size: 22px; letter-spacing: -.02em; margin: 40px 0 10px; }
.legal h3 { font-size: 17px; letter-spacing: -.01em; margin: 24px 0 6px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal ul { margin: 10px 0 0; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; margin-top: 10px; }
.legal .todo {
  display: inline-block;
  background: var(--tint);
  color: var(--accent-deep);
  border-radius: 6px;
  padding: 1px 7px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13.5px;
}
.legal .hint {
  background: var(--tint);
  border-radius: var(--r-card);
  padding: 18px 20px;
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.6;
  color: #3B2A66;
}
.legal .back { display: inline-block; margin-top: 44px; font-weight: 600; }
.legal + .wrap { max-width: 760px; } /* buendig mit der Textspalte darueber */
.legal + .wrap .stage-foot {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 28px;
  padding-bottom: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line-soft);
}

/* ---------- Fusszeile, gemeinsam fuer Platzhalter- und Rechtsseiten ----------------------------------------------------- */

.stage-foot {
  display: flex;
  flex-direction: row-reverse; /* Rechtliches rechts, Built in Public links */
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.stage-foot a { color: var(--ink-3); transition: color .16s var(--ease); }
.stage-foot a:hover { color: var(--ink); }

.foot-legal { display: flex; align-items: center; gap: 20px; }

/* Built in Public. „AI" ist das hervorgehobene Wort, darüber steigen drei
   Herzen versetzt auf und verglimmen. Übernommen aus dem Login-Fuß der App. */
.bip { display: inline-block; }
.bip-ai {
  position: relative;
  font-weight: 600;
  color: var(--accent);
}
.bip:hover .bip-ai { color: var(--accent); }

.hearts {
  position: absolute;
  top: -6px;
  left: 50%;
  pointer-events: none;
}
.hearts svg {
  position: absolute;
  color: var(--accent);
  /* site.css deckelt svg auf max-width:100%. Der Elternknoten ist null Pixel
     breit, damit waeren auch die Herzen null Pixel breit. */
  max-width: none;
}
.hearts svg:nth-child(1) { width: 10px; height: 10px; left: -13px; animation-delay: 0s; }
.hearts svg:nth-child(2) { width: 7px;  height: 7px;  left: 1px;   animation-delay: .9s; }
.hearts svg:nth-child(3) { width: 8px;  height: 8px;  left: -6px;  animation-delay: 1.8s; }

.herzflug { opacity: 0; animation: herzflug 2.7s ease-out infinite; }
@keyframes herzflug {
  0%   { opacity: 0;  transform: translateY(3px) scale(.6); }
  20%  { opacity: .9; }
  75%  { opacity: 0; }
  100% { opacity: 0;  transform: translateY(-18px) scale(1.05); }
}
