﻿/* Core variables with enhanced color palette */
:root {
    --primary-color: #7C1F1F;     /* Dark burgundy red for structure */
    --primary-light: #9C3131;     /* Lighter structural color */
    --secondary-color: #CC4545;   /* Bright burgundy for interactions */
    --secondary-light: #E05555;   /* Even brighter for hover states */
    --dark-bg: #0a0101;           /* Almost black with slight burgundy tint */
    --dark-bg-gradient: linear-gradient(45deg, #1a0505, #000000, #1a0505); /* Subtle gradient */
    --light-text: #ffffff;
    --light-text-muted: #e0e0e0;
    --neon-glow: 0 0 15px var(--secondary-color);
    --box-glow: 0 0 20px var(--primary-color);
    --box-glow-hover: 0 0 25px var(--secondary-color);
    --standard-padding: 2rem;
    --section-margin: 3rem 0;
    --border-radius: 10px;
    --transition-speed: 0.3s;
    --card-bg: rgba(20, 5, 5, 0.7);
}

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

body {
    background: var(--dark-bg);
    background-image: var(--dark-bg-gradient);
    color: var(--light-text);
    font-family: 'Poppins', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
}

body.prefers-reduced-motion .particles-container,
body.optimize-performance .particles-container {
    display: none;
}

body.prefers-reduced-motion .reveal-on-scroll,
body.optimize-performance .reveal-on-scroll {
    transition: none;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    margin: 1.2rem 0;
    color: var(--primary-light);
    text-shadow: 0 0 12px rgba(124, 31, 31, 0.35);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    position: relative;
}

a:hover {
    color: var(--secondary-light);
}

.neon-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
    position: relative;
    font-weight: 500;
}

.neon-link:hover, 
.neon-link:focus {
    color: var(--accent-color);
}

.neon-link:active {
    transform: translateY(1px);
}

/* Adding subtle underline effect on hover */
.neon-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width var(--transition-speed) ease;
}

.neon-link:hover::after,
.neon-link:focus::after {
    width: 100%;
}

/* Consistent container box with improved styling */
.container-box {
    background: rgba(12, 12, 12, 0.85);
    border: 1px solid rgba(204, 69, 69, 0.35);
    border-radius: var(--border-radius);
    padding: var(--standard-padding);
    margin: var(--section-margin);
    box-shadow: 0 0 20px rgba(124, 31, 31, 0.35);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.container-box:hover {
    box-shadow: 0 0 26px rgba(204, 69, 69, 0.45);
    transform: translateY(-2px);
}

.container-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

/* Header and logo */
.main-header {
    padding: 1.75rem 0;
    position: relative;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.main-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(124, 31, 31, 0.45));
}

/* Navigation */
.main-nav {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 24px;
}

.main-nav.scrolled {
    padding: 8px 20px;
}

.menu-button {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--accent-color);
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    display: none;
}

.menu-button:hover {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem; /* Increased spacing between nav items */
    align-items: center;
}

.nav-links__separator {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 1rem;
    border-radius: 1px;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 8px 5px;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    color: var(--accent-color);
}

