/* Assistent-Ball (Präfix sba-): schwebender Navigator unten rechts, abgeleitet aus dem Call-Agent-Baukasten
   (Solution-Biz/website-pipeline, modules/call-agent: Sprechball, Gesprächsfenster, Chat, Rückruf).
   Eigenständig: eigene Tokens und Schriften, funktioniert auf alten und neuen Seiten. Logik: assistent-ball.js */
@font-face { font-family: "SBA Serif"; src: url("schriften/serif-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "SBA Serif"; src: url("schriften/serif-LightItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "SBA Sans"; src: url("schriften/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

.sba {
  --sba-nacht: #070e16; --sba-navy: #0b1622; --sba-navy-2: #0f1e2e; --sba-navy-3: #16283c;
  --sba-creme: #f6f1e7; --sba-creme-2: #cfc6b6; --sba-leise: rgba(246, 241, 231, .62);
  --sba-linie: rgba(246, 241, 231, .1); --sba-linie-2: rgba(246, 241, 231, .18);
  --sba-orange: #ee7b2d; --sba-orange-rgb: 238, 123, 45; --sba-gold: #f2b434;
  --sba-blau: #3d86ff; --sba-blau-rgb: 61, 134, 255; --sba-blau-hell: #8fbaff;
  --sba-rot: #ff8a73;
  --sba-serif: "SBA Serif", Georgia, serif;
  --sba-sans: "SBA Sans", "Archivo", "Segoe UI", Arial, sans-serif;
  --sba-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sba-ball: 72px;
  --sba-abstand-r: max(1.1rem, env(safe-area-inset-right));
  --sba-abstand-u: max(1.1rem, env(safe-area-inset-bottom));
  --sba-weich: cubic-bezier(.65, 0, .25, 1);
  font: 400 15px/1.55 var(--sba-sans);
  color: var(--sba-creme);
  -webkit-font-smoothing: antialiased;
}
.sba *, .sba *::before, .sba *::after { box-sizing: border-box; }
.sba [hidden] { display: none !important; }
.sba button, .sba input, .sba textarea, .sba select { font: inherit; color: inherit; }
.sba :focus-visible { outline: 2px solid var(--sba-gold); outline-offset: 3px; }
.sba-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ball ---------- */
.sba-ball {
  position: fixed; right: var(--sba-abstand-r); bottom: var(--sba-abstand-u); z-index: 70;
  width: var(--sba-ball); height: var(--sba-ball); padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: sba-schweben 9s ease-in-out infinite;
  transition: transform .5s var(--sba-weich), opacity .4s ease;
}
.sba-ball canvas { position: absolute; left: 50%; top: 50%; width: 168%; height: 168%; transform: translate(-50%, -50%); pointer-events: none; }
.sba-ball__ring { display: none; } /* 07.10.: kein Umriss, der Nebel franst frei aus */
.sba-ball:focus-visible { outline: 2px solid var(--sba-gold); outline-offset: 9px; }
.sba-ball.ist-offen { transform: scale(.86); }
.sba-ball__zu { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.sba-ball__zu svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.sba-ball.ist-offen .sba-ball__zu { opacity: 1; }
@keyframes sba-schweben { 0%, 100% { translate: 0 0; } 30% { translate: -1px -5px; } 65% { translate: 1px -2px; } }

/* ---------- Sprechblase ---------- */
.sba-blase {
  position: fixed; z-index: 69; right: calc(var(--sba-abstand-r) + var(--sba-ball) + 14px); bottom: calc(var(--sba-abstand-u) + var(--sba-ball) * .5 - 4px);
  max-width: min(260px, calc(100vw - var(--sba-ball) - 3.6rem));
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .72rem .8rem .74rem 1rem; border-radius: 16px 16px 4px 16px;
  background: rgba(11, 22, 34, .9); border: 1px solid var(--sba-linie-2);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  opacity: 0; transform: translate(10px, 6px) scale(.96); transform-origin: 100% 100%; pointer-events: none;
  transition: opacity .7s var(--sba-weich), transform .8s var(--sba-weich), filter .7s ease; filter: blur(4px);
}
.sba-blase.ist-da { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.sba-blase::after { content: ""; position: absolute; right: -6px; bottom: 9px; width: 11px; height: 11px; background: inherit; border-right: 1px solid var(--sba-linie-2); border-top: 1px solid var(--sba-linie-2); transform: rotate(45deg); border-radius: 0 3px 0 0; backdrop-filter: none; }
.sba-blase__text { margin: 0; font-size: .92rem; line-height: 1.4; cursor: pointer; text-wrap: balance; }
.sba-blase__text b { font-weight: 600; color: var(--sba-orange); }
.sba-blase__text b.sba-b { color: var(--sba-blau-hell); }
.sba-blase__zu { flex: none; margin: -.2rem -.3rem 0 0; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--sba-leise); cursor: pointer; display: grid; place-items: center; }
.sba-blase__zu:hover { color: var(--sba-creme); background: rgba(255, 255, 255, .07); }
.sba-blase__zu svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; }

/* ---------- Panel ---------- */
.sba-schleier { position: fixed; inset: 0; z-index: 71; background: rgba(4, 9, 15, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.sba-schleier.ist-da { opacity: 1; pointer-events: auto; }
.sba-panel {
  position: fixed; z-index: 72; right: var(--sba-abstand-r); bottom: calc(var(--sba-abstand-u) + var(--sba-ball) + 16px);
  width: min(430px, calc(100vw - 2.2rem)); height: min(660px, calc(100vh - var(--sba-ball) - 4.5rem)); height: min(660px, calc(100dvh - var(--sba-ball) - 4.5rem));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--sba-linie);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(var(--sba-blau-rgb), .13), transparent 60%),
    radial-gradient(100% 50% at 0% 0%, rgba(var(--sba-orange-rgb), .12), transparent 55%),
    linear-gradient(180deg, #0f1e2e, #0a1521 60%, #08111b);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06);
  opacity: 0; transform: translateY(18px) scale(.97); transform-origin: 100% 100%; pointer-events: none; visibility: hidden;
  transition: opacity .45s var(--sba-weich), transform .55s var(--sba-weich), visibility 0s linear .55s;
}
.sba-panel.ist-offen { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .45s var(--sba-weich), transform .55s var(--sba-weich), visibility 0s; }
.sba-panel--mitte { right: 50%; bottom: 50%; width: min(560px, calc(100vw - 2rem)); height: min(720px, calc(100vh - 2rem)); height: min(720px, calc(100dvh - 2rem)); transform: translate(50%, calc(50% + 18px)) scale(.97); transform-origin: 50% 50%; }
.sba-panel--mitte.ist-offen { transform: translate(50%, 50%); }

.sba-kopf { flex: none; display: flex; align-items: center; gap: .85rem; padding: 1rem 1rem .95rem 1.15rem; border-bottom: 1px solid var(--sba-linie); }
.sba-kopf__zurueck, .sba-kopf__zu { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--sba-linie); background: rgba(255, 255, 255, .03); cursor: pointer; display: grid; place-items: center; transition: background .25s ease, border-color .25s ease; }
.sba-kopf__zurueck:hover, .sba-kopf__zu:hover { background: rgba(255, 255, 255, .08); border-color: var(--sba-linie-2); }
.sba-kopf__zurueck svg, .sba-kopf__zu svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.sba-kopf__bild { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; position: relative; }
.sba-kopf__bild canvas, .sba-kopf__bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sba-kopf__bild canvas { transform: scale(1.68); }
.sba-kopf__text { flex: 1; min-width: 0; }
.sba-kopf__titel { display: block; font: 300 1.32rem/1.1 var(--sba-serif); letter-spacing: -.01em; }
.sba-kopf__unter { white-space: nowrap; overflow: hidden; display: flex; align-items: center; gap: .45rem; margin-top: .22rem; font: 600 .66rem/1.2 var(--sba-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--sba-leise); }
.sba-kopf__unter::before { flex: none; content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5fd38a; box-shadow: 0 0 0 3px rgba(95, 211, 138, .16); }

.sba-inhalt { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.sba-ansicht { padding: 1.25rem 1.15rem 1.3rem; animation: sba-rein .55s var(--sba-weich) both; }
.sba-ansicht--voll { display: flex; flex-direction: column; height: 100%; padding: 0; }
@keyframes sba-rein { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.sba-eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 .8rem; font: 600 .68rem/1 var(--sba-mono); letter-spacing: .26em; text-transform: uppercase; color: var(--sba-gold); }
.sba-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.sba-h { margin: 0 0 .55rem; font: 300 clamp(1.6rem, 4.6vw, 1.95rem)/1.1 var(--sba-serif); letter-spacing: -.015em; text-wrap: balance; }
.sba-h em { font-style: italic; color: var(--sba-orange); }
.sba-h em.sba-blau { color: var(--sba-blau-hell); }
.sba-p { margin: 0 0 1.1rem; color: var(--sba-creme-2); font-size: .93rem; }
.sba-klein { font-size: .8rem; color: var(--sba-leise); }

/* Wahlkarten */
.sba-wahl { display: grid; gap: .7rem; margin: 0 0 1.25rem; }
.sba-karte {
  position: relative; display: flex; align-items: center; gap: .95rem; width: 100%; text-align: left;
  padding: 1rem 1rem 1rem .95rem; border-radius: 16px; border: 1px solid var(--sba-linie);
  background: rgba(255, 255, 255, .025); cursor: pointer; text-decoration: none; color: inherit;
  transition: border-color .35s ease, background .35s ease, transform .35s var(--sba-weich);
}
.sba-karte:hover { border-color: rgba(var(--sba-akzent, var(--sba-orange-rgb)), .55); background: rgba(var(--sba-akzent, var(--sba-orange-rgb)), .07); transform: translateY(-1px); }
.sba-karte__symbol { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--sba-akzent, var(--sba-orange-rgb)), .14); color: rgb(var(--sba-akzent, var(--sba-orange-rgb))); box-shadow: inset 0 0 0 1px rgba(var(--sba-akzent, var(--sba-orange-rgb)), .3); }
.sba-karte__symbol svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sba-karte__symbol--duo { background: linear-gradient(135deg, rgba(var(--sba-orange-rgb), .22), rgba(var(--sba-blau-rgb), .22)); color: var(--sba-creme); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.sba-karte__text { flex: 1; min-width: 0; }
.sba-karte__titel { display: block; font-weight: 600; font-size: 1rem; line-height: 1.25; }
.sba-karte__unter { display: block; margin-top: .15rem; font-size: .84rem; line-height: 1.4; color: var(--sba-leise); }
.sba-karte__pfeil { flex: none; width: 16px; height: 16px; stroke: var(--sba-leise); stroke-width: 1.8; fill: none; transition: transform .35s var(--sba-weich), stroke .35s ease; }
.sba-karte:hover .sba-karte__pfeil { transform: translateX(3px); stroke: var(--sba-creme); }
.sba-karte--blau { --sba-akzent: var(--sba-blau-rgb); }

/* Figurenkarten */
.sba-figur-karte { align-items: stretch; padding: .75rem; gap: .9rem; }
.sba-figur-karte img { flex: none; width: 84px; height: 84px; border-radius: 14px; object-fit: cover; box-shadow: 0 0 0 1px rgba(var(--sba-akzent), .4), 0 10px 30px rgba(var(--sba-akzent), .18); }
.sba-figur-karte .sba-karte__text { align-self: center; }
.sba-figur-karte .sba-karte__titel { font: 300 1.35rem/1.1 var(--sba-serif); }
.sba-figur-karte .sba-karte__rolle { display: block; margin: .25rem 0 .3rem; font: 600 .64rem/1.2 var(--sba-mono); letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--sba-akzent)); }
.sba-figur-karte[data-figur="franky"] .sba-karte__rolle { color: var(--sba-blau-hell); }

/* Schnellwege */
.sba-wege { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.sba-weg { white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; padding: .48rem .85rem; border-radius: 999px; border: 1px solid rgba(var(--sba-orange-rgb), .45); background: none; color: var(--sba-creme); font-size: .84rem; text-decoration: none; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.sba-weg:hover { background: var(--sba-orange); border-color: var(--sba-orange); color: var(--sba-nacht); }
.sba-trenner { margin: 0 0 .7rem; font: 600 .64rem/1 var(--sba-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--sba-leise); }
.sba-fuss-hinweis { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--sba-linie); font-size: .78rem; color: var(--sba-leise); }

/* ---------- Chat ---------- */
.sba-verlauf { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem 1.15rem .6rem; display: flex; flex-direction: column; gap: .6rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.sba-nachricht { max-width: 86%; padding: .66rem .9rem; border-radius: 16px 16px 16px 5px; background: rgba(246, 241, 231, .065); font-size: .92rem; line-height: 1.5; animation: sba-rein .5s var(--sba-weich) both; }
.sba-nachricht a { color: var(--sba-orange); text-underline-offset: .2em; }
.sba-nachricht--ich { align-self: flex-end; border-radius: 16px 16px 5px 16px; background: linear-gradient(135deg, rgba(var(--sba-orange-rgb), .9), rgba(214, 98, 30, .9)); color: #1a0d04; }
.sba-nachricht__wer { display: block; margin-bottom: .15rem; font: 600 .62rem/1.2 var(--sba-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sba-orange); }
.sba-nachricht__wer.sba-blau { color: var(--sba-blau-hell); }
.sba-tippt { display: inline-flex; gap: 4px; padding: .8rem .95rem; }
.sba-tippt i { width: 6px; height: 6px; border-radius: 50%; background: var(--sba-creme-2); opacity: .4; animation: sba-tippt 1.2s ease-in-out infinite; }
.sba-tippt i:nth-child(2) { animation-delay: .15s; } .sba-tippt i:nth-child(3) { animation-delay: .3s; }
@keyframes sba-tippt { 0%, 100% { opacity: .3; transform: none; } 40% { opacity: .9; transform: translateY(-3px); } }
.sba-chat-wege { flex: none; padding: .35rem 1.15rem .7rem; }
.sba-chat-wege .sba-wege { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sba-chat-wege .sba-weg { flex: none; }
.sba-eingabe { flex: none; display: flex; gap: .5rem; align-items: flex-end; padding: .75rem .85rem .85rem 1.15rem; border-top: 1px solid var(--sba-linie); background: rgba(4, 9, 15, .35); }
.sba-eingabe textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: .66rem .85rem; border-radius: 14px; border: 1px solid var(--sba-linie-2); background: rgba(255, 255, 255, .04); font-size: .93rem; line-height: 1.4; }
.sba-eingabe textarea::placeholder { color: rgba(246, 241, 231, .45); }
.sba-senden { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sba-orange); color: var(--sba-nacht); cursor: pointer; display: grid; place-items: center; transition: transform .2s ease, background .2s ease; }
.sba-senden:hover { transform: scale(1.05); background: #f58c43; }
.sba-senden svg { width: 18px; height: 18px; fill: currentColor; }
.sba-chat-hinweis { flex: none; margin: 0; padding: 0 1.15rem .75rem; font-size: .72rem; color: var(--sba-leise); background: rgba(4, 9, 15, .35); }

/* ---------- Live ---------- */
.sba-anruf { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.2rem 1.15rem 1.4rem; }
.sba-buehne { position: relative; width: min(230px, 62vw); aspect-ratio: 1; margin: .4rem auto 1.1rem; }
.sba-buehne canvas { position: absolute; inset: -18%; width: 136%; height: 136%; pointer-events: none; }
.sba-buehne img { position: absolute; inset: 14%; width: 72%; height: 72%; border-radius: 50%; object-fit: cover; object-position: 50% 0; box-shadow: 0 0 0 1px rgba(var(--sba-akzent), .5), 0 0 60px rgba(var(--sba-akzent), .35); }
.sba-anruf .sba-h { margin-bottom: .2rem; }
.sba-anruf__rolle { margin: 0 0 .9rem; font: 600 .66rem/1.2 var(--sba-mono); letter-spacing: .18em; text-transform: uppercase; color: rgb(var(--sba-akzent)); }
.sba-anruf[data-figur="franky"] .sba-anruf__rolle { color: var(--sba-blau-hell); }
.sba-ki-hinweis { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: .42rem .8rem; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--sba-linie); font-size: .8rem; color: var(--sba-creme-2); }
.sba-ki-hinweis svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.sba-status { min-height: 1.5em; margin: 0 0 1rem; font-size: .9rem; color: var(--sba-creme-2); }
.sba-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.sba-knopf { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid var(--sba-linie-2); background: rgba(255, 255, 255, .04); color: var(--sba-creme); font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; transition: background .25s ease, transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.sba-knopf:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); }
.sba-knopf svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.sba-knopf--voll { border-color: transparent; background: rgb(var(--sba-akzent, var(--sba-orange-rgb))); color: var(--sba-nacht); box-shadow: 0 10px 30px rgba(var(--sba-akzent, var(--sba-orange-rgb)), .35); }
.sba-knopf--voll:hover { background: rgb(var(--sba-akzent, var(--sba-orange-rgb))); transform: translateY(-1px); box-shadow: 0 14px 36px rgba(var(--sba-akzent, var(--sba-orange-rgb)), .5); }
.sba-knopf--auflegen { background: #d4483a; border-color: transparent; color: #fff; }
.sba-knopf--auflegen:hover { background: #e2574a; }
.sba-knopf--breit { width: 100%; }
.sba-hinweisbox { margin: 1rem 0 0; padding: .9rem 1rem; border-radius: 14px; border: 1px solid rgba(var(--sba-akzent, var(--sba-orange-rgb)), .35); background: rgba(var(--sba-akzent, var(--sba-orange-rgb)), .08); font-size: .88rem; text-align: left; }
.sba-hinweisbox strong { display: block; margin-bottom: .2rem; }

/* ---------- Erstgespräch-Formulare ---------- */
.sba-reiter { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; margin: 0 0 1.2rem; padding: .25rem; border-radius: 14px; background: rgba(4, 9, 15, .35); border: 1px solid var(--sba-linie); }
/* Aktiver Reiter: dunkles Glas mit orangem Funken-Unterstrich, kein zweiter Hauptknopf. Zustandswechsel ohne Übergang, damit Markierung und Inhalt nie auseinanderlaufen. */
.sba-reiter button { position: relative; padding: .7rem .4rem .8rem; border: 0; border-radius: 10px; background: none; color: var(--sba-leise); font-size: .8rem; font-weight: 600; line-height: 1.2; cursor: pointer; transition: color .2s ease; }
.sba-reiter button::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: .32rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(var(--sba-orange-rgb), 0), var(--sba-orange) 30%, var(--sba-gold) 50%, var(--sba-orange) 70%, rgba(var(--sba-orange-rgb), 0)); box-shadow: 0 0 10px rgba(var(--sba-orange-rgb), .7); opacity: 0; }
.sba-reiter button[aria-selected="true"] { background: rgba(255, 255, 255, .07); color: var(--sba-creme); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .06); }
.sba-reiter button[aria-selected="true"]::after { opacity: 1; }
.sba-reiter button[aria-selected="false"]:hover { color: var(--sba-creme); background: rgba(255, 255, 255, .035); }
.sba-form { display: grid; gap: .85rem; }
.sba-feld { display: grid; gap: .35rem; }
.sba-feld > label, .sba-feld > .sba-feld__titel { font-size: .8rem; font-weight: 600; color: var(--sba-creme-2); }
.sba-feld input:not([type="checkbox"]):not([type="radio"]), .sba-feld textarea, .sba-feld select {
  width: 100%; min-height: 46px; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--sba-linie-2);
  background: rgba(255, 255, 255, .04); font-size: .95rem; transition: border-color .25s ease, background .25s ease; color-scheme: dark;
}
.sba-feld textarea { min-height: 96px; resize: vertical; }
.sba-feld input:focus, .sba-feld textarea:focus, .sba-feld select:focus { border-color: rgba(var(--sba-orange-rgb), .7); background: rgba(255, 255, 255, .06); outline: none; }
.sba-feld [aria-invalid="true"] { border-color: var(--sba-rot) !important; }
.sba-fehler { margin: 0; font-size: .78rem; color: var(--sba-rot); }
.sba-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.sba-figurwahl, .sba-zeitwahl { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.sba-option { position: relative; display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 12px; border: 1px solid var(--sba-linie-2); cursor: pointer; transition: border-color .25s ease, background .25s ease; }
.sba-option input { position: absolute; opacity: 0; pointer-events: none; }
.sba-option img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.sba-option span { font-size: .88rem; font-weight: 600; line-height: 1.2; }
.sba-option small { display: block; font-weight: 400; font-size: .74rem; color: var(--sba-leise); }
.sba-option:has(input:checked) { border-color: rgb(var(--sba-akzent, var(--sba-orange-rgb))); background: rgba(var(--sba-akzent, var(--sba-orange-rgb)), .1); }
.sba-option:has(input:focus-visible) { outline: 2px solid var(--sba-gold); outline-offset: 2px; }
.sba-option--blau { --sba-akzent: var(--sba-blau-rgb); }
.sba-einwilligung { display: flex; gap: .65rem; align-items: flex-start; font-size: .82rem; line-height: 1.45; color: var(--sba-creme-2); cursor: pointer; }
.sba-einwilligung input { flex: none; width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--sba-orange); }
.sba-einwilligung a { color: var(--sba-creme); text-underline-offset: .2em; }
.sba-falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sba-erfolg { text-align: center; padding-top: 1.6rem; }
.sba-erfolg__haken { width: 64px; height: 64px; margin: .4rem auto 1rem; border-radius: 50%; display: grid; place-items: center; background: rgba(95, 211, 138, .12); box-shadow: inset 0 0 0 1px rgba(95, 211, 138, .4); }
.sba-erfolg__haken svg { width: 28px; height: 28px; stroke: #5fd38a; stroke-width: 2; fill: none; }
.sba-zusammenfassung { margin: 1rem 0; padding: .9rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--sba-linie); text-align: left; font-size: .86rem; white-space: pre-line; color: var(--sba-creme-2); }

