:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #38bdf8;

    /* Ratings Colors */
    --color-sehr-gut: #3b82f6;
    /* Blue */
    --color-gut: #10b981;
    /* Green */
    --color-zufriedenstellend: #f59e0b;
    /* Yellow/Amber */
    --color-ausreichend: #f97316;
    /* Orange */
    --color-nicht-ausreichend: #ef4444;
    /* Red */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 400px;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.highlight {
    color: var(--accent);
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.refresh-btn {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: rgba(56, 189, 248, 0.2);
}

.refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.refresh-status {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Filters */
.filters-container {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glass-input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
}

/* Fix for options being white on white in some browsers */
.glass-input option {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-item input {
    accent-color: var(--accent);
}

.color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.stats {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 10px;
}

/* Results List */
.results-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.card-title {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
}

.score-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    color: white;
    min-width: 30px;
    text-align: center;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.8rem;
}

.review-link {
    color: var(--accent);
    text-decoration: none;
}

.review-link:hover {
    text-decoration: underline;
}

/* Mobile Toggle */
.mobile-only {
    display: none;
}

.view-toggle {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    cursor: pointer;
    font-family: inherit;
    display: none;
    /* Hidden by default on desktop */
    align-items: center;
    gap: 8px;
}

.search-box {
    position: relative;
    margin-bottom: 10px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: absolute;
        height: 100%;
    }

    .mobile-only {
        display: flex;
    }

    .map-container {
        width: 100%;
        height: 100%;
        position: absolute;
    }

    /* When viewing map, hide sidebar */
    body.view-map .sidebar {
        transform: translateX(-100%);
    }

    /* When viewing list (default), sidebar is on top */
}

/* Map Container (Desktop) */
.map-container {
    flex: 1;
    background: #1e1e1e;
    position: relative;
}

/* Map Pins */
.custom-pin {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 10px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}