/* Parlameter - Map Hero Section */

:root {
    --hero-bg: #0a0f1c;
    --hero-accent: #0f766e;
    --hero-text: #e2e8f0;
    --hero-muted: #64748b;
}

/* ==================== BODY WITH HERO ==================== */
body.has-map-hero {
    overflow-x: hidden;
}

/* ==================== MAP HERO SECTION ==================== */
.map-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--hero-bg);
    overflow: hidden;
    z-index: 50; /* Über allem anderen */
}

.map-container {
    position: absolute;
    inset: 0;
    cursor: grab;
}

.map-container:active {
    cursor: grabbing;
}

#mapCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==================== MAP OVERLAY ==================== */
.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 15, 28, 0.4) 100%);
}

.map-content {
    text-align: center;
    pointer-events: auto;
}

.map-title {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.map-subtitle {
    font-size: 1.25rem;
    color: var(--hero-text);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.map-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

.map-stat {
    text-align: center;
}

.map-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-variant-numeric: tabular-nums;
}

.map-stat-label {
    font-size: 0.8125rem;
    color: var(--hero-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero CTA Button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--hero-accent);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.9s;
}

.hero-cta:hover {
    background: #14b8a6;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.3);
}

.hero-cta svg {
    width: 18px;
    height: 18px;
    animation: bounce 2s ease-in-out infinite;
}

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

/* ==================== MAP CONTROLS ==================== */
.map-controls {
    position: absolute;
    right: 1.5rem;
    bottom: 6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 20;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.map-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.map-control-btn svg {
    width: 18px;
    height: 18px;
}

/* ==================== SCROLL INDICATOR ==================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--hero-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 1.2s;
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    color: white;
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ==================== DASHBOARD SECTION ==================== */
.dashboard-section {
    position: relative;
    background: var(--color-bg, #f8fafc);
    min-height: 100vh;
}

.dashboard-section .topbar {
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-section .app-layout {
    display: flex;
    min-height: calc(100vh - var(--topbar-height, 60px));
}

.dashboard-section .sidebar {
    position: sticky;
    top: var(--topbar-height, 60px);
    height: calc(100vh - var(--topbar-height, 60px));
    width: var(--sidebar-width, 240px);
    flex-shrink: 0;
    overflow-y: auto;
    background: var(--color-surface, #ffffff);
    border-right: 1px solid var(--color-border, #e2e8f0);
}

.dashboard-section .main-content {
    flex: 1;
    min-width: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .map-title {
        font-size: 2.5rem;
    }
    
    .map-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .map-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .map-stat-value {
        font-size: 2rem;
    }
    
    .map-controls {
        right: 1rem;
        bottom: 5rem;
    }
    
    .dashboard-section .sidebar {
        display: none;
    }
    
    .dashboard-section .main-content {
        margin-left: 0;
    }
}