/* Active nav item style */
.nav-links li a.active {
    color: var(--accent-color);
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Mobile navigation styles */
@media (max-width: 767px) {
    /* Fix the mobile nav position and width */
    .main-nav {
        position: relative;
        padding: 8px 15px;
        margin: 0 auto;
        width: 100%;
        left: 0;
        justify-content: flex-end; /* Move menu button to the right */
    }
    
    .main-nav.scrolled {
        padding: 6px 15px;
    }
    
    .menu-button {
        display: block;
        font-size: 1.8rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        background: rgba(10, 1, 1, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        border-radius: 0 0 10px 10px;
        text-align: center;
        padding: 0;
        border: 1px solid var(--primary-color);
        border-top: none;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.4s ease;
        overflow: hidden;
        max-height: 0;
        z-index: 999;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .nav-links.active {
        display: block;
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
        padding: 10px 0;
    }
    
    .nav-links li {
        padding: 0;
        margin: 0;
    }
    
    .nav-links li a {
        padding: 15px;
        font-size: 1.2rem;
        display: block;
        border-bottom: 1px solid rgba(124, 31, 31, 0.2);
    }

    .nav-links__separator {
        width: 100%;
        height: 1px;
        margin: 0;
        background: rgba(124, 31, 31, 0.35);
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    /* Tighten up padding further for very small devices */
    .main-nav {
        padding: 6px 10px;
    }
    
    .main-nav.scrolled {
        padding: 4px 10px;
    }
    
    .menu-button {
        font-size: 1.6rem;
    }
    
    .nav-links li a {
        padding: 12px;
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .hero-content {
        padding: 1.5rem 1.25rem;
    }

    .event-date {
        font-size: 2.2rem;
    }

    .event-tagline {
        font-size: 1.15rem;
    }

    .cta-button {
        width: 100%;
        padding: 14px 24px;
        text-align: center;
    }

    .lineup__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timetable__item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .timetable__time {
        font-size: 1rem;
    }
}

/* Enhanced Countdown Timer */
.countdown-section {
    margin-top: 2rem;
}

.countdown-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    gap: 1.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(12, 12, 12, 0.85);
    border: 1px solid rgba(204, 69, 69, 0.35);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    min-width: 90px;
    box-shadow: 0 8px 20px rgba(124, 31, 31, 0.35);
    animation: boxGlow 5s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(204, 69, 69, 0.4);
}

.countdown-item span:first-child {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.countdown-label {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--light-text-muted);
}

.event-live {
    font-size: 2.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 18px rgba(59, 175, 187, 0.35);
    animation: neonGlow 3s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
}

/* Hero Section */
#hero {
    height: 30vh;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(124, 31, 31, 0.3));
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(124, 31, 31, 0.1) 0%, transparent 70%);
    animation: pulseBackground 10s ease infinite;
}

#hero .hero-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-copy {
    flex: 1 1 320px;
    text-align: left;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cta-secondary {
    display: inline-block;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    background: transparent;
}

.cta-secondary:hover,
.cta-secondary:focus {
    color: var(--dark-bg);
    background: var(--accent-color);
    border-color: var(--accent-color-dark);
}

@keyframes pulseBackground {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.hero-content {
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    max-width: 800px;
    margin: 0;
    text-align: left;
    flex: 1 1 320px;
}

.event-date {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
    text-shadow: 0 0 12px rgba(204, 69, 69, 0.35);
    font-weight: 700;
    text-align: left;
}

.hero-meta {
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-align: left;
}

.event-tagline {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 0 2rem;
    line-height: 1.6;
    color: var(--light-text-muted);
}

.cta-button {
    display: inline-block;
    padding: 15px 34px;
    background: var(--primary-color);
    color: var(--light-text);
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: 999px;
    border: 1px solid var(--primary-light);
    box-shadow: 0 12px 24px rgba(124, 31, 31, 0.45);
    transition: all 0.35s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.cta-button:hover,
.cta-button:focus {
    background: var(--primary-light);
    border-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(156, 49, 49, 0.5);
}

.countdown-container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Countdown-Container Anpassungen für Mobile */
@media (max-width: 767px) {
    .countdown-container {
        padding: 0 10px;
        gap: 8px;
    }
    
    .countdown-item {
        min-width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        margin: 5px 0;
    }
    
    /* Countdown-Items zweizeilig anordnen */
    .countdown-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 540px) {
    .hero-content {
        text-align: center;
    }

    .hero-meta {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }
}

/* Enhanced Line-Up Section */
#lineup {
    margin: 3rem auto;
    text-align: center;
    max-width: 900px;
    background: rgba(12, 12, 12, 0.85);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(204, 69, 69, 0.35);
    border-radius: var(--border-radius);
    box-shadow: 0 0 24px rgba(124, 31, 31, 0.35);
    position: relative;
}

#lineup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

#lineup h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

#lineup h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    position: absolute;
    bottom: -10px;
    left: 20%;
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(59, 175, 187, 0.35);
}

.dj-list {
    list-style: none;
    padding: 0;
    margin: 2.5rem auto;
    max-width: 700px; 
}

[data-lineup-list],
[data-timetable-list] {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dj-list li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: rgba(124, 31, 31, 0.15);
    border: 1px solid var(--primary-color); 
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dj-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.dj-list li:hover {
    background: rgba(124, 31, 31, 0.3);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dj-time {
    flex: 0 0 120px;        
    color: var(--accent-color); 
    font-size: 1.1rem;
    font-weight: 600;
    margin-right: 20px;
    text-align: left;
}

.dj-name {
    flex: 1;               
    color: var(--light-text);
    font-size: 1.3rem;
    font-weight: bold;
    text-align: left;
}

.dj-name a {
    color: var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 3px;
}

.dj-name a:hover {
    color: var(--secondary-color);
}

.dj-name a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.dj-name a:hover::after {
    width: 100%;
}

/* Modular line-up/timetable items */
.lineup__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(124, 31, 31, 0.18);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 14px;
    gap: 16px;
}

.lineup-grid {
    margin-top: 2rem;
}

.lineup__link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.lineup__link:hover,
.lineup__link:focus {
    color: var(--secondary-color);
}

.timetable__item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: center;
    background: rgba(12, 12, 12, 0.85);
    border: 1px solid rgba(204, 69, 69, 0.3);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 12px;
}

.timetable__time {
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

.timetable__artist {
    font-weight: 500;
    color: var(--light-text-muted);
}

/* Enhanced CognitoForm styling */
.cog-cognito {
    background-color: rgba(12, 12, 12, 0.9) !important;
    border-radius: var(--border-radius) !important;
    padding: 25px !important;
    box-shadow: 0 0 24px rgba(124, 31, 31, 0.35) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border: 1px solid rgba(204, 69, 69, 0.35) !important;
    position: relative !important;
}

.cog-cognito::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color)) !important;
}

