/* style.css - Globales Stylesheet für Netzwerk Lebensraum */

/* --- VARIABLES --- */
:root {
    --primary: #009ec3;
    --primary-dark: #007a98;
    --secondary: #00364b;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9fbfd;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --shadow-card: 0 10px 40px -10px rgba(0,64,76,0.1);
    --radius: 16px;
}

/* --- BASE STYLES --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    margin: 0;
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { color: var(--secondary); margin-top: 0; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }

/* --- TYPOGRAPHY UTILS --- */
h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- ANIMATION UTILS --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- LAYOUT UTILS --- */
.section-padding { padding: 100px 20px; }
.bg-light { background-color: var(--bg-light); }

/* --- HEADER: INDEX (STICKY) --- */
#sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px; 
    z-index: 1000;
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    transition: all 0.4s ease;
    background: transparent; 
    gap: 20px; 
}

#sticky-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 10px 30px;
}

#sticky-header.hidden { transform: translateY(-150%); }

.header-logo { 
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; 
    font-size: 1.2rem;
    color: var(--secondary); 
    opacity: 0; 
    transform: translateY(10px);
    transition: all 0.5s ease;
    white-space: nowrap; 
}

.header-logo.visible { opacity: 1; transform: translateY(0); }

/* --- HEADER: SUBPAGES (STATIC) --- */
.sub-header {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-text { font-weight: 700; color: var(--secondary); font-size: 1.2rem; }
.back-link { font-size: 0.9rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 5px;}
.back-link:hover { transform: translateX(-5px); }

/* --- BUTTONS --- */
.btn-booking {
    background: white; 
    color: var(--primary); 
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(0,0,0, 0.2); 
    letter-spacing: 0.3px;
    white-space: nowrap; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s ease; 
}

.btn-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0, 0.3);
    background-color: #f0f8ff; 
}

#sticky-header.scrolled .btn-booking {
    background: var(--gradient); 
    color: white; 
    box-shadow: 0 5px 15px rgba(0, 158, 195, 0.3);
}

#sticky-header.scrolled .btn-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 158, 195, 0.4);
    background: var(--primary-dark);
}

.btn-big {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn-primary:hover { background: white; color: var(--primary); }
.btn-outline { border: 2px solid rgba(255,255,255,0.3); color: white; }
.btn-outline:hover { border-color: white; background: white; color: var(--secondary); }

/* --- HERO: INDEX --- */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/living_room.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,54,75,0.75), rgba(0,54,75,0.4)); 
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    max-width: 1000px;
    animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif; 
    font-size: 4rem; 
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800; 
    letter-spacing: -1px; 
    text-shadow: 0 5px 30px rgba(0,0,0,0.4); 
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0.95;
}

/* --- HERO: EVENT DETAILS --- */
.event-hero {
    /* Background Image is set inline in PHP for dynamic images */
    background-size: cover;
    background-position: center;
    /* color: white; <-- Das reicht alleine oft nicht für h1 */
    padding: 120px 20px; /* Etwas mehr Platz für "Special" Look */
    text-align: center;
    position: relative;
}

.event-hero h1 { 
    margin: 0; 
    font-size: 3.5rem; /* Größer für mehr Impact */
    font-weight: 800; 
    color: white !important; /* WICHTIG: Erzwingt Weiß */
    text-shadow: 0 5px 30px rgba(0,0,0,0.6); /* Starker Schatten für Lesbarkeit */
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.event-meta { 
    margin-top: 20px; 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    flex-wrap: wrap;
}

.meta-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 1.1rem; 
    color: white; /* Auch die Icons/Text weiß machen */
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Responsive Anpassung für Mobile */
@media (max-width: 768px) {
    .event-hero h1 { font-size: 2.2rem; }
    .meta-item { font-size: 1rem; }
}

/* --- PAGE TITLE: OVERVIEW --- */
.page-title { text-align: center; padding: 60px 20px 20px; }
.page-title h1 { color: var(--secondary); font-size: 2.5rem; margin-bottom: 10px; }

/* --- STATS BAR --- */
.stats-bar {
    background: var(--white);
    padding: 60px 20px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}
.stat-item { text-align: center; flex: 1; min-width: 150px; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary); display: block; }
.stat-label { font-size: 1rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }

