/* ========================================
   LAGEBEWERTUNG STYLES - v2.7.8
   ========================================
   v2.7.8 - Container Structure Fix (User Request - FINAL FIX):
   - FIXED: .analysis-content padding: 0; (NO padding - identisch zu Analysis Header!)
   - FIXED: .category-scores padding: 0 20px 8px 20px; (Padding moved here!)
   - FIXED: .category-card margin: 0 0 10px 0; (NO negative margins!)
   - FIXED: .subcategory-filters-container padding: 0 20px; (horizontal padding)
   - FIXED: .poi-list padding: 0 20px; (horizontal padding)
   - FIXED: .poi-item padding: 8px 0; (nur vertical - horizontal vom parent)
   - RESULT: Keine horizontale Scrollbar mehr! Identisch zu Analysis Header!
   - RESULT: Container passt sich automatisch an Fensterbreite an!

   v2.7.7 - Category Cards Edge-to-Edge (User Request - Match Analysis Header):
   - FIXED: .category-card margin: 0 -20px 10px -20px; (negative margins = card background edge-to-edge)
   - FIXED: .category-card-header padding: 12px 20px 8px 20px; (removed negative margins)
   - FIXED: .expand-poi-btn margin: 0 0 12px 0; (removed negative margins)
   - FIXED: .poi-item padding: 8px 20px; (added horizontal padding for content alignment)
   - RESULT: Category Card Background geht von Rand zu Rand (wie Analysis Header!)
   - RESULT: Innerer Content bleibt bei 20px vom Rand aligned!

   v2.7.5 - Container Padding Fix (User Request - FINAL):
   - FIXED: analysis-content padding auf 20px (Container-Ebene)
   - FIXED: category-card padding zurück auf 0px (kein doppeltes padding)
   - RESULT: Object Details + Category Cards beide 20px vom Rand!

   v2.7.4 - Category Card Inner Padding Fix (User Request):
   - FIXED: Category Card padding auf 20px (gleich wie Object Details)
   - RESULT: Inhalt startet bei EXAKT gleicher Position (5px + 20px = 25px)

   v2.7.3 - Category Card Width Alignment (User Request):
   - FIXED: Category Cards exakt gleiche Breite wie Object Details
   - REMOVED: padding von .category-card (0 statt 12px 16px)
   - ADDED: padding zu .category-card-header (12px 16px 8px 16px)
   - ADDED: padding zu .subcategory-filters-container (0 16px)
   - ADDED: padding zu .poi-list (0 16px)
   - ADJUSTED: .expand-poi-btn margins (16px left/right + 12px bottom)
   - RESULT: Category Card Inhalt startet bei exakt gleicher Position wie Object Details!

   v2.6.2 - Subcategory Pills Liquid Glass (User Request):
   - ACTIVE STATE: Solid dark blue → Pure Liquid Glass
   - CHANGE: background: rgba(255,255,255,0.6) + backdrop-filter: blur(10px)
   - HIGHLIGHT: Only border changes (2px solid dark blue) + text color
   - NO BOX-SHADOW: Clean, minimalistic
   - RESULT: Pills harmonize with Category Cards (pure glass)

   v2.6.1 - Shadow Removal (User Request):
   - REMOVED: Category card shadows (box-shadow: none)
   - REASON: User preference for flatter design
   - GLASSMORPHISM: Retained (backdrop-filter still active)

   v2.6.0 - Liquid Glass System Migration (DESIGN_SYSTEM.md):
   - GLASSMORPHISM: backdrop-filter: blur(20px) saturate(180%) (iOS-konform)
   - SHADOWS: Multi-layer soft shadows (var(--shadow-md), blur ≥ 12px)
   - PILLS: Erhöhte Opacity (0.08 → 0.6), border-radius (100vmax → 16px)
   - BACKDROP: Standard blur() statt custom SVG filter
   - BORDER: 0.5px solid rgba(255, 255, 255, 0.3) (iOS-Standard)
   - RESULT: 100% konform mit DESIGN_SYSTEM.md Liquid Glass Guidelines!

   v2.5.8 - TRUE Frosted Glass (No Shadow):
   - BASED ON: Frosted Glass CSS (angepasst)
   - BACKGROUND: rgba(255,255,255,.08) - Ultra-transparent!
   - BORDER: 2px solid transparent
   - BOX-SHADOW: 0 0 0 2px rgba(255,255,255,.6) - NUR Outline, KEIN Schatten!
   - BACKDROP-FILTER: url(#frosted) - Custom SVG Filter
   - NO PSEUDO-ELEMENTS: Keine ::before/::after
   - ACTIVE: Dunkelblau (#003566) mit Outline only
   - RESULT: Clean Frosted Glass ohne störende Schatten!

   v2.5.7 - Apple Liquid Glass Effect (macOS Inspired):
   - BASED ON: Apple's macOS Liquid Glass CSS technique
   - BACKDROP-FILTER: blur(3px) auf ::before pseudo-element
   - OUTLINE SHINE: inset box-shadows auf ::after für Glanz-Effekt
   - BORDER-RADIUS: 100vmax für perfekt runde Ecken
   - SHADOWS: Subtle outer shadows (4-6px) + inset highlights
   - ACTIVE: iOS Blue (rgb(0 122 255)) mit angepasstem shine
   - RESULT: Authentischer Apple Liquid Glass Look!

   v2.5.6 - Ultra Liquid Glass Pills (KEINE Schatten!):
   - FIXED: Outer Shadows komplett entfernt (kein Drop-Shadow mehr!)
   - GRADIENT: Heller/glänzender (weiß→hellgrau→weiß) für Glas-Effekt
   - INSET ONLY: Nur inset shadows für 3D (top highlight + bottom shadow)
   - BORDER: Ultra-dünn (0.5px) und transparent für cleanen Look
   - ACTIVE: iOS Blue mit starkem inset highlight für Liquid Glass
   - RESULT: Echter Liquid Glass ohne störende Schatten!

   v2.5.5 - Liquid Glass Pills (Funktioniert auf weißem Hintergrund):
   - FIXED: Subcategory Pills mit echtem "Liquid Glass" Effekt
   - GRADIENT: Subtiler Gradient (hellgrau→sehr hellgrau→hellgrau)
   - SHADOWS: Multi-Layer 3D-Effekt (outer glow + main shadow + inset highlights/shadows)
   - INACTIVE: Light gray gradient mit 4-Layer shadows für 3D-Tiefe
   - ACTIVE: iOS Blue gradient mit glow effect + inner highlights
   - RESULT: Apple-like Liquid Glass ohne backdrop-filter (funktioniert auf weiß!)

   v2.4.1 - UI Optimization (7 Improvements):
   - OPTIMIERT: Header-Spacing kompakter (padding 12px→8px, margin 12px→8px)
   - ENTFERNT: Card-Schatten für flacheres Design (box-shadow: none)
   - FIXED: Score Circle startet/endet bei 12-Uhr (stroke-dashoffset: 0)
   - GRADIENT: Weiß→Dunkelblau (0-20): Hellgrau→Hellblau→Mittelblau→Dunkelblau
   - SCORE-TEXT: SF Mono Font, 16px, Medium Weight (wie Distanz-Badge)
   - POI-SPACING: Kompakter (poi-list margin 12px→4px, expand-btn padding 10px→6px)
   - RESULT: Kompakteres, konsistenteres Design mit Gradient-System

   v2.4.0 - Consolidation & Rename:
   - RENAMED: poi-scoring.css → lagebewertung.css (semantic German name)
   - MIGRATED: 5 legacy CSS rulesets from dashboard.css (~120 lines):
     * .location-overview / .location-title (Location Header)
     * .score-overview (Glassmorphic Score Container)
     * .location-category system (Expandable Categories)
     * .score-bar / .score-bar-fill (Progress Bars)
     * .location-items (POI List Container)
   - RESULT: Single source of truth for ALL Lagebewertung styles
   - TOTAL SIZE: 686 → 806 lines (+120 lines, +17%)
   - BENEFITS: Feature-based organization, improved maintainability

   v2.3.2 - Critical Fixes Round 2:
   - FIXED: Overall Score NaN (parseFloat + filter)
   - FIXED: Score text alignment (dominant-baseline: middle)
   - FIXED: Circle roundness (padding: 2px)
   - FIXED: Card width (margin: 0 -20px)
   - FIXED: POI list spacing (padding: 8px 0)

   v2.3.1 - Critical Fixes:
   - Fixed card width (margin: 0 -16px)
   - Fixed score circle size (48px enforced)
   - Pills start inactive (gray), click to activate
   - Show all POIs when no pills active

   v2.3.0 - Modern Apple 2025 Design:
   - Full-width cards (match analysis-object-section)
   - Larger score circles (48px) with ultra-thin strokes (1.5px)
   - Pills/chips for subcategories (iOS-style tags)
   - Clean POI list (dividers, no borders)
   - Modern borderless expand buttons

   v2.2.0 - Ultra-Compact + Thin Strokes:
   - 8px padding everywhere (cards, header, gaps)
   - Thin score circle strokes (2.5px)
   - Clean score numbers (no decimals)

   v2.1.0 - Compact Design:
   - 30% reduced padding & spacing
   - Smaller font sizes (10-20%)
   - Color-coded score circles (red/orange/green)

   v2.0.0 - Complete redesign:
   - Clash Display + Satoshi fonts
   - Score Circles (SVG)
   - Glassmorphic design
   - No emojis (SVG icons only)
   - Expand/Collapse for subcategories & POIs
   ======================================== */

