/* Grundlayout */
body {
    background-color: #c0c0c0;
    color: black;
    font-family: "Tahoma", sans-serif;
    margin: 0;
    padding: 0;
}

.btn-restore {
    background-color: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    padding: 4px 8px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
}
.btn-restore:hover {
    background-color: #e0e0e0;
}

.btn-delete {
    background-color: #f08080;
    border: 2px solid #a00000;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
}
.btn-delete:hover {
    background-color: #e57373;
}

/* Fensterstil */
.window {
    margin: 60px auto 20px auto;
    width: 500px;
    background-color: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    padding: 16px;
}

.title-bar {
    background: linear-gradient(to right, #000080, #0000cd);
    color: white;
    padding: 2px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-bar-text {
    font-weight: bold;
    font-size: 14px;
}

.title-bar-controls button {
    width: 16px;
    height: 16px;
    background-color: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    cursor: pointer;
}

.window-body {
    padding: 16px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-size: 14px;
    margin-bottom: 6px;
}

input[type="text"], input[type="password"] {
    width: 95%;
    padding: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
}

.button {
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 13px;
    padding: 4px 12px;
    background-color: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    cursor: pointer;
    margin-top: 8px;
}

.button:hover {
    background-color: #e0e0e0;
}

.logout {
    margin-top: 24px;
    text-align: right;
}

.logo {
    text-align: center;
    margin-bottom: 12px;
    margin-top: 40;
}

.logo img {
    max-width: 380px;
    height: auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 2px solid #28a745;
    width: 50%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #000;
}

.feiertag {
    background-color: #ffdddd;
}

.schliesszeit {
    background-color: #ddddee;
}

.fixed-top-boxes {
    position: sticky;
    top: 20px; /* Abstand zur Navbar */
    background-color: #c0c0c0;
    z-index: 5;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* (Die restlichen Styles wie .navbar, .gantt-view, .bearbeiten-view usw. folgen direkt hier unterhalb vollständig mit allen Details wie zuvor von dir geliefert...) */
 
/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #000080;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    font-size: 14px;
}

.navbar a:hover {
    text-decoration: underline;
}

.container {
    padding: 16px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.container, .form-box, .personalakten-box {
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #ffffff;
}
  
/* GANTT STYLES */
.gantt-view table {
    border-collapse: collapse;
    width: 100%;
    background-color: #e0e0e0;
    border: 2px solid #808080;
}

.gantt-view th, .gantt-view td {
    min-width: 40px;
    max-width: 40px;
    width: 40px;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid #a0a0a0;
    text-align: center;
    padding: 4px;
    font-size: 12px;
}

.gantt-view td:first-child,
.gantt-view th:first-child {
    min-width: 220px;
    max-width: 220px;
    width: 220px;
    text-align: left;
    padding-left: 6px;
    font-weight: bold;
}

.gantt-view th {
    background-color: #c0c0c0;
}

.gantt-view .wochenende {
    background-color: #d3d3d3;
}

.gantt-view .feiertag {
    background-color: #fff176;
}

.gantt-view .bezahlt {
    background-color: #81c784;
}

.gantt-view .unbezahlt {
    background-color: #e57373;
}

.gantt-view .sonderurlaub {
    background-color: #64b5f6;
}

.gantt-view .krank {
    background-color: #ce93d8 !important;
}

.gantt-view .gutschrift {
    background-color: #f78ed0 !important; /* Rosa Gutschrift-Farbe */
    color: black;
    font-weight: bold;
}

.gantt-view .halber {
    background-color: #81c784;
}

.gantt-view .schliesszeit {
    background-color: #671b74 !important; /* bläulicher Ton für Werkstatt-Urlaub */
}

.gantt-view .schliesszeit.krank {
    background-color: #ce93d8 !important;
}

.gantt-view td.schliesszeit.gutschrift {
    background-color: #f78ed0 !important;
    color: black;
    font-weight: bold;
}

.gantt-view .controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.gantt-view .controls .left-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gantt-view .controls .right-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gantt-view #searchInput {
    height: 28px;
    width: 160px;
    font-size: 13px;
    padding: 2px 8px;
}

.gantt-view .legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
}

.gantt-view .legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gantt-view .legend-color {
    width: 16px;
    height: 16px;
    border: 1px solid #888;
}

/* Scrollbox für vertikales Scrollen */
.gantt-view table {
    overflow-y: auto;
    display: block;
    max-height: 70vh;
    width: 100%;
    border-collapse: collapse;
    background-color: #e0e0e0;
    border: 2px solid #808080;
    table-layout: fixed;
}

.gantt-view .controls select,
.gantt-view .controls input {
    font-family: "MS Sans Serif", Arial, sans-serif;
    padding: 4px;
    margin-right: 10px;
    margin-top: 50px;
}

.gantt-view .legend {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.gantt-view .legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gantt-view .legend-color {
    width: 20px;
    height: 20px;
    border: 1px solid #888;
}

/* Zeilen abwechselnd einfärben */
.gantt-view tbody tr:nth-child(even) {
    background-color: #f9f9f9b5;
}
.gantt-view tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Markierte Zeile */
.gantt-view tbody tr.markiert {
    background-color: #d0e6ff !important;
}

.month-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.month-nav button {
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 13px;
    padding: 4px 10px;
    background-color: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    cursor: pointer;
}

.month-nav select,
.month-nav input[type="text"] {
    font-family: "MS Sans Serif", Arial, sans-serif;
    padding: 4px;
    font-size: 14px;
}

.gantt-view .container {
    padding-top: 80px;  /* Verhindert Überlappung durch Navbar */
}

/* Wrapper für scrollbare Tabelle */
.gantt-scroll-wrapper {
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
}

/* Fixierte Kopfzeile */
.gantt-view thead th {
    position: sticky;
    top: 0;
    background-color: #c0c0c0;
    z-index: 5;
}

/* PERSONALAKTE STYLES */
.personalakte-view .form-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.personalakte-view .form-left, 
.personalakte-view .form-right {
    flex: 1;
    min-width: 300px;
    padding: 10px;
    background-color: #c0c0c0;
    border: 2px solid #808080;
    border-top-color: #fff;
    border-left-color: #fff;
    box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #fff;
}

.personalakte-view label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.personalakte-view input[type="text"],
.personalakte-view input[type="date"],
.personalakte-view input[type="number"],
.personalakte-view select,
.personalakte-view textarea {
    width: 100%;
    padding: 4px;
    margin-top: 2px;
    font-family: inherit;
    background-color: white;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    box-sizing: border-box;
}

.personalakte-view button[type="submit"],
.personalakte-view input[type="submit"] {
    margin-top: 20px;
    padding: 6px 14px;
    background-color: #e0e0e0;
    font-family: inherit;
    font-size: 14px;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    cursor: pointer;
}

.personalakte-view .controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.personalakte-view .controls select, 
.personalakte-view .controls input[type="text"] {
    height: 32px;
    font-size: 14px;
    padding: 0 10px;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    max-width: 150px;
}

.personalakte-view .controls button[type="submit"] {
    padding: 5px 12px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 14px;
    border: 2px solid #808080;
    background-color: #c0c0c0;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    cursor: pointer;
    height: 32px;
}

.personalakte-view .controls button[type="submit"]:hover {
    background-color: #e0e0e0;
}

.personalakte-view .legend {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.personalakte-view .legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.personalakte-view .legend-color {
    width: 16px;
    height: 16px;
    border: 1px solid #808080;
}

.personalakte-view .error {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

.personalakte-view .personalakten-box {
    max-width: 400px;
    width: 100%;
    overflow-x: auto;
    background-color: #c0c0c0;
    border: 2px solid #808080;
    padding: 10px;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    margin-top: 40px;
}

.button-row-fixed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
}

.button-row-fixed .button {
    flex: 1;
    text-align: center;
}

#save-hint {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 8px 10px;
    margin-top: 10px;
    font-family: "MS Sans Serif", sans-serif;
    font-size: 14px;
}

.form-nav-sticky {
    position: sticky;
    top: 0; /* Oder 60px, je nach Navbar-Höhe */
    z-index: 15;
    background-color: #c0c0c0;
    padding: 10px 0;
    border-bottom: 2px solid #808080;
}

.form-nav-sticky .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Fahrzeugformular kompakte Ansicht */
.fahrzeug-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px 20px;
    margin-top: 10px;
}

.fahrzeug-form .form-grid label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: bold;
    color: #000;
}

