/* 
 * ==========================================
 * TRACHTENKAPELLE ORCHESTRAL DARK THEME
 * ========================================== 
 */

/* --- 1. VARIABLEN (DARK CLUB/ORCHESTRA) --- */
:root {
    --bg-deep: #0a0a0a;
    /* Etwas weicher als reines Schwarz */
    --bg-dark: #141414;
    --bg-card: #1e1e1e;
    /* Helleres Karten-Design für mehr Offenheit */
    --text-main: #f0f0f2;
    /* Weicheres Weiß */
    --text-light: #a9a9b0;
    /* Helleres Grau für bessere Lesbarkeit */
    --accent: #8b1e1e;
    /* Bordeaux Rot */
    --gold: #c5a059;
    /* Edleres, matteres Champagner-Gold */
    --gold-gradient: linear-gradient(135deg, #dfc07b 0%, #c5a059 40%, #a37f3d 70%, #bca065 100%);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-cursive: 'Great Vibes', 'Playfair Display', serif;
    /* Optional cursive font fallback */
}

/* --- 1.1 LIGHT MODE VARIABLES --- */
html[data-theme="light"] {
    --bg-deep: #f4f6f8;
    /* Sehr helles Grauweiß statt schwarz */
    --bg-dark: #ffffff;
    /* Reines Weiß für Sektionen */
    --bg-card: #ffffff;
    /* Kartenweiß */
    --text-main: #2b2b2b;
    /* Dunkelgrau für Text */
    --text-light: #5a5a5a;
    /* Mittleres Grau für subtilen Text */
    --accent: #9a2020;
    /* Etwas strahlenderes Bordeaux Rot für hellen BG */
    --gold: #b38808;
    /* Dunkleres, besser lesbares Gold */
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #c78b27 40%, #e0aa3e 70%, #b38808 100%);
}

/* Weiche Übergänge für alle Farben beim Theme-Switch */
body,
.site-header,
.content-section,
.event-card,
.register-item,
h1,
h2,
h3,
h4,
p,
a {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* --- TEXT SHIMMER EFFECT --- */
.gold-shimmer {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-deep);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body,
.site-main section,
.content-section,
.page-hero,
.partner-section {
    background-image: url('../images/bg-notes-pattern.svg');
    background-repeat: repeat;
    background-size: 250px;
    background-attachment: fixed;
}

/* Typografie */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    color: var(--text-main);
    margin-top: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
    transition: background-color 0.4s ease;
}

html[data-theme="light"] .section-title::after {
    background: var(--accent);
    /* Red accent in light mode */
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

/* --- 2. HEADER & NAVIGATION --- */
.site-header {
    background-color: rgba(5, 5, 5, 0.9);
    background-image: url('../images/bg-music-lines.svg');
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 180%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

html[data-theme="light"] .site-header {
    background-color: rgba(255, 255, 255, 0.9);
    background-image: url('../images/bg-music-lines.svg');
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Theme Toggle Button Hover & Icon states */
.theme-toggle:hover {
    color: var(--gold) !important;
}

html[data-theme="light"] .icon-sun {
    opacity: 0 !important;
    transform: rotate(90deg) !important;
}

html[data-theme="light"] .icon-moon {
    opacity: 1 !important;
    transform: rotate(0deg) !important;
}

.site-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.site-logo {
    height: 75px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-2px);
    gap: 1rem;
}

.site-years {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    /* Extremely refined/thin */
    color: var(--gold);
    font-size: 1.25rem;
    /* Smaller and more delicate */
    opacity: 0.95;
    white-space: nowrap;
    margin-top: 5px;
    margin-left: 8px;
    /* Slightly more breathing room from the logo */
    letter-spacing: 1px;
    /* Elegant spread */
    /* Aligns better with the logo baseline */
}

.site-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.site-title a {
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    gap: 6px;
    z-index: 1010;
    /* Keep above the menu */
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

html[data-theme="light"] .mobile-menu-toggle span {
    background-color: var(--text-main);
}

.main-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.main-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.main-menu a:hover {
    color: var(--gold);
}

/* --- DROPDOWN SUB-MENU --- */
.main-menu .menu-item-has-children {
    position: relative;
}

.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

html[data-theme="light"] .main-menu .sub-menu {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-menu .menu-item-has-children:hover .sub-menu,
.main-menu .menu-item-has-children:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(15px);
}

.main-menu .sub-menu li {
    padding: 0;
    margin: 0;
    width: 100%;
    display: block;
}

.main-menu .sub-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-main);
    text-transform: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0;
    transition: padding 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.3s ease;
}

.main-menu .sub-menu a:hover {
    color: var(--gold);
    padding-left: 1.8rem;
}

@media (max-width: 768px) {
    .main-menu .sub-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        display: none;
    }

    .main-menu .sub-menu a {
        padding-left: 0;
        text-transform: uppercase;
        font-weight: 500;
        opacity: 0.8;
    }

    .main-menu .menu-item-has-children:hover .sub-menu,
    .main-menu .menu-item-has-children:focus-within .sub-menu {
        display: block;
        transform: none;
    }
}

/* --- ACCESSIBILITY UTILITIES --- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* --- 3. HERO SECTION (Apple-Style Pinning) --- */
.sticky-hero-wrapper {
    height: 120vh;
    /* Reduced for faster scrolling */
    position: relative;
    background-color: var(--bg-deep);
}

.fullscreen-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    overflow: hidden;
    background-color: var(--bg-deep);
    /* Base color behind video */
}

