/* 
 * MitfahrNow - Premium Responsive Design
 * Modernes, vertrauenerweckendes Design fuer alle Geraete
 */

/* =====================
   CSS VARIABLEN
   ===================== */
:root {
    /* Hauptfarben - Frisches Blau-Gruen */
    --primary-color: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #4D94FF;
    --primary-gradient: linear-gradient(135deg, #0066FF 0%, #00D4AA 100%);
    --secondary-color: #00D4AA;
    --secondary-dark: #00B894;
    
    /* Akzentfarben */
    --success-color: #00C853;
    --warning-color: #FFB300;
    --danger-color: #FF3D57;
    --info-color: #00B8D9;
    
    /* Neutrale Farben - Light Mode */
    --text-color: #1A1A2E;
    --text-primary: #1A1A2E;
    --text-secondary: #4A4A68;
    --text-light: #8989A2;
    --text-muted: #B5B5C3;
    
    /* Hintergrund - Light Mode */
    --bg-primary: #F7F9FC;
    --bg-secondary: #EBEEF5;
    --bg-card: #FFFFFF;
    --bg-dark: #1A1A2E;
    --background-color: #F7F9FC;
    --card-background: #FFFFFF;
    
    /* Borders */
    --border-color: #E4E7EB;
    --border-light: #F0F2F5;
    
    /* Schatten */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);
    
    /* Abstaende */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
}

/* Dark Mode Variablen */
[data-theme="dark"] {
    --text-color: #E8E8F0;
    --text-primary: #E8E8F0;
    --text-secondary: #B5B5C3;
    --text-light: #9898B0;
    --text-muted: #7878A0;
    
    --bg-primary: #0D0D1A;
    --bg-secondary: #151525;
    --bg-card: #1C1C30;
    --background-color: #0D0D1A;
    --card-background: #1C1C30;
    
    --border-color: #2A2A45;
    --border-light: #202035;
    
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.4);
    
    /* Angepasste Primärfarben für besseren Kontrast im Dark Mode */
    --primary-light: #6BA8FF;
    --secondary-color: #00E5B8;
}

/* =====================
   DARK MODE SPEZIFISCHE STYLES
   ===================== */
[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-color);
}

[data-theme="dark"] .navbar {
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .card,
[data-theme="dark"] .fahrt-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    background: var(--bg-card);
    border-color: var(--primary-color);
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .btn-outline,
[data-theme="dark"] .btn-secondary {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .btn-outline:hover,
[data-theme="dark"] .btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
}

[data-theme="dark"] .modal-content,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .popup-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--bg-secondary);
}

[data-theme="dark"] .table,
[data-theme="dark"] table {
    background: var(--bg-card);
}

