/* =================================================================
   Site-wide CTA (Breadcrumb + Sticky configurator bar + Modal)
   ================================================================= */

/* ─── Breadcrumb ──────────────────────────────────────────────────── */
/* The breadcrumb is injected as the FIRST child INSIDE <footer> (see
   VRT_Site_Cta::maybe_render_footer_breadcrumb). It therefore sits on the
   continuous footer photo + overlay that frontend.css paints on <footer>, so
   it needs NO background of its own — just a full-width band with a divider
   to the footer columns below, matching the live site. */
.vrt-site-breadcrumb {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 0;
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.vrt-site-breadcrumb__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
/* Theme injects `.scheme_default a { color: #1e1e1e }` (specificity 0,1,1)
   which beats our plain `.vrt-site-breadcrumb__home` (0,1,0) and turns the
   home link dark. Force red. */
.vrt-site-breadcrumb__home,
a.vrt-site-breadcrumb__home {
    color: #c0212d !important;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
}
.vrt-site-breadcrumb__home:hover,
a.vrt-site-breadcrumb__home:hover {
    color: #c0212d !important;
    text-decoration: underline;
}
.vrt-site-breadcrumb__sep {
    color: rgba(255, 255, 255, 0.45);
    font-size: 16px;
    line-height: 1;
}
.vrt-site-breadcrumb__current {
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 600;
}

/* ─── Sticky bottom bar ──────────────────────────────────────────── */
.vrt-site-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    pointer-events: none;
}
.vrt-site-sticky__btn {
    pointer-events: auto;
    appearance: none;
    border: 0;
    margin: 0;
    width: 100%;
    background: var(--vrt-sticky-bg, #c0212d);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
    transition: filter 0.15s ease, transform 0.15s ease;
}
.vrt-site-sticky__btn:hover { filter: brightness(1.08); }
.vrt-site-sticky__btn:active { transform: translateY(1px); }
.vrt-site-sticky__icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
}

/* Reserve room at the bottom of the page so the sticky bar doesn't
   cover real content. Use a roughly bar-height padding on body. */
body { padding-bottom: 64px; }

/* ─── Modal ──────────────────────────────────────────────────────── */
.vrt-site-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.vrt-site-modal[hidden] { display: none; }
.vrt-site-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(2px);
}
.vrt-site-modal__panel {
    position: relative;
    z-index: 1;
    background: #1a1a1a;
    color: #fff;
    max-width: 640px;
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: 36px 32px 28px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}
.vrt-site-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
}
.vrt-site-modal__close:hover { background: rgba(255, 255, 255, 0.08); }
.vrt-site-modal__title {
    margin: 0 0 22px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    color: #fff;
}
.vrt-site-modal__title::after {
    content: " ";
    display: inline;
}
.vrt-site-modal__body {
    /* The selector inside may be styled lighter — give it a tighter container */
    padding: 4px 0 12px;
}
/* Suppress the inner selector's own "FAHRZEUG AUSWÄHLEN" headline
   (our modal already shows the title at the top of the panel). */
.vrt-site-modal__body .vrt-selector-title { display: none; }
/* The selector's light-theme widgets need to read well on the dark modal bg */
.vrt-site-modal__body .vrt-vehicle-selector,
.vrt-site-modal__body .vrt-selector-inner { background: transparent; }
.vrt-site-modal__body .vrt-select {
    background: #fff;
    color: #1a1a1a;
}
.vrt-site-modal__notfound {
    text-align: center;
    margin: 6px 0 0;
    font-size: 13px;
}
.vrt-site-modal__notfound a {
    color: #c0212d;
    text-decoration: underline;
}
.vrt-site-modal__notfound a:hover { color: #fff; }

/* Force-show: JS toggles [hidden] attr */
.vrt-site-modal:not([hidden]) { display: flex; }

/* When modal is open, lock body scroll */
body.vrt-cta-modal-open { overflow: hidden; }

/* ─── Mobile tweaks ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .vrt-site-breadcrumb__inner { padding: 0 16px; font-size: 12px; }
    .vrt-site-sticky__btn { font-size: 15px; letter-spacing: 0.8px; padding: 16px 18px; }
    .vrt-site-modal { padding: 12px; }
    .vrt-site-modal__panel { padding: 28px 18px 22px; }
    .vrt-site-modal__title { font-size: 20px; }
    body { padding-bottom: 56px; }
}
