/* ==========================================================================
   ZWANGS-CSS: BUCHUNGSSEITE & POPUPS (Desktop & Global)
   ========================================================================== */

.bike-rental-app,
.bike-rental-app * {
    box-sizing: border-box;
}
.bike-rental-app {
    width: 100%; max-width: 100%; clear: both; float: none;
}
.bike-rental-app .bre-search-bar.search-row {
    width: 100%; max-width: 100%;
}

/* --- 1. Suchleiste --- */
.bre-search-bar {
    margin-bottom: 40px; background: var(--bre-white); padding: 24px; border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06); border: 1px solid var(--bre-gray-100);
}

.label_search_row {
    display: block; font-size: 12px; font-weight: 800; color: var(--bre-gray-btn); 
    margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}

.bre-input-field {
    width: 100%; padding: 0 20px; border-radius: 14px; border: 2px solid var(--bre-border); 
    outline: none; height: 60px; box-sizing: border-box; background: var(--bre-gray-bg);
    color: var(--bre-dark); font-size: 15px; font-weight: 600; transition: all 0.3s ease;
    cursor: pointer; appearance: none; -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat; background-position: right 15px center; background-size: 18px;
}

.bre-input-field:focus {
    border-color: var(--bre-primary); background: var(--bre-white); box-shadow: 0 0 0 4px rgba(189,0,0,0.1);
}

.bre-date-wrapper {
    display: flex; align-items: center; border: 2px solid var(--bre-border); border-radius: 14px;
    height: 60px; background: var(--bre-gray-bg); padding: 0 20px; transition: all 0.3s ease;
}

.bre-date-wrapper:focus-within {
    border-color: var(--bre-primary); background: var(--bre-white); box-shadow: 0 0 0 4px rgba(189,0,0,0.1);
}

.bre-date-wrapper svg { margin-right: 12px; fill: var(--bre-primary); width: 20px; height: 20px; }

.bre-date-wrapper input, #f_date { 
    border: none !important; box-shadow: none !important; outline: none !important; 
    background: transparent !important; margin: 0 !important; width: 100%;
    font-size: 15px; font-weight: 600; color: var(--bre-dark); cursor: pointer;
}

.bre-date-reset { cursor: pointer; font-weight: 900; color: var(--bre-primary); margin-left: 10px; font-size: 18px; transition: transform 0.2s; }
.bre-date-reset:hover { transform: scale(1.2); }

/* --- 2. Sticky Bar Unten --- */
.bre-sticky-bar {
    box-sizing: border-box;
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(150%);
    width: 95%; max-width: 1100px; background: var(--bre-white) !important;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15) !important; z-index: 9999;
    padding: 15px 25px; border-radius: 20px; border-top: 4px solid var(--bre-primary) !important;
    transition: all 0.4s ease; display: flex; flex-wrap: wrap; row-gap: 10px; align-items: center; justify-content: space-between;
}
.bre-sticky-bar *, .bre-sticky-bar *::before, .bre-sticky-bar *::after { box-sizing: border-box; }