/* ========================================
   DESIGN SYSTEM VARIABLES (DESIGN_SYSTEM.md)
   ======================================== */

:root {
    /* Shadows (Multi-Layer iOS-Style) */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);

    /* Brand Colors */
    --color-medium-blue: #0077b6;
    --color-dark-blue: #003566;
}

/* ========================================
   OVERALL SCORE - REMOVED (jetzt im Header)
   ======================================== */

/* .overall-score-header → ENTFERNT (Score Circle jetzt in .header-score-container) */
/* .overall-score-content → ENTFERNT */
/* .overall-score-text → ENTFERNT */
/* .overall-score-subtitle → ENTFERNT */

/* ========================================
   SCORE CIRCLE (SVG)
   ======================================== */

.score-circle {
    flex-shrink: 0;
    position: relative;
    width: 48px;
    height: 48px;
}

.score-circle svg {
    transform-origin: center;
}

.score-circle-bg {
    stroke: rgba(0, 0, 0, 0.08);
}

.score-circle-progress {
    transition: stroke-dasharray 1s ease-out, stroke 0.3s ease;
    /* Stroke color dynamisch gesetzt via JavaScript interpolateScoreColor() */
    /* Smooth gradient: Weiß (#FFFFFF) bei 0 → Dunkelblau (#003566) bei 20 */
}

