:root {
    --header-height: 60px;
}

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

body {
    font-family: 'Georgia', serif;
    color: #fff;
    overflow-x: hidden;
    background: #000;
}

#biographie {
    backdrop-filter: blur(3px);
    background: rgba(0, 0, 0, 0.75);
}

@media screen and (min-width: 768px) {
    #biographie {
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
}

#biographie p {
    font-size: 1.4rem;
    line-height: 2;
}

#home {
    height: calc(calc(var(--vh, 1vh) * 100) - var(--header-height));
    display: flex;
    align-items: center;
}

#home:not(.active) {
    display: none;
}

/* Background Slideshow */
.slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #f4c842;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: #000;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Menu */
.nav-menu {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(calc(var(--vh, 1vh) * 100) - var(--header-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.nav-menu.active {
    transform: translateX(0);
}

.nav-menu a {
    width: 100%;
    color: #f4c842;
    text-decoration: none;
    font-size: 2.6rem;
    padding: 25px;
    font-weight: 300;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #fff;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
    margin-top: var(--header-height);
}

.nav-menu.active ~ .main-content {
    opacity: 0;
}

.hero-text {
    text-align: center;
    animation: fadeInUp 1s ease;
    margin: 0;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-text .subtitle {
    font-size: 1.8rem;
    color: #f4c842;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Social Links */
.social-links {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 100;
}

.social-links a {
    width: 50px;
    height: 50px;
    border: 2px solid #f4c842;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4c842;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.5);
}

.social-links a:hover {
    background: #f4c842;
    color: #000;
    transform: translateY(-5px);
}

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

/* Responsive Design */
@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 5rem;
    }

    .hero-text .subtitle {
        font-size: 2.5rem;
    }

    .nav-menu a {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 6rem;
    }

    .hero-text .subtitle {
        font-size: 3rem;
    }

    .social-links {
        gap: 40px;
    }

    .social-links a {
        width: 60px;
        height: 60px;
    }
}

/* Page sections (hidden by default) */
.page-section {
    display: none;
    padding: 50px 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.page-section.active {
    display: block;
}

.page-section h2 {
    font-size: 2.5rem;
    color: #f4c842;
    margin-bottom: 30px;
    font-weight: 300;
    text-align: center;
}

.page-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #fff;
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Center the last item if it's odd (reverse pyramid effect) */
    .media-item:nth-child(odd):first-child {
        grid-column: 1 / -1;
    }
}

.media-item {
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 10px;
}

.media-item video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin-bottom: 15px;
}

.media-item h3 {
    color: #f4c842;
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 400;
}

.media-item p {
    color: #ccc;
    font-size: 1rem;
    margin: 0;
}

.calendar-list {
    list-style: none;
    margin-top: 30px;
}

.calendar-list li {
    line-height: 1.6;
    background: rgba(0,0,0,0.7);
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #f4c842;
    transition: transform 0.3s ease;
}

.calendar-list li:hover {
    transform: translateX(10px);
}

/* Contact Form */
.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(244, 200, 66, 0.3);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #f4c842;
    background: rgba(255,255,255,0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: #f4c842;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 200, 66, 0.3);
}

.impressum-link {
    text-align: center;
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid rgba(244, 200, 66, 0.3);
}

.impressum-link a {
    color: #f4c842;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.impressum-link a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Contact page full width */
#kontakt.page-section {
    padding: 50px 50px 0;
    align-self: stretch;
    width: 100%;
    max-width: 600px;
}

#impressum.page-section {
    min-height: calc(calc(var(--vh, 1vh) * 100) - var(--header-height));
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.75);
    padding: 50px 20px 0;
    align-self: stretch;
    width: 100%;
}

@media screen and (min-width: 768px) {
    #impressum.page-section {
        min-height:unset;
        align-self: unset;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
}

#impressum.page-section > p {
    padding: 5px 20px;
}

#kalender.page-section {
    padding: 40px 20px 0;
    align-self: stretch;
    width: 100%;
    max-width: 600px;
}

.buy-tickets-btn {
    color: #f4c842;
    margin-top: 5px;
    font-size: 0.9rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 0.5px;
    display: block;
}

.noscript-message {
    background-color: #ffeb3b;
    color: #000;
    padding: 15px 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
}
.noscript-message a {
    color: #0b72e8;
    text-decoration: underline;
    font-weight: normal;
}