/* --- BENEFITS GRID --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.benefit-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
    transition: 0.3s;
    border: 1px solid transparent;
}
.benefit-card:hover {
    background: white;
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
    border-color: rgba(0, 158, 195, 0.1);
}
.benefit-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }

/* --- VISION SPLIT --- */
.vision-split {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    gap: 60px;
}
.vision-text { flex: 1 1 500px; }
.vision-image { flex: 1 1 400px; position: relative; }

.vision-card-float {
    background: linear-gradient(135deg, #e6f9ff 0%, #ffffff 100%);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

/* --- PARTNER SECTION --- */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.filter-btn {
    background: white;
    border: 1px solid #e1e1e1;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
    font-size: 0.9rem;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 158, 195, 0.25);
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}
.partner-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: white;
}
.partner-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary);
    transition: 0.3s;
    opacity: 0.1;
}
.partner-card:hover::before { height: 10px; opacity: 1; }

.partner-logo-box {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}
.partner-logo-box img {
    max-height: 80px;
    max-width: 160px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}
.partner-card:hover .partner-logo-box img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}
.partner-info h4 { margin: 10px 0 5px; font-size: 1.1rem; }
.partner-info span { font-size: 0.85rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }

/* --- EVENTS GRID (SHARED) --- */
.events-grid {
    display: grid;
    /* auto-fill behält die Spaltenbreite bei, auch wenn nur eine Karte da ist */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.event-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    border: 1px solid #eee;
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.event-date {
    background-color: var(--primary);
    color: white;
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
}

.event-date .day { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.event-date .month { font-size: 0.9rem; text-transform: uppercase; margin-top: 5px; }
.event-date .year { font-size: 0.8rem; opacity: 0.8; margin-top: 2px; font-weight: 400; }

/* HIER NEU: Das Icon für erledigte Events im Datum-Feld */
.event-finished-icon {
    margin-top: 30px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.event-content {
    padding: 25px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative; /* WICHTIG für die Positionierung der Tags */
}

.event-content h3 {
    margin: 35px 0 10px 0; /* Mehr Abstand nach oben, damit Platz für Tags ist */
    font-size: 1.2rem;
    color: var(--secondary);
}

.event-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.event-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.event-link-details {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.event-link-details:hover { text-decoration: underline; color: var(--primary-dark); }

.event-btn-register {
    background-color: var(--secondary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
}
.event-btn-register:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

/* --- STATUS BADGE (VERGANGEN) --- */
.event-status-past {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f4f4f4; 
    color: #999; 
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: default;
    user-select: none;
    border: 1px solid #e5e5e5;
    /* HIER GEÄNDERT: Mehr Abstand nach unten */
    margin-bottom: 15px; 
}

/* --- EVENT DETAILS PAGE --- */
.content-wrapper {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.event-text h2 { color: var(--secondary); margin-bottom: 20px; }
.event-text p { margin-bottom: 20px; color: #555; font-size: 1.05rem;}

.event-sidebar {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    position: sticky;
    top: 100px;
    height: fit-content;
    border: 1px solid #eee;
}

.sidebar-title { font-weight: 700; color: var(--secondary); margin-bottom: 20px; display: block; font-size: 1.2rem;}

.info-row { margin-bottom: 15px; display: flex; gap: 10px; font-size: 0.95rem; }
.info-row i { color: var(--primary); width: 20px;}

.btn-register-full {
    background: var(--primary);
    color: white;
    display: block;
    text-align: center;
    padding: 15px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 30px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 158, 195, 0.3);
}
.btn-register-full:hover { background: var(--primary-dark); transform: translateY(-2px); }

.agenda-list { list-style: none; padding: 0; }
.agenda-list li { 
    padding: 10px 0; 
    border-bottom: 1px solid #eee; 
    display: flex;
    gap: 15px;
}
.agenda-time { font-weight: 700; color: var(--primary); min-width: 60px; }

/* --- FOOTER & CTA --- */
.cta-area {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-top: 80px;
    border-radius: 20px 20px 0 0;
}
.cta-area h2 { color: white; }
.cta-area h2::after { background: white; }
.cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-map iframe { 
    width: 100%; 
    height: 350px; 
    border: 0; 
    opacity: 0.9;
    filter: grayscale(100%); 
    transition: filter 0.5s; 
}
.footer-map iframe:hover { filter: grayscale(0%); }

.footer-simple { text-align: center; padding: 40px; background: var(--secondary); color: white; margin-top: 60px;}


/* --- STYLE.CSS ERGÄNZUNG: GALERIE & LIGHTBOX --- */

.gallery-section {
    padding: 60px 20px;
    background-color: white;
    border-top: 1px solid #eee;
}

.gallery-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary);
}

/* Masonry Layout */
.gallery-grid {
    column-count: 3; 
    column-gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    cursor: pointer; /* Zeigt an, dass es klickbar ist */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 158, 195, 0.2);
}

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

/* RESPONSIVE: Immer mindestens 2 Spalten */
@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2; 
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 2; /* HIER GEÄNDERT: Zwingend 2 Spalten */
        column-gap: 10px; /* Weniger Abstand auf kleinen Screens */
    }
    .gallery-item {
        margin-bottom: 10px; /* Weniger Abstand vertikal */
    }
}

/* --- LIGHTBOX OVERLAY STYLES --- */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 10000; /* Über allem */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95); /* Fast schwarzer Hintergrund */
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* Schließen Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}
.lightbox-close:hover { color: var(--primary); }

