/* bazuba-leads form styling — minimal, theme-kompatibel, CSS-Variablen für Override */
.bzbl-form {
    --bzbl-accent: #1eaf9b;
    --bzbl-accent-dark: #178a7a;
    --bzbl-border: rgba(0, 0, 0, 0.15);
    --bzbl-bg: #fafafa;
    --bzbl-text: #222;
    --bzbl-muted: #888;
    --bzbl-error: #d63d3d;
    --bzbl-radius: 10px;
    --bzbl-field-gap: 16px;
    --bzbl-autofill-bg: #fafafa; /* autoausgefüllte Felder sehen aus wie normale (nicht blau) */
    --bzbl-field-height: 56px;   /* einheitliche Höhe Single-Line-Felder */
    font-family: inherit !important;
    color: var(--bzbl-text);
    width: 100%;
    /* Kein max-width default → Form nimmt volle Container-Breite ein.
       Einschränkung via Shortcode-Attribut max_width="..." auf inline style.
       Über Container hinauswachsen via full_bleed="1" Attribut. */
    margin: 0 auto;
    padding: 48px;
    background: #fff;
    border: 2px solid var(--bzbl-border);
    border-radius: var(--bzbl-radius);
    box-sizing: border-box;
}
.bzbl-form *,
.bzbl-form *::before,
.bzbl-form *::after {
    box-sizing: border-box;
}
.bzbl-form__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 24px;
    align-items: stretch;
}
.bzbl-form__col {
    display: flex;
    flex-direction: column;
}
.bzbl-form__col > .bzbl-field {
    flex-shrink: 0;
}
.bzbl-form__col > .bzbl-field--grow {
    flex: 1;
}

/* Full-Bleed: Form wächst über den Eltern-Container hinaus auf 100vw.
   Wird via Shortcode-Attribut full_bleed="1" aktiviert. */
.bzbl-form--fullbleed {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

/* Tablet (Portrait + kleine Landscape): 2-Spalten beibehalten, aber kompakter */
@media (min-width: 769px) and (max-width: 1023px) {
    .bzbl-form { padding: 28px; }
    .bzbl-form__columns { gap: 28px; }
}

/* Mobile: alles eine Spalte, Submit voll breit für Touch */
@media (max-width: 768px) {
    .bzbl-form {
        padding: 20px;
        border-radius: 6px;
    }
    .bzbl-form__columns {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 18px;
    }
    .bzbl-form__col > .bzbl-field--grow {
        flex: 0;
    }
    .bzbl-form__col-title {
        font-size: 17px;
        margin-bottom: 16px;
    }
    .bzbl-form__submit {
        margin-top: 24px;
    }
    .bzbl-form__btn {
        width: 100%;
        padding: 16px 24px;
    }
    .bzbl-field--checkbox {
        margin-top: 16px;
    }
    .bzbl-field--file {
        padding: 24px 16px;
        margin: 18px 0;
    }
}

.bzbl-form__col-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--bzbl-text);
    letter-spacing: -0.01em;
}
.bzbl-field {
    margin-bottom: 14px;
    position: relative;
}
.bzbl-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}
.bzbl-required {
    color: var(--bzbl-accent);
}
.bzbl-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.bzbl-field input[type="text"],
.bzbl-field input[type="email"],
.bzbl-field input[type="tel"],
.bzbl-field textarea,
.bzbl-field select {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--bzbl-text);
    background: var(--bzbl-bg);
    border: 2px solid var(--bzbl-border);
    border-radius: var(--bzbl-radius);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
    line-height: 1.4;
}
/* Select: nativer Dropdown-Pfeil aus, eigener Chevron als Background-SVG direkt
   am Select (kein Pseudo-Element/Gradient-Hack mehr → sauberer, fett-tauglich). */
