/* BFV Agent Chat. Farben per Variable, damit jede Seite sie überschreiben kann. */
:root {
    --bac-rand: 16px;
    --bac-unten-m: 16px;
    --bac-akzent: #1D3A2D;
    --bac-akzent-text: #FFFFFF;
    --bac-hervor: #C6D93E;
    --bac-flaeche: #FFFFFF;
    --bac-grund: #F6F5F0;
    --bac-text: #16241C;
    --bac-leise: #5F665F;
    --bac-linie: rgba(22, 36, 28, .12);
    --bac-kunde: #E9EFD2;
    --bac-unten: 20px;
    --bac-tusche: #2A2926;
}

html body .bac-start {
    position: fixed; right: 20px; bottom: var(--bac-unten); z-index: 99990;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 18px 12px 14px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--bac-akzent); color: var(--bac-akzent-text);
    font: 600 15px/1 inherit; font-family: inherit;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    transition: transform .2s ease;
}
html body .bac-start:hover { transform: translateY(-2px); }
html body .bac-start svg { color: var(--bac-hervor); }
html.bac-ist-offen body .bac-start { display: none; }
html body .bac-start-punkt { display: none; width: 9px; height: 9px; margin-left: 2px; border-radius: 50%; background: var(--bac-hervor); box-shadow: 0 0 0 0 rgba(198, 217, 62, .7); animation: bac-puls 2s infinite; }
html body .bac-start--weiter .bac-start-punkt { display: inline-block; }
@keyframes bac-puls { 70% { box-shadow: 0 0 0 9px rgba(198, 217, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 217, 62, 0); } }

html body .bac {
    position: fixed; right: 20px; bottom: 20px; z-index: 99991;
    width: 380px; height: min(620px, calc(100vh - 48px)); height: min(620px, calc(100dvh - 48px));
    color: var(--bac-text); font-family: inherit; font-size: 15px; line-height: 1.45;
}
html body .bac[hidden] { display: none; }
html body .bac-innen {
    position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
    background: var(--bac-grund); border-radius: 18px; border: 1px solid var(--bac-linie);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
    
}


html body .bac-kopf {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 10px 10px 18px; background: transparent; color: var(--bac-text);
    border-bottom: 1px solid var(--bac-linie);
}
html body .bac-kopf-knoepfe { display: flex; gap: 2px; flex: none; }
html body .bac-kopf strong { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
/* kleiner Punkt: „jemand ist da" */
html body .bac-kopf strong::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bac-hervor); box-shadow: 0 0 0 3px rgba(198, 217, 62, .25); }
html body .bac-kopf span { display: none; }
html body .bac-zu {
    flex: none; display: grid; place-items: center; width: 32px; height: 32px;
    border: 0; border-radius: 8px; background: transparent; color: var(--bac-leise); cursor: pointer;
}
html body .bac-zu:hover { background: rgba(22, 36, 28, .06); color: var(--bac-text); }

html body .bac-liste { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }

html body .bac-msg {
    max-width: 86%; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere;
    background: var(--bac-flaeche); border: 1px solid var(--bac-linie); align-self: flex-start; border-bottom-left-radius: 4px;
}
html body .bac-msg--kunde { align-self: flex-end; background: var(--bac-kunde); border-color: transparent; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }

html body .bac-tippt { display: inline-flex; gap: 4px; padding: 13px 14px; }
html body .bac-tippt i { width: 7px; height: 7px; border-radius: 50%; background: var(--bac-leise); opacity: .4; animation: bac-punkt 1s infinite; }
html body .bac-tippt i:nth-child(2) { animation-delay: .15s; }
html body .bac-tippt i:nth-child(3) { animation-delay: .3s; }
@keyframes bac-punkt { 50% { opacity: 1; transform: translateY(-2px); } }

