* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f5f7;
    color: #111827;
}

/* LOGIN */

.login-body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2f2f2f;
}

.login-box {
    width: 360px;
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.login-box h1 {
    margin-top: 0;
    text-align: center;
}

.login-box p {
    text-align: center;
    color: #666;
}

.login-box label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.login-box input {
    width: 100%;
    padding: 11px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.login-box button {
    width: 100%;
    margin-top: 25px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #2f2f2f;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.login-box button:hover {
    background: #444;
}

.fehler-box {
    background: #ffe1e1;
    color: #8a0000;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
}

/* SIDEBAR */

.sidebar {
    width: 265px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #3a3a3a, #252525);
    color: white;
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.logo-icon {
    font-size: 32px;
}

.logo-title {
    font-size: 24px;
    font-weight: bold;
}

.logo-subtitle {
    font-size: 16px;
    color: #ddd;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu a,
.sidebar-footer a {
    color: white;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 16px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.18);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.25);
}

/* HAUPT */

.hauptbereich {
    margin-left: 240px;
    min-height: 100vh;
}

/* HEADER */

.header {
    height: 72px;
    background: white;
    border-bottom: 1px solid #d8d8d8;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu-button {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.header-box {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.datum-zeile {
    height: 46px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    padding: 0 28px;
    font-size: 16px;
}

.trenner {
    color: #aaa;
}

/* CONTENT */

.content {
    padding: 0 28px 35px 28px;
}

.content h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.willkommen {
    font-size: 18px;
    margin-bottom: 28px;
}

/* KPI */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 24px;
}

.kpi-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    min-height: 145px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.kpi-card p {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.kpi-card h2 {
    margin: 0 0 18px 0;
    font-size: 30px;
}

.kpi-card a {
    text-decoration: none;
    color: #0b5ed7;
}

.kpi-icon {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 28px;
}

.blau {
    background: #eaf2ff;
    color: #0b5ed7;
}

.gruen {
    background: #e7f6ec;
    color: #15803d;
}

.violett {
    background: #f0e9ff;
    color: #6f42c1;
}

.orange {
    background: #fff0df;
    color: #ef6c00;
}

.gruen-text {
    color: #15803d !important;
}

.violett-text {
    color: #6f42c1 !important;
}

.orange-text {
    color: #ef6c00 !important;
}

/* PANELS */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.panel {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    min-height: 200px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e3e3e3;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.panel-header h3 {
    margin: 0;
    font-size: 20px;
}

.panel-header a {
    text-decoration: none;
    color: #0b5ed7;
}

.info-box {
    padding: 16px;
    border-radius: 8px;
}

.blau-box {
    background: #eef5ff;
    border: 1px solid #a8caff;
    color: #0056d6;
}

.gruen-box {
    background: #eaf8ef;
    border: 1px solid #a8dabb;
    color: #0b6b2f;
}

/* AKTIVITÄTEN */

.aktivitaet {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.punkt {
    width: 10px;
    height: 10px;
    background: #159947;
    border-radius: 50%;
}

.aktivitaet small {
    color: #6b7280;
}

/* SYSTEM */

.system-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 11px 0;
    border-bottom: 1px solid #eee;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .sidebar {
        width: 210px;
    }

    .hauptbereich {
        margin-left: 210px;
    }

    .header {
        flex-direction: column;
        height: auto;
        align-items: flex-start;
        padding: 14px;
        gap: 12px;
    }

    .header-right {
        flex-wrap: wrap;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

.seitenkopf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.seitenkopf h1 {
    margin-bottom: 6px;
}

.seitenkopf p {
    margin: 0;
    color: #6b7280;
}

.einstellungen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

.einstellungs-card h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 21px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.einstellungs-card label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: bold;
    color: #374151;
}

.einstellungs-card input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
}

.einstellungs-card input:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107,114,128,0.15);
}

.mini-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
}

.checkbox-zeile {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-weight: normal !important;
    margin-top: 18px !important;
}

.checkbox-zeile input {
    width: auto;
}

@media (max-width: 1100px) {
    .einstellungen-grid {
        grid-template-columns: 1fr;
    }

    .seitenkopf {
        flex-direction: column;
        align-items: flex-start;
    }
}

.tabelle-wrapper {
    width: 100%;
    overflow-x: auto;
}

.daten-tabelle {
    width: 100%;
    border-collapse: collapse;
}

.daten-tabelle th {
    text-align: left;
    padding: 14px;
    background: #f3f4f6;
    border-bottom: 1px solid #d1d5db;
    color: #374151;
}

.daten-tabelle td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.daten-tabelle tr:hover {
    background: #f9fafb;
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
}

