/* ============================================
   Tauffest Büsum - CSS
   Maritimes Farbschema: Blau & Grün
   ============================================ */

:root {
    color-scheme: light only;
}

:root {
    /* Maritimes Farbschema */
    --ocean: #1a5276;
    --ocean-dark: #0e3450;
    --ocean-light: #2980b9;
    --sea-green: #1abc9c;
    --sea-green-dark: #16a085;
    --sand: #f0e6d3;
    --sky: #e8f4f8;
    --white: #ffffff;
    --text: #2c3e50;
    --text-light: #5d6d7e;

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--sky);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--ocean);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--sea-green);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--ocean);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text);
}

/* Abwechselnde Sektionsfarben */
.section-light {
    background: var(--sky);
}

.section-ocean {
    background: var(--ocean);
    color: var(--white);
}

.section-ocean .section-title {
    color: var(--white);
}

.section-ocean a {
    color: var(--sea-green);
}

.section-ocean a:hover {
    color: var(--white);
}

.section-sand {
    background: var(--sand);
}

/* ============================================
   Wave Dividers
   ============================================ */
.wave-top,
.wave-bottom {
    position: absolute;
    left: -1px;
    right: -1px;
    width: calc(100% + 2px);
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
    z-index: 1;
}

.wave-top {
    top: -2px;
}

.wave-bottom {
    bottom: -2px;
}

.wave-top svg,
.wave-bottom svg {
    display: block;
    width: 100%;
    height: 50px;
}

@media (min-width: 768px) {
    .wave-top svg,
    .wave-bottom svg {
        height: 80px;
    }
}

/* Sections that need wave spacing */
.section-ocean,
.highlight-section,
.video-section {
    position: relative;
    padding-top: calc(var(--spacing-xl) + 40px);
    padding-bottom: calc(var(--spacing-xl) + 40px);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(232, 244, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: transform var(--transition);
}

.nav-brand:hover {
    transform: scale(1.02);
}


.nav-logo {
    height: 35px;
    width: auto;
    border-radius: 6px;
}

.nav-logo-kirchenkreis {
    height: 35px;
    border-radius: 4px;
}

.nav-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
    white-space: nowrap;
}

.nav.scrolled .nav-title {
    color: var(--ocean);
}

@media (max-width: 600px) {
    .nav-title {
        display: none;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--spacing-xs) 0;
    position: relative;
}

.nav.scrolled .nav-link {
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sea-green);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--sea-green);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 2000;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}

.nav.scrolled .nav-toggle span {
    background: var(--text);
}

/* Mobile Navigation */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--white) !important;
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background: var(--white) !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--sky);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-sm);
        transition: right var(--transition-slow);
        overflow: hidden;
        z-index: 5;
    }

    /* Welle oben */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: -1px;
        left: 0;
        right: 0;
        width: 100%;
        height: 100px;
        background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L1200,0 L1200,50 C1000,80 800,30 600,60 C400,90 200,40 0,70 Z' fill='%231a5276'/%3E%3C/svg%3E") no-repeat;
        background-size: 100% 100%;
        pointer-events: none;
    }

    /* Welle unten */
    .nav-menu::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        width: 100%;
        height: 100px;
        background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,100 L1200,100 L1200,40 C1000,10 800,60 600,30 C400,0 200,50 0,20 Z' fill='%231a5276'/%3E%3C/svg%3E") no-repeat;
        background-size: 100% 100%;
        pointer-events: none;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--ocean);
        font-size: 1.5rem;
        font-weight: 600;
    }

    .nav-menu .nav-link:hover {
        color: var(--sea-green);
    }

    .nav-toggle.active span {
        background: var(--white);
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(14, 52, 80, 0.25) 0%,
        rgba(14, 52, 80, 0.45) 50%,
        rgba(14, 52, 80, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.hero-text {
    max-width: 800px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-slogan {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
    font-style: italic;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-cta {
    display: inline-block;
    background: var(--sea-green);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all var(--transition);
}

.hero-cta:hover {
    background: var(--sea-green-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.hero-cta-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    color: var(--white);
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: var(--spacing-xl) 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    transition: transform var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--ocean);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--white);
}

.feature h3 {
    font-family: var(--font-display);
    color: var(--ocean);
    margin-bottom: var(--spacing-xs);
}

.feature p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   Highlight Section (Kirche am Meer)
   ============================================ */
.highlight-section {
    padding: var(--spacing-xl) 0;
}

.highlight-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.highlight-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.highlight-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Thema Section
   ============================================ */
.thema {
    padding: var(--spacing-xl) 0;
}

/* ============================================
   Ablauf / Timeline
   ============================================ */
.ablauf {
    padding: var(--spacing-xl) 0;
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--sea-green), var(--ocean));
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-time {
    flex-shrink: 0;
    width: 65px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ocean);
    text-align: right;
    padding-top: var(--spacing-sm);
}

.timeline-content {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 15px;
    flex: 1;
    margin-left: var(--spacing-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 18px;
    width: 14px;
    height: 14px;
    background: var(--sea-green);
    border-radius: 50%;
    border: 3px solid var(--sky);
}

.timeline-content h3 {
    color: var(--ocean);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .timeline::before {
        left: 55px;
    }

    .timeline-item {
        gap: var(--spacing-sm);
    }

    .timeline-time {
        width: 45px;
        font-size: 0.9rem;
        padding-top: var(--spacing-sm);
        text-align: right;
    }

    .timeline-content {
        margin-left: var(--spacing-sm);
    }

    .timeline-content::before {
        left: -27px;
        width: 12px;
        height: 12px;
    }
}

/* ============================================
   Info Grid
   ============================================ */
.infos {
    padding: var(--spacing-xl) 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--spacing-sm);
}

.info-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--sea-green);
}

