body {
     font-family: "Inter", sans-serif;
     background-color: #f8f9fa;
     margin: 0;
     padding: 0;
 }

.container {
    max-width: 1240px; /* oder 1200 */
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

h1, h2, h3 {
    color: #343a40;
}

label {
    display: block;
    margin: 10px 0 4px;
    font-weight: 600;
    color: #495057;
}

input[type="text"], input[type="number"], input[type="date"], select, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    margin-bottom: 15px;
    font-size: 1rem;
    background-color: #fff;
}

textarea {
    resize: vertical;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #dee2e6;
    text-align: left;
}

th {
    background-color: #f1f3f5;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 6px;
    color: #155724;
    margin-bottom: 20px;
}

.checkbox-label {
    display: block;
    margin: 6px 0;
}






/* 🔳 Overlay für Hintergrund */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
}



/* Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 1000; /* ⬅️ Hintergrund dunkel, aber Modal muss höher sein */
}


/* === Toast Styles === */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: white;
    z-index: 9999;
    font-size: 15px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: slideUpFade 0.4s ease-out;
}

.toast-success {
    background-color: #28a745; /* grün */
}

.toast-error {
    background-color: #dc3545; /* rot */
}

.toast.hidden {
    display: none;
}

@keyframes slideUpFade {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 0.95;
    }
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    z-index: 1001;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    min-width: 300px;
    max-width: 500px;
    width: 90%;
    margin: 0 auto;  /* Zentriert */
}

.modal-content input {
    display: block;
    margin-bottom: 1rem;
    width: 100%;
    padding: 0.5rem;
}

.modal input, .modal select, .modal button {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;  /* Sanftere Hintergrundfarbe */
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.modal button:hover {
    background-color: #0056b3;
}

.modal label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
}

.modal input,
.modal select {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.modal input[type="text"],
.modal input[type="number"],
.modal input[type="date"],
.modal select {
    width: 100%;
}

.modal hr {
    border: 0;
    border-top: 1px solid #dee2e6;
    margin: 20px 0;
}

.modal .modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Standard Modal Buttons */
.modal-button {
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-button:hover {
    background-color: #0056b3;
}

.modal-button:focus {
    outline: none;
}

/* Specifische Anpassungen für Lesezeichenbutton, wenn notwendig */
.modal-actions button {
    margin-left: 10px;
}


.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
}

.nav-button {
    background: none;
    border: none;
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-button:hover {
    color: #1abc9c;
}

.nav-user {
    margin-right: 10px;
}

.logout-form {
    display: inline;
}

.role-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
    color: white;
    display: inline-block;
}

.badge-superadmin {
    background-color: #e74c3c; /* rot */
}

.badge-admin {
    background-color: #e67e22; /* orange */
}

.badge-user {
    background-color: #2ecc71; /* grün */
}

.badge-unknown {
    background-color: #7f8c8d; /* grau */
}

.toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.toolbar input,
.toolbar select {
    padding: 0.5rem;
    font-size: 1rem;
}

th {
    user-select: none;
    position: relative;
}

th .sort-arrow {
    font-size: 0.8em;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

th.sort-asc .sort-arrow {
    transform: rotate(180deg);
    color: #007bff;
}

th.sort-desc .sort-arrow {
    color: #007bff;
}

.sortable-header {
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding-right: 25px;
}

.sortable-header:hover {
    background-color: #e9ecef;
    color: #007bff;
}

.sortable-header:active {
    background-color: #d0d7dd;
}

th.sort-asc .sort-arrow::after {
    content: "▲";
}

th.sort-desc .sort-arrow::after {
    content: "▼";
}

th .sort-arrow {
    margin-left: 8px;
    color: #adb5bd;
}



.highlight-own-user {
    background-color: #f0f0f0;
    font-style: italic;
}

.user-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.user-button {
    background: #48668d;
    border: none;
    font-weight: bold;
    color: #212529;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.user-button:hover {
    background-color: #f0f0f0;
    border-radius: 8px;
}

.dropdown-content .dropdown-item span {
    font-weight: bold;
    margin-left: 0.3rem;
}


.dropdown-content .dropdown-item {
    color: #212529;
    padding: 12px 16px;
}


.arrow {
    font-size: 0.75rem;
}

.dropdown-content {
    position: absolute;
    right: 0;
    top: 110%;
    background-color: #ffffff;
    color: #212529;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0px 4px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background-color: #f3f3f3;
}

.logout-button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0;
    color: #c00;
    font-size: 0.95rem;
    cursor: pointer;
}

.password-strength {
    margin-bottom: 1rem;
    font-weight: bold;
    color: #666;
}

.password-strength.weak {
    color: #d9534f;
}

.password-strength.medium {
    color: #f0ad4e;
}

.password-strength.strong {
    color: #5cb85c;
}

/* Logout-Styling */
.logout-button {
    background-color: transparent;
    border: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    color: #d9534f;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 6px;
}

textarea, input, button {
    font-family: "Inter", sans-serif;
}

.compact-fields .data-field {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.notes-textarea {
    padding: 0.75rem;
    font-size: 0.95rem;
    min-height: 120px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-family: "Inter", sans-serif;
}

.notes-form button {
    padding: 0.4rem 1rem;
    font-size: 0.95rem;
    border-radius: 6px;
}

* {
    box-sizing: border-box;
}

.logout-button:hover {
    background-color: #f8d7da;
    color: #c9302c;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px; /* gleiche Höhe für konsistentes Layout */
    padding: 0 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    vertical-align: middle;
    line-height: 1; /* reduziert "nach unten Rutschen" */
}

.checkbox-field {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: background-color 0.2s ease;
    border: 1px solid transparent;
    gap: 0.75rem;
    cursor: pointer;
    height: 60px;
}

.checkbox-field label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
}



.badge-not-available {
    background-color: #6c757d; /* grau */
}

.badge-available {
    background-color: #28a745; /* grün */
}

.badge-in-payment {
    background-color: #ffc107; /* gelb */
    color: black;
}

.badge-sold {
    background-color: #17a2b8; /* blau */
}

/* Setze eine flexbox für die nebeneinander stehenden Tabellen */
.table-container {
    display: flex;
    gap: 20px; /* Abstände zwischen den Tabellen */
    flex-wrap: wrap; /* Zeilenumbruch für kleinere Bildschirme */
    justify-content: space-between;
}

/* Jede Tabellenzelle etwas schmaler, um sie nebeneinander zu bekommen */
.car-details-table-wrapper {
    width: 30%;
    margin-bottom: 20px;
}

.car-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}

