/* ==========================================
   Navigation: ohne Glow / Schatten
   ========================================== */

.navbar.navbar-fixed,
.navbar.bootsnav.navbar-fixed {
    box-shadow: none !important;
}


/* ==========================================
   Breadcrumb im Hero (Startseite > Standorte)
   ========================================== */

.sf-breadcrumb {
    margin-top: 20px;
}

.sf-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    justify-content: center;
}

.sf-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

.sf-breadcrumb .breadcrumb a {
    color: #ffffff;
    text-decoration: underline;
}

.sf-breadcrumb .breadcrumb .active {
    color: #d1e39a;
}


/* ==========================================
   Cookie-Banner & Cookie-Modal
   ========================================== */

.sf-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.96);
    color: #fff;
    font-size: 14px;
    padding: 12px 0;
}

.sf-cookie-banner p {
    margin: 0;
}

.sf-cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.sf-cookie-buttons {
    text-align: right;
    margin-top: 8px;
}

.sf-cookie-buttons .btn {
    margin-left: 5px;
    margin-top: 5px;
}

.sf-cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.sf-cookie-modal-backdrop.sf-visible {
    display: flex;
}

.sf-cookie-modal {
    background: #ffffff;
    color: #333333;
    max-width: 640px;
    width: 90%;
    border-radius: 12px;
    padding: 20px 24px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.sf-cookie-modal h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.sf-cookie-category {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.sf-cookie-category:last-child {
    border-bottom: none;
}

.sf-cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sf-cookie-toggle label {
    margin: 0;
    font-weight: 600;
}

.sf-cookie-toggle input[type="checkbox"] {
    transform: scale(1.1);
    margin-left: 10px;
}

.sf-cookie-modal-footer {
    text-align: right;
    margin-top: 15px;
}

.sf-cookie-placeholder {
    padding: 20px;
    text-align: center;
    border: 1px dashed #ccc;
    border-radius: 8px;
    font-size: 14px;
}


/* ==========================================
   Preloader mit sanaflair-Logo
   ========================================== */

.se-pre-con {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-preloader-logo {
    width: 140px;
    max-width: 40vw;
}

.sf-logo-svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Animation des Logo-Gruppenelements (keine Farb-/Formänderung) */
.sf-logo-svg #Logo-2022 {
    transform-box: fill-box;
    transform-origin: center;
    animation: sf-logo-pulse 1.8s ease-in-out infinite;
}

@keyframes sf-logo-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.0;
    }
    30% {
        transform: scale(1.0);
        opacity: 1.0;
    }
    70% {
        transform: scale(1.0);
        opacity: 1.0;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.0;
    }
}

@media (max-width: 480px) {
    .sf-preloader-logo {
        width: 110px;
    }
}


/* ==========================================
   Standorte: Filial-Grid & Card-Optik
   ========================================== */

/* optional – falls du an anderer Stelle .row verändert hast */
.gallery-area .row {
    margin-left: -15px;
    margin-right: -15px;
}

.gallery-area .single-item {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 40px;
}

.branch-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 0 40px 0; /* keine horizontalen Margins – sonst verschiebt sich das Grid */
}

.branch-card .thumb {
    margin: 0;
}

.branch-card .thumb img {
    display: block;
    width: 100%;
    height: auto;
}

/* Inhalt der Card als Flex-Column, damit Buttons nach unten können */
.branch-card .info {
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.branch-card .branch-type {
    font-size: 0.85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8c99ac;
    margin-bottom: 8px;
    font-weight: 600;
}

.branch-card .branch-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    font-size: 0.95rem;
    color: #4a5568;
}

.branch-card .branch-meta li + li {
    margin-top: 2px;
}

.branch-card .branch-links {
    margin-top: auto;           /* Buttons immer schön am unteren Rand der Card */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.branch-card .btn {
    font-size: 0.85rem;
}

@media (max-width: 767.98px) {
    .gallery-area .single-item {
        margin-bottom: 30px;
    }
}

/* Override: Standorte-Grid / Gallery-Container ab 1367px
   korrigiert verschobenes Layout aus style.css */
@media only screen and (min-width: 1367px) {
    .gallery-area .container {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 1140px;          /* klassische Bootstrap-Breite */
        padding-left: 15px;         /* „normales“ Seitenpadding */
        padding-right: 15px;
    }
}

/* =========
   Galerie-Layout Optimierung (Padding + Abstand)
   ========= */
.branch-gallery {
    padding-top: 80px;
    padding-bottom: 100px;
}

.branch-gallery .site-heading {
    margin-bottom: 50px;
}

@media (max-width: 767.98px) {
    .branch-gallery {
        padding-top: 60px;
        padding-bottom: 80px;
    }
    .branch-gallery .site-heading {
        margin-bottom: 35px;
    }
}