/* ==========================================================================
   1. Allgemeine Grundstile & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    max-height: 100vh;
    overflow: hidden; /* Verhindert das Scrollen des äußeren Browser-Fensters */
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222222;
    padding: 40px 0px;
    margin: 0;
    min-height: 100vh;
    position: relative;
    background-color: #f4f4f4;
}

/* Transparenter Background-Layer mit Unschärfe/Deckkraft */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/ChinquapinSiteBackground.webp'); 
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 20%; 
    opacity: 0.5; 
    z-index: -1; 
}

/* ==========================================================================
   2. Layout-Wrapper & Banner
   ========================================================================== */
.wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: 100dvh;
    padding-top: 100dvh; /* Hero-Startposition mobil-freundlich */
    padding-bottom: 30px;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    transition: padding-top 0.4s ease-in-out;
}

body.scrolled .wrapper {
    padding-top: 20px;
}

/* Fixiertes Header-Banner für das Band-Logo */
.banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    z-index: 100;
    padding-top: 3px;
    padding-bottom: 20px;
    background: transparent;
    pointer-events: none;
    transition: top 0.4s cubic-bezier(0.5, 0.5, 0.8, 1);
}

body.scrolled .banner {
    top: 0;
}

.banner-logo {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    display: block;
    margin: 0 auto;
    transition: max-height 0.4s cubic-bezier(0.5, 0.5, 0.8, 1);
    pointer-events: auto;
}

body.scrolled .banner-logo {
    max-height: 70px;
}

/* ==========================================================================
   3. Navigation & Social Media Icons
   ========================================================================== */
.banner-nav {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    right: auto !important;
    transform: none !important;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 200;
    pointer-events: auto;
}

#media, 
#events, 
#about, 
#shop, 
#contact {
    scroll-margin-top: 50px;
}

.banner-nav a {
    font-family: 'Playbill', 'Smokum', Georgia, serif;
    color: #222222;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.banner-nav a:hover {
    color: #d78825;
    transform: translateY(-2px);
}

.social-icons {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 200;
}

.social-icon {
    width: 20px;
    height: 20px;
    color: #222222;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.social-icons a:hover .social-icon {
    opacity: 1;
    color: #1e7d82;
    transform: translateY(-2px);
}

/* ==========================================================================
   4. Hauptinhalts-Container (.content-box)
   ========================================================================== */
.content-box {
    scroll-behavior: smooth;
    background-color: rgba(255, 255, 255, 0.4); 
    padding: 30px;
    border-radius: 8px;
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow-y: auto;
    
    /* Custom Scrollbar ausblenden */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

body.scrolled .content-box {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0px, black 0px, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0px, black 0px, black 100%);
}

.content-box::-webkit-scrollbar {
    display: none;
}

.content-box p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.5;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.content-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   5. Media-Sektion (YouTube Videos im Theater-Modus)
   ========================================================================== */
.video-container {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 0;
    background-color: #000;
    display: flex;
    flex-direction: column; 
    align-items: center;    
    justify-content: center;
    overflow: hidden;       
}

.video-container iframe {
    width: 100%;
    max-width: 1200px;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
    pointer-events: auto;
}

.video-subtext-link {
    font-family: 'Playbill', 'Smokum', Georgia, serif;
    width: 100%;
    max-width: 1200px;         
    padding: 15px 20px;        
    text-align: center;        
    color: #ffffff;            
    text-decoration: underline;
    font-size: 3rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.video-subtext-link:hover {
    color: #d78825;
}

/* ==========================================================================
   6. Events & Tourdaten Sektion
   ========================================================================== */
.image-overlay-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 800px;
    background-color: #000;
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    overflow: hidden;
}

.image-overlay-wrapper img {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%);
    mask-image: linear-gradient(to right, transparent 0%, black 35%);
}