.car-details-table th {
    display: none; /* Tabellenköpfe entfernen */
}

.car-details-table td {
    padding: 8px; /* Weniger Abstand */
    border: 1px solid #dee2e6;
    text-align: left;
}

/* Für vollständige Zeilen (grünlich hinterlegt) */
.complete-data {
    background-color: #d4edda;  /* Leicht grünlich */
    color: #155724;
}



/* Für unvollständige Zeilen (rötlich hinterlegt) */
.missing-data {
    background-color: #f8d7da;  /* Leicht rötlich */
    color: #721c24;
}

.car-details-table td:empty::before {
    content: "—";
    color: #721c24;  /* Rötliche Farbe für leere Felder */
    font-weight: bold;
}

.horizontal-table-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.car-details-table-wrapper {
    flex: 1;
    min-width: 300px;
}

.mt-2 {
    margin-top: 1rem;
}

.icon-button {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    vertical-align: middle;
}

.icon-button:hover {
    color: #007bff;
}

.date-field-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-field-wrapper input[type="text"] {
    flex: 1;
}

.date-now-btn {
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    height: 38px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.date-now-btn:hover {
    background-color: #0b5ed7;
}

.optional-missing {
    background-color: #f1f3f5;
    color: #6c757d;
}

.btn-sell {
    background-color: #28a745; /* grün */
    color: white;
}

.btn-sell:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}


.finanz-box-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.finanz-box {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-left: 5px solid #007bff;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    flex: 1 1 200px;
    min-width: 180px;
    font-size: 0.95rem;
}

.finanz-box.highlight {
    border-left-color: #28a745;
    background-color: #f4fdf7;
}

.finanz-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.finanz-wert {
    font-size: 1.1rem;
    font-weight: bold;
    color: #212529;
}

.finanz-box-wrapper .finanz-box {
    font-size: 1.2rem;
    border-radius: 6px;
    padding: 0.5rem;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
    margin-bottom: 1rem;
}

.finanz-box-wrapper .finanz-box .summe {
    background-color: #cce5ff;  /* Helles Blau */
}

.finanz-box-wrapper .finanz-box .gesamt {
    background-color: #d4edda;  /* Helles Grün */
}

.finanz-box-wrapper .finanz-box .einkaufspreis {
    background-color: #f8f9fa;  /* Helles Grau */
}

.finanz-box-wrapper .finanz-box .label {
    font-size: 1.05rem;  /* Auch das Label größer */
    font-weight: 500;    /* Leicht hervorgehoben */
    color: #343a40;      /* Dunkler für Kontrast */
}


.heading-with-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.heading-with-button h2 {
    margin: 0;
}

.icon-button {
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 1.25rem;
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.icon-button:hover {
    background-color: #0056b3;
}
/* Titel der Berechnungen */
.finanz-box-wrapper .finanz-box .label {
    color: #343a40;  /* Dunkelgrau */
    font-size: 1.05rem;
    font-weight: 600;
}

/* Werte der Berechnungen */
.finanz-box-wrapper .finanz-box .value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;  /* Dunkelgrau für alles */
}

