/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B0000;
    --secondary-color: #CD853F;
    --accent-color: #FFD700;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --background-light: #fafafa;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #a52a2a);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #daa520);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    will-change: background, backdrop-filter;
    transform: translateZ(0);
}

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

.nav-logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    will-change: color;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 25px;
    height: 21px;
    position: relative;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    position: absolute;
    transition: all 0.3s ease;
    transform-origin: center;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.bar:nth-child(1) {
    top: 0;
}

.bar:nth-child(2) {
    top: 9px;
}

.bar:nth-child(3) {
    top: 18px;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.4;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    opacity: 0.85;
    font-weight: 400;
    font-style: italic;
}

.hero-main-credit {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-credits {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-cast {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    text-align: center;
    opacity: 0.9;
    font-style: italic;
}

.hero-description:last-of-type {
    margin-bottom: 2rem;
}

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

.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    will-change: transform, box-shadow, background;
    transform: translateZ(0);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.hero-image {
    flex: 1;
    text-align: center;
    margin-left: 2rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    will-change: opacity;
    transform: translateZ(0);
}

/* Main Content Sections */
section {
    padding: 4rem 0;
}

.story-section {
    background: var(--background-light);
}

.story-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.story-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-illustration {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 1rem;
}

.building-sketch {
    max-width: 100%;
    height: auto;
    filter: sepia(20%) saturate(0.8) opacity(0.9);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    will-change: transform, filter;
    transform: translateZ(0);
}

.building-sketch:hover {
    filter: sepia(10%) saturate(1) opacity(1);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.story-content p {
    margin-bottom: 1.5rem;
}

.story-highlight {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    font-weight: 500;
    box-shadow: var(--shadow-light);
}

/* Info Section */
.info-section {
    background: var(--white);
}

.info-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-card p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.location-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    will-change: transform, background, box-shadow;
    transform: translateZ(0);
}

.location-link:hover {
    background: #a52a2a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.calendar-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    will-change: transform, background, box-shadow;
    transform: translateZ(0);
}

.calendar-link:hover {
    background: #daa520;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Contact Section */
.contact-section {
    background: var(--background-light);
    text-align: center;
}

.contact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-email {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
    will-change: transform, background, color, box-shadow;
    transform: translateZ(0);
}

.contact-email:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Page Header für Galerie */
.page-header {
    margin-top: 80px;
    padding: 3rem 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Gallery */
.gallery-section {
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
    cursor: pointer;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

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

/* Modal für Bildvergrößerung */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    will-change: opacity;
    transform: translateZ(0);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.modal-prev,
.modal-next {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    will-change: background;
    transform: translateZ(0);
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Calendar dropdown */
.calendar-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-options {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    min-width: 300px;
    text-align: center;
    position: relative;
}

.calendar-options h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.calendar-option {
    display: block;
    margin: 0.75rem 0;
    padding: 0.75rem 1.5rem;
    background: var(--background-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    will-change: transform, background;
    transform: translateZ(0);
}

.calendar-option:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.calendar-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.calendar-close:hover {
    color: var(--primary-color);
}

/* Animation on scroll elements - add hardware acceleration */
.story-content,
.info-card,
.gallery-item,
.building-sketch {
    will-change: opacity, transform;
    transform: translateZ(0);
}

/* Optimize scroll animations */
.story-content {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-light);
        padding: 2rem 0;
        will-change: transform;
        transform: translateZ(0);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger.active .bar:nth-child(1) {
        top: 9px;
        transform: rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger.active .bar:nth-child(3) {
        top: 9px;
        transform: rotate(-45deg);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-image {
        margin-left: 0;
        margin-top: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .info-grid {
        grid-template-columns: 1fr;
    }

    .story-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-illustration {
        order: -1;
        padding-top: 0;
        margin-bottom: 1rem;
    }

    .building-sketch {
        max-width: 80%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .cast-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cast-additional {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .creative-credits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-item img {
        height: 300px;
    }

    .modal-content {
        width: 95%;
    }

    .modal-nav {
        padding: 0 10px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Cast/Besetzung Page Styles */
.cast-section {
    padding: 4rem 0;
}

.cast-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.cast-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cast-intro p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.cast-member {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.cast-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.cast-member h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cast-role {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

.cast-section-divider {
    text-align: center;
    margin: 4rem 0 3rem;
    padding: 2rem 0;
    border-top: 2px solid var(--background-light);
    border-bottom: 2px solid var(--background-light);
}

.cast-section-divider h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
}

.cast-additional {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.cast-group {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 15px;
}

.cast-group h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.cast-list {
    list-style: none;
    padding: 0;
}

.cast-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(139, 0, 0, 0.1);
    font-size: 1.1rem;
    color: var(--text-dark);
    text-align: center;
}

.cast-list li:last-child {
    border-bottom: none;
}

.creative-team {
    text-align: center;
    padding: 3rem 0;
    background: var(--gradient-primary);
    border-radius: 20px;
    color: var(--white);
}

.creative-team h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.creative-credits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.creative-credit h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.creative-credit p {
    font-size: 1.1rem;
    font-weight: 500;
}