.fahrzeug-form input,
.fahrzeug-form select,
.fahrzeug-form textarea {
    font-family: inherit;
    font-size: 13px;
    padding: 4px;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    background-color: #fff;
}

.fahrzeug-form textarea {
    resize: vertical;
}

.fahrzeug-form .form-actions {
    grid-column: span 2;
    margin-top: 20px;
    text-align: center;
}

.fahrzeug-form button {
    padding: 6px 16px;
    font-size: 14px;
    background-color: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    cursor: pointer;
}

/* Hiermit werden alle Styles auf die Seite "bearbeiten.html" angewendet */
.bearbeiten-view {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Stellt sicher, dass die Seite mindestens die volle Höhe des Viewports hat */
    background-color: #e0e0e0; /* Hintergrundfarbe für den gesamten Bereich */
}

.bearbeiten-view .container {
    margin-top: 60px; /* Abstand zur festen Navbar */
    width: 70%;
    max-width: 1200px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bearbeiten-view .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #000080;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bearbeiten-view .navbar a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.bearbeiten-view h2 {
    font-size: 18px;
    font-weight: bold;
    text-align: center; /* Zentriert den Titel */
}

.bearbeiten-view .form-box {
    background-color: #f0f0f0;
    border: 1px solid #808080;
    padding: 10px;
    margin-bottom: 20px;
}

