/* --- GELB-SCHWARZES ABSPERRBAND (TOP-LEFT CORNER) --- */
.css-baustelle-banner {
    position: absolute;
    top: 85px;          
    left: -180px;       
    width: 600px;       
    height: 60px;       
    z-index: 2900;      /* HIER GEÄNDERT: Jetzt liegt es sauber HINTER dem Info-Banner (3000) */
    pointer-events: none;
    display: none;      
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
    background-color: #ffd700;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 25px,
        #111111 25px,
        #111111 50px
    );
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-top: 3px solid #111;
    border-bottom: 3px solid #111;
}

/* Versteckt die Icons und Hintergründe des alten Schildes */
.css-baustelle-banner * {
    display: none !important;
}

/* Text-Plakette in der Mitte des Bandes */
.css-baustelle-banner::after {
    content: 'UNDER CONSTRUCTION';
    display: block !important;
    background: #111;
    color: #ffd700;
    padding: 4px 14px;       /* Deutlich weniger wuchtig */
    font-size: 0.85rem;      /* Schrift etwas kleiner und edler */
    font-weight: 900;
    letter-spacing: 2px;     /* Etwas kompakter */
    border-radius: 4px;      /* Leicht eckiger, passt besser zum rauen Baustellen-Look */
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4); /* Etwas subtilerer Schatten */
}

/* WICHTIG: Bleibt drin, da die Barber Pole (#styleria-info-bell) diese Animation nutzt! */
@keyframes gentle-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }


/* --- INFO BANNER --- */
#styleria-global-banner { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 600px; z-index: 3000; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-left: 4px solid #e3000f; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); padding: 20px 40px 20px 20px; display: none; transition: opacity 0.3s ease; }
#styleria-global-banner .close-btn { position: absolute; top: 12px; right: 15px; font-size: 1.2rem; color: #888; cursor: pointer; transition: color 0.2s; }
#styleria-global-banner .close-btn:hover { color: #e3000f; }

/* --- BARBER POLE INFO ICON (Fixiert im Header) --- */
#styleria-info-bell {
    position: absolute;   /* WICHTIG: absolute statt fixed, damit sie wegscrollt */
    top: 25px;            /* Weiter nach oben, direkt in den schwarzen Header */
    right: 25px;          /* Abstand vom rechten Rand */
    z-index: 2999;
    width: 25px;
    height: 60px;
    border-radius: 4px;
    display: none;
    cursor: pointer;
    overflow: hidden;
    background-color: #fff;
    border: 2px solid #111;
    background-image: repeating-linear-gradient(
        -45deg,
        #e3000f,
        #e3000f 10px,
        #fff 10px,
        #fff 20px,
        #005bbb 20px,
        #005bbb 30px,
        #fff 30px,
        #fff 40px
    );
    background-size: 100% 200%;
    
    /* Animationen: Drehen, sanftes Schweben und ein klarer Glow */
    animation: barber-spin 1.5s linear infinite, 
               gentle-bob 3s infinite ease-in-out,
               barber-pulse-header 2s infinite;
}

/* Silberne Kappen für die Barber Pole */
#styleria-info-bell::before,
#styleria-info-bell::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    height: 6px;
    background: linear-gradient(90deg, #999, #eee, #999);
    border-radius: 2px;
}
#styleria-info-bell::before { top: -2px; }
#styleria-info-bell::after { bottom: -2px; }

/* Die Endlos-Schleife der Streifen */
@keyframes barber-spin {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* Kräftiger, weisser Glow, der weniger transparent startet und weiter strahlt */
@keyframes barber-pulse-header {
    0% { 
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.95); /* Fast komplett deckend weiss beim Start */
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.5); /* In der Mitte noch gut sichtbar */
    }
    100% { 
        box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); /* Strahlt jetzt 18px weit aus, bevor es unsichtbar wird */
    }
}

/* Das alte FontAwesome Info-Icon in der Säule verstecken */
#styleria-info-bell i {
    display: none;
}