.score-circle-text {
    font-family: "SF Mono", Monaco, "Courier New", monospace;  /* Wie Distanz-Badge */
    font-weight: 500;  /* Medium Weight wie "674m" */
    font-size: 16px;  /* Kompakter: 20px → 16px */
    fill: #64748b;  /* Statisches Grau wie Distanz-Badge */
    transition: fill 0.3s ease;
}

/* ========================================
   CATEGORY CARD
   ======================================== */

.category-card {
    /* Glassmorphism (DESIGN_SYSTEM.md) */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Border (iOS-Standard) */
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;

    /* Shadow - Removed per user request */
    box-shadow: none;

    /* Spacing */
    padding: 0;  /* Kein padding - innere Elemente haben individuelles padding */
    margin: 0 0 10px 0;  /* Standard margin - KEINE negativen Margins mehr! */

    /* Animation */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    box-shadow: none;
    transform: translateY(-2px);
}

/* ========================================
   CATEGORY CARD HEADER
   ======================================== */

.category-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 8px 20px;  /* Padding für Content-Alignment (Top 12px, Bottom 8px) */
    margin-bottom: 0;  /* Kein margin - border-bottom als Separator */
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.06);
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;        /* Garantiert minimale Breite */
    flex-shrink: 0;         /* Verhindert Komprimierung im Flex Container */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.category-icon svg {
    width: 20px;
    height: 20px;
}