[data-theme="dark"] .table th,
[data-theme="dark"] table th {
    background: var(--bg-secondary);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .table td,
[data-theme="dark"] table td {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .table tr:hover,
[data-theme="dark"] table tr:hover {
    background: var(--bg-secondary);
}

[data-theme="dark"] .badge {
    background: var(--bg-secondary);
    color: var(--text-color);
}

[data-theme="dark"] .alert {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .flash-message {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0D0D1A 0%, #1C1C30 100%);
}

[data-theme="dark"] .section-alt {
    background: var(--bg-secondary);
}

[data-theme="dark"] hr {
    border-color: var(--border-color);
}

[data-theme="dark"] code,
[data-theme="dark"] pre {
    background: var(--bg-secondary);
    color: var(--primary-light);
}

[data-theme="dark"] .breadcrumb {
    background: var(--bg-secondary);
}

[data-theme="dark"] .list-group-item {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .nav-tabs .nav-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .pagination .page-link {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Chat Dark Mode */
[data-theme="dark"] .chat-container,
[data-theme="dark"] .nachrichten-container {
    background: var(--bg-secondary);
}

[data-theme="dark"] .chat-message,
[data-theme="dark"] .nachricht {
    background: var(--bg-card);
    color: var(--text-color);
}

[data-theme="dark"] .chat-message.own,
[data-theme="dark"] .nachricht.own {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .chat-input,
[data-theme="dark"] .nachricht-input {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* Sidebar Dark Mode */
[data-theme="dark"] .sidebar,
[data-theme="dark"] .side-panel {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .sidebar-item:hover,
[data-theme="dark"] .side-panel-item:hover {
    background: var(--bg-card);
}

/* Profile Dark Mode */
[data-theme="dark"] .profile-card,
[data-theme="dark"] .profil-card {
    background: var(--bg-card);
}

[data-theme="dark"] .profile-header,
[data-theme="dark"] .profil-header {
    background: linear-gradient(135deg, #1C1C30 0%, #252545 100%);
}

/* Search/Filter Dark Mode */
[data-theme="dark"] .search-box,
[data-theme="dark"] .filter-box,
[data-theme="dark"] .such-box {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .search-input,
[data-theme="dark"] .filter-input {
    background: var(--bg-secondary);
    color: var(--text-color);
}

/* Tooltip & Popover Dark Mode */
[data-theme="dark"] .tooltip,
[data-theme="dark"] .popover {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-color);
}

/* Skeleton Loading Dark Mode */
[data-theme="dark"] .skeleton,
[data-theme="dark"] .loading-skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card) 50%, var(--bg-secondary) 75%);
}

/* Map Controls Dark Mode */
[data-theme="dark"] .leaflet-control,
[data-theme="dark"] .map-controls {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .leaflet-control a,
[data-theme="dark"] .leaflet-control button {
    color: var(--text-color) !important;
}

[data-theme="dark"] .leaflet-popup-content-wrapper {
    background: var(--bg-card);
    color: var(--text-color);
}

[data-theme="dark"] .leaflet-popup-tip {
    background: var(--bg-card);
}

/* Autocomplete Dark Mode */
[data-theme="dark"] .autocomplete-results,
[data-theme="dark"] .suggestions-list {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .autocomplete-item:hover,
[data-theme="dark"] .suggestion-item:hover {
    background: var(--bg-secondary);
}

/* Stats & Analytics Dark Mode */
[data-theme="dark"] .stat-number,
[data-theme="dark"] .stat-value {
    color: var(--text-color);
}

[data-theme="dark"] .progress-bar-bg,
[data-theme="dark"] .progress-track {
    background: var(--bg-secondary);
}

/* Trust Score Indicator Dark Mode */
[data-theme="dark"] .trust-score-ring {
    background: var(--bg-secondary);
}

/* Gamification Dark Mode */
[data-theme="dark"] .achievement-card,
[data-theme="dark"] .badge-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .achievement-card.locked {
    opacity: 0.6;
}

/* Timeline Dark Mode */
[data-theme="dark"] .timeline-item::before {
    background: var(--border-color);
}

/* Toggle Switch Dark Mode */
[data-theme="dark"] .toggle-track {
    background: var(--bg-secondary);
}

/* Custom Scrollbar Dark Mode */
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Code/Pre Dark Mode */
[data-theme="dark"] pre,
[data-theme="dark"] code {
    background: #0D0D1A;
    border: 1px solid var(--border-color);
}

/* Selection Dark Mode */
[data-theme="dark"] ::selection {
    background: rgba(0, 102, 255, 0.4);
    color: white;
}

/* Social Buttons Dark Mode */
[data-theme="dark"] .btn-google,
[data-theme="dark"] .btn-social {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-color);
}

/* Image Overlays Dark Mode */
[data-theme="dark"] .image-overlay {
    background: linear-gradient(to top, rgba(13, 13, 26, 0.9), transparent);
}

/* =====================
   RESET & BASIS
   ===================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip Link für Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Focus Styles für Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduce Motion für Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin-bottom: var(--space-md); }

.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }

/* =====================
   CONTAINER & LAYOUT
   ===================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-sm { max-width: 640px; }
.container-md { max-width: 960px; }
.container-lg { max-width: 1280px; }
.container-xl { max-width: 1440px; }

.main-content {
    min-height: calc(100vh - 80px);
}

/* =====================
   NAVIGATION
   ===================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1200;
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-logo i {
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    list-style: none;
    /* Mobile: wird in Media Query überschrieben */
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--bg-card);
    flex-direction: column;
    padding: var(--space-xl);
    z-index: 1250;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 102, 255, 0.05);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link.btn-primary {
    background: var(--primary-gradient);
    color: white !important;
    padding: var(--space-sm) var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.nav-link.btn-primary::after {
    display: none;
}

.nav-link.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.nav-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--primary-light);
    transition: all var(--transition-fast);
}

.nav-avatar:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    z-index: 1300;
    position: relative;
}

.nav-toggle:hover {
    background: var(--bg-secondary);
}

/* MOBILE Navigation - Toggle Button MUSS sichtbar sein */
@media (max-width: 1200px) {
    .nav-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        font-size: 1.5rem !important;
    }
}

/* Desktop Navigation - zurück zur normalen Anzeige */
@media (min-width: 1025px) {
    .nav-menu {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
        padding: 0 !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: auto !important;
        transition: none !important;
    }
    
    .nav-menu.active {
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-toggle {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed !important;
        top: 72px !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100vh - 72px) !important;
        background: var(--bg-card) !important;
        flex-direction: column !important;
        padding: var(--space-xl) !important;
        gap: var(--space-md) !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease-in-out !important;
        overflow-y: auto !important;
        z-index: 1250 !important;
        visibility: hidden !important;
        display: flex !important;
        opacity: 0 !important;
    }
    
    .nav-menu.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-link {
        width: 100%;
        padding: var(--space-md);
        font-size: var(--text-base);
        justify-content: flex-start;
    }
    
    .nav-link::after {
        display: none;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.theme-toggle i {
    font-size: var(--text-lg);
}

/* =====================
   BUTTONS
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: scale(0.98);
}

.btn-xs {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-lg);
    border-radius: var(--radius-lg);
}

.btn-xl {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-xl);
    border-radius: var(--radius-xl);
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(0, 102, 255, 0.3);
    color: white;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    color: var(--text-color);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #FF6B7A);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #FFD54F);
    color: var(--text-color);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #69F0AE);
    color: white;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}

/* =====================
   FORMULARE
   ===================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-color);
}

.form-input, 
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--text-base);
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover,
input:hover,
select:hover,
textarea:hover {
    border-color: var(--text-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

.form-input.invalid,
input.invalid {
    border-color: var(--danger-color);
}

.form-input.valid,
input.valid {
    border-color: var(--success-color);
}

.form-textarea,
textarea {
    resize: vertical;
    min-height: 120px;
}

.form-help {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-light);
}

.form-error {
    color: var(--danger-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.input-group {
    display: flex;
    gap: 0;
}

.input-group .form-input,
.input-group input {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.input-icon {
    position: relative;
}

.input-icon input {
    padding-left: 48px;
}

.input-icon i {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Checkbox & Radio */
.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-weight: normal;
    font-size: var(--text-sm);
}

.checkbox-label input,
.radio-label input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* =====================
   CARDS
   ===================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.card-body {
    padding: var(--space-lg);
}

.card-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--text-secondary);
}

/* =====================
   FLASH MESSAGES
   ===================== */
.flash-container {
    position: fixed;
    top: 90px;
    right: var(--space-lg);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 400px;
}

.flash-message,
.alert {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.flash-success,
.alert-success {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), var(--bg-card));
}

