:root {
    --brand: #434a4c;
    --accent: #e02020;
    --radius: 30px;
    --bg-light: #f9f8f3; /* Dein warmes Off-White */
}

/* GRUNDLAGEN */
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Comfortaa', cursive; }
body { background: var(--bg-light); color: var(--brand); overflow-x: hidden; }

section { scroll-margin-top: 110px; }

/* HEADER */
.main-header { position: fixed; top: 0; left: 0; width: 100%; height: 90px; z-index: 2000; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.header-inner { 
    width: 92%; max-width: 1200px; 
    background: rgba(255, 255, 255, 0.6); /* Schöne Transparenz */
    backdrop-filter: blur(10px); 
    padding: 12px 30px; border-radius: 100px; display: flex; justify-content: space-between; 
    align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); pointer-events: all; 
}
.main-logo { height: 40px; }

.desktop-nav { display: flex; }
.nav-links-list { display: flex; list-style: none; }
.nav-links-list li { margin-left: 25px; }
.nav-links-list a { text-decoration: none; color: var(--brand); font-weight: 700; font-size: 0.9rem; transition: 0.3s; }
.nav-links-list a:hover { color: var(--accent); }

/* MOBILE NAVIGATION */
.menu-control { display: none; pointer-events: all; }
.hamburger { width: 28px; height: 20px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; position: relative; z-index: 2100; }
.hamburger span { width: 100%; height: 3px; background: var(--brand); border-radius: 5px; transition: 0.3s; }

.mobile-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: white; 
    z-index: 1950; display: flex; justify-content: center; 
    align-items: center; transform: translateY(-100%); transition: 0.5s ease-in-out; visibility: hidden; 
}
.mobile-overlay.active { transform: translateY(0); visibility: visible; }
.mobile-links { list-style: none; text-align: center; width: 100%; }
.mobile-links li { margin: 25px 0; }
.mobile-links a { text-decoration: none; color: var(--brand); font-size: 1.8rem; font-weight: 700; display: block; }
.mobile-links a:hover { color: var(--accent); }

/* SLIDER */
.hero-slider { height: 95vh; margin: 15px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: grab; user-select: none;}
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: 1s ease-in-out; display: flex; align-items: center; justify-content: center; }
.slide.active { opacity: 1; }
.hero-content h1 { color: white; font-size: clamp(2rem, 8vw, 4.5rem); text-align: center; padding: 0 20px; text-shadow: 0 5px 15px rgba(0,0,0,0.3); }

.slider-arrow { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: rgba(255,255,255,0.25); border: none; color: white; 
    width: 55px; height: 55px; border-radius: 50%; cursor: pointer; 
    z-index: 100; font-size: 1.5rem; transition: 0.3s;
}
.prev { left: 30px !important; }
.next { right: 30px !important; }

.dot-container { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 100; }
.dot { width: 10px; height: 10px; background: rgba(255,255,255,0.4); border-radius: 50%; cursor: pointer; }
.dot.active { background: white; width: 30px; border-radius: 10px; }

/* SEKTIONEN */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.section-header { margin-bottom: 50px; text-align: center; font-size: 1.8rem;}
.header-line { width: 40px; height: 4px; background: var(--accent); margin: 15px auto; border-radius: 10px; }
/* --- 1. SEKTIONS-LAYOUT (Abstände optimiert) --- */
.gallery-section, 
.about-section, 
.contact-section { 
    padding: 100px 5%; 
    margin-bottom: 0px; /* Mehr Platz zwischen den Sektionen */
    position: relative;
}

/* --- 2. GALLERY GRID (Kompakte Übersicht) --- */
.gallery-grid {
    display: grid;
    /* auto-fill + 200px sorgt für viele Bilder nebeneinander */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 15px; 
}

.gallery-item {
    position: relative;
    height: 220px; /* Kleinere Höhe für Galerie-Look */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: var(--brand); 
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

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

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* --- 3. HOVER OVERLAY (Text & Plus) --- */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 80%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; 
}

.overlay-content {
    color: white;
    text-align: center;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.plus-icon {
    display: block;
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
}

.image-desc {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .overlay-content { transform: translateY(0); }

/* --- 4. LIGHTBOX (Das Fenster, das sich öffnet) --- */
.lightbox {
    display: none; /* Wird vom JS auf 'flex' gesetzt */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lb-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
}

#lightboxImg {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lb-caption {
    color: white;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
}

/* Pfeile & Schließen */
.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 45px;
    cursor: pointer;
    z-index: 10001;
}

.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: 0.3s;
}

.lb-arrow:hover { background: var(--accent); }
.lb-prev { left: 25px; }
.lb-next { right: 25px; }

/* --- 5. CONTROLS (Mehr laden Button) --- */
.gallery-controls {
    text-align: center;
    margin-top: 50px;
}

.hidden-item { display: none; }

.load-more-btn {
    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.load-more-btn:hover {
    background: var(--brand);
    color: white;
}

/* News Section Styles */
.news-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Comfortaa', cursive, sans-serif;
}

/* Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Card Design */
.news-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.news-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #f0f0f0;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #c8372d;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
}

.news-content {
    padding: 22px;
}

.news-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #2b2b2b;
    font-weight: 700;
}

.news-content p {
    margin: 0;
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    font-weight: 300;
}