.category-card-header h3 {
    font-family: "Clash Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #0f172a;
    margin: 0;
}

/* ========================================
   MAP TOGGLE BUTTON
   ======================================== */

.map-toggle-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;  /* Kein Background */
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #94a3b8;  /* Hellgrau wenn inaktiv */
}

.map-toggle-btn:hover {
    background: transparent;  /* Kein Background beim Hover */
    transform: scale(1.1);  /* Größerer Scale-Effekt */
}

.map-toggle-btn:active {
    transform: scale(0.95);
}

.map-toggle-btn.active {
    background: transparent;  /* Kein Background wenn aktiv */
    color: #003566;  /* Dunkelblau wie Score Circle bei 20 Punkten */
}

.map-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   CATEGORY HEADER RIGHT - Expand Button + Map Toggle
   ======================================== */

.category-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   CATEGORY EXPAND BUTTON (Accordion)
   ======================================== */

.category-expand-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #94a3b8;  /* Hellgrau wenn collapsed */
}

.category-expand-btn:hover {
    background: transparent;
    transform: scale(1.1);
}

.category-expand-btn:active {
    transform: scale(0.95);
}

/* Chevron Icon */
.category-expand-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
}

/* Expanded State - Rotate chevron 180° */
.category-expand-btn.expanded svg {
    transform: rotate(180deg);
}

/* Active Color when expanded */
.category-expand-btn.expanded {
    color: #003566;  /* Dunkelblau */
}

/* ========================================
   CATEGORY COLLAPSED STATE (Accordion)
   ======================================== */

/* Hide all content when category is collapsed */
.category-card.main-collapsed .subcategory-filters-container,
.category-card.main-collapsed .poi-list,
.category-card.main-collapsed .expand-poi-btn {
    display: none;
}

/* Remove bottom border when collapsed (cleaner look) */
.category-card.main-collapsed .category-card-header {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ========================================
   SUBCATEGORY FILTERS - 2025 Apple Pills/Chips
   ======================================== */

.subcategory-filters-container {
    padding: 8px 20px 0 20px;  /* 8px top padding - spacing from header border */
    margin-bottom: 12px;
}

.subcategory-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.subcategory-filters.collapsed {
    max-height: 80px;  /* ~2 rows */
}

.subcategory-filters.expanded {
    max-height: 1000px;  /* Large enough for all */
}

.subcategory-filter {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;

    /* Glassmorphism (DESIGN_SYSTEM.md Pill Pattern) */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Border (iOS-Standard) */
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;  /* iOS-konform (nicht full pill!) */

    /* Typography */
    font-family: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #334155;

    /* Interaction */
    cursor: pointer;
    user-select: none;
    outline: 0;

    /* Animation */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.subcategory-filter:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--color-medium-blue);
}

.subcategory-filter:active {
    transform: scale(0.98);
}

/* Active state - Liquid Glass (DESIGN_SYSTEM.md v2.6.2) */
.subcategory-filter.active {
    /* Pure Liquid Glass - nur Border hebt sich ab */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Stronger border for active state */
    border: 2px solid var(--color-dark-blue);  /* #003566 */
    color: var(--color-dark-blue);  /* Text dunkelblau statt weiß */

    /* No box-shadow (user request) */
    box-shadow: none;
}

.subcategory-filter.active:hover {
    /* Slightly whiter on hover */
    background: rgba(255, 255, 255, 0.75);
    border-color: #004080;  /* Lighter dark blue */
}