.flash-success i,
.alert-success i {
    color: var(--success-color);
}

.flash-error,
.flash-danger,
.alert-danger,
.alert-error {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, rgba(255, 61, 87, 0.1), var(--bg-card));
}

.flash-error i,
.flash-danger i,
.alert-danger i {
    color: var(--danger-color);
}

.flash-warning,
.alert-warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.1), var(--bg-card));
}

.flash-warning i,
.alert-warning i {
    color: var(--warning-color);
}

.flash-info,
.alert-info {
    border-left-color: var(--info-color);
    background: linear-gradient(135deg, rgba(0, 184, 217, 0.1), var(--bg-card));
}

.flash-info i,
.alert-info i {
    color: var(--info-color);
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: auto;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.flash-close:hover {
    background: var(--bg-secondary);
    color: var(--text-color);
}

@media (max-width: 640px) {
    .flash-container {
        left: var(--space-md);
        right: var(--space-md);
        max-width: none;
    }
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding: var(--space-2xl) var(--space-lg);
}

.hero-background {
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.3) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    max-width: 900px;
    padding: var(--space-xl);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    letter-spacing: -2px;
    color: white;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #FFD93D, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: var(--space-md);
}

.hero-search .form-input,
.hero-search input {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-lg);
}

.hero-search .btn {
    padding: var(--space-md) var(--space-xl);
}

