/* =============================================
   TAXI APP – Mobile First CSS
   ============================================= */

:root {
    --primary:       #2563eb;
    --primary-dark:  #1d4ed8;
    --success:       #16a34a;
    --danger:        #dc2626;
    --warning:       #d97706;
    --bg:            #0f172a;
    --bg-card:       #1e293b;
    --bg-input:      #0f172a;
    --text:          #f1f5f9;
    --text-muted:    #94a3b8;
    --border:        #334155;
    --header-h:      56px;
    --nav-h:         64px;
    --radius:        12px;
    --radius-sm:     8px;
    --transition:    0.2s ease;
    --shadow:        0 4px 24px rgba(0,0,0,0.4);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body.taxi-app-body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    height: 100dvh;
    width: 100%;
}

/* App Shell */
.taxi-app {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Header */
.taxi-header {
    height: var(--header-h);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-shrink: 0;
    z-index: 100;
}
.taxi-header__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}
.taxi-header__back {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background var(--transition);
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.taxi-header__back:active { background: rgba(37,99,235,0.15); }
.taxi-header__user {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Main */
.taxi-main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: env(safe-area-inset-bottom);
}
.is-driver .taxi-main { /* Nav berücksichtigen bereits durch flex */ }

/* Screens */
.taxi-screen {
    display: none;
    flex-direction: column;
    min-height: 100%;
    padding: 16px;
    animation: fadeIn 0.2s ease;
}
.taxi-screen.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Bottom Nav */
.taxi-bottom-nav {
    height: var(--nav-h);
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    flex-shrink: 0;
    padding-bottom: env(safe-area-inset-bottom);
}
.taxi-nav-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: color var(--transition);
    padding: 8px 4px;
}
.taxi-nav-btn.active { color: var(--primary); }
.taxi-nav-btn:active { opacity: 0.7; }
.nav-icon { font-size: 1.4rem; }
.nav-label { font-size: 0.7rem; font-weight: 500; }

/* Cards */
.taxi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}
.taxi-card__title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

/* Buttons */
.taxi-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    border-radius: var(--radius);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
    padding: 12px 20px;
}
.taxi-btn:active { opacity: 0.8; transform: scale(0.98); }
.taxi-btn--primary   { background: var(--primary); color: #fff; }
.taxi-btn--success   { background: var(--success); color: #fff; }
.taxi-btn--danger    { background: var(--danger);  color: #fff; }
.taxi-btn--warning   { background: var(--warning); color: #fff; }
.taxi-btn--ghost     { background: transparent; border: 1px solid var(--border); color: var(--text); }
.taxi-btn--sm        { min-height: 40px; font-size: 0.875rem; }
.taxi-btn:disabled   { opacity: 0.4; cursor: not-allowed; }

/* Form Elements */
.taxi-form-group { margin-bottom: 14px; }
.taxi-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.taxi-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    padding: 12px 14px;
    transition: border-color var(--transition);
    -webkit-appearance: none;
}
.taxi-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}
.taxi-input::placeholder { color: var(--text-muted); }

/* Select */
.taxi-select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    padding: 12px 14px;
    -webkit-appearance: none;
    cursor: pointer;
}
.taxi-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

/* Payment Method Buttons */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.payment-btn {
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 12px 6px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}
.payment-btn.selected {
    border-color: var(--primary);
    background: rgba(37,99,235,0.15);
    color: var(--text);
}

/* Ride List */
.ride-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.ride-item:last-child { border-bottom: none; }
.ride-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(37,99,235,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.ride-item__info { flex: 1; min-width: 0; }
.ride-item__route {
    font-size: 0.85rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.ride-item__meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.ride-item__amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--success);
    flex-shrink: 0;
}
.ride-item--corrected { opacity: 0.45; }

/* Summary Rows */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row--total {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--success);
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 12px;
}
.summary-row--profit { color: var(--success); }
.summary-row--loss   { color: var(--danger); }