/* ---------- Mobil ---------- */
@media (max-width: 600px) {
  .sba { --sba-ball: 60px; --sba-abstand-r: max(.85rem, env(safe-area-inset-right)); --sba-abstand-u: max(.85rem, env(safe-area-inset-bottom)); }
  .sba-panel, .sba-panel--mitte {
    left: .6rem; right: .6rem; bottom: calc(var(--sba-abstand-u) + var(--sba-ball) + 10px); width: auto;
    height: calc(100vh - var(--sba-ball) - 3.4rem); height: calc(100dvh - var(--sba-ball) - 3.4rem); max-height: 760px;
    transform: translateY(24px); transform-origin: 50% 100%;
  }
  .sba-panel--mitte { bottom: max(.6rem, env(safe-area-inset-bottom)); height: calc(100vh - 1.6rem); height: calc(100dvh - 1.6rem); }
  .sba-panel.ist-offen, .sba-panel--mitte.ist-offen { transform: none; }
  .sba-zeile { grid-template-columns: 1fr; }
  .sba-reiter button { font-size: .74rem; }
  .sba-figur-karte img { width: 70px; height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .sba-ball { animation: none; }
  .sba-blase, .sba-panel, .sba-schleier, .sba-karte, .sba-ansicht, .sba-nachricht { transition-duration: .01s !important; animation: none !important; }
  .sba-tippt i { animation: none; opacity: .6; }
}
@media print { .sba { display: none !important; } }

/* ---------- Handy-Feinschliff (07.10.2026, Mobil-Prüfung) – nur Media-Queries, Desktop unverändert ---------- */
@media (max-width: 600px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  /* 16 px in Eingabefeldern: iOS zoomt sonst beim Antippen in die Seite */
  .sba-eingabe textarea, .sba-feld input:not([type="checkbox"]):not([type="radio"]), .sba-feld textarea, .sba-feld select { font-size: 16px; }
  /* Untertitel im Panelkopf: ruhig auslaufen statt hart abgeschnitten */
  .sba-kopf__unter { display: block; text-overflow: ellipsis; letter-spacing: .12em; }
  .sba-kopf__unter::before { display: inline-block; margin-right: .45rem; vertical-align: .08em; }
  /* Schließen-Kreuz der Sprechblase: sichtbar 26 px, Tippfläche 44 px */
  .sba-blase__zu { position: relative; }
  .sba-blase__zu::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
}