/* Navigation Pfeile */
.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -25px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-next { right: 20px; }
.lightbox-prev { left: 20px; }

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--primary);
}

@media (max-width: 600px) {
    .lightbox-prev, .lightbox-next {
        font-size: 18px;
        width: 40px;
        height: 40px;
        padding: 10px;
    }
}


/* --- EVENT KATEGORIEN & FILTER (NEU & FANCY) --- */

/* Der Tag auf der Karte (Pill-Shape) */
/* Der Container für die Tags (platziert sie rechts oben) */
.event-tags-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
    z-index: 2;
}

/* Der kleine Tag selbst (angepasst: kleiner) */
.event-tag {
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 158, 195, 0.08);
    color: var(--primary);
    /* KLEINER GEMACHT: */
    font-size: 0.6rem; /* Vorher 0.7rem */
    font-weight: 700;
    padding: 4px 10px; /* Vorher 6px 14px */
    border-radius: 50px;
    /* Margins entfernt, macht jetzt der Container-Gap: */
    margin-bottom: 0;
    margin-right: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Etwas weniger Spacing */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    text-decoration: none !important;
}

.event-tag::before {
    content: '#';
    margin-right: 3px;
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.9em;
}

.event-tag:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 158, 195, 0.2);
}

/* Container für die Filter-Buttons */
.event-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
    padding: 20px;
    background: #f8fafd; /* Sehr helles Grau-Blau */
    border-radius: var(--radius);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
}

/* Die Filter-Buttons selbst */
.event-filter-btn {
    background: white;
    border: 2px solid #eef2f7;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.event-filter-btn:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Aktiver Button (Hervorgehoben) */
.event-filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 158, 195, 0.4);
    transform: translateY(-2px);
}


/* --- ANMELDE MODAL / POPUP --- */
.modal-overlay {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 54, 75, 0.8); /* Dunkelblau transparent */
    backdrop-filter: blur(5px);
    overflow-y: auto; /* Scrollen ermöglichen falls Formular hoch ist */
}