/* Summe Ausgaben (Blau) */
.finanz-box-wrapper .finanz-box.summe .value {
    color: #007bff; /* Blau */
    font-size: 1.6rem;  /* Etwas größer */
}

/* Einkaufspreis (Grau) */
.finanz-box-wrapper .finanz-box.einkaufspreis .value {
    color: #6c757d;  /* Grau */
}

/* Gesamtausgaben (Fett + Grün) */
.finanz-box-wrapper .finanz-box.gesamt .value {
    color: #28a745;  /* Grün */
    font-weight: 700; /* Extra Fett */
    font-size: 1.8rem;  /* Größer für den Fokus */
}

/* Differenz (Rot für kritische Differenz) */
.finanz-box-wrapper .finanz-box.differenz .value {
    color: #dc3545;  /* Rot */
}

/* Hintergrundfarbe für Gesamtausgaben */
.finanz-box-wrapper .finanz-box.gesamt {
    background-color: #e9f7e5;  /* Helles Grün */
    border: 1px solid #28a745;
    padding: 0.75rem;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}

/* Differenz-Hintergrund für den kritischen Bereich */
.finanz-box-wrapper .finanz-box.differenz {
    background-color: #f8d7da; /* Helles Rot für Warnung */
    border: 1px solid #dc3545;
    padding: 0.75rem;
    border-radius: 6px;
}

.section-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    min-width: 320px;
    flex: 1 1 48%;
}

.section-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.subsection-header {
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    border-top: 1px solid #ccc;
    padding-top: 0.5rem;
}

.section-header-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header-between h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.section-header-between button {
    white-space: nowrap;
}

.progress-wrapper {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.progress-bar {
    width: 100%;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    height: 18px;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease-in-out;
}

.info-box.success {
    background-color: #e6f4ea;
    color: #2e7d32;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.payment-status-box {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.75rem 1rem;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.payment-status-box .status-icon {
    font-size: 1.25rem;
}

.payment-status-box.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Tabelle: äußerer Rahmen */
.modern-payment-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.04);
}

/* Header-Zellen */
.modern-payment-table thead th {
    background-color: #f1f3f5;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

/* Runde nur die äußeren Header-Ecken ab */
.modern-payment-table thead th:first-child {
    border-top-left-radius: 10px;
}

.modern-payment-table thead th:last-child {
    border-top-right-radius: 10px;
}

/* Body-Zellen */
.modern-payment-table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    background-color: #ffffff;
}

/* Letzte Zeile: untere äußere Ecken abrunden */
.modern-payment-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.modern-payment-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.table-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s ease-in-out;
    font-weight: 500;
    line-height: 1.2;
}

.table-actions .btn-primary {
    background-color: #0d6efd;
    color: #fff;
}

.table-actions .btn-primary:hover {
    background-color: #0b5ed7;
}

.table-actions .btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.table-actions .btn-danger:hover {
    background-color: #bb2d3b;
}



.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.data-field .label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
}

.data-field .value {
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
}

.data-field {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: background-color 0.2s ease;
    border: 1px solid transparent;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #495057;
}

.form-field input,
.form-field select {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}


.finanz-label,
.label {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}
.finanz-wert,
.value {
    font-size: 1rem;
}

.data-vertical-list .data-field + .data-field {
    margin-top: 0.75rem;
}

.data-vertical-grid.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}

