/*
 * Styles für das individualisierbare Portal-Dashboard.
 *
 * Aufbau:
 *  - Mobile-first: die Widgets liegen als vertikaler Stapel im
 *    Quell-Container (.dashboard-stack). Auf großen Bildschirmen verschiebt
 *    dashboard-grid.js die sichtbaren Widgets in ein GridStack-Raster.
 *  - Bearbeitungsmodus: Verschieben/Größe ändern (Desktop), Reihenfolge per
 *    Pfeiltasten (Mobil), Ein-/Ausblenden und Widget-Einstellungen (überall).
 */

:root {
    --dash-navy: #12324a;
    --dash-mint: #4db6ac;
    --dash-coral: #f27a63;
    --dash-sun: #f4b942;
    --dash-sky: #56a6ff;
    --dash-paper: #f6f8fb;
    --dash-border: rgba(18, 50, 74, 0.10);
}

/* ------------------------------------------------------------------ */
/* Toolbar                                                             */
/* ------------------------------------------------------------------ */

.dashboard-edit-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18, 50, 74, 0.05);
    position: relative;
    flex-wrap: wrap;
}

.dashboard-edit-toolbar.is-editing {
    border-color: rgba(77, 182, 172, 0.42);
    background: #f7fcfb;
}

.dashboard-edit-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dash-navy);
    margin-bottom: 3px;
}

.dashboard-edit-copy {
    color: #6d8395;
    margin-bottom: 0;
}

.dashboard-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.dashboard-edit-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.dashboard-edit-status {
    flex-basis: 100%;
    color: #0f5c4f;
    font-size: 13px;
    margin-top: -4px;
}

.dashboard-edit-status.is-error {
    color: #b42318;
}

/* ------------------------------------------------------------------ */
/* Mobile-first Stapel-Ansicht                                         */
/* ------------------------------------------------------------------ */

.dashboard-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-stack.is-desktop {
    display: none;
}

/*
 * FOUC-Schutz: Auf Desktop-Breiten wird die Server-gerenderte Stapel-Ansicht
 * schon vor dem Start von dashboard-grid.js ausgeblendet, damit nicht kurz die
 * einspaltige Stapel-Ansicht aufblitzt und dann ins Raster "zusammenspringt".
 * Nur bei aktivem JavaScript (html.js) — ohne JS bleibt der Stapel sichtbar.
 */
@media (min-width: 768px) {
    html.js .dashboard-stack:not(.is-desktop) {
        display: none;
    }
}

.dashboard-stack-item {
    container-type: inline-size;
}

.dashboard-stack-item.is-hidden {
    display: none;
}

.dashboard-stack-item-actions {
    display: none;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.dashboard-stack.is-editing .dashboard-stack-item:not(.is-hidden) .dashboard-stack-item-actions {
    display: flex;
}

.dashboard-stack.is-editing .dashboard-stack-item:not(.is-hidden) {
    border: 2px dashed rgba(77, 182, 172, 0.7);
    border-radius: 12px;
    padding: 10px;
}

.dashboard-stack-item-actions .dashboard-action-title {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: var(--dash-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ------------------------------------------------------------------ */
/* Widget-Aktionsknöpfe (Zahnrad, Ausblenden, Pfeile)                  */
/* ------------------------------------------------------------------ */

.dashboard-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    background: #fff;
    color: var(--dash-navy);
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.dashboard-action-btn:hover {
    background: #eef8f7;
    border-color: rgba(77, 182, 172, 0.6);
}

.dashboard-action-btn.dashboard-action-hide {
    color: #b42318;
}

.dashboard-action-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* ------------------------------------------------------------------ */
/* Desktop-Raster (GridStack)                                          */
/* ------------------------------------------------------------------ */

.dashboard-grid {
    margin-left: -20px;
    margin-right: -20px;
    display: none;
}

.dashboard-grid.is-active {
    display: block;
}

.dashboard-grid .grid-stack-item-content {
    inset: 0;
    /*
     * Vertikaler Abstand zwischen gestapelten Widgets: GridStack erzeugt bei
     * fixer cellHeight vertikal keinen Rand (siehe dashboard-grid.js). Der
     * Abstand entsteht daher hier ueber vertikalen Innenabstand der Zelle;
     * zwei uebereinander liegende Widgets ergeben zusammen 2 x 16 = 32 px.
     * Der horizontale Abstand (40 px) kommt weiterhin aus dem GridStack-Rand.
     */
    padding-top: 16px;
    padding-bottom: 16px;
    overflow: auto;
    border-radius: 8px;
}

.dashboard-widget-shell {
    position: relative;
    container-type: inline-size;
    height: 100%;
}

.dashboard-widget-shell > [data-dashboard-widget] {
    height: 100%;
    overflow: auto;
}

.dashboard-grid.is-editing .dashboard-widget-shell {
    outline: 2px dashed rgba(77, 182, 172, 0.7);
    outline-offset: -4px;
    cursor: move;
}

.dashboard-grid.is-editing .dashboard-widget-shell:before {
    content: "Verschieben";
    position: absolute;
    top: 8px;
    right: 84px;
    z-index: 3;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(18, 50, 74, 0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
}

.dashboard-widget-shell .dashboard-shell-actions {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    gap: 6px;
}

.dashboard-grid.is-editing .dashboard-shell-actions {
    display: inline-flex;
}

/* ------------------------------------------------------------------ */
/* Katalog- und Einstellungs-Dialog                                    */
/* ------------------------------------------------------------------ */

.dashboard-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1055;
    background: rgba(18, 50, 74, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dashboard-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 620px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(18, 50, 74, 0.28);
}

.dashboard-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--dash-border);
}

.dashboard-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dash-navy);
    margin: 0;
}