html body .bac-wahlen { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
html body .bac-wahl {
    align-self: flex-end; padding: 9px 14px; border-radius: 999px; cursor: pointer;
    border: 1.5px solid var(--bac-akzent); background: var(--bac-flaeche); color: var(--bac-akzent);
    font: inherit; font-weight: 600; text-align: right;
}
html body .bac-wahl:hover { background: var(--bac-akzent); color: var(--bac-akzent-text); }
html body .bac-wahl--leise { border-color: transparent; background: transparent; font-weight: 500; text-decoration: underline; padding: 4px 6px; color: var(--bac-leise); }
html body .bac-wahl--leise:hover { background: transparent; color: var(--bac-text); }

html body .bac-karte {
    display: grid; gap: 10px; padding: 14px; border-radius: 14px;
    background: var(--bac-flaeche); border: 1px solid var(--bac-linie); border-left: 4px solid var(--bac-hervor);
}
html body .bac-karte p { margin: 0; color: var(--bac-leise); font-size: 14px; }
html body .bac-feld { display: grid; gap: 4px; font-size: 13px; color: var(--bac-leise); }
html body .bac-feld input, html body .bac-feld textarea, html body .bac-fuss textarea {
    width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--bac-text);
    padding: 9px 11px; border: 1px solid var(--bac-linie); border-radius: 10px; background: #fff; resize: none;
}
html body .bac-feld input:focus, html body .bac-feld textarea:focus, html body .bac-fuss textarea:focus { outline: 2px solid var(--bac-hervor); outline-offset: 0; border-color: var(--bac-akzent); }
html body .bac-ok { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--bac-leise); }
html body .bac-ok input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--bac-akzent); }
html body .bac-ok a { color: inherit; }
html body .bac-topf { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
html body .bac-fehler { margin: 0; color: #B3261E !important; font-size: 13px; }
html body .bac-knopf {
    justify-self: start; padding: 11px 20px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--bac-akzent); color: var(--bac-akzent-text); font: inherit; font-weight: 700;
}
html body .bac-knopf:disabled { opacity: .6; cursor: default; }
html body .bac-karte .bac-wahl--leise { justify-self: start; align-self: auto; }

html body .bac-team { margin: 0 16px 8px; align-self: flex-start; padding: 0; border: 0; background: none; color: var(--bac-leise); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
html body .bac-team[hidden] { display: none; }

html body .bac-fuss { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--bac-linie); background: var(--bac-flaeche); }
html body .bac-fuss[hidden] { display: none; }
html body .bac-fuss textarea { min-height: 42px; max-height: 120px; }
html body .bac-senden {
    flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--bac-akzent); color: var(--bac-hervor);
}
html body .bac-senden:disabled { opacity: .5; }
html body .bac-hinweis { margin: 0; padding: 0 14px 10px; background: var(--bac-flaeche); color: var(--bac-leise); font-size: 11.5px; }
html body .bac-hinweis[hidden] { display: none; }

/* Handy: Chat als Vollbild, Startknopf weg (dort öffnet „Kontakt" in der Leiste den Chat). */
@media (max-width: 760px) {
    html body .bac-start { display: none; }
    /* Handy: halbes Display als Karte im Layout der Leiste unten (Rand links/rechts, Radius,
       Schatten). Die Leiste der Seite verschwindet, solange der Chat offen ist. */
    html body .bac {
        left: var(--bac-rand); right: var(--bac-rand); bottom: calc(var(--bac-unten-m) + var(--bac-tastatur, 0px));
        width: auto; height: 50vh; height: 50dvh; min-height: 340px; max-height: calc(100dvh - 24px);
        border-radius: 18px; overflow: hidden; background: var(--bac-grund);
        border: 1px solid var(--bac-linie); box-shadow: 0 18px 50px rgba(22, 36, 28, .2);
        transition: transform .45s cubic-bezier(.3, 0, .2, 1), bottom .2s ease, height .38s cubic-bezier(.3, 0, .2, 1);
    }
    /* Vollbild: Abstand rundum wie die Leiste, oben zusätzlich die Notch */
    html body .bac--voll {
        height: calc(100vh - 2 * var(--bac-unten-m) - var(--bac-tastatur, 0px));
        height: calc(100dvh - 2 * var(--bac-unten-m) - env(safe-area-inset-top, 0px) - var(--bac-tastatur, 0px));
        max-height: none;
    }
    html body .bac--zu { transform: translateY(calc(100% + var(--bac-unten-m) + 12px)); }
    html body .bac--schliesst { transition: transform .38s cubic-bezier(.6, 0, .8, .4) .2s; }
    html body .bac--zieht { transition: none !important; }
    html body .bac-innen { border: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html body .bac-start, html body .bac-tippt i { transition: none; animation: none; }
}

/* Bewertung je Antwort */
html body .bac-daumen { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -4px 0 2px 4px; font-size: 12px; color: var(--bac-leise); }
html body .bac-daumen-k { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--bac-linie); border-radius: 50%; background: var(--bac-flaeche); color: var(--bac-leise); cursor: pointer; }
html body .bac-daumen-k:hover { color: var(--bac-akzent); border-color: var(--bac-akzent); }
html body .bac-daumen-k--runter svg { transform: rotate(180deg); }
html body .bac-daumen .bac-wahl--leise { align-self: auto; font-size: 12px; }

