/* Live-Demo für Solarbetriebe (web/showcase.py) — Startseite und Demo-Rahmen.
   Eigene Gestaltung des Anbieters („Solar Vorabangebot“), bewusst getrennt vom
   Rechner (style.css), der in der Demo die Farbe des Interessenten trägt.
   --c / --c-dark / --c-light = Hausfarbe des Interessenten (je Seite gesetzt). */

:root {
  --sv-ink: #11211d;
  --sv-text: #26332f;
  --sv-muted: #5f6f6a;
  --sv-line: #dde5e2;
  --sv-bg: #f3f6f5;
  --sv-card: #ffffff;
  --sv-brand: #176b5b;
  --sv-brand-dark: #0f5043;
  --sv-brand-tint: #e7f1ee;
  --sv-gold: #e7b85a;
  --sv-gold-dark: #b98a2c;
  --sv-danger: #a3231f;
  --sv-radius: 14px;
  --sv-shadow: 0 1px 2px rgba(17, 33, 29, .06), 0 8px 24px rgba(17, 33, 29, .06);
  --c: #0a7d5a;
  --c-dark: #075e44;
  --c-light: #e4f2ed;
  --bar-h: 64px;
}

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

html { overflow-x: clip; }

body.sv {
  margin: 0;
  background: var(--sv-bg);
  color: var(--sv-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.sv h1, .sv h2 { color: var(--sv-ink); letter-spacing: -0.01em; }
.sv a { color: var(--sv-brand); }
.sv button { font: inherit; }
.sv [hidden] { display: none !important; }

.sv :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sv-brand) 45%, transparent);
  outline-offset: 2px;
}

/* ── Marke ─────────────────────────────────────────────────────────────── */
.sv-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--sv-ink); text-decoration: none; font-weight: 700; min-width: 0;
}
.sv-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.sv-brand-name { white-space: nowrap; }
.sv-pill {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sv-brand-dark); background: var(--sv-brand-tint);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.sv-kicker {
  margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--sv-brand);
}

/* ── Schaltflächen ─────────────────────────────────────────────────────── */
.sv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sv-btn-primary { background: var(--sv-brand); color: #fff !important; }
.sv-btn-primary:hover { background: var(--sv-brand-dark); }
.sv-btn-primary:disabled { opacity: .6; cursor: wait; }
.sv-btn-gold { background: var(--sv-gold); color: #2b2008 !important; }
.sv-btn-gold:hover { background: #dca944; }
.sv-btn-quiet { background: transparent; color: var(--sv-ink) !important; border-color: var(--sv-line); }
.sv-btn-quiet:hover { background: #fff; }
.sv-btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.sv-link {
  background: none; border: 0; padding: 0; color: var(--sv-brand); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; font-size: inherit;
}

/* ── Startseite ────────────────────────────────────────────────────────── */
.sv-top { background: #fff; border-bottom: 1px solid var(--sv-line); }
.sv-top-inner { max-width: 1080px; margin: 0 auto; padding: 14px 16px; }

.sv-start { max-width: 1080px; margin: 0 auto; padding: 40px 16px 56px; }
.sv-hero { max-width: 760px; margin: 0 0 32px; }
.sv-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 0 0 16px; }
.sv-lead { font-size: 18px; color: var(--sv-muted); margin: 0 0 22px; max-width: 640px; }
.sv-path { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sv-path li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--sv-ink); font-size: 15px; }
.sv-path span {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sv-ink); color: #fff; font-size: 12px; font-weight: 700;
}

.sv-card {
  background: var(--sv-card); border: 1px solid var(--sv-line);
  border-radius: var(--sv-radius); box-shadow: var(--sv-shadow);
  padding: clamp(20px, 4vw, 36px);
}
.sv-step h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 6px; line-height: 1.2; }
.sv-step-count { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--sv-muted); }
.sv-sub { margin: 0 0 22px; color: var(--sv-muted); }
.sv-step-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.sv-step-head .sv-step-count { margin: 0; }
.sv-link-back {
  background: none; border: 0; padding: 6px 0; color: var(--sv-muted); cursor: pointer; font-weight: 600;
}
.sv-link-back:hover { color: var(--sv-ink); }

