/* Route (expresspolsterei-mathan-ritter.de) — extrahiert aus index.html Z. 2613-4219 */

/* Modal Overlay */
        .route-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 10001;
            overflow-y: auto;
            animation: routeFadeIn 0.3s ease;
        }

        @keyframes routeFadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        /* Modal Dialog Container */
        .route-modal-dialog {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        /* Modal Content Box */
        .route-modal-content {
            background: #ffffff;
            width: 100%;
            max-width: 1400px;
            max-height: 90vh;
            border-radius: 16px;
            box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            animation: routeSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes routeSlideIn {
            from {
                transform: translateY(50px) scale(0.95);
                opacity: 0;
            }

            to {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        /* MODAL HEADER */
        .route-modal-header {
            background: linear-gradient(135deg, #e42025 0%, #8c1b1c 100%);
            color: #000000;
            padding: 24px 32px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            flex-shrink: 0;
        }

        .route-modal-header h2 {
            margin: 0;
            font-size: 26px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .route-modal-header h2::before {
            content: '\f018';
            font-family: 'FontAwesome';
            font-size: 24px;
        }

        .route-close-btn {
            font-family: "Roboto", sans-serif;
            background: rgba(255, 255, 255, 0.2);
            font-size: 28px;
            border: solid 2px #fff;
            margin:  0!important;
            color: #fff!important;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .route-close-btn:hover {
            background: rgba(255, 255, 255, 0.4);
            color: #fff;
            transform: rotate(90deg);
        }

        /* MODAL BODY - HAUPTLAYOUT */
        .route-modal-body {
            display: flex;
            flex: 1;
            overflow: hidden;
            height: calc(90vh - 88px);
        }

        /* FORM SECTION (Links) */
        .route-form-section {
            width: 420px;
            padding: 32px;
            background: #f8f9fa;
            overflow-y: auto;
            overflow-x: hidden;
            border-right: 1px solid #e9ecef;
            flex-shrink: 0;
        }

        /* Form Groups */
        .route-form-group {
            margin-bottom: 28px;
        }

        .route-form-group label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: #2c3e50;
            font-size: 15px;
            letter-spacing: 0.3px;
        }

        .route-form-group label i {
            margin-right: 8px;
            color: #e42025;
            width: 18px;
        }

        /* Input Wrapper */
        .route-input-wrapper {
            position: relative;
            display: flex;
            gap: 10px;
        }

        .route-form-group input {
            flex: 1;
            padding: 14px 18px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 15px;
            transition: all 0.3s ease;
            background: #ffffff;
        }

        .route-form-group input:focus {
            outline: none;
            border-color: #e42025;
            box-shadow: 0 0 0 4px rgba(228, 32, 37, 0.1);
        }

        /* Location Button */
        .route-location-btn {
            padding: 14px 18px;
            background: #ffffff;
            color: #495057;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            flex-shrink: 0;
            height: 55px;                    
            display: flex;                   
            align-items: center;             
            justify-content: center;         
        }

        .route-location-btn:hover {
            background: #e42025;
            border-color: #e42025;
            color: #000000;
        }

        /* Suggestions Dropdown */
        .route-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #ffffff;
            border: 1px solid #dee2e6;
            border-radius: 10px;
            margin-top: 8px;
            max-height: 240px;
            overflow-y: auto;
            z-index: 100;
            display: none;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }

        .route-suggestions.active {
            display: block;
        }

        .route-suggestion-item {
            padding: 14px 18px;
            cursor: pointer;
            transition: background 0.2s ease;
            font-size: 14px;
            border-bottom: 1px solid #f0f0f0;
        }

        .route-suggestion-item:hover {
            background: #e8f5e9;
        }

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

        /* Destination Info Box */
        .route-destination {
            margin-bottom: 28px;
            padding: 24px;
            background: #ffffff;
            border-radius: 12px;
            border: 2px solid #e42025;
            position: relative;
            overflow: hidden;
        }

        .route-destination::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: #e42025;
        }

        .route-destination-info h3 {
            margin: 0 0 10px 0;
            color: #2c3e50;
            font-size: 18px;
            font-weight: 600;
        }

        .route-destination-info p {
            margin: 0;
            color: #6c757d;
            line-height: 1.6;
            font-size: 15px;
        }

        /* Transport Mode Selection */
        .route-transport-modes {
            margin-bottom: 28px;
        }

        .route-transport-modes label {
            display: block;
            margin-bottom: 16px;
            font-weight: 600;
            color: #2c3e50;
            font-size: 15px;
        }

        .route-mode-buttons {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .route-mode-btn {
            padding: 16px;
            background: #ffffff;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            position: relative;
            overflow: hidden;
        }

        .route-mode-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: rgba(228, 32, 37, 0.1);
            transition: width 0.3s ease;
        }

        .route-mode-btn:hover::after {
            width: 100%;
        }

        .route-mode-btn i {
            font-size: 28px;
            color: #6c757d;
            transition: all 0.3s ease;
            z-index: 1;
        }

        .route-mode-btn span {
            font-size: 14px;
            color: #6c757d;
            font-weight: 500;
            z-index: 1;
        }

        .route-mode-btn:hover {
            border-color: #e42025;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(228, 32, 37, 0.2);
        }

        .route-mode-btn.active {
            border-color: #e42025;
            background: linear-gradient(135deg, #fffbf0 0%, #e8f5e9 100%);
        }

        .route-mode-btn.active i,
        .route-mode-btn.active span {
            color: #ff8f00;
        }

        /* Calculate Button */
        .route-calculate-btn {
            width: 100%;
            padding: 18px;
            background: linear-gradient(135deg, #e42025 0%, #e42025 100%) !important;
            color: #fff !important; /* Weisse Schrift */
            border: none;
            border-radius: 12px;
            font-size: 17px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
        }

        .route-calculate-btn i {
            color: #fff !important; /* Schwarzes Icon */
        }

        .route-calculate-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .route-calculate-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .route-calculate-btn:hover {
            transform: translateY(-2px);
            background: linear-gradient(135deg, #8c1b1c 0%, #8c1b1c 100%) !important;
        }

        .route-calculate-btn:active {
            transform: translateY(0);
        }

        .route-calculate-btn.loading {
            background: #6c757d !important;
            color: #ffffff !important;
            cursor: not-allowed;
        }

        .route-calculate-btn.loading i {
            color: #ffffff !important;
        }

        /* MAP SECTION (Rechts) */
        .route-map-section {
            flex: 1;
            position: relative;
            background: #e5e3df;
            display: flex;
            flex-direction: column;
        }

        .route-map {
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        /* ROUTE INFO PANEL */
        .route-info {
            position: absolute;
            top: 20px;
            right: 20px;
            bottom: 20px;
            background: #ffffff;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
            width: 420px;
            max-width: calc(100vw - 40px);
            overflow: hidden;
            z-index: 1000;
            display: none;
            flex-direction: column;
        }

        .route-info.show {
            display: flex;
            animation: routeInfoSlideIn 0.4s ease;
        }

        @keyframes routeInfoSlideIn {
            from {
                transform: translateX(100px);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* Collapsed State */
        .route-info.collapsed {
            height: auto;
            bottom: auto;
        }

        .route-info.collapsed .route-info-body {
            display: none;
        }

        .route-info.collapsed .route-info-toggle i {
            transform: rotate(-180deg);
        }

        /* Header */
        .route-info-header {
            padding: 16px 20px;
            background: linear-gradient(135deg, #e42025 0%, #8c1b1c 100%);
            color: #000;
            cursor: pointer;
            user-select: none;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .route-info-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .route-info-title h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .route-info-toggle {
            width: 32px;
            height: 32px;
            background: rgba(0, 0, 0, 0.1);
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .route-info-toggle:hover {
            background: rgba(0, 0, 0, 0.2);
        }

        .route-info-toggle i {
            transition: transform 0.3s ease;
        }

        .route-summary-quick {
            display: flex;
            gap: 20px;
        }

        .route-quick-distance,
        .route-quick-time,
        .route-quick-info {
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* Body */
        .route-info-body {
            flex: 1;
            overflow: hidden !important;
            display: flex;
            flex-direction: column;
            min-height: 0;
            height: 100%;
        }

        /* Tab Navigation */
        .route-tabs {
            display: flex;
            background: #f8f9fa;
            border-bottom: 1px solid #dee2e6;
            flex-shrink: 0;
        }

        .route-tab {
            flex: 1;
            padding: 12px;
            background: none;
            border: none;
            color: #6c757d;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            position: relative;
        }

        .route-tab:hover {
            color: #495057;
            background: rgba(0, 0, 0, 0.03);
        }

        .route-tab.active {
            color: #c3c417;
            font-weight: 600;
        }

        .route-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 3px;
            background: #e42025;
        }

        /* Tab Content Container */
        .route-tab-content {
            flex: 1;
            overflow: hidden;
            min-height: 0;
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
        }

        /* Tab Panes */
        .route-tab-pane {
            display: none !important;
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        .route-tab-pane.active {
            display: flex !important;
            flex-direction: column;
            overflow-y: auto;
        }

        /* Übersicht Tab */
        #route-tab-overview {
            padding: 24px;
            overflow-y: auto;
            overflow-x: hidden;
            height: 100%;
            display: flex;
            flex-direction: column;
            min-height: 0;
            /* Wichtig für Flexbox */
            position: relative;
        }

        /* Wegbeschreibung Tab */
        #route-tab-directions {
            padding: 0;
            display: flex;
            flex-direction: column;
            height: 100%;
            overflow: hidden;
        }

        /* Directions List */
        .route-directions-list {
            flex: 1;
            overflow-y: auto !important;
            overflow-x: hidden;
            padding: 16px;
            height: 100%;
            min-height: 0;
            -webkit-overflow-scrolling: touch;
        }

        /* Route Stats */
        .route-stats {
            display: grid;
            gap: 16px;
            margin-bottom: 24px;
            flex-shrink: 0;
            /* Stats nicht schrumpfen lassen */
        }

        .route-stat-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px;
            background: #f8f9fa;
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .route-stat-item:hover {
            background: #e9ecef;
            transform: translateX(4px);
        }

        .route-stat-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, #e42025 0%, #8c1b1c 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #000000;
            font-size: 20px;
            flex-shrink: 0;
        }

        .route-stat-details {
            flex: 1;
        }

        .route-stat-label {
            display: block;
            font-size: 13px;
            color: #6c757d;
            margin-bottom: 4px;
        }

        .route-stat-value {
            display: block;
            font-size: 18px;
            font-weight: 600;
            color: #2c3e50;
        }

        /* Route Actions */
        .route-actions {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            flex-shrink: 0;
            /* Actions nicht schrumpfen lassen */
            margin-bottom: 0;
            /* Kein extra Margin am Ende */
        }

        .route-action-btn {
            padding: 14px 20px;
            background: #ffffff;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            font-weight: 500;
            color: #495057;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .route-action-btn:hover {
            border-color: #e42025;
            background: #fffbf0;
            color: #000000;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .route-action-btn.primary {
            background: linear-gradient(135deg, #e42025 0%, #8c1b1c 100%);
            border-color: #e42025;
            color: #000000;
        }

        .route-action-btn.primary:hover {
            box-shadow: 0 4px 16px rgba(228, 32, 37, 0.4);
        }

        /* Traffic Alert */
        .route-traffic-alert {
            padding: 16px;
            background: #fff3cd;
            border: 1px solid #a5d6a7;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
            color: #000;
            margin-top: 20px;
        }

        .route-traffic-alert i {
            font-size: 20px;
            color: #ff6b6b;
        }

        /* Notice */
        .route-notice {
            background: #e8f5e9;
            padding: 15px;
            border-radius: 6px;
            margin: 20px 0;
            color: #8c1b1c;
            font-size: 14px;
            border: 1px solid #a5d6a7;
            flex-shrink: 0;
            min-height: fit-content;
            line-height: 1.5;
        }

        .route-notice i {
            margin-right: 8px;
        }

        /* Spezifischer Style für Fußgänger-Hinweis */
        #route-tab-overview .route-notice[style*="background: #e3f2fd"] {
            background: #e3f2fd !important;
            border-color: #2196f3 !important;
            color: #1565c0 !important;
            margin-top: 20px !important;
            margin-bottom: 15px !important;
        }

        /* Direction Items */
        .route-direction-item {
            display: flex;
            gap: 16px;
            padding: 16px;
            margin-bottom: 12px;
            background: #ffffff;
            border: 1px solid #e9ecef;
            border-radius: 12px;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .route-direction-item:last-child {
            margin-bottom: 0;
        }

        .route-direction-item:hover {
            border-color: #e42025;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        /* Start und Ende hervorheben */
        .route-direction-item.start {
            border-color: #e42025;
            background: #f0fff4;
        }

        .route-direction-item.end {
            border-color: #dc3545;
            background: #fff0f0;
        }

        .route-direction-icon {
            width: 40px;
            height: 40px;
            background: #e42025;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #000;
            flex-shrink: 0;
        }

        .route-direction-item.start .route-direction-icon {
            background: #e42025;
            color: white;
        }

        .route-direction-item.end .route-direction-icon {
            background: #dc3545;
            color: white;
        }

        .route-direction-content {
            flex: 1;
        }

        .route-direction-instruction {
            color: #2c3e50;
            font-size: 15px;
            line-height: 1.5;
            margin-bottom: 4px;
            font-weight: 500;
        }

        .route-direction-meta {
            display: flex;
            gap: 16px;
            font-size: 13px;
            color: #6c757d;
        }

        .route-direction-distance::before {
            content: '\f018';
            font-family: 'FontAwesome';
            margin-right: 4px;
        }

        .route-direction-time::before {
            content: '\f017';
            font-family: 'FontAwesome';
            margin-right: 4px;
        }

        .route-no-directions {
            text-align: center;
            color: #6c757d;
            padding: 40px 20px;
            font-size: 14px;
        }

        /* ÖPNV Styles */
        .route-transit-wrapper {
            flex: 1;
            overflow-y: auto !important;
            overflow-x: hidden;
            padding: 20px;
            padding-bottom: 40px;
            height: 100%;
            min-height: 0;
            -webkit-overflow-scrolling: touch;
        }

        .route-transit-wrapper>*:last-child {
            margin-bottom: 20px;
        }

        /* ÖPNV Tab Container */
        #route-tab-transit {
            padding: 0;
            display: flex;
            flex-direction: column;
            height: 100%;
            overflow: hidden;
        }

        .route-transit-actions {
            margin-bottom: 24px;
        }

        .route-transit-actions h4,
        .route-transit-stops h4,
        .route-transit-apps h4 {
            margin: 0 0 12px 0;
            color: #2c3e50;
            font-size: 16px;
            font-weight: 600;
        }

        .route-transit-links {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .route-transit-button {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            text-decoration: none;
            color: #333;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .route-modal button,
        .route-modal input[type="button"],
        .route-modal in2put[type="submit"] {
          line-height: 3.5rem !important;
        }

        .route-modal .bttn:hover,
            button:hover,
            input[type="submit"]:hover,
            input[type="reset"]:hover,
            input[type="button"]:hover,
            .bttn:focus,
            button:focus,
            input[type="submit"]:focus,
            input[type="reset"]:focus,
            input[type="button"]:focus {
              background-color: transparent;
              border-color: #ffffff;
              color: #ffffff;
              outline: 0;
            }

        .route-transit-button:hover {
            border-color: #e42025;
            background: #fffbf0;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            text-decoration: none;
            color: #333;
        }

        .route-transit-button img {
            width: 24px;
            height: 24px;
        }

        .route-transit-button i {
            font-size: 24px;
            width: 24px;
            text-align: center;
        }

        .route-transit-button.bvg {
            border-left: 4px solid #ffcc00;
        }

        .route-transit-button.sbahn {
            border-left: 4px solid #00a755;
        }

        .route-transit-button.vbb {
            border-left: 4px solid #e30613;
        }

        /* Haltestellen */
        .route-transit-stops {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 20px;
        }

        .route-transit-stop {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid #e9ecef;
        }

        .route-transit-stop:last-child {
            border-bottom: none;
        }

        .route-transit-line {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            font-weight: bold;
            font-size: 16px;
            flex-shrink: 0;
        }

        .route-transit-line.bus {
            background: #6B46C1;
            color: white;
        }

        .route-transit-line.sbahn {
            background: #00a755;
            color: white;
        }

        .route-transit-line.ubahn {
            background: #0066CC;
            color: white;
        }

        .route-transit-stop-info {
            flex: 1;
        }

        .route-transit-stop-name {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 4px;
        }

        .route-transit-stop-distance {
            font-size: 13px;
            color: #6c757d;
        }

        /* Apps */
        .route-transit-apps {
            background: #e8f5e9;
            border-radius: 12px;
            padding: 16px;
        }

        .route-transit-apps p {
            font-size: 14px;
            color: #666;
            margin-bottom: 12px;
        }

        .route-app-buttons {
            display: flex;
            gap: 10px;
        }

        .route-app-link {
            flex: 1;
            padding: 10px;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            text-align: center;
            text-decoration: none;
            color: #333;
            font-size: 14px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .route-app-link:hover {
            border-color: #e42025;
            background: #fffbf0;
            text-decoration: none;
        }

        /* Error State */
        .route-error {
            padding: 60px 40px;
            text-align: center;
        }

        .route-error-icon {
            font-size: 64px;
            color: #dc3545;
            margin-bottom: 24px;
        }

        .route-error-message h4 {
            color: #2c3e50;
            font-size: 20px;
            margin-bottom: 12px;
        }

        .route-error-message p {
            color: #6c757d;
            font-size: 16px;
            margin-bottom: 24px;
        }

        .route-error-retry {
            padding: 12px 32px;
            background: #dc3545;
            color: #ffffff;
            border: none;
            border-radius: 0px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .route-error-retry:hover {
            background: #c82333;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
        }

        /* Loading State */
        .route-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 300px;
            color: #6c757d;
        }

        .route-spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #e42025;
            border-radius: 50%;
            width: 48px;
            height: 48px;
            animation: routeSpin 1s linear infinite;
            margin-bottom: 20px;
        }

        @keyframes routeSpin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Notification Toast */
        .route-notification {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: #2c3e50;
            color: #ffffff;
            padding: 16px 32px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            z-index: 10010;
            transition: transform 0.3s ease;
        }

        .route-notification.show {
            transform: translateX(-50%) translateY(0);
        }

        /* SCROLLBAR STYLING */
        .route-form-section::-webkit-scrollbar,
        .route-tab-pane::-webkit-scrollbar,
        .route-directions-list::-webkit-scrollbar,
        .route-transit-wrapper::-webkit-scrollbar,
        .route-suggestions::-webkit-scrollbar {
            width: 6px;
        }

        .route-form-section::-webkit-scrollbar-track,
        .route-tab-pane::-webkit-scrollbar-track,
        .route-directions-list::-webkit-scrollbar-track,
        .route-transit-wrapper::-webkit-scrollbar-track,
        .route-suggestions::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 0px;
        }

        .route-form-section::-webkit-scrollbar-thumb,
        .route-tab-pane::-webkit-scrollbar-thumb,
        .route-directions-list::-webkit-scrollbar-thumb,
        .route-transit-wrapper::-webkit-scrollbar-thumb,
        .route-suggestions::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 0px;
            transition: background 0.3s ease;
        }

        .route-form-section::-webkit-scrollbar-thumb:hover,
        .route-tab-pane::-webkit-scrollbar-thumb:hover,
        .route-directions-list::-webkit-scrollbar-thumb:hover,
        .route-transit-wrapper::-webkit-scrollbar-thumb:hover,
        .route-suggestions::-webkit-scrollbar-thumb:hover {
            background: #999;
        }

        /* RESPONSIVE DESIGN */
        /* Tablet (max-width: 1024px) */
        @media (max-width: 1024px) {
            .route-modal-content {
                max-height: 100vh;
                border-radius: 0;
            }

            .route-form-section {
                width: 360px;
            }

            .route-info {
                width: 360px;
                max-width: calc(100vw - 40px);
            }
        }

        /* Mobile (max-width: 768px) */
        @media (max-width: 768px) {
            .route-modal-dialog {
                padding: 0;
                align-items: flex-start;
            }

            .route-modal-content {
                max-width: 100%;
                height: 100vh;
                max-height: 100vh;
                border-radius: 0;
            }

            .route-modal-header {
                padding: 16px 20px;
            }

            .route-modal-header h2 {
                font-size: 20px;
            }

            .route-modal-header h2::before {
                font-size: 18px;
            }

            .route-modal-body {
                flex-direction: column;
                height: calc(100vh - 72px);
            }

            .route-form-section {
                width: 100%;
                padding: 20px;
                border-right: none;
                border-bottom: 1px solid #e9ecef;
                max-height: 50vh;
                flex-shrink: 0;
            }

            .route-map-section {
                flex: 1;
                min-height: 50vh;
                position: relative;
            }

            .route-mode-buttons {
                grid-template-columns: repeat(4, 1fr);
            }

            .route-mode-btn {
                padding: 12px 8px;
            }

            .route-mode-btn span {
                display: none;
            }

            .route-mode-btn i {
                font-size: 24px;
            }

            /* Mobile Bottom Sheet für Route Info */
            .route-info {
                position: fixed;
                top: auto;
                right: 0;
                bottom: 0;
                left: 0;
                width: 100%;
                max-width: 100%;
                border-radius: 20px 20px 0 0;
                max-height: 85vh;
                transform: translateY(calc(100% - 120px));
                transition: transform 0.3s ease;
            }

            .route-info.expanded {
                transform: translateY(0);
            }

            /* Mobile spezifischer Body */
            .route-info-body {
                max-height: calc(85vh - 120px);
            }

            .route-directions-list {
                padding: 12px;
                -webkit-overflow-scrolling: touch;
            }

            .route-info-header {
                position: relative;
                padding-top: 24px;
                cursor: move;
            }

            .route-info-header::before {
                content: '';
                position: absolute;
                top: 8px;
                left: 50%;
                transform: translateX(-50%);
                width: 40px;
                height: 4px;
                background: rgba(0, 0, 0, 0.2);
                border-radius: 0px;
            }

            /* Mobile Tab Anpassungen */
            .route-tab {
                font-size: 12px;
                padding: 10px 8px;
            }

            .route-tab i {
                font-size: 16px;
            }

            .route-tab span {
                display: none;
            }

            /* Mobile Route Actions */
            .route-actions {
                grid-template-columns: repeat(3, 1fr);
                padding: 0;
                gap: 8px;
            }

            #route-tab-overview {
                padding: 16px;
            }

            .route-action-btn {
                padding: 10px;
                font-size: 12px;
                flex-direction: column;
                gap: 4px;
            }

            .route-action-btn span {
                display: none;
            }

            .route-action-btn i {
                font-size: 20px;
            }

            /* Mobile Stats */
            .route-stats {
                gap: 12px;
            }

            .route-stat-item {
                padding: 12px;
            }

            .route-stat-icon {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }

            /* Mobile Directions */
            .route-direction-item {
                padding: 12px;
                margin-bottom: 8px;
            }

            .route-direction-instruction {
                font-size: 14px;
            }

            .route-direction-icon {
                width: 36px;
                height: 36px;
                font-size: 16px;
            }

            /* Mobile Transit */
            .route-transit-wrapper {
                padding: 16px;
            }

            .route-transit-links {
                flex-direction: column;
            }

            .route-app-buttons {
                flex-direction: column;
            }
        }

        /* Small Mobile (max-width: 480px) */
        @media (max-width: 480px) {
            .route-form-group {
                margin-bottom: 20px;
            }

            .route-destination {
                padding: 16px;
            }

            .route-calculate-btn {
                padding: 16px;
                font-size: 16px;
            }

            .route-info {
                max-height: 90vh;
            }

            .route-summary-quick {
                font-size: 12px;
                gap: 12px;
            }
        }

        /* PRINT STYLES */
        @media print {
            body * {
                visibility: hidden;
            }

            .route-modal-content,
            .route-modal-content * {
                visibility: visible;
            }

            .route-modal-content {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                box-shadow: none;
                border-radius: 0;
            }

            .route-close-btn,
            .route-action-btn,
            .route-calculate-btn,
            .route-info-toggle,
            .route-tabs,
            .route-location-btn {
                font-family: "Roboto", sans-serif;
                display: none !important;
            }

            .route-map-section {
                page-break-after: always;
            }

            .route-directions-list {
                max-height: none;
            }

            .route-tab-pane {
                display: block !important;
                page-break-inside: avoid;
            }

            .route-direction-item {
                page-break-inside: avoid;
            }
        }

        /* ACCESSIBILITY & FOCUS STATES */
        .route-modal *:focus {
            outline: 3px solid rgba(228, 32, 37, 0.5);
            outline-offset: 2px;
        }

        .route-modal button:focus,
        .route-modal input:focus,
        .route-modal select:focus {
            box-shadow: 0 0 0 4px rgba(228, 32, 37, 0.2);
        }

        /* Skip Links for Accessibility */
        .route-skip-link {
            position: absolute;
            top: -40px;
            left: 0;
            background: #e42025;
            color: #000000;
            padding: 8px 16px;
            text-decoration: none;
            border-radius: 0 0 8px 0;
            z-index: 10020;
        }

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

        /* ANIMATIONS & TRANSITIONS */
        /* Pulse Animation for Loading */
        @keyframes routePulse {
            0% {
                opacity: 1;
            }

            50% {
                opacity: 0.6;
            }

            100% {
                opacity: 1;
            }
        }

        .route-calculating {
            animation: routePulse 1.5s ease-in-out infinite;
        }

        /* Ripple Effect */
        @keyframes routeRipple {
            0% {
                transform: scale(0);
                opacity: 1;
            }

            100% {
                transform: scale(4);
                opacity: 0;
            }
        }

        .route-ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(228, 32, 37, 0.6);
            transform: scale(0);
            animation: routeRipple 0.6s ease-out;
        }

        /* Tab Transition */
        .route-tab-pane {
            transition: opacity 0.3s ease;
        }

        /* Direction Hover Animation */
        @keyframes routeDirectionHover {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(4px);
            }
        }

        .route-direction-item:hover {
            animation: routeDirectionHover 0.3s ease forwards;
        }


/* ============================================================
   STANDALONE-MODUS — FAQ-Style (grauer Body, weißer Container)
   ============================================================ */

body.route-standalone {
    background: #eeeeee !important;
}

body.route-standalone .page-content {
    padding: 60px 0 80px !important;
    background: #eeeeee !important;
}

body.route-standalone .route-modal, body.route-standalone #route-modal {
    display: block !important;
    position: static !important;
    background: transparent !important;
    overflow: visible !important;
    animation: none !important;
    z-index: auto !important;
    width: auto !important;
    height: auto !important;
}

body.route-standalone .route-modal-dialog {
    min-height: auto !important;
    display: block !important;
    padding: 0 15px !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
}

body.route-standalone .route-modal-content {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    max-height: none !important;
    animation: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: block !important;
}

body.route-standalone .route-modal-header {
    display: none !important;
}

body.route-standalone .route-modal-body {
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 600px !important;
}

body.route-standalone .route-form-section,
body.route-standalone .route-map-wrapper {
    min-width: 0 !important;
    max-width: 100% !important;
}

@media (max-width: 991px) {
    body.route-standalone .route-modal-body {
        flex-direction: column !important;
    }
    body.route-standalone .route-form-section,
    body.route-standalone .route-map-wrapper {
        width: 100% !important;
        flex: none !important;
    }
}