.cog-heading {
    color: var(--accent-color) !important;
    font-size: 1.6rem !important;
    text-align: center !important;
    margin-bottom: 25px !important;
    text-shadow: none !important;
    font-weight: 700 !important;
    position: relative !important;
    padding-bottom: 15px !important;
}

.cog-heading::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 25% !important;
    width: 50% !important;
    height: 2px !important;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color)) !important;
    box-shadow: none !important;
}

.cog-label {
    color: var(--light-text) !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    font-size: 1rem !important;
}

.el-input__inner, 
.cog-input input, 
.cog-select select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--light-text) !important;
    padding: 12px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    font-size: 1rem !important;
}

.el-input__inner:focus, 
.cog-input input:focus, 
.cog-select select:focus {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 15px rgba(204, 69, 69, 0.5) !important;
    outline: none !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.cog-select select option {
    background-color: var(--dark-bg) !important;
    color: var(--light-text) !important;
}

.cog-payment {
    background-color: rgba(20, 5, 5, 0.8) !important;
    border-radius: var(--border-radius) !important;
    padding: 20px !important;
    margin-top: 25px !important;
    border: 1px solid var(--primary-color) !important;
}

.el-tabs__item {
    color: var(--light-text) !important;
    font-weight: 500 !important;
}

.el-tabs__item.is-active {
    color: var(--secondary-light) !important;
}

.el-tabs__nav-wrap.is-top {
    border-bottom: 1px solid var(--primary-color) !important;
}

.cog-payment__order-details table {
    width: 100% !important;
    color: var(--light-text) !important;
}

.cog-payment__order-details td {
    padding: 10px !important;
}

.cog-order-details__total {
    font-size: 1.3rem !important;
    color: var(--secondary-light) !important;
    font-weight: bold !important;
    text-align: right !important;
    margin-top: 15px !important;
    text-shadow: 0 0 5px var(--secondary-color) !important;
}

.cog-button--submit {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important;
    color: var(--light-text) !important;
    border: none !important;
    padding: 14px 30px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.4s ease !important;
    margin-top: 25px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    position: relative !important;
    overflow: hidden !important;
}

.cog-button--submit:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color)) !important;
    box-shadow: 0 0 20px rgba(204, 69, 69, 0.6) !important;
    transform: translateY(-3px) !important;
}