.sv-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sv-role {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px;
  text-align: left; background: #fff; border: 1.5px solid var(--sv-line); border-radius: 12px;
  padding: 16px; cursor: pointer; color: var(--sv-text);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sv-role:hover { border-color: var(--sv-brand); box-shadow: 0 4px 16px rgba(23, 107, 91, .12); transform: translateY(-1px); }
.sv-role[aria-pressed="true"] { border-color: var(--sv-brand); background: var(--sv-brand-tint); }
.sv-role-icon {
  grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--sv-brand-tint); color: var(--sv-brand);
}
.sv-role-icon svg { width: 22px; height: 22px; }
.sv-role strong { color: var(--sv-ink); font-size: 16px; line-height: 1.3; }
.sv-role span:last-child { color: var(--sv-muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }

.sv-setup {
  display: grid; grid-template-columns: minmax(0, 620px); gap: 28px 36px; align-items: start;
}
.sv-fields { display: grid; gap: 22px; min-width: 0; }
.sv-field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.sv-label { font-weight: 650; color: var(--sv-ink); font-size: 15px; padding: 0; }
.sv-label small { font-weight: 500; color: var(--sv-muted); }
.sv-field input[type="text"], .sv-stepper input {
  width: 100%; min-height: 48px; border: 1.5px solid var(--sv-line); border-radius: 10px;
  padding: 0 14px; font: inherit; color: var(--sv-ink); background: #fff;
}
.sv-field input[type="text"]:focus, .sv-stepper input:focus { border-color: var(--sv-brand); outline: none; }
.sv-field input.is-invalid { border-color: var(--sv-danger); }
.sv-hint { margin: 0; font-size: 13px; color: var(--sv-muted); }

.sv-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sv-swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; background: var(--sw);
  box-shadow: 0 0 0 1.5px var(--sv-line); cursor: pointer; padding: 0;
}
.sv-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--sv-ink); }
.sv-color-custom {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sv-muted);
  border: 1.5px dashed var(--sv-line); border-radius: 999px; padding: 4px 12px 4px 5px; cursor: pointer;
}
.sv-color-custom.is-active { border-style: solid; border-color: var(--sv-ink); color: var(--sv-ink); }
.sv-color-custom input { width: 26px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; }
.sv-color-custom input::-webkit-color-swatch-wrapper { padding: 0; }
.sv-color-custom input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.sv-color-custom input::-moz-color-swatch { border: 0; border-radius: 50%; }

.sv-stepper { display: flex; align-items: center; gap: 8px; }
.sv-stepper button {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 10px; border: 1.5px solid var(--sv-line);
  background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--sv-ink);
}
.sv-stepper button:hover { border-color: var(--sv-brand); }
.sv-stepper input { width: 84px; text-align: center; font-weight: 700; font-size: 18px; -moz-appearance: textfield; }
.sv-stepper input::-webkit-outer-spin-button, .sv-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sv-stepper-kwp { color: var(--sv-muted); font-size: 14px; margin-left: 6px; white-space: nowrap; }

