/* StartFunnel App — ruhig, hell, klar. Blau = Handlung, Grün = Erfolg/aktiv. */
:root {
  --bg: #F5F5F7;
  --karte: #FFFFFF;
  --text: #1D1D1F;
  --text2: #6E6E73;
  --text3: #8E8E93;
  --linie: rgba(0, 0, 0, .08);
  --linie2: rgba(0, 0, 0, .14);
  --blau: #0071E3;
  --blau-hover: #0077ED;
  --blau-hell: #E8F2FD;
  --gruen: #1E8E3E;
  --gruen-punkt: #34C759;
  --gruen-hell: #E6F6EA;
  --rot: #D70015;
  --rot-hell: #FDECEE;
  --orange-punkt: #FF9F0A;
  --radius: 18px;
  --radius-s: 12px;
  --schatten: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .04);
  --schatten-gross: 0 20px 60px rgba(0, 0, 0, .18);
  --schrift: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, 'Segoe UI', system-ui, sans-serif;
  --schrift-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Inter, 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 var(--schrift); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
a { color: var(--blau); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--schrift-display); letter-spacing: -.022em; margin: 0; }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
.leise { color: var(--text2); }
.klein { font-size: 12px; }
.zahl { font-variant-numeric: tabular-nums; }

/* ---------- Grundlayout ---------- */
.schale { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.seitenleiste { position: sticky; top: 0; height: 100vh; padding: 20px 12px; border-right: 1px solid var(--linie);
  background: rgba(250, 250, 252, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  display: flex; flex-direction: column; gap: 2px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font: 700 17px var(--schrift-display); letter-spacing: -.02em; color: var(--text); }
.logo svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); font-weight: 500; }
.nav:hover { background: rgba(0, 0, 0, .04); text-decoration: none; }
.nav.aktiv { background: var(--blau-hell); color: var(--blau); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .zaehler { margin-left: auto; background: var(--blau); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 600; padding: 1px 7px; }
.seitenleiste .unten { margin-top: auto; padding: 10px; font-size: 12px; color: var(--text3); }
.inhalt { min-width: 0; padding: 32px 40px 60px; max-width: 1280px; }
.kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.kopf p { margin: 6px 0 0; color: var(--text2); font-size: 15px; }

/* ---------- Bausteine ---------- */
.karte { background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten); padding: 22px; }
.karte + .karte { margin-top: 16px; }
.karte h2 { margin-bottom: 4px; }
.karte > .leise:first-of-type { margin-top: 0; }
.raster { display: grid; gap: 16px; }
.r4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.r21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 980px; padding: 8px 18px;
  font-weight: 500; font-size: 14px; cursor: pointer; background: var(--blau); color: #fff; white-space: nowrap; transition: background .15s, transform .1s; }
.knopf:hover { background: var(--blau-hover); text-decoration: none; }
.knopf:active { transform: scale(.97); }
.knopf:disabled { opacity: .5; cursor: default; }
.knopf.zweit { background: rgba(0, 0, 0, .05); color: var(--text); }
.knopf.zweit:hover { background: rgba(0, 0, 0, .08); }
.knopf.rot { background: var(--rot-hell); color: var(--rot); }
.knopf.klein { padding: 5px 12px; font-size: 13px; }
.knopf.gross { padding: 12px 24px; font-size: 16px; }
.link-knopf { background: none; border: 0; color: var(--blau); cursor: pointer; padding: 4px 0; font-weight: 500; }
.link-knopf.rot { color: var(--rot); }
.icon-knopf { border: 0; background: none; border-radius: 8px; width: 30px; height: 30px; display: inline-grid; place-items: center; cursor: pointer; color: var(--text2); }
.icon-knopf:hover { background: rgba(0, 0, 0, .06); color: var(--text); }
.icon-knopf svg { width: 16px; height: 16px; }

.pille { display: inline-flex; align-items: center; gap: 6px; border-radius: 980px; padding: 3px 10px; font-size: 12px; font-weight: 500; background: rgba(0, 0, 0, .05); color: var(--text2); white-space: nowrap; }
.pille .punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--text3); }
.pille.gruen { background: var(--gruen-hell); color: var(--gruen); }
.pille.gruen .punkt { background: var(--gruen-punkt); }
.pille.blau { background: var(--blau-hell); color: var(--blau); }
.pille.blau .punkt { background: var(--blau); }
.pille.orange .punkt { background: var(--orange-punkt); }