/* Hide checkbox - we'll use data attribute instead */
.subcategory-filter input[type="checkbox"] {
    display: none;
}

.subcategory-label {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
}

/* ========================================
   EXPAND SUBCATEGORY BUTTON - 2025 Apple Style
   ======================================== */

.expand-subcat-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 0;
    background: none;
    border: none;
    color: #007AFF;
    font-family: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.expand-subcat-btn:hover {
    opacity: 0.6;
}

.expand-subcat-btn:active {
    transform: scale(0.95);
}

.expand-subcat-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.expand-subcat-btn svg.rotate {
    transform: rotate(180deg);
}

/* ========================================
   POI LIST - 2025 Apple Clean Design
   ======================================== */

.poi-list {
    padding: 0 20px;  /* Horizontal padding für Container */
    margin-bottom: 4px;  /* Kompakter: 12px → 4px */
}

.poi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;  /* Nur vertical padding - horizontal vom parent */
    margin-bottom: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.poi-item:last-child {
    border-bottom: none;
}

.poi-item:hover {
    background: #F5F5F7;
}

.poi-item:active {
    background: #EBEBEB;
}

.poi-name {
    font-family: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #0f172a;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.poi-distance {
    font-family: "SF Mono", Monaco, "Courier New", monospace;
    font-weight: 500;
    font-size: 14px;
    color: #64748b;
    white-space: nowrap;
}

/* ========================================
   EXPAND POI BUTTON - 2025 Apple Borderless
   ======================================== */

.expand-poi-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;  /* Volle Breite */
    margin: 0 0 12px 0;  /* Nur bottom margin */
    padding: 6px 20px;  /* Horizontal padding für Content-Alignment */
    background: transparent;
    border: none;
    border-radius: 0;
    color: #64748b;  /* Match POI distance color (was #007AFF) */
    font-family: "SF Mono", Monaco, "Courier New", monospace;  /* Match POI distance font */
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.expand-poi-btn:hover {
    opacity: 0.6;
}

.expand-poi-btn:active {
    transform: scale(0.96);
}

.expand-poi-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.expand-poi-btn svg.rotate {
    transform: rotate(180deg);
}

/* ========================================
   EMPTY STATE
   ======================================== */

.poi-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
}

.poi-empty-state svg {
    margin-bottom: 20px;
    opacity: 0.3;
    color: #64748b;
}

.poi-empty-state h3 {
    font-family: "Clash Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.poi-empty-state p {
    font-family: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #64748b;
    margin: 0 0 4px 0;
    max-width: 400px;
}

.poi-empty-state .text-secondary {
    font-size: 13px;
    color: #94a3b8;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    animation: fadeIn 0.4s ease-out;
}

.overall-score-header {
    animation: fadeIn 0.3s ease-out;
}

/* Stagger animation for category cards */
.category-card:nth-child(1) { animation-delay: 0.05s; }
.category-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3) { animation-delay: 0.15s; }
.category-card:nth-child(4) { animation-delay: 0.2s; }
.category-card:nth-child(5) { animation-delay: 0.25s; }
.category-card:nth-child(6) { animation-delay: 0.3s; }
.category-card:nth-child(7) { animation-delay: 0.35s; }
.category-card:nth-child(8) { animation-delay: 0.4s; }

/* ========================================
   LEGACY LAGEBEWERTUNG STYLES
   (Migrated from dashboard.css v3.4.2)
   ======================================== */

