/* =====================================================================
   tobiasnase.de: Erstgespraech-Funnel (/erstgespraech/ und /erstgespraech/danke/)
   Heller Look wie die Startseite (Tokens aus start.css, Schriften aus start-fonts.css).
   Eigenstaendig: laedt weder site.css noch funnel.css.
   WICHTIG: Alle Klassen und IDs, die das Inline-Skript nutzt, bleiben erhalten
   (.step-panel, .step-item, .opt-card, .consent, .main, .btn--primary, .btn-text,
   .btn-arrow, .btn-spin, .input-error, .submit-error, #mpFill, #mpCount ...).
   Radien: Knoepfe 8 px, Karten 14 px, grosse Flaechen 20 px, Pillen rund.
   ===================================================================== */

: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;

  --paper:    #FFFFFF;
  --paper-2:  #FBFAFE;
  --line:     #EDE7F9;
  --line-mid: #D9CDE6;

  --bad:      #C62F3B;
  --bad-weak: #FDF1F2;

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

  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --btn-face: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(23, 16, 43, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head: Outfit, Manrope, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
a, button, label, input { touch-action: manipulation; -webkit-tap-highlight-color: rgba(108, 43, 242, .12); }
body {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2 { font-family: var(--head); color: var(--ink); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 40; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-btn); }
.skip:focus { top: calc(12px + env(safe-area-inset-top)); }

/* ---------- Kopf: nur Logo und Fortschritt, kein Menue (Funnel = eine Aktion) ---------- */
.fkopf {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.fkopf-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1180px; height: 64px; margin: 0 auto; padding: 0 var(--gutter);
}
.fkopf-marke { display: inline-flex; align-items: center; min-height: 44px; }
.fkopf-marke img { width: auto; height: 26px; }
.fkopf-info { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 Manrope, sans-serif; color: var(--ink-3); }
.fkopf-info svg { width: 16px; height: 16px; color: var(--accent); }

.mp-count {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
  font: 700 13px/1 Manrope, sans-serif; letter-spacing: .02em; font-variant-numeric: tabular-nums;
  color: var(--accent-deep); background: var(--tint); border-radius: 999px;
}

/* Fortschritt: Balken an der Unterkante des Kopfes, vorne ein Strom-Impuls */
.mobile-progress { position: relative; height: 4px; overflow-x: clip; overflow-y: visible; }
.mp-bar { position: absolute; inset: 0; background: var(--line); }
.mp-fill {
  position: relative; height: 100%; width: 20%;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  border-radius: 0 4px 4px 0;
  transition: width .5s var(--ease);
}
.mp-fill::before {
  content: ""; position: absolute; inset: 0; overflow: hidden; border-radius: inherit;
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .85) 50%, transparent 100%) no-repeat;
  background-size: 60px 100%; background-position: -60px 0;
  animation: fstrom 2.6s linear infinite;
}
.mp-fill::after {
  content: ""; position: absolute; right: -4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; background: #4DE8FF;
  box-shadow: 0 0 0 2px #fff, 0 0 10px 2px rgba(77, 232, 255, .9);
  animation: ffunke 1.6s ease-in-out infinite;
}
@keyframes fstrom { to { background-position: calc(100% + 60px) 0; } }
@keyframes ffunke { 50% { box-shadow: 0 0 0 2px #fff, 0 0 4px 1px rgba(77, 232, 255, .5); } }

/* ---------- Seite ---------- */
.fpage { position: relative; isolation: isolate; flex: 1; width: 100%; }
.kariert::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, #e3e5ea 1px, transparent 1px), linear-gradient(to bottom, #e3e5ea 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 0% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 55% 60% at 0% 0%, #000 30%, transparent 78%);
  opacity: .8;
}
.shell {
  display: grid; grid-template-columns: minmax(0, 1fr);
  max-width: 1180px; margin: 0 auto;
}

/* ---------- Seitenleiste (ab 960 px) ---------- */
.sidebar { display: none; }

.sb-person { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.sb-foto { position: relative; flex: none; width: 58px; height: 58px; }
.sb-foto img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.strom { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); overflow: visible; transform: rotate(-90deg); pointer-events: none; }
.strom circle { fill: none; stroke-width: 1.4; stroke-linecap: round; }
.strom-bahn { stroke: rgba(108, 43, 242, .18); stroke-width: .6; stroke-dasharray: .5 1.5; }
.strom-1 { stroke: #4DE8FF; stroke-dasharray: 12 88; filter: drop-shadow(0 0 2px rgba(77, 232, 255, .9)); animation: stromlauf 3.2s linear infinite; }
.strom-2 { stroke: #B98BFF; stroke-dasharray: 8 92; filter: drop-shadow(0 0 2px rgba(199, 125, 255, .9)); animation: stromlauf 3.2s linear infinite; animation-delay: -1.6s; }
@keyframes stromlauf { to { stroke-dashoffset: -100; } }
.sb-name { display: block; font: 500 18px/1.2 var(--head); letter-spacing: -.01em; color: var(--ink); }
.sb-rolle { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.sb-notiz { display: block; margin-top: 6px; white-space: nowrap; font: 600 21px/1 Caveat, cursive; color: var(--accent); transform: rotate(-4deg); transform-origin: left; }

.steps-list { display: flex; flex-direction: column; }
.step-item { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 2px 0; }
.step-item:not(:last-child)::after {
  content: ""; position: absolute; left: 14px; top: 34px; bottom: -2px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line-mid) 0 4px, transparent 4px 8px);
}
.step-item.is-done:not(:last-child)::after { background: var(--accent-soft); }
.step-dot {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font: 600 13px/1 var(--head); font-variant-numeric: tabular-nums;
  color: var(--ink-3); background: var(--paper); border: 1.5px dashed var(--line-mid);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.step-item.is-active .step-dot { color: #fff; background: var(--accent); border: 1.5px solid var(--accent); box-shadow: 0 0 0 4px var(--tint); }
.step-item.is-done .step-dot { color: var(--accent); background: var(--tint); border: 1.5px solid var(--accent-soft); }
.step-text { min-width: 0; padding: 4px 0 18px; }
.step-name { font: 600 15px/1.3 Manrope, sans-serif; color: var(--ink); }
.step-item.is-pending .step-name { color: var(--ink-3); font-weight: 500; }
.step-desc { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }

.sidebar-foot { margin-top: 8px; padding: 14px 16px; border-radius: var(--r-card); background: var(--tint-weak); border: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.sf-line + .sf-line { margin-top: 6px; }
.sidebar-foot strong { color: var(--ink); font-weight: 700; }

/* ---------- Hauptbereich ---------- */
.main { position: relative; min-width: 0; padding: 12px var(--gutter) 32px; }
.main-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 10px; }
.btn-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 4px; margin-left: -4px;
  font: 600 14.5px/1 Manrope, sans-serif; color: var(--ink-2); border-radius: var(--r-btn);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.btn-back svg { width: 18px; height: 18px; }
.btn-back:hover { color: var(--accent); background: var(--tint-weak); }
.btn-back:disabled { visibility: hidden; }
.main-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); }
.main-meta svg { width: 15px; height: 15px; color: var(--accent); }

.main-head { margin-bottom: 4px; }
.step-counter { display: block; margin-bottom: 10px; font: 700 12.5px/1.4 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.step-title { font-size: clamp(28px, 7.4vw, 40px); line-height: 1.08; margin-bottom: 10px; }
.step-sub { max-width: 40em; font-size: 16px; line-height: 1.55; color: var(--ink-3); margin-bottom: 18px; }
.head-divider { height: 1px; margin: 0 0 22px; background: var(--line); }

.step-panel { display: none; }
.step-panel.is-active { display: block; animation: panelIn .24s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-content { min-width: 0; }

/* ---------- Felder ---------- */
.field-group { margin-bottom: 26px; }
.field-label { display: block; margin-bottom: 4px; font: 700 16px/1.4 Manrope, sans-serif; color: var(--ink); }
.field-label .req { color: var(--accent); }
.field-label .opt-hint { font-weight: 500; color: var(--ink-3); }
.field-help { margin-bottom: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.goal-hinweis { margin: 14px 0 0; }
.goal-hinweis a { color: var(--accent-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.field-label + .options { margin-top: 10px; }

/* ---------- Antwort-Karten ---------- */
.options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.opt-card {
  position: relative; display: flex; align-items: center;
  min-height: 64px; padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line-mid); border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgba(23, 16, 43, .04);
  cursor: pointer; user-select: none;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease);
}
.opt-card:hover { border-color: var(--accent-soft); }
.opt-card:active { transform: scale(.985); }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.opt-card.is-checked { border-color: var(--accent); background: var(--tint-weak); box-shadow: inset 0 0 0 1px var(--accent); }

.opt-row { display: flex; align-items: center; gap: 14px; width: 100%; }
.opt-icon {
  display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px;
  border-radius: 11px; color: var(--accent); background: var(--tint);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, #fff);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.opt-card.is-checked .opt-icon { color: #fff; background: var(--accent); border-color: var(--accent); }
.opt-body { flex: 1; min-width: 0; }
.opt-title { display: block; font: 700 16.5px/1.3 Manrope, sans-serif; color: var(--ink); text-wrap: balance; }
.opt-desc { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-3); text-wrap: balance; }

.opt-indicator {
  position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line-mid); background: var(--paper);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.opt-card.is-checked .opt-indicator { border-color: var(--accent); background: var(--accent); }
.opt-card.is-checked .opt-indicator::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.opt-indicator--check { border-radius: 6px; }
.opt-card.is-checked .opt-indicator--check::after {
  inset: 0; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

/* ---------- Eingabefelder (mind. 16 px, sonst zoomt iOS) ---------- */
.input-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-bottom: 26px; }
.input, .textarea {
  display: block; width: 100%; min-height: 54px; padding: 14px 16px;
  font: 500 16px/1.4 Manrope, system-ui, sans-serif; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-mid); border-radius: 10px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #9a93a8; }
.input:hover, .textarea:hover { border-color: var(--accent-soft); }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(108, 43, 242, .14); }
.textarea { min-height: 110px; line-height: 1.55; resize: vertical; }
.input.has-error, .textarea.has-error { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(198, 47, 59, .1); }
.input-error { display: none; margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--bad); }
.input-error.is-visible { display: block; }

/* ---------- Budget-Regler ---------- */
.range-wrap { padding: 18px 18px 20px; background: var(--paper); border: 1px solid var(--line-mid); border-radius: var(--r-card); }
.range-display { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.range-value { font: 500 clamp(26px, 6vw, 32px)/1 var(--head); letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.range-unit { font-size: 14px; color: var(--ink-3); }
.range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 32px; background: transparent; cursor: pointer; }
.range:focus { outline: none; }
.range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line-mid); }
.range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line-mid); }
.range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%;
  background: var(--accent); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--accent), 0 4px 12px rgba(75, 24, 184, .35);
}
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--accent), 0 4px 12px rgba(75, 24, 184, .35); }

