body {
    /*font-family: Arial, sans-serif;
    margin: 20px;*/
}

#login-area {
    margin-bottom: 10px;
}

#calendar-controls {
    text-align: center;
    margin-bottom: 10px;
}

#calendar-controls button {
    padding: 5px 10px;
    margin: 0 10px;
}

#month-year {
    font-weight: bold;
    font-size: 1.2em;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 20px;
}

.day {
    border: 1px solid #ccc;
    min-height: 80px;
    padding: 5px;
    position: relative;
    cursor: pointer;
}

.day.today {
    background-color: #e0f7fa;
}

.day .date {
    font-weight: bold;
}

.day .events {
    margin-top: 5px;
    font-size: 0.85em;
}

.day .event {
    background-color: #1976d2;
    color: white;
    padding: 2px 4px;
    margin-bottom: 2px;
    border-radius: 3px;
    cursor: pointer;
}

/* Modal */
#modal-bg {
    position: fixed;        /* wichtig! */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999 !important;  /* immer über allem */
}

#modal {
    background: white;
    padding: 20px;
    border-radius: 6px;
    width: 320px;
    max-width: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    z-index: 100000 !important;
    position: relative;     /* wichtig */
}

#modal input, #modal textarea {
    width: 100%;
    margin-bottom: 5px;
}

.hidden {
    display:none;
}

#footer, #main, #menue, #header-nav {
    /*z-index: auto !important;*/
}
