* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #222;
}

/* ==========================
   Header
========================== */

header {
    background: #0b6b3a;
    color: white;
    padding: 25px;
}

.header-inhalt {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 8px;
}

header h1 {
    font-size: 42px;
}

header p {
    margin-top: 10px;
    font-size: 24px;
}

.logout {
    margin-left: auto;
}

.logout a {
    display: inline-block;
    padding: 10px 18px;
    background: #c62828;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: .2s;
}

.logout a:hover {
    background: #a91f1f;
}

/* ==========================
   Allgemein
========================== */

.container {
    width: 95%;
    max-width: 1500px;
    margin: 30px auto;
}

h2 {
    margin-bottom: 20px;
    text-align: center;
}

/* ==========================
   Tagesauswahl
========================== */

.tage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.tag {
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.tag:hover {
    transform: translateY(-3px);
    border-color: #0b6b3a;
}

.tag.aktiv {
    border-color: #0b6b3a;
}

.wochentag {
    font-size: 28px;
    font-weight: bold;
    color: #0b6b3a;
}

.datum {
    font-size: clamp(24px,3vw,34px);
    font-weight: bold;
    margin: 15px 0;
    white-space: nowrap;
}

.zeit {
    background: #0b6b3a;
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-weight: bold;
}

/* ==========================
   Tabelle
========================== */

.buchung {
    width: 100%;
    border-collapse: collapse;
    margin-top: 35px;
    background: white;
}

.buchung th {
    background: #0b7a35;
    color: white;
    padding: 12px;
    border: 1px solid #0b7a35;
}

.buchung td {
    border: 1px solid #d9d9d9;
    padding: 10px;
    text-align: center;
}

.uhrzeit {
    background: #f4f4f4;
    font-weight: bold;
}

.frei {
    background: #dff6df;
    color: #0b7a35;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

.frei:hover {
    background: #b7ecb7;
}

.belegt {
    background: #d9534f;
    color: white;
    font-weight: bold;
}

/* ==========================
   Modal
========================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    justify-content: center;
    align-items: center;
}

.modal.anzeigen {
    display: flex;
}

.modal-inhalt {
    background: white;
    width: 450px;
    max-width: 95%;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,.35);
    animation: popup .2s ease;
}

@keyframes popup {
    from {
        transform: scale(.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================
   Login
========================== */

.login-container {
    max-width: 450px;
    margin: 50px auto;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
}

.login-card h2 {
    color: #0b6b3a;
    margin-bottom: 25px;
}

.login-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.login-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.login-card input:focus {
    outline: none;
    border-color: #0b6b3a;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: #0b6b3a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

.login-button:hover {
    background: #09572f;
}

.fehler {
    background: #ffd9d9;
    color: #b30000;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}