/* sticky-header.css */
/* Für Barrel Escape - Header über Hero-Bild, Sticky beim Scrollen */

/* Header absolut positioniert - liegt über dem Hero-Bild */
.main-header.header-royal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

/* Header-Hintergrund transparent und volle Breite */
.main-header.header-royal .header-sticky {
    background-color: transparent !important;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* bg-section-royal Override für Header */
.main-header.header-royal .header-sticky.bg-section-royal {
    background-color: transparent !important;
    max-width: 100%;
}

/* Sticky State - wird per JS hinzugefügt */
.main-header.header-royal.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.main-header.header-royal.is-sticky .header-sticky,
.main-header.header-royal.is-sticky .header-sticky.bg-section-royal {
    background-color: #1a1a1a !important;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Navbar im Sticky-Zustand kompakter */
.main-header.header-royal.is-sticky .header-sticky .navbar {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Logo kleiner im Sticky-Zustand */
.main-header.header-royal.is-sticky .navbar-brand img {
    max-height: 45px;
    transition: max-height 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}