@media (max-width: 768px) {
    .hero-search-form {
        grid-template-columns: 1fr;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-3xl) var(--space-md);
    }
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    opacity: 0.9;
}

.hero-feature i {
    font-size: 1.2rem;
    color: #FFD93D;
}

/* =====================
   RIDE CARDS
   ===================== */
.rides-section {
    padding: var(--space-3xl) var(--space-lg);
}

.rides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.ride-card,
.fahrt-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.ride-card:hover,
.fahrt-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.ride-header,
.fahrt-header {
    background: var(--primary-gradient);
    padding: var(--space-lg);
    color: white;
}

.ride-route,
.fahrt-route {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.route-point {
    flex: 1;
}

.route-label {
    font-size: var(--text-xs);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-city {
    font-size: var(--text-lg);
    font-weight: 600;
}

.route-arrow {
    font-size: 1.5rem;
    opacity: 0.5;
}

.ride-body,
.fahrt-body {
    padding: var(--space-lg);
}

.ride-info,
.fahrt-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.ride-info-item,
.fahrt-info-item {
    text-align: center;
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.ride-info-item i,
.fahrt-info-item i {
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.ride-info-item .value,
.fahrt-info-item .value {
    display: block;
    font-weight: 700;
    font-size: var(--text-lg);
}

.ride-info-item .label,
.fahrt-info-item .label {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.ride-driver,
.fahrt-driver {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.driver-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.driver-info {
    flex: 1;
}

.driver-name {
    font-weight: 600;
    color: var(--text-color);
}

.driver-rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--warning-color);
}

.ride-price,
.fahrt-price {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary-color);
}

/* =====================
   FEATURES SECTION
   ===================== */
.features-section {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--bg-card);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.section-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 170, 0.1));
    color: var(--primary-color);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.feature-text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* =====================
   MAP PAGE
   ===================== */
.map-page {
    display: flex;
    height: calc(100vh - 72px);
}

.map-sidebar {
    width: 380px;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.map-container {
    flex: 1;
    position: relative;
}

#mainMap,
#map {
    height: 100%;
    width: 100%;
}

.sidebar-header {
    padding: var(--space-xl);
    background: var(--primary-gradient);
    color: white;
}

.sidebar-header h2 {
    font-size: var(--text-xl);
    color: white;
    margin-bottom: var(--space-xs);
}

.sidebar-header p {
    opacity: 0.9;
    font-size: var(--text-sm);
    margin: 0;
}

.sidebar-section {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.sidebar-section h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-color);
}

.filter-group {
    margin-bottom: var(--space-md);
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-color);
    font-size: var(--text-sm);
}

.filter-checkboxes label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    cursor: pointer;
    font-weight: normal;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.filter-checkboxes label:hover {
    color: var(--text-color);
}

.fahrt-preview {
    padding: var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-card);
}

.fahrt-preview:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.map-legend {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.map-legend h4 {
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
    color: var(--text-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-xs) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.legend-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-xs);
}

@media (max-width: 1024px) {
    .map-page {
        flex-direction: column;
    }
    
    .map-sidebar {
        width: 100%;
        max-height: 45vh;
        order: 2;
    }
    
    .map-container {
        height: 55vh;
        order: 1;
    }
    
    .map-legend {
        bottom: auto;
        top: var(--space-md);
        right: var(--space-md);
        padding: var(--space-md);
    }
}