.bzbl-field--floating select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%23555555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 9px;
    padding-right: 44px;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bzbl-field--floating select:focus {
    /* Chevron bei Focus in Akzentfarbe */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%231eaf9b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
}
/* Optionsliste (aufgeklappt): lesbar, normal-gewichtet (Browser-abhängig stylbar) */
.bzbl-field--floating select option {
    font-weight: 400;
    color: var(--bzbl-text);
    background: #fff;
    padding: 8px 10px;
}
.bzbl-field--floating select option:checked {
    font-weight: 600;
}
.bzbl-field input:focus,
.bzbl-field textarea:focus,
.bzbl-field select:focus {
    border-color: var(--bzbl-accent);
    box-shadow: 0 0 0 3px rgba(30, 175, 155, 0.15);
}
.bzbl-field textarea {
    resize: vertical;
    min-height: 140px;
    padding: 16px;
}

/* Outlined-Label-Pattern: Label sitzt IMMER oben im Border, wie Material-Design-Outlined-Inputs.
   Konsistent zwischen Inputs, Select und Textarea (keine Höhen-abhängige Mittel-Positionierung). */
.bzbl-field--floating {
    position: relative;
    margin-bottom: var(--bzbl-field-gap);
}
.bzbl-field--floating label {
    position: absolute;
    left: 10px;
    top: -9px;
    padding: 1px 7px;
    margin: 0;
    pointer-events: none;
    color: var(--bzbl-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    background: #fff;
    border-radius: 6px;          /* runde Ecken für den Label-Hintergrund (das "Kasterl") */
    z-index: 1;
    transition: color .15s ease;
}
/* Bei Focus oder ausgefülltem Feld: Akzentfarbe für Label */
.bzbl-field--floating input:focus ~ label,
.bzbl-field--floating input:not(:placeholder-shown) ~ label,
.bzbl-field--floating textarea:focus ~ label,
.bzbl-field--floating textarea:not(:placeholder-shown) ~ label,
.bzbl-field--floating select:focus ~ label,
.bzbl-field--floating select.bzbl-has-value ~ label,
.bzbl-field--floating .bzbst-input-wrap:has(input:focus) ~ label,
.bzbl-field--floating .bzbst-input-wrap:has(input.bzbl-has-value) ~ label,
.bzbl-field--floating input.bzbl-has-value ~ label {
    color: var(--bzbl-accent);
}

/* Grow-Field (Textarea in einer Spalte): nimmt restliche Spalten-Höhe ein */
.bzbl-field--grow {
    display: flex;
    flex-direction: column;
}
.bzbl-field--grow textarea {
    flex: 1;
    height: auto;
    min-height: 140px;
}

/* Autocomplete-Dropdown vom bazuba-standorte: Override für sauberes Lead-Form-Styling.
   bazuba-standorte CSS wird NACH bazuba-leads CSS geladen — wir brauchen daher
   !important + Stacking-Context (Field bekommt z-index wenn Dropdown offen ist). */
.bzbl-form .bzbst-input-wrap {
    position: relative !important;
    width: 100% !important;
    flex: none !important;
    min-width: 0 !important;
}
.bzbl-form .bzbl-field--floating:focus-within {
    /* Wenn das Autocomplete-Input fokussiert ist (= Dropdown offen),
       hebt das Field-Container über alle Geschwister. */
    z-index: 9999;
}
.bzbl-form .bzbst-suggestions {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + 4px) !important;
    z-index: 9999 !important;
    margin: 0 !important;
    padding: 6px !important;
    list-style: none !important;
    background: #fff !important;
    background-color: #fff !important;
    border: 2px solid var(--bzbl-border) !important;
    border-radius: var(--bzbl-radius) !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18) !important;
    box-sizing: border-box !important;
}
.bzbl-form .bzbst-suggestion {
    display: grid !important;
    grid-template-columns: 56px 1fr auto !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 1px !important;
    align-items: center !important;
    padding: 9px 12px !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    background: transparent !important;
    transition: background .1s ease !important;
}
.bzbl-form .bzbst-suggestion + .bzbst-suggestion {
    margin-top: 2px !important;
}
.bzbl-form .bzbst-suggestion:hover,
.bzbl-form .bzbst-suggestion.is-active {
    background: var(--bzbl-bg) !important;
}
.bzbl-form .bzbst-suggestion--info {
    display: block !important;
    color: var(--bzbl-muted) !important;
    font-style: italic !important;
    text-align: center !important;
    cursor: default !important;
    pointer-events: none !important;
}
.bzbl-form .bzbst-suggestion--info:hover {
    background: transparent !important;
}
.bzbl-form .bzbst-suggestion__plz {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    font-weight: 600 !important;
    color: var(--bzbl-text) !important;
}
.bzbl-form .bzbst-suggestion__city {
    grid-column: 2 !important;
    grid-row: 1 !important;
    color: var(--bzbl-text) !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.bzbl-form .bzbst-suggestion__region {
    grid-column: 2 !important;
    grid-row: 2 !important;
    color: var(--bzbl-muted) !important;
    font-size: 11px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.bzbl-form .bzbst-suggestion__country {
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    color: var(--bzbl-muted) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    background: rgba(0,0,0,0.06) !important;
    padding: 3px 6px !important;
    border-radius: 3px !important;
}

/* HINWEIS: Früher rutschte hier das Autocomplete-Label bei Focus/Eingabe auf
   top:5px nach unten ins Feld (Überbleibsel vom alten Floating-Pattern vor der
   Outlined-Umstellung). Das war inkonsistent zu den übrigen Feldern, deren Label
   IMMER oben im Border sitzt. Regel entfernt — das Label bleibt jetzt über die
   Basis-Regel (.bzbl-field--floating label, top:-9px) konstant oben, die
   Akzentfarbe bei Focus/Value kommt aus dem :has()-Block weiter oben. */

/* Clear-Button (schwarzes X) für das PLZ/Ort-Autocomplete-Feld.
   Wird per JS in den .bzbl-field--floating Container eingefügt und nur
   sichtbar wenn das Feld gefüllt ist. Weißer Verlauf hinter dem X damit
   der Text darunter nicht reinläuft (analog zum Gradient beim Select). */
.bzbl-field--has-clear .bzbl-field__clear {
    position: absolute;
    top: 2px;
    bottom: 2px;
    right: 2px;
    width: 56px;
    display: none;
    align-items: center;
    justify-content: flex-end;
    padding: 0 14px 0 24px;
    margin: 0;
    border: none;
    background: linear-gradient(to right,
        rgba(250, 250, 250, 0) 0%,
        var(--bzbl-bg) 45%,
        var(--bzbl-bg) 100%);
    color: #000;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    pointer-events: auto;
    z-index: 3;
    transition: color .15s ease, transform .1s ease;
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
}
.bzbl-field--has-clear .bzbl-field__clear svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}
.bzbl-field--has-clear .bzbl-field__clear:hover {
    color: var(--bzbl-accent-dark);
}
.bzbl-field--has-clear .bzbl-field__clear:active {
    transform: scale(0.92);
}
.bzbl-field--has-clear .bzbl-field__clear:focus {
    outline: 2px solid var(--bzbl-accent);
    outline-offset: -2px;
}
/* Sichtbar wenn Feld gefüllt — Klasse wird vom JS auf den Container gesetzt */
.bzbl-field--clearable .bzbl-field__clear {
    display: flex;
}
/* Beim sichtbaren X: Platz für Cursor im Input freihalten, damit Text und X
   sich nicht überlappen. Padding-right vom Wrap-Input erhöhen. */
.bzbl-field--clearable .bzbst-input-wrap input,
.bzbl-field--clearable input[data-bzbl-autocomplete="1"] {
    padding-right: 52px !important;
}
.bzbl-field--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
}
.bzbl-field--checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--bzbl-accent);
    width: 16px;
    height: 16px;
}
.bzbl-field--checkbox span {
    font-size: 13px;
    line-height: 1.4;
}
.bzbl-field--checkbox a {
    color: var(--bzbl-accent);
}
.bzbl-field--file {
    margin: 24px 0;
    padding: 28px 20px;
    background: var(--bzbl-bg);
    border: 2px dashed var(--bzbl-border);
    border-radius: var(--bzbl-radius);
    text-align: center;
    transition: border-color .15s ease, background .15s ease;
}
.bzbl-field--file:hover {
    border-color: var(--bzbl-accent);
}
.bzbl-field--file label {
    display: block;
    font-size: 14px;
    color: var(--bzbl-muted);
    margin-bottom: 14px;
    cursor: pointer;
}
.bzbl-field--file__hint {
    margin: 8px 4px 0;
    font-size: 12px;
    color: var(--bzbl-muted);
    line-height: 1.4;
    text-align: center;
}
.bzbl-field--file input[type="file"] {
    width: auto;
    max-width: 100%;
    font-size: 14px;
    color: var(--bzbl-muted);
    background: transparent;
    border: none;
    padding: 0;
}
/* Native File-Input-Button stylen (statt hässlicher Browser-Default-Rahmen) */
.bzbl-field--file input[type="file"]::-webkit-file-upload-button,
.bzbl-field--file input[type="file"]::file-selector-button {
    background: var(--bzbl-text);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--bzbl-radius);
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    margin-right: 14px;
    transition: background .15s ease;
}
.bzbl-field--file input[type="file"]::-webkit-file-upload-button:hover,
.bzbl-field--file input[type="file"]::file-selector-button:hover {
    background: var(--bzbl-accent-dark);
}
.bzbl-form__submit {
    margin-top: 32px;
    text-align: center;
}
.bzbl-form__btn {
    background: var(--bzbl-text);
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--bzbl-radius);
    cursor: pointer;
    transition: transform .1s ease, background .15s ease;
    font-family: inherit;
}
.bzbl-form__btn:hover {
    background: var(--bzbl-accent-dark);
    transform: translateY(-1px);
}
.bzbl-form__btn:active {
    transform: translateY(1px);
}
.bzbl-form__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.bzbl-form__status {
    margin-top: 16px;
    padding: 12px;
    background: #f0f8f6;
    border-left: 4px solid var(--bzbl-accent);
    border-radius: 4px;
    font-size: 14px;
}
.bzbl-form__status--error {
    background: #fef6f5;
    border-left-color: var(--bzbl-error);
    color: var(--bzbl-error);
}
.bzbl-thank-you {
    max-width: 720px;
    padding: 24px 0;
    text-align: left;
}
.bzbl-thank-you__headline {
    color: var(--bzbl-accent, #1eaf9b) !important;
    font-size: 60px !important;
    line-height: 1.1 !important;
    margin: 0 0 48px !important;
    font-weight: 700 !important;
}
.bzbl-thank-you__body {
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 18px;
}
.bzbl-thank-you__service {
    margin-top: 24px;
    color: #666;
    font-size: 14px;
}
.bzbl-thank-you__signature {
    margin-top: 56px !important;
    font-weight: 700 !important;
}
.bzbl-thank-you__signature strong {
    font-weight: 700 !important;
}

/* Tablet + Mobile: zentriert. Nur Desktop ab 1024px linksbündig. */
@media (max-width: 1023px) {
    .bzbl-thank-you {
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .bzbl-thank-you {
        padding: 16px 0;
    }
    .bzbl-thank-you__headline {
        font-size: 40px !important;
        margin-bottom: 36px !important;
    }
    .bzbl-thank-you__body {
        font-size: 16px;
    }
    .bzbl-thank-you__signature {
        margin-top: 44px !important;
    }
}
.bzbl-error {
    padding: 16px;
    background: #fef6f5;
    border-left: 4px solid #d63d3d;
    color: #d63d3d;
    border-radius: 4px;
}

/* ============================================================
   AUTOFILL-STYLING (Chrome / Safari / Edge)
   ============================================================
   Browser legen bei automatisch ausgefüllten Feldern (Name, Tel,
   E-Mail …) einen eigenen blauen/gelben Hintergrund drüber, der sich
   NICHT per background-color überschreiben lässt. Mit einem großen
   inset box-shadow in der NORMALEN Feldfarbe (--bzbl-autofill-bg =
   #fafafa) überdecken wir ihn, sodass autoausgefüllte Felder genauso
   aussehen wie alle anderen (kein blaues Highlight). Der box-shadow
   folgt der border-radius des Feldes → runde Ecken. Die lange
   transition verhindert das Aufblitzen der Browser-Default-Farbe. */
.bzbl-field input:-webkit-autofill,
.bzbl-field input:-webkit-autofill:hover,
.bzbl-field textarea:-webkit-autofill,
.bzbl-field select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--bzbl-autofill-bg) inset;
    box-shadow: 0 0 0 1000px var(--bzbl-autofill-bg) inset;
    -webkit-text-fill-color: var(--bzbl-text);
    caret-color: var(--bzbl-text);
    border-radius: var(--bzbl-radius); /* runde Ecken für den Autofill-Hintergrund */
    transition: background-color 5000s ease-in-out 0s;
}
/* Bei Focus: Autofill-Background + unser Akzent-Focus-Ring kombiniert */
.bzbl-field input:-webkit-autofill:focus,
.bzbl-field textarea:-webkit-autofill:focus,
.bzbl-field select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bzbl-autofill-bg) inset, 0 0 0 3px rgba(30, 175, 155, 0.15);
    box-shadow: 0 0 0 1000px var(--bzbl-autofill-bg) inset, 0 0 0 3px rgba(30, 175, 155, 0.15);
    border-color: var(--bzbl-accent);
    border-radius: var(--bzbl-radius);
    -webkit-text-fill-color: var(--bzbl-text);
}