.bearbeiten-view .form-box h3 {
    margin-top: 0;
    text-align: center; /* Zentriert den Untertitel */
}

.bearbeiten-view .form-box label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.bearbeiten-view .form-box input[type="date"], 
.bearbeiten-view .form-box select, 
.bearbeiten-view .form-box textarea {
    width: 100%; /* Setzt die Eingabefelder auf 100% Breite des Containers */
    padding: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.bearbeiten-view .form-box button {
    font-size: 14px;
    padding: 6px 12px;
    background-color: #c0c0c0;
    border: 1px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    cursor: pointer;
    display: block;
    margin: 0 auto; /* Zentriert den Button */
}

.bearbeiten-view .table-box {
    margin-top: 20px;
}

.bearbeiten-view table {
    width: 100%; /* Setzt die Tabellenbreite auf 100% */
    border-collapse: collapse;
    margin-top: 20px;
    text-align: center; /* Zentriert die Tabelleninhalte */
}

.bearbeiten-view th, .bearbeiten-view td {
    padding: 8px;
    border: 1px solid #808080;
}

.bearbeiten-view th {
    background-color: #c0c0c0;
}

.bearbeiten-view .btn-delete {
    background-color: #f08080;
    border: 1px solid #c0c0c0;
    cursor: pointer;
}

.bearbeiten-view .btn-delete:hover {
    background-color: #e57373;
}
.bearbeiten-view .eingabe-und-tabelle-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.bearbeiten-view .eingabe-box {
    flex: 1 1 30%;
    min-width: 280px;
}

.bearbeiten-view .tabelle-box {
    flex: 2 1 65%;
    max-height: 600px;
    overflow-y: auto;
    background-color: #f0f0f0;
    padding: 10px;
    border: 1px solid #808080;
}

/* SCHLIESSZEITEN VIEW STYLES */
.schliesszeiten-view {
    margin-top: 80px; /* damit es unter der Navbar erscheint */
    margin-left: auto;
    margin-right: auto;
    max-width: 800px; /* optional, für zentrierte Breite */
    padding: 20px;
    font-size: 14px;
    background-color: #bdbdbd;
}

.schliesszeiten-view .form-box {
    background-color: #c0c0c0;
    border: 2px solid #808080;
    padding: 16px;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    margin-bottom: 20px;
}

.schliesszeiten-view h2 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.schliesszeiten-view .input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.schliesszeiten-view .input-row input[type="date"] {
    flex: 1;
    padding: 4px;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    background-color: white;
}

.schliesszeiten-view .input-row button {
    padding: 4px 10px;
    font-size: 13px;
    background-color: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    cursor: pointer;
}

.schliesszeiten-view .input-row button:hover {
    background-color: #e0e0e0;
}

.schliesszeiten-view table {
    width: 100%;
    border-collapse: collapse;
    background-color: #e0e0e0;
    border: 2px solid #808080;
    margin-top: 20px;
}

.schliesszeiten-view th,
.schliesszeiten-view td {
    padding: 6px;
    border: 1px solid #a0a0a0;
    text-align: center;
    font-size: 13px;
}

.schliesszeiten-view th {
    background-color: #c0c0c0;
    font-weight: bold;
}

.schliesszeiten-view .btn-delete {
    background-color: #f08080;
    border: 1px solid #c0c0c0;
    cursor: pointer;
}

.schliesszeiten-view .btn-delete:hover {
    background-color: #e57373;
}

.fehltage-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.fehltage-wrapper .form-box {
    flex: 1;
    min-width: 280px;
}

/* ============================= */
/* Fahrzeugbelegung Ansicht     */
/* ============================= */

.fahrzeugbelegung-view h2 {
    margin-bottom: 0.5em;
}

.fahrzeugbelegung-view .formularleiste {
    margin-top: 0;
}

.fahrzeugbelegung-view .container {
    margin-top: 1.5rem; /* oder z. B. 24px */
    padding-bottom: 0;
    margin-bottom: 0;
}

.fahrzeugbelegung-view .kalender-tabelle {
    border-collapse: collapse;
    width: 100%;
    min-width: 1200px;
}

.fahrzeugbelegung-view .kalender-tabelle th,
.fahrzeugbelegung-view .kalender-tabelle td {
    border: 1px solid #ccc;
    text-align: center;
    padding: 4px;
    font-size: 0.9em;
}

/* Belegungsfarben */
.fahrzeugbelegung-view .belegt {
    background-color: #d0eaff;
    cursor: help;
}

.fahrzeugbelegung-view .wochenende {
    background-color: #f0f0f0;
}

/* Sticky-Tageszeile */
.fahrzeugbelegung-view .kalender-tabelle thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 50;
}