/* „Chat beenden?" über dem Chat */
html body .bac-beenden {
    position: absolute; inset: 0; z-index: 3; display: grid; align-content: center; gap: 12px; padding: 28px;
    background: rgba(246, 245, 240, .96); text-align: left;
}
html body .bac-beenden[hidden] { display: none; }
html body .bac-beenden strong { font-size: 18px; }
html body .bac-beenden p { margin: 0; color: var(--bac-leise); }
html body .bac-beenden-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
html body .bac-beenden-knoepfe .bac-wahl { align-self: auto; }

/* Minimiert mit laufendem Chat: „Chat fortsetzen" bleibt auch am Handy sichtbar, über der Leiste */
html body .bac-start--weiter { padding-right: 16px; }
@media (max-width: 760px) {
    html.bac-ist-offen body .bac-start.bac-start--weiter { display: none; }
    html body .bac-innen { border-radius: 0; box-shadow: none; }
    html body .bac-kopf { padding-top: 18px; }
    /* Griff zum Herunterziehen, wie man es aus Apps kennt */
    html body .bac-griff {
        position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 22px; display: block;
        border: 0; padding: 0; background: transparent; cursor: grab; touch-action: none;
    }
    html body .bac-griff::before {
        content: ''; position: absolute; left: 50%; top: 7px; width: 40px; height: 5px; margin-left: -20px;
        border-radius: 3px; background: rgba(22, 36, 28, .18);
    }
    html body .bac-kopf { touch-action: none; }
}
@media (prefers-reduced-motion: reduce) {
    html body .bac-start-punkt { animation: none; }
}

/* Abstand zur Maßkette an der linken Kante */
html body .bac-liste { padding-left: 18px; }
html body .bac-team { margin-left: 18px; }
html body .bac-fuss { padding-left: 14px; }
html body .bac-hinweis { padding-left: 16px; }