.bre-sticky-reset { position: absolute; top: -15px; right: 10px; background: #000; color: var(--bre-white); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: bold; border: 2px solid var(--bre-white); box-shadow: 0 2px 10px rgba(0,0,0,0.2); z-index: 10; }
.bre-sticky-info-wrap { display: flex; align-items: center; gap: 15px; flex: 1; }
.bre-sticky-img { width: 70px; height: 50px; background: #f5f5f5; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.bre-sticky-title { font-weight: 900; font-size: 16px; color: #000; }
.bre-sticky-period {
    display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #888; font-weight: 700;
    background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
}
.bre-sticky-period:hover { color: var(--bre-primary); }
.bre-sticky-period .bre-st-period-edit { opacity: 0.6; }
.bre-sticky-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.bre-sticky-actions-wrap { display: flex; align-items: center; gap: 20px; }
.bre-sticky-price-wrap { text-align: right; }
.bre-sticky-price-label { font-size: 10px; color: red; text-transform: uppercase; font-weight: 800; }
.bre-sticky-price-val { font-size: 28px; font-weight: 900; color: #000; line-height: 1; }
.bre-sticky-buttons { display: flex; gap: 10px; align-items: center; }

/* Sticky Bar: "Bike hinzufügen" — nur sichtbar, sobald mind. 1 Bike im Warenkorb liegt */
.bre-st-add-bike {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--bre-white); border: 1.5px solid var(--bre-dark, var(--bre-dark)); color: var(--bre-dark, var(--bre-dark));
    border-radius: var(--bre-radius-btn); padding: 0 12px; height: 44px;
    font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: 0.15s ease; box-shadow: none;
}
.bre-st-add-bike:hover { background: var(--bre-dark, var(--bre-dark)); color: var(--bre-white); }

/* Sticky Bar: Tagespreis/Mietpreis-Zeile + editierbare Extras-Chips */
.bre-st-price-breakdown {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    margin: 10px 0 0; padding: 7px 10px; background: var(--bre-gray-bg); border-radius: 8px; font-size: 12px;
}
.bre-st-price-breakdown .lbl { color: var(--bre-gray-400); }
.bre-st-price-breakdown .val { font-weight: 700; color: var(--bre-gray-700); }
.bre-st-price-breakdown .sep { color: var(--bre-gray-300); }
.bre-st-discount-badge { margin-left: auto; background: #ecfdf5; color: #047857; font-weight: 800; padding: 2px 8px; border-radius: 6px; font-size: 11px; }
.bre-st-extras-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
.st-extra-chip {
    display: inline-flex; align-items: center; gap: 6px; background: var(--bre-gray-bg); border: 1px solid var(--bre-border);
    border-radius: 8px; padding: 5px 6px 5px 6px; font-size: 12px; color: var(--bre-gray-700); white-space: nowrap;
}
.st-extra-chip-img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.st-extra-chip .chip-price { color: var(--bre-gray-700); font-weight: 700; }
/* THEME-SCHUTZ: Elementor-Kit-Regeln (.elementor-kit-N button) schlagen normale
   Klassen-Selektoren — ohne !important quetscht das Theme-Padding (8px 16px) das ×
   aus dem 16px-Kasten heraus und färbt Button-Text pink bzw. bei Hover/Fokus
   weiß-auf-weiß (unsichtbar). Gilt für ALLE kleinen Steuer-Buttons der Buchungsseite. */
.st-extra-remove {
    background: #eef2f7 !important; border: 0 !important; border-radius: 5px !important;
    width: 18px !important; height: 18px !important; min-height: 0 !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    color: var(--bre-gray-btn) !important; padding: 0 !important; line-height: 1 !important;
    font-size: 12px !important; cursor: pointer; flex-shrink: 0; box-sizing: border-box !important;
}
.st-extra-remove:hover, .st-extra-remove:focus { background: var(--bre-red-100) !important; color: var(--bre-red-700) !important; }
.bre-st-add-extra {
    display: inline-flex; align-items: center; gap: 5px; background: var(--bre-white);
    border: 1.5px solid var(--bre-dark, var(--bre-dark)); border-radius: var(--bre-radius-btn); color: var(--bre-dark, var(--bre-dark));
    padding: 5px 10px; font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit; box-shadow: none;
}
.bre-st-add-extra:hover { background: var(--bre-dark, var(--bre-dark)); color: var(--bre-white); }

/* Mini-Warenkorb / "Buchung abschließen" — Desktop: zentriertes Modal.
   Auf Mobile (siehe Media Query) wird daraus ein Bottom-Sheet, weil ein
   mittig schwebendes Popup auf schmalen Screens zu wenig Platz lässt und
   der Daumen den Kasse-Button unten am Rand schlechter erreicht. */
.bre-minicart-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,0.8); z-index: 2147483648;
    display: none; align-items: center; justify-content: center; padding: 20px;
    backdrop-filter: blur(5px); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.bre-minicart-box {
    background: var(--bre-white); border-radius: 20px; width: 100%; max-width: 500px; overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25); display: flex; flex-direction: column; max-height: 85vh;
}
.bre-minicart-header {
    padding: 20px 25px; border-bottom: 1px solid var(--bre-border); display: flex;
    justify-content: space-between; align-items: center; background: var(--bre-gray-bg); flex-shrink: 0;
}
.bre-minicart-title { margin: 0; font-size: 20px; font-weight: 900; color: var(--bre-dark); display: flex; align-items: center; gap: 10px; }
.bre-minicart-content { padding: 25px; overflow-y: auto; flex: 1; }
.bre-minicart-footer { padding: 20px 25px; border-top: 1px solid var(--bre-border); background: var(--bre-white); flex-shrink: 0; }
.bre-minicart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 18px; font-weight: 900; color: var(--bre-dark); }
.bre-minicart-buttons { display: flex; gap: 10px; flex-direction: column; }

