/* ===========================================================================
   Akquise-Coach
   Design-Tokens, Grundlayout, Komponenten.
   Hell ist Standard, dunkel folgt der Systemeinstellung.
   Ein Akzent (Smaragd), ein Radiensystem, ein Motiv: die Puls-Blase.
   ======================================================================== */

:root {
  /* Die Seite ist hell. Damit rendern auch Formularfelder, Rollbalken und
     Auswahlmenüs des Browsers hell, nicht im Systemdunkel. */
  color-scheme: light;

  /* Farben */
  --ink: #101614;
  --ink-2: #2d3a35;
  --ink-3: #566561;
  --paper: #ffffff;
  --surface: #ffffff;
  /* Nur dort, wo zwei weiße Flächen sonst ineinanderlaufen: Chatfenster,
     Balkenschienen, Segment-Schalter. Sonst wird nichts eingefärbt. */
  --surface-2: #f4f7f6;
  --line: #e4eae7;
  --line-strong: #ccd8d3;

  --accent: #0b6b4f;
  --accent-hover: #095a42;
  --accent-soft: #e6f2ed;
  --accent-line: #b9dccd;
  --accent-bright: #17c98a;
  --on-accent: #ffffff;

  --warn: #8a4b14;
  --warn-soft: #fdf1e5;

  /* Radien: Karten, Felder, Pillen. Nichts dazwischen. */
  --r-card: 16px;
  --r-field: 10px;
  --r-pill: 999px;

  /* Schatten, immer in der Flaechenfarbe getoent */
  --shadow-s: 0 1px 2px rgba(16, 22, 20, 0.04);
  --shadow-m: 0 2px 10px rgba(16, 22, 20, 0.05);
  --shadow-l: 0 10px 34px rgba(16, 22, 20, 0.07);

  /* Typografie */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Mass und Rhythmus */
  --wrap: 1180px;
  --gutter: 20px;
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 68px;
}

/* Dunkelmodus ist bewusst abgeschaltet: Die Seite lebt von Weiß, und im
   Dunkeln bleibt davon nichts übrig. Die Werte bleiben hier stehen und
   greifen nur, wenn jemand <html data-theme="dark"> setzt.
   Wieder an die Systemeinstellung koppeln: diese Zeile ersetzen durch
   @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
   und die schließende Klammer am Ende des Blocks wieder verdoppeln. */
:root[data-theme="dark"] {
    --ink: #e9efec;
    --ink-2: #c3cec9;
    --ink-3: #94a39d;
    --paper: #0d1211;
    --surface: #151d1a;
    --surface-2: #1b2421;
    --line: #27322e;
    --line-strong: #35433e;

    --accent: #2fd39a;
    --accent-hover: #4ae0ab;
    --accent-soft: #10251d;
    --accent-line: #27493b;
    --on-accent: #04130d;

    --warn: #f0b375;
    --warn-soft: #2a1d10;

    --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-m: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-l: 0 18px 48px rgba(0, 0, 0, 0.55);
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 3.9vw, 3rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.3rem); letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
/* Früher ein graues Band. Jetzt bleibt die Fläche weiß, die Trennung
   übernimmt eine Haarlinie. */
.section--paper {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
}

.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* --- Puls-Blase: das wiederkehrende Motiv ------------------------------- */

.pulse-mark { width: 30px; height: 30px; flex: 0 0 auto; color: var(--accent); }
.pulse-rule {
  display: block;
  width: 100%;
  max-width: 340px;
  height: 18px;
  color: var(--accent-line);
  margin: 0 auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background-color 0.16s var(--ease),
              border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-s);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-m); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn--ghost:active { transform: translateY(1px); }

.btn--quiet {
  background: none;
  border: none;
  color: var(--accent);
  min-height: 40px;
  padding: 8px 4px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn--block { width: 100%; }
.btn--small { min-height: 44px; padding: 10px 16px; font-size: 0.92rem; }

.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* --- Kopf -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  height: var(--header-h);
  transition: height 0.2s var(--ease);
}
.site-header.is-scrolled .header-inner { height: 58px; }

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.nav { display: none; }

@media (max-width: 899px) {
  .header-cta { display: none; }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .nav__link {
    position: relative;
    padding: 8px 13px;
    border-radius: var(--r-pill);
    color: var(--ink-2);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
  }
  .nav__link:hover { color: var(--ink); background: var(--surface-2); }
  .nav__link.is-active { color: var(--accent); background: var(--accent-soft); }
  .header-cta { margin-left: 10px; }
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.16s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) { .burger { display: none; } }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }

.mobile-nav__top {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
}
.mobile-nav__top .logo { margin-right: auto; }

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 10px var(--gutter) 40px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.mobile-nav__list a {
  display: block;
  padding: 16px 4px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__list a.is-active { color: var(--accent); }
.mobile-nav__list a.btn--primary { color: var(--on-accent); border-bottom: none; }
.mobile-nav__list li:last-child a { border-bottom: none; }
.mobile-nav .btn { margin-top: 18px; }

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

.hero { padding-block: clamp(18px, 3vw, 44px) var(--section-y); }

.hero__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: 1.08fr 1fr;
    grid-template-areas:
      "text card"
      "trust card";
    grid-template-rows: auto 1fr;
    gap: 22px 56px;
  }
  .hero__text { grid-area: text; padding-top: 18px; }
  .hero__grid > .card { grid-area: card; }
  .hero__grid > .trust { grid-area: trust; align-self: start; }
}

.hero__text h1 { margin-bottom: 16px; }
.hero__text .lead { margin-bottom: 22px; }

.trust {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.trust li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.97rem;
  color: var(--ink-2);
}
.trust svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--accent); margin-top: 2px; }

/* --- Karte (Formular, Chat, Auswertung) -------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}

.card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.card__head h2,
.card__head h3 { font-size: 1.05rem; margin: 0; }
.card__body { padding: 20px 22px; }
.card__foot {
  padding: 16px 22px 22px;
  display: grid;
  gap: 12px;
}

@media (max-width: 420px) {
  .card__body { padding: 18px 16px; }
  .card__head { padding: 16px; }
  .card__foot { padding: 14px 16px 18px; }
}

/* --- Fortschritt ------------------------------------------------------- */

.progress { display: grid; gap: 8px; }
.progress__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  color: var(--ink-3);
  font-weight: 500;
}
.progress__track {
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 33%;
  border-radius: var(--r-pill);
  background: var(--accent);
  transition: width 0.34s var(--ease);
}

/* --- Formularfelder ---------------------------------------------------- */

.step { display: none; }
.step.is-active { display: grid; gap: 17px; animation: stepIn 0.3s var(--ease); }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}

.field { display: grid; gap: 7px; }

.field > label,
.field__label {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
}

.hint { font-size: 0.85rem; color: var(--ink-3); }

.input,
.textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-field);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.textarea { min-height: 84px; resize: vertical; line-height: 1.5; }

.input::placeholder,
.textarea::placeholder { color: var(--ink-3); opacity: 1; }

.input:hover,
.textarea:hover { border-color: var(--ink-3); }
.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field.has-error .input,
.field.has-error .textarea { border-color: var(--warn); }

.error {
  display: none;
  font-size: 0.85rem;
  color: var(--warn);
  font-weight: 500;
}
.field.has-error .error { display: block; }

/* Chips: antippbare Auswahl statt Dropdown */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: none;
  margin: 0;
  padding: 0;
}
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.16s var(--ease);
}
.chip input:hover + span { border-color: var(--ink-3); color: var(--ink); }
.chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Szenario-Karten */

.option-cards {
  display: grid;
  gap: 10px;
  border: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 560px) { .option-cards { grid-template-columns: repeat(3, 1fr); } }

.option-card { position: relative; display: block; }
.option-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option-card > span {
  display: grid;
  gap: 5px;
  height: 100%;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-field);
  background: var(--surface);
  transition: all 0.16s var(--ease);
}
.option-card strong { font-size: 0.98rem; }
.option-card em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.45;
}
.option-card input:hover + span { border-color: var(--ink-3); }
.option-card input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.option-card input:checked + span em { color: var(--ink-2); }
.option-card input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Segment-Schalter */

.segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  margin: 0;
}
.segment-option { position: relative; }
.segment-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segment-option > span {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 9px 6px;
  border-radius: var(--r-pill);
  text-align: center;
  transition: all 0.16s var(--ease);
}
.segment-option strong { font-size: 0.93rem; font-weight: 600; }
.segment-option em {
  font-style: normal;
  font-size: 0.74rem;
  color: var(--ink-3);
  line-height: 1.3;
}
.segment-option input:checked + span {
  background: var(--surface);
  box-shadow: var(--shadow-s);
}
.segment-option input:checked + span strong { color: var(--accent); }
.segment-option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }

.form-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-nav .btn--primary { margin-left: auto; }

.form-note { font-size: 0.82rem; color: var(--ink-3); text-align: center; }

/* --- Ladezustand ------------------------------------------------------- */

.loading { display: grid; gap: 16px; justify-items: center; padding: 42px 10px; text-align: center; }
.loading__dots { display: flex; gap: 7px; }
.loading__dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.1s infinite var(--ease);
}
.loading__dots i:nth-child(2) { animation-delay: 0.14s; }
.loading__dots i:nth-child(3) { animation-delay: 0.28s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-7px); opacity: 1; }
}

/* --- Schritte (So funktioniert es) ------------------------------------- */

.flow {
  display: grid;
  gap: 14px;
  margin-top: 34px;
  counter-reset: schritt;
}
@media (min-width: 820px) {
  .flow { grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; align-items: stretch; }
  .flow__item:first-child { grid-row: span 1; }
}

.flow__item {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.flow__item:first-child {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.flow__num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0;
}
.flow__item p { font-size: 0.96rem; color: var(--ink-2); }

/* --- Warum das funktioniert (Bento mit Rhythmus) ----------------------- */

.bento {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}
@media (min-width: 760px) {
  .bento {
    grid-template-columns: 1.4fr 1fr;
    grid-auto-rows: minmax(150px, auto);
  }
  .bento__cell--wide { grid-column: span 2; }
}

.bento__cell {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 26px 24px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--surface);
}
.bento__cell p { font-size: 0.97rem; color: var(--ink-2); }

.bento__cell--accent {
  background: linear-gradient(145deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 82%, var(--accent-bright)) 100%);
  border-color: transparent;
  color: var(--on-accent);
}
.bento__cell--accent h3 { color: var(--on-accent); }
.bento__cell--accent p { color: var(--on-accent); }

/* Keine Grauflächen mehr. Die Zellen stehen über ihre Kontur,
   die einzige Farbfläche ist die Akzentzelle. */
.bento__cell--tint { background: var(--surface); }

.bento__cell--wide {
  display: grid;
  gap: 18px;
  align-items: center;
}
@media (min-width: 760px) {
  .bento__cell--wide { grid-template-columns: 1fr auto; }
}

.pulse-visual { width: 100%; max-width: 260px; height: 72px; color: var(--accent); justify-self: end; }

/* --- Beispiel ---------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.example-grid {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
@media (min-width: 940px) { .example-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }

/* --- Chat -------------------------------------------------------------- */

.chat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
}

.chat__who { display: grid; gap: 1px; }
.chat__who strong { font-size: 1rem; }
.chat__who span {
  font-size: 0.84rem;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chat__who { min-width: 0; }

.avatar {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--accent-line);
}

.chat__counter {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chat__log {
  display: grid;
  gap: 12px;
  padding: 20px;
  overflow-y: auto;
  max-height: min(52vh, 460px);
  min-height: 220px;
  align-content: start;
  background: var(--surface-2);
  scroll-behavior: smooth;
}
.chat__log--static { max-height: none; overflow: visible; }

.msg {
  max-width: 85%;
  padding: 11px 15px;
  border-radius: var(--r-card);
  font-size: 0.96rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  animation: msgIn 0.26s var(--ease);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.msg--kunde {
  justify-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  color: var(--ink);
}
.msg--ich {
  justify-self: end;
  background: var(--accent);
  border-bottom-right-radius: 5px;
  color: var(--on-accent);
}
.msg--system {
  justify-self: center;
  max-width: 100%;
  text-align: center;
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--ink-3);
  font-size: 0.86rem;
}

.typing {
  justify-self: start;
  display: inline-flex;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  border-bottom-left-radius: 5px;
}
.typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: bounce 1.1s infinite var(--ease);
}
.typing i:nth-child(2) { animation-delay: 0.14s; }
.typing i:nth-child(3) { animation-delay: 0.28s; }

.chat__compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  bottom: 0;
}
.chat__compose textarea {
  min-height: 48px;
  max-height: 140px;
  resize: none;
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-field);
}
.chat__compose textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.chat__send {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  transition: background-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.chat__send:hover { background: var(--accent-hover); }
.chat__send:active { transform: scale(0.94); }
.chat__send svg { width: 20px; height: 20px; }

.chat__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 16px 14px;
  flex-wrap: wrap;
}

/* --- Auswertung -------------------------------------------------------- */