@media (max-width: 640px) {
    .map-sidebar {
        max-height: 40vh;
    }
    
    .map-container {
        height: 60vh;
    }
}

/* =====================
   FOOTER
   ===================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto var(--space-2xl);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-brand {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

@media (max-width: 768px) {
    .footer-brand {
        justify-content: center;
    }
}

.footer-brand i {
    color: var(--secondary-color);
}

.footer-about {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.8;
}

.footer-title {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
    color: var(--text-muted);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: var(--space-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: white;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* =====================
   PAGE LAYOUTS
   ===================== */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

.page-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.page-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
}

.page-subtitle {
    color: var(--text-secondary);
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.auth-logo {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.auth-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-xs);
}

.auth-subtitle {
    color: var(--text-secondary);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1.5rem;
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: 700;
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* Profil */
.profile-header {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    border: 4px solid white;
    object-fit: cover;
    margin: 0 auto var(--space-md);
}

.profile-name {
    font-size: var(--text-2xl);
    color: white;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-lg);
}

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

.profile-stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
}

.profile-stat-label {
    font-size: var(--text-sm);
    opacity: 0.8;
}

/* =====================
   MODALS
   ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--space-lg);
    animation: fadeIn 0.2s ease;
}

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

.modal-content {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h3 {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--bg-secondary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--danger-color);
    color: white;
}

/* =====================
   BADGES & TAGS
   ===================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.badge-primary {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
}

.badge-success {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(255, 179, 0, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background: rgba(255, 61, 87, 0.1);
    color: var(--danger-color);
}

/* =====================
   LOADING & EMPTY STATES
   ===================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-xl);
    color: var(--text-muted);
}

.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.3;
}

.empty-state h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

/* =====================
   LEAFLET MAP OVERRIDES
   ===================== */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    min-width: 280px !important;
}

.leaflet-popup-tip {
    box-shadow: var(--shadow-md) !important;
}

.popup-header {
    background: var(--primary-gradient);
    padding: var(--space-md);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.popup-header h3 {
    font-size: var(--text-base);
    margin: 0;
    color: white;
}

.popup-header p {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin: 0;
}

.popup-body {
    padding: var(--space-md);
}

.popup-footer {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    gap: var(--space-sm);
}

/* =====================
   TABLES
   ===================== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

thead {
    background: var(--bg-secondary);
}

th {
    text-align: left;
    padding: var(--space-md);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    white-space: nowrap;
}

td {
    padding: var(--space-md);
    border-top: 1px solid var(--border-light);
}

tr:hover td {
    background: var(--bg-secondary);
}

/* =====================
   MESSAGES / CHAT
   ===================== */
.messages-container {
    display: flex;
    height: calc(100vh - 72px);
}

.messages-sidebar {
    width: 320px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-light);
    overflow-y: auto;
    flex-shrink: 0;
}