.info-card h3 {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.info-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   Info Cards on Sand Background
   ============================================ */
.info-grid-sand {
    max-width: 900px;
}

.info-card-sand {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
}

.info-card-sand h3 {
    color: var(--ocean);
}

.info-card-sand p {
    color: var(--text-light);
}

.info-card-sand .info-icon svg {
    stroke: var(--ocean);
}

/* ============================================
   Video Section
   ============================================ */
.video-section {
    padding: var(--spacing-xl) 0;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    width: 100%;
    max-width: 700px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 52, 80, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.video-card:hover .video-play-overlay {
    background: rgba(14, 52, 80, 0.25);
}

.video-play-button {
    width: 80px;
    height: 80px;
    background: var(--sea-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.video-play-button svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

.video-card:hover .video-play-button {
    transform: scale(1.1);
    background: var(--sea-green-dark);
}

.video-info {
    background: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
}

.video-badge {
    display: inline-block;
    background: var(--ocean);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-info h3 {
    color: var(--text);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
}

.video-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .video-play-button {
        width: 60px;
        height: 60px;
    }

    .video-play-button svg {
        width: 22px;
        height: 22px;
    }

    .video-info {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery {
    padding: var(--spacing-xl) 0;
}

.gallery-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
}

.gallery-item.large {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.large {
        grid-column: span 2;
    }
}

/* ============================================
   Anmeldung Section
   ============================================ */
.anmeldung {
    padding: var(--spacing-xl) 0;
}

.anmeldung-content {
    max-width: 800px;
    margin: 0 auto;
}

.anmeldung-intro {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

.form-embed {
    background: var(--white);
    border-radius: 20px;
    padding: var(--spacing-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.form-embed iframe {
    width: 100%;
    height: 1400px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

/* ============================================
   Kontakt Section
   ============================================ */
.kontakt {
    padding: var(--spacing-xl) 0;
}

.kontakt-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.kontakt-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.kontakt-card h3 {
    font-family: var(--font-display);
    color: var(--ocean);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
}

.kontakt-card p {
    margin-bottom: var(--spacing-xs);
}

.kontakt-card a {
    color: var(--text);
    font-size: 1rem;
}

.kontakt-card a:hover {
    color: var(--sea-green);
}

.kontakt-rolle {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================================
   Impressum Section
   ============================================ */
.impressum {
    padding: var(--spacing-xl) 0;
}

.impressum-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.impressum-block h3 {
    font-family: var(--font-display);
    color: var(--ocean);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.impressum-block p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--spacing-lg) 0;
    background: var(--ocean-dark);
    color: rgba(255, 255, 255, 0.9);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-text {
    text-align: left;
}

.footer-text p {
    margin-bottom: var(--spacing-xs);
}

.footer-credits {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-logos {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-shrink: 0;
}

.footer-logo-img {
    height: 45px;
    width: auto;
}

.footer-logo-kirchenkreis {
    background: none;
    padding: 0;
    border-radius: 0;
}

@media (max-width: 600px) {
    .footer-logo-img {
        height: 35px;
    }
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-text {
        text-align: center;
    }
}

/* ============================================
   Scroll Reveal Animation
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(7) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(8) { transition-delay: 0.4s; }
.reveal-stagger.active > *:nth-child(9) { transition-delay: 0.4s; }

.reveal-stagger.active > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Parallax & Animations
   ============================================ */
.hero-slider,
.hero-content {
    will-change: transform;
}

.wave-top svg,
.wave-bottom svg {
    /* Etwas größer rendern um Subpixel-Gaps zu vermeiden */
    margin-top: -1px;
    margin-bottom: -1px;
}

/* Feature Icons schweben sanft */
.float-animation {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Info Icons pulsieren sanft */
.pulse-animation {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Timeline dots pulsieren */
.timeline-content::before {
    animation: dot-pulse 2.5s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 188, 156, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(26, 188, 156, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-scale, .reveal-stagger > * {
        transition: opacity 0.3s ease;
        transform: none;
    }

    .float-animation,
    .pulse-animation,
    .timeline-content::before {
        animation: none;
    }

    .hero-slider,
    .hero-content,
    .wave-top,
    .wave-bottom {
        will-change: auto;
    }
}

/* ============================================
   Prominent Video Player
   ============================================ */
.video-hero {
    max-width: 900px;
    margin: 0 auto;
}

.video-player-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: #000;
}

.video-player-wrapper video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    background: #000;
}

.video-quality-switcher {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--ocean-dark);
}

.quality-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-right: var(--spacing-xs);
}

.quality-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
}

.quality-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.quality-btn.active {
    background: var(--sea-green);
    border-color: var(--sea-green);
    color: var(--white);
}



/* ============================================
   NDR Video Hero Link
   ============================================ */
.video-link-hero {
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-thumbnail-hero {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.video-link-hero:hover .video-thumbnail-hero img {
    transform: scale(1.03);
}

.video-link-hero:hover .video-play-overlay {
    background: rgba(14, 52, 80, 0.2);
}

.video-badge-inline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* ============================================
   Gallery Lightbox
   ============================================ */
.gallery-item {
    cursor: pointer;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    z-index: 2001;
    transition: opacity var(--transition);
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* ============================================
   Kontakt 4 Columns
   ============================================ */
@media (min-width: 900px) {
    .kontakt-cards {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1100px;
    }

    .kontakt-card {
        padding: var(--spacing-md);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 480px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
}
