:root {
    --primary-blue: #007bff;
    --secondary-blue: #00bfff;
    --dark-blue: #004080;
    --gradient-blue: linear-gradient(135deg, #007bff, #0056b3);
    --dark-bg: #111111;
    --card-bg: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #e0e0e0;
    --hexen-purple: #0b098f;  /* Zusätzliche Farbvariable für Hexenthematik */
    --hexen-gradient: linear-gradient(135deg, #271bd6, #110670);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: var(--dark-bg);
    background-image: url('desktop.jpeg');
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

@media (min-width: 769px) {
    body {
        background-attachment: fixed;
    }
}

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

/* Header & Navigation */
header {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    background: linear-gradient(to right, var(--primary-blue), var(--hexen-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 5px;
}

/* Modern Nav Menu */
.nav-links {
    display: flex;
    gap: 15px;
}

.nav-button {
    padding: 10px 20px;
    background-color: transparent;
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.nav-button:hover {
    color: var(--hexen-purple);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 42px;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--text-color), var(--hexen-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 15, 146, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

/* Modern Button */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--hexen-gradient);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 20, 196, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.6);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn:hover::after {
    transform: translateX(100%);
}

/* Navigation Cards */
.nav-cards {
    padding: 100px 0;
    background-color: var(--dark-bg);
    position: relative;
}

.nav-cards::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 123, 255, 0.1), transparent 75%);
    z-index: 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-blue);
    border-radius: 2px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.nav-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.nav-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
}

.card-img {
    height: 180px;
    width: 100%;
    background-color: var(--dark-blue);
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.nav-card:hover .card-img img {
    opacity: 1;
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.nav-card:hover .card-title::after {
    width: 100%;
}

.card-description {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Card Links */
.card-link {
    text-decoration: none;
    color: inherit;
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-text {
    color: #888888;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
}

/* Social Media Icons Styling - Angepasst an das Hexen-Design */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 22px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-icon.instagram {
    background: var(--hexen-gradient);
    box-shadow: 0 10px 20px rgba(39, 27, 214, 0.4);
}

.social-icon.facebook {
    background: var(--gradient-blue);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.4);
}

.social-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.social-icon.instagram:hover {
    box-shadow: 0 15px 30px rgba(39, 27, 214, 0.6);
}

.social-icon.facebook:hover {
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.6);
}

.social-icon:hover::after {
    transform: translateX(100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        height: 100%;
    }
    
    body {
        background-image: url('./hintergrund-mobile.png?v=7');
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
        background-repeat: repeat;
        min-height: 100vh;
        /* fixed komplett weglassen */
    }
    .navbar {
        flex-direction: column;
        padding: 15px 0;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 20px;
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
    }

    .nav-button {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .hero-content {
        margin: 0 20px;
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .card-grid {
        gap: 20px;
    }
}

/* Glassmorphism & Animation Effects */
.glass-effect {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* Neon glow effect */
.neon-blue {
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.7),
                 0 0 20px rgba(0, 123, 255, 0.5);
}

/* ===== Page-specific styles moved from kontakt.html ===== */
/* Styles für die Kontaktseite */
.contact-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2.5rem;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info {
    margin-bottom: 2.5rem;
    text-align: center;
}

.contact-info h2 {
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--hexen-gradient);
    border-radius: 3px;
}

.contact-info p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.contact-message {
    background: var(--hexen-gradient);
    padding: 1.8rem;
    border-radius: 12px;
    text-align: center;
    margin: 2.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 20, 196, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-message::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-message:hover::after {
    transform: translateX(100%);
}

.contact-message h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background-color: var(--card-bg);
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.contact-card h3 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid rgba(0, 123, 255, 0.3);
    padding-bottom: 0.8rem;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.contact-email {
    font-size: 1.3rem;
    margin: 1.8rem 0;
    background-color: rgba(0, 123, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-email:hover {
    background-color: rgba(0, 123, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.contact-email a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.contact-email a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* ===== Page-specific styles moved from bildergalerie.html ===== */
/* Verbesserte Lesbarkeit über dem Hintergrundbild */
.page-gallery .container, .page-gallery .gallery-content, .page-gallery .gallery-category {
    position: relative;
    z-index: 2;
}

/* Overlay über dem Hintergrundbild für besseren Kontrast */
body.has-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 20, 40, 0.75));
    z-index: 1;
}

/* Galerie-Stile */
.gallery-header {
    padding-top: 120px;
    text-align: center;
    margin-bottom: 50px;
}

.gallery-title {
    font-size: 42px;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--text-color), var(--hexen-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 15, 146, 0.3);
}

.gallery-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 30px;
}

.gallery-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.gallery-category {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    height: 280px;
}

.gallery-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
}

.category-img {
    height: 180px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    transition: background 0.3s ease;
}

.gallery-category:hover .category-overlay {
    background: linear-gradient(to top, rgba(13, 11, 143, 0.8), transparent);
}

.category-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.category-count {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
}

.category-count::before {
    content: "📷 ";
    margin-right: 5px;
}

.category-description {
    padding: 20px;
    color: var(--text-secondary);
}

/* Album-Ansicht Stile (zunächst ausgeblendet) */
.album-view {
    display: none;
    padding: 20px 0 80px;
}

.album-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.back-button {
    background: var(--hexen-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 15px;
    box-shadow: 0 5px 15px rgba(0, 20, 196, 0.4);
    transition: transform 0.3s ease;
}

.back-button:hover {
    transform: translateY(-3px);
}

.album-title {
    font-size: 28px;
    color: var(--text-color);
}

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

.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

/* Verbesserter Lightbox-Effekt */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1002;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 0, 0, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
    z-index: 1002;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav:hover {
    background: rgba(0, 123, 255, 0.5);
}

/* Responsive Design für die Galerie */
@media (max-width: 768px) {
    .gallery-categories {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .lightbox-img {
        max-width: 95%;
    }

    .gallery-header {
        padding-top: 100px;
    }

    .gallery-title {
        font-size: 32px;
    }

    .gallery-subtitle {
        font-size: 16px;
    }
}

/* --- Content Sections on index (Verein/Fahrplan/Hexennacht/Kontakt) --- */
.section {
    padding: 90px 0;
    position: relative;
}

.section .section-title {
    margin-bottom: 30px;
}

.section-text {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.section-card {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 28px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.pdf-frame {
    width: 100%;
    height: 650px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.25);
}

.section-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .pdf-frame { height: 520px; }
}
@media (max-width: 480px) {
    .pdf-frame { height: 420px; }
}

/* Contact section (shared) */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: rgba(0, 0, 0, 0.55);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-info {
    margin-bottom: 2.5rem;
    text-align: center;
}

.contact-info h2 {
    color: var(--primary-blue);
    font-size: 2.0rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--hexen-gradient);
    border-radius: 3px;
}

.contact-info p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.contact-message {
    background: var(--hexen-gradient);
    padding: 1.6rem;
    border-radius: 12px;
    text-align: center;
    margin: 2.2rem 0;
    box-shadow: 0 5px 15px rgba(0, 20, 196, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-message h3 {
    font-size: 1.45rem;
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-message p {
    color: #ffffff;
    opacity: 0.95;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    margin-top: 1.6rem;
    justify-content: center; 
}

.contact-card {
    background-color: var(--card-bg);
    padding: 1.6rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.contact-card h3 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1.0rem;
    border-bottom: 2px solid rgba(0, 123, 255, 0.3);
    padding-bottom: 0.7rem;
    font-size: 1.4rem;
    display: inline-block;
}

.contact-email {
    font-size: 1.15rem;
    margin: 1.4rem 0;
    background-color: rgba(0, 123, 255, 0.1);
    padding: 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.contact-email a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
}

.contact-email a:hover {
    text-decoration: underline;
    color: #ffffff;
}

@media (max-width: 900px) {
    .contact-details {
        grid-template-columns: 1fr;
        justify-items: center; /* cards nicely centered on mobile/tablet */
    }

    .contact-card {
        width: 100%;
        max-width: 560px;
    }

    .contact-container { padding: 1.5rem; }
}
/* Make nav feel consistent without underline */
.nav-button {
    border-radius: 10px;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Social icons inside contact section */
.social-inline {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 18px;
}

/* Give sections a bit more breathing room on mobile */
@media (max-width: 768px) {
    .section {
        padding: 90px 0;
    }
}
.section-flyer {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
}
.impressum-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #aaa;
  text-decoration: none;
}

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


/* ===== Bilder der letzten Jahre (Grid) ===== */
.subsection-title{
    margin-top: 26px;
    margin-bottom: 14px;
    font-size: 22px;
    color: var(--text-color);
    text-align: center;
}

.year-gallery{
    margin-top: 22px;
    padding-top: 8px;
}

.gallery-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.gallery-item{
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.gallery-item img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

.gallery-hint{
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    opacity: 0.95;
}

@media (max-width: 480px){
    .gallery-grid{
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 12px;
    }
}



/* --- Diashow / Slideshow --- */
.slideshow{
  position: relative;
  width: 100%;
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

/* Fixed, nice height that scales */
.slideshow .slides{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.slideshow .slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}

.slideshow .slide.is-active{
  opacity: 1;
}

.slideshow img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* equal crop */
  object-position: center;
}

/* Buttons */
.slide-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}

.slide-btn:hover{ background: rgba(0,0,0,.5); }
.slide-btn:focus{ outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; }

.slide-btn.prev{ left: 12px; }
.slide-btn.next{ right: 12px; }

/* Dots */
.slide-dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 0 12px;
}

.slide-dots .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  padding: 0;
}

.slide-dots .dot.is-active{
  background: rgba(255,255,255,.95);
}

/* Make it a bit taller on very wide screens */
@media (min-width: 900px){
  .slideshow .slides{ aspect-ratio: 21 / 9; }
}