.score {
  display: grid;
  gap: 18px;
  align-items: center;
  justify-items: center;
  text-align: center;
}
@media (min-width: 560px) {
  .score { grid-template-columns: auto 1fr; justify-items: start; text-align: left; }
}

.ring { width: 124px; height: 124px; flex: 0 0 auto; }
.ring__track { stroke: var(--surface-2); }
.ring__value {
  stroke: var(--accent);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.ring__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  fill: var(--ink);
}
.ring__max { font-size: 11px; fill: var(--ink-3); font-family: var(--font-body); }

.bars { display: grid; gap: 14px; margin-top: 26px; }
.bar__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.bar__top b { font-variant-numeric: tabular-nums; font-weight: 600; }
.bar__track {
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  width: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  transition: width 0.9s var(--ease);
}
.bar__hint { font-size: 0.84rem; color: var(--ink-3); margin-top: 5px; }

.finding {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  background: var(--surface);
}
.finding + .finding { margin-top: 10px; }
.finding__row { display: grid; gap: 4px; }
.finding__tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.finding__row--better .finding__tag { color: var(--accent); }
.finding q { font-style: normal; quotes: "\201E" "\201C"; }

.result-block { margin-top: 28px; }
.result-block h3 { margin-bottom: 10px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 0.87rem;
  font-weight: 600;
}

.keeper {
  padding: 20px 22px;
  border-radius: var(--r-card);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.keeper p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checklist li { display: flex; gap: 10px; font-size: 0.96rem; color: var(--ink-2); }
.checklist svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--accent); margin-top: 3px; }

/* --- Paywall ----------------------------------------------------------- */

.paywall {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--r-card);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  margin-top: 24px;
}
.paywall h3 { margin: 0; }

/* --- Preis ------------------------------------------------------------- */

.price-wrap {
  display: grid;
  gap: 20px;
  margin-top: 34px;
  align-items: start;
}
@media (min-width: 880px) { .price-wrap { grid-template-columns: 1fr 1fr; gap: 28px; } }

.price-box {
  padding: 30px 28px;
  border-radius: var(--r-card);
  border: 1px solid var(--accent-line);
  background: var(--surface);
  box-shadow: var(--shadow-m);
}
.price-box__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  margin-bottom: 4px;
}
.price-box__amount b { font-size: clamp(2.4rem, 5vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em; }
.price-box__amount span { font-size: 1rem; color: var(--ink-3); font-family: var(--font-body); }
.price-box__then { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 20px; }
.price-box .checklist { margin-bottom: 24px; }

.price-side { display: grid; gap: 18px; align-content: start; }
.price-side__demo {
  padding: 24px;
  border-radius: var(--r-card);
  border: 1px dashed var(--line-strong);
  background: var(--surface);
}
.price-math {
  padding: 20px 22px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.97rem;
  color: var(--ink-2);
}
.price-math strong { color: var(--ink); }

/* --- Dahinter ---------------------------------------------------------- */

.about {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
}
@media (min-width: 720px) { .about { grid-template-columns: 180px 1fr; gap: 36px; } }

.about__photo {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 0.82rem;
  text-align: center;
  padding: 14px;
}

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

.faq { margin-top: 28px; max-width: 760px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 19px 2px;
  background: none;
  border: none;
  font: inherit;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq__q svg {
  width: 20px; height: 20px;
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--accent);
  transition: transform 0.24s var(--ease);
}
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease);
}
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding: 0 2px 20px; color: var(--ink-2); font-size: 0.97rem; }

/* --- Abschluss und Fuss ------------------------------------------------ */

.closing { text-align: center; display: grid; justify-items: center; gap: 18px; }
.closing p { margin-inline: auto; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 36px;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
/* Impressum und Datenschutz müssen sich auf dem Handy treffen lassen. */
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 2px;
}
.site-footer a { color: var(--ink-2); }

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

.legal { max-width: 720px; padding-block: clamp(40px, 7vw, 80px); }
.legal h2 { margin-top: 36px; }
.legal .placeholder {
  padding: 14px 16px;
  border-radius: var(--r-field);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* --- Einblenden beim Scrollen ------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* --- Sehr kleine Geraete ----------------------------------------------- */

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .segment { grid-template-columns: 1fr; border-radius: var(--r-field); }
  .segment-option > span { border-radius: var(--r-field); }
  .form-nav { flex-wrap: wrap; }
  .form-nav .btn { flex: 1 1 100%; }
  .form-nav .btn--primary { margin-left: 0; order: -1; }
}