/* Mini-Warenkorb-Steuerelemente — THEME-SCHUTZ wie bei .st-extra-remove:
   ohne explizite Farben/Maße macht das Elementor-Kit die Picker-Buttons
   pink bzw. unsichtbar (weiß auf weiß bei Hover/Fokus) und verschiebt die X. */
.bre-mc-picker-item,
.bre-mc-picker-item:hover,
.bre-mc-picker-item:focus {
    background: var(--bre-white) !important; color: var(--bre-gray-700);
    border: 1px solid var(--bre-border); border-radius: 6px;
    padding: 6px 10px; min-height: 0; line-height: 1.3;
    font-size: 12px; font-weight: 600; font-family: inherit;
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; box-sizing: border-box; box-shadow: none;
}
.bre-mc-picker-item:hover { border-color: var(--bre-gray-400); background: var(--bre-gray-bg) !important; }
.bre-mc-picker-item span { color: var(--bre-gray-400); }

.bre-mc-extra-remove, .bre-cart-remove-btn {
    background: none !important; border: none !important;
    padding: 2px !important; min-height: 0; line-height: 1 !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    color: var(--bre-gray-300) !important; cursor: pointer; box-sizing: border-box; box-shadow: none;
}
.bre-mc-extra-remove:hover, .bre-mc-extra-remove:focus,
.bre-cart-remove-btn:hover, .bre-cart-remove-btn:focus { color: var(--bre-red-500); background: none !important; }