/* 
 * ENHANCED SOFT EDGES for Hero Background 
 * These pseudoelements create a massive smooth gradient fade to the background color 
 * at the top (under the navbar) and bottom (before the next section).
 * We use --bg-dark to perfectly match the adjacent sections.
 */
.fullscreen-section::before,
.fullscreen-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 35vh;
    /* Massive height of the gradient fade */
    z-index: 10;
    pointer-events: none;
}

/* Top soft edge - fading down from the header */
.fullscreen-section::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 100%);
}

/* Bottom soft edge - fading up from the next section */
.fullscreen-section::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 100%);
}

/* 
 * Discard the soft edges completely in Light Mode 
 * since we use a bright video that borders the white sections directly.
 * Also disable the pinning/scroll effect.
 */
html[data-theme="light"] .fullscreen-section::before,
html[data-theme="light"] .fullscreen-section::after {
    display: none;
}

html[data-theme="light"] .sticky-hero-wrapper {
    height: auto;
}

html[data-theme="light"] .fullscreen-section {
    position: relative;
    height: 100vh;
}

/* Disable sticky scroll effect on mobile devices too */
@media (max-width: 768px) {
    .sticky-hero-wrapper {
        height: auto;
    }

    .fullscreen-section {
        position: relative;
        height: 100vh;
    }
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
    /* Slightly more visible */
    transform: translate(-50%, -50%) scale(1.1);
    /* Start-Scale */
    transition: transform 0.1s ease-out, opacity 0.5s ease;
}

/* Hide light video by default (dark mode) */
.video-light {
    display: none !important;
}

/* In Light Mode: Hide dark video, show light video */
html[data-theme="light"] .video-dark {
    display: none !important;
}

html[data-theme="light"] .video-light {
    display: block !important;
    opacity: 0.9;
    /* Slightly brighter for light mode */
}

/* In Light Mode: Only fade at the bottom to let the photo/video shine */
html[data-theme="light"] .hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, var(--hero-fade-opacity, 1)) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Standard opacity when NO fade-out offset calculation is active yet via JS, bounded logically */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, var(--hero-fade-opacity, 0.8)) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

html[data-theme="light"] .hero-title,
html[data-theme="light"] .page-hero-title {
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.2);
}