.dashboard-modal-close {
    border: 0;
    background: transparent;
    color: #6d8395;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

.dashboard-modal-body {
    padding: 14px 20px;
    overflow: auto;
}

.dashboard-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--dash-border);
}

.dashboard-catalog-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6d8395;
    margin: 14px 0 8px;
}

.dashboard-catalog-category:first-child {
    margin-top: 0;
}

.dashboard-catalog-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    margin-bottom: 8px;
}

.dashboard-catalog-item-info {
    flex: 1;
    min-width: 0;
}

.dashboard-catalog-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(77, 182, 172, 0.12);
    color: #0f5c4f;
    font-size: 18px;
    flex-shrink: 0;
}

.dashboard-catalog-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dash-navy);
}

.dashboard-catalog-item-copy {
    font-size: 12px;
    color: #6d8395;
    margin: 2px 0 0;
}

.dashboard-catalog-item .btn {
    white-space: nowrap;
}

.dashboard-settings-field {
    margin-bottom: 14px;
}

.dashboard-settings-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6d8395;
    margin-bottom: 5px;
}

.dashboard-settings-field input,
.dashboard-settings-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    color: var(--dash-navy);
    background: #fff;
    font-size: 14px;
}

/* ------------------------------------------------------------------ */
/* Platzhalter und Empty-State                                         */
/* ------------------------------------------------------------------ */

