/* 1. VARIABLEN & BASICS */
:root {
    --savannah-orange: #e67e22;
    --deep-bush: #2c3e50;
    --sand-light: #f4ece2;
    --white-pan: #ffffff;
}

body, html { 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: var(--sand-light); 
    color: var(--deep-bush);
    overflow-x: hidden; 
    scroll-behavior: smooth;
}

/* 2. HEADER */
header {
    background: var(--deep-bush);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky; /* Sticky für besseres Scroll-Erlebnis */
    top: 0;
    z-index: 2000;
}

.logo { 
    font-size: 1.5rem;
    font-weight: bold; 
    letter-spacing: 2px; 
    color: var(--savannah-orange); 
    text-transform: uppercase; 
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--savannah-orange);
}

/* 3. MAP & OVERLAY */
#map-container { position: relative; height: 85vh; width: 100%; border-bottom: 5px solid var(--savannah-orange); }
#map { height: 100%; width: 100%; }

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 280px;
    border-left: 5px solid var(--savannah-orange);
}

/* Suchergebnisse */
#search-results {
    background: white;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    display: none;
    position: absolute;
    width: calc(100% - 30px);
    z-index: 1001;
}

#search-results div { padding: 10px; cursor: pointer; border-bottom: 1px solid #eee; }
#search-results div:hover { background-color: #f0f0f0; }

/* 4. LEAFLET ANPASSUNGEN */
.point-label {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #999;
    border-radius: 3px;
    padding: 2px 5px;
    font-weight: bold;
    font-size: 11px;
    color: var(--deep-bush);
    pointer-events: none;
    white-space: nowrap;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 5px;
    font-family: 'Segoe UI', sans-serif;
}

/* 5. CONTENT CARDS */
.content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-5px); }

.btn {
    background-color: var(--savannah-orange);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

/* 6. FOOTER (NEU mit Links) */
footer {
    text-align: center;
    padding: 40px;
    background: var(--deep-bush);
    color: white;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--savannah-orange);
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--deep-bush);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none; /* Standardmäßig ausgeblendet */
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--savannah-orange);
}

#cookie-banner p { margin: 0; font-size: 0.9rem; line-height: 1.4; }
#cookie-banner a { color: var(--savannah-orange); text-decoration: none; font-weight: bold; }

.cookie-btn {
    background: var(--savannah-orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.cookie-btn:hover { opacity: 0.9; }

/* Mobile Anpassung */
@media (max-width: 600px) {
    #cookie-banner { flex-direction: column; text-align: center; }
}