@media (max-width: 640px) {
    .bre-minicart-backdrop { align-items: flex-end; padding: 0; }
    .bre-minicart-box { max-width: 100%; border-radius: 20px 20px 0 0; max-height: 88vh; }
    .bre-minicart-footer { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}

/* Warenkorb Button */
.bre-cart-floating-btn { position: relative; background: #000; color: var(--bre-white); width: 55px; height: 55px; border-radius: 15px; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: transform 0.2s; }
.bre-cart-floating-btn svg { width: 22px; height: 22px; opacity: 0.9; }
.bre-cart-count { position: absolute; top: 0; right: -5px; background: var(--bre-white); color: red; font-size: 12px; font-weight: 900; min-width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid red; box-shadow: 0 2px 5px rgba(0,0,0,0.3); z-index: 2; }

/* --- 2b. Sticky Bar Oben: Fortschrittsanzeige --- */
.bre-top-bar {
    position: sticky; top: 0; z-index: 9998;
    display: flex; align-items: center; justify-content: center; flex-wrap: nowrap;
    background: var(--bre-white); border-bottom: 1px solid var(--bre-gray-100);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    padding: 10px 16px; margin: 0 0 20px 0; border-radius: 12px;
}

.bre-tb-steps { display: flex; align-items: center; gap: 6px; }
.bre-tb-step { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--bre-gray-400); opacity: 0.55; transition: opacity 0.2s; }
.bre-tb-dot {
    width: 18px; height: 18px; border-radius: 50%; background: var(--bre-gray-100); color: var(--bre-gray-400);
    display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900;
    transition: background 0.2s, color 0.2s;
}
.bre-tb-sep { width: 12px; height: 1px; background: var(--bre-border); flex-shrink: 0; }
.bre-tb-step.is-active { opacity: 1; }
.bre-tb-step.is-active .bre-tb-dot { background: var(--bre-primary); color: var(--bre-white); }
.bre-tb-step.is-done { opacity: 0.85; }
.bre-tb-step.is-done .bre-tb-dot { background: var(--bre-toggle-on); color: var(--bre-white); }
.bre-tb-step-caption { display: none; }

@media (max-width: 768px) {
    .bre-top-bar { padding: 8px 10px; border-radius: 10px; gap: 8px; position: relative; }
    .bre-tb-steps { gap: 4px; }
    .bre-tb-step .bre-tb-label { display: none; }
    .bre-tb-sep { width: 8px; flex-shrink: 0; }
    .bre-tb-step-caption {
        display: block; position: absolute; left: 10px; right: 10px; top: 100%;
        font-size: 11px; font-weight: 700; color: var(--bre-primary); padding: 4px 2px 0; text-align: center;
    }
}

/* --- 3. Frontend Popups --- */
.bre-modal-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 10000; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.bre-modal-box { background: var(--bre-white); padding: 30px; border-radius: 25px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); font-family: sans-serif; }
.bre-modal-wide { max-width: 650px; width: 90%; max-height: 85vh; overflow-y: auto; }
.bre-modal-slim { max-width: 450px; width: 90%; }
.bre-modal-title { margin: 0 0 20px 0; font-size: 22px; font-weight: 900; color: #000; }

.bre-extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-bottom: 30px; }
.bre-extra-card { border: 1px solid #eee; border-radius: 10px; padding: 15px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; transition: all 0.2s; }

/* Auswahl-Häkchen als Overlay auf dem Zubehör-Bild — nur sichtbar wenn ausgewählt. */
.bre-extra-check-badge {
    position: absolute; top: -6px; right: calc(50% - 46px); width: 24px; height: 24px; border-radius: 50%;
    background: var(--bre-primary); color: var(--bre-white); display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.4); transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.extra-item.selected .bre-extra-check-badge { opacity: 1; transform: scale(1); }

/* Status-Pill unten in der Zubehör-Karte (ersetzt das frühere, nie aktualisierte
   "HINZUFÜGEN"-Label — wechselt jetzt Text UND Farbe mit dem Auswahlzustand). */
.bre-extra-status {
    width: 100%; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: 0.3px;
    padding: 8px 10px; border-radius: 10px; border: 1.5px solid #eef1f5; color: var(--bre-gray-btn);
    background: var(--bre-white); transition: all 0.2s ease; box-sizing: border-box;
}
.extra-item.selected .bre-extra-status {
    background: var(--bre-primary); border-color: var(--bre-primary); color: var(--bre-white);
}
.bre-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.bre-form-label { font-size: 10px; font-weight: 900; color: #888; display: block; margin-bottom: 5px; text-transform: uppercase; }

/* Abbrechen Link im Popup */
.abort-booking {
    background: #f0f0f0 !important; color: #333 !important; border: none !important; border-radius: 12px !important; height: 50px !important; font-size: 14px !important; font-weight: 800 !important; text-transform: uppercase !important; display: flex !important; align-items: center !important; justify-content: center !important; text-decoration: none !important; box-shadow: none !important;
}

/* ==========================================================================
   FRONTEND KALENDER POPUP - BEAUTY UPGRADE
   ========================================================================== */
#avail_modal .bre-modal-box {
    max-width: 750px; width: 95%; border-radius: 24px; padding: 30px; border: none; box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
#avail_calendar_wrapper .flatpickr-calendar { box-shadow: none !important; border: none !important; margin: 0 auto; padding: 10px 0; }

.bre-day-free { background: var(--bre-green-50); border: 1px solid var(--bre-green-500); color: var(--bre-green-700); font-weight: 700; border-radius: 8px; transition: all 0.2s ease; }
.bre-day-free:hover { background: var(--bre-green-500); border-color: var(--bre-green-500); color: var(--bre-white); transform: scale(1.05); }

.bre-day-booked { background: var(--bre-red-50); border: 1px solid #fca5a5; color: var(--bre-red-500); text-decoration: line-through; opacity: 0.5; border-radius: 8px; cursor: not-allowed; }

#avail_calendar_wrapper .flatpickr-day.selected, #avail_calendar_wrapper .flatpickr-day.startRange, #avail_calendar_wrapper .flatpickr-day.endRange, #avail_calendar_wrapper .flatpickr-day.selected.inRange, #avail_calendar_wrapper .flatpickr-day.startRange.inRange, #avail_calendar_wrapper .flatpickr-day.endRange.inRange, #avail_calendar_wrapper .flatpickr-day.selected:focus, #avail_calendar_wrapper .flatpickr-day.startRange:focus, #avail_calendar_wrapper .flatpickr-day.endRange:focus, #avail_calendar_wrapper .flatpickr-day.selected:hover, #avail_calendar_wrapper .flatpickr-day.startRange:hover, #avail_calendar_wrapper .flatpickr-day.endRange:hover {
    background: var(--bre-return-blue) !important; border-color: var(--bre-return-blue) !important; color: var(--bre-white) !important; border-radius: 8px !important; font-weight: 900 !important;
}

#avail_calendar_wrapper .flatpickr-day.inRange { background: var(--bre-blue-50) !important; border-color: var(--bre-blue-100) !important; color: var(--bre-return-blue) !important; border-radius: 0 !important; box-shadow: none !important; }

/* ==========================================================================
   MOBILE RESPONSIVENESS (Handy & Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
    /* Flyer-Marketing-Nav UND der rote CTA-Strip werden komplett entfernt, sobald
       gebucht wird. display:none statt nur opacity:0 — sonst fängt der CTA-Button
       (hat eigenes pointer-events:all) weiterhin Taps ab und navigiert zur
       Buchungsseite, obwohl er "unsichtbar" ist. */
    .ds-flyer-nav.bre-hide-menu,
    .ds-flyer-cta-mobile.bre-hide-menu {
        display: none;
    }
    /* Auch innere klickbare Elemente sicher abschalten */
    .ds-flyer-cta-mobile.bre-hide-menu *,
    .ds-flyer-nav.bre-hide-menu * {
        pointer-events: none;
    }
    /* Dauerhaft ausgeblendet (z.B. CTA auf der Buchungsseite selbst) */
    .bre-hide-permanent { display: none; }
}

@media (max-width: 768px) {
    .bre-search-bar { padding: 16px; gap: 10px; }
    
    .bre-sticky-bar {
        flex-direction: column; align-items: stretch !important; gap: 14px; padding: 20px 18px !important; bottom: 85px !important; left: 50% !important; width: 100% !important; max-width: 100% !important; border-radius: 24px 24px 0 0 !important; box-shadow: 0 -12px 40px rgba(0,0,0,0.22) !important; border-top: 5px solid var(--bre-primary) !important; background: var(--bre-white) !important; z-index: 99999 !important;
        transition: bottom 0.4s ease-in-out, transform 0.4s ease !important;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
    /* Buchung aktiv → Flyer-Nav ist weg → Buchungsleiste sitzt am unteren Rand */
    .bre-sticky-bar.bre-booking-active { bottom: 0; }

    .bre-sticky-info-wrap { display: flex !important; justify-content: flex-start; align-items: center !important; gap: 15px !important; width: 100%; text-align: left; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
    .bre-sticky-img { width: 64px !important; height: 46px !important; }
    .bre-sticky-title { font-size: 15px !important; line-height: 1.15; margin:0; }
    .bre-sticky-period { font-size: 11px !important; }

    .bre-st-price-breakdown { font-size: 11px !important; padding: 6px 8px !important; }
    .bre-st-discount-badge { font-size: 10px !important; }
    .bre-st-extras-row { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 2px; width: 100%; }
    .bre-sticky-icons { flex-wrap: nowrap !important; }
    .st-extra-chip { flex-shrink: 0; }
    .bre-st-add-extra { flex-shrink: 0; }

    .bre-sticky-actions-wrap { display: flex !important; flex-direction: row; justify-content: space-between; align-items: center !important; gap: 10px !important; width: 100%; border: none; padding-top: 0; }
    .bre-sticky-price-wrap { flex: 1; text-align: left !important; }
    .bre-sticky-price-val { font-size: 26px !important; }
    .bre-sticky-price-label { font-size: 10px !important; }
    .bre-sticky-buttons { display: flex !important; gap: 9px !important; align-items: center !important; justify-content: flex-end; }

    .bre-btn-primary#st_open_extras { order: 2; height: 54px; padding: 0 18px !important; font-size: 14px !important; font-weight: 800; flex: 0 1 auto; min-width: 90px; }
    .bre-st-add-bike#st_add_bike { order: 0; height: 54px; padding: 0 10px; font-size: 11px; flex: 0 0 auto; }
    .bre-cart-floating-btn#st_cart_btn { order: 3; width: 54px; height: 54px; min-width: 54px; background: #000; border-radius: 14px; }
    .bre-cart-floating-btn svg { width: 26px !important; height: 26px !important; }

    .bre-sticky-reset#st_reset { position: absolute; top: -15px; right: 15px; width: 32px; height: 32px; display: flex; background: #000; z-index: 99999; flex: none; }

    .bre-form-grid { grid-template-columns: 1fr; gap: 10px; }
    .bre-modal-box { padding: 20px; }
    .bre-modal-title { font-size: 18px !important; margin-bottom: 15px; padding-right: 30px; }

    .modal-overlay.bre-modal-bg { z-index: 9999999; background: rgba(0,0,0,0.85); align-items: flex-end; }

    /* MOBILE MODALS: feste 3-Zonen-Struktur, damit der Aktions-Button UNTEN
       immer sichtbar bleibt (nicht mehr abgeschnitten). Box selbst scrollt NICHT,
       nur der mittlere Inhaltsbereich. */
    .extras-modal.bre-modal-box,
    .bre-modal-box.bre-modal-slim,
    .bre-modal-box.bre-modal-wide {
        width: 100%;
        max-width: 520px;
        max-height: 90vh;
        margin: 0 auto;
        padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        border-radius: 22px 22px 0 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* Titel oben fix */
    .bre-modal-title { flex-shrink: 0; }

    /* Extras-Liste = scrollbarer Mittelteil */
    .bre-extras-grid {
        flex: 1 1 auto;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        display: grid !important; grid-template-columns: 1fr 1fr !important;
        gap: 10px !important; margin-bottom: 14px !important;
        padding: 2px !important;
    }

    /* Aktions-Buttons in Modals: unten fix, immer sichtbar, volle Breite */
    #st_final_submit,
    #customer_data_popup .bre-form-grid ~ div:last-child,
    .bre-modal-box > button:last-child,
    .bre-modal-box > .bre-btn-primary {
        flex-shrink: 0 !important;
        width: 100% !important;
        min-height: 54px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
    }
    #st_final_submit { margin-top: auto !important; }
    .bre-extra-card { padding: 10px !important; border: 1px solid #eee !important; background: var(--bre-white); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    .bre-extra-img-wrap { height: 70px; }
    .bre-extra-img-wrap img { max-height: 70px; }
    .bre-extra-title { font-size: 12px; min-height: 32px; display: flex; align-items: center; justify-content: center; }
    .bre-extra-price { font-size: 13px !important; margin-bottom: 10px; }
    .bre-extra-status { font-size: 10px !important; padding: 6px !important; }
}

/* Rückfrage-Modal, das über einem bereits offenen Modal erscheint (z.B.
   "Ohne Versicherung buchen?" über dem Extras-Popup) — braucht garantiert
   einen höheren z-index als das darunterliegende Modal, unabhängig von der
   DOM-Reihenfolge (sonst bleibt es unsichtbar dahinter und die Seite wirkt
   wie eingefroren, weil die eigentlichen Buttons nicht erreichbar sind). */
.modal-overlay.bre-modal-nested { z-index: 2147483000; }

@media (max-width: 480px) {
    .bre-extras-grid { grid-template-columns: 1fr; }
    .bre-sticky-price-val { font-size: 18px !important; }
    .bre-btn-primary#st_open_extras { padding: 0 8px !important; font-size: 11px !important; }
}