.data-vertical-grid.three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.edit-data-field {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: background-color 0.2s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.edit-data-field input,
.edit-data-field select,
.edit-data-field textarea {
    padding: 0.4rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    width: 100%;
}

.edit-data-field label {
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
}

/* Hintergrundfarben für die Validierung */
.edit-data-field.complete-data {
    background-color: #d1f3dd;
    border-color: #91d6ab;
}

.edit-data-field.missing-data {
    background-color: #ffe0e0;
    border-color: #ffb3b3;
}

.edit-data-field.optional-missing {
    background-color: #f0f4fa;
    border-color: #ccd7e1;
}


.notes-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notes-textarea {
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.2s ease;
    min-height: 150px;
}

.notes-textarea:focus {
    border-color: #007bff;
    outline: none;
    background-color: #fff;
}

.right-align {
    display: flex;
    justify-content: flex-end;
}

/* Steuerart radios nebeneinander */
.radio-group {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* optional, damit die gesamte Zeile genutzt wird */
.form-field-span-2 {
    grid-column: span 2;
}

.car-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.car-header h1, .car-header h3 {
    margin: 0;
}

.left-align {
    flex: 1;
    text-align: left;
}

.center-align {
    flex: 1;
    text-align: center;
}

.right-align {
    flex: 1;
    text-align: right;
}

.data-field.detail-data {
    background-color: #d0e6f9;  /* Leicht bläulicher Hintergrund */
    color: #0c3c60;             /* Dunkelblauer Text */
}

/* ✅ Vollständig */
.complete-data {
    background-color: #d1f3dd;
    border-color: #91d6ab;
}

/* ❗ Fehlend (Pflichtfeld) */
.missing-data {
    background-color: #ffe0e0;
    border-color: #ffb3b3;
}

/* ⚪ Fehlend, aber optional */
.optional-missing {
    background-color: #f0f4fa;
    border-color: #ccd7e1;
}

.horizontal-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.horizontal-section.tight {
    margin-bottom: 0.25rem;
}

/* Flex-Basis Utility-Klassen */
.flex-30 {
    flex: 0 0 30%;
}

.flex-70 {
    flex: 0 0 70%;
}

.horizontal-section.notizen {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: stretch;
}

.horizontal-section.notizen .flex-card {
    min-width: 0;
}


.flex-card {
    flex: 1;
    min-width: 250px;
}

.full-width-card {
    width: 100%;
}

.horizontal-card-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.data-vertical-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.doc-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: background-color 0.2s ease;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.doc-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #007bff;
    cursor: pointer;
}


.doc-checkbox.complete-data {
    background-color: #d1f3dd;
    border-color: #91d6ab;
}

.doc-checkbox.missing-data {
    background-color: #ffe0e0;
    border-color: #ffb3b3;
}

.doc-checkbox.optional-missing {
    background-color: #f0f4fa;
    border-color: #ccd7e1;
    color: #6c757d;
}

.expenses-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.expense-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.expense-info {
    display: flex;
    flex-direction: column;
}

.expense-label {
    font-weight: 600;
    color: #343a40;
}

.expense-value {
    font-size: 1rem;
    font-weight: bold;
    color: #007bff;
}

.expense-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f8f9fa;
}

.login-card {
    background-color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 420px;
    width: 100%;
}

.login-title {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

.login-form label {
    font-weight: 500;
    margin-top: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.login-form button {
    width: 100%;
    margin-top: 1rem;
    padding: 0.6rem;
    font-size: 1rem;
    font-weight: 500;
}

.login-message {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.login-message.success {
    color: #2e7d32;
}

.login-message.error {
    color: #c62828;
}

.nav-tabs {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-left: 1rem;
}

.nav-tab {
    font-weight: 500;
    color: #ffffffcc;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.nav-tab:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-tab.active {
    background-color: #0d6efd;
    color: white;
    font-weight: 600;
}

#carTable {
    table-layout: fixed;
    width: 100%;
}

#userTable {
    table-layout: fixed;
    width: 90%;
    margin: 0 auto;
}

.user-card-container {
    width: 80%;
    margin: 2rem auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}
.standard-expenses-card-container {
    width: 90%;
    margin: 2rem auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

#standard-expenses-table{
    table-layout: fixed;
    width: 90%;
    margin: 0 auto;
}
.btn-disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.payment-hint-box {
    background-color: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.payment-hint-ok {
    background-color: #d4edda; /* grün */
    color: #155724;
    border-color: #c3e6cb;
}

.payment-hint-error {
    background-color: #f8d7da; /* rot */
    color: #721c24;
    border-color: #f5c6cb;
}

.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

/* In deiner global.css */
select.readonly-select {
    background-color: #f0f0f0;
    pointer-events: none;
    color: #777;
}

.hint-text {
    font-style: italic;
    color: #777;
    margin-top: 4px;
    font-size: 0.85rem;
    display: block;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    max-width: 100%;
}
.section-card.finanzen {
    max-width: 100%;
    width: 100%;
}
@media (min-width: 768px) {
    .section-card.finanzen {
        max-width: 48%;
    }
}

.inline-rechnungszeile {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.inline-rechnungszeile input[type="text"] {
    padding: 0.5rem;
    font-size: 1rem;
}

#invoiceNumberAuto {
    flex: 5; /* ~50% */
}

#invoiceDateAuto {
    flex: 4; /* ~40% */
}

.inline-rechnungszeile button {
    flex: 1; /* ~10% */
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.inline-rechnungszeile button {
    flex: 1;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    height: 100%;
    align-self: stretch;
}

.section-card.flex-card-detail {
    flex: 1 1 calc(50% - 1rem);
    min-width: 300px;
}
.form-field-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.service-item-card,
.parts-item-card {
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #f9f9f9;
}

.disabled-block {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(80%);
}

.disabled-block::after {
    content: \"Deaktiviert\";
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255,255,255,0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    color: #666;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .half {
    flex: 1;
}

.form-row .third {
    flex: 0 0 27%;
}

.form-row .two-thirds {
    flex: 0 0 70%;
}

.form-row .third input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