/* Badges */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}
.badge--bar           { background: #16a34a20; color: #16a34a; }
.badge--karte         { background: #2563eb20; color: #2563eb; }
.badge--transportschein { background: #d9770620; color: #d97706; }
.badge--rechnung      { background: #7c3aed20; color: #7c3aed; }
.badge--db_gutschein  { background: #0891b220; color: #0891b2; }
.badge--sonstige      { background: #64748b20; color: #94a3b8; }

/* Toast */
.taxi-toast {
    position: fixed;
    bottom: calc(var(--nav-h) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;
    max-width: 320px;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
}
.taxi-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.taxi-toast--success { border-color: var(--success); color: #4ade80; }
.taxi-toast--error   { border-color: var(--danger);  color: #f87171; }
.taxi-toast--info    { border-color: var(--primary);  color: #60a5fa; }

/* Modal */
.taxi-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; }
.taxi-modal.hidden { display: none; }
.taxi-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.taxi-modal__content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius) var(--radius) 0 0;
    border-top: 1px solid var(--border);
    padding: 20px;
    width: 100%;
    max-height: 90dvh;
    overflow-y: auto;
    animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Loading */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 200px;
    color: var(--text-muted);
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Shift Status Banner */
.shift-banner {
    background: linear-gradient(135deg, #1e3a5f, #1e293b);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}
.shift-banner__label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.shift-banner__value { font-size: 1.1rem; font-weight: 700; color: var(--text); }

/* Amount Display */
.amount-display {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success);
    text-align: center;
    padding: 20px 0;
    letter-spacing: -0.02em;
}

/* Ride Type Toggle */
.toggle-group {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.toggle-btn {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}
.toggle-btn.selected {
    border-color: var(--primary);
    background: rgba(37,99,235,0.15);
    color: var(--text);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Stat Grid */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.stat-item {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}
.stat-item__value { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.stat-item__label { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* Utility */
.hidden         { display: none !important; }
.text-center    { text-align: center; }
.text-muted     { color: var(--text-muted); }
.text-success   { color: var(--success); }
.text-danger    { color: var(--danger); }
.mb-4           { margin-bottom: 16px; }
.mt-4           { margin-top: 16px; }
.gap-8          { gap: 8px; }
.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.w-full         { width: 100%; }

/* Desktop: App zentrieren */
@media (min-width: 481px) {
    body.taxi-app-body { background: #0a0f1e; }
    .taxi-app {
        box-shadow: 0 0 60px rgba(0,0,0,0.6);
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }
}
/* =============================================
   ERGÄNZUNGEN / OVERRIDES
   ============================================= */

/* Größere Buttons */
.taxi-btn--xl {
    min-height: 58px;
    font-size: 1.05rem;
}

/* Choice-Buttons (Fahrt-Art) */
.taxi-btn--choice {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px;
    text-align: left;
    min-height: 80px;
    width: 100%;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.taxi-btn--choice:active { border-color: var(--primary); background: rgba(37,99,235,0.1); }
.choice-icon  { font-size: 2rem; flex-shrink: 0; }
.choice-text  { flex: 1; }
.choice-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.choice-sub   { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.choice-arrow { font-size: 1.5rem; color: var(--text-muted); }

/* Adress-Grid */
.addr-block { margin-bottom: 16px; }
.addr-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.addr-grid {
    display: grid;
    grid-template-columns: 1fr 72px 90px 1fr;
    gap: 6px;
}
.addr-label  { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 4px; display:block; }
.addr-input  { font-size: 0.9rem; padding: 10px 10px; }

/* GPS Button */
.gps-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(37,99,235,0.1);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    min-height: 36px;
    transition: background var(--transition);
}
.gps-btn:active { background: rgba(37,99,235,0.25); }
.gps-btn:disabled { opacity: 0.5; cursor: wait; }

/* Payment Stack */
.payment-stack       { display: flex; flex-direction: column; gap: 8px; }
.payment-stack--compact .taxi-btn--payment { min-height: 44px; font-size: 0.9rem; }

.taxi-btn--payment {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    min-height: 56px;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    transition: border-color var(--transition), background var(--transition);
    text-align: left;
}
.taxi-btn--payment.selected {
    border-color: var(--primary);
    background: rgba(37,99,235,0.12);
}
.pm-icon  { font-size: 1.3rem; flex-shrink: 0; }
.pm-label { flex: 1; }
.pm-check { margin-left: auto; color: var(--primary); font-size: 1.1rem; font-weight: 800; }

/* Transportschein */
.transport-form { }
.transport-header {
    background: rgba(37,99,235,0.1);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.transport-info {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 14px;
}
.tr-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 4px 0;
    color: var(--text-muted);
}
.tr-info-row--total { font-weight: 700; color: var(--text); border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; }

.transport-eigenanteil-display {
    background: rgba(217,119,6,0.1);
    border: 1px solid var(--warning);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 14px;
}
.transport-result {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 8px;
}
.tr-result-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
}
.tr-result-row:last-child  { border-bottom: none; }
.tr-result-row--kk         { color: var(--primary); }
.tr-result-row--total      { font-weight: 700; color: var(--text); }

/* Amount Input */
.taxi-input--amount {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.03em;
    color: var(--success);
    padding: 16px;
}
.amount-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
}
.amount-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

/* Ride Rows */
.ride-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.ride-row:last-child { border-bottom: none; }
.ride-row--dim { opacity: 0.4; }
.ride-row__nr {
    width: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
    padding-top: 2px;
    text-align: right;
}
.ride-row__info    { flex: 1; min-width: 0; }
.ride-row__route   { font-size: 0.82rem; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.ride-row__arrow   { color: var(--text-muted); margin: 0 4px; }
.ride-row__meta    { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ride-row__time    { font-size: 0.72rem; color: var(--text-muted); }
.ride-row__right   { flex-shrink: 0; text-align: right; }
.ride-row__amount  { font-size: 0.95rem; font-weight: 700; color: var(--success); }
.ride-row__actions { display: flex; gap: 4px; margin-top: 4px; justify-content: flex-end; }

.action-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
}
.action-btn:active { opacity: 0.7; }

/* Badges */
.badge--pauschale { background: #7c3aed20; color: #a78bfa; }
.badge--manual    { background: #0891b220; color: #38bdf8; }

/* Shift Status Card */
.shift-status-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
}
.shift-status-card__header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.live-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.3; }
}
.shift-status-card__taxi { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.shift-status-card__meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* Home No-Shift */
.home-no-shift { text-align: center; padding: 32px 0 24px; }
.home-taxi-icon { font-size: 4rem; margin-bottom: 12px; }

/* Screen Title */
.screen-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* 3-col stat grid */
.stat-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Shift Meta Grid */
.shift-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
.shift-meta__label { font-size: 0.7rem; color: var(--text-muted); }
.shift-meta__val   { font-size: 0.95rem; font-weight: 700; color: var(--text); }

/* Month Nav */
.month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.month-nav-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1.1rem;
    padding: 8px 16px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}
.month-nav-btn:active { background: rgba(37,99,235,0.1); }
.month-nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

/* Ride Saved */
.ride-saved-screen { text-align: center; padding: 32px 0 20px; }
.ride-saved-icon   { font-size: 4rem; margin-bottom: 10px; }
.ride-saved-title  { font-size: 1.3rem; font-weight: 800; color: var(--success); }

/* Toggle XL */
.toggle-btn--xl { min-height: 56px; font-size: 1rem; }

/* Input LG */
.taxi-input--lg { font-size: 1.2rem; padding: 14px; font-weight: 700; }

/* Button Row */
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Modal */
.modal-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.modal-sub   { font-size: 0.8rem; color: var(--text-muted); }

/* Empty List */
.empty-list { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding: 16px 0; }

/* GPS V3 */
.gps-status {
    display:inline-flex;
    align-items:center;
    max-width:130px;
    margin-left:6px;
    padding:3px 7px;
    border:1px solid var(--border);
    border-radius:999px;
    color:var(--text-muted);
    font-size:0.62rem;
    line-height:1.1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.gps-status--ok { border-color:var(--success); color:#4ade80; }
.gps-status--error { border-color:var(--danger); color:#f87171; }
.gps-mini {
    margin-top:8px;
    color:var(--text-muted);
    font-size:0.72rem;
    line-height:1.35;
}
@media (max-width:380px) { .gps-status { display:none; } }


/* Live Map V5 */
.taxi-live-map {
    width: 100%;
    height: 360px;
    min-height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-input);
    margin-bottom: 10px;
}
.gps-status {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.gps-status--ok { border-color: var(--success); color: #4ade80; }
.gps-status--error { border-color: var(--danger); color: #f87171; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.gps-mini {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}
.leaflet-container { font-family: inherit; }

/* V10 Dokument-Scan / Status */
.document-scan-card .taxi-doc-input { padding: 10px; }
.document-input-row { border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.document-input-row:last-child { border-bottom: none; }
.taxi-toast--warning { border-color: var(--warning); color: #fbbf24; }
.gps-mini { font-size: 0.72rem; color: var(--text-muted); margin-top: 8px; line-height: 1.35; }


/* Bank & Büro V11 */
.bank-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.bank-tab { min-height: 46px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--bg-input); color: var(--text-muted); font-weight: 700; cursor: pointer; padding: 8px; }
.bank-tab.active { border-color: var(--primary); background: rgba(37,99,235,0.15); color: var(--text); }
.bank-summary-card .summary-row--expense { color: var(--danger); }
.bank-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bank-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; min-width: 620px; }
.bank-table th, .bank-table td { border-bottom: 1px solid var(--border); padding: 8px 6px; text-align: right; white-space: nowrap; }
.bank-table th:first-child, .bank-table td:first-child { text-align: left; }
.bank-table th { color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; }
.bank-table tfoot td { font-weight: 800; color: var(--success); }

/* =============================================
   V15 PRO Receipt / Print
   ============================================= */
.receipt-actions { margin-bottom: 12px; }
.receipt-pro {
    background: #fff;
    color: #111;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    max-width: 360px;
    margin: 0 auto 24px;
    padding: 18px 16px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.receipt-pro .r-header { text-align: center; border-bottom: 2px solid #111; padding-bottom: 10px; margin-bottom: 10px; }
.receipt-pro .r-header h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.receipt-pro .r-header p { margin: 0; line-height: 1.35; font-size: .86rem; }
.receipt-pro .r-meta div,
.receipt-pro .r-row { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; padding: 3px 0; }
.receipt-pro .r-section { border-top: 1px dashed #111; margin-top: 12px; padding-top: 10px; }
.receipt-pro .r-section h3 { font-size: .9rem; text-align: center; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.receipt-pro .r-section p { margin: 7px 0; line-height: 1.35; font-size: .88rem; }
.receipt-pro .r-total { border-top: 1px solid #111; margin-top: 6px; padding-top: 8px; font-weight: 800; font-size: 1rem; }
.receipt-pro .r-qr { width: 124px; height: 124px; border: 2px solid #111; margin: 14px auto 10px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .7rem; padding: 8px; word-break: break-word; }
.receipt-pro .r-footer { border-top: 1px dashed #111; padding-top: 10px; margin-top: 12px; text-align: center; font-size: .82rem; }
.receipt-pro .r-footer p { margin: 3px 0; }

@media print {
    body.taxi-app-body { background: #fff !important; height: auto !important; overflow: visible !important; }
    .no-print, .taxi-header, .taxi-bottom-nav, .taxi-toast { display: none !important; }
    .taxi-app { max-width: none !important; height: auto !important; box-shadow: none !important; border: 0 !important; }
    .taxi-main { overflow: visible !important; padding: 0 !important; }
    .taxi-screen { display: block !important; padding: 0 !important; }
    .receipt-pro { box-shadow: none !important; border-radius: 0 !important; margin: 0 auto !important; max-width: 320px !important; }
}

/* V16: Manuelle Schichten */
.manual-payment-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.manual-shift-table { min-width: 900px; }
@media (min-width: 420px) { .manual-payment-grid { grid-template-columns: repeat(3, 1fr); } }


/* =============================================
   FREE NOW STYLE DRIVER UI - V18
   ============================================= */
.taxi-app { background: radial-gradient(circle at top, #162238 0, var(--bg) 48%); }
.taxi-header { height: 64px; background: rgba(30,41,59,.96); backdrop-filter: blur(14px); }
.taxi-header__title { font-size: 1.18rem; font-weight: 850; }
.taxi-bottom-nav { height: 76px; border-top-color: rgba(148,163,184,.22); box-shadow: 0 -10px 30px rgba(0,0,0,.28); }
.taxi-nav-btn { position: relative; border-radius: 18px; margin: 7px 3px; }
.taxi-nav-btn.active { background: rgba(37,99,235,.16); color: #fff; }
.taxi-nav-btn[data-screen="ride-type"] { transform: translateY(-14px); background: var(--success); color: #fff; box-shadow: 0 12px 26px rgba(22,163,74,.32); }
.taxi-nav-btn[data-screen="ride-type"].active { background: var(--success); }
.taxi-nav-btn[data-screen="ride-type"] .nav-icon { font-size: 1.8rem; }
.nav-label { font-size: .68rem; }
.fn-hero { background: linear-gradient(145deg, #1f3b61, #111827 72%); border: 1px solid rgba(96,165,250,.35); border-radius: 24px; padding: 20px; margin-bottom: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.32); }
.fn-hero--offline { background: linear-gradient(145deg, #243044, #111827); text-align: left; }
.fn-hero-top { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.fn-status-pill { display:inline-flex; align-items:center; gap:7px; color:#86efac; background:rgba(22,163,74,.14); border:1px solid rgba(74,222,128,.35); border-radius:999px; padding:7px 12px; font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.fn-status-pill--offline { color:#fbbf24; background:rgba(217,119,6,.13); border-color:rgba(251,191,36,.35); margin-bottom:16px; }
.fn-hero-title { margin-top:12px; font-size:1.65rem; font-weight:900; letter-spacing:-.03em; color:#fff; }
.fn-hero-sub { margin-top:4px; color:var(--text-muted); font-size:.92rem; line-height:1.45; }
.fn-taxi-badge { width:64px; height:64px; border-radius:21px; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; font-size:2rem; }
.fn-earnings { margin-top:22px; padding-top:16px; border-top:1px solid rgba(148,163,184,.22); display:flex; align-items:end; justify-content:space-between; }
.fn-earnings span { color:var(--text-muted); font-size:.86rem; }
.fn-earnings strong { font-size:2rem; color:#4ade80; letter-spacing:-.04em; }
.fn-card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
.fn-stat-card, .fn-mini-card { background:rgba(30,41,59,.82); border:1px solid rgba(148,163,184,.18); border-radius:18px; padding:14px 10px; min-height:78px; }
.fn-stat-card span, .fn-mini-card span { display:block; color:var(--text-muted); font-size:.74rem; margin-bottom:7px; }
.fn-stat-card strong { color:#fff; font-size:1.15rem; font-weight:900; }
.fn-mini-card b { display:block; margin-bottom:5px; }
.fn-primary-action { min-height:68px; border-radius:22px; font-size:1.15rem; font-weight:900; box-shadow: 0 14px 32px rgba(22,163,74,.26); }
.fn-action-list { display:flex; flex-direction:column; gap:10px; }
.fn-action { width:100%; min-height:72px; display:flex; align-items:center; gap:14px; text-align:left; padding:12px 14px; color:var(--text); background:rgba(30,41,59,.88); border:1px solid rgba(148,163,184,.18); border-radius:20px; cursor:pointer; }
.fn-action span { width:42px; height:42px; border-radius:14px; display:flex; align-items:center; justify-content:center; background:rgba(37,99,235,.14); font-size:1.35rem; }
.fn-action div { flex:1; }
.fn-action b { display:block; font-size:.98rem; }
.fn-action small { display:block; color:var(--text-muted); margin-top:3px; }
.fn-action em { color:var(--text-muted); font-size:1.8rem; font-style:normal; }
.fn-flow-head { margin-bottom:16px; padding:18px; border-radius:24px; background:linear-gradient(145deg,#1e293b,#111827); border:1px solid rgba(96,165,250,.24); }
.fn-flow-kicker { color:#60a5fa; text-transform:uppercase; letter-spacing:.08em; font-size:.72rem; font-weight:900; }
.fn-flow-title { margin-top:6px; font-size:1.55rem; font-weight:900; color:#fff; letter-spacing:-.03em; }
.fn-flow-sub { margin-top:4px; font-size:.88rem; color:var(--text-muted); line-height:1.4; }
.fn-progress { height:8px; background:rgba(148,163,184,.16); border-radius:999px; overflow:hidden; margin-top:16px; }
.fn-progress span { display:block; height:100%; background:linear-gradient(90deg,var(--primary),#22c55e); border-radius:999px; }
.fn-step-row { display:flex; justify-content:space-between; gap:4px; margin-top:10px; }
.fn-step-row span { color:var(--text-muted); font-size:.66rem; font-weight:700; }
.fn-step-row span.is-done { color:#93c5fd; }
.fn-choice-list { display:flex; flex-direction:column; gap:12px; }
.fn-choice-card { width:100%; display:flex; align-items:center; gap:16px; min-height:92px; padding:18px; border:1px solid rgba(148,163,184,.22); background:rgba(30,41,59,.92); color:var(--text); border-radius:24px; text-align:left; cursor:pointer; }
.fn-choice-card:active { transform:scale(.99); }
.fn-choice-icon { width:54px; height:54px; display:flex; align-items:center; justify-content:center; border-radius:18px; background:rgba(37,99,235,.16); font-size:1.8rem; flex-shrink:0; }
.fn-choice-card div { flex:1; }
.fn-choice-card b { display:block; font-size:1.05rem; }
.fn-choice-card small { display:block; color:var(--text-muted); margin-top:5px; }
.fn-choice-card em { color:var(--text-muted); font-size:2rem; font-style:normal; }
.taxi-card { border-radius:22px; border-color:rgba(148,163,184,.2); background:rgba(30,41,59,.9); }
.taxi-input, .taxi-select { border-radius:16px; min-height:54px; font-size:1.05rem; }
.taxi-btn { border-radius:18px; }
@media (max-width: 360px) { .fn-card-grid { grid-template-columns:1fr; } .fn-earnings strong { font-size:1.65rem; } }

/* =============================================
   V19 PRIVATSPHÄRE-MODUS - Premium Blur
   ============================================= */
.privacy-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    vertical-align: middle;
}
.privacy-value {
    display: inline-block;
    transition: filter .28s ease, opacity .28s ease, transform .28s ease, letter-spacing .28s ease;
    will-change: filter, opacity, transform;
}
.privacy-wrap.is-hidden .privacy-value {
    filter: blur(7px);
    opacity: .72;
    transform: scale(.98);
    user-select: none;
    pointer-events: none;
}
.privacy-wrap.is-visible .privacy-value {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
    animation: privacyReveal .34s ease both;
}
.privacy-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(96,165,250,.35);
    background: rgba(37,99,235,.12);
    color: #93c5fd;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.privacy-toggle:active { transform: scale(.96); }
.privacy-wrap.is-visible .privacy-toggle {
    background: rgba(22,163,74,.12);
    border-color: rgba(34,197,94,.35);
    color: #86efac;
}
.privacy-eye { font-size: .9rem; }
.fn-earnings strong .privacy-wrap,
.fn-stat-card strong .privacy-wrap,
.stat-item__value .privacy-wrap,
.ride-row__amount .privacy-wrap {
    justify-content: flex-end;
}
.summary-row .privacy-wrap { justify-content: flex-end; }
.bank-table .privacy-wrap {
    justify-content: flex-end;
    min-width: 96px;
}
.bank-table .privacy-toggle { padding: 3px 7px; font-size: .68rem; }
@keyframes privacyReveal {
    0% { filter: blur(7px); opacity: .55; transform: translateY(2px) scale(.98); }
    100% { filter: blur(0); opacity: 1; transform: none; }
}

/* =============================================
   V20 Fahrgast-App + Dispatch Flow
   ============================================= */
body.is-passenger { background:#f8fafc; color:#0f172a; overflow:auto; }
body.is-passenger .taxi-app { max-width:520px; background:#f8fafc; color:#0f172a; min-height:100dvh; }
body.is-passenger .taxi-header { background:#fff; color:#0f172a; border-bottom:1px solid #e2e8f0; }
body.is-passenger .taxi-header__title { color:#0f172a; }
body.is-passenger .taxi-main { padding-bottom:24px; }
.passenger-screen { padding:16px; display:block; }
.passenger-hero { background:linear-gradient(135deg,#111827,#1d4ed8); color:#fff; border-radius:24px; padding:22px; margin-bottom:14px; box-shadow:0 18px 40px rgba(15,23,42,.22); }
.passenger-hero h1 { font-size:1.7rem; line-height:1.1; margin:10px 0 8px; }
.passenger-hero p { color:rgba(255,255,255,.82); font-size:.95rem; }
.passenger-card, .passenger-status { background:#fff; color:#0f172a; border-color:#e2e8f0; box-shadow:0 10px 30px rgba(15,23,42,.08); border-radius:22px; }
body.is-passenger .taxi-label { color:#475569; }
body.is-passenger .taxi-input, body.is-passenger .taxi-select { background:#f8fafc; color:#0f172a; border-color:#cbd5e1; }
.passenger-field-row { display:grid; grid-template-columns:1fr auto; gap:8px; }
.passenger-estimate { background:#eff6ff; border-color:#bfdbfe; color:#1e3a8a; margin:14px 0; }
.passenger-status { text-align:center; padding:24px; }
.passenger-status .summary-row { text-align:left; color:#0f172a; }
.status-icon { font-size:4rem; margin-bottom:10px; }
.order-card { border-left:4px solid var(--primary); }
.order-status-pending, .order-status-redistributed { border-left-color:var(--warning); animation:orderPulse 1.4s ease-in-out infinite; }
.order-status-accepted { border-left-color:var(--primary); }
.order-status-arrived { border-left-color:var(--success); }
.order-head { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:10px; }
.order-route { font-size:.92rem; margin:8px 0; line-height:1.35; }
.passenger-receipt { margin-top:16px; max-width:340px; }
@keyframes orderPulse { 0%,100%{box-shadow:0 0 0 rgba(217,119,6,0)} 50%{box-shadow:0 0 0 5px rgba(217,119,6,.12)} }


/* =============================================
   V21 Passenger FreeNow-style Map + Bottom Sheet
   ============================================= */
body.is-passenger { background:#fff; color:#151515; overflow:hidden; }
body.is-passenger .taxi-app { max-width:520px; background:#fff; color:#151515; min-height:100dvh; }
body.is-passenger .taxi-header { display:none; }
body.is-passenger .taxi-main { height:100dvh; padding:0; overflow:hidden; }
.passenger-flow { padding:0; position:relative; min-height:100dvh; background:#f5f7fb; }
.passenger-map-shell { position:relative; height:47dvh; min-height:330px; overflow:hidden; background:#eef3f8; }
.passenger-map-shell.small { height:48dvh; min-height:340px; }
.fake-map-grid { position:absolute; inset:0; background:linear-gradient(115deg,#eef3f8 0%,#eef3f8 42%,#d6f4f5 43%,#d6f4f5 52%,#eef3f8 53%), repeating-linear-gradient(28deg, transparent 0 56px, rgba(148,163,184,.35) 58px 61px, transparent 63px 122px), repeating-linear-gradient(102deg, transparent 0 82px, rgba(203,213,225,.7) 84px 88px, transparent 90px 160px); }
.map-road { position:absolute; background:rgba(148,163,184,.55); border-radius:999px; box-shadow:0 0 0 7px rgba(255,255,255,.5); }
.map-road.main { width:11px; height:150%; left:51%; top:-20%; transform:rotate(3deg); }
.map-road.side { width:9px; height:90%; left:28%; top:8%; transform:rotate(77deg); }
.map-river { position:absolute; right:0; top:-10%; width:22%; height:120%; background:#a7e8ef; border-radius:50% 0 0 50%; opacity:.8; }
.map-pin { position:absolute; top:38%; left:49%; color:#2563eb; font-size:34px; text-shadow:0 2px 10px rgba(0,0,0,.2); }
.map-locate { position:absolute; right:24px; bottom:106px; width:60px; height:60px; border-radius:50%; border:0; background:#fff; color:#8b1238; font-size:26px; box-shadow:0 10px 24px rgba(0,0,0,.18); }
.map-top-card { position:absolute; top:44px; left:50%; transform:translateX(-50%); background:rgba(255,255,255,.92); border-radius:18px; padding:10px 18px; display:grid; grid-template-columns:1fr auto; gap:0 14px; min-width:230px; box-shadow:0 10px 24px rgba(0,0,0,.12); text-align:center; }
.map-top-card small { grid-column:1/-1; font-size:.78rem; color:#525252; }
.map-top-card strong { font-size:1.05rem; color:#151515; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.passenger-sheet { position:absolute; left:0; right:0; bottom:0; background:#fff; border-radius:26px 26px 0 0; padding:14px 20px 24px; box-shadow:0 -10px 30px rgba(15,23,42,.16); max-height:62dvh; overflow:auto; }
.sheet-handle { width:58px; height:6px; border-radius:99px; background:#ddd; margin:0 auto 16px; }
.search-pill { display:flex; align-items:center; gap:14px; background:#f1f1f2; border-radius:999px; padding:10px; min-height:64px; font-weight:800; font-size:1.05rem; }
.search-icon { width:46px; height:46px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:#d0042f; color:#fff; }
.search-pill button { margin-left:auto; border:0; border-radius:999px; background:#fff; padding:12px 16px; font-weight:800; }
.quick-address { display:grid; gap:18px; margin:24px 4px; }
.quick-address div { display:grid; grid-template-columns:42px 1fr; align-items:center; gap:10px; }
.quick-address span { grid-row:1/3; font-size:28px; }
.quick-address b { font-size:1.05rem; }
.quick-address small { color:#9b3554; }
.service-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:22px 0; }
.service-card { background:#f0eeee; border-radius:14px; min-height:95px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; font-size:32px; }
.service-card span { font-size:.86rem; }
.service-card.muted { opacity:.75; }
.passenger-cta { background:#d0042f; border-radius:16px; }
.passenger-booking { padding:18px 20px 110px; background:#fff; color:#151515; overflow:auto; }
.passenger-booking-head { display:flex; align-items:flex-start; gap:12px; }
.round-back { width:42px; height:42px; border-radius:50%; border:0; background:#f4f4f5; font-size:24px; }
.route-box { flex:1; border:2px solid #8d8588; border-radius:22px; padding:8px 14px; }
.route-box div { display:grid; grid-template-columns:26px 1fr; align-items:center; min-height:48px; }
.route-box div:first-child { border-bottom:1px solid #e5e7eb; }
.route-box input { border:0; outline:0; font-size:1rem; background:transparent; color:#151515; }
.dot { width:16px; height:16px; border-radius:50%; display:inline-block; }
.dot.black { background:#111; }
.dot.red { background:#d0042f; }
.map-select { margin:22px 0; border:0; background:#fff; font-weight:800; font-size:1rem; }
body.is-passenger .passenger-form-card { border:0; box-shadow:none; padding:0; }
body.is-passenger .taxi-label { color:#525252; }
body.is-passenger .taxi-input, body.is-passenger .taxi-select { background:#f7f7f8; color:#151515; border:1px solid #e3e3e6; min-height:52px; }
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ride-options { margin-top:18px; background:#fff; }
.option-title { text-align:center; font-weight:900; font-size:1.05rem; padding:14px 0; }
.ride-option { display:grid; grid-template-columns:82px 1fr auto; gap:14px; align-items:center; min-height:98px; border-top:1px solid #eee; padding:14px 0; }
.ride-option.selected { border-left:5px solid #b01b49; padding-left:10px; background:#faf7f8; }
.ride-emoji { font-size:44px; text-align:center; }
.ride-option b { display:block; font-size:1.1rem; margin-bottom:5px; }
.ride-option small { display:block; color:#555; line-height:1.35; }
.ride-option strong { font-size:1.05rem; white-space:nowrap; }
.option-note { background:#f5f5f6; color:#525252; border-radius:14px; padding:12px; margin:10px 0 0; }
.option-note.error { color:#b91c1c; background:#fee2e2; }
.passenger-sticky { position:fixed; left:20px; right:20px; bottom:20px; width:auto; background:#d0042f; border-radius:14px; z-index:20; }
.status-sheet { max-height:58dvh; text-align:center; }
.status-icon { font-size:56px; margin:6px 0 10px; }
.pulse-car { animation: pulseCar 1.1s infinite; }
@keyframes pulseCar { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.08);opacity:.7} }
.route-line { position:absolute; top:42%; left:20%; right:20%; height:8px; background:#111; border-radius:999px; transform:rotate(13deg); }
.driver-live { color:#16a34a; font-weight:700; font-size:.85rem; }
@media (max-width:380px){ .passenger-sheet{padding-left:14px;padding-right:14px}.ride-option{grid-template-columns:62px 1fr auto}.contact-grid{grid-template-columns:1fr}.service-row{gap:8px}.service-card{min-height:82px;font-size:26px} }

/* V22 Premium Push + Matching */
.dispatch-priority {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(22,163,74,0.14);
    border: 1px solid rgba(22,163,74,0.35);
    color: #86efac;
    font-weight: 800;
    font-size: 0.85rem;
}
.dispatch-priority.muted {
    background: rgba(148,163,184,0.10);
    border-color: rgba(148,163,184,0.25);
    color: var(--text-muted);
}
.order-card.order-status-pending {
    position: relative;
    overflow: hidden;
}
.order-card.order-status-pending::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(22,163,74,0.35);
    border-radius: var(--radius);
    pointer-events: none;
    animation: taxiPremiumPulse 1.5s infinite;
}
@keyframes taxiPremiumPulse {
    0%, 100% { opacity: .35; }
    50% { opacity: 1; }
}


/* V23 Passenger Cancel/Profile + Driver Alert Polish */
.order-card--urgent {
    border-color: var(--warning);
    box-shadow: 0 0 0 2px rgba(217,119,6,0.18), 0 12px 36px rgba(0,0,0,0.35);
    animation: taxiUrgentPulse 1.2s ease-in-out infinite;
}
@keyframes taxiUrgentPulse {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}
.passenger-sheet .taxi-btn--danger,
.cancel-btn { min-height: 54px; font-weight: 800; }
.passenger-card .text-muted { line-height: 1.45; }

/* V25 live/route stability polish */
.mini-route { display:flex; gap:12px; align-items:stretch; background:rgba(255,255,255,0.04); border:1px solid var(--border); border-radius:14px; padding:12px; margin:10px 0; }
.mini-route-line { width:18px; display:flex; flex-direction:column; align-items:center; padding:3px 0; }
.mini-route-line .dot { width:11px; height:11px; border-radius:50%; display:block; }
.mini-route-line .pickup { background:#22c55e; }
.mini-route-line .dropoff { background:#ef4444; }
.mini-route-line .line { flex:1; width:2px; background:linear-gradient(#22c55e,#ef4444); margin:4px 0; border-radius:2px; }
.mini-route-text { display:flex; flex-direction:column; gap:8px; min-width:0; flex:1; }
.mini-route-text b, .mini-route-text span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.receipt-actions { padding: 12px 16px 0; }


/* V27 Fahrer-Flow: Start/Ziel, In-App Navigation, Quittungsaktionen */
.route-card .route-summary { display:flex; flex-direction:column; gap:10px; font-size:0.95rem; }
.route-arrow { color:var(--text-muted); font-size:1.4rem; text-align:center; }
.route-map-card { padding:0; overflow:hidden; }
.in-app-route { width:100%; height:360px; border:0; display:block; background:var(--bg-input); }
.receipt-actions-grid { display:grid; grid-template-columns:1fr; gap:8px; margin-bottom:12px; }
.receipt-actions-grid .taxi-btn { text-decoration:none; }
.receipt-qr-img { display:block; width:180px; height:180px; margin:0 auto 8px; background:#fff; padding:8px; border-radius:12px; }
.receipt-actions-card .taxi-btn { text-decoration:none; }
.addr-block + .addr-block { margin-top:12px; }
.gps-btn { width:100%; justify-content:center; }
.addr-block__header { display:grid; grid-template-columns:1fr; gap:8px; align-items:stretch; }
@media print {
  .no-print, .taxi-header, .taxi-bottom-nav { display:none !important; }
  .receipt-pro { margin:0 auto; box-shadow:none !important; }
}

/* =============================================
   V28 Professional Flow: weniger Klicks, klare Eingaben, In-App Navigation
   ============================================= */
.passenger-v28 .passenger-hero { min-height: 250px; position: relative; overflow: hidden; border-radius: 0 0 24px 24px; background: #e5e7eb; }
.passenger-v28 .passenger-hero.small { min-height: 210px; }
.map-pin-v28 { position:absolute; left:50%; top:48%; transform:translate(-50%,-50%); font-size:2.4rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
.booking-tabs { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:14px 0; }
.booking-tabs .tab { min-height:48px; border-radius:14px; border:1px solid var(--border); background:var(--bg-input); color:var(--text); font-weight:800; cursor:pointer; }
.booking-tabs .tab.active { background:var(--primary); border-color:var(--primary); color:#fff; }
.permission-card { background:rgba(37,99,235,.1); border:1px solid var(--primary); border-radius:16px; padding:14px; margin-bottom:12px; }
.permission-card p { color:var(--text-muted); font-size:.86rem; margin:6px 0 10px; }
.permission-card small { display:block; color:var(--text-muted); margin-top:8px; }
.addr-grid-pro { display:grid; grid-template-columns:1fr 74px; gap:8px; }
.addr-grid-pro input:nth-child(3) { grid-column:1 / 2; }
.addr-grid-pro input:nth-child(4) { grid-column:2 / 3; }
.passenger-address-card { margin-bottom:10px; }
.xl-warning { margin-top:12px; padding:12px; border-radius:12px; background:rgba(217,119,6,.14); border:1px solid var(--warning); color:#fbbf24; font-size:.86rem; font-weight:700; }
.driver-card { margin-top:12px; padding:14px; border-radius:14px; background:rgba(22,163,74,.12); border:1px solid var(--success); font-weight:800; }
.inapp-nav-screen .route-map-card, .route-map-card { padding:0; overflow:hidden; }
.in-app-route { width:100%; height:360px; border:0; display:block; background:#e5e7eb; }
.anfahrt-card { border-color: var(--warning); background: rgba(217,119,6,.08); }
.fn-choice-card { min-height:84px; }
.order-nav { min-height:52px; }
@media (max-width: 380px) { .addr-grid-pro { grid-template-columns:1fr 64px; } .in-app-route { height:300px; } }

/* =============================================
   V29 Driver App: FreeNow/Uber style Map + Bottom Sheet
   ============================================= */
.driver-fn-map-screen,
.driver-orders-map-layout {
    position: relative;
    min-height: calc(100dvh - var(--header-h) - var(--nav-h));
    margin: -16px;
    overflow: hidden;
    background: #f8fafc;
    color: #111827;
}
.driver-orders-map-layout { padding-bottom: 0; }
.driver-fn-map,
.driver-orders-map {
    position: relative;
    height: 48dvh;
    min-height: 330px;
    background: #e5e7eb;
    overflow: hidden;
}
.driver-orders-map { height: 42dvh; min-height: 280px; }
.driver-fn-map-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: saturate(.95) contrast(.98);
}
.driver-fn-fake-map {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, transparent 47%, rgba(148,163,184,.45) 48%, rgba(148,163,184,.45) 52%, transparent 53%),
        linear-gradient(35deg, transparent 40%, rgba(148,163,184,.35) 41%, rgba(148,163,184,.35) 45%, transparent 46%),
        radial-gradient(circle at 20% 25%, #dcfce7 0 12%, transparent 13%),
        radial-gradient(circle at 80% 20%, #dbeafe 0 10%, transparent 11%),
        #f8fafc;
}
.driver-fn-route-line {
    position: absolute;
    left: 18%; right: 16%; top: 42%;
    height: 7px;
    background: #111827;
    transform: rotate(-13deg);
    border-radius: 999px;
    box-shadow: 70px 46px 0 #111827;
}
.driver-fn-car {
    position: absolute;
    right: 24%; top: 43%;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    font-size: 1.5rem;
}
.driver-map-back {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #111827;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.16);
    cursor: pointer;
}
.driver-map-top-pill {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 230px;
    max-width: calc(100% - 130px);
    background: rgba(255,255,255,.96);
    border-radius: 14px;
    padding: 10px 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.driver-map-top-pill b { font-size: .96rem; color: #111827; }
.driver-map-top-pill small { color: #6b7280; font-size: .78rem; white-space: nowrap; }
.driver-bottom-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 58dvh;
    overflow-y: auto;
    background: #fff;
    color: #111827;
    border-radius: 26px 26px 0 0;
    padding: 16px 18px 24px;
    box-shadow: 0 -16px 38px rgba(0,0,0,.18);
    -webkit-overflow-scrolling: touch;
}
.driver-bottom-sheet .sheet-handle {
    width: 58px;
    height: 5px;
    background: #d1d5db;
    border-radius: 999px;
    margin: 0 auto 16px;
}
.driver-bottom-sheet h2 {
    color: #111827;
    font-size: 1.25rem;
    margin-bottom: 14px;
}
.driver-nav-points {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.nav-dot-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
}
.nav-dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    display: block;
}
.nav-dot-start { background: #111827; }
.nav-dot-end { background: #d0022b; }
.nav-line {
    width: 2px;
    height: 42px;
    background: #d1d5db;
    margin: 6px 0;
}
.nav-text-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.nav-text-col small,
.driver-order-route small {
    display: block;
    color: #6b7280;
    font-size: .78rem;
    margin-bottom: 3px;
}
.nav-text-col strong,
.driver-order-route b {
    color: #111827;
    font-size: 1rem;
    line-height: 1.25;
}
.driver-order-card {
    background: #fff;
    color: #111827;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 8px 22px rgba(15,23,42,.08);
}
.driver-order-card.is-new {
    border-left: 5px solid #d0022b;
}
.driver-order-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}
.driver-order-head b { font-size: 1.05rem; color: #111827; }
.driver-order-head small { display: block; color: #6b7280; margin-top: 3px; }
.driver-order-head strong { font-size: 1.08rem; white-space: nowrap; }
.driver-order-route {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    padding: 8px 0;
}
.pin-dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    margin-top: 4px;
    display: block;
}
.pin-dot.pickup { background: #111827; }
.pin-dot.dest { background: #d0022b; }
.driver-order-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}
.driver-order-actions .order-nav,
.driver-order-actions .order-finished {
    grid-column: 1 / -1;
}
.driver-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #111827;
}
.driver-empty-state .empty-icon { font-size: 3rem; margin-bottom: 10px; }
.orders-sheet { max-height: 64dvh; }
.inapp-nav-screen-v29 .taxi-btn,
.driver-orders-map-layout .taxi-btn,
.driver-fn-map-screen .taxi-btn {
    min-height: 56px;
    border-radius: 14px;
}
@media (max-height: 700px) {
    .driver-fn-map, .driver-orders-map { height: 38dvh; min-height: 240px; }
    .driver-bottom-sheet { max-height: 68dvh; }
}


/* V30 Core Fix */
.home-live-order-banner{margin:14px 16px;padding:14px;border-radius:18px;background:linear-gradient(135deg,#7f1d1d,#dc2626);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 12px 28px rgba(220,38,38,.28)}
.taxi-nav-btn.has-live-order{position:relative;color:#f59e0b!important;animation:v30Pulse 1.2s infinite}
.taxi-nav-btn.has-live-order:after{content:attr(data-count);position:absolute;top:6px;right:18px;min-width:18px;height:18px;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center;font-weight:800}
@keyframes v30Pulse{0%,100%{filter:none}50%{filter:drop-shadow(0 0 10px rgba(245,158,11,.8))}}
.passenger-step-card{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start;background:#fff;color:#111;border-radius:20px;padding:14px;margin:12px 0;box-shadow:0 4px 18px rgba(15,23,42,.08)}
.passenger-step-card .taxi-card{box-shadow:none;border:1px solid #eee;margin:10px 0 0;background:#fff;color:#111}.step-num{width:34px;height:34px;border-radius:50%;background:#cf0030;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}.form-hint{display:block;color:#666;margin-top:6px;line-height:1.35}.driver-map-top-pill small{transition:all .2s ease}.driver-fn-car{transition:transform .25s ease}.inapp-nav-screen-v29 .driver-bottom-sheet a[href*="google.com/maps"],.inapp-nav-screen-v29 a[href*="maps.google"]{display:none!important}


/* V33 System Sync / Fahrer-Modus */
.driver-mode-card { margin-top: 12px; }
.driver-mode-toggle .toggle-btn { min-height: 48px; }
.driver-mode-badge { font-size: .75rem; padding: 7px 12px; border-radius: 999px; }
.driver-mode-online { color: #22c55e; border-color: #22c55e; }
.driver-mode-pause { color: #f59e0b; border-color: #f59e0b; }
.driver-mode-offline { color: #94a3b8; border-color: #64748b; }
.taxi-nav-btn.has-live-order::after { content: attr(data-count); position: absolute; top: 6px; right: 22%; background: #ef4444; color: #fff; border-radius: 999px; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; font-weight: 800; }
.taxi-nav-btn { position: relative; }
.home-live-order-banner { margin: 12px 16px; padding: 12px; border-radius: 14px; background: rgba(245,158,11,.16); border: 1px solid rgba(245,158,11,.6); display: flex; align-items: center; justify-content: space-between; gap: 10px; }


/* V34 PRO CLEAN: calmer sync states and clearer workflow */
.driver-mode-card { position: relative; overflow: hidden; }
.driver-mode-badge.driver-mode-online { background: rgba(22,163,74,.16); color: #4ade80; }
.driver-mode-badge.driver-mode-pause { background: rgba(217,119,6,.16); color: #fbbf24; }
.driver-mode-badge.driver-mode-offline { background: rgba(100,116,139,.18); color: #cbd5e1; }
.order-card--urgent, .driver-order-card.is-new { box-shadow: 0 0 0 2px rgba(37,99,235,.32), 0 12px 28px rgba(0,0,0,.28); }
.home-live-order-banner { position: sticky; top: 0; z-index: 50; display:flex; align-items:center; justify-content:space-between; gap:10px; background: rgba(37,99,235,.16); border: 1px solid rgba(96,165,250,.45); border-radius: 14px; padding: 12px; margin-bottom: 12px; backdrop-filter: blur(10px); }
.taxi-nav-btn.has-live-order::after { content: attr(data-count); position:absolute; margin-left: 26px; margin-top: -30px; min-width:18px; height:18px; padding:0 5px; border-radius: 999px; background:#dc2626; color:#fff; font-size:11px; line-height:18px; font-weight:800; }
.driver-orders-map-layout .orders-sheet { max-height: 58vh; overflow-y: auto; }

/* V37 AI Dispatch */
.ai-dispatch-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(37,99,235,0.15);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
}
.driver-mode-busy { background: rgba(217,119,6,0.15); color: var(--warning); }

/* V40 Async Navigation / PWA polish */
.v40-nav-status { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(15,23,42,0.35); }
.v40-loading { color: var(--warning); }
.v40-success { color: var(--success); border-color: var(--success); }
.v40-error { color: var(--danger); border-color: var(--danger); }
#btn-v40-end-ride:disabled { opacity: .45; cursor: wait; }
@media (display-mode: standalone) {
  body.taxi-app-body { overscroll-behavior: none; }
  .taxi-header { padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
}