.cog-button--submit::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: all 0.5s ease !important;
}

.cog-button--submit:hover::before {
    left: 100% !important;
}

.cog-asterisk {
    color: var(--secondary-light) !important;
}

.cog-error {
    color: var(--secondary-light) !important;
    margin-top: 8px !important;
    font-weight: 500 !important;
}

#braintree-hosted-field-number,
#braintree-hosted-field-expirationDate,
#braintree-hosted-field-cvv,
#braintree-hosted-field-postalCode {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Enhanced Footer */
footer {
    margin-top: 5rem;
    padding: 3rem 2rem 2rem;
    background: #0f0101;
    border-top: 3px solid var(--primary-color);
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0 0;
    padding: 0;
}

.footer-links a {
    color: var(--accent-color);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    font-size: 1.3rem;
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
    padding: 10px;
    position: relative;
}

.social-icon:hover,
.social-icon:focus {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-icon::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    box-shadow: 0 0 8px var(--secondary-color);
    transition: width 0.3s ease;
}

.social-icon:hover::after {
    width: 100%;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* Success message */
.success-message {
    background: rgba(20, 120, 50, 0.2);
    border: 1px solid #28a745;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.success-message h3 {
    color: #28a745;
    margin-bottom: 1rem;
    text-shadow: none;
}

/* Video background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: var(--dark-bg);
}

#bg-video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.3) sepia(0.2);
    z-index: -1;
}

/* Special sections styling */
.spenden-hero, .tickets-hero, .kontakt-hero {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(124, 31, 31, 0.3));
    margin-bottom: 3rem;
    position: relative;
    padding: 2.5rem 2rem;
}

.spenden-hero::after, .tickets-hero::after, .kontakt-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--dark-bg));
}

.spenden-tagline, .tickets-tagline, .kontakt-tagline {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 1rem auto 0;
    opacity: 0.9;
}

.tickets-date {
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--secondary-color);
    text-shadow: none;
}

.spenden-impact {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.spenden-impact li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.spenden-impact li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.spenden-types {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2.5rem 0;
}

.spenden-type {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 2.5rem 2rem;
    background: rgba(20, 5, 5, 0.6);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.spenden-type:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color);
}

.konto-info {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.2rem;
    border-radius: 8px;
    margin-top: 1.2rem;
}

.spenden-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--light-text);
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(59, 175, 187, 0.25);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.pretix-wrapper {
    margin-top: 2rem;
}

/* iOS Display Fixes */