/* ============================================================
   THEME-OVERRIDE-SCHUTZ (Hello Elementor u.a.)
   ============================================================
   Themes setzen eigene input-Styles (font-weight, line-height,
   min-height/height) die die vertikale Zentrierung des Texts
   verschieben und den Text fett rendern. Höhere Specificity
   (.bzbl-form .bzbl-field input = 0,3,1) schlägt Theme-Selektoren
   sicher. Padding bleibt symmetrisch (16px) → Text vertikal mittig. */
.bzbl-form .bzbl-field input[type="text"],
.bzbl-form .bzbl-field input[type="email"],
.bzbl-form .bzbl-field input[type="tel"],
.bzbl-form .bzbl-field textarea,
.bzbl-form .bzbl-field select {
    font-weight: 600;            /* eingegebene Werte fett — einheitlich inkl. Select */
    margin: 0;
    box-sizing: border-box;
    vertical-align: middle;
    text-transform: none;
    letter-spacing: normal;
    border-radius: var(--bzbl-radius) !important; /* Elementor erzwingt sonst 10px/8px gemischt */
}
/* Single-Line-Felder (inkl. PLZ-Autocomplete + Select): feste, einheitliche
   Höhe und NUR horizontales Padding. Damit zentriert der Browser den Text
   nativ vertikal mittig — konsistent über alle Felder. Das war die Ursache
   für das "Springen" beim PLZ-Feld: das Autocomplete-Input wurde durch den
   bazuba-standorte-Wrap minimal anders behandelt. Feste Höhe vereinheitlicht das.
   min-height killt zusätzlich eine evtl. vom Theme gesetzte Mindesthöhe. */
