body {
    font-family: Arial, sans-serif;
    background-color: #1b3c2d;
    color: #fff;
    margin: 0;
    padding: 0;
}

header {
    background-color: #14462b;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

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

table th {
    background-color: #14462b;
}

form {
    background-color: #1f4c36;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}
.formbutton {
    background-color: none;
    padding: 0px;
}
input, textarea, select {
    width: 100%;
    padding: 8px;
    margin: 5px 0 15px 0;
    border-radius: 6px;
    border: none;
}

button {
    background-color: #2d6b49;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background-color: #3da46f;
}

img.preview {
    max-width: 200px;
    max-height: 150px;
    margin-right: 10px;
    border-radius: 6px;
}
a.icon-btn {
	color: #fff;
}

a.btn-new {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3da46f; /* grüner Ton */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-new:hover {
    background-color: #2c7a52; /* dunklerer Grünton beim Hover */
}
.date-row {
    display: flex;
    gap: 20px;
}

.date-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* Checkbox + Label korrekt ausrichten */
.checkbox-label {
    display: flex;
    align-items: center; /* vertikal zentrieren */
    gap: 8px;            /* Abstand zwischen Checkbox und Text */
    margin-bottom: 10px; /* Abstand nach unten */
    cursor: pointer;     /* Zeigerhand beim Hover */
}

.checkbox-label input[type="checkbox"] {
    margin: 0;           /* unnötigen Browser-Margin entfernen */
    width: 18px;
    height: 18px;
}
/* Kurze Inputs für Zahlen wie Sortierung */
.short-input {
    width: 80px;       /* kleine feste Breite */
    max-width: 100%;   /* auf kleineren Bildschirmen flexibel */
    padding: 6px 8px;
}
/* Container für zwei nebeneinander liegende Inputs */
.coordinates-container {
    display: flex;
    gap: 10px;            /* Abstand zwischen Latitude und Longitude */
    flex-wrap: wrap;       /* auf kleinen Bildschirmen umbrechen */
}

.coordinates-container input {
    flex: 1;               /* gleiche Breite */
    min-width: 120px;      /* Mindestbreite, damit es nicht zu schmal wird */
}
/* ===============================
   Kalender Container
   =============================== */
#calendar {
    background: #1b3c2d;;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

/* ===============================
   Modal Overlay
   =============================== */
#modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999; /* sehr hoch, über FullCalendar */
    display: flex;
}



/* ===============================
   Modal Box
   =============================== */
#modal > div {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10000; /* Box über Overlay */
}

#modal h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #333;
}

#modal label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 500;
    color: #555;
}

#modal select, 
#modal input[type="text"], 
#modal input[type="datetime-local"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

/* ===============================
   Buttons
   =============================== */
#modal button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-right: 8px;
    transition: 0.2s;
}

#modal button:hover {
    opacity: 0.9;
}

#modal button:first-of-type {
    background-color: #4d79ff;
    color: #fff;
}

#modal button:last-of-type {
    background-color: #f1f1f1;
    color: #333;
}

/* ===============================
   Rotation Box
   =============================== */
#rotationBox {
    margin: 10px 0;
}

#rotationBox input[type="checkbox"] {
    margin-right: 6px;
}

/* ===============================
   FullCalendar Event Styling
   =============================== */
.fc-event {
    color: #fff !important;
    font-weight: 500;
    border-radius: 6px;
    padding: 3px 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Farben über JS EventDidMount gesetzt: 
   .absence = rot, .responsible = blau
   */
.fc-event.absence { background-color: #ff6b6b; }
.fc-event.responsible { background-color: #4d79ff; }

/* ===============================
   Responsive Anpassungen
   =============================== */
@media (max-width: 768px) {
    #calendar {
        padding: 15px;
    }
    #modal > div {
        width: 90%;
        min-width: auto;
    }
}

/* ===============================
   Login / Reset Seiten
   =============================== */

.auth-box {
    max-width: 420px;
    margin: 80px auto;
    background: #1f4c36;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

.auth-box input {
    width: 100%;
}

.auth-box button {
    width: 100%;
    margin-top: 10px;
}

.auth-links {
    text-align: center;
    margin-top: 15px;
}

.auth-links a {
    color: #9de2be;
    text-decoration: none;
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.message-success {
    background: #2d6b49;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.message-error {
    background: #a94442;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}
.password-wrapper {
    position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    /*padding-right: 40px; /* Platz für das Icon */
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9de2be;
    font-size: 18px;
    user-select: none;
}

.password-wrapper .toggle-password:hover {
    color: #fff;
}
.btn-login-back {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3da46f; /* Grünton passend zum Admin */
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn-login-back:hover {
    background-color: #2c7a52; /* dunklerer Grünton beim Hover */
}
.mobile-dashboard {
    display: none;
}

@media (max-width: 768px){

    table {
        display: none;
    }

    .mobile-dashboard {
        display: block;
    }

    .guest-cards {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .guest-card {
        background: #14462b;
        border-radius: 10px;
        padding: 12px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .guest-card.expired {
        background: #ffd6d6;
        color: #a00000;
    }

    .guest-card.failed {
        background: #444;
        color: #fff;
    }

    
}