/* Local Google Font - Inter (Variable Weight 100-900) - DSGVO Compliant */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-variable.woff2') format('woff2');
}

:root {
    --text-color: #ffffff;
    --text-color-muted: rgba(255, 255, 255, 0.85); /* Aufgehellt von 0.6 auf 0.85 */
    --bg-dark: #111111;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent body scrolling */
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-dark);
}

/* ------------------------
   Snap Scroll Container
------------------------- */
.snap-container {
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    position: relative;
    /* Hide scrollbar for cleaner look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.snap-container::-webkit-scrollbar {
    display: none;
}

.scroll-section {
    position: relative;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.scroll-section.two-steps {
    /* Height is 200vh determined by its two 100vh children */
}

.scroll-section.one-step {
    height: 100vh;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.snap-point {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    pointer-events: none;
}

.bg-dimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15); /* Leichter, milchiger Schleier */
    backdrop-filter: blur(12px); /* Nebel-Effekt (weichgezeichnet) */
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    will-change: opacity;
}

.sticky-container > .content,
.sticky-container > .gallery-slide {
    z-index: 1;
}

.fade-element {
    will-change: transform, opacity;
}

/* Overlay for readability */
.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

/* ------------------------
   Header & Top Navigation
------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none; /* Let clicks pass through except on links */
}

.top-nav {
    pointer-events: auto;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.8;
}

.top-nav a {
    color: var(--text-color-muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 0.2rem 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8); /* Fügt einen schwarzen Schatten für bessere Lesbarkeit hinzu */
}

.top-nav .separator {
    color: var(--text-color-muted);
    margin: 0 0.5rem;
}

.top-nav a:hover {
    color: var(--text-color);
    font-weight: 500;
}

.top-nav a.active {
    color: #FF00FF;
    font-weight: 700;
}

/* Socials */
.socials {
    pointer-events: auto;
    display: flex;
    gap: 1.5rem;
}

.socials a {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}
.socials a:hover {
    transform: scale(1.1);
}
.socials svg {
    width: 24px;
    height: 24px;
}

/* ------------------------
   Right Side Navigation
------------------------- */
.side-nav {
    position: fixed;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-color-muted);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
}

.dot:hover {
    background-color: var(--text-color);
    transform: scale(1.2);
}

.dot.active {
    background-color: #FF00FF;
    transform: scale(1.5);
}

/* Tooltip for dots */
.dot::after {
    content: attr(data-title);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
    pointer-events: none;
}
.dot:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ------------------------
   Typography & Elements
------------------------- */
h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Vergrößert von 2-3.5rem */
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