.status-gruen {
    background: #dcfce7;
    color: #166534;
}

.status-grau {
    background: #e5e7eb;
    color: #374151;
}

.tabellen-link {
    color: #2f2f2f;
    font-weight: bold;
    text-decoration: none;
}

.tabellen-link:hover {
    text-decoration: underline;
}

.aktions-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.button-klein {
    display: inline-block;
    background: #2f2f2f;
    color: white;
    padding: 7px 11px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

.button-klein:hover {
    background: #444;
}

.button-rot {
    background: #b91c1c;
}

.button-rot:hover {
    background: #991b1b;
}

.speichern-button {
    text-decoration: none;
    display: inline-block;
}

.einstellungs-card select,
.einstellungs-card textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 15px;
}

.einstellungs-card textarea {
    resize: vertical;
}

.status-rot {
    background: #fee2e2;
    color: #991b1b;
}

.status-violett {
    background: #ede9fe;
    color: #5b21b6;
}

.status-orange {
    background: #ffedd5;
    color: #9a3412;
}

.status-blau {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-braun {
    background: #f5e6d3;
    color: #7c4a03;
}

.ausstattung-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px 16px;
}

.ausstattung-grid .checkbox-zeile {
background: #f9fafb;
border: 1px solid #e5e7eb;
padding: 10px;
border-radius: 8px;
margin: 0 !important;
}

.ausstattung-grid small {
display: block;
color: #6b7280;
font-size: 12px;
margin-top: 2px;
}

.rollen-standort-box {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.rollen-standort-box h3 {
    margin-top: 0;
}

.warn-box {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
    padding: 14px;
    border-radius: 10px;
    margin: 18px 0;
}

.filter-leiste {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 15px;
}

.filter-links {
    display: flex;
    gap: 10px;
}

.filter-links a {
    text-decoration: none;
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: bold;
}

.filter-links a.aktiv {
    background: #2f2f2f;
    color: white;
    border-color: #2f2f2f;
}

.filter-suche {
    margin-left: auto;
}

.filter-suche input {
    width: 260px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
}

.aktions-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-submenu {
    margin-left: 18px;
    margin-top: 4px;
}

.sidebar-submenu a {
    padding-left: 18px;
    font-size: 14px;
}

.sidebar-submenu.versteckt {
    display: none;
}

.dropdown-pfeil {
    margin-left: auto;
    font-size: 12px;
}

.erfolg-box {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: bold;
}

.formular-zeile-block {
    display: block;
    margin-bottom: 8px;
}

.formular-zeile-block label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #4b5563;
}

.formular-zeile-block input {
    width: 100%;
}

.seitenkopf-klein {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 15px;
}

.rollen-standort-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.header-standort-select {
    background: white;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    min-width: 180px;
}

.such-ergebnisse {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    margin-top: 6px;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    position: relative;
    z-index: 20;
}

.such-ergebnis {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eeeeee;
}

.such-ergebnis:hover {
    background: #f3f4f6;
}

.hinweis-box {
    background: #eefdf3;
    border: 1px solid #b7ebc6;
    border-radius: 10px;
    padding: 10px 12px;
}

.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.badge-gelb {
    background: #f39c12;
}

.badge-blau {
    background: #3498db;
}

.badge-gruen {
    background: #27ae60;
}

.badge-lila {
    background: #8e44ad;
}

.badge-grau {
    background: #7f8c8d;
}

.badge-rot {
    background: #c0392b;
}

.aktion-box {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.aktion-karte {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: 0.2s ease;
}

.aktion-karte:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0,0,0,0.12);
}

.aktion-icon {
    font-size: 26px;
}

.aktion-karte strong {
    display: block;
    font-size: 15px;
}