/* ---------- Einwilligung ---------- */
.field-group--consent { margin-top: 6px; }
.consent {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px;
  background: var(--tint-weak); border: 1px solid var(--line); border-radius: var(--r-card);
  cursor: pointer; transition: border-color .18s var(--ease);
}
.consent:hover { border-color: var(--accent-soft); }
.consent:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent-check {
  position: relative; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 6px;
  background: var(--paper); border: 2px solid var(--line-mid);
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.consent.is-checked { border-color: var(--accent-soft); }
.consent.is-checked .consent-check { background: var(--accent); border-color: var(--accent); }
.consent.is-checked .consent-check::after {
  content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
}
.consent-text { flex: 1; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.consent-text a { color: var(--accent-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.consent-text .req { color: var(--accent); }

.submit-error {
  display: none; margin-top: 16px; padding: 14px 16px;
  font-size: 14.5px; line-height: 1.5; color: #8E1F29;
  background: var(--bad-weak); border: 1px solid #F3C7CC; border-radius: var(--r-card);
}
.submit-error.is-visible { display: block; }
.submit-error a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Knoepfe ---------- */
.main-foot { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 26px;
  font: 700 16px/1 Manrope, system-ui, sans-serif; white-space: nowrap;
  border-radius: var(--r-btn); border: 1px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { color: #fff; background: var(--accent); box-shadow: var(--btn-face); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { color: var(--ink); background: var(--paper); border-color: var(--line-mid); }
.btn--ghost:hover { border-color: var(--accent-soft); background: var(--tint-weak); }
.main-foot .btn { width: 100%; }
.main-foot .btn:disabled { opacity: .5; cursor: not-allowed; }
/* Schritt 1 hat kein Zurueck */
.fpage:has(.step-panel[data-panel="1"].is-active) #btnPrev { display: none; }
.btn-arrow { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn--primary:hover .btn-arrow { transform: translateX(3px); }
.btn-label { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; }

/* Strom-Impulse um den Knopf (SVG kommt aus dem Inline-Skript) */
.btn-circuit { position: absolute; inset: -3px; z-index: 1; width: calc(100% + 6px); height: calc(100% + 6px); overflow: visible; pointer-events: none; opacity: 0; transition: opacity .18s var(--ease); }
.btn-circuit rect.c-run1, .btn-circuit rect.c-run2 { x: 1px; y: 1px; width: calc(100% - 2px); height: calc(100% - 2px); rx: 10px; fill: none; }
.btn-circuit .c-run1 { stroke: #4DE8FF; stroke-width: 2; stroke-dasharray: 12 88; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(77, 232, 255, .9)); animation: stromlauf 1.6s linear infinite; }
.btn-circuit .c-run2 { stroke: #B98BFF; stroke-width: 2; stroke-dasharray: 8 92; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(199, 125, 255, .9)); animation: stromlauf 1.6s linear infinite; animation-delay: -.8s; }
.btn--primary:hover .btn-circuit, .btn--primary:focus-visible .btn-circuit { opacity: 1; }

.btn-spin { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: btnSpin .7s linear infinite; }
.btn.is-loading .btn-spin { display: inline-block; }
.btn.is-loading .btn-text, .btn.is-loading .btn-arrow { display: none; }
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ---------- Fuss: nur Rechtliches ---------- */
.ffuss { border-top: 1px solid var(--line); background: var(--paper); padding-bottom: env(safe-area-inset-bottom); }
.ffuss-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px;
  max-width: 1180px; margin: 0 auto; padding: 10px var(--gutter);
  font-size: 13.5px; color: var(--ink-3);
}
.ffuss nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -10px; }
.ffuss nav a, .ffuss nav button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font: 600 13.5px/1 Manrope, sans-serif; color: var(--ink-2); border-radius: var(--r-btn);
  transition: color .2s var(--ease);
}
.ffuss nav a:hover, .ffuss nav button:hover { color: var(--accent); }
.ffuss-copy { order: 2; }

/* ---------- Danke-Seite ---------- */
.danke-main { position: relative; isolation: isolate; flex: 1; width: 100%; }
.danke-main.kariert::before {
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 25%, transparent 75%);
}
.thanks-wrap { max-width: 820px; margin: 0 auto; padding: clamp(40px, 8vw, 88px) var(--gutter) 56px; text-align: center; }
.portrait { position: relative; display: block; width: clamp(116px, 15vw, 150px); aspect-ratio: 1; margin: 0 auto 64px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.portrait .strom { inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); }
.notiz { position: absolute; z-index: 1; font: 600 21px/1.05 Caveat, cursive; color: var(--accent); white-space: nowrap; pointer-events: none; }
.notiz svg { display: none; position: absolute; width: 64px; height: 48px; overflow: visible; }
.notiz path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: kritzeln .9s var(--ease) .9s forwards; }
.notiz .spitze { animation-delay: 1.6s; animation-duration: .35s; }
@keyframes kritzeln { to { stroke-dashoffset: 0; } }
.notiz--danke { left: 50%; bottom: -44px; transform: translateX(-50%) rotate(-3deg); }
.eyebrow { display: block; margin-bottom: 12px; font: 700 13px/1.4 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.thanks-title { font-size: clamp(40px, 9vw, 64px); line-height: 1.04; margin-bottom: 16px; }
.thanks-sub { max-width: 34em; margin: 0 auto 32px; font-size: clamp(16.5px, 2vw, 19px); line-height: 1.6; color: var(--ink-2); }
.thanks-sub strong { color: var(--ink); font-weight: 700; }
.thanks-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0 auto 28px; text-align: left; counter-reset: none; }
.thanks-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px; background: var(--paper); border: 1px solid var(--line-mid); border-radius: var(--r-card); }
.thanks-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 600 18px/1 var(--head); color: var(--accent); background: var(--tint); border: 1.5px dashed var(--accent-soft); }
.thanks-step p { align-self: center; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.thanks-step strong { color: var(--ink); font-weight: 700; }
#calendlySlot:not(:empty) { margin: 0 auto 32px; padding: 8px; background: var(--paper); border: 1px solid var(--line-mid); border-radius: var(--r-big); box-shadow: 0 40px 80px -50px rgba(75, 24, 184, .45); overflow: hidden; }
#calendlySlot iframe { display: block; border-radius: var(--r-card) !important; height: 960px !important; }
@media (min-width: 600px) { #calendlySlot iframe { height: 1060px !important; } }
/* Kalender ohne inneres Scrollen: ab 1000 px breiter als der Text, dann zeigt Calendly Details und Kalender nebeneinander */
@media (min-width: 1000px) {
  #calendlySlot:not(:empty) { margin-inline: calc(50% - min(530px, 50vw - var(--gutter))); }
  #calendlySlot iframe { height: 720px !important; }
}
.thanks-wrap > .btn { min-width: 240px; }

/* ---------- ab 600 px ---------- */
@media (min-width: 600px) {
  .options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .input-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .main-foot { flex-direction: row; justify-content: space-between; align-items: center; }
  .main-foot .btn { width: auto; }
  .main-foot .btn--primary { margin-left: auto; min-width: 200px; }
  .thanks-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .thanks-step { grid-template-columns: minmax(0, 1fr); }
  .notiz { font-size: 24px; }
  .notiz svg { display: block; }
  .notiz--danke { left: calc(100% + 64px); bottom: auto; top: 6px; transform: rotate(5deg); }
  .notiz--danke svg { left: -66px; top: 12px; }
  .portrait { margin-bottom: clamp(28px, 3.4vw, 40px); }
  .ffuss-copy { order: 0; }
}

/* ---------- ab 960 px: Seitenleiste plus Karte ---------- */
@media (min-width: 960px) {
  .fkopf-in { height: 70px; }
  .fkopf-marke img { height: 30px; }
  /* Seitenleiste so hoch wie die Formularkarte (stretch), Dauer-Box unten */
  .shell { grid-template-columns: 300px minmax(0, 1fr); gap: 28px; padding: 36px var(--gutter) 56px; align-items: stretch; }
  .sidebar {
    display: flex; flex-direction: column;
    padding: 24px 22px; background: var(--paper);
    border: 1px solid var(--line-mid); border-radius: var(--r-big);
  }
  .sidebar-foot { margin-top: auto; }
  .steps-list { margin-bottom: 16px; }
  .main { padding: 24px clamp(32px, 4vw, 52px) 36px; background: var(--paper); border: 1px solid var(--line-mid); border-radius: var(--r-big); box-shadow: 0 40px 80px -60px rgba(75, 24, 184, .35); }
  .main-top { margin-bottom: 14px; }
  .step-title { font-size: clamp(34px, 3.2vw, 44px); }
  .step-sub { font-size: 17px; }
}

@media (max-width: 380px) {
  .fkopf-marke img { height: 22px; }
  .opt-card { padding: 12px 14px; }
  .opt-icon { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .notiz path { stroke-dashoffset: 0; }
  .strom-2 { stroke-dashoffset: -50; }
  .mp-fill::before { display: none; }
}
