/* --- COOKIE BANNER STYLING --- */
#cookie-banner {
    position: fixed;
    top: 20px; /* Fixiert das Banner am oberen Bildschirmrand */
    left: 50%;
    transform: translateX(-50%) translateY(-200%); /* Startet unsichtbar außerhalb des oberen Rands */
    width: 90%;
    max-width: 600px;
    background-color: #0f172a; 
    color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    
    /* Zwingt das Banner vor alle Karten-Layer und Overlays */
    z-index: 9999999 !important; 
    
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Wird vom JavaScript aufgerufen */
#cookie-banner.show {
    transform: translateX(-50%) translateY(0) !important;
}


.cookie-banner-text h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.cookie-banner-text p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.4;
}

.cookie-banner-text a {
    color: #2563eb;
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cookie-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-btn-accept {
    background-color: #2563eb; /* Akzent-Blau */
    color: #ffffff;
    border: none;
}

.cookie-btn-accept:hover {
    background-color: #1d4ed8;
}

.cookie-btn-deny {
    background-color: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
}

.cookie-btn-deny:hover {
    background-color: #1e293b;
    color: #ffffff;
}

@media (max-width: 480px) {
    .cookie-banner-buttons {
        flex-direction: column;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}


/* --- 2. DIE KOMOOT ZWEI-KLICK-SPERRE & PLATZHALTER --- */
.map-privacy-container {
    position: relative;
    width: 100%;
    background-color: transparent !important; 
    /* background-color: #0f172a; Dunkler Hintergrund als Basis */
    margin: 20px auto;
    font-family: Arial, Helvetica, sans-serif;
}

.map-privacy-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: none !important; */
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px;
    /* background: transparent !important; */
    /* background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);  Eleganter Dark-Mode-Verlauf */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    z-index: 10;
    transition: opacity 0.4s ease;
}

.map-privacy-placeholder h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.map-privacy-placeholder p {
    color: #475569; /* #1e293b; */
    font-size: 0.95rem;
    max-width: 500px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.map-privacy-btn {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.map-privacy-btn:hover {
    background-color: #1d4ed8;
}

.map-privacy-btn:active {
    transform: scale(0.98);
}

/* Versteckt den Komoot iFrame komplett vor der aktiven Freigabe */
.map-privacy-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}


/* --- 3. RESPONSIVE OPTIMIERUNG FÜR SMARTPHONES --- */
@media (max-width: 480px) {
    .cookie-banner-buttons {
        flex-direction: column;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    .map-privacy-placeholder p {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }
    .map-privacy-placeholder h3 {
        font-size: 1.1rem;
    }
}
