/* ================
   Parallax Section
   ================ */
.parallax-section {
    position: relative;
    overflow: visible; /* Adjusted to ensure sticky behavior */
    padding: 30px 0; /* REDUZIERT: 40px → 30px für kompakteres Layout */
    margin: 10px auto; /* REDUZIERT: 20px → 10px für weniger Abstände */
    width: 100%;
    max-width: 700px; /* Schmaler für Bänder */
    background-color: transparent; /* ENTFERNT: Kein schwarzer Hintergrund für schwebende Optik */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); - ENTFERNT für cleanen Look */
    border-radius: 8px;
}

/* Letzte Parallax-Sektion - Extra Abstand zum Footer */
.parallax-section:last-of-type {
    margin-bottom: 40px; /* Extra Abstand zum Footer */
}

.parallax-section .parallax-bg {
    position: absolute;
    top: -20%; /* Erweitert für besseren Parallax-Effekt */
    left: 0;
    width: 100%;
    height: 140%; /* Größer für Parallax-Movement */
    z-index: -1;
    /* Cleaner Background ohne Gradient */
    background: rgba(0, 0, 0, 0.4); /* Einfacher transparenter Hintergrund */
    background-attachment: scroll; /* Einfacher für erste Tests */
    transform: translateZ(0);
    will-change: transform;
}

.parallax-section .parallax-content {
    position: relative;
    z-index: 1;
    color: #eaeaea;
    font-family: 'Cinzel Decorative', serif;
    text-align: center; /* Explizit zentriert */
    width: 100%; /* Volle Breite */
    display: flex; /* Flexbox für bessere Zentrierung */
    flex-direction: column; /* Vertikale Anordnung */
    align-items: center; /* Horizontal zentriert */
    justify-content: center; /* Vertikal zentriert */
    will-change: transform; /* Optimierung für smooth Animation */
    transform: translateZ(0); /* GPU-Beschleunigung */
    
    /* Schwebender Kasten-Look für bessere Lesbarkeit */
    background: rgba(0, 0, 0, 0.8); /* Semi-transparenter dunkler Hintergrund */
    border-radius: 12px;
    padding: 2rem 1.5rem;
    margin: 0; /* KORRIGIERT: Komplett entfernt für keine seitliche Verschiebung */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 215, 0, 0.1); /* Subtiler goldener Border */
    backdrop-filter: blur(8px); /* Glasmorphism-Effekt */
    -webkit-backdrop-filter: blur(8px);
}

/* Einheitliche Absatz-Styles für Parallax-Content */
.parallax-section .parallax-content p {
    font-family: 'Libre Baskerville', 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    color: #d4d4d4;
    text-align: justify;
    margin: 1rem 0;
    line-height: 1.6;
    padding: 0; /* Kein seitliches Padding für einheitliche Textbreite */
}

.parallax-section .parallax-content h1,
.parallax-section .parallax-content h2,
.parallax-section .parallax-content h3 {
    font-family: 'Cinzel Decorative', serif;
    color: #ffd700;
    text-align: center;
    margin: 1.5rem 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ========================
   Shrink Effects (Sticky behavior is handled in header.css)
   ======================== */
.site-header.shrink .logo {
    opacity: 0;
    visibility: hidden;
}

.site-header.shrink .main-navigation {
    padding-top: 0.3rem;
}

/* Sanfte Übergänge beim Scrollen */
.logo-wrapper,
.logo,
.main-navigation {
    transition: all 0.4s ease;
}

/* ========================
   Responsive Anpassungen
   ======================== */
@media (max-width: 768px) {
    .site-header.shrink .logo {
        opacity: 0;
        visibility: hidden;
    }

    .parallax-section {
        padding: 10px 0; /* Mobile: Noch weiter reduziert für Kompaktheit */
        margin: 5px auto; /* REDUZIERT: Noch weniger Abstand auf Mobile */
        max-width: 100%;
        width: 100%;
    }
    
    /* Mobile: Letzte Sektion extra Abstand zum Footer */
    .parallax-section:last-of-type {
        margin-bottom: 30px; /* Mobile: Extra Abstand zum Footer */
    }

    .parallax-content {
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* Featured Content Mobile Optimierung */
    .featured-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    
    .featured-content .featured-banner {
        width: 100%;
        max-width: 100%;
    }
    
    .featured-content .featured-image {
        width: 100%;
        max-width: 90%;
        height: auto;
    }
    
    .featured-content .event-text {
        width: 100%;
        max-width: 100%;
        padding: 0; /* KORRIGIERT: Kein horizontales Padding für perfekte Zentrierung */
        box-sizing: border-box;
    }
    
    /* Mobile Parallax-Optimierung - reduzierte Effekte für bessere Performance */
    .parallax-section .parallax-bg {
        background-attachment: scroll; /* Deaktiviert fixed attachment auf Mobile */
        transform: none; /* Deaktiviert Transform auf Mobile */
        will-change: auto; /* Reduziert GPU-Nutzung */
    }
    
    .parallax-section .parallax-content {
        will-change: auto; /* Reduziert GPU-Nutzung auf Mobile */
        transform: none; /* Deaktiviert Transform auf Mobile */
    }
    
    /* Mobile Absatz-Optimierungen für Parallax - einheitliche Breiten */
    .parallax-section .parallax-content p {
        font-size: 1.1rem;
        line-height: 1.5;
        margin: 0.75rem 0;
        padding: 0; /* Kein zusätzliches Padding für einheitliche Textbreite */
        text-align: justify;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .parallax-section .parallax-content h1,
    .parallax-section .parallax-content h2,
    .parallax-section .parallax-content h3 {
        font-size: 1.4rem;
        margin: 1rem 0 0.75rem 0;
        line-height: 1.3;
        width: 100%;
        max-width: 100%;
    }
    
    /* Featured Content spezifische Mobile Styles */
    .featured-content .event-text h2 {
        width: 100%;
        max-width: 100%;
        font-size: 1.4rem;
    }
    
    .featured-content .event-text p {
        width: 100%;
        max-width: 100%;
        font-size: 1rem;
        padding: 0; /* KORRIGIERT: Kein horizontales Padding für perfekte Zentrierung */
        margin: 0.5rem 0;
    }
}