.messages-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.conversation-item:hover,
.conversation-item.active {
    background: var(--bg-secondary);
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.conversation-preview {
    font-size: var(--text-sm);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-bubble {
    max-width: 70%;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
}

.message-outgoing {
    background: var(--primary-gradient);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: var(--radius-sm);
}

.message-incoming {
    background: var(--bg-secondary);
    border-bottom-left-radius: var(--radius-sm);
}

.message-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

@media (max-width: 768px) {
    .messages-container {
        flex-direction: column;
    }
    
    .messages-sidebar {
        width: 100%;
        height: 40vh;
    }
    
    .messages-main {
        height: 60vh;
    }
}

/* =====================
   SEARCH RESULTS
   ===================== */
.search-container {
    padding: var(--space-2xl) var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.search-filters {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    background: rgba(0, 102, 255, 0.05);
    color: var(--primary-color);
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.result-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-xl);
    align-items: center;
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.result-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .result-card {
        grid-template-columns: 1fr;
    }
}

/* =====================
   RATING STARS
   ===================== */
.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: var(--warning-color);
}

.rating-stars i.empty {
    color: var(--border-color);
}

/* =====================
   UTILITIES
   ===================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }
.d-inline { display: inline; }
.d-inline-flex { display: inline-flex; }

.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.p-0 { padding: 0; }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.relative { position: relative; }
.absolute { position: absolute; }

.cursor-pointer { cursor: pointer; }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-normal { font-weight: 400; }

.fs-xs { font-size: var(--text-xs); }
.fs-sm { font-size: var(--text-sm); }
.fs-base { font-size: var(--text-base); }
.fs-lg { font-size: var(--text-lg); }
.fs-xl { font-size: var(--text-xl); }

/* =====================
   SCROLLBAR
   ===================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.animate-bounce {
    animation: bounce 1s ease infinite;
}

/* =====================
   PRINT STYLES
   ===================== */
@media print {
    .navbar,
    .footer,
    .flash-container,
    .btn,
    .nav-toggle {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* =====================
   INDEX PAGE SPECIFIC
   ===================== */
.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: var(--space-md);
    align-items: stretch;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group i {
    position: absolute;
    left: var(--space-md);
    color: var(--text-muted);
    z-index: 1;
}

.search-input-group input {
    padding-left: 48px;
    height: 56px;
    border-radius: var(--radius-lg);
}

@media (max-width: 992px) {
    .search-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .search-form {
        grid-template-columns: 1fr;
    }
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

/* Safety Section */
.safety-section {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--bg-secondary);
}

.safety-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .safety-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .safety-image {
        order: -1;
    }
}

.safety-text h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .safety-text h2 {
        justify-content: center;
    }
}

.safety-text h2 i {
    color: var(--success-color);
}

.safety-list {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.safety-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    font-size: var(--text-lg);
}

@media (max-width: 768px) {
    .safety-list li {
        justify-content: center;
    }
}

.safety-list i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.safety-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.safety-icon-large {
    font-size: 12rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
}

/* Map Preview Section */
.map-preview-section {
    padding: var(--space-3xl) var(--space-lg);
}

.map-preview-section .section-title,
.map-preview-section .section-subtitle {
    text-align: center;
}

.map-preview-section .section-subtitle {
    margin-bottom: var(--space-2xl);
}

.map-preview-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.home-map {
    height: 400px;
    width: 100%;
}

.map-overlay-cta {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

/* How It Works */
.how-it-works-section {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--bg-card);
}

.how-it-works-section .section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.step-content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.step-content p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.step-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
}

@media (max-width: 992px) {
    .step-arrow {
        display: none;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step {
        max-width: 100%;
    }
}

/* Stats Section */
.stats-section {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--primary-gradient);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: var(--space-lg);
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--text-base);
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Custom Map Markers */
.custom-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
    font-size: 14px;
}

