/* ==========================================================================
   HOMEPAGE HEADER OVERRIDES & SCROLL RESTORATION
   Allows using landing.css and projekte.css directly for 100% identical
   spacings and alignments without affecting homepage scrolling or layout.
   ========================================================================== */

/* Restore default scrollable behavior for html and body, and set dark background matching Bildpfade */
html, body {
    width: 100% !important;
    height: 100% !important;
    overflow: auto !important;
    overflow-x: hidden !important;
    background: var(--dark-bg, #2E2E2E) !important;
}

/* Symmetrically align the glass header panel with Pixelatelier's 94% layout width */
.projects-header-panel {
    width: 94% !important;
    max-width: none !important;
    margin: 0 auto 2vh auto !important; /* Sits flush at the top, elegant vertical margin at the bottom */
    border-radius: 0 0 2vw 2vw !important; /* Rounded bottom corners only, matching reference page */
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-top: none !important; /* No top border, matching reference page */
    padding: 2.5vh 0 !important; /* Restored to exact padding ratio of the subpages */
    box-sizing: border-box !important;
}

/* Styling for the second Pixelatelier logo inside the projects glass panel */
.projects-header-panel .logo {
    display: flex !important;
    align-items: center !important;
    background-color: transparent !important;
}

.projects-header-panel .logo img {
    height: clamp(65px, 7.5vw, 90px) !important; /* Scaled up to match Bildpfade icon size exactly */
    background-color: transparent !important;
    display: block !important;
}

.projects-header-panel .logo>img:hover {
    animation: shutterClick 0.6s ease-in-out forwards !important;
}

.projects-header-panel .logo-text-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    margin-left: 24px !important; /* Increased to match the 24px gap of Bildpfade page exactly */
}

.projects-header-panel .logo-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 188px !important; /* Scaled gap (+30%) to prevent overlaps with larger lettering */
}

.projects-header-panel .logo-images {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    height: 2.3rem !important; /* Evenly scaled up by 30% */
    position: relative !important;
    margin-left: -1px !important;
    margin-bottom: -1px !important;
}

.projects-header-panel .logo-images img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 0.33 !important;
    animation: fadeInCycle 9s infinite !important;
    height: 100% !important;
    width: auto !important;
}

.projects-header-panel .logo-images img:nth-child(1) {
    animation-delay: 0s !important;
}

.projects-header-panel .logo-images img:nth-child(2) {
    animation-delay: 3s !important;
}

.projects-header-panel .logo-images img:nth-child(3) {
    animation-delay: 6s !important;
}

.projects-header-panel .logo-text {
    font-size: 1.95rem !important; /* Evenly scaled up by 30% */
    font-weight: bold !important;
    color: var(--grün) !important;
    line-height: 1 !important;
    text-align: left !important;
}

.projects-header-panel .logo-slogan {
    font-size: 1rem !important; /* Restored to exact original size */
    color: var(--weiß) !important;
    margin-top: 4px !important; /* Restored to exact original top margin */
    margin-right: 40px !important;
    text-align: left !important;
}

/* Mobile scale override */
@media screen and (max-width: 768px) {
    .projects-header-panel {
        width: calc(100% + 8vw) !important;
        margin: -1.5vh -4vw 15px -4vw !important;
        background: rgba(18, 22, 36, 0.65) !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 24px 16px 16px 16px !important;
        z-index: 10 !important;
        box-sizing: border-box !important;
    }

    .projects-header-panel .logo {
        transform: scale(0.85) !important;
        transform-origin: center top !important;
        margin-bottom: 0 !important;
    }

    .icons-container {
        top: 175px !important;
        transform: scale(0.85) !important;
        transform-origin: right top !important;
    }
}

/* Symmetrical alignment & elegant spacing for the premium landing footer on the homepage */
.landing-footer {
    width: 100% !important;
    max-width: none !important;
    margin: 4vh auto 0 auto !important; /* Premium spacing at the bottom of the page matching Bildpfade */
    padding: 0 4vw 1.5vh 4vw !important; /* Indented to 4vw to achieve the identical 1vw relative offset to the header panel as in Bildpfade, with optimized vertical spacing */
    border: none !important;
    border-top: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important; /* CRITICAL: Brings the footer in front of the canvases so hovers and clicks are registered! */
}

@media screen and (max-width: 768px) {
    .landing-footer {
        width: 100% !important;
        margin: 4vh auto 0 auto !important;
        padding: 0 5vw 130px 5vw !important; /* Matches mobile padding and includes safety space for mobile controls */
    }
}

/* Ensure footer links hover exactly like in Bildpfade with no default link underlines */
.footer-link {
    text-decoration: none !important;
}

.footer-link:hover {
    color: var(--orange) !important;
    transform: translateX(5px) !important;
}

/* Keep PayPal logo in its original colors, preventing the white/orange filter */
#link-paypal .footer-icon {
    filter: none !important;
}

#link-paypal:hover .footer-icon {
    filter: none !important;
    transform: scale(1.15) !important; /* Keep the hover scale transition! */
}

/* Remove default link underlines from language buttons and ensure perfect hover scaling */
.lang-btn {
    text-decoration: none !important;
}

.lang-btn:hover:not(.active) {
    color: var(--orange) !important;
    transform: scale(1.05) !important;
    text-decoration: none !important;
}

/* Prevent background visual layers from blocking pointer events/scrolling on the margins */
.parallax-background {
    display: none !important;
}

.anicontainer,
.anicontainer canvas,
#interactive-pattern {
    pointer-events: none !important;
}

/* Ensure dummy containers retain their semi-transparent lighter gray background */
#dummycontainer,
.dummycontainer-new {
    background-color: color-mix(in srgb, var(--grau) 85%, transparent) !important;
    position: relative !important;
    z-index: 2 !important;
}



/* Style for the relocated parallax background inside the old dummycontainer */
#dummycontainer .parallax-background {
    display: block !important; /* override global display: none */
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important; /* sit at the back, on top of parent background but behind contents */
    pointer-events: none !important;
    border-radius: inherit !important;
    opacity: 0.1 !important;
}