.dashboard-empty {
    border: 1px dashed rgba(18, 50, 74, 0.18);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    color: #6d8395;
    background: linear-gradient(180deg, rgba(77, 182, 172, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.dashboard-empty-state {
    margin-bottom: 18px;
}

.dashboard-empty-state p {
    margin: 0;
}

.dashboard-widget-pending .dashboard-panel-copy {
    margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.dashboard-hero {
    background: linear-gradient(135deg, var(--dash-navy) 0%, #1d5c7a 58%, #6ec6c0 100%);
    border-radius: 24px;
    color: #fff;
    padding: 32px;
    box-shadow: 0 20px 45px rgba(18, 50, 74, 0.18);
    overflow: hidden;
    position: relative;
}

.dashboard-hero:before,
.dashboard-hero:after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-hero:before {
    width: 220px;
    height: 220px;
    top: -90px;
    right: -40px;
}

.dashboard-hero:after {
    width: 160px;
    height: 160px;
    bottom: -70px;
    right: 180px;
}

.dashboard-hero-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.dashboard-hero-title {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 12px;
    max-width: 560px;
}

.dashboard-hero-copy {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
}

.dashboard-pill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-pill {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 16px 18px;
    backdrop-filter: blur(8px);
}

.dashboard-pill .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.72;
    margin-bottom: 8px;
}

.dashboard-pill .value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

@container (max-width: 760px) {
    .dashboard-hero {
        padding: 24px;
    }

    .dashboard-hero .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .dashboard-hero-title {
        font-size: 24px;
    }

    .dashboard-pill-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------ */
/* Karten und Kennzahlen                                               */
/* ------------------------------------------------------------------ */

.dashboard-card {
    display: block;
    border: 1px solid var(--dash-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(18, 50, 74, 0.06);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(18, 50, 74, 0.11);
    border-color: rgba(18, 50, 74, 0.18);
}

.dashboard-stat {
    padding: 24px;
    height: 100%;
}

.dashboard-stat .eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6d8395;
    margin-bottom: 12px;
}

.dashboard-stat .value {
    font-size: 36px;
    line-height: 1;
    font-weight: 700;
    color: var(--dash-navy);
    margin-bottom: 10px;
}

.dashboard-stat .subline {
    color: #607789;
    margin-bottom: 0;
}

.dashboard-accent-coral {
    border-top: 4px solid var(--dash-coral);
}

.dashboard-accent-mint {
    border-top: 4px solid var(--dash-mint);
}

.dashboard-accent-sun {
    border-top: 4px solid var(--dash-sun);
}

.dashboard-accent-sky {
    border-top: 4px solid var(--dash-sky);
}

.dashboard-panel {
    padding: 28px;
}

.dashboard-panel-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dash-navy);
    margin-bottom: 8px;
}

.dashboard-panel-copy {
    color: #6d8395;
    margin-bottom: 24px;
}

/* ------------------------------------------------------------------ */
/* Vergleichs-Balken                                                   */
/* ------------------------------------------------------------------ */

.dashboard-bars {
    display: grid;
    gap: 14px;
}

.dashboard-bar-row {
    display: grid;
    grid-template-columns: minmax(110px, 1.1fr) minmax(0, 2.4fr) 48px;
    gap: 12px;
    align-items: center;
}

.dashboard-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-navy);
}

.dashboard-bar-track {
    height: 12px;
    border-radius: 999px;
    background: #dde7ef;
    overflow: hidden;
}

.dashboard-bar-fill {
    height: 100%;
    border-radius: 999px;
}

.dashboard-bar-coral {
    background: linear-gradient(90deg, #f27a63 0%, #ff9a76 100%);
}

.dashboard-bar-sun {
    background: linear-gradient(90deg, #f4b942 0%, #ffd66b 100%);
}

.dashboard-bar-mint {
    background: linear-gradient(90deg, #4db6ac 0%, #7de0d4 100%);
}

.dashboard-bar-sky {
    background: linear-gradient(90deg, #56a6ff 0%, #7ec1ff 100%);
}

.dashboard-bar-value {
    text-align: right;
    font-weight: 700;
    color: var(--dash-navy);
}

/* ------------------------------------------------------------------ */
/* Detail-Diagramme (vertikale Balken)                                 */
/* ------------------------------------------------------------------ */

.dashboard-detail-grid {
    display: grid;
    gap: 18px;
}

.dashboard-detail-chart {
    border-radius: 18px;
    background: var(--dash-paper);
    padding: 18px;
}

.dashboard-detail-chart-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dash-navy);
    margin-bottom: 6px;
}

.dashboard-detail-chart-copy {
    font-size: 12px;
    color: #607789;
    margin-bottom: 16px;
}

.dashboard-vertical-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 240px;
}

.dashboard-vertical-item {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.dashboard-vertical-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--dash-navy);
    line-height: 1;
}

.dashboard-vertical-track {
    width: 100%;
    min-height: 180px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 6px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(221, 231, 239, 0.45) 0%, rgba(221, 231, 239, 0.95) 100%);
}

.dashboard-vertical-fill {
    width: 100%;
    border-radius: 12px 12px 8px 8px;
    min-height: 6px;
}