/* Linke obere Ecke: "Kennzeichen" */
.fahrzeugbelegung-view .kalender-tabelle thead th:first-child {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;
    background: #fff;
    font-weight: bold;
}

/* Linke Spalte: Fahrzeugkennzeichen */
.fahrzeugbelegung-view .kalender-tabelle td:first-child {
    position: sticky;
    left: 0;
    z-index: 25;
    background: #f9f9f9;
    font-weight: bold;
}

/* Layout für Tabelle + Formular */
.fahrzeugbelegung-view .page-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
}

/* Formularblock rechts */
.fahrzeugbelegung-view .formular-panel {
    position: sticky;
    top: 100px;
    width: 300px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
}

.fahrzeugbelegung-view .formular-panel label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.fahrzeugbelegung-view .formular-panel input,
.fahrzeugbelegung-view .formular-panel select {
    width: 100%;
    padding: 6px;
    margin-top: 4px;
    box-sizing: border-box;
}

.fahrzeugbelegung-view .formular-panel button {
    margin-top: 15px;
    width: 100%;
}

.fahrzeugbelegung-view .abfrage-ergebnis {
    background-color: #f0f8ff;
    padding: 10px 15px;
    border-left: 4px solid #2196f3;
    border-radius: 6px;
    max-width: 300px;
    font-size: 0.95em;

    /* NEU für Überlappung */
    position: relative;
    top: -40px; /* je nach Effektwunsch anpassen */
}

/* Scrollbare Tabellenansicht */
.fahrzeugbelegung-view .scroll-wrapper {
    overflow: auto;
    max-height: 75vh;
    position: relative;
}

/* Linienbelegung View spezifische Anpassungen */
body.linienbelegung-view {
    background-color: #d2d2d2;
    padding-top: 3.5em;
}

/* Container mit Retro-Stil */
.linienbelegung-view .container {
    padding: 1.5em;
    background-color: #c0c0c0;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

/* Scroll-Wrapper richtig vorbereiten */
.table-scroll-wrapper {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
    background-color: #c0c0c0; /* verhindert durchscheinende Tabelle */
    border: 2px solid #808080;
}

/* Tabellenlayout */
.linienbelegung-view .linienbelegung-tabelle {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    background-color: #c0c0c0;
    font-family: Arial, sans-serif;
    font-size: 0.9em;
    margin-top: 1em;
    border: none;
}

/* Tabellenzellen */
.linienbelegung-view .linienbelegung-tabelle th,
.linienbelegung-view .linienbelegung-tabelle td {
    box-sizing: border-box;
    padding: 6px;
    text-align: center;
    vertical-align: middle;
    background-color: #c0c0c0;
    border: 1px solid white;
    font-weight: normal;
}

/* Beispiel: exakte Breite setzen für alle Spalten */
.linienbelegung-tabelle colgroup col {
    width: 12.5%; /* bei 8 Spalten */
}
/* Fixierte Kopfzeile */
.linienbelegung-view .linienbelegung-tabelle thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #c0c0c0;
    border-bottom: 2px solid #808080;
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
    height: 40px;
    line-height: 1.4;
    vertical-align: middle;
}

/* Eingabefelder: volle Spaltenbreite */
.linienbelegung-view .linienbelegung-tabelle input[list],
.linienbelegung-view .linienbelegung-tabelle input[type="text"],
.linienbelegung-view .linienbelegung-tabelle select {
    width: 100%;
    padding: 4px;
    margin: 0;
    box-sizing: border-box;
    font-size: 0.9em;
    background-color: white;
    border: 1px solid #808080;
}