.sv-drop {
  display: grid; place-items: center; min-height: 128px; padding: 18px; text-align: center;
  border: 2px dashed #c7d3cf; border-radius: 12px; background: #fafcfb; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.sv-drop:hover, .sv-drop.is-over { border-color: var(--sv-brand); background: var(--sv-brand-tint); }
.sv-drop-empty { display: grid; justify-items: center; gap: 2px; color: var(--sv-muted); font-size: 14px; }
.sv-drop-empty svg { width: 28px; height: 28px; color: var(--sv-brand); margin-bottom: 4px; }
.sv-drop-empty strong { color: var(--sv-ink); font-size: 15px; }
.sv-drop-filled { display: grid; justify-items: center; gap: 10px; }
.sv-drop-filled img { max-width: 220px; max-height: 84px; object-fit: contain; }


.sv-submit { grid-column: 1 / -1; display: grid; gap: 12px; justify-items: start; }
.sv-error { margin: 0; color: var(--sv-danger); font-weight: 600; min-height: 0; }
.sv-error:empty { display: none; }
.sv-fine { margin: 0; font-size: 13px; color: var(--sv-muted); }

.sv-footer {
  display: flex; justify-content: center; gap: 8px; padding: 18px 16px 28px; font-size: 13px; color: var(--sv-muted);
}
.sv-footer a { color: var(--sv-muted); }

.sv-expired { max-width: 560px; margin: 12vh auto; padding: 0 16px; }
.sv-expired h1 { font-size: 24px; margin: 0 0 10px; }
.sv-expired p { color: var(--sv-muted); margin: 0 0 20px; }

/* ── Demo-Rahmen: Leiste ───────────────────────────────────────────────── */
.sv-bar {
  position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--sv-line);
}
.sv-bar-inner {
  max-width: 1440px; margin: 0 auto; padding: 10px 20px; min-height: var(--bar-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
}
.sv-tabs { display: flex; justify-content: center; gap: 4px; min-width: 0; }
.sv-tabs button {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px;
  padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--sv-muted);
  font-weight: 650; cursor: pointer; white-space: nowrap;
}
.sv-tabs button:hover { background: var(--sv-bg); color: var(--sv-ink); }
.sv-tabs button[aria-selected="true"] { background: var(--sv-ink); color: #fff; }
.sv-tab-num {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: 11px; font-weight: 800; background: var(--sv-line); color: var(--sv-ink);
}
.sv-tabs button[aria-selected="true"] .sv-tab-num { background: #fff; }
.sv-tabs button.is-done .sv-tab-num { background: var(--sv-brand); color: #fff; font-size: 0; }
.sv-tabs button.is-done .sv-tab-num::before { content: "✓"; font-size: 11px; }
.sv-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #d64533; color: #fff;
  font-size: 12px; font-weight: 800; display: inline-grid; place-items: center;
}
.sv-bar-actions { display: flex; gap: 8px; align-items: center; }
/* Nach dem Dashboard: „Gespräch vereinbaren“ als nächster Schritt (showcase.js, refresh). */
#btn-talk.is-next { position: relative; animation: sv-talk-pulse 1.6s ease-out 4; }
/* Sprechblase nur, wenn unter dem Button Platz ist: bis 900 px liegen dort die Tabs. */
@media (min-width: 901px) {
  #btn-talk.has-hint::after {
    content: "Hier geht’s weiter"; position: absolute; top: calc(100% + 10px); right: 0;
    background: var(--sv-ink); color: #fff; font-size: 13px; font-weight: 700; padding: 7px 11px;
    border-radius: 8px; box-shadow: var(--sv-shadow); pointer-events: none; white-space: nowrap;
  }
  #btn-talk.has-hint::before {
    content: ""; position: absolute; top: calc(100% + 4px); right: 22px;
    border: 6px solid transparent; border-top: 0; border-bottom-color: var(--sv-ink);
  }
}
@keyframes sv-talk-pulse {
  0% { box-shadow: 0 0 0 0 rgba(231, 184, 90, .7); }
  100% { box-shadow: 0 0 0 12px rgba(231, 184, 90, 0); }
}
@media (prefers-reduced-motion: reduce) { #btn-talk.is-next { animation: none; } }

/* ── Demo-Rahmen: Bühne ────────────────────────────────────────────────── */
.sv-stage {
  max-width: 1440px; margin: 0 auto; padding: 24px 20px 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start;
}
.sv-main { min-width: 0; }

.sv-browser {
  background: #fff; border: 1px solid var(--sv-line); border-radius: 12px; overflow: hidden;
  box-shadow: var(--sv-shadow);
}
.sv-browser-bar {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #eef2f1;
  border-bottom: 1px solid var(--sv-line); min-width: 0;
}
.sv-dots { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.sv-dots i { width: 11px; height: 11px; border-radius: 50%; background: #cfd8d5; }
.sv-url {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; max-width: 520px;
  background: #fff; border-radius: 8px; padding: 5px 12px; font-size: 13px; color: var(--sv-muted);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.sv-url svg { width: 13px; height: 13px; flex: 0 0 auto; }

.sv-site { background: #fff; }
.sv-site-head {
  display: flex; align-items: center; gap: 20px; padding: 16px 28px; border-bottom: 1px solid #eee; min-width: 0;
}
.sv-site-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.sv-site-brand img { height: 40px; max-width: 140px; object-fit: contain; flex: 0 0 auto; }
.sv-site-brand strong { font-size: 18px; color: #1a1a1a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-site-nav { display: flex; gap: 22px; font-size: 15px; color: #444; white-space: nowrap; }
.sv-site-cta { background: var(--c); color: #fff; border-radius: 6px; padding: 8px 16px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.sv-site-hero { padding: 36px 28px 26px; background: linear-gradient(180deg, var(--c-light), #fff); }
.sv-site-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.sv-site-hero h1 { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; color: #1a1a1a; }
.sv-site-hero p { margin: 0; max-width: 620px; color: #555; }
.sv-site-embed { border-top: 1px solid #eee; background: #f4f4f4; }
#rechner {
  display: block; width: 100%; min-height: 640px; border: 0; background: #f4f4f4; overflow: hidden;
  scroll-margin-top: calc(var(--bar-h) + 16px);
}
.sv-site-foot { padding: 18px 28px; font-size: 13px; color: #888; border-top: 1px solid #eee; }
.sv-caption { margin: 10px 4px 0; font-size: 13px; color: var(--sv-muted); }

.sv-dash-frame {
  display: block; width: 100%; height: calc(100vh - var(--bar-h) - 110px); min-height: 560px; border: 0; background: #f6f7f9;
}

/* ── Rundgang (rechte Spalte) ──────────────────────────────────────────── */
.sv-tour { position: sticky; top: calc(var(--bar-h) + 16px); display: grid; gap: 12px; min-width: 0; }
.sv-tour-card, .sv-guide {
  background: #fff; border: 1px solid var(--sv-line); border-radius: var(--sv-radius); padding: 18px;
  box-shadow: var(--sv-shadow);
}
.sv-tour-title { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sv-muted); }
.sv-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: step; }
.sv-checklist li {
  counter-increment: step; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--sv-muted);
}
.sv-checklist li::before {
  content: counter(step); display: inline-grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px;
  border-radius: 50%; border: 1.5px solid var(--sv-line); font-size: 12px; font-weight: 700; color: var(--sv-muted);
}
.sv-checklist li.is-done { color: var(--sv-ink); }
.sv-checklist li.is-done::before { content: "✓"; background: var(--sv-brand); border-color: var(--sv-brand); color: #fff; }
.sv-checklist li.is-current { color: var(--sv-ink); font-weight: 650; }
.sv-checklist li.is-current::before { border-color: var(--sv-ink); color: var(--sv-ink); }

.sv-guide { border-top: 4px solid var(--sv-gold); }
.sv-guide-title { margin: 0 0 6px; font-weight: 750; color: var(--sv-ink); font-size: 16px; line-height: 1.3; }
.sv-guide-body { margin: 0; font-size: 14.5px; line-height: 1.55; }
.sv-guide-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sv-guide-actions:empty { display: none; }
.sv-guide-actions .sv-btn { min-height: 38px; padding: 0 12px; font-size: 14px; }
.sv-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 1.5px solid var(--sv-line); border-radius: 999px; background: #fff; color: var(--sv-ink);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.sv-chip:hover { border-color: var(--sv-brand); }
.sv-guide-more { display: none; }
.sv-tour-foot { margin: 0 4px; font-size: 13px; color: var(--sv-muted); }

/* ── Posteingang ───────────────────────────────────────────────────────── */
.sv-mail { background: #fff; border: 1px solid var(--sv-line); border-radius: 12px; overflow: hidden; box-shadow: var(--sv-shadow); }
.sv-mail-head {
  display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--sv-line); background: #fafcfb;
}
.sv-mail-head strong { color: var(--sv-ink); font-size: 17px; }
.sv-mail-head span { color: var(--sv-muted); font-size: 14px; }
.sv-mail-body { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); min-height: 520px; }
.sv-mail-list { border-right: 1px solid var(--sv-line); overflow-y: auto; max-height: 72vh; }
.sv-mail-item {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; text-align: left; padding: 14px 16px;
  background: #fff; border: 0; border-bottom: 1px solid #eef1f0; cursor: pointer; color: var(--sv-text);
}
.sv-mail-item:hover { background: #f7faf9; }
.sv-mail-item[aria-selected="true"] { background: var(--sv-brand-tint); box-shadow: inset 3px 0 0 var(--sv-brand); }
.sv-mail-item.is-own .sv-mail-subject { font-weight: 800; }
.sv-mail-from { font-size: 13px; color: var(--sv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-mail-date { font-size: 12px; color: var(--sv-muted); white-space: nowrap; }
.sv-mail-subject { grid-column: 1 / -1; font-weight: 650; color: var(--sv-ink); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-mail-tags { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 4px; }
.sv-tag { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: #eef1f0; color: #5b6b67; }
.sv-tag.is-own { background: var(--c); color: #fff; }
.sv-tag.is-visit { background: #ffe8d6; color: #a04a00; }

.sv-mail-read { padding: 22px 26px 28px; min-width: 0; }
.sv-mail-read h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; }
.sv-mail-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 14px; color: var(--sv-muted); margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--sv-line); }
.sv-mail-meta dt { font-weight: 600; }
.sv-mail-meta dd { margin: 0; color: var(--sv-text); overflow-wrap: anywhere; }
.sv-mail-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; margin: 0; }
.sv-mail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sv-mail-note { margin: 18px 0 0; font-size: 13px; color: var(--sv-muted); }
.sv-mail-empty { padding: 18px 16px; font-size: 14px; color: var(--sv-muted); border-bottom: 1px solid #eef1f0; background: #fffbf0; }
.sv-mail-back { display: none; }

/* ── Abschluss („Gespräch vereinbaren“) ────────────────────────────────── */
.sv-drawer { position: fixed; inset: 0; z-index: 60; }
.sv-drawer-backdrop { position: absolute; inset: 0; background: rgba(17, 33, 29, .45); }
.sv-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); overflow-y: auto;
  background: #fff; padding: 30px 30px 40px; box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
}
.sv-drawer-panel h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.2; padding-right: 30px; }
.sv-drawer-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--sv-bg); font-size: 24px; line-height: 1; cursor: pointer; color: var(--sv-ink);
}
.sv-benefits { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.sv-benefits li { position: relative; padding-left: 30px; }
.sv-benefits li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sv-brand-tint); color: var(--sv-brand); display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.sv-calc { background: var(--sv-bg); border-radius: 12px; padding: 16px; margin-bottom: 22px; }
.sv-calc-title { margin: 0 0 10px; font-weight: 700; color: var(--sv-ink); }
.sv-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sv-calc-grid label { display: grid; gap: 4px; font-size: 13px; color: var(--sv-muted); font-weight: 600; }
.sv-calc-grid input {
  min-height: 44px; border: 1.5px solid var(--sv-line); border-radius: 10px; padding: 0 12px;
  font: inherit; font-size: 17px; font-weight: 700; color: var(--sv-ink); background: #fff; width: 100%;
}
.sv-calc-result { margin: 14px 0 6px; font-size: 17px; color: var(--sv-ink); }
.sv-calc-result strong { font-size: 22px; }
.sv-next-title { margin: 0 0 4px; font-weight: 700; color: var(--sv-ink); }
.sv-next-lead { margin: 0 0 14px; font-size: 15px; color: var(--sv-muted); }
.sv-next { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: next; }
.sv-next li { counter-increment: next; position: relative; padding-left: 38px; color: var(--sv-muted); font-size: 15px; }
.sv-next li strong { display: block; color: var(--sv-ink); }
.sv-next li::before {
  content: counter(next); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sv-ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
.sv-contact { border: 1px solid var(--sv-line); border-radius: 12px; padding: 16px; margin-bottom: 22px; display: grid; gap: 10px; }
.sv-contact p { margin: 0; }
.sv-contact .sv-contact-name { font-weight: 700; color: var(--sv-ink); }
.sv-contact .sv-btn { width: 100%; }
.sv-callback { border-top: 1px solid var(--sv-line); padding-top: 14px; margin-top: 4px; }
.sv-callback-form { display: grid; gap: 12px; }
.sv-callback-form input {
  width: 100%; min-height: 46px; border: 1.5px solid var(--sv-line); border-radius: 10px;
  padding: 0 14px; font: inherit; color: var(--sv-ink); background: #fff;
}
.sv-callback-form input:focus { border-color: var(--sv-brand); outline: none; }
.sv-callback-ok { font-weight: 700; color: var(--sv-ink); }
.sv-callback-form [hidden] { display: none; }
.sv-channel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sv-channel-btn {
  min-height: 42px; border: 1.5px solid var(--sv-line); border-radius: 10px; background: #fff;
  font: inherit; font-weight: 650; color: var(--sv-ink); cursor: pointer;
}
.sv-channel-btn[aria-pressed="true"] { border-color: var(--sv-brand); background: var(--sv-brand-tint); }
.sv-channel-btn:focus-visible { outline: 2px solid var(--sv-brand); outline-offset: 2px; }
.sv-faq details { border-top: 1px solid var(--sv-line); padding: 12px 0; }
.sv-faq details:last-child { border-bottom: 1px solid var(--sv-line); }
.sv-faq summary { cursor: pointer; font-weight: 650; color: var(--sv-ink); }
.sv-faq p { margin: 8px 0 0; color: var(--sv-muted); font-size: 15px; }
.sv-faq .sv-faq-aktion { color: var(--sv-ink); background: var(--sv-brand-tint); border-radius: 8px; padding: 10px 12px; }
.sv-faq .sv-faq-aktion[hidden] { display: none; }

.sv-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; max-width: calc(100% - 32px);
  background: var(--sv-ink); color: #fff; border-radius: 10px; padding: 12px 18px; font-size: 14.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* ── Tablet ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sv-bar .sv-brand-name { display: none; }
  .sv-stage { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
  .sv-site-nav { display: none; }
}

@media (max-width: 900px) {
  :root { --bar-h: 108px; }
  .sv-bar-inner { grid-template-columns: 1fr auto; row-gap: 8px; padding: 8px 16px; }
  .sv-tabs { grid-column: 1 / -1; grid-row: 2; justify-content: stretch; }
  .sv-tabs button { flex: 1 1 0; justify-content: center; padding: 0 8px; min-width: 0; }
  .sv-stage { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 140px; }
  .sv-tour { position: static; }
  .sv-tour-card { display: none; }
  /* Hinweis als Leiste am unteren Bildschirmrand: bleibt beim Durchspielen sichtbar. */
  .sv-guide {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; padding: 12px 14px;
    box-shadow: 0 10px 30px rgba(17, 33, 29, .22);
  }
  .sv-guide .sv-guide-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
  .sv-guide.is-open .sv-guide-body { display: block; }
  .sv-guide-title { font-size: 15px; padding-right: 56px; }
  .sv-guide-more {
    display: block; position: absolute; top: 10px; right: 10px; border: 0; background: var(--sv-bg);
    border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; color: var(--sv-ink); cursor: pointer;
  }
  .sv-guide:not(.is-open) .sv-guide-actions { margin-top: 8px; }
  .sv-tour-foot { text-align: center; }
  .sv-setup { grid-template-columns: minmax(0, 1fr); }
  .sv-mail-body { grid-template-columns: minmax(0, 1fr); }
  .sv-mail-list { border-right: 0; max-height: none; }
  .sv-mail.is-reading .sv-mail-list { display: none; }
  .sv-mail:not(.is-reading) .sv-mail-read { display: none; }
  .sv-mail-back { display: inline-flex; margin-bottom: 12px; }
  .sv-mail-read { padding: 16px 16px 22px; }
}

/* ── Handy ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .sv-roles { grid-template-columns: minmax(0, 1fr); }
  .sv-bar .sv-pill { display: none; }
  .sv-bar-actions .sv-btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
  #btn-edit { display: none; }
  .sv-tabs button { font-size: 13.5px; gap: 6px; }
  .sv-tab-num { display: none; }
  .sv-tabs button.is-done::after { content: " ✓"; }
  .sv-site-head { padding: 12px 16px; gap: 12px; }
  .sv-site-brand img { height: 32px; max-width: 90px; }
  .sv-site-brand strong { font-size: 16px; }
  .sv-site-cta { display: none; }
  .sv-site-hero { padding: 24px 16px 18px; }
  .sv-site-foot { padding: 14px 16px; }
  .sv-browser-bar { padding: 8px 10px; }
  .sv-dots { display: none; }
  .sv-drawer-panel { padding: 24px 18px 32px; }
  .sv-calc-grid { grid-template-columns: minmax(0, 1fr); }
  .sv-start { padding-top: 28px; }
  .sv-lead { font-size: 16.5px; }
}

/* ── Handy: geführter Ablauf (showcase.js setzt .sv-mobile-flow bis 700 px) ─
   Begrüßung zuerst, dann der Rechner ohne nachgebaute Browserleiste und
   Website; die Hinweise stehen oben im Inhalt statt als Leiste darüber. */
.sv-welcome { max-width: 560px; margin: 0 auto; padding: 4px 0 8px; }
.sv-welcome h1 { margin: 2px 0 10px; font-size: 27px; line-height: 1.15; letter-spacing: -.01em; color: var(--sv-ink); }
.sv-welcome-lead { margin: 0 0 20px; font-size: 16px; color: var(--sv-text); }
.sv-welcome-actions { display: grid; gap: 10px; margin: 20px 0 18px; }
.sv-welcome-actions .sv-btn { min-height: 52px; font-size: 16px; justify-content: center; }
.sv-welcome-steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 4px; font-size: 14.5px; color: var(--sv-muted); }
body.is-welcome .sv-tabs, body.is-welcome .sv-guide, body.is-welcome .sv-tour-foot { display: none; }

.sv-mobile-flow .sv-stage { padding-bottom: 32px; }
.sv-mobile-flow .sv-guide { position: relative; left: auto; right: auto; bottom: auto; margin: 0 0 14px; box-shadow: none; }
.sv-mobile-flow #view-website.is-compact { margin: 0 -16px; }
.sv-mobile-flow #view-website.is-compact .sv-browser { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.sv-mobile-flow #view-website.is-compact .sv-browser-bar,
.sv-mobile-flow #view-website.is-compact .sv-site-head,
.sv-mobile-flow #view-website.is-compact .sv-site-hero,
.sv-mobile-flow #view-website.is-compact .sv-site-foot,
.sv-mobile-flow #view-website.is-compact .sv-caption { display: none; }
.sv-mobile-flow #view-website.is-compact .sv-site-embed { border-top: 0; }

/* A short introduction and a quiet, numbered navigation. */
body.is-welcome .sv-stage { display: block; }
body.is-welcome .sv-tour, body.is-welcome .sv-bar-actions { display: none; }
.sv-welcome { padding-top: 18px; }
.sv-welcome-steps { list-style: none; padding: 0; gap: 12px; margin: 24px 0; color: var(--sv-text); }
.sv-welcome-steps li { display: flex; gap: 14px; align-items: flex-start; }
.sv-welcome-steps li > span { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--sv-brand-tint); color: var(--sv-brand); font-weight: 750; }
.sv-welcome-steps strong { display: block; color: var(--sv-ink); font-size: 16px; }
.sv-welcome-steps p { margin: 3px 0 0; font-size: 14px; }
.sv-guide { position: relative; padding-top: 18px; }
.sv-guide-title { padding-right: 36px; }
.sv-guide-close { position: absolute; top: 3px; right: 3px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--sv-muted); font-size: 25px !important; cursor: pointer; }
.sv-guide-close:hover { background: var(--sv-bg); }
@media (max-width: 900px) {
  .sv-guide { position: relative; inset: auto; box-shadow: none; }
  .sv-guide-more { position: static; margin-top: 8px; min-height: 36px; }
  .sv-stage { padding-bottom: 28px; }
}
@media (max-width: 700px) {
  body.is-calculating .sv-bar-actions { display: none; }
  .sv-mobile-flow .sv-tab-num { display: inline-grid; place-items: center; }
  .sv-mobile-flow .sv-tabs button.is-done::after { content: none; }
  .sv-mobile-flow .sv-tabs button { font-size: 12px; gap: 5px; padding: 0 5px; }
  .sv-mobile-flow .sv-guide { margin-top: 12px; }
  .sv-mobile-flow .sv-main > .sv-guide { order: 2; }
  .sv-mobile-flow .sv-main { display: flex; flex-direction: column; }
}

body.is-welcome { --bar-h: 64px; }
@media (max-width: 700px) {
  .sv-mobile-flow .sv-bar .sv-brand-name { display: inline; font-size: 14px; }
  body.is-welcome .sv-bar-inner { display: flex; }
}

/* ── Erster Eindruck auf dem Handy (18.11.2026) ────────────────────────────
   Der Rechner ist so hoch wie der sichtbare Schritt (showcase.js resizeFrame),
   „Gespräch vereinbaren“ steht neben der Marke statt in einer eigenen Zeile
   und bleibt sichtbar, sobald ein Ergebnis da ist. Im Posteingang und im
   Dashboard stehen die Hinweise über dem Inhalt; das Dashboard scrollt mit
   der Seite statt in einem eigenen Rahmen. */
.sv-welcome-talk { margin: 14px 0 0; font-size: 14.5px; color: var(--sv-text); }
/* Der Rechner ändert seine Höhe von Schritt zu Schritt. Ohne diese Zeile hält
   der Browser den Hinweis darunter fest und schiebt die Überschrift des neuen
   Schritts unter die Leiste (Scroll-Verankerung). */
body.sv-shell { overflow-anchor: none; }
@media (max-width: 700px) {
  .sv-mobile-flow #rechner { min-height: 320px; }
  .sv-mobile-flow .sv-bar-inner { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; }
  .sv-mobile-flow .sv-bar .sv-brand-name { overflow: hidden; text-overflow: ellipsis; }
  .sv-mobile-flow .sv-bar-actions .sv-btn { min-height: 36px; padding: 0 11px; font-size: 13.5px; }
  body.is-calculating.has-played .sv-bar-actions { display: flex; }
  .sv-mobile-flow[data-view="inbox"] .sv-main > .sv-guide,
  .sv-mobile-flow[data-view="dashboard"] .sv-main > .sv-guide { order: -1; margin: 0 0 12px; }
  /* Oben stehend führt der Hinweis zum nächsten Schritt: ganz zeigen, nicht kürzen. */
  .sv-mobile-flow[data-view="inbox"] .sv-guide-body,
  .sv-mobile-flow[data-view="dashboard"] .sv-guide-body { display: block; }
  .sv-mobile-flow[data-view="inbox"] .sv-guide-more,
  .sv-mobile-flow[data-view="dashboard"] .sv-guide-more { display: none; }
  .sv-mobile-flow #view-dashboard { margin: 0 -16px; }
  .sv-mobile-flow #view-dashboard .sv-browser { border-left: 0; border-right: 0; border-radius: 0; box-shadow: none; }
  .sv-mobile-flow #view-dashboard .sv-browser-bar { display: none; }
  .sv-mobile-flow .sv-dash-frame { height: 70vh; min-height: 320px; }
}