.page-hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.register-title {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

/* In Light mode, make the subtitle dark red (accent) or black for contrast against the white video */
html[data-theme="light"] .hero-subtitle {
    color: var(--accent) !important;
    font-weight: 700;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 1.4rem 3.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gold);
    box-shadow: 0 4px 15px rgba(139, 30, 30, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 45px rgba(212, 175, 55, 0.4), 0 0 25px rgba(139, 30, 30, 0.5);
    background-color: #a82525;
}

/* --- 4. SEKTIONEN --- */
.content-section {
    padding: 8rem 2rem;
}

.bg-dark {
    background-color: var(--bg-deep);
}

.bg-gray {
    background-color: var(--bg-dark);
}

.bg-light {
    background-color: var(--bg-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 5. EVENT CARDS --- */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    background: var(--bg-card);
    border: 1px solid rgba(223, 185, 74, 0.15);
    /* Wärmerer Rahmen im Dark Mode */
    border-radius: 16px;
    /* Weichere Kanten */
    display: flex;
    overflow: hidden;
}

html[data-theme="light"] .event-card,
html[data-theme="light"] .register-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .event-card:hover,
html[data-theme="light"] .register-item:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.event-card:hover {
    border-color: var(--gold);
    transform: translateX(10px);
}

.event-date {
    background: var(--accent);
    color: white;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.event-day {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-details {
    padding: 2rem;
    flex: 1;
}

.event-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-details p {
    color: var(--text-light);
    margin: 0;
}

/* --- 6. REGISTER --- */
.register-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

/* --- SPONSOREN BEREICH --- */
.sponsors-wrapper {
    background: var(--bg-card);
    border: 1px solid rgba(223, 185, 74, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sponsors-wrapper h3 {
    color: var(--gold) !important;
}

.sponsors-wrapper img {
    max-width: 100%;
    height: auto;
    opacity: 0.95;
}

html[data-theme="light"] .sponsors-wrapper {
    background: #ffffff;
    /* Reines Weiß im Light Mode */
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Sanfter Rahmen */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .sponsors-wrapper h3 {
    color: var(--text-light) !important;
}

.register-item {
    text-align: center;
    background: var(--bg-card);
    border-radius: 20px;
    /* Weichere Kanten */
    overflow: hidden;
    border: 1px solid rgba(223, 185, 74, 0.1);
}

.register-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.register-item:hover .register-image {
    transform: scale(1.1);
}

.register-item h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.register-item p {
    padding: 0 1.5rem 2rem 1.5rem;
    color: var(--text-light);
}

.register-item:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* --- 6.1 PLACEHOLDER IMAGES --- */
.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

html[data-theme="light"] .placeholder-image {
    background-color: rgba(0, 0, 0, 0.02);
}

.placeholder-image span {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- 6.2 MEMBER GRID --- */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.member-card {
    text-align: center;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(223, 185, 74, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

html[data-theme="light"] .member-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.member-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .member-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.member-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.member-image.placeholder-image {
    height: 250px;
    /* Specific height for the member placeholder */
}

.member-name {
    margin: 1rem 0;
    font-size: 1.1rem;
    color: var(--gold);
    font-family: var(--font-sans);
    font-weight: 500;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid rgba(223, 185, 74, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

html[data-theme="light"] .news-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.news-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .news-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.news-date {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.news-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.read-more {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    color: var(--gold);
}

/* responsive */
@media (max-width: 992px) {
    .site-navigation {
        padding: 1rem 2rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Menu Drawer Style */
    .main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);

        /* Start hidden, but animatable */
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    html[data-theme="light"] .main-menu {
        background: rgba(255, 255, 255, 0.98);
    }

    .main-menu.menu-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Hamburger Animation to 'X' */
    .mobile-menu-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .mobile-menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .page-hero-title {
        font-size: 2.2rem;
    }

    .register-title {
        font-size: 1.8rem;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        min-width: auto;
        height: 80px;
        flex-direction: row;
        gap: 1rem;
    }

    .site-years {
        font-size: 1rem;
    }

    .site-logo {
        height: 55px;
        /* Scale down logo on small phones */
    }
}

/* --- GALLERY CAROUSEL --- */
.gallery-carousel {
    width: 100%;
    position: relative;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem 5vw; /* Left/Right padding so it's not sticked to the edge */
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
}
.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-item {
    scroll-snap-align: center;
    flex: 0 0 calc(30vw - 1.5rem);
    min-width: 250px;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transform: scale(0.98);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

html[data-theme="light"] .carousel-item {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.carousel-item:hover {
    transform: scale(1);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

html[data-theme="light"] .carousel-item:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(80vw - 1.5rem);
        height: 300px;
    }
}

/* --- LIGHTBOX OVERLAY --- */
.tk-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

html[data-theme="light"] .tk-lightbox {
    background-color: rgba(255, 255, 255, 0.95);
}

.tk-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.tk-lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-radius: 8px;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html[data-theme="light"] .tk-lightbox-content {
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.tk-lightbox.active .tk-lightbox-content {
    transform: scale(1);
}

.tk-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

html[data-theme="light"] .tk-lightbox-close {
    color: #111;
}

.tk-lightbox-close:hover {
    color: var(--gold);
}

.wp-block-gallery img, .wp-block-image img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
.wp-block-gallery img:hover, .wp-block-image img:hover {
    transform: scale(1.02);
}

/* --- SUBPAGE WATERMARKS --- */
body:not(.home) {
    background-image: 
        url('../images/bg-music-lines.svg'),
        url('../images/bg-instruments.svg');
    background-repeat: no-repeat;
    background-position: 
        bottom 10% left -150px, 
        top 25% right -100px;
    background-size: 
        700px auto, 
        400px auto;
    background-attachment: fixed;
}

/* --- PARTNER / SPONSORS SECTION --- */
.partner-section {
    padding: 6rem 0;
    background-color: var(--bg-deep);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

.partner-item {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    height: 100px;
}

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

.partner-logo {
    max-height: 80px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(60%);
    transition: filter 0.3s ease;
}

/* In light mode, default filter is slightly different, on hover color comes back or it gets full opacity */

/* --- SECTION CARDS (BOX-LAYOUT) --- */
.content-section,
.bg-dark,
.bg-light,
.bg-gray,
.partner-section {
    background-color: transparent !important;
}

.section-card {
    background-color: var(--bg-card);
    padding: 4rem 3rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .section-card {
        padding: 2rem 1.5rem;
    }
}
html[data-theme="light"] .partner-logo {
    filter: grayscale(100%) opacity(70%);
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%) opacity(100%);
}

/* --- DARK MODE SPONSOR LOGO FIX --- */
html[data-theme="dark"] .marquee-logo-haupt,
html[data-theme="dark"] .marquee-logo-unter,
html[data-theme="dark"] .hauptsponsor-logo,
html[data-theme="dark"] .unterstuetzer-logo {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}