/* Eigene Stile (keine Inline-Stile in neuen Vorlagen) */
/* Kopfleiste */
.hv-navbar { z-index: 1030; }
.hv-navbar .nav-link { padding-left: .6rem; padding-right: .6rem; border-radius: .375rem; }
.hv-navbar .nav-link.active { background-color: rgba(255, 255, 255, 0.12); }
.hv-navbar .dropdown-menu { font-size: .925rem; }
.hv-glocke { width: 360px; max-height: 70vh; overflow-y: auto; }
.hv-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Rechte Menüs (Benutzer, Admin, Glöckchen): auf schmalen Bildschirmen mittig unter der Kopfleiste statt
   rechtsbündig am Knopf – sonst ragen sie links aus dem Bild (Handy, 2026-11-03) */
@media (max-width: 1199.98px) {
    .hv-navbar .hv-menu-rechts { position: fixed; top: 4.25rem; left: 50%; right: auto; transform: translateX(-50%);
        width: min(94vw, 380px); max-height: calc(100vh - 5.5rem); overflow-y: auto; z-index: 1060; }
}
/* Team-Kalender auf dem Handy: kleinere Knöpfe und Titel, kein Umbruch der Kopfzeile */
@media (max-width: 767.98px) {
    #teamkalender .fc-toolbar { gap: .35rem; margin-bottom: .5rem !important; }
    #teamkalender .fc-toolbar.fc-footer-toolbar { margin-top: .5rem; margin-bottom: 0 !important; }
    #teamkalender .fc-toolbar-title { font-size: 1rem; white-space: nowrap; }
    #teamkalender .fc-button { padding: .2rem .5rem; font-size: .8rem; line-height: 1.3; }
    #teamkalender .fc-button .fc-icon { font-size: 1rem; }
    #teamkalender .fc-toolbar-chunk { display: flex; align-items: center; }
    #teamkalender .fc-daygrid-day-number, #teamkalender .fc-col-header-cell-cushion { font-size: .75rem; padding: 2px; }
    #teamkalender .fc-daygrid-event { font-size: .7rem; }
    #teamkalender .fc-list-event-title, #teamkalender .fc-list-event-time { font-size: .85rem; }
}
.hv-unterschrift-flaeche { touch-action: none; cursor: crosshair; max-width: 560px; }
.hv-unterschrift-bild { max-height: 90px; max-width: 280px; }
.hv-kbd { font-size: .7rem; padding: 0 .3rem; background: rgba(255, 255, 255, 0.15); }
.hv-search-box { width: 320px; z-index: 1050; }
.hv-search-results { max-height: 400px; overflow-y: auto; }
.hv-avatar { object-fit: cover; }
/* Fremde Texte (Mails, Beschreibungen) mit Zeilenumbrüchen, aber nie als HTML */
.hv-preline { white-space: pre-wrap; overflow-wrap: anywhere; }
.hv-clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
details > summary { cursor: pointer; }
@media print {
    body { background: #fff !important; }
}
/* KI-Chat */
.hv-chat-verlauf { min-height: 240px; max-height: 60vh; overflow-y: auto; }
.hv-chat-blase { max-width: 85%; }
.hv-werkstatt-editor { tab-size: 4; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.hv-werkstatt-chat { max-height: 70vh; overflow-y: auto; }
.hv-werkstatt-msg { max-width: 92%; }
.hv-werkstatt-ausgabe { max-height: 40vh; overflow: auto; white-space: pre-wrap; }
.hv-chat-bild { max-height: 60vh; }
.hv-chat-liste { max-height: 70vh; overflow-y: auto; }