.bzbl-form .bzbl-field input[type="text"],
.bzbl-form .bzbl-field input[type="email"],
.bzbl-form .bzbl-field input[type="tel"],
.bzbl-form .bzbl-field--floating select {
    height: var(--bzbl-field-height);
    min-height: var(--bzbl-field-height);
    padding-top: 0;
    padding-bottom: 0;
    line-height: normal;
}
/* Textarea bleibt multi-line: vertikales Padding + Mindesthöhe, Fließtext normal */
.bzbl-form .bzbl-field textarea {
    font-weight: 400;
    line-height: 1.4;
    min-height: 140px;
    height: auto;
    padding: 16px;
}

/* ============================================================
   CUSTOM-DROPDOWN (ersetzt natives <select>)
   ============================================================
   Per JS (enhanceSelects) wird das native <select> versteckt und durch
   einen voll stylbaren Trigger + Panel ersetzt — passt dadurch optisch zum
   restlichen Form-Look (gleiches Panel wie das PLZ-Autocomplete). Ohne JS
   bleibt das native <select> sichtbar (Fallback). */
.bzbl-cs__native {
    display: none !important;
}
.bzbl-cs {
    position: relative;
    width: 100%;
}
.bzbl-cs__trigger {
    width: 100%;
    height: var(--bzbl-field-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 0 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;            /* Wert fett, wie die übrigen Feldwerte */
    color: var(--bzbl-text);
    background: var(--bzbl-bg);
    border: 2px solid var(--bzbl-border);
    border-radius: var(--bzbl-radius);
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.bzbl-cs__trigger:focus,
.bzbl-cs.is-open .bzbl-cs__trigger {
    outline: none;
    border-color: var(--bzbl-accent);
    box-shadow: 0 0 0 3px rgba(30, 175, 155, 0.15);
}
/* THEME-OVERRIDE-SCHUTZ für den Trigger-Button: Hello Elementor / Elementor Pro
   stylen <button> mit schwarzem Hintergrund + pink/magenta Hover. Höhere Specificity
   (.bzbl-form button.bzbl-cs__trigger = 0,2,1) + !important für die Farben, sonst
   ist das Dropdown schwarz (default) bzw. pink (hover/offen). */
.bzbl-form button.bzbl-cs__trigger,
.bzbl-form button.bzbl-cs__trigger:hover,
.bzbl-form button.bzbl-cs__trigger:active {
    background: var(--bzbl-bg) !important;
    background-color: var(--bzbl-bg) !important;
    color: var(--bzbl-text) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
    border-radius: var(--bzbl-radius) !important; /* Elementor macht Buttons sonst 25px (pill) */
}
.bzbl-form button.bzbl-cs__trigger:focus,
.bzbl-form .bzbl-cs.is-open button.bzbl-cs__trigger {
    border-color: var(--bzbl-accent) !important;
    box-shadow: 0 0 0 3px rgba(30, 175, 155, 0.15) !important;
}
.bzbl-form button.bzbl-cs__trigger .bzbl-cs__value {
    color: var(--bzbl-text) !important;
}
.bzbl-form button.bzbl-cs__trigger .bzbl-cs__value--placeholder {
    color: var(--bzbl-muted) !important;
}
.bzbl-cs__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bzbl-cs__value--placeholder {
    color: var(--bzbl-muted);
    font-weight: 400;
}
.bzbl-cs__caret {
    flex-shrink: 0;
    width: 14px;
    height: 9px;
    color: #555;
    display: flex;
    align-items: center;
    transition: transform .2s ease, color .15s ease;
}
.bzbl-cs__caret svg {
    width: 14px;
    height: 9px;
    display: block;
}
.bzbl-cs.is-open .bzbl-cs__caret {
    transform: rotate(180deg);
    color: var(--bzbl-accent);
}
/* Panel: identischer Look wie das Autocomplete-Dropdown */
.bzbl-cs__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 9999;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 2px solid var(--bzbl-border);
    border-radius: var(--bzbl-radius);
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}
.bzbl-cs__option {
    padding: 11px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--bzbl-text);
    cursor: pointer;
    transition: background .1s ease;
}
.bzbl-cs__option + .bzbl-cs__option {
    margin-top: 2px;
}
.bzbl-cs__option:hover,
.bzbl-cs__option.is-active {
    background: var(--bzbl-bg);
}
.bzbl-cs__option.is-selected {
    font-weight: 600;
    color: var(--bzbl-accent);
}
.bzbl-cs__option.is-selected.is-active,
.bzbl-cs__option.is-selected:hover {
    background: rgba(30, 175, 155, 0.08);
}
/* Label akzentfarbig wenn Custom-Select fokussiert oder offen */
.bzbl-field--floating .bzbl-cs:focus-within ~ label,
.bzbl-field--floating .bzbl-cs.is-open ~ label {
    color: var(--bzbl-accent);
}
/* Field mit offenem Dropdown über die Geschwisterfelder heben */
.bzbl-field--floating.bzbl-field--select:focus-within {
    z-index: 9999;
}
