body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #fdfdf5;
    color: #1f2a2a;
    font-size: 16px;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.5rem;
}

.table-admin td {
    vertical-align: middle;
    text-align: center;
    padding: 0px;
    line-height: 25px;
    width: 25px;
    height: 25px;
}

.table-admin th.day {
    font-size: 0.7rem;
    text-align: center;
    padding:0px;
    line-height: 25px;
    width: 25px;
    height: 25px;
}
.table-admin th.month {
    font-size: 0.7rem;
    text-align: left;
}

.calendar-page {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.calendar-shell {
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.calendar-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0 14px;
    border-bottom: 1px solid #dde6e2;
    background: transparent;
}

.calendar-label {
    margin-bottom: 4px;
    color: #65736f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.calendar-title {
    margin: 0;
    color: #162321;
    font-size: clamp(1.45rem, 1.2rem + 1vw, 2.2rem);
    font-weight: 700;
    line-height: 1.15;
}

.calendar-year {
    color: #2c3b38;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
}

.calendar-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 0 10px;
}

.table-user {
    min-width: 980px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.table-user td {
    vertical-align: middle;
    text-align: center;
    padding: 0;
    width: 28px;
    height: 30px;
    border: 1px solid #e4ece8;
}
.table-user th.day {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #5b6965;
    background: #f7faf8;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    padding: 0;
    width: 28px;
    height: 32px;
    border: 1px solid #e4ece8;
}
.table-user th.month {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 116px;
    min-width: 116px;
    color: #263633;
    background: #f7faf8;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
    padding: 0 12px;
    border: 1px solid #e4ece8;
}

.table-user .month-heading {
    position: sticky;
    left: 0;
    z-index: 4;
    width: 116px;
    min-width: 116px;
    background: #f7faf8;
    border: 1px solid #e4ece8;
}

.def {
    background-color: #f2f2f2;
    font-size: 12px;padding: 0px;
    line-height: 25px;
    height: 25px;

}

.table-user .undefiniert {
    background-color: #f3f6f4;
}

.frei {
    background-color: #58a36d;
}

.belegt {
    background-color: #c9504c;
}

.anreise {
    background: linear-gradient(135deg, #58a36d 0 50%, #c9504c 50% 100%);
}

.abreise {
    background: linear-gradient(135deg, #c9504c 0 50%, #58a36d 50% 100%);
}

/*Legenden*/

.calendar-footer {
    padding: 6px 0 16px;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #43504d;
    font-size: 0.92rem;
}

.legend-item,
.legende {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 18px;
    margin-bottom: 2px;
    margin-top: 2px;
}

.icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: 0 0 18px;
    border: 1px solid rgba(31, 42, 42, 0.12);
    border-radius: 4px;
    overflow: hidden;
}

.icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0 0;
    border-top: 1px solid #dde6e2;
}

.calendar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    color: #ffffff;
    background: #233432;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.calendar-button:hover,
.calendar-button:focus {
    color: #ffffff;
    background: #3f5550;
    text-decoration: none;
}

@media (max-width: 765px) {
    .calendar-page {
        width: 100%;
        padding: 0;
    }

    .calendar-shell {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .calendar-head {
        align-items: flex-start;
        padding: 16px 0 14px;
    }

    .calendar-title {
        font-size: 1.35rem;
    }

    .calendar-year {
        font-size: 1.2rem;
    }

    .calendar-table-wrap {
        padding: 12px 0 8px;
    }

    .table-user {
        min-width: 820px;
    }

    .table-user td,
    .table-user th{
        line-height: 20px !important;
        height: 24px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .table-user td,
    .table-user th.day {
        width: 22px;
    }

    .table-user th.month,
    .table-user .month-heading {
        width: 92px;
        min-width: 92px;
        padding: 0 8px !important;
        font-size: 0.72rem;
    }

    .calendar-legend {
        gap: 8px 12px;
        font-size: 0.85rem;
    }
}
