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

:root {
    --primary: #E31E24;
    --secondary: #B01419;
    --success: #27ae60;
    --danger: #e74c3c;
    --dark: #1a1a1a;
    --light: #f8f8f8;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

main {
    scroll-snap-type: y proximity;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Add padding to body to prevent content from being hidden under fixed header */
body {
    padding-top: 50px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-brand h1 {
    font-size: 2rem;
    margin: 0;
    display: none; /* Hide text when logo is present */
}

.nav-brand h1 a {
    color: white;
    text-decoration: none;
}

.nav-brand h1 a:hover {
    text-decoration: underline;
}

.subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
    display: none; /* Hide subtitle when logo is present */
}

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

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: color 0.3s;
    padding: 0.5rem 0.75rem;
    display: inline-block;
    min-height: 48px;
    min-width: 48px;
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 1);
}

.nav-menu a.active {
    color: white;
    font-weight: 600;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

/* Sections */
section {
    padding: 3rem 0;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 2rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 2rem;
    filter: invert(20%) sepia(92%) saturate(6500%) hue-rotate(352deg) brightness(95%) contrast(94%);
}

.hero-description {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-next-event {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.hero-next-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-event-date {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hero-event-time {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.hero-event-location {
    font-size: 1.25rem;
    color: #555;
}

.events, .contact {
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    scroll-snap-align: start;
}

.events .container,
.contact .container {
    width: 100%;
}

.about h2, .events h2, .contact h2, .gallery h2, .impressum h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.impressum {
    background: white;
}

.impressum h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.impressum h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.about p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

.event-card {
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.event-content {
    padding: 1.5rem;
}

.event-card h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.event-date {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.event-location {
    color: #555;
    margin-bottom: 1rem;
}

.event-description {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.no-events {
    text-align: center;
    padding: 3rem;
    color: #555;
}

/* Next Event Highlight */
.next-event-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(227, 30, 36, 0.3);
    min-height: 250px;
}

.next-event-image {
    width: 40%;
    object-fit: cover;
}

.next-event-content {
    width: 60%;
    padding: 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.next-event-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.next-event-content .event-date {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    opacity: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.next-event-content .event-time-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    opacity: 1;
}

.next-event-content .event-location {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.next-event-content .event-description {
    font-size: 1rem;
    line-height: 1.7;
    color: white;
    opacity: 0.95;
}

/* Upcoming Events List */
.upcoming-title {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-list-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--primary);
}

.event-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-list-date {
    background: var(--primary);
    color: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-day {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.date-month {
    font-size: 1rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.event-list-info h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.event-time {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-location-small {
    color: #555;
    font-size: 0.95rem;
}

/* Gallery */
.gallery {
    background: #f8f9fa;
    padding: 4rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
}

.gallery .container {
    width: 100%;
}

.gallery-grid {
    column-count: 3;
    column-gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    break-inside: avoid;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease-in-out, filter 0.5s ease-in-out;
    border-radius: 8px;
}

.gallery-item img.progressive-image {
    background: #f5f5f5;
    filter: blur(10px);
    transform: scale(1.05);
}

.gallery-item img.progressive-image.loaded {
    filter: blur(0);
    transform: scale(1);
}

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

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 48px;
    cursor: pointer;
    padding: 10px;
    width: 60px;
    height: 60px;
    line-height: 1;
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
}

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

/* Contact */
.contact-info-simple {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
}

.contact-info-simple h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    font-size: 1.8rem;
}

.contact-info-simple h3:first-of-type {
    margin-top: 0;
}

.contact-info-simple p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.contact-item svg {
    flex-shrink: 0;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links-contact {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-links-contact a {
    color: var(--primary);
    transition: transform 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links-contact a:hover {
    transform: scale(1.15);
    color: var(--secondary);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.4);
}

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

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

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 1rem 0;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 55px;
    }

    html {
        scroll-padding-top: 55px;
    }

    .logo {
        height: 30px;
    }

    /* Hero Section Mobile */
    .hero-section {
        min-height: 70vh;
        padding: 1rem;
    }

    .hero-logo {
        max-width: 250px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-next-title {
        font-size: 1.4rem;
    }

    .hero-event-date {
        font-size: 1.5rem;
    }

    .hero-event-time {
        font-size: 1.25rem;
    }

    .hero-event-location {
        font-size: 1rem;
    }

    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .burger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 43px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--primary);
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: none;
        border-top: 2px solid var(--primary);
    }
    
    .nav-menu.active {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        padding: 1rem 0;
        max-height: 300px;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1rem;
        font-size: 1.2rem;
    }

    .events, .contact, .gallery {
        min-height: auto;
        padding: 3rem 0;
    }

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

    .next-event-highlight {
        flex-direction: column;
        min-height: auto;
    }

    .next-event-image {
        width: 100%;
        height: 250px;
    }

    .next-event-content {
        width: 100%;
        padding: 2rem;
    }

    .next-event-content h3 {
        font-size: 1.5rem;
    }

    .event-list-date {
        min-width: 60px;
        padding: 0.75rem;
    }

    .date-day {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