/* --- ABOUT SECTION --- */
.about-section {
    padding: 80px 5%;
    /* background: #fdfdfd; */ /* Ganz leichter Kontrast zum Weiß */
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Hover-Effekt: Karte hebt sich ab */
.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--brand); /* Falls du eine Markenfarbe definiert hast */
}

.card-icon {
    font-size: 2.0rem;
    margin-bottom: 20px;
    display: inline-block;
}

.about-section a {
    text-decoration: none; /* Keine Unterstreichung */
    color: inherit;        /* Textfarbe bleibt wie im Design definiert */
    display: block;        /* Die gesamte Kartenfläche wird klickbar */
    border-radius: 20px;   /* Gleicher Radius wie die Karte für saubere Overlays */
}

.about-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.about-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Animation für die Icons */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Responsive Anpassung für mobile Geräte */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 20px;
    }
    
    .about-card {
        padding: 30px 20px;
    }
}

/* --- KONTAKT SEKTION (GRID LAYOUT) --- */
.contact-section {
    padding: 120px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info schmaler, Formular breiter */
    gap: 40px;
    align-items: start;
}

.contact-info-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}

.card-icon {
    font-size: 2.0rem;
    margin-bottom: 20px;
    display: inline-block;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--brand);
}

.info-card p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.contact-card {
    background: white;
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.contact-card input, 
.contact-card textarea {
    width: 100%;
    padding: 18px 25px;
    margin-bottom: 20px;
    border-radius: 15px;
    border: 1px solid #eee;
    background: #fafafa;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.contact-card input:focus, 
.contact-card textarea:focus {
    border-color: var(--accent);
    background: white;
    outline: none;
    box-shadow: 0 5px 15px rgba(224, 32, 32, 0.05);
}

.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.submit-btn:hover {
    background: var(--brand);
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- RESPONSIVE OPTIMIERUNG --- */
@media (max-width: 950px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stacked auf Mobile */
    }

    .forecast-row {
        grid-template-columns: 1fr; /* Wetter-Details untereinander */
    }

    .w-main-display {
        flex-direction: column;
        gap: 10px;
    }

    .w-temp-big {
        font-size: 5rem;
    }

    .weather-glass-card {
        padding: 40px 25px;
    }
}

/* Popup Modal Background */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

/* Popup Container */
.popup-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 85%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    font-family: inherit;
}

.popup-icon {
    font-size: 40px;
    display: inline-block;
    margin-bottom: 10px;
    color: #c8372d; /* Rot-Ton deiner Website */
}

.popup-content h3 {
    margin-top: 0;
    color: #2b2b2b;
}

.popup-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.popup-btn {
    background-color: #c8372d;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.popup-btn:hover {
    background-color: #a82c23;
}

/* LIGHTBOX - MOBIL OPTIMIERT */
.lightbox { 
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); 
    backdrop-filter: blur(8px); z-index: 3000; justify-content: center; align-items: center; 
}
.lightbox-content { 
    max-width: 90%; max-height: 75vh; border-radius: 15px; 
    box-shadow: 0 0 30px rgba(0,0,0,0.5); object-fit: contain;
}
.lb-arrow { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); 
    color: white; width: 55px; height: 55px; border-radius: 50%; 
    display: flex; justify-content: center; align-items: center; 
    font-size: 1.5rem; transition: 0.3s; z-index: 3100;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.close-lightbox { 
    position: absolute; top: 30px; right: 30px; color: white; 
    font-size: 45px; cursor: pointer; z-index: 3200; 
    width: 50px; height: 50px; display: flex; justify-content: center; align-items: center;
}

/* FOOTER */
.modern-footer { background: #fafafa; padding: 60px 8% 30px; border-top: 1px solid #f0f0f0; border-radius: 50px 50px 0px 0px; }
.footer-top { text-align: center; margin-bottom: 30px; }
.footer-logo { height: 50px; opacity: 0.5; filter: grayscale(1); margin-bottom: 10px; }
.footer-divider { height: 1px; background: #eee; margin: 30px 0; }

/* Basis-Layout für Desktop (Copyright links, Links rechts) */
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #bbb; }

.legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.legal-links a {
  color: #bbb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Trennpunkt nach jedem Link (außer dem letzten) */
.legal-links a:not(:last-child)::after {
  content: "•";
  margin: 0 10px; /* Abstand links und rechts vom Punkt */
  color: #bbb;
}

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 900px) {
    .desktop-nav, .slider-arrow { display: none !important; }
    .menu-control { display: block; }
    .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .lb-arrow { width: 50px; height: 50px; top: auto; bottom: 30px; transform: none; }
    .lb-prev { left: 25%; transform: translateX(-50%); }
    .lb-next { right: 25%; transform: translateX(50%); }
    .close-lightbox { top: 20px; right: 20px; font-size: 35px; }
    .lightbox-content { max-width: 95%; max-height: 65vh; }
    
    /* 📱 Spezifische Footer-Anpassung für Handys ab 900px */
    .footer-bottom {
        flex-direction: column; /* Stapelt die Blöcke übereinander */
        gap: 15px; /* Abstand zwischen Links und Text */
        text-align: center; /* Zentriert das Copyright */
    }

    .legal-links {
        order: 1; /* Schiebt die Link-Gruppe nach oben */
    }

    /* Setzt das Copyright-Text-Element (falls es ein Tag/Klasse hat) nach unten.
       Sollte dein Text kein direktes Tag haben, sorgt order: 2 hier für die Sortierung */
    .footer-bottom > *:not(.legal-links) {
        order: 2; 
    }
}