/* Fix for general iOS rendering issues */
html {
    -webkit-text-size-adjust: 100%; /* Prevents font scaling in landscape */
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix for flexbox issues on iOS */
.countdown-container,
.hero-content,
.spenden-types,
.kontakt-grid,
.team-members,
.dj-list,
.social-links {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* Fix for position:fixed elements in iOS */
.video-background,
.back-to-top,
.dark-mode-toggle {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Fix for touch events on iOS */
a, button {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    tap-highlight-color: rgba(0,0,0,0);
}

/* Add momentum scrolling for iOS */
body,
.nav-links.active {
    -webkit-overflow-scrolling: touch;
}

/* Fix for Cognito Form overflow issues */
.cog-cognito {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Improve responsiveness for Cognito Form elements */
.cog-form {
    width: 100% !important;
    max-width: 100% !important;
}

/* Exakte CSS-Fixes basierend auf den erfolgreichen Änderungen */

/* 1. Tabelle selbst */
.cog-payment__order-details table {
    width: 100% !important;
    table-layout: fixed !important;
}

/* 2. Tabellen-Container */
.cog-payment__order-details.cog-col.cog-col--12 {
    overflow-x: auto !important;
}

/* 3. & 4. Zeilen-Gruppen (Zwischensumme und Mehrwertsteuer) */
tbody.cog-payment__subtotal,
tbody.cog-fees {
    display: table-row-group !important;
}

/* 7. Allgemeines Tabellenzellen-Styling */
.cog-payment__order-details td {
    font-size: clamp(12px, 4vw, 16px) !important;
}

/* Neue Anordnung: Labels über den Beträgen */
tbody.cog-payment__subtotal tr,
tbody.cog-fees tr {
    display: flex !important;
    flex-direction: column !important; /* Vertikal anordnen, aber kontrolliert */
    align-items: center !important; 
    width: 100% !important;
    padding: 5px 15px !important;
}

/* Labels - zentriert über den Werten */
tbody.cog-payment__subtotal td:first-child,
tbody.cog-fees td:first-child {
    text-align: center !important;
    font-weight: 500 !important;
    width: 100% !important;
    white-space: normal !important; /* Erlaubt Textumbruch wenn nötig */
    margin-bottom: 5px !important;
}

/* Werte - zentriert unter den Labels */
tbody.cog-payment__subtotal td:last-child,
tbody.cog-fees td:last-child {
    text-align: center !important;
    font-weight: bold !important;
    font-size: clamp(14px, 4.5vw, 18px) !important;
    width: 100% !important;
}

/* Gesamtbetrag mit Hervorhebung */
.cog-order-details__total {
    width: 100% !important;
    text-align: center !important;
    padding: 15px 0 !important;
    font-weight: bold !important;
}

/* Zusätzliche Fixes für bessere Kompatibilität */
.cog-payment__order-details,
.cog-payment__order-details * {
    box-sizing: border-box !important;
}

/* Spezielle iOS-Kompatibilität */
@supports (-webkit-overflow-scrolling: touch) {
    .cog-payment__order-details.cog-col.cog-col--12 {
        -webkit-overflow-scrolling: touch !important;
    }
    
    .cog-payment__order-details td {
        font-size: 14px !important;
    }
}

/* Für sehr schmale Mobile-Geräte */
@media (max-width: 375px) {
    .cog-payment__order-details td {
        padding: 5px !important;
    }
}

/* Mobile-optimierte Zahlungsdetails für Cognito Forms */
@media (max-width: 768px) {
    /* Exakte CSS-Fixes - Einspaltiges Layout für Mobile */
    .cog-payment__order-details table, 
    .cog-payment__order-details tbody, 
    .cog-payment__order-details tr, 
    .cog-payment__order-details td {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0 auto !important;
        padding: 3px 0 !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }

    /* Entferne die ursprünglichen Tabelleneigenschaften */
    .cog-payment__order-details table {
        border-collapse: collapse !important;
        table-layout: auto !important;
    }

    /* Abstand zwischen den Zeilengruppen */
    tbody.cog-payment__subtotal, 
    tbody.cog-fees {
        margin-bottom: 10px !important;
        display: block !important;
    }

    /* Beschriftungen (Zwischensumme:, Mehrwertsteuer:) */
    tbody.cog-payment__subtotal td:first-child, 
    tbody.cog-fees td:first-child {
        font-weight: 500 !important;
        font-size: 14px !important;
        opacity: 0.9 !important;
        padding-bottom: 0 !important;
    }

    /* Werte (20,00 €, 3,80 €) */
    tbody.cog-payment__subtotal td:last-child, 
    tbody.cog-fees td:last-child {
        font-weight: bold !important;
        font-size: 18px !important;
        padding-top: 0 !important;
        padding-bottom: 10px !important;
    }

    /* Gesamtbetrag mit Hervorhebung */
    .cog-order-details__total {
        width: 100% !important;
        text-align: center !important;
        padding: 15px 0 !important;
        font-weight: bold !important;
        font-size: 20px !important;
    }

    /* Abstand für bessere visuelle Trennung */
    tfoot tr td {
        padding-top: 10px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .particle,
    .loader-bar {
        display: none !important;
    }
}

.program-overview {
    margin-top: 2rem;
    overflow-x: auto;
}

.program-schedule {
    width: 100%;
    border-collapse: collapse;
    color: var(--light-text);
    min-width: 280px;
}

.program-schedule thead th {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
}

.program-schedule th,
.program-schedule td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.program-schedule__row:hover td,
.program-schedule__row:focus-within td {
    background: rgba(124, 31, 31, 0.18);
}

.program-schedule__time {
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
}

.program-schedule__artist {
    font-weight: 500;
}

.program-schedule__link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.program-schedule__link:hover,
.program-schedule__link:focus {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    outline: none;
}

@media (max-width: 600px) {
    .program-schedule thead {
        display: none;
    }

    .program-schedule {
        border-collapse: separate;
    }

    .program-schedule__row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        padding: 0.75rem 0;
    }

    .program-schedule th,
    .program-schedule td {
        padding: 0.25rem 0;
        border: none;
    }

    .program-schedule__time {
        font-size: 1rem;
    }

    .program-schedule__artist {
        font-size: 1rem;
    }
}


.kontakt-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.kontakt-card {
  background: var(--card-bg);
  border: 1px solid rgba(204,69,69,0.35);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
}


/* Mobile platform refinements for Android / iOS */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.menu-button {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
}

button,
.menu-button,
.cta-button,
.cta-secondary {
    touch-action: manipulation;
}

@supports(padding: max(0px)) {
    .page-container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
}

@media (max-width: 680px) {
    #hero {
        min-height: auto;
        padding: 3.25rem 0 2.5rem;
    }

    #hero .hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.75rem;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-meta {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-cta {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }

    .hero-cta a {
        width: 100%;
        max-width: 280px;
    }

    .main-header {
        padding: 1.5rem 0;
    }
}

@media (max-width: 540px) {
    h1 {
        font-size: clamp(1.9rem, 6vw, 2.2rem);
    }

    h2 {
        font-size: clamp(1.5rem, 5.5vw, 1.8rem);
    }

    .kontakt-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .kontakt-card {
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 400px) {
    .hero-cta {
        gap: 0.75rem;
    }

    .hero-cta a {
        max-width: none;
    }

    .main-nav {
        padding: 4px 8px;
    }

    .nav-links li a {
        font-size: 1rem;
        padding: 10px 12px;
    }

    /* Extra small screens - even tighter spacing */
    .container-box {
        padding: 1rem 0.75rem;
    }

    .spenden-type {
        padding: 1.25rem 1rem;
    }

    .spenden-type h3 {
        font-size: 1.25rem;
    }

    .spenden-impact li {
        padding-left: 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 680px) {
    .spenden-hero,
    .tickets-hero,
    .kontakt-hero {
        min-height: auto;
        padding: 2.25rem 1.5rem;
        margin-bottom: 2.5rem;
    }

    .tickets-date {
        font-size: clamp(1.4rem, 5.5vw, 1.8rem);
    }

    .tickets-tagline {
        font-size: clamp(1rem, 4.6vw, 1.2rem);
        margin-top: 0.75rem;
    }

    /* Reduce padding on mobile for container boxes */
    .container-box {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
    }

    /* Mobile optimizations for donation boxes */
    .spenden-types {
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .spenden-type {
        min-width: 100%;
        max-width: 100%;
        padding: 1.5rem 1.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .spenden-type h3 {
        font-size: clamp(1.3rem, 5vw, 1.5rem);
        word-wrap: break-word;
    }

    .spenden-type p {
        font-size: clamp(0.95rem, 4vw, 1rem);
        line-height: 1.6;
    }

    .spenden-impact {
        margin: 1rem 0;
    }

    .spenden-impact li {
        padding-left: 1.5rem;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .spenden-impact a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

