:root {
    --frei: #198754;
    --voll: #dc3545;
    --zu:   #ced4da;
}

/* Kalendergitter */
.kalender { table-layout: fixed; }
.kalender th { text-align: center; font-size: .8rem; }
.kalender td { vertical-align: top; height: 104px; width: 14.28%; padding: 3px; }
.kalender td.ausserhalb { background: #f8f9fa; }
.kalender .tagnummer { font-weight: 600; font-size: .8rem; color: #495057; }
.kalender .heute .tagnummer {
    background: #0d6efd; color: #fff; border-radius: 999px; padding: 0 .45rem;
}

/* Statusbalken je Stand in einer Tageszelle */
.standbar {
    display: flex; justify-content: space-between; align-items: center; gap: 4px;
    font-size: .68rem; line-height: 1.3; color: #fff; text-decoration: none;
    padding: 1px 5px; margin-top: 3px; border-radius: 3px;
    text-shadow: 0 0 2px rgba(0,0,0,.45); white-space: nowrap; overflow: hidden;
}
.standbar .nm { overflow: hidden; text-overflow: ellipsis; }

.bg-frei { background: var(--frei); }
.bg-voll { background: var(--voll); }
.bg-zu   { background: var(--zu); color: #6c757d; text-shadow: none; }
.bg-teil {
    background: repeating-linear-gradient(45deg,
        var(--frei) 0, var(--frei) 7px,
        var(--voll) 7px, var(--voll) 14px);
}

/* Veranstaltungs-Chips in der Tageszelle / Übersicht */
.ver-chip {
    display: block; font-size: .66rem; color: #fff; text-decoration: none;
    padding: 1px 5px; margin-bottom: 2px; border-radius: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ver-chip.nachrangig { opacity: .6; }

/* Slot-Auswahl per Maus in der Administration */
.slot-zeile.slot-aktiv > td { background-color: #cfe2ff !important; }
.slot-zeile.slot-voll { cursor: not-allowed; }
#slotTabelle { user-select: none; }

/* Legende */
.legende .swatch {
    display: inline-block; width: 18px; height: 18px; border-radius: 3px;
    vertical-align: -4px; margin-right: 5px; border: 1px solid rgba(0,0,0,.1);
}

/* Info-Sprechblase (Tap auf Standbalken, v. a. Touch-Geräte) */
.info-bubble {
    position: absolute;
    z-index: 1080;
    max-width: 240px;
    background: #212529;
    color: #fff;
    padding: .4rem .6rem;
    border-radius: .35rem;
    font-size: .8rem;
    line-height: 1.25;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .3);
    pointer-events: none;
}
.standbar[data-info] { cursor: pointer; }
.standbar[tabindex]:focus { outline: 2px solid #0d6efd; outline-offset: 1px; }
