/* ==========================================================
   LackPlus – Fuhrparkmanagement Styles
   ========================================================== */

/* ── Layout ── */
.fp-page {
    padding: 24px;
    background: transparent;
    min-height: 100vh;
}

/* ── Header ── */
.fp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.fp-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.fp-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

/* ── Sub-Navigation ── */
.fp-subnav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}
.fp-subnav-link {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .15s;
}
.fp-subnav-link.active,
.fp-subnav-link:hover {
    color: #0783ff;
    border-bottom-color: #0783ff;
}

/* ── KPI Grid ── */
.fp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
@media (max-width: 1100px) {
    .fp-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .fp-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
.fp-kpi {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
}
.fp-kpi-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}
.fp-kpi-value {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}
.fp-kpi-value.green  { color: #22c55e; }
.fp-kpi-value.blue   { color: #0783ff; }
.fp-kpi-value.orange { color: #f59e0b; }
.fp-kpi-value.red    { color: #ef4444; }

/* ── Fälligkeiten-Banner ── */
.fp-due-banner {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fp-due-banner.ok   { border-left: 4px solid #22c55e; }
.fp-due-banner.warn { border-left: 4px solid #f59e0b; }
.fp-due-text {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* ── Toolbar ── */
.fp-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}
.fp-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.fp-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    outline: none;
    box-sizing: border-box;
}
.fp-search input:focus { border-color: #0783ff; }
.fp-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}
.fp-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    color: #374151;
    cursor: pointer;
}
.fp-btn-add {
    padding: 8px 16px;
    background: #0783ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.fp-btn-add:hover { background: #0656b0; color: #fff; }

/* ── Tabelle ── */
.fp-table-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.fp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.fp-table th {
    background: #f8fafc;
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.fp-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    vertical-align: middle;
}
.fp-table tr:last-child td { border-bottom: none; }
.fp-table tr.fp-row { cursor: pointer; transition: background .1s; }
.fp-table tr.fp-row:hover { background: #f8fafc; }

/* ── Status-Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.badge-available { background: #dcfce7; color: #16a34a; }
.badge-available::before { background: #22c55e; }
.badge-offered   { background: #cffafe; color: #0e7490; }
.badge-offered::before   { background: #06b6d4; }
.badge-booked    { background: #fef3c7; color: #b45309; }
.badge-booked::before    { background: #f59e0b; }
.badge-overdue   { background: #fee2e2; color: #b91c1c; }
.badge-overdue::before   { background: #ef4444; }

/* ── Datumsfarben ── */
.date-overdue { color: #ef4444; font-weight: 600; }
.date-warning { color: #f59e0b; font-weight: 600; }
.date-ok      { color: #22c55e; }

/* ── Leer-Zustand ── */
.fp-empty { text-align: center; padding: 60px 20px; color: #94a3b8; }
.fp-empty-icon { font-size: 40px; margin-bottom: 12px; }

/* ── Modal Overlay (Index + Detail) ── */
.fp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}
.fp-modal-overlay.open { display: flex; }
.fp-modal-box {
    background: #fff;
    border-radius: 14px;
    width: 920px;
    max-width: 98vw;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.fp-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    font-size: 14px;
    color: #64748b;
}

/* ── Spinner ── */
.fp-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: #0783ff;
    border-radius: 50%;
    animation: fp-spin .7s linear infinite;
    margin-right: 12px;
}
@keyframes fp-spin { to { transform: rotate(360deg); } }

/* ==========================================================
   Detail Modal
   ========================================================== */

.det-header {
    background: linear-gradient(135deg, #0f766e 0%, #06b6d4 100%);
    color: #fff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
}
.det-header-title {
    font-size: 20px;
    font-weight: 700;
}
.det-header-sub {
    font-size: 13px;
    opacity: .8;
    margin-top: 2px;
}
.det-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.det-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: .8;
}
.det-close-btn:hover { opacity: 1; }

/* ── Tabs ── */
.det-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 20px;
    background: #fff;
    flex-shrink: 0;
    overflow-x: auto;
}
.det-tab {
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: all .15s;
    user-select: none;
}
.det-tab.active,
.det-tab:hover {
    color: #0783ff;
    border-bottom-color: #0783ff;
}

/* ── Tab Body ── */
.det-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 24px;
}
.det-panel { display: none; }
.det-panel.active { display: block; }

/* ── Inhalts-Cards ── */
.det-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.det-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.det-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.det-field-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
}
.det-field-value {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

/* ── Fahrer-Avatar ── */
.det-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dbeafe;
    color: #0656b0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Fälligkeits-Kacheln ── */
.det-due-tile {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
}
.det-due-tile .label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.det-due-tile .value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

/* ── Aktions-Buttons im Header ── */
.det-btn {
    padding: 6px 13px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
}
.det-btn-primary { background: #fff; color: #0783ff; }
.det-btn-primary:hover { background: #eff6ff; }
.det-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.det-btn-outline:hover { background: rgba(255,255,255,.1); }

/* ── Formular-Elemente ── */
.det-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 13px;
    box-sizing: border-box;
}
.det-input:focus { border-color: #0783ff; outline: none; }
.det-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 13px;
    box-sizing: border-box;
    background: #fff;
}
.det-save-btn {
    padding: 8px 18px;
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.det-save-btn:hover { background: #d97706; }
.det-save-btn-blue { background: #0783ff; }
.det-save-btn-blue:hover { background: #0656b0; }
.det-save-btn-outline {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #374151;
}

/* ── Vorschäden — Card Style ── */
.det-defect-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.det-defect-card.resolved { opacity: .65; }
.det-defect-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}
.det-defect-body { flex: 1; min-width: 0; }
.det-defect-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.4;
}
.det-defect-title.resolved { color: #94a3b8; text-decoration: line-through; }
.det-defect-meta { font-size: 11px; color: #94a3b8; margin-bottom: 6px; }
.det-defect-photo {
    max-width: 100%;
    max-height: 140px;
    border-radius: 6px;
    object-fit: cover;
    margin-top: 6px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}
.det-defect-actions { flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.det-history-title {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 16px 0 8px;
}

/* ── Dokument-Typ-Badges ── */
.det-doc-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}
.det-doc-badge.vertr   { background: #dbeafe; color: #0656b0; }
.det-doc-badge.leas    { background: #ccfbf1; color: #0f766e; }
.det-doc-badge.schein  { background: #dcfce7; color: #15803d; }
.det-doc-badge.sonst   { background: #f1f5f9; color: #64748b; }

/* ── KPI-Kachel als Link ── */
.fp-kpi-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .1s, box-shadow .1s;
}
.fp-kpi-link:hover .fp-kpi { box-shadow: 0 4px 12px rgba(0,0,0,.1); transform: translateY(-1px); }
.fp-kpi-link.active-filter .fp-kpi { border-color: #0f766e; box-shadow: 0 0 0 2px rgba(15,118,110,.2); }

/* ── Kosten & Ertrag ── */
.det-ke-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.det-ke-box {
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
}
.det-ke-box.cost    { background: #fee2e2; border: 1px solid #fca5a5; }
.det-ke-box.revenue { background: #dcfce7; border: 1px solid #86efac; }
.det-ke-label { font-size: 11px; font-weight: 600; color: #64748b; margin-bottom: 4px; }
.det-ke-value { font-size: 22px; font-weight: 700; }
.det-ke-box.cost .det-ke-value    { color: #b91c1c; }
.det-ke-box.revenue .det-ke-value { color: #15803d; }

/* ── Dokumente ── */
.det-doc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.det-doc-row:last-child { border-bottom: none; }
.det-doc-icon {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.det-doc-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    flex: 1;
}
.det-doc-type { font-size: 11px; color: #94a3b8; }
.det-doc-download {
    padding: 5px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #374151;
    text-decoration: none;
}
.det-doc-download:hover { background: #f8fafc; }

/* ── Upload-Zone ── */
.det-upload-zone {
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
}
.det-upload-zone:hover { border-color: #0783ff; color: #0783ff; }

/* ── Toggle ── */
.det-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}
.det-toggle input { opacity: 0; width: 0; height: 0; }
.det-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #e2e8f0;
    border-radius: 24px;
    transition: .2s;
}
.det-toggle-slider::before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .2s;
}
.det-toggle input:checked + .det-toggle-slider { background: #22c55e; }
.det-toggle input:checked + .det-toggle-slider::before { transform: translateX(18px); }

/* ── Status-Zeile ── */
.det-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Mini-Modal ── */
.det-mini-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1200;
    align-items: center;
    justify-content: center;
}
.det-mini-overlay.open { display: flex; }
.det-mini-box {
    background: #fff;
    border-radius: 12px;
    width: 440px;
    max-width: 96vw;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
    overflow: hidden;
}
.det-mini-header {
    background: #0783ff;
    color: #fff;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.det-mini-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}
.det-mini-body { padding: 20px; }

/* ── Wizard ── */
.wiz-sidebar-item {
    padding: 11px 16px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all .15s;
}
.wiz-sidebar-item.active {
    border-left-color: #0783ff;
    background: #eff6ff;
}
.wiz-sidebar-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
}
.wiz-sidebar-item.active .wiz-sidebar-dot {
    background: #0783ff;
    color: #fff;
}
.wiz-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
    min-width: 110px;
    background: #fff;
}
.wiz-card.selected,
.wiz-card:hover {
    border-color: #0783ff;
    background: #eff6ff;
}
.wiz-card-icon { font-size: 22px; margin-bottom: 6px; }
.wiz-card-label { font-size: 12px; font-weight: 600; color: #374151; }

/* ==========================================================
   Gradient Header
   ========================================================== */
.fp-grad-header {
    background: linear-gradient(135deg, #0f766e 0%, #06b6d4 100%);
    border-radius: 14px;
    padding: 20px 24px 0;
    margin-bottom: 20px;
    color: #fff;
}
.fp-grad-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}
.fp-grad-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
}
.fp-user-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.fp-stat-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.fp-stat-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 5px 11px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.fp-stat-pill span {
    font-size: 10px;
    font-weight: 500;
    opacity: .8;
    line-height: 1;
}
.fp-stat-pill.warn { background: rgba(239,68,68,.35); }
.fp-grad-nav {
    display: flex;
    gap: 0;
    margin-top: 4px;
}
.fp-grad-nav-link {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: 0;
    transition: all .15s;
    white-space: nowrap;
}
.fp-grad-nav-link.active,
.fp-grad-nav-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}
.fp-grad-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==========================================================
   Fälligkeiten Section
   ========================================================== */
.fp-due-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}
.fp-due-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 0;
    flex-wrap: wrap;
    gap: 10px;
}
.fp-due-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}
.fp-due-tab-row {
    display: flex;
    gap: 0;
    padding: 0 18px;
    margin-top: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.fp-due-tab {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .15s;
    user-select: none;
}
.fp-due-tab.active         { color: #f59e0b; border-bottom-color: #f59e0b; }
.fp-due-tab.overdue.active { color: #ef4444; border-bottom-color: #ef4444; }
.fp-due-list { padding: 2px 18px 6px; }
.fp-due-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
}
.fp-due-item:last-child { border-bottom: none; }
.fp-due-item-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}
.fp-due-item-badge.inspect { background: #fef3c7; color: #b45309; }
.fp-due-item-badge.tuv     { background: #fee2e2; color: #b91c1c; }
.fp-due-item-badge.tire    { background: #ede9fe; color: #7c3aed; }
.fp-due-item-info { flex: 1; min-width: 0; }
.fp-due-item-name { font-size: 13px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-due-item-sub  { font-size: 11px; color: #64748b; margin-top: 1px; }
.fp-due-item-date { font-size: 12px; font-weight: 600; white-space: nowrap; }
.fp-due-item-date.overdue { color: #ef4444; }
.fp-due-item-date.warning  { color: #f59e0b; }
.fp-due-open-btn {
    padding: 4px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.fp-due-open-btn:hover { background: #f8fafc; }
.fp-due-empty {
    padding: 22px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* ==========================================================
   Wizard — Dark Sidebar
   ========================================================== */
.wiz-shell {
    display: flex;
    height: 100%;
    max-height: 92vh;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}
.wiz-sidebar {
    width: 210px;
    background: #0f172a;
    padding: 24px 0 16px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.wiz-sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 8px;
}
.wiz-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.wiz-sidebar-sub {
    font-size: 11px;
    color: rgba(255,255,255,.45);
}
.wiz-sidebar-step {
    padding: 10px 20px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wiz-sidebar-step.active {
    border-left-color: #0783ff;
    background: rgba(37,99,235,.15);
}
.wiz-sidebar-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.5);
    flex-shrink: 0;
}
.wiz-sidebar-step.active .wiz-sidebar-dot {
    background: #0783ff;
    color: #fff;
}
.wiz-sidebar-step.done .wiz-sidebar-dot {
    background: #22c55e;
    color: #fff;
}
.wiz-step-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.5);
}
.wiz-sidebar-step.active .wiz-step-label { color: #fff; }
.wiz-sidebar-step.done .wiz-step-label   { color: rgba(255,255,255,.7); }
.wiz-step-sublabel {
    font-size: 10px;
    color: rgba(255,255,255,.3);
    margin-top: 1px;
}
.wiz-sidebar-footer {
    margin-top: auto;
    padding: 16px 20px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}
.wiz-summary-link {
    font-size: 12px;
    color: rgba(255,255,255,.45);
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
}
.wiz-summary-link:hover { color: rgba(255,255,255,.75); }
.wiz-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}
.wiz-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 28px 28px 10px;
}
.wiz-content-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}
.wiz-content-sub {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 22px;
}
.wiz-content-footer {
    border-top: 1px solid #e2e8f0;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    flex-shrink: 0;
}
.wiz-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}
.wiz-close-btn:hover { color: #374151; }
.wiz-btn-back {
    padding: 8px 18px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #374151;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}
.wiz-btn-next {
    padding: 8px 20px;
    background: #0783ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.wiz-btn-next:hover { background: #0656b0; }
.wiz-btn-submit {
    padding: 10px 24px;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
}
.wiz-btn-submit:hover { background: #16a34a; }
.wiz-btn-submit:disabled { opacity: .5; cursor: not-allowed; }

/* ── Wizard Toggle Pills (Getriebe) ── */
.wiz-pill-group { display: flex; gap: 8px; }
.wiz-pill {
    padding: 9px 22px;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all .15s;
    background: #fff;
}
.wiz-pill.selected { border-color: #0783ff; background: #eff6ff; color: #0783ff; }

/* ── Wizard Icon Cards (Antrieb/Reifen) ── */
.wiz-icon-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.wiz-icon-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
    min-width: 90px;
    background: #fff;
    flex: 1;
}
.wiz-icon-card.selected { border-color: #f59e0b; background: #fffbeb; }
.wiz-icon-card-icon { font-size: 24px; margin-bottom: 5px; }
.wiz-icon-card-label { font-size: 12px; font-weight: 600; color: #374151; }

/* ── Wizard Section Label ── */
.wiz-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
    margin-top: 20px;
}
.wiz-section-label:first-child { margin-top: 0; }

/* ── Wizard Summary ── */
.wiz-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
}
.wiz-summary-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}
.wiz-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #374151;
    padding: 4px 0;
    border-bottom: 1px solid #e2e8f0;
}
.wiz-summary-row:last-child { border-bottom: none; }
.wiz-summary-row span:first-child { color: #94a3b8; }
.wiz-summary-row span:last-child  { font-weight: 600; }

/* ── Wizard Toggle (Optionen) ── */
.wiz-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 6px;
}
.wiz-toggle-info {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ==========================================================
   Detail Header Badge Pills
   ========================================================== */
.det-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.det-head-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,255,255,.2);
    color: #fff;
}
.det-head-badge.status-available { background: rgba(34,197,94,.3); }
.det-head-badge.status-offered   { background: rgba(6,182,212,.3); }
.det-head-badge.status-booked    { background: rgba(245,158,11,.3); }
.det-head-badge.status-overdue   { background: rgba(239,68,68,.3); }

/* ── Verfügbarkeit Info Box ── */
.det-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.det-info-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #0656b0;
    margin-bottom: 8px;
}
.det-info-box ul {
    margin: 0;
    padding-left: 16px;
    font-size: 12px;
    color: #0656b0;
    line-height: 1.7;
}
.det-avail-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}