.dashboard-vertical-fill-revenue {
    background: linear-gradient(180deg, #1d5c7a 0%, #56a6ff 100%);
}

.dashboard-vertical-fill-bookings {
    background: linear-gradient(180deg, #56a6ff 0%, #4db6ac 100%);
}

.dashboard-vertical-fill-years {
    background: linear-gradient(180deg, #f27a63 0%, #f4b942 100%);
}

.dashboard-vertical-label {
    font-size: 11px;
    font-weight: 700;
    color: #607789;
    text-align: center;
    line-height: 1.2;
}

.dashboard-vertical-item.is-current .dashboard-vertical-label,
.dashboard-vertical-item.is-current .dashboard-vertical-value {
    color: #0d4f70;
}

.dashboard-vertical-item.is-current .dashboard-vertical-track {
    background: linear-gradient(180deg, rgba(86, 166, 255, 0.16) 0%, rgba(86, 166, 255, 0.28) 100%);
}

/* ------------------------------------------------------------------ */
/* Auslastungs-Heatmap                                                 */
/* ------------------------------------------------------------------ */

.dashboard-heatmap-wrap {
    overflow-x: auto;
}

.dashboard-heatmap {
    min-width: 760px;
    display: grid;
    gap: 10px;
}

.dashboard-heatmap-header,
.dashboard-heatmap-row {
    display: grid;
    grid-template-columns: minmax(200px, 2.2fr) repeat(12, minmax(44px, 1fr));
    gap: 8px;
    align-items: center;
}

.dashboard-heatmap-corner,
.dashboard-heatmap-month {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6d8395;
    text-align: center;
}

.dashboard-heatmap-month.is-current {
    color: #0d4f70;
}

.dashboard-heatmap-vehicle {
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.dashboard-heatmap-cell {
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(18, 50, 74, 0.06);
}

.dashboard-heatmap-cell.is-current {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* ------------------------------------------------------------------ */
/* Übergabe-/Rückgabe-Listen                                           */
/* ------------------------------------------------------------------ */

.handover-list {
    display: grid;
    gap: 12px;
}

.handover-item,
.dashboard-next {
    display: grid;
    grid-template-columns: 84px 104px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: var(--dash-paper);
}

a.handover-item,
a.dashboard-next {
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

a.handover-item:hover,
a.dashboard-next:hover {
    transform: translateY(-1px);
    background: #edf4fb;
}

.handover-media {
    width: 104px;
    height: 74px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #dde7ef 0%, #c8d5e2 100%);
    border: 1px solid rgba(18, 50, 74, 0.08);
    flex-shrink: 0;
}

.handover-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.handover-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dash-navy);
    font-size: 24px;
    font-weight: 700;
}

.handover-time,
.dashboard-next-time {
    border-radius: 14px;
    padding: 18px 10px;
    color: #fff;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, #1d5c7a 0%, var(--dash-navy) 100%);
    box-shadow: 0 8px 18px rgba(18, 50, 74, 0.16);
}

.handover-time-date {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.85;
    margin-bottom: 6px;
}

.handover-meta-title,
.dashboard-next-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dash-navy);
    margin-bottom: 4px;
}

.handover-meta-copy,
.dashboard-next-copy {
    color: #607789;
    margin-bottom: 0;
}

.handover-meta-copy {
    margin-bottom: 8px;
}

.handover-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.handover-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(18, 50, 74, 0.08);
    color: var(--dash-navy);
    font-size: 12px;
    font-weight: 700;
}

.handover-status-text {
    font-size: 12px;
    color: #607789;
}

.handover-progress {
    width: 100%;
    max-width: 220px;
    height: 8px;
    border-radius: 999px;
    background: #dde7ef;
    overflow: hidden;
}

.handover-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4db6ac 0%, #56a6ff 100%);
}

.mobile-process-actions {
    margin-top: 12px;
}

.mobile-process-actions .btn {
    border-radius: 999px;
}

/* Fälligkeit direkt auf der Datumskachel */
.handover-time-due {
    display: block;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.handover-time-due--today { color: #8fe0d6; }
.handover-time-due--soon { color: rgba(255, 255, 255, 0.82); }
.handover-time-due--overdue { color: #ffd9cf; }

.handover-time--overdue {
    background: linear-gradient(180deg, #e5573a 0%, #b23a24 100%);
    box-shadow: 0 8px 18px rgba(229, 87, 58, 0.28);
}

/* Prominenter Einstieg „jetzt starten" – volle Breite */
.process-start-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(18, 50, 74, 0.16);
    transition: transform 0.16s ease, filter 0.16s ease;
}

.process-start-cta:hover {
    color: #fff;
}

.process-start-cta--return:hover {
    color: #3a2606;
}

.process-start-cta:hover,
.process-start-cta:focus {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.process-start-cta .icon {
    font-size: 16px;
}

.process-start-cta--handover {
    background: linear-gradient(180deg, #0a8bb2 0%, #00799c 100%);
    box-shadow: 0 8px 16px rgba(0, 121, 156, 0.28);
}

.process-start-cta--return {
    background: linear-gradient(180deg, #f6b24a 0%, #e2921f 100%);
    color: #3a2606;
    box-shadow: 0 8px 16px rgba(224, 138, 30, 0.3);
}

.process-start-cta--overdue {
    background: linear-gradient(180deg, #f2896f 0%, #e5573a 100%);
    color: #fff;
    box-shadow: 0 8px 16px rgba(242, 122, 99, 0.32);
}

/* ------------------------------------------------------------------ */
/* Cash-Management                                                     */
/* ------------------------------------------------------------------ */

.dashboard-cash-list {
    display: grid;
    gap: 12px;
}

.dashboard-cash-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: var(--dash-paper);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

a.dashboard-cash-item:hover {
    transform: translateY(-1px);
    background: #edf4fb;
}

.dashboard-cash-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dash-navy);
    margin-bottom: 4px;
}

.dashboard-cash-copy {
    color: #607789;
    margin-bottom: 10px;
}

.dashboard-cash-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-cash-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(242, 122, 99, 0.12);
    color: #b54f3b;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-cash-pill.is-neutral {
    background: rgba(18, 50, 74, 0.08);
    color: var(--dash-navy);
}

.dashboard-cash-amount {
    text-align: right;
    min-width: 116px;
}

.dashboard-cash-amount-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--dash-navy);
}

.dashboard-cash-amount-copy {
    margin-top: 4px;
    font-size: 12px;
    color: #607789;
}

/* ------------------------------------------------------------------ */
/* Flottenstatus                                                       */
/* ------------------------------------------------------------------ */

.dashboard-fleet-list {
    display: grid;
    gap: 10px;
}

.dashboard-fleet-item {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-areas: "badge vehicle" "badge detail";
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--dash-paper);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

a.dashboard-fleet-item:hover {
    transform: translateY(-1px);
    background: #edf4fb;
}

.dashboard-fleet-badge {
    grid-area: badge;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(18, 50, 74, 0.08);
    color: var(--dash-navy);
    text-align: center;
}

.dashboard-fleet-badge.is-out {
    background: rgba(86, 166, 255, 0.16);
    color: #1b5ca8;
}

.dashboard-fleet-badge.is-handover {
    background: rgba(244, 185, 66, 0.2);
    color: #8a6414;
}

.dashboard-fleet-badge.is-returning {
    background: rgba(242, 122, 99, 0.16);
    color: #b54f3b;
}

.dashboard-fleet-badge.is-free {
    background: rgba(77, 182, 172, 0.16);
    color: #0f5c4f;
}

.dashboard-fleet-vehicle {
    grid-area: vehicle;
    font-size: 14px;
    font-weight: 700;
    color: var(--dash-navy);
}

.dashboard-fleet-detail {
    grid-area: detail;
    font-size: 12px;
    color: #607789;
}

/* ------------------------------------------------------------------ */
/* Offene Anfragen                                                     */
/* ------------------------------------------------------------------ */

.dashboard-request-list {
    display: grid;
    gap: 12px;
}

.dashboard-request-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: var(--dash-paper);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

a.dashboard-request-item:hover {
    transform: translateY(-1px);
    background: #edf4fb;
}

.dashboard-request-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dash-navy);
    margin-bottom: 4px;
}