.marker-bahnhof { background: #e74c3c; color: white; }
.marker-ubahn { background: #3498db; color: white; }
.marker-sbahn { background: #27ae60; color: white; }
.marker-bushaltestelle { background: #f39c12; color: white; }
.marker-busbahnhof { background: #9b59b6; color: white; }

/* =====================
   AUTH PAGES EXTENDED
   ===================== */
.auth-container {
    display: flex;
    gap: var(--space-2xl);
    align-items: stretch;
    padding: var(--space-2xl) var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-info-card {
        display: none;
    }
}

.auth-icon {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.auth-form {
    margin-top: var(--space-xl);
}

.security-notice {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(0, 200, 83, 0.1);
    border-radius: var(--radius-md);
    color: var(--success-color);
    font-size: var(--text-sm);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-xs);
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--primary-color);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password {
    font-size: var(--text-sm);
    color: var(--primary-color);
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-info-card {
    flex: 1;
    max-width: 400px;
    background: var(--bg-secondary);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.auth-info-card h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    color: var(--primary-color);
}

.auth-info-card ul {
    list-style: none;
    margin: var(--space-lg) 0;
}

.auth-info-card li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.auth-info-card li i {
    color: var(--success-color);
}

.security-tip {
    background: rgba(0, 102, 255, 0.05);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.security-tip i {
    color: var(--warning-color);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-google {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.btn-google:hover:not(:disabled) {
    border-color: #4285f4;
    background: rgba(66, 133, 244, 0.05);
}

.btn-social:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =====================
   OSM HALTESTELLEN POPUP
   ===================== */
.osm-popup {
    font-family: inherit;
}

.osm-popup-header {
    background: var(--primary-gradient);
    color: white;
    padding: var(--space-md);
    margin: -1px -1px 0 -1px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.osm-popup-header h3 {
    font-size: var(--text-base);
    font-weight: 600;
    margin: 0 0 var(--space-xs) 0;
    color: white;
}

.osm-popup-header .typ-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-xs);
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.osm-popup-body {
    padding: var(--space-md);
}

.osm-popup-section {
    margin-bottom: var(--space-md);
}

.osm-popup-section:last-child {
    margin-bottom: 0;
}

.osm-popup-section h4 {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.linien-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.linie-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.linie-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.linie-badge.bus { background: #f39c12; }
.linie-badge.tram { background: #e74c3c; }
.linie-badge.sbahn { background: #27ae60; }
.linie-badge.ubahn { background: #3498db; }
.linie-badge.train, .linie-badge.rb, .linie-badge.re { background: #8e44ad; }
.linie-badge.ferry { background: #00bcd4; }

.osm-popup-actions {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    margin: 0 -1px -1px -1px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.osm-popup-actions .btn {
    flex: 1;
    padding: var(--space-sm);
    font-size: var(--text-xs);
}

/* Verbindungen Modal */
.verbindungen-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: var(--space-lg);
}

.verbindungen-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.verbindungen-header {
    background: var(--primary-gradient);
    color: white;
    padding: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.verbindungen-header h3 {
    margin: 0;
    color: white;
}

.verbindungen-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.verbindungen-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.verbindungen-body {
    padding: var(--space-lg);
    overflow-y: auto;
    flex: 1;
}

.verbindung-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    transition: all var(--transition-fast);
}

.verbindung-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.verbindung-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.verbindung-zeit {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
}

.verbindung-dauer {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.verbindung-linien {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

/* Autocomplete */
.autocomplete-container {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.autocomplete-item {
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: background var(--transition-fast);
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--bg-secondary);
}

.autocomplete-item i {
    color: var(--primary-color);
}

/* =====================
   SPEECH-TO-TEXT BUTTON
   ===================== */
.btn-mic {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-mic:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

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

.btn-mic.recording {
    background: linear-gradient(135deg, #FF3D57 0%, #FF6B6B 100%);
    animation: mic-pulse 1.5s infinite;
}

.btn-mic .mic-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.btn-mic .mic-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--bg-dark);
}

.btn-mic:hover .mic-tooltip {
    opacity: 1;
    visibility: visible;
}

.btn-mic .recording-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #FF3D57;
    border-radius: 50%;
    border: 2px solid white;
    animation: blink 1s infinite;
}

@keyframes mic-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 61, 87, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 61, 87, 0);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Mikrofon Container in Suche */
.search-mic-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px dashed var(--border-color);
}

.search-mic-container .mic-label {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* Mikrofon im Header */
.header-mic-container {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-md);
}

/* Bayrisch/Dialekt Hinweis */
.dialect-hint {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 102, 255, 0.1);
    border-radius: var(--radius-md);
    margin-top: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--primary-color);
}

.dialect-hint i {
    font-size: 1rem;
}

/* STT Ergebnis Animation */
.stt-result-highlight {
    animation: highlight-fade 1.5s ease;
}

@keyframes highlight-fade {
    0% {
        background-color: rgba(0, 200, 83, 0.3);
        box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.3);
    }
    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

/* =====================
   LIVE OFFER MODAL
   ===================== */
.live-offer-modal .modal-content {
    max-width: 500px;
    border-radius: var(--radius-xl);
}

.live-offer-modal .modal-header {
    background: var(--primary-gradient);
    color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.live-offer-modal .modal-header h3 {
    margin: 0;
    color: white;
}

.live-offer-modal .modal-body {
    padding: var(--space-xl);
    text-align: center;
}

.live-offer-modal .info-text {
    color: var(--text-secondary);
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
}

.live-offer-modal .examples {
    background: var(--bg-secondary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    text-align: left;
}

.voice-capture-area {
    padding: var(--space-xl);
}

.btn-mic-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.btn-mic-large:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(0, 102, 255, 0.4);
}

.btn-mic-large.recording {
    background: linear-gradient(135deg, #FF3D57, #FF6B81);
    animation: pulse-large 1.5s infinite;
}

@keyframes pulse-large {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-lg);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 40px rgba(255, 61, 87, 0.5);
    }
}

.mic-hint {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.offer-preview {
    background: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: left;
}

.offer-preview h4 {
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.preview-item {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

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

.matches-info {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: rgba(0, 200, 83, 0.1);
    border-radius: var(--radius-md);
    color: var(--success-color);
    font-weight: 600;
}

.preview-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.preview-actions .btn {
    flex: 1;
}

/* Live Offer Button im Dashboard */
.live-offer-btn {
    background: var(--primary-gradient) !important;
    color: white !important;
    position: relative;
    overflow: hidden;
}

.live-offer-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Mobile optimiert */
@media (max-width: 768px) {
    .btn-mic {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .search-mic-container {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .btn-mic-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .live-offer-modal .modal-content {
        margin: var(--space-md);
        max-height: 90vh;
        overflow-y: auto;
    }
}


/* =====================
   VERBINDUNGS-MODAL
   ===================== */
.verbindungs-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    padding: var(--space-md);
    animation: fadeIn 0.3s ease;
}

.verbindungs-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

.verbindungs-header {
    background: var(--primary-gradient);
    color: white;
    padding: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.verbindungs-header h3 {
    margin: 0;
    color: white;
    font-size: var(--text-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.verbindungs-route-text {
    margin: var(--space-xs) 0 0 0;
    opacity: 0.9;
    font-size: var(--text-sm);
}

.verbindungs-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.verbindungs-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.verbindungs-body {
    padding: var(--space-lg);
    overflow-y: auto;
    flex: 1;
    background: var(--bg-secondary);
}

.verbindungs-map-container {
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.verbindungs-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    gap: var(--space-md);
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.verbindungs-results {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.results-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.results-header {
    background: var(--bg-secondary);
    padding: var(--space-md) var(--space-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
}

.results-header i {
    color: var(--primary-color);
}

.results-header .count {
    font-weight: 400;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.results-list {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.verbindung-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.verbindung-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.mitfahr-card {
    border-left: 4px solid #9b59b6;
}

.oepnv-card {
    border-left: 4px solid #3498db;
    cursor: default;
}

.card-left {
    flex-shrink: 0;
}

.fahrer-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.fahrer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.fahrer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fahrer-name {
    font-weight: 600;
    display: block;
}

.fahrer-rating {
    font-size: var(--text-xs);
    color: var(--warning-color);
}

.card-center {
    flex: 1;
    min-width: 0;
}

.route-mini .zeit {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary-color);
    margin-right: var(--space-sm);
}

.route-mini .strecke {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.details-mini {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xs);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.details-mini i {
    margin-right: 4px;
}

.linien-icons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.zeiten {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-lg);
    font-weight: 600;
}

.zeiten .abfahrt {
    color: var(--primary-color);
}

.zeiten .ankunft {
    color: var(--secondary-color);
}

.zeiten i {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.card-right {
    text-align: right;
    flex-shrink: 0;
}

.card-right .preis {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.card-right .pro-person {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.no-results {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.3;
    display: block;
}

.no-results p {
    margin-bottom: var(--space-md);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .verbindungs-content {
        max-height: 95vh;
        margin: var(--space-sm);
    }
    
    .verbindung-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-right {
        width: 100%;
        text-align: left;
        padding-top: var(--space-sm);
        border-top: 1px solid var(--border-light);
        margin-top: var(--space-sm);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}