.aktion-karte span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.standort-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 18px 0;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.standort-tabs a {
    text-decoration: none;
    color: #374151;
    background: #f3f4f6;
    padding: 9px 13px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.standort-tabs a:hover {
    background: #e5e7eb;
}

.standort-tabs a.aktiv {
    background: #111827;
    color: #ffffff;
}

.unterkunft-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 18px 0;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.unterkunft-tabs a {
    text-decoration: none;
    color: #374151;
    background: #f3f4f6;
    padding: 9px 13px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.unterkunft-tabs a:hover {
    background: #e5e7eb;
}

.unterkunft-tabs a.aktiv {
    background: #111827;
    color: #ffffff;
}

/* Fahrtenbuch Design */
.fahrtenbuch-aktionen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.fahrtenbuch-kachel {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
    transition: 0.2s ease;
    display: flex;
    gap: 16px;
    align-items: center;
}

.fahrtenbuch-kachel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.fahrtenbuch-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: linear-gradient(135deg, #f4f4f4, #e8e8e8);
}

.fahrtenbuch-kachel h3 {
    margin: 0 0 5px 0;
    font-size: 19px;
}

.fahrtenbuch-kachel p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.fahrtenbuch-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.fahrtenbuch-stat {
    background: #fafafa;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #e8e8e8;
}

.fahrtenbuch-stat .zahl {
    font-size: 26px;
    font-weight: 700;
    margin-top: 6px;
}

.fahrzeug-karten {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.fahrzeug-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.fahrzeug-card .fahrzeug-symbol {
    font-size: 34px;
    margin-bottom: 8px;
}

.fahrzeug-card h3 {
    margin: 0 0 6px 0;
}

.fahrzeug-card p {
    margin: 4px 0;
    color: #555;
}

@media (max-width: 1100px) {
    .fahrtenbuch-aktionen,
    .fahrtenbuch-stat-grid,
    .fahrzeug-karten {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .fahrtenbuch-aktionen,
    .fahrtenbuch-stat-grid,
    .fahrzeug-karten {
        grid-template-columns: 1fr;
    }
}

/* Fahrtenbuch V2 */
.km-vorschau-box {
    background: #f7faf7;
    border: 1px solid #d8ead8;
    border-radius: 14px;
    padding: 14px;
    margin-top: 12px;
}

.km-vorschau-box strong {
    font-size: 22px;
}

.maps-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #eef2ff;
    text-decoration: none;
    color: #26336b;
    font-weight: 600;
}

/* Fahrtenbuch schöne Buttons */
.fb-button-leiste {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.fb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0,0,0,0.13);
}

.fb-btn-zurueck {
    background: #ffffff;
    color: #374151;
    border-color: #d9dde3;
}

.fb-btn-speichern {
    background: linear-gradient(135deg, #3f7d58, #5ea16f);
    color: #ffffff;
}

.fb-btn-bearbeiten {
    background: linear-gradient(135deg, #f4b942, #f7cf6a);
    color: #3b2b00;
}

.fb-btn-loeschen {
    background: linear-gradient(135deg, #b94a48, #d86562);
    color: #ffffff;
}

.fb-btn-neutral {
    background: linear-gradient(135deg, #eef2ff, #dfe7ff);
    color: #26336b;
}

.fb-btn-klein {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 11px;
    font-size: 13px;
    box-shadow: none;
}

.fb-aktion-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.fb-aktion-inline form {
    display: inline;
    margin: 0;
}

.fb-aktion-inline button {
    font-family: inherit;
}

/* Fahrtenbuch Fahrzeugstatus */
.fahrzeug-card.ist-inaktiv {
    opacity: 0.72;
    background: #f7f7f7;
    border-style: dashed;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-aktiv {
    background: #e7f6e7;
    color: #276738;
}

.status-inaktiv {
    background: #f5e5e5;
    color: #8b2f2f;
}

/* Fahrtenbuch Auswertung / Druck */
.fb-export-leiste {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.fb-auswertung-kopf {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.fb-summenkarte {
    background: #ffffff;
    border: 1px solid #e3e6ea;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.fb-summenkarte .icon {
    font-size: 28px;
}

.fb-summenkarte .wert {
    font-size: 26px;
    font-weight: 800;
    margin-top: 6px;
}

@media print {
    .sidebar,
    .kopfbereich,
    .seitenkopf .fb-button-leiste,
    .fb-export-leiste,
    .fahrtenbuch-aktionen,
    form,
    .no-print {
        display: none !important;
    }

    .hauptbereich {
        margin: 0 !important;
        padding: 0 !important;
    }

    .content {
        padding: 0 !important;
    }

    .panel {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

@media (max-width: 1100px) {
    .fb-auswertung-kopf {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .fb-auswertung-kopf {
        grid-template-columns: 1fr;
    }
}

/* Fahrtenbuch V3 Druckkopf */
.fb-druckkopf {
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 18px;
}

.fb-druckkopf h2 {
    margin-top: 0;
}

.fb-druck-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.fb-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.fb-checkbox-item {
    background: #f8f9fb;
    border: 1px solid #e0e4e8;
    border-radius: 12px;
    padding: 10px;
}

.fb-checkbox-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

@media print {
    .fb-druckkopf {
        border: none !important;
        padding: 0 0 12px 0 !important;
    }

    .fb-druckkopf h2 {
        font-size: 20px !important;
    }
}

@media (max-width: 900px) {
    .fb-druck-meta,
    .fb-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Fahrtenbuch Wellness-Design
   ========================================================= */

.fahrtenbuch-seite .seitenkopf {
    background: linear-gradient(135deg, #ffffff, #f5f7f9);
    border: 1px solid #e1e5ea;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
}

.fahrtenbuch-seite .seitenkopf h1 {
    margin: 0 0 6px 0;
    font-size: 30px;
}

.fahrtenbuch-seite .seitenkopf p {
    margin: 0;
    color: #667085;
}

.fahrtenbuch-seite .formular-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.fahrtenbuch-seite .panel {
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
    margin-bottom: 18px;
}

.fahrtenbuch-seite .panel h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf0f3;
}

.fahrtenbuch-seite label {
    font-weight: 700;
    margin-top: 12px;
    display: block;
}

.fahrtenbuch-seite input,
.fahrtenbuch-seite select,
.fahrtenbuch-seite textarea {
    width: 100%;
    border: 1px solid #d7dde4;
    border-radius: 12px;
    padding: 11px 12px;
    margin-top: 6px;
    background: #fbfcfd;
}

.fahrtenbuch-seite input:focus,
.fahrtenbuch-seite select:focus,
.fahrtenbuch-seite textarea:focus {
    outline: none;
    border-color: #6c8cff;
    box-shadow: 0 0 0 3px rgba(108,140,255,0.15);
    background: #ffffff;
}

.fahrtenbuch-seite .fahrtenbuch-aktionen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 20px 0;
}

.fahrtenbuch-seite .fahrtenbuch-kachel {
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 22px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #202938;
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
    transition: 0.2s ease;
}

.fahrtenbuch-seite .fahrtenbuch-kachel:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.fahrtenbuch-seite .fahrtenbuch-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, #edf3ff, #f7f9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.fahrtenbuch-seite .fahrtenbuch-kachel h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.fahrtenbuch-seite .fahrtenbuch-kachel p {
    margin: 0;
    color: #667085;
}

.fahrtenbuch-seite .fb-auswertung-kopf,
.fahrtenbuch-seite .fahrtenbuch-stat-grid,
.fahrtenbuch-seite .fahrzeug-karten {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.fahrtenbuch-seite .fb-summenkarte,
.fahrtenbuch-seite .fahrtenbuch-stat,
.fahrtenbuch-seite .fahrzeug-card {
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
}

.fahrtenbuch-seite .fb-summenkarte .wert,
.fahrtenbuch-seite .fahrtenbuch-stat .zahl {
    font-size: 28px;
    font-weight: 800;
}

.fahrtenbuch-seite .tabelle {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 16px;
}

.fahrtenbuch-seite .tabelle th {
    background: #f3f6f9;
    color: #344054;
    padding: 13px;
    text-align: left;
}

.fahrtenbuch-seite .tabelle td {
    padding: 13px;
    border-bottom: 1px solid #edf0f3;
    vertical-align: top;
}

.fahrtenbuch-seite .tabelle tr:hover td {
    background: #fafcff;
}

.fahrtenbuch-seite .fb-button-leiste,
.fahrtenbuch-seite .fb-export-leiste,
.fahrtenbuch-seite .fb-aktion-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.fahrtenbuch-seite .fb-btn {
    border-radius: 14px;
    min-height: 42px;
    padding: 10px 16px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.fahrtenbuch-seite .fb-btn-klein {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
}

.fahrtenbuch-seite .fb-btn-zurueck {
    background: #ffffff;
    color: #344054;
    border-color: #d7dde4;
}

.fahrtenbuch-seite .fb-btn-neutral {
    background: #eef3ff;
    color: #253b80;
}

.fahrtenbuch-seite .fb-btn-speichern {
    background: linear-gradient(135deg, #387a4f, #5da76f);
    color: #ffffff;
}

.fahrtenbuch-seite .fb-btn-bearbeiten {
    background: linear-gradient(135deg, #f3ba42, #f7d36d);
    color: #3b2b00;
}

.fahrtenbuch-seite .fb-btn-loeschen {
    background: linear-gradient(135deg, #b94a48, #d86562);
    color: #ffffff;
}

.fahrtenbuch-seite .fb-druckkopf {
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
    margin-bottom: 18px;
}

.fahrtenbuch-seite .fb-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.fahrtenbuch-seite .fb-checkbox-item {
    background: #fbfcfd;
    border: 1px solid #e1e5ea;
    border-radius: 14px;
    padding: 12px;
}

.fahrtenbuch-seite .status-badge {
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 800;
    font-size: 12px;
}

.fahrtenbuch-seite .status-aktiv {
    background: #e7f6e7;
    color: #276738;
}

.fahrtenbuch-seite .status-inaktiv {
    background: #f5e5e5;
    color: #8b2f2f;
}

@media (max-width: 1100px) {
    .fahrtenbuch-seite .formular-grid,
    .fahrtenbuch-seite .fahrtenbuch-aktionen,
    .fahrtenbuch-seite .fb-auswertung-kopf,
    .fahrtenbuch-seite .fahrtenbuch-stat-grid,
    .fahrtenbuch-seite .fahrzeug-karten,
    .fahrtenbuch-seite .fb-checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .fahrtenbuch-seite .formular-grid,
    .fahrtenbuch-seite .fahrtenbuch-aktionen,
    .fahrtenbuch-seite .fb-auswertung-kopf,
    .fahrtenbuch-seite .fahrtenbuch-stat-grid,
    .fahrtenbuch-seite .fahrzeug-karten,
    .fahrtenbuch-seite .fb-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .fahrtenbuch-seite .seitenkopf {
        padding: 18px;
    }
}

/* =========================================================
   Gutscheinverwaltung Design
   ========================================================= */

.gutschein-seite .seitenkopf {
    background: linear-gradient(135deg, #ffffff, #f7f5fb);
    border: 1px solid #e5e1ea;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
}

.gutschein-seite .formular-grid,
.gutschein-seite .gutschein-aktionen,
.gutschein-seite .gutschein-karten,
.gutschein-seite .gutschein-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.gutschein-seite .panel,
.gutschein-kachel,
.gutschein-card,
.gutschein-stat {
    background: #ffffff;
    border: 1px solid #e5e1ea;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
    margin-bottom: 18px;
}

.gutschein-kachel {
    display: flex;
    gap: 16px;
    align-items: center;
    text-decoration: none;
    color: #202938;
    transition: 0.2s ease;
}

.gutschein-kachel:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.gutschein-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff1cc, #fff8e6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.gutschein-seite label {
    font-weight: 700;
    margin-top: 12px;
    display: block;
}

.gutschein-seite input,
.gutschein-seite select,
.gutschein-seite textarea {
    width: 100%;
    border: 1px solid #d7dde4;
    border-radius: 12px;
    padding: 11px 12px;
    margin-top: 6px;
    background: #fbfcfd;
}

.gutschein-btn-leiste,
.gutschein-export-leiste,
.gutschein-aktion-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.gutschein-btn {
    border-radius: 14px;
    min-height: 42px;
    padding: 10px 16px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.gutschein-btn-klein {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
}

.gutschein-btn-zurueck {
    background: #ffffff;
    color: #344054;
    border-color: #d7dde4;
}

.gutschein-btn-neutral {
    background: #fff3d6;
    color: #704c00;
}

.gutschein-btn-speichern {
    background: linear-gradient(135deg, #8a6f2a, #c49a33);
    color: #ffffff;
}

.gutschein-btn-bearbeiten {
    background: linear-gradient(135deg, #f3ba42, #f7d36d);
    color: #3b2b00;
}

.gutschein-btn-loeschen {
    background: linear-gradient(135deg, #b94a48, #d86562);
    color: #ffffff;
}

.gutschein-status {
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
}

.gutschein-status-offen { background: #e7f6e7; color: #276738; }
.gutschein-status-teilweise { background: #fff3d6; color: #805700; }
.gutschein-status-eingeloest { background: #e6eef8; color: #264b78; }
.gutschein-status-storniert { background: #f5e5e5; color: #8b2f2f; }

.gutschein-seite .tabelle {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 16px;
}

.gutschein-seite .tabelle th {
    background: #f7f3e8;
    color: #344054;
    padding: 13px;
    text-align: left;
}

.gutschein-seite .tabelle td {
    padding: 13px;
    border-bottom: 1px solid #edf0f3;
    vertical-align: top;
}

.gutschein-stat .wert {
    font-size: 28px;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .gutschein-seite .formular-grid,
    .gutschein-seite .gutschein-aktionen,
    .gutschein-seite .gutschein-karten,
    .gutschein-seite .gutschein-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .gutschein-seite .formular-grid,
    .gutschein-seite .gutschein-aktionen,
    .gutschein-seite .gutschein-karten,
    .gutschein-seite .gutschein-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* Gutschein Einzelansicht / Druck */
.gutschein-dokument {
    max-width: 900px;
    margin: 0 auto;
    background: #fffaf0;
    border: 2px solid #d4af37;
    border-radius: 26px;
    padding: 42px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.gutschein-dokument h1 {
    text-align: center;
    font-size: 38px;
    margin: 10px 0;
}

.gutschein-dokument .nummer {
    text-align: center;
    font-weight: 800;
    color: #8a6f2a;
    margin-bottom: 24px;
}

.gutschein-wert {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    color: #8a6f2a;
    margin: 26px 0;
}

.gutschein-daten {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.gutschein-daten div {
    background: rgba(255,255,255,0.75);
    border-radius: 14px;
    padding: 14px;
}

.gutschein-hinweis {
    margin-top: 28px;
    text-align: center;
    color: #555;
}

@media print {
    .sidebar,
    .kopfbereich,
    .seitenkopf,
    .gutschein-btn-leiste,
    .no-print {
        display: none !important;
    }

    .hauptbereich,
    .content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .gutschein-dokument {
        box-shadow: none !important;
        margin-top: 20px;
    }
}

/* Gutschein V2 */
.gutschein-design-vorschau {
    border-radius: 24px;
    padding: 32px;
    border: 2px solid var(--g-rahmen, #d4af37);
    background: var(--g-bg, #fffaf0);
    color: var(--g-text, #202938);
}

.gutschein-code-box {
    background: #fff;
    border: 1px dashed #c49a33;
    border-radius: 14px;
    padding: 12px;
    font-weight: 800;
}

.gutschein-warnbox {
    background: #fff3d6;
    border: 1px solid #f0c35a;
    border-radius: 14px;
    padding: 14px;
    margin-top: 12px;
}

.gutschein-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1100px) {
    .gutschein-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .gutschein-filter-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Gutscheine kompakt wie Fahrtenbuch / Wellness
   ========================================================= */

.gutschein-seite .seitenkopf {
    background: linear-gradient(135deg, #ffffff, #f7f5fb);
    border: 1px solid #e1e5ea;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
}

.gutschein-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px 0;
}

.gutschein-tabs a {
    padding: 10px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e1e5ea;
    color: #344054;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.gutschein-tabs a.aktiv,
.gutschein-tabs a:hover {
    background: #fff3d6;
    color: #704c00;
    border-color: #e6c06a;
}

.gutschein-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
}

.gutschein-karte {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.gutschein-kopf {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.gutschein-icon-klein {
    font-size: 28px;
    width: 40px;
    text-align: center;
}

.gutschein-kopf strong {
    display: block;
    font-size: 18px;
}

.gutschein-kopf span {
    font-size: 13px;
    color: #6b7280;
}

.gutschein-info {
    font-size: 14px;
    margin: 6px 0;
}

.gutschein-aktionen-klein {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gutschein-seite .aktion-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gutschein-seite .filter-leiste {
    margin-bottom: 16px;
}

.gutschein-seite .panel {
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.05);
    margin-bottom: 16px;
}

.gutschein-seite .formular-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.gutschein-seite label {
    font-weight: 700;
    margin-top: 10px;
    display: block;
}

.gutschein-seite input,
.gutschein-seite select,
.gutschein-seite textarea {
    width: 100%;
    border: 1px solid #d7dde4;
    border-radius: 12px;
    padding: 10px 11px;
    margin-top: 5px;
    background: #fbfcfd;
}

.gutschein-status {
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
}

.gutschein-status-offen { background: #e7f6e7; color: #276738; }
.gutschein-status-teilweise { background: #fff3d6; color: #805700; }
.gutschein-status-eingeloest { background: #e6eef8; color: #264b78; }
.gutschein-status-storniert { background: #f5e5e5; color: #8b2f2f; }

@media (max-width: 1100px) {
    .gutschein-seite .formular-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .gutschein-seite .formular-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Fahrtenbuch kompakt wie Wellness
   ========================================================= */

.fahrtenbuch-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px 0;
}

.fahrtenbuch-tabs a {
    padding: 10px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e1e5ea;
    color: #344054;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.fahrtenbuch-tabs a.aktiv,
.fahrtenbuch-tabs a:hover {
    background: #eef3ff;
    color: #253b80;
    border-color: #b8c7ff;
}

.fb-kompakt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
}

.fb-kompakt-karte {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.fb-kompakt-kopf {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.fb-kompakt-icon {
    font-size: 28px;
    width: 40px;
    text-align: center;
}

.fb-kompakt-kopf strong {
    display: block;
    font-size: 18px;
}

.fb-kompakt-kopf span {
    font-size: 13px;
    color: #6b7280;
}

.fb-kompakt-info {
    font-size: 14px;
    margin: 6px 0;
}

.fb-kompakt-aktionen {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fahrtenbuch-seite .aktion-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.fahrtenbuch-seite .filter-leiste {
    margin-bottom: 16px;
}

.fahrtenbuch-seite .panel-kompakt {
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.05);
    margin-bottom: 16px;
}

.fb-kompakt-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.fb-kompakt-stat {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
}

.fb-kompakt-stat .wert {
    font-size: 24px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .fb-kompakt-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .fb-kompakt-stats {
        grid-template-columns: 1fr;
    }
}

/* Gutschein Druck korrekt ohne App-Kopf */
@media print {
    .sidebar,
    .kopfbereich,
    .seitenkopf,
    .gutschein-tabs,
    .no-print,
    .uhrzeit,
    header {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hauptbereich,
    .content,
    .gutschein-seite {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .gutschein-dokument {
        box-shadow: none !important;
        margin: 0 auto !important;
        page-break-inside: avoid;
    }
}

/* Gutschein Druckseite wirklich sauber */
@page {
    margin: 10mm;
}

@media print {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .sidebar,
    .kopfbereich,
    .seitenkopf,
    .gutschein-tabs,
    .no-print,
    #uhrzeit,
    .benutzer-box,
    .header,
    header,
    nav {
        display: none !important;
    }

    .hauptbereich {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .content,
    .gutschein-seite {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .gutschein-dokument {
        margin: 0 auto !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}

.druck-hinweis-box {
    background: #fff3d6;
    border: 1px solid #e6c06a;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
}

/* Gutscheine Clean Design */
.gutschein-seite .seitenkopf{background:linear-gradient(135deg,#fff,#f7f5fb);border:1px solid #e1e5ea;border-radius:20px;padding:22px;margin-bottom:16px;box-shadow:0 5px 18px rgba(0,0,0,.06)}
.gutschein-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.gutschein-tabs a{padding:10px 14px;border-radius:14px;background:#fff;border:1px solid #e1e5ea;color:#344054;text-decoration:none;font-weight:800;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.gutschein-tabs a.aktiv,.gutschein-tabs a:hover{background:#fff3d6;color:#704c00;border-color:#e6c06a}
.gutschein-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:16px}
.gutschein-karte,.gutschein-seite .panel{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;box-shadow:0 2px 10px rgba(0,0,0,.06);margin-bottom:16px}
.gutschein-kopf{display:flex;gap:12px;align-items:center;margin-bottom:10px}
.gutschein-icon-klein{font-size:28px;width:40px;text-align:center}
.gutschein-kopf strong{display:block;font-size:18px}
.gutschein-kopf span{font-size:13px;color:#6b7280}
.gutschein-info{font-size:14px;margin:6px 0}
.gutschein-aktionen-klein,.gutschein-seite .aktion-box{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.gutschein-seite .formular-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.gutschein-seite label{font-weight:700;margin-top:10px;display:block}
.gutschein-seite input,.gutschein-seite select,.gutschein-seite textarea{width:100%;border:1px solid #d7dde4;border-radius:12px;padding:10px 11px;margin-top:5px;background:#fbfcfd}
.gutschein-status{border-radius:999px;padding:5px 10px;font-weight:800;font-size:12px;display:inline-flex}
.gutschein-status-offen{background:#e7f6e7;color:#276738}.gutschein-status-teilweise{background:#fff3d6;color:#805700}.gutschein-status-eingeloest{background:#e6eef8;color:#264b78}.gutschein-status-storniert{background:#f5e5e5;color:#8b2f2f}
.gutschein-design-vorschau,.gutschein-dokument{border-radius:24px;padding:32px;border:2px solid #d4af37;background:#fffaf0}
@media(max-width:1100px){.gutschein-seite .formular-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.gutschein-seite .formular-grid{grid-template-columns:1fr}}

/* =========================================================
   Gutschein-Buttons schön und einheitlich
   ========================================================= */

.gutschein-seite .speichern-button,
.gutschein-seite a.speichern-button,
.gutschein-seite button.speichern-button {
    background: linear-gradient(135deg, #8a6f2a, #c49a33) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 10px 18px !important;
    min-height: 42px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.14) !important;
    transition: 0.18s ease !important;
}

.gutschein-seite .speichern-button:hover,
.gutschein-seite a.speichern-button:hover,
.gutschein-seite button.speichern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0,0,0,0.18) !important;
}

.gutschein-seite .button-klein,
.gutschein-seite a.button-klein,
.gutschein-seite button.button-klein {
    background: #fff3d6 !important;
    color: #704c00 !important;
    border: 1px solid #e6c06a !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    min-height: 34px !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: 0.18s ease !important;
}

.gutschein-seite .button-klein:hover,
.gutschein-seite a.button-klein:hover,
.gutschein-seite button.button-klein:hover {
    transform: translateY(-1px);
    background: #ffe8a8 !important;
}

.gutschein-seite .button-rot,
.gutschein-seite button.button-rot,
.gutschein-seite a.button-rot {
    background: linear-gradient(135deg, #b94a48, #d86562) !important;
    color: #ffffff !important;
    border: none !important;
}

.gutschein-seite .button-rot:hover {
    background: linear-gradient(135deg, #a83f3d, #c95653) !important;
}

.gutschein-seite .aktion-box {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

.gutschein-aktionen-klein {
    margin-top: 14px !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.gutschein-aktionen-klein form {
    margin: 0 !important;
    display: inline-flex !important;
}

.druck-leiste .druck-btn {
    border-radius: 14px !important;
    padding: 10px 16px !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12) !important;
}

.druck-leiste .druck-btn-primary {
    background: linear-gradient(135deg, #8a6f2a, #c49a33) !important;
    color: #ffffff !important;
}

@media (max-width: 700px) {
    .gutschein-seite .aktion-box,
    .gutschein-aktionen-klein {
        justify-content: flex-start !important;
    }

    .gutschein-seite .speichern-button,
    .gutschein-seite .button-klein {
        width: 100%;
    }
}

/* Standort Branding / Wellness */
.standort-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px 0;
}

.standort-tabs a {
    padding: 10px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e1e5ea;
    color: #344054;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.standort-tabs a.aktiv,
.standort-tabs a:hover {
    background: #eef3ff;
    color: #253b80;
    border-color: #b8c7ff;
}

.standort-branding-vorschau {
    border-radius: 22px;
    padding: 24px;
    border: 2px solid var(--rahmen, #d4af37);
    background: var(--bg, #fffaf0);
    color: var(--text, #202938);
}

.standort-branding-vorschau img {
    max-height: 90px;
    max-width: 260px;
}

.standort-wellness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
}

.standort-wellness-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.standort-wellness-card label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 800;
}

.standort-wellness-card small {
    color: #667085;
}
/* Finanzverwaltung V4: schneller Buchungsassistent im SchaSchmi-Stil */
#assistent{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;margin:14px 0 22px!important}
#assistent label{position:relative;display:flex!important;align-items:center;gap:9px;min-height:58px;padding:12px 13px!important;border:2px solid #e2e8f0;border-radius:12px;background:#fff;font-weight:800!important;cursor:pointer;transition:.16s ease}
#assistent label:hover{transform:translateY(-1px);border-color:#94a3b8;box-shadow:0 4px 12px rgba(15,23,42,.08)}
#assistent label:has(input:checked){border-color:#2563eb;background:#eff6ff;color:#174ea6;box-shadow:0 0 0 3px rgba(37,99,235,.09)}
#assistent label:before{font-size:21px}#assistent label:nth-child(1):before{content:"📈"}#assistent label:nth-child(2):before{content:"📉"}#assistent label:nth-child(3):before{content:"🧾"}#assistent label:nth-child(4):before{content:"🏦"}#assistent label:nth-child(5):before{content:"🌐"}#assistent label:nth-child(6):before{content:"💳"}#assistent label:nth-child(7):before{content:"🔄"}#assistent label:nth-child(8):before{content:"👤"}#assistent label:nth-child(9):before{content:"🏗️"}
#assistent input{position:absolute;opacity:0}
#buchForm>.bh-form-grid:first-child{padding:16px;border:1px solid #dfe5ec;border-left:5px solid #2563eb;border-radius:12px;background:#f8fbff}
#buchForm>h3{display:flex;align-items:center;gap:8px;margin-top:20px}#buchForm>h3:before{content:"3";display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#202020;color:#fff;font-size:14px}
#positionen{display:grid;gap:10px;margin-bottom:10px}
#positionen .bh-pos{display:grid!important;grid-template-columns:minmax(210px,2fr) repeat(3,minmax(100px,1fr)) repeat(5,minmax(130px,1fr)) 42px;gap:8px;padding:12px;border:1px solid #ddd6fe;border-left:5px solid #7c3aed;border-radius:12px;background:#faf9ff;align-items:center}
#positionen .bh-pos input,#positionen .bh-pos select{min-width:0;width:100%}
#buchForm>.bh-button.primaer:last-of-type{position:sticky;bottom:10px;z-index:5;float:right;min-width:220px;margin-top:10px;box-shadow:0 6px 18px rgba(0,0,0,.18)}
@media(max-width:1200px){#assistent{grid-template-columns:repeat(3,1fr)!important}#positionen .bh-pos{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){#assistent{grid-template-columns:repeat(2,1fr)!important}#positionen .bh-pos{grid-template-columns:1fr}#assistent label{min-height:52px}}
