/* css für das Kalenderblatt*/

.monatsleiste {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-wrap: nowrap;
}

.monat {
    position: relative;
}

.monatsbutton {
    width: 90px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: linear-gradient(
        135deg,
        #f5eedc,
        #e9ddc2
    );

    border: 1px solid #9d8d6d;
    border-radius: 3px;

    box-shadow:
        0 2px 4px rgba(70, 55, 35, 0.18),
        inset 0 0 10px rgba(110, 80, 40, 0.08);

    color: #40382c;

    cursor: pointer;
}

.monatsname {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
}

.roemisch {
    padding-left: 5px;

    border-left: 1px solid #aa9b7c;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
}

/* der Tooltip*/
.tooltip {
    position: absolute;

    top: calc(100% + 12px);
    left: 50%;

    width: 320px;
    padding: 10px 12px;

    transform: translateX(-50%);

    background: #40382c;
    color: #f5eedc;

    border-radius: 4px;

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.15s ease;

    z-index: 100;
}

.monat:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* der kleine Pfeil*/
.tooltip::before {
    content: "";

    position: absolute;
    bottom: 100%;
    left: 50%;

    transform: translateX(-50%);

    border: 7px solid transparent;
    border-bottom-color: #40382c;
}

/* Korrektur zum Verhalten bei Januar und Februar wegen Bildschrimrand*/
.monat:first-child .tooltip {
    left: 0;
    transform: none;
}

.monat:first-child .tooltip::before {
    left: 55px;
}

.monat:last-child .tooltip {
    left: auto;
    right: 0;
    transform: none;
}

.monat:last-child .tooltip::before {
    left: auto;
    right: 55px;
}