/* Kennzahlen */
.kennzahl { background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten); padding: 18px 20px; }
.kennzahl .name { color: var(--text2); font-size: 13px; font-weight: 500; }
.kennzahl .wert { font: 700 32px/1.1 var(--schrift-display); letter-spacing: -.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kennzahl .sub { color: var(--text3); font-size: 12px; margin-top: 4px; }

/* Formulare */
.feld { display: block; margin-bottom: 16px; }
.feld > span { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.feld > span em { font-style: normal; color: var(--text3); font-weight: 400; }
.feld small { display: block; color: var(--text3); font-size: 12px; margin-top: 5px; }
.eingabe, .feld input[type=text], .feld input[type=url], .feld input[type=email], .feld input[type=password], .feld textarea, .feld select, select.eingabe {
  width: 100%; border: 1px solid var(--linie2); background: #fff; border-radius: 10px; padding: 9px 12px; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.feld textarea { min-height: 76px; resize: vertical; line-height: 1.45; }
.eingabe:focus, .feld input:focus, .feld textarea:focus, .feld select:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.suche { position: relative; }
.suche svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text3); }
.suche input { padding-left: 32px; border-radius: 980px; background: rgba(0, 0, 0, .04); border-color: transparent; }

.schalter { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linie); cursor: pointer; }
.schalter:last-child { border-bottom: 0; }
.schalter .txt b { display: block; font-weight: 500; }
.schalter .txt small { color: var(--text2); font-size: 12px; }
.schalter input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: #E9E9EB; position: relative; cursor: pointer; flex: none; transition: background .2s; margin: 0; }
.schalter input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.schalter input:checked { background: var(--gruen-punkt); }
.schalter input:checked::after { transform: translateX(18px); }