/* --- ANMELDE MODAL (ZENTRIERT) --- */
.modal-container {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    
    /* PERFEKTE ZENTRIERUNG: */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* WICHTIG FÜR KLEINE HANDYS (Querformat): */
    max-height: 90vh; /* Maximal 90% der Höhe */
    overflow-y: auto; /* Scrollen erlauben */
    
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: fadeIn 0.4s ease;
    margin: 0; 
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Anpassung für sehr kleine Screens */
@media (max-width: 400px) {
    .modal-container {
        padding: 25px;
        width: 95%;
    }
}

/* Anpassung Padding für sehr kleine Handys */
@media (max-width: 400px) {
    .modal-container {
        padding: 25px;
        width: 95%;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}
.modal-close:hover { color: var(--primary); }

.modal-header h3 {
    color: var(--secondary);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.modal-event-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 30px;
    display: block;
    font-size: 1.1rem;
}

/* Formular Styles */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 158, 195, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 158, 195, 0.3);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 600;
}
.form-message.success { background-color: #d4edda; color: #155724; }
.form-message.error { background-color: #f8d7da; color: #721c24; }



/* --- CTA PARTNER SECTION (FARBE ANGEPASST) --- */
.cta-partner-section {
    background: var(--gradient); 
    padding: 80px 20px;
    text-align: center;
    color: white;
    margin-top: 60px;
    border-radius: var(--radius);
    max-width: 1100px; /* <--- SCHMÄLER GEMACHT */
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 158, 195, 0.3); 
}

.cta-partner-section h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.cta-partner-section h2::after {
    background: white; 
}

.cta-partner-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    opacity: 0.95;
}

.btn-cta-partner {
    background: white;
    color: var(--primary); /* Textfarbe angepasst */
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    display: inline-block;
    transition: all 0.3s;
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-cta-partner:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .cta-partner-section {
        border-radius: 0;
        padding: 60px 20px;
    }
    .cta-partner-section h2 {
        font-size: 2rem;
    }
}

/* --- PARTNER MODELLE (PRICING) --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 158, 195, 0.15);
    border-color: var(--primary);
}

/* Premium Karte hervorheben */
.pricing-card.premium {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 158, 195, 0.1);
    transform: scale(1.05); /* Macht die Karte leicht größer */
}

.pricing-card.premium:hover {
    transform: scale(1.05) translateY(-10px);
}

.premium-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 10px rgba(0, 158, 195, 0.3);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.pricing-header h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.pricing-header .price {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-body {
    flex-grow: 1;
    margin-bottom: 30px;
    text-align: left; /* Erzwingt die linksbündige Ausrichtung des gesamten Blocks */
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 12px 0;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start; /* Hält das Icon bei mehrzeiligem Text oben */
    text-align: left; /* Text strikt linksbündig */
    gap: 15px; /* Etwas mehr Abstand zwischen Icon und Text */
}

.pricing-features li i {
    color: var(--primary);
    font-size: 1.1rem; /* Icon minimal größer */
    margin-top: 3px; /* Richtet das Icon exakt mit der ersten Textzeile aus */
    flex-shrink: 0; /* Verhindert, dass das Icon bei langem Text gequetscht wird */
}

/* Auf Handys die Vergrößerung der Premium-Karte deaktivieren, damit sie nicht über den Rand ragt */
@media (max-width: 768px) {
    .pricing-card.premium {
        transform: scale(1);
    }
    .pricing-card.premium:hover {
        transform: translateY(-5px);
    }
}



/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    .stats-bar { flex-direction: column; gap: 40px; margin-top: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid #eee;}
    .vision-split { flex-direction: column-reverse; }
    
    #sticky-header { padding: 10px 20px; }
    .header-logo { font-size: 1rem; } 
    .btn-booking { padding: 8px 16px; font-size: 0.85rem; }
    .btn-booking i { display: none; } 
    
    .event-card { flex-direction: column; }
    .event-date { width: 100%; flex-direction: row; gap: 10px; padding: 10px; justify-content: center; align-items: baseline;}
    .event-date .month { margin-top: 0; }
    .event-date .year { margin-left: 5px; font-size: 0.9rem;}
    
    .content-wrapper { grid-template-columns: 1fr; }
    .event-hero h1 { font-size: 2rem; }
    .event-meta { flex-direction: column; gap: 10px; }
}

@media (max-width: 400px) {
    .header-logo { font-size: 0.9rem; }
    .btn-booking { font-size: 0.75rem; padding: 6px 12px; }
}

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