/* ==========================================================================
   NAHLIO — Zwei Scroll-Geschichten (Wunsch 05.11.)
   1. "So finden Kunden zu Ihnen" (.ks): eine Seite, die beim Scrollen stehen bleibt. Links in der Mitte der
      Titel und der aktuelle Schritt, rechts ein Handy: Google-Suche "Autowerkstatt Dorsten" -> der Betrieb mit den
      besten Bewertungen faellt auf -> Tipp aufs Foto: Profil mit Bildern und Bewertungen (Vertrauen) ->
      Leistungen -> Tipp auf WhatsApp: der Termin-Assistent (Bot), Terminanfrage als Formular, bestaetigt, in den
      Kalender -> Bewertung.
      story.js setzt die Stufen als Klassen .is-s0 ... .is-s11 (aufsteigend: .is-s5 heisst "mindestens Stufe 5").
      Kein Finger-Kreis: Ein Tipp zeigt sich nur am Element selbst (kurz eingedrueckt).
   2. "Finden Ihre Kunden online die richtigen Antworten?" (.bq): zuerst gross in der Mitte, beim Scrollen
      loest sich der Titel auf (Raum entsteht), dann drei Fragen in Kreisen, eine nach der anderen vorn.
   Bewegung nur ueber transform, opacity und (wenig) filter. Weniger Bewegung: Wechsel ohne Gleiten.
   ========================================================================== */

.ks, .bq {
  --ks-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ks-move: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- 1. Kundenweg: Buehne ------------------------------------------------------------------ */
.ks.section { padding-block: 0; }
.ks { --ks-n: 11; --ks-step: 30svh; }   /* schneller durch (Wunsch 10.11., vorher 50svh) */
.ks__track { position: relative; height: calc(100svh + var(--ks-n) * var(--ks-step)); }
.ks__stage {
  position: sticky; top: 0; height: 100svh;
  display: grid; align-items: center;
  padding-top: var(--nav-h);
}
.ks__in {
  display: grid; grid-template-columns: minmax(0, 34rem) auto; align-items: center; justify-content: center;
  gap: clamp(48px, 9vw, 170px);
  max-width: calc(1280px + 2 * var(--gutter));
}
.ks__title {
  font-family: var(--font-serif, Georgia, serif); font-weight: var(--w-head, 440);
  font-size: clamp(40px, 4.6vw, 84px); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--ink); max-width: 16ch; text-wrap: balance;
  margin: 0 0 clamp(28px, 4.5svh, 52px);
}
.ks__steps { display: grid; margin: 0; padding: 0; list-style: none; }
.ks__step {
  grid-area: 1 / 1; align-self: start;
  opacity: 0; transform: translateY(14px);
  transition: opacity 220ms ease, transform 360ms var(--ks-out);
}
.ks__step.is-active { opacity: 1; transform: none; transition-delay: 140ms; }
.ks__step-title {
  margin: 10px 0 12px; font-family: var(--font-display); font-weight: 650;
  font-size: clamp(26px, 1.2vw + 14px, 36px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink);
}
/* Ueberschriften hervorgehoben (Wunsch 11.11.): in unserem Blau - im Titel "Kunden zu Ihnen", dazu jede Schritt-
   Ueberschrift (wie "wie vor Ort." im Hero: --brand-deep, gut lesbar auf Weiss) */
.ks__hl { color: var(--brand-deep); }
.ks__step-text { margin: 0; max-width: 31em; font-size: clamp(17px, 0.5vw + 11.5px, 21px); line-height: 1.5; color: var(--text-2); }
/* Neuer Text (11./12.11.): Kernsatz je Schritt (fett) und der Gedanke des Kunden (kursiv) */
.ks__step-lead { margin: 0 0 6px; max-width: 31em; font-size: clamp(17px, 0.5vw + 11.5px, 21px); line-height: 1.4; color: var(--ink); }
.ks__step-lead strong { font-weight: 600; }
.ks__step-thought { margin: 12px 0 0; max-width: 31em; font-size: clamp(16px, 0.4vw + 11px, 19px); line-height: 1.45; color: var(--ink-70, var(--text-2)); }
.ks__bar { display: flex; gap: 8px; margin-top: clamp(22px, 3.4svh, 36px); }
.ks__bar i { width: 34px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--brand-deep) 18%, transparent);
             transition: background-color 300ms ease; }
.ks__bar i.is-on { background: var(--brand-deep); }