p {
    font-size: 1.25rem; /* Vergrößert von 1.1rem */
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* specific section styles */
.text-left {
    text-align: left;
    margin-left: 10%;
    margin-right: auto;
}

.text-right {
    text-align: right;
    margin-right: 10%;
    margin-left: auto;
}

/* Form Styles */
input, textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-family: inherit;
}
input::placeholder, textarea::placeholder {
    color: #ffffff;
    opacity: 0.9;
}
button {
    padding: 1rem 2rem;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
button:hover {
    background: #ccc;
}

/* Footer / Impressum adjustments */
.footer-links {
    margin-top: 2rem;
}
.footer-links a {
    color: #fff;
    margin: 0 1rem;
}

/* ------------------------
   Gallery Slide (3-Step Scrolling)
------------------------- */
.gallery-slide {
    position: absolute;
    top: 0; /* Container spans full height */
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; /* Vertically centers the tiles */
    gap: 3vw;
    transform: translateY(100%);
    will-change: transform;
    pointer-events: none; /* Let clicks pass through the empty container space */
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-section.is-active.step-0 .gallery-slide {
    transform: translateY(65%); /* Peek state */
}

.scroll-section.just-activated .gallery-slide {
    transition-delay: 1.2s; /* Delay entrance to let background zoom start first */
}

.gallery-slide img, .gallery-text {
    height: 55vh; /* Etwas kleiner in der Höhe */
    width: 35vw; /* Etwas kleiner in der Breite */
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); /* Schatten für schwebenden Effekt */
    border-radius: 12px; /* Alle Ecken abrunden, da freischwebend */
    pointer-events: auto; /* Interaktionen auf den Kacheln selbst wieder erlauben */
}

.gallery-slide img {
    object-fit: cover;
}

/* Spezial-Filter für die Colorierung von Schwarz-Weiß Bildern (Magenta-Tint) */
.gallery-slide img.colorized-tint {
    filter: sepia(100%) hue-rotate(270deg) saturate(250%) brightness(0.85);
}

.gallery-text {
    background: rgba(20, 20, 20, 0.25); /* Very light dark overlay */
    backdrop-filter: blur(15px); /* Stronger blur for readability */
    color: white;
    padding: clamp(1.5rem, 3vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

/* Custom Webkit Scrollbar */
.gallery-text::-webkit-scrollbar {
    width: 6px;
}
.gallery-text::-webkit-scrollbar-track {
    background: transparent;
}
.gallery-text::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.gallery-text h3 {
    color: #FF00FF;
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    flex-shrink: 0;
}

.gallery-text p {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.6;
    margin-top: auto;
    margin-bottom: auto;
}

/* Responsive */
@media (max-width: 900px) {
    .snap-container {
        scroll-padding-top: 65px; /* Snap section right below the header */
    }

    header {
        height: 65px;
        padding: 0.5rem 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        background: rgba(0,0,0,0.8);
    }
    
    .sticky-container {
        top: 65px;
        height: calc(100dvh - 65px);
    }
    .top-nav {
        flex: 1;
        width: auto;
        margin-bottom: 0;
        margin-right: 1rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
        padding: 0;
        position: relative;
        
        /* Hide scrollbars */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .top-nav::-webkit-scrollbar {
        display: none;
    }
    .socials {
        padding: 0;
        gap: 1rem;
    }
    .side-nav {
        display: none; /* Hide dots on mobile */
    }

    /* Mobile Gallery Slide adjustments */
    .gallery-slide {
        flex-direction: column; /* Stack tiles */
        gap: 2dvh;
        height: calc(100dvh - 65px);
        justify-content: flex-start;
        padding-top: 8dvh;
    }

    .gallery-slide img, .gallery-text {
        width: 85vw; /* Much wider on mobile */
        height: 30dvh; /* Shorter to fit both vertically and leave gap at bottom */
    }
    
    .scroll-section.is-active.step-0 .gallery-slide {
        transform: translateY(77dvh); /* Peek moderately on mobile */
    }

    /* Adjust main section text for Marie-Luise to Sängerin (two-steps) */
    .two-steps .content {
        margin-top: 23vh !important; /* Push slightly further down */
    }
    .two-steps .content.text-right {
        padding-right: 0.2rem !important; /* Closer to the right edge */
        padding-left: 1rem !important;
    }
    .two-steps .content.text-left {
        padding-left: 0.2rem !important; /* Closer to the left edge */
        padding-right: 1rem !important;
    }
    .two-steps .content p {
        line-height: 1.3 !important; /* Reduce line-height */
    }

    /* Allow scrolling in 1-step sections ONLY on the text content, leaving background fixed */
    .one-step .sticky-container {
        overflow: hidden !important; 
    }
    /* Remove buggy nested scrolling. Instead, tighten up the layout to fit the screen. */
    .one-step .content {
        padding-top: 2vh;
        width: 95% !important;
        margin: 0 auto;
    }
    
    /* Compress text sizes and margins in Kundenstimmen and Kontakt to fit the mobile screen */
    .one-step .content h2 {
        margin-bottom: 1.5rem !important;
        font-size: 1.8rem;
    }
    .one-step .content p {
        margin-bottom: 1rem !important;
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
    .one-step .content br {
        display: none; /* remove extra line breaks in testimonials to save space */
    }
    .one-step .content em {
        display: block;
        margin-top: 0.3rem;
        font-size: 0.85rem;
    }

    /* Shrink the contact form slightly */
    #kontakt .content {
        gap: 0.8rem !important;
    }
    #kontakt .content > div {
        padding: 1rem !important;
    }
    #kontakt .content h2 {
        font-size: 1.6rem !important;
        margin-bottom: 0.8rem !important;
    }
    #kontakt .content p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }
    #contact-form input, #contact-form textarea {
        padding: 0.5rem !important;
        margin-bottom: 0.6rem !important;
        font-size: 0.9rem !important;
    }
    #contact-form textarea {
        height: 70px !important;
    }
    #contact-form button {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    /* Focus on speaker and guest in the moderation background image */
    #moderatorin .bg-zoom-layer {
        background-position: 78% center !important;
    }
}

/* ------------------------
   Custom Audio Player
------------------------- */
.custom-player {
    display: flex;
    align-items: center;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 20px 10px 10px;
    margin-bottom: 1.5rem;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.play-pause-btn {
    background: #FF00FF; /* Magenta */
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 0, 255, 0.4);
}

.play-pause-btn:hover {
    transform: scale(1.05);
    background: #d900d9;
}

.css-icon-play {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 14px;
    border-color: transparent transparent transparent white;
    margin-left: 4px; /* Optically center the triangle */
}

.css-icon-pause {
    display: inline-block;
    width: 12px;
    height: 16px;
    border-left: 4px solid white;
    border-right: 4px solid white;
    box-sizing: border-box;
}

.track-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.track-title {
    font-weight: 500;
    font-size: 1.1rem;
    color: white;
}

.progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.seek-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF00FF;
    cursor: pointer;
    transition: transform 0.1s;
}

.seek-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-variant-numeric: tabular-nums;
}


/* Background Zoom Effect (Ken Burns) */
.bg-zoom-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: scale(1.0);
    transition: transform 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.scroll-section.is-active .bg-zoom-layer {
    transform: scale(1.04);
}

/* CSS-Driven Scroll Animation Logic */
.scroll-section .fade-element {
    transition: opacity 0.4s ease-out;
    opacity: 1;
}
.scroll-section.step-1 .fade-element,
.scroll-section.step-2 .fade-element {
    opacity: 0;
    pointer-events: none;
}

.scroll-section.step-1 .gallery-slide,
.scroll-section.step-2 .gallery-slide {
    transform: translateY(0%);
    transition-delay: 0s !important;
}

.scroll-section .bg-dimmer {
    transition: opacity 1.5s ease-in-out;
    opacity: 0;
}
.scroll-section.step-1 .bg-dimmer,
.scroll-section.step-2 .bg-dimmer {
    opacity: 0.8;
}