.inplaykalender_tag {
    text-align: center;
    font-size: 8px;
    letter-spacing: 1px;
}

/* Einzelne Kategorien */
.szenen {
    background-color: #C8B6CC;
}

.szenen strong {
    color: #543D59 !important;
}

.geburtstag {
    background-color: #EBD39D;
}

.geburtstag strong {
    color: #6E644E !important;
}

.timeline {
    background-color: #BADBAF;
}

.timeline strong {
    color: #3D4F37 !important;
}

.event {
    background-color: #ABD9D8;
}

.event strong {
    color: #4D6E6D !important;
}

/* Kombinationen aus zwei Kategorien */
.szenentimeline {
    background: linear-gradient(
        to left top,
        #C8B6CC 50%,
        #BADBAF 50%
    );
}

.szenentimeline strong {
    color: #3D4F37 !important;
}

.szenengeburtstag {
    background: linear-gradient(
        to left top,
        #C8B6CC 50%,
        #EBD39D 50%
    );
}

.szenengeburtstag strong {
    color: #543D59 !important;
}

.szenenevent {
    background: linear-gradient(
        to left top,
        #C8B6CC 50%,
        #ABD9D8 50%
    );
}

.geburtstagtimeline {
    background: linear-gradient(
        to left top,
        #EBD39D 50%,
        #BADBAF 50%
    );
}

.geburtstagtimeline strong {
    color: #6E644E !important;
}

.geburtstagevent {
    background: linear-gradient(
        to left top,
        #EBD39D 50%,
        #ABD9D8 50%
    );
}

.timelineevent {
    background: linear-gradient(
        to left top,
        #BADBAF 50%,
        #ABD9D8 50%
    );
}

/* Kombinationen aus drei Kategorien */
.szenengeburtstagtimeline {
    background: linear-gradient(
        to left top,
        #C8B6CC 33%,
        #EBD39D 33%,
        #C8B6CC 66%,
        #BADBAF 66%
    );
}

.szenengeburtstagtimeline strong {
    color: #543D59 !important;
}

.szenengeburtstagevent {
    background: linear-gradient(
        to left top,
        #C8B6CC 33%,
        #EBD39D 33%,
        #C8B6CC 66%,
        #ABD9D8 66%
    );
}

.szenentimelineevent {
    background: linear-gradient(
        to left top,
        #C8B6CC 33%,
        #BADBAF 33%,
        #BADBAF 66%,
        #ABD9D8 66%
    );
}

.geburtstagtimelineevent {
    background: linear-gradient(
        to left top,
        #EBD39D 33%,
        #BADBAF 33%,
        #BADBAF 66%,
        #ABD9D8 66%
    );
}

/* Kombination aus vier Kategorien */
.szenengeburtstagtimelineevent {
    background: linear-gradient(
        to left top,
        #C8B6CC 25%,
        #EBD39D 25%,
        #C8B6CC 50%,
        #BADBAF 50%,
        #BADBAF 75%,
        #ABD9D8 75%
    );
}

/* Mini-Kalender */
#mini-kalender {
    font-size: 7px;
}

#mini-kalender td {
    padding: 5px;
}

#mini-kalender tr:empty {
    display: none;
}

/* Eventlisten im Popup */
.inplaykalender-eventlist {
    max-height: 50px;
    overflow: auto;
    padding-right: 5px;
}

/* Ganze Tageszelle als Klickfläche */
.inplaykalender_tag {
    position: relative;
    padding: 0 !important;
    height: 25px;
}

/* Link im Mini-Kalender */
.inplaykalender_tag .ipk-daylink {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    min-height: 25px;

    padding: 6px 0;
    box-sizing: border-box;
    text-decoration: none;
}

/* Link im großen Jahreskalender */
.inplaykalender_tag .ipk-daylinkschmal {
    position: absolute;
    inset: 0;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

/* Mauszeiger für alle anklickbaren Tageszellen */
.inplaykalender_tag.has-popup {
    cursor: pointer;
}

/* Feiertagskennzeichnung */
.inplaykalender_tag.feiertag {
    position: relative;
}

/* Kleines Feiertagssymbol */
.inplaykalender_tag.feiertag::after {
    content: "✿";

    position: absolute;
    top: 1px;
    right: 2px;
    z-index: 20;

    font-size: 10px;
    line-height: 1;

    pointer-events: none;
}