/* Grundlegende Reset- und Basisstile */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(120deg, #f0f4f8, #d9e2ec);
    color: #1f2937;
    margin: 0;
    padding: 40px 20px;
    line-height: 1.6;
    font-size: 16px;
}

/* Container-Stile */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffffdd;
    border-radius: 12px;
    padding: 40px 50px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    transition: background-color 0.3s ease;
}

/* Kopfzeilen */
h1 {
    font-weight: 800;
    font-size: 2.6rem;
    color: #111827;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #374151;
}

/* Formularelemente */
form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    user-select: none;
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    color: #111827;
    background-color: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    outline-offset: 2px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    resize: vertical;
    margin-bottom: 20px;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
    background-color: #ffffff;
}

/* Buttons */
button {
    background-color: #2563eb;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin: 0 12px 12px 0;
}

button:hover,
button:focus {
    background-color: #1d4ed8;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.6);
    outline: none;
}

/* Fehlermeldungen & Erfolgsmeldungen */
.error {
    background-color: #fee2e2;
    border: 1.5px solid #fecaca;
    color: #b91c1c;
    padding: 18px 20px;
    margin-bottom: 28px;
    font-weight: 600;
    border-radius: 8px;
}

.message {
    background-color: #dcfce7;
    border: 1.5px solid #bbf7d0;
    color: #047857;
    padding: 18px 20px;
    margin-bottom: 28px;
    font-weight: 600;
    border-radius: 8px;
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

thead {
    background-color: #2563eb;
    color: white;
    font-weight: 700;
}

th, td {
    padding: 10px 10px;
    text-align: left;
    border-bottom: 1px solid #e0e7ff;
    font-size: 1rem;
    vertical-align: middle;
}

tbody tr:hover {
    background-color: #f3f4f6;
    transition: background-color 0.2s ease;
}

th:first-child, td:first-child {
    padding-left: 40px;
}

th:last-child, td:last-child {
    padding-right: 40px;
}

tfoot tr {
    background-color: #f9fafb;
    font-weight: 700;
}

tfoot td {
    border-top: 2px solid #cbd5e1;
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Dashboard-Menü als vertikale Liste ohne Bullet Points */
ul.dashboard-menu,
ul.dashboard-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dashboard-menu {
    width: 220px;
    background-color: #f0f4f8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dashboard-menu li {
    border-bottom: 1px solid #d1d9e6;
}

.dashboard-menu li:last-child {
    border-bottom: none;
}

.dashboard-menu li a {
    display: block;
    padding: 18px 30px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    border-left: 4px solid transparent;
    border-radius: 0 8px 8px 0;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.dashboard-menu li a:hover,
.dashboard-menu li a:focus {
    background-color: #2563eb;
    color: white;
    border-left-color: #1d4ed8;
    outline: none;
}

/* Login-Container */
.login-container {
    max-width: 400px;
    margin: 60px auto;
    background-color: white;
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Überschrift im Login */
.login-container h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 25px;
    text-align: center;
}

/* Label für Eingabefelder */
.login-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #334155;
}

/* Eingabefelder Login */
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
    outline: none;
    background-color: #f9fafb;
}

/* Submit Button Login */
.login-container button[type="submit"] {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-radius: 12px;
    background-color: #2563eb;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.4);
}

.login-container button[type="submit"]:hover,
.login-container button[type="submit"]:focus {
    background-color: #1e40af;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.6);
    outline: none;
}

/* Fehlermeldung Login */
.login-container .error {
    color: #dc2626;
    background-color: #fee2e2;
    border: 1.5px solid #fecaca;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* Hilfetext Login */
.login-container .help-text {
    text-align: center;
    margin-top: 14px;
    color: #475569;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .container {
        padding: 30px 25px;
    }
    .dashboard-menu {
        width: 100%;
        border-radius: 8px;
        box-shadow: none;
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
    }
    .dashboard-menu li {
        border: none;
        flex: 1 1 45%;
    }
    .dashboard-menu li a {
        border-radius: 10px;
        border-left: none;
        text-align: center;
        padding: 14px 0;
        box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
    }
    .dashboard-menu li a:hover,
    .dashboard-menu li a:focus {
        box-shadow: 0 8px 25px rgba(29, 78, 216, 0.5);
        border-left: none;
    }
    th, td {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 20px 10px;
        font-size: 14px;
    }
    .container {
        padding: 20px 15px;
        min-width: 280px;
    }
    form input[type="text"],
    form input[type="number"],
    form input[type="datetime-local"],
    form select,
    form textarea {
        font-size: 0.9rem;
        padding: 12px 14px;
    }
    table {
        font-size: 0.9rem;
    }
    th, td {
        padding: 12px 14px;
    }
    .dashboard-menu {
        flex-direction: column;
        width: 100%;
    }
    .dashboard-menu li {
        flex: none;
    }
    .dashboard-menu li a {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

.highlight { background-color: #ffe98a !important; }

/*
/* Bestehende .container-Regel ergänzen */
/*.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffffdd;
    border-radius: 12px;
    padding: 40px 50px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    transition: background-color 0.3s ease;

    overflow-x: auto; /* Hier Scrollbalken bei Überbreite erlauben */
/*}


/* Tabellen responsiv und Inhalte umbrechen */
/*table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 30px;
    border-radius: 12px;
    overflow: visible;

    table-layout: fixed; /* Spaltenbreiten fixieren */
/*}

/*th, td {
    white-space: nowrap; /* Text in Zellen nicht umbrechen (ändern falls nötig) */
  /*  overflow: hidden;
    text-overflow: ellipsis; /* Bei Überlauf ... anzeigen */
/*}

/* Optional: Falls lieber Umbruch in Zellen (anstatt abschneiden) */
/*
th, td {
    white-space: normal;
    word-wrap: break-word;
}
*/


/* Responsive Design */
@media (max-width: 900px) {
    .container {
        padding: 30px 25px;
        max-width: 100%;
    }
    .dashboard-menu {
        width: 100%;
        border-radius: 8px;
        box-shadow: none;
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
    }
    .dashboard-menu li {
        border: none;
        flex: 1 1 45%;
    }
    .dashboard-menu li a {
        border-radius: 10px;
        border-left: none;
        text-align: center;
        padding: 14px 0;
        box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
    }
    .dashboard-menu li a:hover,
    .dashboard-menu li a:focus {
        box-shadow: 0 8px 25px rgba(29, 78, 216, 0.5);
        border-left: none;
    }
    th, td {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 20px 10px;
        font-size: 14px;
    }
    .container {
        padding: 20px 15px;
        min-width: 280px;
    }
    form input[type="text"],
    form input[type="number"],
    form input[type="datetime-local"],
    form select,
    form textarea {
        font-size: 0.9rem;
        padding: 12px 14px;
    }
    table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    th, td {
        padding: 12px 14px;
    }
    .dashboard-menu {
        flex-direction: column;
        width: 100%;
    }
    .dashboard-menu li {
        flex: none;
    }
    .dashboard-menu li a {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}


.responsive-table-container {
  width: 100%;
  overflow-x: auto; /* Horizontal Scroll erlauben */
  -webkit-overflow-scrolling: touch; /* Für flüssiges Scrollen auf iOS */
}

.responsive-table-container table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Mindestbreite anpassen je nach Tabelleninhalt */
}