/* ---- Hinweis-Blase beim ersten Besuch: Sonne mit Strahlen + Sprechblase ---- */
html body .bac-ruf {
    position: fixed; z-index: 99989; right: 20px; bottom: 82px; display: flex; align-items: flex-start; gap: 4px;
    max-width: 300px; animation: bac-ruf-auf .55s cubic-bezier(.3, 1.5, .5, 1) both;
}
html body .bac-ruf--weg { animation: bac-ruf-weg .3s ease-in both; }
@keyframes bac-ruf-auf { from { opacity: 0; transform: translateY(14px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes bac-ruf-weg { to { opacity: 0; transform: translateY(8px) scale(.9); } }
html body .bac-ruf-knopf {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; cursor: pointer; text-align: left;
    border: 1px solid var(--bac-linie); border-radius: 18px 18px 4px 18px; background: var(--bac-flaeche); color: var(--bac-text);
    font: inherit; font-family: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.35;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}
html body .bac-ruf-sonne { position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bac-akzent); color: var(--bac-hervor); }
html body .bac-ruf-sonne svg { position: relative; z-index: 1; width: 22px; height: 22px; }
/* Strahlen: drehender Kranz hinter dem Symbol, dazu ein weicher Schein */
html body .bac-ruf-sonne::before, html body .bac-ruf-sonne i {
    content: ''; position: absolute; inset: -11px; border-radius: 50%; pointer-events: none;
}
html body .bac-ruf-sonne::before {
    background: repeating-conic-gradient(from 0deg, rgba(227, 196, 60, .95) 0 7deg, transparent 7deg 30deg);
    -webkit-mask: radial-gradient(circle, transparent 0 25px, #000 26px 31px, transparent 32px);
            mask: radial-gradient(circle, transparent 0 25px, #000 26px 31px, transparent 32px);
    animation: bac-strahlen 6s linear infinite, bac-glimmen 1.6s ease-in-out infinite;
}
html body .bac-ruf-sonne i { inset: -4px; box-shadow: 0 0 0 0 rgba(227, 196, 60, .6); animation: bac-schein 1.6s ease-out infinite; }
@keyframes bac-strahlen { to { transform: rotate(360deg); } }
@keyframes bac-glimmen { 50% { opacity: .55; } }
@keyframes bac-schein { 0% { box-shadow: 0 0 0 0 rgba(227, 196, 60, .55); } 100% { box-shadow: 0 0 0 14px rgba(227, 196, 60, 0); } }
html body .bac-ruf-zu {
    flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -8px; padding: 0; cursor: pointer;
    border: 1px solid var(--bac-linie); border-radius: 50%; background: var(--bac-flaeche); color: var(--bac-leise);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}
/* Der Startknopf strahlt mit, solange die Blase steht */
html body .bac-start--ruft { animation: bac-start-wink 1.6s ease-in-out infinite; }
html body .bac-start--ruft::after {
    content: ''; position: absolute; inset: -6px; border-radius: 999px; pointer-events: none;
    box-shadow: 0 0 0 0 rgba(227, 196, 60, .6); animation: bac-schein 1.6s ease-out infinite;
}
@keyframes bac-start-wink { 50% { transform: translateY(-3px); } }
@media (max-width: 760px) {
    html body .bac-ruf { right: auto; left: 12px; bottom: 96px; max-width: calc(100vw - 24px); }
    html body .bac-ruf-knopf { border-radius: 18px 18px 18px 4px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    html body .bac-ruf, html body .bac-ruf-sonne::before, html body .bac-ruf-sonne i, html body .bac-start--ruft, html body .bac-start--ruft::after { animation: none !important; }
}

@media (min-width: 761px) { html body .bac-griff { display: none; } }


/* Öffnen aus dem Symbol: Das Fenster fliegt selbst, also kein zusätzliches Ausrollen */
html body .bac--flug .bac-innen, html body .bac--flug.bac--zu .bac-innen { clip-path: none !important; transition: none !important; }
html body .bac--flug.bac--zu { transform: none; }

/* Ziel in der Leiste der Seite: Punkt, solange ein Chat läuft; kurzes Aufploppen beim Hineinfliegen */
/* !important: Themes setzen ihre Leistensymbole gern mit all:unset zurück */
html body .bac-ziel { position: relative !important; }
/* Marke am Chat-Symbol: grüner Punkt = verfügbar, dunkle runde Marke mit „1" = Chat läuft */
html body .bac-marke {
    position: absolute; z-index: 2; top: 0; left: 50%; margin-left: 5px; box-sizing: border-box; pointer-events: none;
    width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff;
    background: #5BB14A; box-shadow: 0 0 0 0 rgba(91, 177, 74, .5); animation: bac-frei 2.4s ease-out infinite;
}
html body .bac-marke--chat {
    top: -5px; margin-left: 3px; width: 19px; height: 19px; display: grid; place-items: center;
    background: var(--bac-akzent); color: #fff; font: 700 11px/1 Arial, Helvetica, sans-serif;
    box-shadow: 0 2px 6px rgba(22, 36, 28, .3); animation: bac-marke-auf .45s cubic-bezier(.3, 1.6, .5, 1) both;
}
html body .bac-start .bac-marke { top: -3px; left: auto; right: 2px; margin: 0; }
html body .bac-start .bac-marke--chat { top: -7px; right: -4px; }
html body .bac-start .bac-start-punkt { display: none !important; }
@keyframes bac-frei { 70% { box-shadow: 0 0 0 7px rgba(91, 177, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 177, 74, 0); } }
@keyframes bac-marke-auf { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
html body .bac-ziel--plopp { animation: bac-plopp .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bac-plopp { 40% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { html body .bac-ziel--plopp, html body .bac-marke { animation: none !important; } }

/* Schreibmaschine: blinkender Strich am Ende, solange geschrieben wird */
html body .bac-msg--schreibt::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; opacity: .55; animation: bac-cursor .8s steps(1) infinite; }
@keyframes bac-cursor { 50% { opacity: 0; } }

/* Hilfe & Kontakt (0.15.0): kein schwebender Knopf; Probebetrieb im Kopf kenntlich */
html body .bac-start.bac-start--aus { display: none !important; }
html body .bac-kopf span.bac-probe { display: block; margin-top: 2px; font-size: 11.5px; color: #9a5b00; font-weight: 600; }
html body .bac-wahlen a.bac-knopf { display: inline-flex; justify-content: center; text-decoration: none; }
html body .bac-fusslink .bac-marke { left: auto; right: -14px; margin: 0; }
html body .bac-wahlen .bac-wahl, html body .bac-wahlen .bac-knopf { max-width: 100%; white-space: normal; text-align: center; }
html body .bac-msg a.bac-link { color: var(--bac-akzent); text-decoration: underline; font-weight: 600; }

/* 0.18.1: Theme-Zustände :hover/:focus (z. B. GA `.elementor-kit-5 button:hover` mit Rahmen, Radius 5px, Schatten,
   weißem Grund) überstimmten die Chat-Knöpfe. Hier dieselben Werte wie oben, mit Zustand und höherer Gewichtung. */
/* Theme setzt `button { padding: .5rem 1rem; font-size: 1rem; line-height: 1.5 }` – das schob das Symbol aus der Mitte. */
html body #bac .bac-zu { padding: 0; margin: 0; min-width: 0; min-height: 0; line-height: 0; font-size: 0; }
html body #bac .bac-zu svg { display: block; }
html body #bac .bac-zu:hover, html body #bac .bac-zu:focus { border: 0; border-radius: 8px; box-shadow: none; background: rgba(22, 36, 28, .06); color: var(--bac-text); }
html body #bac .bac-zu:focus:not(:hover):not(:focus-visible) { background: transparent; color: var(--bac-leise); }
html body #bac .bac-wahl:focus { border: 1.5px solid var(--bac-akzent); border-radius: 999px; box-shadow: none; background: var(--bac-flaeche); color: var(--bac-akzent); }
html body #bac .bac-wahl:hover { border: 1.5px solid var(--bac-akzent); border-radius: 999px; box-shadow: none; background: var(--bac-akzent); color: var(--bac-akzent-text); }
html body #bac .bac-wahl--leise:hover, html body #bac .bac-wahl--leise:focus { border-color: transparent; background: transparent; color: var(--bac-text); }
html body #bac .bac-knopf:hover, html body #bac .bac-knopf:focus { border: 0; border-radius: 999px; box-shadow: none; background: var(--bac-akzent); color: var(--bac-akzent-text); }
html body #bac .bac-senden:hover, html body #bac .bac-senden:focus { border: 0; border-radius: 12px; box-shadow: none; background: var(--bac-akzent); color: var(--bac-hervor); }
html body #bac .bac-griff:hover, html body #bac .bac-griff:focus { border: 0; box-shadow: none; background: transparent; }


/* Einstiege auf Seiten (User 09.11.2026): Widerrufsseite, Zahlseite. Vorrang vor `.elementor-kit-5 button` (GA). */
.bac-einstieg-huelle { margin: 0 0 24px; }
html body button.bac-einstieg { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 12px 22px; border: 0; border-radius: 8px; background: var(--bac-akzent, #1D3A2D); color: var(--bac-akzent-text, #fff); font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; box-shadow: none; }
html body button.bac-einstieg:hover, html body button.bac-einstieg:focus-visible { background: var(--bac-akzent, #1D3A2D); color: var(--bac-akzent-text, #fff); filter: brightness(1.08); outline: 2px solid transparent; }
html body button.bac-einstieg:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bac-akzent, #1D3A2D) 35%, transparent); }
p.bac-einstieg-huelle { margin: 10px 0 0; }
a.bac-einstieg-link { font-weight: 600; text-decoration: underline; }

/* Kontaktseite (User 10.11.2026): Chat fest in der Seite statt als Fenster. */
html body .bac.bac--seite { position: relative; right: auto; bottom: auto; z-index: auto; width: 100%; max-width: 760px; height: min(680px, 80vh); height: min(680px, 80dvh); margin: 8px 0 24px; }
html body .bac.bac--seite .bac-innen { box-shadow: 0 8px 28px rgba(0, 0, 0, .08); }
html body .bac-seite { width: 100%; max-width: 100%; }
html body .bac.bac--seite, html body .bac.bac--seite.bac--voll { inset: auto !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; transform: none !important; box-sizing: border-box; max-width: min(760px, 100%) !important; width: 100% !important; }
html body .bac.bac--seite .bac-kopf-knoepfe, html body .bac.bac--seite .bac-griff { display: none !important; }
html body .bac.bac--seite .bac-innen { border-radius: 18px !important; }

/* Kontaktseite (User 10.11.2026): breite Fläche → Auswahlknöpfe nebeneinander, rechtsbündig umbrechend; leise Links eigene Zeile. */
html body .bac.bac--seite .bac-wahlen { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
html body .bac.bac--seite .bac-wahlen .bac-wahl--leise { flex-basis: 100%; text-align: right; }
/* Kontaktseite: „Neu starten“ rechts oben (User 10.11.2026). */
html body #bac.bac--seite .bac-neu { display: inline-flex; align-items: center; gap: 6px; width: auto; height: 32px; line-height: 1; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; flex: none; }
html body .bac.bac--seite .bac-kopf span.bac-neu-text { display: inline; }
@media (max-width: 480px) { html body .bac.bac--seite .bac-kopf span.bac-neu-text { display: none; } }

/* Startbild als Kacheln (User 19.11.2026, Screenshot). #bac vorn: GA-Kit-CSS stylt alle button samt :hover. */
html body .bac-rundbild { display: none; }
html body .bac.bac--seite .bac-rundbild {
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; margin-right: 0; border-radius: 50%; background: var(--bac-akzent); color: var(--bac-akzent-text);
}
/* Online-Punkt (User 19.11.2026: prägnanter, darf pulsieren): größer, kräftiges Grün, Ring pulsiert nach außen. */
html body .bac.bac--seite .bac-rundbild::after {
    content: ''; position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box;
    background: #22c55e; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: bac-online 1.8s ease-out infinite;
}
@keyframes bac-online { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { html body .bac.bac--seite .bac-rundbild::after { animation: none; } }
html body .bac.bac--seite .bac-kopf { justify-content: flex-start; padding: 14px 14px 14px 18px; }
html body .bac.bac--seite .bac-kopf-text { flex: 1; min-width: 0; }
html body .bac.bac--seite .bac-kopf strong { font-size: 16px; font-weight: 700; }
html body .bac.bac--seite .bac-kopf strong::before { display: none; }
html body .bac.bac--seite .bac-kopf span.bac-kopf-unter { display: block; margin-top: 2px; font-size: 13px; color: var(--bac-leise); }
html body .bac.bac--seite .bac-innen, html body .bac.bac--seite .bac-liste { background: #fff; }

html body #bac .bac-wahlen.bac-kacheln-start { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; gap: 10px; width: 100%; text-align: left; }
html body #bac .bac-kacheln-frage { align-self: stretch; margin: 2px 0; color: var(--bac-leise); font-size: 15px; text-align: left; }
html body .bac-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html body .bac-liste { container-type: inline-size; }
/* 0.28.0: sechs Kacheln (+ Daten löschen, Allgemeine Fragen) → breit 3 × 2, schmal 2 × 3. */
@container (min-width: 680px) { html body .bac.bac--seite .bac-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html body #bac .bac-kachel {
    display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; margin: 0; padding: 14px;
    border: 1px solid var(--bac-linie); border-radius: 14px; background: #fff; color: var(--bac-text); box-shadow: none;
    font: inherit; font-size: 15px; line-height: 1.3; text-align: left; text-transform: none; letter-spacing: normal; cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
html body #bac .bac-kachel:hover, html body #bac .bac-kachel:focus-visible {
    border-color: color-mix(in srgb, var(--bac-akzent) 45%, #fff); background: #fff; color: var(--bac-text);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .07); transform: translateY(-1px); outline: none;
}
html body #bac .bac-kachel:focus-visible { outline: 2px solid var(--bac-akzent); outline-offset: 2px; }
html body .bac-kachel-symbol {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 11px;
    background: color-mix(in srgb, var(--bac-akzent) 9%, #fff); color: var(--bac-akzent);
}
html body .bac-kachel-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html body .bac-kachel-text strong { font-weight: 700; overflow-wrap: break-word; }
html body .bac-kachel-text small { font-size: 13px; color: var(--bac-leise); font-weight: 400; }
html body #bac .bac-kachel--gross { padding: 16px 18px; background: color-mix(in srgb, var(--bac-akzent) 4%, #fff); border-color: color-mix(in srgb, var(--bac-akzent) 18%, #fff); }
html body #bac .bac-kachel--gross:hover, html body #bac .bac-kachel--gross:focus-visible { background: color-mix(in srgb, var(--bac-akzent) 6%, #fff); }
html body .bac-kachel--gross .bac-kachel-symbol { width: 46px; height: 46px; border-radius: 12px; background: var(--bac-akzent); color: var(--bac-akzent-text); }
html body .bac-kachel--gross .bac-kachel-text strong { font-size: 17px; }
html body .bac-kachel-tat { margin-left: auto; padding-left: 10px; flex: none; color: var(--bac-akzent); font-weight: 700; font-size: 14px; white-space: nowrap; }
/* Handy/schmales Fenster (User 19.11.2026, Screenshot GA): Theme-CSS setzt bei button white-space: nowrap → Text lief über
   den Rand, „Status prüfen“ lag über dem Titel, Querscrollleiste. Darum Umbruch erzwingen, „Status prüfen“ erst ab 520 px
   Chatbreite, Symbole schmal kleiner. */
html body #bac .bac-kachel, html body #bac .bac-kachel span, html body #bac .bac-kachel strong, html body #bac .bac-kachel small { white-space: normal; }
html body .bac-kachel-text { flex: 1 1 auto; }
html body .bac-wahlen.bac-kacheln-start { min-width: 0; }
@container (max-width: 519px) { html body .bac-kachel-tat { display: none; } }
html body .bac-kacheln-mehr { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px 16px; }
/* Schmal (Handy): Symbol über dem Text, damit „Unterlagen nachreichen“ nicht mitten im Wort bricht. */
@container (max-width: 440px) {
    html body #bac .bac-kacheln .bac-kachel { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; font-size: 14.5px; }
    html body #bac .bac-kachel--gross { padding: 12px 14px; gap: 12px; }
    html body .bac-kachel-symbol { width: 32px; height: 32px; border-radius: 9px; }
    html body .bac-kachel-symbol svg { width: 17px; height: 17px; }
    html body .bac-kachel--gross .bac-kachel-symbol { width: 38px; height: 38px; border-radius: 10px; }
    html body .bac-kachel--gross .bac-kachel-text strong { font-size: 16px; }
    html body .bac-kacheln { gap: 8px; }
}
html body #bac .bac-kachel-link, html body #bac .bac-kachel-link:hover, html body #bac .bac-kachel-link:focus {
    margin: 0; padding: 4px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--bac-leise);
    font: inherit; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
html body #bac .bac-kachel-link:hover { color: var(--bac-text); }
html body .bac.bac--seite .bac-fuss { padding: 12px 14px; background: #fff; }
html body .bac.bac--seite .bac-fuss textarea { min-height: 48px; padding: 12px 14px; border-radius: 12px; }
html body #bac.bac--seite .bac-senden, html body #bac.bac--seite .bac-senden:hover, html body #bac.bac--seite .bac-senden:focus { width: 52px; height: 48px; border-radius: 12px; }
/* Eingabefeld (User 19.11.2026, Screenshot): Die Höhe kommt aus scrollHeight ohne Rahmen → 2 px zu wenig → Scrollleiste
   schon bei einer Zeile. Scrollen bleibt möglich, die Leiste ist weg. Fokus als weicher Ring statt doppeltem Rahmen. */
html body .bac-fuss textarea { overflow-y: auto; scrollbar-width: none; line-height: 1.4; }
html body .bac-fuss textarea::-webkit-scrollbar { display: none; }
html body #bac .bac-fuss textarea:focus { outline: none; border-color: var(--bac-akzent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bac-akzent) 18%, transparent); }
/* [DEV] hinter dem Titel im Probebetrieb (User 19.11.2026), ersetzt die Zeile „Probebetrieb · nur für Admins sichtbar“. */
html body .bac-kopf strong span.bac-dev { display: inline; margin-left: 0; font-size: .8em; font-weight: 700; color: #9a5b00; letter-spacing: .02em; }