/* Location Overview */
.location-overview {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.location-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Score Overview in Analysis - Apple Glassmorphism Style */
.score-overview {
    background: linear-gradient(135deg,
        rgba(10, 132, 255, 0.9) 0%,
        rgba(88, 86, 214, 0.85) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 24px 20px 20px;
    color: white;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(10, 132, 255, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Category Scores - KOMPAKTER */
.location-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Expandierbare Category Header - KOMPAKT */
.location-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
    padding: 10px;
    margin: -12px;
    margin-bottom: 0;
    border-radius: 8px;
    user-select: none;
}

.location-category-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* Expand/Collapse Indikator */
.location-category-header::after {
    content: '▼';
    font-size: 10px;
    opacity: 0.5;
    transition: transform 0.3s;
    margin-left: 8px;
}

.location-category.expanded .location-category-header::after {
    transform: rotate(180deg);
}

.location-category-name {
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-category-score {
    font-weight: 600;
    color: #0A84FF;
    margin-left: auto;
    padding-right: 8px;
}

.score-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 10px 8px;
}

.score-bar-fill {
    height: 100%;
    background: #0A84FF;
    transition: width 0.8s ease;
}

/* Kultur-spezifische Farbe */
.location-category[data-category="culture"] .score-bar-fill {
    background: #9B59B6;
}

/* Container für POI-Liste - ULTRA-KOMPAKT für maximalen Platz */
.location-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 8px;
    margin-top: 6px;
    max-height: 400px;
    overflow-y: auto;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .overall-score-header {
        padding: 14px;
    }

    .overall-score-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .overall-score-text h2 {
        font-size: 18px;
    }

    .overall-score-subtitle {
        font-size: 12px;
    }

    /* Mobile: No padding on card itself - children control their own padding */
    /* REMOVED: .category-card { padding: 14px; } - was causing content to be too narrow */

    .category-card-header {
        flex-wrap: wrap;  /* Allow wrapping instead of column */
        align-items: center;
        gap: 8px 12px;  /* row-gap: 8px, column-gap: 12px */
        padding: 12px 20px 8px 20px;  /* Match analysis header (20px horizontal) */
    }

    /* Mobile: Ensure buttons don't overlap - remove negative margin */
    .map-toggle-btn {
        /* Removed: margin-top: -40px; - was causing overlap! */
        flex-shrink: 0;
    }

    /* Mobile: Ensure 44px minimum touch target for accessibility */
    .category-expand-btn,
    .map-toggle-btn {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
    }

    /* Mobile: Enhanced :active feedback for touch */
    .category-expand-btn:active,
    .map-toggle-btn:active {
        transform: scale(0.9);
        background: rgba(0, 0, 0, 0.05);
    }

    .category-card-header h3 {
        font-size: 14px;  /* Reduced from 15px to prevent wrapping on small phones */
        flex: 1 1 auto;  /* Allow title to take available space */
        min-width: 0;  /* Allow text truncation if needed */
    }

    .subcategory-filters.collapsed {
        max-height: 160px;  /* 4 rows on mobile */
    }

    .subcategory-filter {
        padding: 6px 10px;
    }

    .subcategory-label {
        font-size: 12px;
    }

    .poi-item {
        padding: 10px 12px;
    }

    .poi-name {
        font-size: 14px;
    }

    .poi-distance {
        font-size: 13px;
    }

    .expand-poi-btn {
        font-size: 13px;
        padding: 8px;
    }

    .poi-empty-state {
        padding: 40px 16px;
    }

    .poi-empty-state h3 {
        font-size: 18px;
    }

    .poi-empty-state p {
        font-size: 14px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .score-circle-progress {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .category-card {
        border-width: 2px;
        border-color: rgba(0, 0, 0, 0.2);
    }

    .subcategory-filter {
        border-width: 1.5px;
    }

    .poi-item {
        border-width: 1.5px;
    }

    .expand-poi-btn {
        border-width: 1.5px;
    }
}

/* Focus states for keyboard navigation */
.map-toggle-btn:focus-visible,
.expand-poi-btn:focus-visible,
.expand-subcat-btn:focus-visible,
.poi-item:focus-visible {
    outline: 2px solid #0A84FF;
    outline-offset: 2px;
}

.subcategory-filter:focus-within {
    outline: 2px solid #0A84FF;
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .map-toggle-btn,
    .expand-poi-btn,
    .expand-subcat-btn {
        display: none;
    }

    .category-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .subcategory-filters.collapsed {
        max-height: none;
    }

    .poi-item:hover {
        transform: none;
    }
}
