body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background: #f3f3f3;
}

header {
    background: #004080;
    color: white;
    padding: 20px;
    position: relative;
}

/* FLEX-BEREICH oben im Header */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Username links oben */
.user {
    font-weight: bold;
    font-size: 14px;
}

/* Logout + Toggle vertikal gestapelt */
.header-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* Logout rechts oben */
.logout-button {
    background-color: #e74c3c;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

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

/* Toggle-Bereich */
.dark-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

/* Toggle-Switch selbst */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.switch input:checked + .slider {
    background-color: #26a69a;
}

.switch input:checked + .slider:before {
    transform: translateX(26px);
}

/* Haupttitel */
h1 {
    margin: 20px 0 0 0;
    font-size: 2em;
}

/* Button-Bereich (z. B. Startseite) */
.button-container {
    margin-top: 80px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.btn {
    display: inline-block;
    padding: 20px 35px;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    background-color: #2ecc71;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Login-Formular */
.login-container {
    margin: 100px auto;
    width: 300px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-container h2 {
    margin-bottom: 20px;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 5px;
}

.error {
    color: red;
    font-size: 0.9em;
}
body.admin {
  background-color: #2e2e2e;
  color: #eee;
}

body.datenbank {
  background-color: #e74c3c;
  color: #fff;
}

body.labor {
  background-color: #1abc9c;
  color: #fff;
}

body.analytik {
  background-color: #3498db;
  color: #fff;
}

body.default {
  background-color: #f9f9f9;
  color: #333;
}