/* Farbliche Statusklassen für Dropdowns */
.status-select {
    background-color: white;
}
.status-kein {
    background-color: #e0e0e0 !important;
}
.status-besetzt {
    background-color: #04f90d !important;
}
.status-uvert {
    background-color: #fff9c4 !important;
}
.status-kvert {
    background-color: #ffe0b2 !important;
}
.status-linieaufgeloest {
    background-color: #edf506 !important;
}
.status-fahrerwechsel {
    background-color: #bbdefb !important;
}
.status-kretschmer {
    background-color: #f6071f !important;
}

/* Fix für schmale Spalten */
.linienbelegung-tabelle th:nth-child(1),
.linienbelegung-tabelle td:nth-child(1) {
    width: 100px;
    max-width: 120px;
    min-width: 80px;
}

.linienbelegung-tabelle th:nth-child(2),
.linienbelegung-tabelle td:nth-child(2) {
    width: 60px;
    max-width: 80px;
    min-width: 50px;
}

/* WIN98 GLOBAL RETRO HINTERGRUND & SYSTEMLOOK */
body {
    background-color: #c0c0c0; /* Einheitlicher Windows 98 Hintergrund */
    font-family: "MS Sans Serif", Tahoma, sans-serif;
    font-size: 13px;
    color: black;
}

h1, h2, h3 {
    font-family: "MS Sans Serif", Tahoma, sans-serif;
    color: black;
    font-weight: bold;
    text-shadow: 1px 1px 0 #fff;
}

.button, button, input[type="submit"], input[type="button"] {
    font-family: "MS Sans Serif", Tahoma, sans-serif;
    background-color: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    padding: 4px 8px;
    cursor: pointer;
}

button:hover,
.button:hover {
    background-color: #e0e0e0;
}

input[type="text"], input[type="date"], select, textarea {
    background-color: white;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    font-family: "MS Sans Serif", Tahoma, sans-serif;
    padding: 4px;
}

/* ============================= */
/* Anlagen View                  */
/* ============================= */

body.anlagen-view {
    background-color: #c0c0c0;
    padding-top: 3.5em;
    font-family: "MS Sans Serif", Arial, sans-serif;
}

.anlagen-view .container {
    padding: 1.5em;
    background-color: #c0c0c0;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.anlagen-view h2 {
    font-size: 18px;
    margin-bottom: 1em;
}

.anlagen-view .table-wrapper {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: auto;
    border: 2px solid #808080;
    background-color: #f0f0f0;
    padding: 1em;
}

.anlagen-view table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #c0c0c0;
}

.anlagen-view th,
.anlagen-view td {
    border: 1px solid #a0a0a0;
    padding: 6px;
    text-align: center;
    vertical-align: middle;
}

.anlagen-view th {
    position: sticky;
    top: 0;
    background-color: #e0e0e0;
    font-weight: bold;
    z-index: 5;
}

.anlagen-view input,
.anlagen-view select,
.anlagen-view textarea {
    height: 32px; /* Einheitlich */
    padding: 4px;
    font-size: 13px;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    background-color: #fff;
    box-sizing: border-box;
    vertical-align: middle;
}

/* Extra für Date-Felder (Chrome/Safari/Edge) */
.anlagen-view input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    height: 32px;
    padding: 4px;
    font-size: 13px;
    line-height: normal;
    background-color: #fff;
}

/* Für Firefox separat */
.anlagen-view input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0); /* dunkles Icon */
    opacity: 1;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.anlagen-view button[type="submit"] {
    margin-top: 15px;
    padding: 6px 12px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    background-color: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
    cursor: pointer;
}

.anlagen-view button[type="submit"]:hover {
    background-color: #e0e0e0;
}

.anlagen-view .form-actions {
    text-align: right;
    margin-top: 1em;
}

.input-euro-group {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    overflow: hidden;
    background: #c0c0c0;
    height: 32px; /* einheitliche Höhe wie Bootstrap inputs */
    box-sizing: border-box;
}

.input-euro-group input {
    border: none;
    outline: none;
    padding: 0.375rem 0.5rem;
    width: 100%;
    height: 100%;
    margin: 0;
    font-size: 0.875rem;
    box-sizing: border-box;
}

.input-euro-group .input-suffix {
    background: #c0c0c0;
    padding: 0.375rem 0.5rem;
    border-left: 1px solid #ced4da;
    font-size: 0.875rem;
    color: #495057;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
}

.anlagenbelegung-tabelle td {
    vertical-align: middle;
}