.segment { display: inline-flex; background: rgba(0, 0, 0, .06); border-radius: 9px; padding: 2px; gap: 2px; }
.segment button { border: 0; background: none; padding: 5px 14px; border-radius: 7px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text); white-space: nowrap; }
.segment button.an { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* Listen-Editor */
.liste-ed { border: 1px solid var(--linie); border-radius: var(--radius-s); overflow: hidden; margin-bottom: 16px; }
.liste-ed .kopfzeile { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #FAFAFC; border-bottom: 1px solid var(--linie); font-size: 13px; font-weight: 500; }
.liste-ed .eintrag { display: flex; gap: 8px; align-items: flex-start; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--linie); }
.liste-ed .eintrag:last-child { border-bottom: 0; }
.liste-ed .eintrag .felder { flex: 1; display: grid; gap: 6px; }
.liste-ed .eintrag input, .liste-ed .eintrag textarea { width: 100%; border: 1px solid transparent; background: rgba(0, 0, 0, .03); border-radius: 8px; padding: 7px 10px; font-size: 14px; }
.liste-ed .eintrag textarea { min-height: 54px; resize: vertical; }
.liste-ed .eintrag input:focus, .liste-ed .eintrag textarea:focus { outline: none; border-color: var(--blau); background: #fff; }
.liste-ed .leer { padding: 14px; color: var(--text3); font-size: 13px; }
.liste-ed .aktionen { display: flex; gap: 0; }

.frage-karte { border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; background: #fff; }
.frage-karte .kopfzeile { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.frage-nr { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blau); color: #fff; font-size: 12px; font-weight: 600; margin-right: 8px; }

/* Tabellen */
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th { text-align: left; font-size: 12px; font-weight: 500; color: var(--text2); padding: 10px 12px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.tabelle td { padding: 12px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tbody tr { cursor: pointer; transition: background .1s; }
.tabelle tbody tr:hover { background: #FAFAFC; }
.tabelle .rechts { text-align: right; }
.tabellen-karte { padding: 6px 10px; overflow-x: auto; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 600; font-size: 13px; color: #fff; flex: none;
  background: linear-gradient(135deg, #0071E3, #34C759); }
.person { display: flex; align-items: center; gap: 10px; }
.person b { display: block; font-weight: 500; }
.person small { color: var(--text2); }

/* Funnel-Karten */
.funnel-karte { background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten); padding: 20px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .15s, box-shadow .15s; cursor: pointer; }
.funnel-karte:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 14px 34px rgba(0, 0, 0, .08); }
.funnel-karte .oben { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.funnel-karte h3 { font-size: 17px; }
.funnel-karte .adresse { color: var(--text2); font-size: 12px; margin-top: 3px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.funnel-karte .werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--linie); padding-top: 14px; }
.funnel-karte .werte b { display: block; font: 600 20px var(--schrift-display); font-variant-numeric: tabular-nums; }
.funnel-karte .werte span { color: var(--text2); font-size: 12px; }
.funnel-karte .unten { display: flex; gap: 6px; flex-wrap: wrap; }
.neu-karte { border: 2px dashed var(--linie2); background: transparent; box-shadow: none; align-items: center; justify-content: center; color: var(--blau); font-weight: 500; min-height: 190px; }
.neu-karte:hover { background: rgba(0, 113, 227, .04); border-color: var(--blau); }

/* Editor */
.editor-leiste { position: sticky; top: 0; z-index: 20; margin: -32px -40px 20px; padding: 12px 40px; display: flex; align-items: center; gap: 12px;
  background: rgba(245, 245, 247, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--linie); }
.editor-leiste .name-eingabe { font: 600 17px var(--schrift-display); border: 1px solid transparent; background: none; border-radius: 8px; padding: 4px 8px; min-width: 0; flex: 0 1 360px; }
.editor-leiste .name-eingabe:hover { border-color: var(--linie2); }
.editor-leiste .name-eingabe:focus { outline: none; border-color: var(--blau); background: #fff; }
.editor-leiste .rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.speicher-status { font-size: 12px; color: var(--text3); white-space: nowrap; }
.speicher-status.offen { color: var(--orange-punkt); }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.reiter { display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 16px; scrollbar-width: none; }
.reiter::-webkit-scrollbar { display: none; }
.reiter button { flex: none; border: 0; background: none; padding: 7px 12px; border-radius: 980px; font-weight: 500; cursor: pointer; color: var(--text2); }
.reiter button:hover { color: var(--text); background: rgba(0, 0, 0, .04); }
.reiter button.an { background: var(--text); color: #fff; }

.vorschau-spalte { position: sticky; top: 76px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.telefon { width: 340px; height: 700px; border-radius: 52px; background: #1D1D1F; padding: 11px; box-shadow: 0 30px 60px rgba(0, 0, 0, .18), inset 0 0 0 2px #3a3a3c; position: relative; }
.telefon::before { content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 16px; background: #000; z-index: 2; }
.telefon iframe { width: 100%; height: 100%; border: 0; border-radius: 42px; background: #fff; display: block; }
#schritte { max-width: 360px; overflow-x: auto; scrollbar-width: none; }
#schritte button { padding: 5px 10px; flex: none; }
.vorschau-hinweis { font-size: 12px; color: var(--text3); }

.design-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.design-karte { border: 2px solid var(--linie); border-radius: var(--radius-s); padding: 12px; cursor: pointer; background: #fff; text-align: left; }
.design-karte:hover { border-color: var(--linie2); }
.design-karte.an { border-color: var(--blau); }
.design-karte .farben { display: flex; gap: 4px; margin-bottom: 8px; }
.design-karte .farben i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }
.farb-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 16px; }
.farbe { display: flex; align-items: center; gap: 10px; }
.farbe input[type=color] { width: 36px; height: 36px; border: 1px solid var(--linie2); border-radius: 10px; padding: 2px; background: #fff; cursor: pointer; }
.farbe span { font-size: 13px; }
.farbe code { display: block; color: var(--text3); font-size: 11px; }

/* Chat-Simulator */
.chat { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.blase { max-width: 78%; padding: 9px 14px; border-radius: 20px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.blase.ich { align-self: flex-end; background: var(--blau); color: #fff; border-bottom-right-radius: 6px; }
.blase.bot { align-self: flex-start; background: #EFEFF2; border-bottom-left-radius: 6px; }
.blase.oeffentlich { align-self: flex-start; background: #fff; border: 1px dashed var(--linie2); color: var(--text2); }
.blase .chat-knopf { display: block; margin-top: 8px; padding: 7px 12px; border-radius: 12px; background: #fff; color: var(--blau); text-align: center; font-weight: 600; border: 1px solid var(--linie); }
.chat-info { align-self: center; font-size: 11px; color: var(--text3); }

/* Diagramme */
.diagramm { position: relative; }
.diagramm svg { display: block; width: 100%; overflow: visible; }
.diagramm .tipp { position: absolute; pointer-events: none; background: rgba(29, 29, 31, .92); color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12px;
  white-space: nowrap; transform: translate(-50%, -100%); margin-top: -8px; opacity: 0; transition: opacity .1s; }
.stufen { display: grid; gap: 10px; }
.stufe { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 12px; font-size: 13px; }
.stufe .spur { height: 26px; background: #F2F2F5; border-radius: 6px; overflow: hidden; }
.stufe .spur span { display: block; height: 100%; background: var(--blau); border-radius: 0 4px 4px 0; min-width: 2px; }
.stufe .spur span.gruen { background: var(--gruen-punkt); }
.stufe .zahlen { text-align: right; font-variant-numeric: tabular-nums; }
.stufe .zahlen small { color: var(--text3); margin-left: 4px; }

/* Seitenblatt (Kontakt-Details) + Dialoge */
.schleier { position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 50; animation: ein .2s; }
.blatt { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: #fff; z-index: 51; box-shadow: var(--schatten-gross); overflow-y: auto; padding: 24px; animation: rein .25s ease; }
.dialog { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-radius: 22px; z-index: 51; box-shadow: var(--schatten-gross); padding: 26px; animation: auf .2s ease; }
.dialog .knoepfe, .blatt .knoepfe { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
@keyframes ein { from { opacity: 0; } }
@keyframes rein { from { transform: translateX(40px); opacity: 0; } }
@keyframes auf { from { transform: translate(-50%, -48%) scale(.97); opacity: 0; } }
.vorlagen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.vorlage { border: 2px solid var(--linie); border-radius: 14px; padding: 14px; cursor: pointer; background: #fff; text-align: left; }
.vorlage:hover { border-color: var(--linie2); }
.vorlage.an { border-color: var(--blau); background: var(--blau-hell); }
.vorlage b { display: block; margin: 8px 0 3px; }
.vorlage small { color: var(--text2); font-size: 12px; line-height: 1.35; display: block; }
.vorlage .sym { font-size: 22px; }
.antworten { background: var(--bg); border-radius: var(--radius-s); padding: 12px 14px; margin: 12px 0; }
.antworten div { padding: 6px 0; border-bottom: 1px solid var(--linie); }
.antworten div:last-child { border-bottom: 0; }
.antworten small { display: block; color: var(--text2); font-size: 12px; }
.detail-zeile { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linie); font-size: 14px; }
.detail-zeile span:first-child { color: var(--text2); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: rgba(29, 29, 31, .94); color: #fff; padding: 10px 18px; border-radius: 980px;
  font-weight: 500; z-index: 60; box-shadow: var(--schatten-gross); animation: toast .25s ease; display: flex; align-items: center; gap: 8px; }
.toast.fehler { background: var(--rot); }
@keyframes toast { from { transform: translate(-50%, 20px); opacity: 0; } }

.leer-zustand { text-align: center; padding: 50px 20px; color: var(--text2); }
.leer-zustand svg { width: 44px; height: 44px; color: var(--text3); margin-bottom: 10px; }
.leer-zustand h3 { color: var(--text); margin-bottom: 6px; font-size: 17px; }

.hinweis-box { border-radius: var(--radius-s); padding: 12px 14px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.hinweis-box.blau { background: var(--blau-hell); color: #0B4F9C; }
.hinweis-box.gruen { background: var(--gruen-hell); color: #17652D; }
.hinweis-box.grau { background: rgba(0, 0, 0, .04); color: var(--text2); }
.hinweis-box svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

.check { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.check:last-child { border-bottom: 0; }
.check .kreis { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; flex: none; background: #D1D1D6; }
.check .kreis.ok { background: var(--gruen-punkt); }
.code-zeile { display: flex; gap: 8px; align-items: center; background: var(--bg); border-radius: 10px; padding: 8px 8px 8px 12px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; }
.code-zeile span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Anmeldung */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, #E3EFFD, transparent), radial-gradient(900px 500px at 110% 110%, #E3F6E8, transparent), var(--bg); }
.login .karte { width: min(380px, 100%); padding: 36px 32px; text-align: center; }
.login svg.gross { width: 56px; height: 56px; margin-bottom: 14px; }
.login h1 { font-size: 26px; margin-bottom: 6px; }
.login p { color: var(--text2); margin: 0 0 22px; }
.login input { text-align: center; }
.login .fehler { color: var(--rot); font-size: 13px; min-height: 18px; margin: 8px 0; }
.login .knopf { width: 100%; padding: 11px; font-size: 15px; }

.laden { display: grid; place-items: center; min-height: 40vh; color: var(--text3); }
.kreisel { width: 22px; height: 22px; border: 2.5px solid rgba(0, 0, 0, .1); border-top-color: var(--blau); border-radius: 50%; animation: dreh .8s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .editor { grid-template-columns: 1fr; }
  .vorschau-spalte { position: static; }
  .r4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .schale { grid-template-columns: 1fr; }
  .seitenleiste { position: sticky; z-index: 30; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--linie); }
  .logo { padding: 4px 8px; }
  .logo span, .seitenleiste .unten { display: none; }
  .inhalt { padding: 20px 16px 50px; }
  .editor-leiste { margin: -20px -16px 16px; padding: 10px 16px; top: 49px; flex-wrap: wrap; }
  .r3, .r2, .r21 { grid-template-columns: 1fr; }
  .vorlagen { grid-template-columns: 1fr; }
  .stufe { grid-template-columns: 100px 1fr 70px; }
  .telefon { width: 300px; height: 620px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Übersicht: Funnel-Auswahl + Sortierung */
.filter-leiste { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.auswahl { appearance: none; border: 0; background: rgba(0, 0, 0, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236E6E73' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 11px center;
  border-radius: 9px; padding: 7px 30px 7px 12px; font: 500 13px -apple-system, BlinkMacSystemFont, Inter, system-ui, sans-serif; color: var(--text); cursor: pointer; max-width: 260px; }
.auswahl:focus-visible { outline: 2px solid #0A66D8; outline-offset: 1px; }
.tabelle tr.markiert td { background: rgba(10, 102, 216, .06); }

/* Kontakt: Antworten per WhatsApp / E-Mail */
.antworten-box { margin: 0 0 14px; padding: 14px; }
.antworten-box textarea { border: 1.5px solid var(--linie); border-radius: 10px; padding: 10px; font: 15px/1.45 -apple-system, BlinkMacSystemFont, Inter, system-ui, sans-serif; resize: vertical; }
.knopf.wa { background: #1E8E5A; }

/* Logo & Marke */
.logo-vorschau { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 12px; background: #f5f5f7; border-radius: 12px; }
.logo-vorschau img { max-height: 56px; max-width: 220px; object-fit: contain; }
/* QR-Code */
.qr-feld { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-top: 14px; }
.qr-feld img { width: 200px; height: 200px; border: 1px solid #e5e5ea; border-radius: 12px; background: #fff; image-rendering: pixelated; }
.qr-feld > div { flex: 1; min-width: 220px; }
/* Rückgängig / Wiederholen */
.verlauf { display: inline-flex; gap: 2px; margin-right: 6px; }
.verlauf .icon-knopf:disabled { opacity: .3; cursor: default; }
/* Schriftgröße-Regler */
.regler-zeile { display: flex; align-items: center; gap: 10px; }
.regler-zeile input[type=range] { flex: 1; accent-color: #0A66D8; }
.regler-zeile b { min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
/* Verzweigung: Ziel je Antwort */
.liste-ed .felder .ziel-wahl { margin-top: 6px; width: 100%; font-size: 13px; padding: 7px 10px; color: #6e6e73; background: #fafafa; }
.liste-ed .felder .ziel-wahl.absage { color: #b3261e; border-color: #f0c4c0; background: #fff6f5; }
/* Fotos zur Anfrage */
.kontakt-fotos { margin-top: 14px; }
.kontakt-fotos > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 6px; }
.kontakt-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; border: 1px solid #e5e5ea; }

/* Sprachumschalter DE | EN */
.sprachwahl { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #6e6e73; }
.sprachwahl button { background: none; border: 0; padding: 4px 3px; font: inherit; color: inherit; cursor: pointer; }
.sprachwahl button.an { color: #1d1d1f; font-weight: 700; }

/* Bildlisten (Vertrauen) */
.bild-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; padding: 10px 12px; }
.bild-kachel { border: 1px solid #e5e5ea; border-radius: 10px; overflow: hidden; background: #fff; }
.bild-kachel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #f5f5f7; }
.bild-kachel .aktionen { justify-content: center; padding: 2px 0; }
.bild-feld { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bild-feld img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid #e5e5ea; }

/* Quiz-Wertung je Antwort */
.liste-ed .felder .ziel-wahl.wertung.an { color: #0a66d8; border-color: #b8d3f5; background: #f2f7fe; }