/* ---------- Handy ---------------------------------------------------------------------------------- */
.ks-phone {
  container-type: inline-size;
  height: min(calc(100svh - var(--nav-h) - 64px), 760px); aspect-ratio: 0.486;
  padding: 3.1%; border-radius: 13.5% / 6.6%;
  background: #111416;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.09), 0 40px 70px -30px rgba(11, 17, 20, 0.45), 0 14px 28px -14px rgba(11, 17, 20, 0.3);
}
.ks-phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
  border-radius: 10.8% / 5.2%; background: #fff; color: #1f1f1f;
  font-size: 4cqi;                                   /* Bildschirm = 25 em breit, gut 53 em hoch */
  font-family: var(--font-display); line-height: 1.3;          /* Geist wie die Seite (keine Systemschriften) */
  -webkit-user-select: none; user-select: none;
}
.ks-status {
  position: absolute; z-index: 20; inset: 0 0 auto; height: 2.6em;
  display: flex; align-items: center; justify-content: space-between; padding: 0.15em 1.55em 0 2.1em;
  font-size: 0.86em; color: #0b0d0e; pointer-events: none;
}
.ks-status b { font-weight: 600; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.ks-status__ic { display: flex; align-items: center; gap: 0.35em; }
.ks-status__ic svg { height: 0.78em; width: auto; fill: currentColor; }
.ks-island { position: absolute; z-index: 21; top: 0.5em; left: 50%; width: 6.6em; height: 1.9em; margin-left: -3.3em; border-radius: 1em; background: #000; }
.ks-ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.ks-app { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; padding-top: 2.6em; background: #fff; }
.ks-g { z-index: 1; }
.ks-p { z-index: 2; }
.ks-w { z-index: 3; }
.ks-r { z-index: 4; }

/* Sterne: graue Form, gelb gefuellt bis zum Wert (--v von 5) */
.ks-stars {
  display: inline-block; vertical-align: -0.1em; width: 4.9em; height: 0.92em;
  background: linear-gradient(90deg, #fbbc04 calc(var(--v, 5) / 5 * 100%), #dadce0 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 19'%3E%3Cg%3E%3Cpath id='s' d='M9.5 0l2.9 5.9 6.6.9-4.8 4.6 1.1 6.5-5.8-3.1-5.8 3.1 1.1-6.5L0 6.8l6.6-.9z'/%3E%3Cuse href='%23s' x='20'/%3E%3Cuse href='%23s' x='40'/%3E%3Cuse href='%23s' x='60'/%3E%3Cuse href='%23s' x='80'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 19'%3E%3Cg%3E%3Cpath id='s' d='M9.5 0l2.9 5.9 6.6.9-4.8 4.6 1.1 6.5-5.8-3.1-5.8 3.1 1.1-6.5L0 6.8l6.6-.9z'/%3E%3Cuse href='%23s' x='20'/%3E%3Cuse href='%23s' x='40'/%3E%3Cuse href='%23s' x='60'/%3E%3Cuse href='%23s' x='80'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.ks-rate { color: #4d5156; }
.ks-av { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--c, #5f6368); color: #fff; font-weight: 700; }

/* ---------- 1) Google-Suche ------------------------------------------------------------------------ */
.ks-g { color: #1f1f1f; }
.ks-g__top { flex: none; padding: 0.55em 0.9em 0; border-bottom: 1px solid #ebebeb; }
.ks-g__bar {
  display: flex; align-items: center; gap: 0.6em; height: 2.9em; padding: 0 0.95em;
  border-radius: 1.45em; background: #fff; box-shadow: 0 1px 6px rgba(32, 33, 36, 0.26); color: #5f6368;
}
.ks-g__q { position: relative; flex: 1; min-width: 0; height: 1.3em; overflow: hidden; white-space: nowrap; font-size: 1.02em; color: #1f1f1f; }
.ks-g__ph { position: absolute; left: 0; top: 0; color: #70757a; font-size: 0.9em; line-height: 1.45; }
.ks-g__q.has-text .ks-g__ph { display: none; }
.ks-g__x { opacity: 0; transition: opacity 200ms ease; }
.ks-g__q.has-text + .ks-g__x { opacity: 1; }
.ks-g__mic { color: #1a73e8; }
.ks-g__tabs { display: flex; gap: 1.25em; padding: 0.85em 0.2em 0; font-size: 0.8em; color: #5f6368; white-space: nowrap; overflow: hidden; }
.ks-g__tabs span { padding-bottom: 0.6em; border-bottom: 0.2em solid transparent; }
.ks-g__tabs .is-on { color: #1f1f1f; font-weight: 700; border-bottom-color: #1f1f1f; }
.ks-g__body { flex: 1; min-height: 0; padding: 0.9em 0.9em 0; }
.ks-g__packhead { display: flex; align-items: center; gap: 0.45em; white-space: nowrap; overflow: hidden; }
.ks-g__packhead b { font-size: 1.12em; margin-right: 0.3em; font-weight: 400; }
.ks-chip { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.32em 0.7em; border: 1px solid #dadce0; border-radius: 1em; font-size: 0.68em; color: #3c4043; }
.ks-chip svg { width: 0.7em; height: 0.45em; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ks-g__map { position: relative; height: 7.6em; margin: 0.7em 0 0.2em; border-radius: 0.9em; overflow: hidden; }
.ks-g__map svg { display: block; width: 100%; height: 100%; }
.ks-pin { transform: translate(var(--px), var(--py)); fill: #ea4335; transition: transform 380ms var(--ks-out), opacity 300ms ease; }
.ks-pin circle { fill: #a50e0e; }
.ks-g__res {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 5em; gap: 0.55em 0.8em;
  padding: 0.75em 0.55em; margin: 0 -0.55em; border-top: 1px solid #ebebeb; border-radius: 0.8em; background: #fff;
}
.ks-g__rt { display: grid; gap: 0.2em; align-content: start; font-size: 0.74em; color: #4d5156; min-width: 0; }
.ks-g__rt > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-g__rt b { font-size: 1.24em; font-weight: 700; color: #1f1f1f; }
.ks-g__rt em, .ks-p__row em { font-style: normal; color: #188038; }
.ks-g__rt em.is-closed { color: #d93025; }
.ks-g__thumb { grid-column: 2; grid-row: 1; width: 5em; height: 5em; border-radius: 0.6em; object-fit: cover; }
.ks-g__acts { grid-column: 1 / -1; display: flex; gap: 0.4em; }
.ks-g__acts span { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.38em 0.8em; border: 1px solid #dadce0; border-radius: 1.2em; font-size: 0.7em; color: #0b57d0; }
.ks-g__acts .ks-ic { width: 1.15em; height: 1.15em; }

/* Ablauf: Treffer kommen nach dem Tippen (Stufe 1), der beste faellt auf (Stufe 2), Tipp aufs Foto (Stufe 3). */
.ks.is-live .ks-g__packhead, .ks.is-live .ks-g__map, .ks.is-live .ks-g__res {
  opacity: 0; transform: translateY(0.8em);
  transition: opacity 200ms ease, transform 200ms ease;
}
.ks.is-s1 .ks-g__packhead, .ks.is-s1 .ks-g__map, .ks.is-s1 .ks-g__res {
  opacity: 1; transform: none;
  transition: opacity 380ms ease, transform 520ms var(--ks-out), box-shadow 420ms ease;
}
.ks.is-s1 .ks-g__packhead { transition-delay: 1000ms; }
.ks.is-s1 .ks-g__map { transition-delay: 1060ms; }
.ks.is-s1 .ks-g__res { transition-delay: calc(1140ms + var(--r) * 90ms); }
.ks.is-s2 .ks-g__res:not(.ks-g__res--best), .ks.is-s2 .ks-pin:not(.ks-pin--best) { opacity: 0.32; transition-delay: 0ms; }
.ks.is-s2 .ks-g__res--best {
  z-index: 1; transform: scale(1.04); border-top-color: transparent; transition-delay: 0ms;
  box-shadow: 0 0 0 0.12em rgba(1, 171, 195, 0.55), 0 0.9em 2em -0.6em rgba(11, 17, 20, 0.35);
}
.ks.is-s2 .ks-g__res--best + .ks-g__res { border-top-color: transparent; }
.ks.is-s2 .ks-pin--best { transform: translate(var(--px), var(--py)) scale(1.45); }
.ks.is-s3 .ks-g__res--best .ks-g__thumb { animation: ks-tap 300ms ease-out both; }
@keyframes ks-tap { 0% { transform: none; } 40% { transform: scale(0.9); filter: brightness(0.85); } 100% { transform: none; } }

/* Seitenwechsel wie auf dem Handy: Profil schiebt sich von rechts herein, die Suche weicht nach links. */
.ks-g { transition: transform 420ms var(--ks-move); }
.ks-g::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 420ms ease; }
.ks.is-s3 .ks-g { transform: translateX(-26%); transition: transform 560ms var(--ks-move) 280ms; }
.ks.is-s3 .ks-g::after { opacity: 0.18; transition: opacity 560ms ease 280ms; }
.ks-p { transform: translateX(101%); transition: transform 420ms var(--ks-move); box-shadow: -0.6em 0 1.6em rgba(0, 0, 0, 0.12); }
.ks.is-s3 .ks-p { transform: none; transition: transform 560ms var(--ks-move) 280ms; }

/* ---------- 2) Google-Unternehmensprofil ----------------------------------------------------------- */
.ks-p__top { flex: none; display: flex; align-items: center; gap: 0.9em; height: 2.9em; padding: 0 0.95em; border-bottom: 1px solid #ebebeb; color: #3c4043; }
.ks-p__top span { flex: 1; font-size: 0.95em; color: #1f1f1f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-p__view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.ks-p__scroll { transition: transform 640ms var(--ks-move); }
.ks.is-s4 .ks-p__scroll { transform: translateY(-16.4em); }
.ks-p__photos { position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 0.15em; height: 12.6em; overflow: hidden; }
.ks-p__photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.ks-p__photos img:first-child { grid-row: 1 / 3; }
.ks-p__count { position: absolute; right: 0.55em; bottom: 0.55em; padding: 0.28em 0.65em; border-radius: 1em; background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 0.66em; }
.ks-p__head { display: grid; gap: 0.25em; padding: 0.85em 0.95em 0.55em; }
.ks-p__name { font-size: 1.42em; font-weight: 400; color: #1f1f1f; }
.ks-p__head .ks-rate { font-size: 0.8em; }
.ks-p__head .ks-rate u { text-decoration: none; color: #0b57d0; }
.ks-p__cat { font-size: 0.78em; color: #4d5156; }
.ks-p__acts { display: flex; justify-content: space-between; padding: 0.35em 0.75em 0.8em; }
.ks-p__acts > span { display: grid; justify-items: center; gap: 0.4em; font-size: 0.64em; color: #0b57d0; }
.ks-p__acts i { display: grid; place-items: center; width: 4.4em; height: 4.4em; border-radius: 50%; background: #d3e3fd; color: #041e49; }
.ks-p__acts i svg { width: 1.9em; height: 1.9em; }
.ks-p__chat { color: #0b7a3e !important; }
.ks-p__chat i { background: #25d366; color: #fff; }
.ks.is-s6 .ks-p__chat i { animation: ks-tap 300ms ease-out both; }
.ks-p__tabs { position: relative; display: flex; gap: 1.15em; padding: 0 0.95em; border-bottom: 1px solid #ebebeb; font-size: 0.76em; color: #5f6368; white-space: nowrap; overflow: hidden; }
.ks-p__tab { position: relative; padding: 0.85em 0 0.75em; }
.ks-p__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0.24em; border-radius: 0.2em 0.2em 0 0; background: #0b57d0;
                    transform: scaleX(0); transition: transform 300ms var(--ks-out); }
.ks-p__ink { display: none; }
.ks-p__tab--ov { color: #0b57d0; }
.ks-p__tab--ov::after { transform: none; }
.ks.is-s5 .ks-p__tab--ov { color: #5f6368; }
.ks.is-s5 .ks-p__tab--ov::after { transform: scaleX(0); }
.ks.is-s5 .ks-p__tab--lei { color: #0b57d0; }
.ks.is-s5 .ks-p__tab--lei::after { transform: none; }
.ks-p__panes { position: relative; }
.ks-p__pane { transition: opacity 260ms ease, transform 360ms var(--ks-out); }
.ks-p__pane--lei { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateX(1.5em); }
.ks.is-s5 .ks-p__pane--ov { opacity: 0; transform: translateX(-1.5em); }
.ks.is-s5 .ks-p__pane--lei { opacity: 1; transform: none; transition-delay: 120ms; }
.ks-p__row { display: flex; align-items: center; gap: 0.85em; padding: 0.72em 0.95em; border-bottom: 1px solid #f1f3f4; font-size: 0.78em; color: #1f1f1f; }
.ks-p__row svg { width: 1.45em; height: 1.45em; color: #5f6368; }
.ks-p__row--wa svg { color: #25d366; }
.ks-p__row--wa span { color: #0b57d0; }
.ks-p__revs { padding: 0.8em 0.95em; }
.ks-p__sum { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.2em; margin-bottom: 0.4em; border-radius: 0.7em;
             transition: background-color 500ms ease, box-shadow 500ms ease; }
.ks-p__big { display: grid; justify-items: center; gap: 0.15em; font-size: 0.78em; color: #4d5156; }
.ks-p__big b { font-size: 3.1em; font-weight: 400; line-height: 1; color: #1f1f1f; }
.ks-p__bars { display: grid; gap: 0.32em; }
.ks-p__bars i { height: 0.45em; border-radius: 0.3em; background: linear-gradient(90deg, #fbbc04 var(--w), #e8eaed 0); }
.ks.is-s4 .ks-p__sum { background: #fef7e0; box-shadow: 0 0 0 0.5em #fef7e0; transition-delay: 500ms; }
.ks-rev { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: 0.75em; padding: 0.8em 0; border-top: 1px solid #f1f3f4; font-size: 0.74em; }
.ks-rev > div { display: grid; gap: 0.2em; }
.ks-rev b { color: #1f1f1f; }
.ks-rev span { color: #70757a; font-size: 0.92em; }
.ks-rev span .ks-stars { margin-right: 0.3em; }
.ks-rev p { margin: 0.25em 0 0; line-height: 1.42; color: #1f1f1f; }
.ks-svc { display: grid; grid-template-columns: 4.3em minmax(0, 1fr); gap: 0.85em; align-items: center; padding: 0.8em 0.95em; border-bottom: 1px solid #f1f3f4; }
.ks-svc img { width: 4.3em; height: 4.3em; border-radius: 0.6em; object-fit: cover; }
.ks-svc > div { display: grid; gap: 0.18em; font-size: 0.76em; color: #5f6368; }
.ks-svc b { font-size: 1.08em; color: #1f1f1f; }
.ks-svc em { font-style: normal; font-weight: 700; color: #1f1f1f; }
.ks.is-live .ks-svc { opacity: 0; transform: translateY(0.6em); transition: opacity 200ms ease, transform 200ms ease; }
.ks.is-s5 .ks-svc { opacity: 1; transform: none; transition: opacity 320ms ease, transform 460ms var(--ks-out); }
.ks.is-s5 .ks-svc:nth-child(1) { transition-delay: 200ms; }
.ks.is-s5 .ks-svc:nth-child(2) { transition-delay: 270ms; }
.ks.is-s5 .ks-svc:nth-child(3) { transition-delay: 340ms; }
.ks.is-s5 .ks-svc:nth-child(4) { transition-delay: 410ms; }

/* ---------- 3) WhatsApp ----------------------------------------------------------------------------- */
.ks-w {
  color: #111b21;
  opacity: 0; transform: translateY(4%) scale(0.96); transition: opacity 240ms ease, transform 320ms ease;
}
.ks.is-s6 .ks-w { opacity: 1; transform: none; transition: opacity 320ms ease 420ms, transform 560ms var(--ks-out) 420ms; }
.ks-w__head { flex: none; display: flex; align-items: center; gap: 0.6em; padding: 0.45em 0.8em 0.55em 0.5em; border-bottom: 1px solid #e9edef; color: #0b1114; }
.ks-w__head img { width: 2.3em; height: 2.3em; border-radius: 50%; object-fit: cover; }
.ks-w__head > div { flex: 1; display: grid; min-width: 0; line-height: 1.2; }
.ks-w__head b { font-size: 0.9em; font-weight: 600; }
.ks-w__head i { font-style: normal; font-size: 0.66em; color: #667781; }
.ks-w__head .ks-ic { width: 1.35em; height: 1.35em; }
.ks-w__chat {
  flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0.45em; padding: 0.7em 0.7em 0.5em;
  background-color: #efeae2;                     /* WhatsApp-Chatgrund, flach */
}
.ks-w__day { align-self: center; padding: 0.3em 0.85em; border-radius: 0.6em; background: #fff; color: #54656f; font-size: 0.64em; font-weight: 600; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.ks-w__msg { position: relative; max-width: 82%; padding: 0.42em 0.62em 0.38em; border-radius: 0.62em; font-size: 0.76em; line-height: 1.38;
             background: #fff; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.ks-w__msg--out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 0; }
.ks-w__msg--in { border-top-left-radius: 0; }
/* kleine Spitze wie bei WhatsApp (Wunsch 09.11.: Blasen wie im Original, so breit wie der Text) */
.ks-w__msg--out::after, .ks-w__bot > .ks-w__msg--in:first-child::before {
  content: ""; position: absolute; top: 0; width: 0.62em; height: 0.8em;
}
.ks-w__msg--out::after { right: -0.58em; background: #d9fdd3; clip-path: polygon(0 0, 100% 0, 0 100%); }
.ks-w__bot > .ks-w__msg--in:first-child::before { left: -0.58em; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.ks-w__t { float: right; display: inline-flex; align-items: center; gap: 0.25em; margin: 0.55em 0 -0.2em 0.7em; font-size: 0.74em; color: #667781; white-space: nowrap; }
.ks-w__t svg { width: 1.3em; height: 0.75em; fill: none; stroke: #53bdeb; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ks-w__input { flex: none; display: flex; align-items: center; gap: 0.75em; padding: 0.5em 0.85em 1.7em; background: #f6f6f6; color: #54656f; }
.ks-w__input span { flex: 1; padding: 0.45em 0.85em; border-radius: 1.2em; background: #fff; border: 1px solid #e2e2e2; font-size: 0.78em; color: #8696a0; }
/* Der Termin-Assistent (Bot, Wunsch 05.11.): Antworten kommen sofort, mit Antwort-Knoepfen. Ein Tipp zeigt sich
   am Knopf selbst (kurz eingedrueckt, dann markiert), danach steht die Wahl als eigene Nachricht im Verlauf.
   Neue Nachrichten schieben die alten nach oben (Zeilen klappen auf, der Verlauf haengt unten wie im Original). */
.ks-w__chat { justify-content: flex-end; gap: 0; }
.ks-w__day, .ks-w__note { flex: none; }
.ks-w__note { align-self: center; max-width: 88%; margin-top: 0.45em; padding: 0.35em 0.8em; border-radius: 0.6em; background: #fff5c4; color: #54656f; font-size: 0.6em; text-align: center; }
.ks-w__row { flex: none; display: grid; grid-template-rows: 0fr; width: 100%; margin-top: 0; opacity: 0;
             transition: grid-template-rows 160ms ease, margin-top 160ms ease, opacity 120ms ease; }
.ks-w__row > * { min-height: 0; overflow: hidden; padding: 0 0.1em 0.12em; }
/* Kunde rechts, Assistent links; jede Blase so breit wie ihr Text (hoechstens 80 %), Knoepfe so breit wie die Blase */
.ks-w__out { justify-self: end; width: fit-content; max-width: 80%; padding: 0 0.62em 0.12em 0; }
.ks-w__out .ks-w__msg { display: block; max-width: none; }
.ks-w__bot { display: grid; gap: 0.2em; justify-self: start; width: fit-content; max-width: 80%; padding: 0 0 0.12em 0.62em; }
.ks-w__bot .ks-w__msg { max-width: none; }
.ks-w__btns { display: grid; gap: 0.2em; }
.ks-w__btn { display: block; padding: 0.55em 0.6em; border-radius: 0.6em; background: #fff; color: #008069; font-size: 0.74em; font-weight: 600; text-align: center;
             box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.ks-w__conf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6em; align-items: start; }
.ks-w__conf > div { display: grid; gap: 0.15em; }
.ks-w__conf b { font-size: 1.05em; }
.ks-w__conf div span { color: #3b4a54; font-size: 0.92em; }
.ks-w__conf .ks-w__t { grid-column: 1 / -1; justify-self: end; margin-top: 0; }
.ks-w__ok { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: #00a884; }
.ks-w__ok svg { width: 1.2em; height: 1.2em; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

/* Ablauf (Wunsch 08.11., Drehbuch des Inhabers): schnell wie ein echter Chat.
   s6 "Hallo 👋" -> Begruessung mit vier Knoepfen; s7 "📅 Termin anfragen" -> "Gerne 😊 ..." mit Formular-Knopf;
   s8 Formular faehrt hoch und fuellt sich von selbst (Leistung, Datum, Uhrzeit, Name), "Anfrage senden",
   Formular zu, "Termin bestaetigt ✅" (~2,5 s); s9 "📅 Im Kalender speichern" -> Kalender -> "gespeichert". */
.ks.is-s6 .ks-w__row[data-m="1"], .ks.is-s6 .ks-w__row[data-m="2"],
.ks.is-s7 .ks-w__row[data-m="3"], .ks.is-s7 .ks-w__row[data-m="4"],
.ks.is-s8 .ks-w__row[data-m="5"] {
  grid-template-rows: 1fr; margin-top: 0.45em; opacity: 1;
  transition: grid-template-rows 320ms var(--ks-out), margin-top 320ms var(--ks-out), opacity 220ms ease;
}
.ks.is-s6 .ks-w__row[data-m="1"] { transition-delay: 800ms; }
.ks.is-s6 .ks-w__row[data-m="2"] { transition-delay: 1300ms; }
.ks.is-s7 .ks-w__row[data-m="1"], .ks.is-s7 .ks-w__row[data-m="2"] { transition-delay: 0ms; }
.ks.is-s7 .ks-w__row[data-m="3"] { transition-delay: 380ms; }
.ks.is-s7 .ks-w__row[data-m="4"] { transition-delay: 880ms; }
.ks.is-s8 .ks-w__row[data-m="3"], .ks.is-s8 .ks-w__row[data-m="4"] { transition-delay: 0ms; }
.ks.is-s8 .ks-w__row[data-m="5"] { transition-delay: 2560ms; }
.ks.is-s9 .ks-w__row[data-m="5"] { transition-delay: 0ms; }
.ks.is-s7 .ks-w__row[data-m="2"] .ks-w__btn--pick,
.ks.is-s8 .ks-w__btn--flow,
.ks.is-s9 .ks-w__btn--cal { animation: ks-btn 420ms ease-out both; }
@keyframes ks-btn { 0% { transform: none; background: #fff; } 35% { transform: scale(0.95); background: #d7efe6; } 100% { transform: none; background: #e7f6f1; } }

.ks-w__btn--flow { display: flex; align-items: center; justify-content: center; gap: 0.45em; }
.ks-w__btn--flow svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ks-w__done { display: grid; gap: 0.12em; }
.ks-w__done b { font-weight: 600; }
.ks-w__done span:not(.ks-w__t) { color: #3b4a54; }
.ks-w__done .ks-w__t { justify-self: end; margin-top: 0.1em; }

/* Formular (wie ein WhatsApp-Formular): Bogen von unten, Felder mit Rahmen, gruener Knopf */
.ks-w__dim { position: absolute; inset: 0; z-index: 4; background: rgba(11, 20, 26, 0.42); opacity: 0; pointer-events: none; }
.ks-w__sheet, .ks-w__cal {
  position: absolute; left: 0; right: 0; bottom: 0; top: 30%; z-index: 5; display: flex; flex-direction: column;
  border-radius: 1em 1em 0 0; background: #fff; transform: translateY(105%); box-shadow: 0 -0.4em 1.6em rgba(11, 20, 26, 0.16);
}
.ks-w__sh-head { flex: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6em; padding: 0.85em 0.9em 0.75em; border-bottom: 1px solid #e9edef; color: #111b21; }
.ks-w__sh-head b { text-align: center; font-size: 0.86em; font-weight: 600; }
.ks-w__sh-head .ks-ic { width: 1.25em; height: 1.25em; }
.ks-w__fields { flex: 1; min-height: 0; display: grid; align-content: start; gap: 0.95em; padding: 1em 1em 0.8em; }
.ks-w__lead { margin: 0 0 0.1em; font-size: 0.72em; color: #54656f; }
.ks-w__f { position: relative; display: flex; align-items: center; gap: 0.5em; min-height: 2.95em; padding: 0.55em 0.8em; border: 1px solid #c7ccd1; border-radius: 0.55em; }
.ks-w__fl { position: absolute; top: -0.62em; left: 0.55em; padding: 0 0.3em; background: #fff; font-size: 0.6em; color: #667781; }
.ks-w__fv { flex: 1; display: grid; font-size: 0.8em; }
.ks-w__fv em, .ks-w__fv b { grid-area: 1 / 1; font-style: normal; white-space: nowrap; }
.ks-w__fv em { color: #8696a0; }
.ks-w__fv b { font-weight: 500; color: #111b21; opacity: 0; }
.ks-w__f svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: #54656f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ks-w__sh-foot { flex: none; display: grid; gap: 0.6em; padding: 0.75em 1em 1.7em; border-top: 1px solid #e9edef; }
.ks-w__send { display: block; padding: 0.78em; border-radius: 2em; background: #e9edef; color: #8696a0; font-size: 0.8em; font-weight: 600; text-align: center; }
.ks-w__managed { font-size: 0.58em; color: #667781; text-align: center; }
.ks-w__managed u { color: #008069; text-decoration: none; }

.ks.is-s8 .ks-w__dim { animation: ks-dim8 2560ms linear both; }
.ks.is-s8 .ks-w__sheet { animation: ks-sheet8 2560ms linear both; }
@keyframes ks-dim8 { 0%, 8.6% { opacity: 0; } 21%, 89.8% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ks-sheet8 {
  0%, 8.6% { transform: translateY(105%); animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
  21%, 89.8% { transform: none; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  100% { transform: translateY(105%); }
}
.ks.is-s8 .ks-w__f[data-f="1"] { animation: ks-ff 460ms ease 640ms both; }
.ks.is-s8 .ks-w__f[data-f="2"] { animation: ks-ff 460ms ease 890ms both; }
.ks.is-s8 .ks-w__f[data-f="3"] { animation: ks-ff 460ms ease 1140ms both; }
.ks.is-s8 .ks-w__f[data-f="4"] { animation: ks-ff 640ms ease 1390ms both; }
.ks.is-s8 .ks-w__f[data-f="1"] em { animation: ks-fe 100ms ease 700ms both; }
.ks.is-s8 .ks-w__f[data-f="2"] em { animation: ks-fe 100ms ease 950ms both; }
.ks.is-s8 .ks-w__f[data-f="3"] em { animation: ks-fe 100ms ease 1200ms both; }
.ks.is-s8 .ks-w__f[data-f="4"] em { animation: ks-fe 60ms ease 1450ms both; }
.ks.is-s8 .ks-w__f[data-f="1"] b { animation: ks-fv 200ms cubic-bezier(0.23, 1, 0.32, 1) 720ms both; }
.ks.is-s8 .ks-w__f[data-f="2"] b { animation: ks-fv 200ms cubic-bezier(0.23, 1, 0.32, 1) 970ms both; }
.ks.is-s8 .ks-w__f[data-f="3"] b { animation: ks-fv 200ms cubic-bezier(0.23, 1, 0.32, 1) 1220ms both; }
.ks.is-s8 .ks-w__f[data-f="4"] b { animation: ks-show 1ms linear 1450ms both, ks-type 440ms steps(14, end) 1450ms both; }
.ks.is-s8 .ks-w__send { animation: ks-send 420ms ease 1950ms both; }
@keyframes ks-ff { 0% { border-color: #c7ccd1; } 25%, 70% { border-color: #00a884; box-shadow: inset 0 0 0 1px #00a884; } 100% { border-color: #c7ccd1; box-shadow: none; } }
@keyframes ks-fe { to { opacity: 0; } }
@keyframes ks-fv { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
@keyframes ks-show { to { opacity: 1; } }
@keyframes ks-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ks-send {
  0% { background: #e9edef; color: #8696a0; transform: none; }
  35% { background: #00a884; color: #fff; transform: none; }
  65% { background: #008069; color: #fff; transform: scale(0.95); }
  100% { background: #00a884; color: #fff; transform: none; }
}

/* Kalender (s9): Termin uebernehmen, "Hinzufuegen", danach ein kurzer Hinweis im Chat */
.ks-w__cal { top: 46%; background: #f2f2f7; gap: 0.7em; padding: 0 0.8em; color: #111; }
.ks-w__cal-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0.95em 0.1em 0.4em; font-size: 0.78em; color: #ff3b30; }
.ks-w__cal-bar b { color: #111; font-weight: 600; }
.ks-w__cal-add { justify-self: end; font-weight: 600; transform-origin: 100% 50%; }
.ks-w__cal-card { display: grid; gap: 0.25em; padding: 0.75em 0.85em; border-radius: 0.75em; background: #fff; font-size: 0.78em; }
.ks-w__cal-card b { font-weight: 600; }
.ks-w__cal-card > span { color: #6b6b70; font-size: 0.9em; }
.ks-w__cal-card p { display: flex; justify-content: space-between; gap: 1em; margin: 0; padding: 0.2em 0; }
.ks-w__cal-card p + p { border-top: 1px solid #e5e5ea; padding-top: 0.5em; }
.ks-w__cal-card p b { font-weight: 500; color: #3a3a3c; }
.ks-w__toast { position: absolute; left: 50%; bottom: 4.6em; z-index: 6; padding: 0.5em 0.95em; border-radius: 1.2em; background: rgba(11, 20, 26, 0.86); color: #fff;
               font-size: 0.68em; white-space: nowrap; opacity: 0; transform: translate(-50%, 0.6em); }
.ks.is-s9 .ks-w__sheet { animation: none; transform: translateY(105%); }
.ks.is-s9 .ks-w__dim { animation: ks-dim9 1500ms linear both; }
.ks.is-s9 .ks-w__cal { animation: ks-cal9 1500ms linear both; }
.ks.is-s9 .ks-w__cal-add { animation: ks-add 280ms ease 980ms both; }
.ks.is-s9 .ks-w__toast { animation: ks-toast 320ms cubic-bezier(0.23, 1, 0.32, 1) 1450ms both; }
@keyframes ks-dim9 { 0%, 16.7% { opacity: 0; } 37%, 83.3% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ks-cal9 {
  0%, 16.7% { transform: translateY(105%); animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
  37%, 83.3% { transform: none; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  100% { transform: translateY(105%); }
}
@keyframes ks-add { 0% { transform: none; } 45% { transform: scale(0.9); opacity: 0.55; } 100% { transform: none; opacity: 1; } }
@keyframes ks-toast { from { opacity: 0; transform: translate(-50%, 0.6em); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- 4) Rezension ---------------------------------------------------------------------------- */
.ks-r { transform: translateY(101%); transition: transform 420ms var(--ks-move); box-shadow: 0 -0.6em 1.6em rgba(0, 0, 0, 0.14); }
.ks.is-s10 .ks-r { transform: none; transition: transform 600ms var(--ks-move) 120ms; }
.ks-r__write { padding: 0.5em 0.95em; transition: opacity 260ms ease, transform 420ms var(--ks-out); }
.ks-r__head { display: flex; align-items: center; gap: 0.85em; height: 2.6em; color: #3c4043; }
.ks-r__head span { flex: 1; font-size: 0.95em; color: #1f1f1f; }
.ks-r__post { padding: 0.42em 1em; border-radius: 1.2em; background: #0b57d0; color: #fff; font-size: 0.76em; font-weight: 700; opacity: 0.38; transition: opacity 260ms ease; }
.ks.is-review-typed .ks-r__post { opacity: 1; }
.ks.is-s11 .ks-r__post { animation: ks-tap 300ms ease-out both; }
.ks-r__who { display: flex; align-items: center; gap: 0.7em; margin: 1.1em 0 0.9em; }
.ks-r__who > div { display: grid; line-height: 1.25; }
.ks-r__who b { font-size: 0.86em; }
.ks-r__who i { font-style: normal; font-size: 0.7em; color: #5f6368; }
.ks-r__stars { display: flex; justify-content: center; gap: 0.55em; margin: 0.4em 0 1.1em; }
.ks-r__stars svg { width: 2.5em; height: 2.5em; fill: transparent; stroke: #80868b; stroke-width: 1.3; stroke-linejoin: round;
                   transition: fill 160ms ease, stroke 160ms ease, transform 160ms ease; }
.ks.is-s10 .ks-r__stars svg { fill: #fbbc04; stroke: #fbbc04; animation: ks-star 360ms var(--ks-out) both; animation-delay: calc(560ms + var(--k) * 130ms);
                             transition-delay: calc(560ms + var(--k) * 130ms); }
@keyframes ks-star { 0% { transform: scale(0.82); } 55% { transform: scale(1.14); } 100% { transform: none; } }
.ks-r__field { position: relative; min-height: 9.5em; padding: 0.8em 0.85em; border: 1px solid #747775; border-radius: 0.5em; font-size: 0.8em; line-height: 1.45; color: #1f1f1f; }
.ks-r__ph { position: absolute; left: 0.85em; top: 0.8em; right: 0.85em; color: #5f6368; }
.ks-r__field.has-text .ks-r__ph { display: none; }
.ks-r__chips { display: flex; flex-wrap: wrap; gap: 0.4em; margin-top: 0.8em; }
.ks-r__chips span { padding: 0.32em 0.75em; border: 1px solid #c4c7c5; border-radius: 0.5em; font-size: 0.68em; color: #444746; }
.ks-r__done { position: absolute; inset: 2.6em 0 0; padding: 1.4em 0.95em; opacity: 0; transform: translateY(1.2em); pointer-events: none;
              transition: opacity 200ms ease, transform 200ms ease; }
.ks.is-s11 .ks-r__write { opacity: 0; transform: translateY(-1.2em); transition-delay: 260ms; }
.ks.is-s11 .ks-r__done { opacity: 1; transform: none; transition: opacity 360ms ease 520ms, transform 560ms var(--ks-out) 520ms; }
.ks-r__ok { display: grid; justify-items: center; gap: 0.35em; text-align: center; margin-bottom: 1.2em; }
.ks-r__ok svg { width: 3em; height: 3em; padding: 0.55em; border-radius: 50%; background: #e6f4ea; fill: none; stroke: #188038; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ks-r__ok b { font-size: 1.05em; font-weight: 400; }
.ks-r__ok span { font-size: 0.74em; color: #5f6368; }
.ks-rev--new { padding: 0.9em; border: 0; border-radius: 0.8em; background: #f8fafd; box-shadow: 0 0 0 1px #e3e8ef; }
.ks-rev--new u { margin-left: 0.4em; padding: 0.05em 0.45em; border-radius: 0.3em; background: #e8f0fe; color: #0b57d0; text-decoration: none; font-size: 0.85em; }
.ks-r__score { display: flex; align-items: center; gap: 0.5em; justify-content: center; margin-top: 1.2em; font-size: 0.8em; color: #4d5156; }
.ks-r__score b { font-size: 1.6em; font-weight: 400; color: #1f1f1f; }

/* ---------- Handy und Tablet: Titel und Schritt oben, das Handy fuellt den Rest ------------------- */
@media (max-width: 63.99em) {
  .ks { --ks-step: 26svh; }
  .ks__stage { align-items: stretch; }
  .ks__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: stretch;
            gap: 14px; height: calc(100svh - var(--nav-h)); padding-block: 14px 18px; }
  .ks__title { font-size: clamp(28px, 7.2vw, 44px); max-width: none; margin-bottom: 8px; }
  .ks__step-title { font-size: 21px; margin: 4px 0 5px; }
  .ks__step-text { font-size: 14.5px; line-height: 1.42; }
  .ks__step-lead { margin-bottom: 2px; font-size: 15px; line-height: 1.35; }
  .ks__step-thought { margin-top: 5px; font-size: 14px; line-height: 1.38; }
    .ks__bar { margin-top: 10px; }
  .ks__bar i { width: 22px; height: 3px; }
  .ks-phone { justify-self: center; height: 100%; max-height: 720px; min-height: 0; }
}
@media (min-width: 48em) and (max-width: 63.99em) {
  .ks__title { font-size: 46px; }
  .ks__step-title { font-size: 27px; }
  .ks__step-text { font-size: 17px; }
  .ks__step-lead { font-size: 17px; }
  .ks__step-thought { font-size: 16px; }
}

/* ---------- Ohne Skript / weniger Bewegung --------------------------------------------------------- */
html:not(.js) .ks__track { height: auto; }
html:not(.js) .ks__stage { position: relative; height: auto; padding-block: 96px; }
html:not(.js) .ks__step { grid-area: auto; opacity: 1; transform: none; margin-bottom: 22px; }
html:not(.js) .ks__bar { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ks *, .ks *::before, .ks *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; }
}

/* ---------- Kundenweg einmal gesehen: ruhige Zusammenfassung (Wunsch 08.11.) ------------------------ */
.ks.is-done .ks__track { height: auto; }
.ks.is-done .ks__stage { position: relative; height: auto; padding-block: calc(var(--nav-h) + 48px) 72px; }
.ks.is-done .ks__step { grid-area: auto; opacity: 1; transform: none; margin-bottom: 20px; }
.ks.is-done .ks__step-text, .ks.is-done .ks__step-lead { font-size: clamp(16px, 0.3vw + 13.5px, 18px); }
.ks.is-done .ks__step-thought { font-size: clamp(15px, 0.3vw + 12.5px, 17px); margin-top: 6px; }
.ks.is-done .ks__bar { display: none; }
.ks.is-done *, .ks.is-done *::before, .ks.is-done *::after { transition: none !important; animation: none !important; }
@media (max-width: 63.99em) {
  .ks.is-done .ks__in { height: auto; }
  .ks.is-done .ks-phone { height: min(640px, 150vw); }
}

/* ---------- Scroll-Hinweis rechts (Wunsch 08.11.) ------------------------------------------------- */
.sg {
  --sgp: 0;
  position: fixed; z-index: 60; right: clamp(14px, 2vw, 32px); top: 50%;
  display: grid; justify-items: center; gap: 10px; padding: 14px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 82%, transparent); color: var(--white);
  opacity: 0; transform: translate(12px, -50%); pointer-events: none;
  transition: opacity 360ms ease, transform 480ms cubic-bezier(0.23, 1, 0.32, 1);
}
.sg.is-on { opacity: 1; transform: translate(0, -50%); }
.sg__mouse { position: relative; width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; }
.sg__mouse i { position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--brand);
               animation: sg-wheel 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes sg-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.sg__swipe { display: grid; place-items: center; width: 30px; height: 30px; }
.sg__swipe svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
                 animation: sg-swipe 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes sg-swipe { 0% { transform: translateY(6px); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(-6px); opacity: 0; } 100% { opacity: 0; } }
.sg__txt { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; writing-mode: vertical-rl; transform: rotate(180deg); }
.sg__bar { display: none; position: relative; width: 4px; height: 72px; border-radius: 2px; background: color-mix(in srgb, var(--white) 22%, transparent); overflow: hidden; }
.sg.has-progress .sg__bar { display: block; }
.sg__bar i { position: absolute; inset: 0; background: var(--brand); transform: scaleY(var(--sgp)); transform-origin: 50% 0; }
@media (max-width: 47.99em) { .sg { right: 10px; padding: 12px 8px; } .sg__bar { height: 56px; } }
/* Handy: unten rechts statt in der Mitte, damit er nicht auf dem Text liegt */
.sg--touch { top: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(12px); }
.sg--touch.is-on { transform: none; }
@media (prefers-reduced-motion: reduce) { .sg { display: none; } }

/* ---------- Uebergang: kompaktes Band (Wunsch 08.11.: "so klein wie moeglich, keine ganze Seite") --------
   Ueberschrift in der Mitte, kurze Linie, ein Satz; kein Festhalten beim Scrollen. Darunter beginnen direkt die
   Leistungen. Beim ersten Erscheinen blendet es weich ein. */
.ue { padding: 0; }
.ue::before { display: none; }
.ue__track { position: relative; }
.ue__stage {
  position: relative; display: grid; place-items: center;
  padding: clamp(40px, 4.4vw + 12px, 76px) var(--gutter);
  background:
    var(--edges),
    radial-gradient(50% 80% at 50% 50%, #ffffff 0%, color-mix(in srgb, #ffffff 70%, transparent) 50%, transparent 82%),
    radial-gradient(36% 90% at 92% 10%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 72%),
    radial-gradient(36% 90% at 6% 96%, color-mix(in srgb, var(--brand-deep) 9%, transparent), transparent 74%),
    linear-gradient(180deg, var(--soft) 0%, var(--mist) 100%);
}
.ue__in { position: relative; display: grid; justify-items: center; gap: clamp(12px, 0.8vw + 6px, 18px); text-align: center; max-width: 60rem; }
.ue .ue__title { margin: 0; max-width: 24ch; font-family: var(--font-serif); font-weight: var(--w-head, 440);
                 font-size: clamp(28px, 2.4vw + 14px, 52px); line-height: 1.06; letter-spacing: -0.022em; color: var(--ink); text-wrap: balance; }
.ue .ue__text { margin: 0; max-width: 62ch; font-size: clamp(16px, 0.3vw + 14px, 18px); line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.ue__rule { display: block; width: 48px; height: 3px; background: var(--brand); }
/* Auftritt beim ersten Erscheinen: weich heraus */
.ue.is-live .ue__title, .ue.is-live .ue__text, .ue.is-live .ue__rule { opacity: 0; transform: translateY(14px); filter: blur(5px); }
.ue.is-live.is-in .ue__title, .ue.is-live.is-in .ue__text, .ue.is-live.is-in .ue__rule {
  opacity: 1; transform: none; filter: none;
  transition: opacity 600ms ease, transform 800ms cubic-bezier(0.23, 1, 0.32, 1), filter 600ms ease;
}
.ue.is-live.is-in .ue__rule { transition-delay: 100ms; }
.ue.is-live.is-in .ue__text { transition-delay: 200ms; }
@media (prefers-reduced-motion: reduce) {
  .ue.is-live .ue__title, .ue.is-live .ue__text, .ue.is-live .ue__rule { opacity: 1; transform: none; filter: none; }
}


/* ---------- Strichmann mit den drei Fragen (Wunsch 10.11.) -------------------------------------------------
   Nach "So finden Kunden zu Ihnen": eine schwarze Figur holt das Handy hervor, der Bildschirm geht an und sein
   Licht faellt auf das Gesicht; dann steckt er es weg, legt die Hand ans Kinn und denkt nach. Um den Kopf zieht
   sich eine Umlaufbahn, auf der die drei Fragen kreisen (story.js setzt ihre Lage). Keine Liste darunter (Wunsch
   10.11.). Einmaliger Auftritt beim ersten Erscheinen; ohne Skript und bei Reduced Motion steht das
   Endbild (denkend, Fragen um den Kopf) still da. */
.frage {
  --pt: clamp(40px, 4vw + 16px, 88px);
  position: relative; overflow: hidden;
  background: var(--edges), var(--white);       /* reines Weiss hinter der Figur: das Video (weisser Grund) faellt nicht auf */
}
/* Ueberschrift ueber der Figur, mittig (Wunsch 10.11.); sie erscheint zuerst */
.frage__title { margin: 0 auto clamp(4px, 1vw, 16px); max-width: 26ch; padding-inline: var(--gutter); text-align: center;
  font-family: var(--font-serif); font-weight: var(--w-head, 440); font-size: clamp(30px, 18px + 2vw, 46px); line-height: 1.1; letter-spacing: -0.018em;
  color: var(--ink); text-wrap: balance; }
.frage__scene { position: relative; width: min(600px, 100%); aspect-ratio: 586 / 484; margin-inline: auto; }
.frage__scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Figur (Vektorzeichnung): Tinte, feine helle Pinselstriche, warmes Licht des Handys, sehr leichte Glanzstelle */
.fig__ink { fill: var(--brand, #01ABC3); }                       /* Figur in Markenfarbe (Wunsch 11.11.) */
.fig__line { fill: #fff; }
.fig__case { fill: #0b1114; stroke: #d6cfbb; stroke-width: 1.2; }
.fig__cam { fill: #cfc9b8; }
.fig__lens { fill: #3a3a38; }
.fig__breath, .fig__head { transform-box: view-box; }
.fig__breath { transform-origin: 383px 560px; }
.fig__head { transform-origin: 383px 300px; }
.frage__art { z-index: 2; }
/* Figur als Video (tools/figur): eine ruhige Schleife in der Endhaltung (8 s: Atmen, Kopf, Licht); der Auftakt mit
   Hand und Handy entfaellt (Wunsch 12.11.). Figur in Markenfarbe (Wunsch 11.11.), auf hellem wie dunklem Grund gleich. Jedes Videobild traegt Farbe und
   Deckkraft nebeneinander; story.js setzt sie in einem WebGL-Canvas zusammen -> echter durchsichtiger Grund in jedem
   Browser. Video und Canvas faerbt auch der erzwungene Dunkelmodus von Samsung Internet nicht um (nicht abschaltbar,
   nicht erkennbar): die Figur bleibt blau, ohne Kasten. Die SVG-Zeichnung (.frage__art) bleibt fuer ohne Skript und
   falls Video oder WebGL ausfallen. */
.frage__src { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.frage__gl { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.frage__src, .frage__gl { display: none; }
.frage.has-video .frage__src, .frage.has-video .frage__gl { display: block; }
.frage.has-video .frage__art { visibility: hidden; }
/* Fragen kreisen um den Kopf (Wunsch 10.11.): reiner Text ohne Blase. Hinten (obere Bahnhaelfte) hinter dem Kopf,
   kleiner und blasser; vorn vor dem Kopf, mit hellem Schein, damit sie auch auf Schwarz lesbar bleiben. */
.frage__q {
  position: absolute; left: 0; top: 0; z-index: 3; white-space: nowrap; will-change: transform, opacity;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(13px, 0.55vw + 10px, 18px); line-height: 1.2; letter-spacing: -0.01em;
  color: var(--ink);
  text-shadow: 0 0 2px #fff, 0 0 6px #fff, 0 0 12px rgba(255, 255, 255, 0.9);
}
html:not(.js) .frage__q:nth-of-type(1) { left: 4%; top: 20%; }                    /* ohne Skript: feste Plaetze um den Kopf */
html:not(.js) .frage__q:nth-of-type(2) { right: 4%; left: auto; top: 26%; }
html:not(.js) .frage__q:nth-of-type(3) { left: 50%; top: 2%; transform: translateX(-50%); }

/* --- Bewegung (nur mit Skript und Bewegung) ---
   .is-play: die Ueberschrift kommt zuerst, dann die Buehne; story.js startet das Video (Haende unten -> Handy hoch,
   Licht an -> andere Hand ans Kinn). .is-idle (nach dem Auftakt): die ruhige Schleife laeuft, die Fragen kreisen
   (story.js). Die CSS-Schleifen unten gelten nur fuer die SVG-Zeichnung (ohne Video). */
html.js.motion-ok .frage:not(.is-play) .frage__title,
html.js.motion-ok .frage:not(.is-play) .frage__scene > canvas,
html.js.motion-ok .frage:not(.is-play) .frage__art,
html.js.motion-ok .frage:not(.is-idle) .frage__q { opacity: 0 !important; }
html.js.motion-ok .frage.is-play .frage__title { animation: fr-up 640ms cubic-bezier(0.23, 1, 0.32, 1) both; }
html.js.motion-ok .frage.is-play .frage__scene > canvas,
html.js.motion-ok .frage.is-play .frage__art { animation: fr-fade 360ms ease-out 250ms both; }
html.js.motion-ok .frage.is-idle .fig__breath { animation: fr-breath 4.8s ease-in-out 0.4s infinite alternate; }
html.js.motion-ok .frage.is-idle .fig__head { animation: fr-tilt 7.5s ease-in-out 0.6s infinite alternate; }
html.js.motion-ok .frage.is-idle .fig__glow { animation: fr-glow 3.4s ease-in-out 0.3s infinite alternate; }
@keyframes fr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fr-glow { from { opacity: 1; } to { opacity: 0.8; } }
@keyframes fr-breath { from { transform: none; } to { transform: scale(1.006, 1.01); } }
@keyframes fr-tilt { from { transform: rotate(-1.4deg); } to { transform: rotate(1.2deg); } }
@keyframes fr-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .frage__scene > canvas, .frage__art, .frage__title { animation: none !important; opacity: 1 !important; }
}