.dashboard-request-copy {
    color: #607789;
    margin-bottom: 10px;
}

/* ------------------------------------------------------------------ */
/* Insights-Kacheln                                                    */
/* ------------------------------------------------------------------ */

.dashboard-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.dashboard-mini-card {
    border-radius: 16px;
    padding: 16px 14px;
    background: var(--dash-paper);
    border: 1px solid rgba(18, 50, 74, 0.08);
    text-align: center;
}

.dashboard-mini-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6d8395;
    margin-bottom: 8px;
}

.dashboard-mini-value {
    display: block;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    color: var(--dash-navy);
    margin-bottom: 6px;
}

.dashboard-mini-copy {
    display: block;
    font-size: 12px;
    color: #607789;
}

/* ------------------------------------------------------------------ */
/* Eingebetteter Buchungskalender                                      */
/* ------------------------------------------------------------------ */

.dashboard-calendar-panel {
    display: flex;
    flex-direction: column;
}

.dashboard-calendar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-calendar-head .dashboard-panel-copy {
    margin-bottom: 14px;
}

.dashboard-calendar-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.dashboard-calendar-frame-wrap {
    flex: 1;
    min-height: 420px;
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.dashboard-calendar-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}

/* Während der Bearbeitung dürfen iframes keine Maus-Events schlucken,
   sonst bleibt das Drag-and-drop über dem Kalender hängen. */
.dashboard-grid.is-editing iframe,
.dashboard-stack.is-editing iframe {
    pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Responsive Anpassungen                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 991px) {
    .dashboard-pill-grid,
    .handover-item,
    .dashboard-next,
    .dashboard-cash-item,
    .dashboard-request-item {
        grid-template-columns: 1fr;
    }

    .dashboard-fleet-item {
        grid-template-columns: 1fr;
        grid-template-areas: "badge" "vehicle" "detail";
        justify-items: start;
        row-gap: 6px;
    }

    .dashboard-calendar-frame-wrap,
    .dashboard-calendar-frame {
        min-height: 60vh;
    }

    .dashboard-bar-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dashboard-bar-value {
        text-align: left;
    }

    .dashboard-vertical-chart {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dashboard-vertical-track {
        min-height: 140px;
    }

    .dashboard-heatmap {
        min-width: 680px;
    }

    .dashboard-heatmap-header,
    .dashboard-heatmap-row {
        grid-template-columns: minmax(170px, 2fr) repeat(12, minmax(40px, 1fr));
    }

    .dashboard-hero-title {
        font-size: 28px;
    }
}