.events-container {
    position: relative;
    z-index: 2;
    width: 55%;
    padding: 40px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.events-container h2 {
    font-family: 'Forte', 'Luckiest Guy', cursive, sans-serif;
    text-decoration: underline;
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

.tour-dates {
    font-family: 'Caveat', cursive, sans-serif;
    width: 100%;
    border-collapse: collapse;
    font-size: 2rem;
}

.tour-dates tr,
.tour-dates td {
    border: none;
    padding: 8px 0;
}

.tour-dates .date {
    font-weight: bold;
    color: #d78825;
    padding-right: 25px;
    white-space: nowrap;
}

.tour-dates .location {
    color: #ffffff;
}

/* ==========================================================================
   7. Slider-Galerie Sektion
   ========================================================================== */
.gallery-slider {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 0;
    background-color: #000;
    overflow: hidden;
    user-select: none;
    transition: background-color 0.3s ease;
    will-change: transform;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease-out;
    width: 100%;
}

.slide {
    min-width: 100%;
    height: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: height 0.3s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    display: block;
    transition: max-height 0.3s ease-in-out;
    will-change: transform;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 1.8rem;
    padding: 12px 18px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.slider-btn:hover {
    background: rgba(215, 136, 37, 0.8);
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.dot.active {
    background: #d78825;
    transform: scale(1.2);
}

.fullscreen-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #ffffff;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.08);
}

.fullscreen-btn svg {
    display: block;
}

.fullscreen-btn .icon-exit {
    display: none;
}

/* Styles für nativen Browser-Vollbildmodus */
.gallery-slider:fullscreen {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.gallery-slider:fullscreen .slide {
    height: 100vh;
}

.gallery-slider:fullscreen .slide img {
    max-height: 100vh;
    object-fit: contain;
}

.gallery-slider:fullscreen .fullscreen-btn .icon-enter {
    display: none;
}

.gallery-slider:fullscreen .fullscreen-btn .icon-exit {
    display: block;
}

/* ==========================================================================
   8. Shop-Sektion (Fenster-/Parallax-Effekt)
   ========================================================================== */
.image-text-section {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 70vh;
    min-height: 500px;
    background-color: #000;
    margin-top: 0;
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

.section-png-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-attachment: fixed;
    opacity: 50%; 
}

.section-content-overlay {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 2;
    width: auto;
    max-width: 600px;
    color: #ffffff;
    text-align: left;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.8);
}

.section-content-overlay h2 {
    font-family: 'Playbill', 'Smokum', Georgia, serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

.section-content-overlay p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 0;
}

/* ==========================================================================
   9. Kontakt-Sektion & Fußzeile
   ========================================================================== */
.contact-section h2 {
    font-family: 'Playbill', 'Smokum', Georgia, serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000000;
}

.contact-section p {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-email {
    font-size: 1.5rem;
}

/* ==========================================================================
   10. Responsive Anpassungen (Tablets & Smartphones)
   ========================================================================== */
@media (max-width: 950px) {
    .banner {
        top: 70%;
    }
     
    .banner .banner-logo {
        max-height: 140px;
    }

    body.scrolled .banner .banner-logo {
        max-height: 70px;
    }

    .banner-nav {
        top: 12px !important;
        left: 12px !important;
        gap: 12px;
    }

    .banner-nav a {
        font-size: 1.3rem;
    }

    body.scrolled .wrapper {
        padding-top: 90px;
    }

    .wrapper .content-box {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0px, black 10px, black 100%);
        mask-image: linear-gradient(to bottom, transparent 0px, black 10px, black 100%);
    }

    .social-icons {
        top: 12px;
        right: 12px;
        gap: 8px;
    }

    .social-icon {
        width: 15px;
        height: 15px;
    }

    .tour-dates tr,
    .tour-dates td {
        display: block;
        width: 100%;
        padding-right: 0;
    }

    .tour-dates .date {
        padding-bottom: 2px;
    }

    .tour-dates tr {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .slide {
        height: 450px;
    }

    .slider-btn {
        padding: 8px 12px;
        font-size: 1.3rem;
    }

    .image-text-section {
        height: 50vh;
        min-height: 400px;
    }

    .section-content-overlay {
        top: 20px;
        left: 20px;
        right: 20px;
        max-width: 100%;
    }

    .section-content-overlay h2 {
        font-size: 2.5rem;
    }

    .section-content-overlay p {
        font-size: 0.95rem;
    }

    .video-container iframe {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    .video-subtext-link {
        font-size: 2rem;
        padding: 20px 15px;
    }

    .social-icons {
        top: 8px;
        right: 8px;
        gap: 6px;
    }

    .social-icon {
        width: 13px;
        height: 13px;
    }

    .banner .banner-logo {
        max-height: 110px;
        margin-top: 20px;
    }

    body.scrolled .banner .banner-logo {
        max-height: 55px;
    }

    .banner-nav {
        top: 8px !important;
        left: 8px !important;
        gap: 8px;
    }

    body.scrolled .wrapper {
        padding-top: 30px;
    }

    .tour-dates {
        font-size: 1.8rem;
    }
}

@media (max-width: 500px) {
    .banner-nav a {
        font-size: 0.7rem;
    }

    .tour-dates {
        font-size: 1.5rem;
    }

    body::before {
        background-position: 35%;
    }
}

/* ==========================================================================
   11. Subpage-Spezifische Stile (Impressum / Datenschutz)
   ========================================================================== */
body.impressum-page {
    padding-top: 0;
}

body.impressum-page .wrapper {
    padding-top: 100px;
}

.impressum-content {
    max-width: 900px;
    margin: 0 auto;
    color: #222222;
}

.impressum-content h1 {
    font-family: 'Playbill', 'Smokum', Georgia, serif;
    font-size: 2.8rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #222222;
}

.impressum-content h2 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #222222;
}

.impressum-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

.impressum-content .accent-link {
    color: #d78825;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.impressum-content .accent-link:hover {
    color: #1e7d82;
}

@media (max-width: 850px) {
    body.impressum-page .wrapper {
        padding-top: 80px;
    }

    .impressum-content h1 {
        font-size: 2.2rem;
    }
}