/* --- SCHWARZER HEADER --- */
#g-top, #g-navigation { background-color: #111111 !important; position: relative; z-index: 1000; }

/* Globale optische Mitte-Korrektur für das asymmetrische Logo */
#g-top .g-logo img { 
    transform: translateX(-12px) !important; 
    display: inline-block !important; 
}

/* Premium Hintergrund */
html, body, #g-page-surround, #g-container-main, #g-container-main .g-content, .com-content-article { background: linear-gradient(135deg, #fdfbf7 0%, #EBD8BE 100%) !important; background-attachment: fixed !important; }

.content-card { background: #ffffff; border-radius: 12px; padding: 30px 25px; box-shadow: 0 8px 25px rgba(0,0,0,0.04); width: 100%; }
.social-icon, .social-icon:visited, .social-icon:focus, .social-icon:active { color: #212529 !important; transition: color 0.2s ease; }
.btn-call-action, .btn-call-action:visited, .btn-call-action:focus, .btn-call-action:active { color: #ffffff !important; }
.btn-call-action.disabled { background-color: #6c757d !important; border-color: #6c757d !important; opacity: 0.9; cursor: not-allowed; }

.insta-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.insta-item { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 1 / 1; background: #fdfbf7; }

/* 💡 HIER IST DIE ANPASSUNG: Sowohl img als auch .insta-img kombiniert für perfekten Zoom & Fade! */
.insta-item img, .insta-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: opacity 0.9s ease-in-out, transform 0.4s ease; 
}

.insta-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; color: #fff; font-size: 2rem; pointer-events: none; z-index: 5; }
@media (hover: hover) { .insta-item:hover img { transform: scale(1.05); } .insta-item:hover .insta-overlay { opacity: 1; } }

.btn-facebook { background-color: #1877F2 !important; border-color: #1877F2 !important; color: #fff !important; transition: all 0.3s ease !important; }
.btn-instagram { background-color: #C13584 !important; border-color: #C13584 !important; color: #fff !important; transition: all 0.3s ease !important; }

@media (hover: hover) {
    .btn-facebook:hover { background-color: #145dbf !important; border-color: #145dbf !important; box-shadow: 0 4px 12px rgba(24,119,242,0.4) !important; }
    .btn-instagram:hover { background-color: #8f2662 !important; border-color: #8f2662 !important; box-shadow: 0 4px 12px rgba(193,53,132,0.4) !important; }
    .desktop-interactive-card { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; }
    .desktop-interactive-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
}

.floating-btn.sbb-btn { overflow: hidden; padding: 0; border: none; }
.floating-btn.sbb-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.floating-btn.disabled { background-color: #6c757d !important; opacity: 0.9; cursor: not-allowed; }

/* ========================================================================= */
/* --- MOBILE LAYOUT & SNAPPING ---                                          */
/* ========================================================================= */
@media (max-width: 768px) {
    html { scroll-snap-type: y mandatory !important; scroll-behavior: smooth; }
    body, #g-page-surround, #g-container-main, .g-grid, .g-block, main, .container, .row, .col-12 { overflow: visible !important; }
    
    .snap-target-top { scroll-snap-align: start; scroll-snap-stop: always; }
    .snap-target { scroll-snap-align: start; scroll-margin-top: 20px; scroll-snap-stop: always; } 
    .snap-target-desktop { scroll-snap-align: none !important; } 
    
    .g-offcanvas-toggle { display: none !important; }
    #g-top { padding: 10px 0 !important; }
    /* HINWEIS: Logo-Verschiebung wurde hier entfernt und ist jetzt global weiter oben! */
    
    .mobile-bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; height: 65px; background-color: #0f0f0f; border-top: 1px solid #222; display: flex; justify-content: space-around; align-items: center; z-index: 2000; box-shadow: 0 -5px 20px rgba(0,0,0,0.5); padding-bottom: env(safe-area-inset-bottom); }
    .mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #ffffff !important; text-decoration: none; width: 100%; height: 100%; transition: color 0.2s ease; }
    .mobile-bottom-nav a i { font-size: 22px; margin-bottom: 3px; }
    .mobile-bottom-nav a span { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
    .mobile-bottom-nav a.active { color: #e3000f !important; }
    body { padding-bottom: 80px !important; }
    
    .floating-action-buttons { position: fixed; bottom: 40vh; right: 20px; display: flex; flex-direction: column; gap: 15px; z-index: 1050; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
    .floating-action-buttons.visible { opacity: 1; visibility: visible; }
    .floating-btn { width: 56px; height: 56px; background-color: #e3000f; color: #ffffff !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); text-decoration: none; transition: transform 0.2s ease, background-color 0.3s ease; }
    
    .mobile-intro-wrapper { padding-top: 15px; padding-bottom: 0px; }
    .content-card.index-main-card { padding: 30px 20px 25px 20px; margin-bottom: 0; width: 100%; min-height: 0; }
    
    .styleria-social-feed-container { margin-top: 60px !important; margin-bottom: 25px !important; }
    .footer-cards-grid { display: flex; flex-direction: column; gap: 30px; margin-bottom: 30px; padding-bottom: 10px; }
}

/* ========================================================================= */
/* --- DESKTOP LAYOUT ---                                                    */
/* ========================================================================= */
@media (min-width: 769px) {
    .mobile-bottom-nav, .floating-action-buttons, .mobile-intro-wrapper { display: none !important; }
    body { padding-bottom: 0 !important; overflow-x: hidden !important; }
    
    /* Nur noch weiches Scrollen, KEINE Zwangsmagnete mehr! */
    html { scroll-behavior: smooth; }
    body, #g-page-surround, #g-container-main, .g-grid, .g-block, main, .container, .row, .col-12 { overflow: visible !important; }
    
    /* Mobile Magnete am Desktop deaktivieren */
    .snap-target { scroll-snap-align: none !important; } 

    .desktop-unified-hero { display: flex; max-width: 1100px; margin: 20px auto 100px auto; background: #ffffff; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.06); overflow: hidden; height: auto; }
    
    .hero-text-side { flex: 1; padding: 20px 35px 25px 35px; display: flex; flex-direction: column; justify-content: center; }
    .hero-image-side { flex: 1; background-image: url('/images/grids-02.jpg'); background-size: cover; background-position: top center; position: relative; min-height: 350px; }

    /* NORMALER, LUFTIGER ABSTAND */
    .social-wrapper { 
        display: grid; grid-template-columns: 1fr 1fr; gap: 40px; 
        margin-bottom: 80px; 
        max-width: 1100px; margin-left: auto; margin-right: auto; 
    }
    .social-wrapper .styleria-social-feed-container { margin: 0 !important; display: flex; flex-direction: column; justify-content: flex-start; }
    .social-wrapper .btn { margin-top: auto; }
    
    /* NATÜRLICHER FOOTER */
    .footer-cards-grid { 
        display: grid; 
        grid-template-columns: repeat(3, 1fr); 
        gap: 30px; 
        margin-bottom: 50px; 
        padding-bottom: 0; 
        max-width: 1100px; 
        margin-left: auto; 
        margin-right: auto; 
    }
}
#g-copyright { background: #111; color: #888; text-align: center; padding: 15px 0; font-size: 0.9rem; }

/* ========================================================================= */
/* --- HEADER PLATZVERSCHWENDUNG KILLEN ---                                  */
/* ========================================================================= */

/* Drückt das Logo nach oben und unten zusammen */
#g-top { 
    padding-top: 15px !important; 
    padding-bottom: 5px !important; 
}

/* Entfernt die unsichtbaren Gantry-Kissen rund um das Logo */
#g-top .g-block, 
#g-top .g-content { 
    padding: 0 !important; 
    margin: 0 !important; 
}

/* Zieht die Navigation extrem nah ans Logo ran */
#g-navigation { 
    padding-top: 0 !important; 
}

#g-navigation .g-block,
#g-navigation .g-content { 
    margin-top: 0 !important; 
    padding-top: 0 !important; 
}

/* ========================================================================= */
/* --- PREISLISTEN STYLES ---                                                */
/* ========================================================================= */
.preise-wrapper-container { max-width: 1100px; margin: 20px auto 100px auto; }

.price-section h1, .price-section h2 { margin-top: 0; color: #e3000f; border-bottom: 2px solid #f0e6d6; padding-bottom: 10px; margin-bottom: 20px; font-size: 2rem; font-weight: 700; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed #dcc29f; }
.price-row:last-child { border-bottom: none; }
.price-name { font-weight: 600; color: #333; flex: 1; padding-right: 15px; }
.price-desc { display: block; font-size: 0.85rem; color: #6c757d; font-weight: 400; margin-top: 3px; }
.price-values { display: flex; gap: 20px; text-align: right; }
.price-val { display: flex; flex-direction: column; font-size: 1.1rem; color: #111; font-weight: 600; min-width: 60px; }
.price-val small { font-size: 0.75rem; color: #888; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.price-val.single { flex-direction: row; align-items: center; justify-content: flex-end; }
.discount-card { background-color: #fdfbf7; border-left: 4px solid #e3000f; border-radius: 8px; padding: 25px; color: #4a4a4a; margin-bottom: 30px; }

@media (max-width: 768px) {
    .price-row.multi-price { flex-direction: column; align-items: flex-start; background-color: #fdfbf7; padding: 15px; border-radius: 8px; margin-bottom: 10px; border-bottom: none; }
    .price-row.multi-price .price-name { margin-bottom: 12px; font-size: 1.1rem; }
    .price-row.multi-price .price-values { width: 100%; justify-content: space-between; background: #fff; padding: 10px; border-radius: 6px; border: 1px solid #eee; }
}

/* ========================================================================= */
/* --- ANGEBOT STYLES ---                                                    */
/* ========================================================================= */
.angebot-wrapper-container { max-width: 1100px; margin: 20px auto 100px auto; } 

.specialty-list { list-style: none; padding: 0; margin: 25px 0; }
.specialty-list li { position: relative; padding-left: 35px; margin-bottom: 15px; font-size: 1.05rem; color: #222; font-weight: 500; }
.specialty-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 2px; color: #e3000f; font-size: 1.2rem; }

.highlight-box { background-color: #fdfbf7; border-left: 4px solid #e3000f; padding: 20px; border-radius: 6px; margin-top: 30px; }
.highlight-box a { color: #e3000f; font-weight: 700; text-decoration: none; transition: color 0.2s; }
.highlight-box a:hover { text-decoration: underline; color: #b3000b; }

@media (max-width: 768px) {
    .specialty-list li { font-size: 1rem; }
}

/* ========================================================================= */
/* --- PRODUKTE STYLES ---                                                   */
/* ========================================================================= */
.page-wrapper-container { max-width: 1100px; margin: 20px auto 100px auto; }
.produkte-section h1 { margin-top: 0; color: #e3000f; border-bottom: 2px solid #f0e6d6; padding-bottom: 10px; margin-bottom: 20px; font-size: 2rem; font-weight: 700; }

/* ========================================================================= */
/* --- KONTAKT STYLES ---                                                    */
/* ========================================================================= */
.kontakt-section h1 { margin-top: 0; color: #e3000f; border-bottom: 2px solid #f0e6d6; padding-bottom: 10px; margin-bottom: 20px; font-size: 2rem; font-weight: 700; }
.info-highlight { background-color: #fdfbf7; border-left: 4px solid #e3000f; padding: 20px; border-radius: 6px; }
.form-control { border-radius: 6px; border: 1px solid #dcc29f; padding: 12px 15px; box-shadow: none; transition: border-color 0.3s ease; }
.form-control:focus { border-color: #e3000f; box-shadow: 0 0 0 3px rgba(227, 0, 15, 0.1); }
.btn-primary { border-radius: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; transition: transform 0.2s ease; }
.btn-primary:active { transform: scale(0.98); }

/* ========================================================================= */
/* --- TEAM STYLES ---                                                       */
/* ========================================================================= */
.team-wrapper-container { max-width: 1100px; margin: 20px auto 100px auto; } 
.content-card.team-wrapper-card { padding-top: 20px; } 

.team-slider-container { max-width: 900px; margin: 0 auto; padding: 10px 0 0 0; position: relative; }
.owl-stage-outer { padding: 40px 0 !important; margin: -40px 0 !important; }
.team-member-img { width: 140px; height: 140px; margin: 0 auto; border-radius: 50%; overflow: hidden; border: 4px solid #fff; transition: all 0.4s ease; background-color: #dcc4a6; }
.team-member-img img { width: 100%; height: 100%; object-fit: cover; }
.owl-item.active.center .team-member-img { transform: scale(1.25) !important; border-color: #e3000f !important; box-shadow: 0 10px 25px rgba(227, 0, 15, 0.3) !important; z-index: 99; }

.team-slider-container .owl-nav { position: relative !important; margin-top: 15px !important; margin-bottom: 10px !important; width: 100% !important; display: flex !important; justify-content: center !important; z-index: 100 !important; }
.team-slider-container .owl-theme .owl-nav .owl-prev, .team-slider-container .owl-theme .owl-nav .owl-next { background: #ffffff !important; color: #e3000f !important; border: 2px solid #e3000f !important; border-radius: 50% !important; width: 45px !important; height: 45px !important; margin: 0 15px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; font-size: 1.2rem !important; transition: all 0.3s ease !important; box-shadow: 0 3px 8px rgba(0,0,0,0.1) !important; opacity: 1 !important; visibility: visible !important; padding: 0 !important; position: static !important; left: auto !important; right: auto !important; text-indent: 0 !important; transform: none !important; }
.team-slider-container .owl-theme .owl-nav [class*='owl-']:hover { background: #e3000f !important; color: #ffffff !important; }
.team-slider-container .owl-theme .owl-nav [class*='owl-'] i { color: inherit !important; }

#team-info-box { background-color: #fdfbf7; border-radius: 12px; border: 2px dashed #dcc29f; margin-top: 0 !important; padding: 20px 25px; transition: opacity 0.3s ease; }
#active-quote { min-height: 55px; display: flex; align-items: center; justify-content: center; }

@media (max-width: 768px) {
    .team-member-img { width: 130px !important; height: 130px !important; } 
    .owl-item.active.center .team-member-img { transform: scale(1.15) !important; }
    .team-slider-container .owl-nav { margin-top: 25px !important; margin-bottom: 15px !important; }
    #active-quote { min-height: 80px; }
    .content-card.team-wrapper-card { padding: 30px 20px 25px 20px; margin-bottom: 30px; }
}

/* ========================================================================= */
/* --- 404 ERROR PAGE SPEZIFISCH ---                                         */
/* ========================================================================= */
.error-wrapper { min-height: 65vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.error-content-nudge { margin-top: -5vh; }
.error-code { font-size: 6rem; font-weight: 900; color: #e3000f; margin-bottom: 0; margin-top: 0; line-height: 1; }

@media (max-width: 768px) {
    .error-code { font-size: 5rem; }
}

/* ========================================================================= */
/* --- INSTAGRAM SYNC MODUL ---                                              */
/* ========================================================================= */
.insta-fade-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}
.insta-img {
    position: absolute;
    top: 0; left: 0;
}
.insta-img-a { opacity: 1; z-index: 1; }
.insta-img-b { opacity: 0; z-index: 2; }

/* Fallback Skeleton wenn noch kein Bild geladen */
.insta-slot.loading {
    background: linear-gradient(90deg, #f0e8de 25%, #e8ddd3 50%, #f0e8de 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}