/* =========================================================
   DESIGN TOKENS  (harmonisierte Farben & Radien)
   Eingeführt bei der Optimierung: zentrale Stellschrauben.
   Werte hier ändern -> wirkt global.
========================================================= */
:root {
    /* Marke / Interaktion */
    --c-primary:       #2196f3;
    --c-primary-dark:  #1976d2;
    --c-accent:        #5597dc;

    /* Status */
    --c-success:       #4caf50;
    --c-success-dark:  #2e7d32;
    --c-danger:        #e53935;
    --c-danger-dark:   #c62828;
    --c-warning:       #ff9800;

    /* Radius-Skala */
    --radius-xs:   4px;
    --radius-sm:   6px;
    --radius-md:   8px;
    --radius-lg:  10px;
    --radius-xl:  12px;
    --radius-pill: 999px;
}

/* =========================================================
   STRUKTURIERTE VERSION – ORIGINALZEILEN UNVERÄNDERT ERHALTEN
   Hinweis: Es wurden nur Abschnittsüberschriften ergänzt.
   Keine bestehende CSS-Zeile wurde gelöscht oder inhaltlich verändert.
========================================================= */



/* =========================================================
   01. MOBILE FORM / SIDEPANEL / PEEK
========================================================= */

.mobile-form {
    position: fixed;
    top: 0;
    right: 0;

    width: 420px;
    max-width: 90%;

    height: 100vh;

    background: rgba(255, 255, 255, 0.5);
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    z-index: 9999;
    transform: translateX(calc(100% - 40px)); /* 🔥 Peek bleibt sichtbar */
    transition: transform 0.3s ease;

    display: flex;
    flex-direction: column;

    overflow-y: auto;
}


/* 🔥 DRAG SUPPORT */


/* =========================================================
   02. MOBILE FORM STATES / DRAG
========================================================= */

.mobile-form.dragging {
    transition: none !important;
}

/* 🔥 HANDLE (sichtbarer Griff links) */
.mobile-form::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 80px;
    border-radius: 8px 0 0 8px;
    cursor: grab;
    z-index: 10000;

    left: -40px;
    width: 40px;
    background: rgba(0,0,0,0.2);
}



/* =========================================================
   03. OVERLAY / MOBILE FORM ID
========================================================= */

#formOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
     pointer-events: none; /* 🔥 wichtig für Drag */
}


#mobileForm {
    width: unset!important;
}



.mobile-form * {
    box-sizing: border-box;
}



.mobile-form .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mobile-form .btn-group button {
    flex: 1 1 calc(33% - 6px);
}

.mobile-form {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
    text-align: center;
}

.mobile-form .form-actions {
    display: flex;
    gap: 10px;
}

.mobile-form .form-actions button {
    flex: 1;
}



/* =========================================================
   04. RANGE WRAPPER / TRACK / BLOCKED AREAS
========================================================= */

.range-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
}

/* 🔵 Track */
.range-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 8px;
    transform: translateY(-50%);
    background: #ddd;
    border-radius: var(--radius-pill);
    z-index: 1;
}


.blocked-slot {
    position: absolute;
    height: 8px;
    background: rgba(255, 0, 0, 0.5);
    border-radius: var(--radius-md);
}

/* 🟢 Auswahlbereich */
#rangeHighlight {
    position: absolute;
    height: 100%;
    background: var(--c-success);
    border-radius: var(--radius-pill);
    z-index: 2;
}

/* 🔴 Slider selbst */
.range-slider {
    position: absolute;
    width: 100%;
    height: 40px;
    top: 0;
    left: 0;

    background: none;
    pointer-events: none; /* wichtig! */
    z-index: 3;
}

/* 👉 Nur die Thumbs klickbar machen */
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;

    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 3px solid #fff;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

.range-slider::-moz-range-thumb {
    pointer-events: auto;

    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 3px solid #fff;
    cursor: pointer;
}




/* =========================================================
   05. PUFFER-SLIDER / UMGANG-FORM BASIS
========================================================= */

#pufferVorSlider, #pufferNachSlider {
    background-color: lightgray;
}
.umgang-form {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-left: 35px!important;
}

.form-section {
    width: 100%;
    max-width: 100%;
    
    /*padding: 10px 10px 10px 50px;*/
    border-radius: var(--radius-lg);
}

.context-box {
    font-size: 14px;
}

#previewHeadMain {
/* font-weight: 600; */
font-size: large;
border-bottom: 1px solid lightgray;
margin-bottom: 20px;
color: rgb(85, 85, 85);
}

#previewSub {
    font-size: 12px;
    color: #666;
}

/* RANGE */
.range-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 6px;
}

/* PUFFER */
.puffer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* TYP */




/* =========================================================
   06. PERSONEN-GRID / PERSONEN-CHIPS
========================================================= */

/* PERSONEN */
.personen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
}

.personen-grid * {
    max-width: 100%;
}

.personen-grid {
    width: 100%;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}





/* =========================================================
   07. FORM ACTIONS / SAVE / CANCEL BASIS
========================================================= */

/* ACTIONS */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-actions button {
    width: 100%;
}

.save-btn,
.cancel-btn {
    width: 100%;
}



.block {
    margin-bottom: 15px;
}

.btn-group button {
    padding: 12px;
    margin: 5px;
    border-radius: var(--radius-lg);
    border: none;
    background: #eee;
    font-size: 16px;
}

.btn-group button.active {
    background: var(--c-primary);
    color: #fff;
}



.save-btn {
    width:100%;
    padding:15px;
    background:var(--c-primary);
    color:#fff;
    border:none;
    border-radius: var(--radius-lg);
    font-size:16px;
}



/* =========================================================
   08. KALENDER-SLOTS FREI / BELEGT
========================================================= */

/* FREIE SLOTS */
.slot-frei {
    background: #e8ffe8;
    border-radius: var(--radius-md);
    padding: 6px;
    margin-bottom: 6px;
    min-height: 60px;
    cursor: pointer;

    font-size: 12px;
    font-weight: 400;
    color: var(--c-success-dark);
}


.slot-frei b {
    font-weight:500;
    font-size:12px;
}

.slot-frei small {
    font-size:11px;
    opacity:0.6;
}

/* BELEGTE SLOTS */
.slot-termin {
    background: #eef6ff;
    border: 1px solid #5aa9ff;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    overflow: hidden;
    cursor: pointer;
}

.cancel-btn {
    flex:1;
    padding:12px;
    background:#eee;
    border:none;
    border-radius: var(--radius-md);
    font-size:14px;
    cursor:pointer;
}

.cancel-btn:hover {
    background:#ddd;
}




/* =========================================================
   09. RAUM-GRID / RAUM-SPALTEN
========================================================= */

/* =========================
   🔵 RAUM-GRID (MOBILE FIRST)
========================= */

.raum-grid {
    position: relative; /* 🔥 wichtig für ::after */

    display: flex;
    flex-wrap: nowrap;

    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 10px;

    -webkit-overflow-scrolling: touch;
}

/* 🔥 Scroll-Hinweis */
.raum-grid::after {
    content: '→';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
    font-size: 18px;
    pointer-events: none;
}


/* =========================
   🔵 RAUM-SPALTEN
========================= */

.raum-spalte {
flex: 0 0 100%;
width: 100%;
max-width: 100%;

    min-height: 520px;

    position: relative;
    background: #fff;

    overflow: hidden;
    box-sizing: border-box;
}


/* =========================
   🔵 HEADER
========================= */

.raum-header {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 8px;

    background: #f5f7fa;
    border: 1px solid #d8dee8;
    border-radius: var(--radius-md);

    text-align: center;

    height: 30px;
    margin-bottom: 5px;

    box-sizing: border-box;
}


/* =========================
   🔵 SLOT-BASIS
========================= */

.raum-spalte > .slot-frei,
.raum-spalte > .slot-termin {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
}

.raum-spalte small,
.raum-spalte b {
    word-break: break-word;
}

.slot {
    position: absolute;
    left: 4px;
    right: 4px;

    border-radius: var(--radius-md);
    font-size: 12px;
    padding: 4px;

    box-sizing: border-box;
}


/* =========================
   🔵 SLOT STATES
========================= */

.slot-termin {
    background: #b9dcff;
}

.live-slot {
    font-size: 12px;
    padding: 1px;
    pointer-events: none;
    color: #666;

    border: 1px solid rgba(85,150,220,0.8);
    border-radius: var(--radius-md);
}

.slot-frei:hover {
    background: #caffca !important;
}

.slot-termin:hover {
    background: #d0e9ff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slot-termin.disabled {
    background: #f1f1f1;
    border: 1px solid #ccc;
    opacity: 0.6;
    cursor: not-allowed;
}

.slot-termin.disabled:hover {
    background: #f1f1f1;
    box-shadow: none;
}


/* =========================
   🔴 DESKTOP (GRID MODE)
========================= */

@media (min-width: 900px) {

    .raum-grid {
        display: grid;
        grid-template-columns: repeat(var(--raum-count), 1fr);

        overflow: visible;
    }

    .raum-spalte {
        flex: unset;
        width: auto;
        max-width: unset;
    }

    .raum-grid::after {
        display: none; /* Pfeil weg */
    }
}


/* =========================
   🔵 OPTIONAL: SCROLLBAR
========================= */

.raum-grid::-webkit-scrollbar {
    height: 6px;
}

.raum-grid::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-xs);
}

/* =========================================================
   10. FILTER-BAR
========================================================= */

/* 🔥 FILTER BAR */
.filter-bar {
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* einzelne Elemente */
.filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

/* Labels */
.filter-item label {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
}

/* Selects */
.filter-item select {
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid #d8dee8;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover / Fokus */
.filter-item select:hover {
    border-color: var(--c-primary);
}

.filter-item select:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
}

/* Button */
.filter-btn {
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    border: none;
    background: linear-gradient(135deg, var(--c-primary), #0056b3);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.filter-group {
    background: #f8fafc;
    padding: 12px;
    border-radius: var(--radius-xl);
    border: 1px solid #e3e8ef;
}




/* =========================================================
   11. RANGE LABELS / RANGE DURATION
========================================================= */

.range-labels {
    position: relative;
    width: 100%;
    height: 20px;
    margin-top: 8px;
    font-size: 11px;
}

.range-labels span {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}


.range-duration {
    position: relative;
    width: 100%;
    height: 20px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.range-duration span {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* 🔴 Blockierte Bereiche */
#rangeBlocked {
    position: absolute;
    height: 100%;
    width: 100%;
    pointer-events: none;
}




.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.form-actions .btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}

/* Farben */
.btn-save {
    background: var(--c-success);
    color: #fff;
}

.btn-cancel {
    background: #ccc;
    color: #333;
}

.btn-delete {
    background: var(--c-danger);
    color: #fff;
}

/* Hover */
.btn:hover {
    opacity: 0.9;
}




/* =========================================================
   12. RHYTHMUS BUTTONS / CUSTOM FIELDS
========================================================= */

/* 🔵 RHYTHMUS BUTTONS */

.rhythmus-buttons {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:5px;
}

.rh-btn {
    padding:6px 10px;
    border:1px solid #ddd;
    border-radius: var(--radius-lg);
    background:#f5f5f5;
    cursor:pointer;
    font-size:13px;
    transition:all 0.3s ease;
    gap: 8px;
}

.rh-btn:hover {
    background:#e0e0e0;
}

.rh-btn.active {
    background:var(--c-accent);
    color:#fff;
    border-color:var(--c-accent);
}

/* 🔵 Zusatzfelder */

#rhythmus_custom_fields,
#rhythmus_multi_fields {
    background:#f9fafb;
    padding:10px;
    border-radius: var(--radius-md);
    margin-top:8px;
}



/* =========================================================
   13. TIMELINE EVENTS / BERICHTE / ELTERN
========================================================= */

.timeline-event {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

/* 📝 Kurzbericht */
.timeline-event.bericht {
    
}

/* 📄 Langbericht */
.timeline-event.bericht-lang {
   
}

/* 👥 Elterngespräch */
.timeline-event.eltern {

background-color: antiquewhite;
padding: 3%;
text-align: center;
font-size: larger;
border-radius: var(--radius-md);
   
}

.termin-core {
    color: var(--c-success-dark);
    font-weight: 600;
}




/* =========================================================
   14. FORM-GRID / CHIP STATES / WARNBOX
========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin:0px 20px;
}







textarea {
    width:100%;
    min-height:80px;
    padding:10px;
    border-radius: var(--radius-md);
    border:1px solid #ddd;
}

.warn-box {
    background:#fff;
    border:1px solid var(--c-danger);
    
    border-radius: var(--radius-lg);
    padding:12px;
    
    margin: 20px 0!important;
}

.warn-header {
    font-weight:600;
    margin-bottom:8px;
}

/* GRID */
.warn-grid {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

/* CHIPS */
.warn-chip {
    padding:6px 10px;
    border-radius:20px;
    font-size:13px;
    font-weight:500;
}

/* RISIKOSTUFEN */
.warn-chip.kritisch {
    background:#ffebee;
    color:var(--c-danger-dark);
}

.warn-chip.hoch {
    background:#fff3e0;
    color:#ef6c00;
}

.warn-chip.mittel {
    background:#e3f2fd;
    color:var(--c-primary-dark);
}

/* TEXTBLOCK */
.warn-text {
    margin-top:10px;
    padding:8px;
    background:#fafafa;
    border-radius: var(--radius-md);
    font-size:13px;
    line-height:1.4;
}




/* =========================================================
   15. TIMELINE MARKER / TODAY / DOTS
========================================================= */

.today-marker {
    position:relative;
    margin:15px 0 10px 0;
    text-align:center;
}

.today-marker::before {
    content:'';
    position:absolute;
    top:50%;
    left:0;
    right:0;
    height:2px;
    background:var(--c-primary);
    z-index:0;
}

.today-marker span {
    position:relative;
    background:#fff;
    padding:2px 10px;
    font-size:12px;
    font-weight:600;
    color:var(--c-primary);
    z-index:1;
}


.timeline-dot {
    position:absolute;
    left: 9px;
    margin-left: -5px;
    transform: none;
}

/* 🔥 PULS-EFFEKT */
.timeline-dot.pulse {
    animation:pulseColor 1.2s infinite;
}

@keyframes pulseColor {
    0% { opacity:1; }
    50% { opacity:0.4; }
    100% { opacity:1; }
}




/* =========================================================
   16. TIMELINE BASIS / TRACK / DAY BOX
========================================================= */

.timeline-day {
    margin: 6px 0 10px 0;
}

.timeline-track {
    position: relative;
    height: 30px;
    border:1px solid lightgray;
    border-radius: var(--radius-sm);
    overflow: visible !important;

}

.timeline-track-plan {
    position: relative;
    height: 30px;
    border: 1px solid lightgrey;
    border-radius: var(--radius-sm);
    overflow: visible !important;
}

.timeline-slot {
    position: absolute;
    top: 0;
    bottom: 0;
    background: #e3f2fd;
    border-radius: var(--radius-sm);
}

.timeline-core {
    position: absolute;
    top: 0;
    bottom: 0;
    color: #fff;
    font-size: 11px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius: var(--radius-xs);
    white-space: nowrap;
}

.timeline-day-box {
    background: #fff;
    border:1px dashed #ccc;
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    margin-bottom: 12px;
    margin-left: 10px;
    position:relative;
    flex-shrink: unset!important;
}

.timeline-day-box:hover {
    border-color: #90caf9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.day-focus-pulse { animation: dayFocusPulse 3.2s ease forwards; }
@keyframes dayFocusPulse {
    0%   { box-shadow: 0 0 0 3px rgba(76,175,80,0.45), 0 6px 28px rgba(76,175,80,0.22); }
    55%  { box-shadow: 0 0 0 3px rgba(76,175,80,0.45), 0 6px 28px rgba(76,175,80,0.22); }
    100% { box-shadow: none; }
}

.timeline-day-box.overdue {
    border-left: 4px solid var(--c-danger);
}



.timeline-day-box.done {
    border-left: 4px solid var(--c-success);
    border: 1px lightgray solid;
}

.timeline-day-box.offen {
   
}


.timeline-day-box.info {
    border-left:4px solid var(--c-primary);
    background-color: aliceblue;
}

.timeline-day-box.neutral {
    border-left:4px solid #9e9e9e;
    background-color: cornsilk;
}

.edit-btn {
    position:absolute;
    top:8px;
    right:8px;

    font-size:13px;
    text-decoration:none;

    background:rgba(0,0,0,0.05);
    padding:4px 6px;
    border-radius: var(--radius-sm);

    opacity:0.6;
    transition:all 0.2s ease;
}

.edit-btn:hover {
    opacity:1;
    background:var(--c-warning);
    color:#fff;
}


.timeline-day-box.vorschlag {
    display: none;
}
.timeline-wrapper {
    position: relative;
    padding-left: 15px;
}

/* 🔥 DIE APPLE-LINIE */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px;   /* 🔥 DAS IST JETZT DER FIXE ANKER */
    width: 2px;
    background: linear-gradient(
        to bottom,
        #e0e0e0,
        #cfcfcf,
        #e0e0e0
    );

    border-radius: var(--radius-xs);
}





/* =========================================================
   21. TIMELINE HOURS / QUARTER GRID
========================================================= */

.timeline-hours {
    position: relative;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #666;
    margin-bottom: 4px;
    padding-left: 2px;
}

.timeline-hour {
    position: relative;
    flex: 1;
    text-align: left;
}


.timeline-hour.half {
    color: #aaa;
    font-size: 9px;
}



/* =========================================================
   17. TIMELINE INTERACTION STATES
========================================================= */

.timeline-core.is-editable:hover {
filter: brightness(0.82);
transition: all 0.15s ease;
}

.timeline-core.is-editable:active {
    transform: scale(0.97);
    filter: brightness(0.85);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.timeline-core.is-locked {
    cursor: default;
}

.timeline-core.is-editable {
    cursor: pointer;
}


.timeline-slot {
    position: absolute;
    top: 0;
    bottom: 0;
}





/* =========================================================
   18. TIMELINE PUFFER / CORE / LINKS
========================================================= */

.timeline-puffer {
    position: absolute;
    inset: 0;

    background:
        repeating-linear-gradient(
            45deg,
            #bbdefb,
            #bbdefb 6px,
            #e3f2fd 6px,
            #e3f2fd 12px
        );

    border: 1px solid #90caf9;
    border-radius: var(--radius-xs);
    z-index: 1;
}

.timeline-core {
    position: absolute;


    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    overflow: hidden;

    border-radius: var(--radius-xs);
    z-index: 2;
}

/* aktueller Termin */
.timeline-core.is-current {
    background: var(--c-primary);
    color: #fff;
}

/* andere Termine */
.timeline-core.is-other {
    background: #ff9a9a;
    color: #fff;
}

/* klickbarer Bereich */
.timeline-link {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: #fff;
    padding: 4px;
}

/* Meta-Infos */
.timeline-meta {
    font-size: 12px;
    padding: 2px;
    text-align: left;
    width: 100%;
}




/* =========================================================
   19. LIVE TIME MARKER
========================================================= */

.time-now-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: red;
    z-index: 50;
    pointer-events: none;
}

.time-now-marker::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
}

.time-now-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: red;
    z-index: 5;
}

/* 🔴 Punkt oben */
.time-now-marker::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -4px;
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
}

/* 🕒 Uhrzeit */
.time-now-label {
    position: absolute;
    top: 100%;              /* 👉 direkt unter Marker */
    left: 50%;
    transform: translateX(-50%);
    
    margin-top: 6px;        /* 👉 Abstand zum Pin */

    font-size: 12px;
    background: #fff;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
}

/* ⏱ blinkender Doppelpunkt */
.blink {
    opacity: 1;
    transition: opacity 0.3s;
}

.blink.off {
    opacity: 0;
}







/* =========================================================
   20. FALL-CARD BASIS / FALL DETAILS
========================================================= */

.fall-card {
    background:#fff;
    border:1px solid #eee;
    border-radius: var(--radius-xl);
    padding:16px;
    margin-bottom:20px;
}

/* HEADER */
.fall-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.fall-title {
    font-size:18px;
    font-weight:600;
}

.fall-sub {
    font-weight:400;
    color:#666;
}

.fall-actions {
    display:flex;
    gap:10px;
    align-items:center;
}

/* BUTTON */
.btn-ghost {
    padding:4px 8px;
    background:#f5f5f5;
    border-radius: var(--radius-sm);
    text-decoration:none;
    font-size:12px;
    color:#333;
}

/* SECTIONS */
.fall-section {
    padding:10px 0;
    border-top:1px solid #f0f0f0;
}

.subtle-block {
    color:#555;
}

/* LINES */
.line {
    display:flex;
    gap:10px;
    align-items:center;
    margin-bottom:6px;
}

.label {
    min-width:140px;
    color:#888;
    font-size:12px;
}

.value {
    font-weight:500;
}

.muted {
    color:#aaa;
}

/* LINKS */
.inline-link {
    margin-left:10px;
    font-size:12px;
    color:var(--c-primary);
    text-decoration:none;
}

.inline-link.primary {
    font-weight:600;
}

/* STATUS */
.success {
    color:var(--c-success);
}

/* RISIKO */
.risk {
    background:#fafafa;
    border-radius: var(--radius-lg);
    padding:12px;
}

.risk-title {
    font-weight:600;
    margin-bottom:6px;
}

.risk-items {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.risk-chip {
    padding:4px 8px;
    border-radius: var(--radius-sm);
    font-size:12px;
}

.risk-chip.high {
    background:#ffebee;
    color:var(--c-danger-dark);
}

.risk-chip.medium {
    background:#fff8e1;
    color:#f57c00;
}

.risk-text {
    margin-top:8px;
    font-size:13px;
    color:#444;
}
.timeline-hours {
    position: relative;
    display: flex;
    width: 100%;
    height: 22px;
    margin-bottom: 6px;
    border-bottom: 1px solid #e9e9e9;
}

.timeline-hour {
    position: relative;
    flex: 1;
    height: 100%;
    border-left: 1px solid #d6d6d6;
    box-sizing: border-box;
}

.timeline-hour:last-child {
    border-right: 1px solid #d6d6d6;
}

.timeline-hour-label {
    position: absolute;
    top: 0;
    left: 4px;
    font-size: 11px;
    line-height: 1;
    color: #666;
    white-space: nowrap;
}

/* gemeinsame Basis für 15/30/45 */
.timeline-quarter {
    position: absolute;
    bottom: 0;
    width: 1px;
    background: #cfcfcf;
    transform: translateX(-50%);
}

/* 15 Minuten */
.timeline-quarter.quarter-15 {
    left: 25%;
    height: 6px;
    background: #ddd;
}

/* 30 Minuten */
.timeline-quarter.quarter-30 {
    left: 50%;
    height: 10px;
    background: #bcbcbc;
    width: 1.5px;
}

/* 45 Minuten */
.timeline-quarter.quarter-45 {
    left: 75%;
    height: 6px;
    background: #ddd;
}



/* =========================================================
   22. TIMELINE FREE SLOTS / MULTI-RAUM
========================================================= */

.timeline-slot-free {
    background: white;
        
    border:1px dashed #90caf9;
    border-radius: var(--radius-xs);

    text-decoration:none;
    color:#0d47a1;

    transition:all 0.15s ease;

    z-index: 2;
position: absolute;
}

.timeline-slot-free:hover {
    background:#bbdefb;
    border-style:solid;
}

.slot-inner {
    font-size:11px;
    padding:3px;
    text-align:center;
    line-height:2;
}


.timeline-multi-raum {
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-top:6px;
}

.timeline-raum-row {
    display:flex;
    align-items:center;
    gap:10px;
}

.raum-label {
font-size: 12px;
color: #666;
text-align: left;
flex-shrink: 0;
}

.timeline-raum-row .timeline-day {
    flex:1;
}


.timeline-gap {
    position:relative;
    margin:6px 0;
    font-size:11px;
    color:#888;
    text-align:left;
    padding-left:6px;
}

.timeline-gap::before {
    content:'';
    position:absolute;
    left:-14px;
    top:50%;
    width:6px;
    height:1px;
    background:#ccc;
}


.timeline-insert {
    margin:4px 0 10px 6px;
}

.btn-insert {
    display:inline-block;
    padding:4px 8px;
    font-size:12px;
    background:var(--c-warning);
    color:#fff;
    border-radius: var(--radius-xs);
    text-decoration:none;
    transition:0.2s;
}

.btn-insert:hover {
    background:#f57c00;
}

.hidden-past {
    display: none;
}




/* =========================================================
   23. APPLE LIGHT FORM / INPUTS / PRIMARY BUTTON
========================================================= */

/* 🔥 Apple Light Form */

.mobile-form form {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Section */
.form-section {
    margin-bottom: 28px;
}

/* Section Label */
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px!important;
    margin-top: 20px;
}

/* Inputs */
.input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-lg);
    height: 42px;
    background: #fff;

    transition: all 0.2s ease;
}

.form-hinweise {
    margin:20px;
}

/* Focus */
.input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(0,122,255,0.15);
    outline: none;
}

/* Sub Bereich (z. B. neues Jugendamt) */
.sub-section {
/* margin-top: 10px; */
/* padding-left: 4px; */
border: 1px solid lightgrey;
border-radius: var(--radius-md);
padding: 20px;
margin: 10px 0px;
}


#personen {
    scroll-margin-top: 280px; /* anpassen je nach Header / Gefühl */
}



/* 🔥 Slider Block */

.slider-block {
    margin-top: 10px;

    width: 100%;
   
    margin-top: 10px;
    /* border: 1px solid #e0e0e0;
    border-radius: var(--radius-lg); */
    font-size: 14px;
    background: #fff;

    transition: all 0.2s ease;
}

/* Label oben */
.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}


.edit-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.edit-link:hover {
    opacity: 0.85;
     text-decoration: none;
}


/* =========================================================
   24. GLOBALER SLIDER / INPUT RANGE
========================================================= */

/* =========================================================
   🔵 GLOBALER EINHEITLICHER SLIDER
========================================================= */

.slider-start {
    z-index: 5;
}
/* aktiver Slider kommt nach oben */
.slider.active {
    z-index: 10 !important;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    
    border-radius: 20px;
    outline: none;
    
}

.slider::-webkit-slider-thumb {
    pointer-events: auto;
    position: relative;
    z-index: 5!important;
}

.slider::-moz-range-track {
    pointer-events: none;
}

.slider::-moz-range-thumb {
    pointer-events: auto;
    position: relative;
    z-index: 5!important;
}

.slider-container {
    position: relative;
}

.slider {
    position: absolute;
    width: 100%;
    pointer-events: none; /* 🔥 wichtig */
}

.slider.active {
    pointer-events: auto; /* 🔥 nur aktiver Slider klickbar */
    pointer-events: none; /* 🔥 wichtig */
    z-index: 3;
}

.slider-start {
    z-index: 1;
}

.slider-end {
    z-index: 2;
}

.slider-start {
    z-index: 5!important;
}

.slider-end {
    z-index: 4;
}

.slider::-webkit-slider-runnable-track {
    pointer-events: none;
}

.slider::-webkit-slider-runnable-track {
    height: 100%;
}


/* Track */
.slider::-webkit-slider-runnable-track {
    background: transparent !important;
    border: none;
}

.slider::-moz-range-track {
    background: transparent !important;
    border: none;
}

/* Thumb */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--c-accent); /* deine App-Farbe */
    border-radius: 50%;
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Firefox */
input[type="range"]::-moz-range-track {
    height: 8px;
    background: #e0e0e0;
    border-radius: 20px;
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--c-accent);
    border-radius: 50%;
    cursor: pointer;
}

/* 🔥 Slider Wrapper */
.slider-wrapper {
    position: relative;
    padding-top: 30px;
    margin: 20px 10px;
}


/* 🔥 Bubble */
.slider-bubble {
position: absolute;
transform: translateX(0); /* KEIN -50% mehr! */
min-width: 70px;
text-align: center;    
color: #fff;
position: absolute;
top: -15px;
background-color: var(--c-accent);
color: #fff;
padding: 8px 10px 4px 10px;
border-radius: var(--radius-md);
white-space: nowrap;
transition: left 0.5s ease-out;
color: #fff;
font-size: larger;
white-space: nowrap;
}





/* =========================================================
   25. TIME GRID / DAY SELECTOR / TIME INLINE
========================================================= */

.time-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-row {
    display: grid;
    grid-template-columns: 110px 1fr 20px 1fr;
    align-items: center;
    gap: 8px;
}

.time-row label {
    font-size: 13px;
    color: #6e6e73;
}

.day-selector {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.day-btn {
    padding: 6px 10px;
    border-radius: var(--radius-md);
    border: 1px solid #ddd;
    background: #f5f5f7;
    cursor: pointer;
    font-size: 12px;
}

.availability-row {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.day-selector {
    display:flex;
    gap:6px;
}

.day-btn {
    padding:6px 10px;
    border-radius: var(--radius-md);
    border:1px solid #ccc;
    cursor:pointer;
    font-size:12px;
    background:#f5f5f5;
    transition:all 0.2s;
}

.day-btn.active {
    background: var(--c-danger)!important;
    color: #fff;
   
}

.day-btn:hover {
    background: var(--c-danger);
    color: #fff;
}


.day-btn.has-slot {
    background: var(--c-accent);
    color: #fff;
}

.day-btn.has-slot:hover {
    background: var(--c-danger);
    color: #fff;
}


.time-inline {
    display:flex;
    align-items:center;
    gap:4px;
}

.time-inline input {
    width:90px;
    padding:4px;
}




/* =========================================================
   26. APPLE BUTTON / DAY BUTTON FINALISIERUNG
========================================================= */

/* 🔵 APPLE BUTTON */
.btn-apple {
    background: var(--c-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);

    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    box-shadow:
        0 2px 6px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.2);

    transition: all 0.15s ease;
}

.btn-apple:hover {
    transform: translateY(-1px);
    box-shadow:
        0 4px 10px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-apple:active {
    transform: translateY(0);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.2),
        inset 0 2px 4px rgba(0,0,0,0.2);
}


.time-inline input {
    width: 85px;

    padding: 6px 8px;

    border-radius: var(--radius-lg);
    border: 1px solid #d1d1d6;

    background: #fff;

    font-size: 13px;

    transition: all 0.15s ease;
}

.time-inline input:focus {
    outline: none;
    border-color: #0a84ff;
    box-shadow: 0 0 0 2px rgba(10,132,255,0.2);
}




/* =========================================================
   27. SLOT CHIPS / VORSCHLÄGE / TERMIN CARDS
========================================================= */

.slot-chip {
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-weight: 400;
    background:#f0f7ff;
    border-radius: var(--radius-md);
    border: 1px solid lightgrey;
    padding:6px 10px;
    font-size:small;

    margin:3px;
}

.slot-chip span {
    cursor:pointer;
    opacity:0.85;
}

.slot-chip span:hover {
    opacity:1;
}

.vorschlaege-box {
    margin-bottom: 20px;
}

.termin-vorschlag {
    border: 1px solid #ddd;
    border-radius: var(--radius-lg);
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
}

.termin-vorschlag .titel {
    font-weight: 600;
    font-size: 14px;
}

.termin-vorschlag .zeit {
    font-size: 13px;
    margin-top: 3px;
}

.reason-box {
    margin-top: 8px;
    font-size: 12px;
    color: #555;
}

.reason-line {
    margin-bottom: 3px;
}

/* 🔵 GRID */
.vorschlaege-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}


/* 🔵 CARD */
.termin-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 14px;
    border: 1px solid #e5e5e5;

    display: flex;
    flex-direction: column;
    gap: 8px;

    transition: all 0.2s ease;
}

.termin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}


/* 🔵 HEAD */
.termin-head {
font-size: 16px;
color: #565c63;
font-weight: 600;
}

.datum {
    font-size: 16px;
    font-weight: 600;
}


/* 🔵 ZEIT */
.termin-time {
    font-size: 18px;
    font-weight: 600;
    color: var(--c-primary);
}


/* 🔵 META */
.termin-meta {
    font-size: 12px;
    color: #777;
}


/* 🔵 REASONS */
.termin-reasons {
    font-size: 12px;
    color: #888;
    line-height: 1.8;
}


/* 🔵 BUTTON (Apple-Style) */

.termin-btn {
    margin-top: auto;
    display: block;
    text-align: center;
    padding: 8px;
    border-radius: 30px;
    background: #f4f4f4;
    color: var(--c-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.15s ease;
    }

.termin-btn:hover {
    transform: translateY(1px);
    color: var(--c-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,-0.25);
}

.raum-selector {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:6px;
    border-bottom: 1px dashed lightgray;
border-top: 1px dashed lightgray;
padding: 10px 0px;
}





/* =========================================================
   28. FORM ROWS / RHYTHMUS HEIGHT ALIGNMENT
========================================================= */

.form-row {
    display: flex;
    gap: 20px;
    align-items: stretch; /* 🔥 wichtig */
    flex-wrap: wrap;
}

.form-col {
    flex: 1;
    min-width: 220px;

    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 🔥 sorgt für gleiche Höhe */
}

.form-col input,
.rhythmus-buttons {
    height: 42px; /* 🔥 gleiche Höhe erzwingen */
    margin-left: 20px;
    margin-bottom: 30px;
}

.rhythmus-buttons {
    display: flex;
    gap: 6px;
    align-items: center; /* 🔥 vertikal sauber */
}

.rh-btn {
    height: 100%;
    display: flex;
    align-items: center;
}




/* =========================================================
   29. TIMELINE PLAN GRID / FREE SLOT LAYERS
========================================================= */

.timeline-hours-top {
    position:absolute;
    top:-18px;
    left:0;
    right:0;
    display:flex;
    justify-content:space-between;
    font-size:10px;
    color:#888;
    pointer-events:none;
}

.timeline-hour-top {
    transform:translateX(0%);
}




.timeline-slot-free {
    position:absolute;
    cursor:pointer;
}

/* 🔹 Basisfläche (sichtbar) */
.slot-inner {
    position:absolute;
    inset:0;
    background:rgba(76,175,80,0.15);
    border-radius: var(--radius-xs);
}

/* 🔹 Klick-/Hover-Layer */
.slot-click-layer {
    position:absolute;
    inset:0;

    border:1px solid rgba(76,175,80,0.6);
    border-radius: var(--radius-xs);

    transition: all 0.15s ease;
}

/* 🔹 Hover */
.timeline-slot-free:hover .slot-click-layer {
    background:rgba(76,175,80,0.25);
    transform: scale(1.02);
}





/* 🔵 klickbar */
.timeline-slot-free.is-clickable {
    cursor: pointer;
}

.timeline-slot-free.is-clickable:hover {
    background: rgba(76,175,80,0.2);
}

/* 🔴 disabled */
.timeline-slot-free.is-disabled {
    cursor: default;
    pointer-events: none; /* killt hover + klick */
    opacity: 0.5; /* optional für visuelles Feedback */
}

/* 🔹 Basis Slot */


/* =========================================================
   30. SLOT CORE / KONFLIKT / PUFFER / VERFÜGBARKEIT
========================================================= */

.slot-core {
    position: absolute;
    top: 0;
    bottom: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    font-weight: 600;
    text-decoration: none;

    border-radius: var(--radius-xs);
    transition: all 0.15s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 2px 4px;
}

/* 🟢 OK */
.slot-core--ok {
background: rgb(232,245,233);
border: 1px solid rgb(165,214,167);
color: #2e7d32;
border-radius: unset;
z-index: 500;
}

.slot-core--ok:hover {
    background: rgb(200,230,201);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    color: #1b5e20;
}

/* 🟡 Konflikt */
.slot-core--conflict {
background: rgba(250, 191, 16, 1);
border: 1px solid #ffc107;
color: #960000;
}

.slot-core--conflict:hover {
    background: rgba(255,193,7,1);
}

/* 🔒 optional: Konflikt weniger klickbar wirken lassen */
.slot-core--conflict {
/* cursor: not-allowed; */
/* opacity: 0.65; */
border: 1px #e7ad00 solid;
border-radius: unset;
z-index: 500;
height: 15px;
top: 6px;
}


/* 🌿 Puffer Basis */
.slot-puffer {
    position: absolute;
    top: 0;
    bottom: 0;

    z-index: 4;
    pointer-events: none;

    opacity: 0.9;
}

/* Seiten */
.slot-puffer--left {
    border-radius: 4px 0 0 4px;
}

.slot-puffer--right {
    border-radius: 0 4px 4px 0;
}

/* 🟢 OK */
.slot-puffer--ok {
    background: rgba(232,245,233,0.5);
}

/* 🟡 Konflikt */
.slot-puffer--conflict {
    background: rgba(255,193,7,0.50);
    
    z-index: 500;
height: 15px;
top: 6px;
}




.verf-bar {
    position: absolute;
    top: 4px;
    bottom: 4px;

    background: rgba(33,150,243,0.25);
    border: 1px solid rgba(33,150,243,0.7);

    border-radius: var(--radius-xs);
    z-index: 3;
}

.verf-label {
    position: absolute;
    top: 2px;
    left: 4px;

    font-size: 10px;
    color: #0d47a1;
    white-space: nowrap;
}

.timeline-label-inline {
    position:absolute;
    top:-18px;
    left:0;
    font-size:11px;
    color:#666;
    font-weight:500;
}

.timeline-track-plan {
    padding-top: 16px; /* 🔥 Platz für Label */
}


.raum-chip {
    width:26px;
    height:26px;
    border-radius: var(--radius-md);
    display:flex;
    align-items:center;
    justify-content:center;

    font-size:10px;
    font-weight:500;

    background:#eee;
    color:#666;
    border:1px solid #ccc;

    transition:all 0.2s ease;
}

.raum-chip.is-active {
    background:var(--c-primary);
    color:#fff;
    border:1px solid var(--c-primary);
    box-shadow:0 0 0 2px rgba(33,150,243,0.2);
}




/* =========================================================
   31. PERSON BLOCKS / REMOVE BUTTON / DAY STATES
========================================================= */




.person-block {
width: 100%;
padding: 12px 14px;
margin-top: 10px;
margin-bottom: 20px;
border: 1px solid #e0e0e0;
box-shadow: 0 0 100px rgba(210, 210, 210, 0.26) inset;
border-radius: var(--radius-lg);
font-size: 14px;
transition: all 0.2s ease;
position: relative;

}



.form-section {
    overflow: visible !important;
}

body {
    overflow-y: auto !important;
}

.remove-person-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;

    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    cursor: pointer;
    padding-top: 10px;
}

.form-desc {
    margin-left: 20px;
    margin-right: 20px;
    font-size: large;
}

/* Hover */
.remove-person-btn:hover {
    background: #ffebee;
    color: var(--c-danger);
}


.just-added {
    animation: highlightFade 1.2s ease;
}



.slot-list.empty {
    border: 2px dashed var(--c-danger);
    border-radius: var(--radius-lg);
    padding: 10px;
    margin-top: 6px;
    text-align: center;
    color: var(--c-danger);
    font-size: 13px;
    background: rgba(229,57,53,0.05);
}

.slot-list.empty::before {
    content: "Verfügbarkeit eingeben";
    opacity: 0.9;
}


.slot-list {
    margin-top: 8px;
    text-align: center;
}

.slot-placeholder-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f2f2f7;
    border-radius: var(--radius-pill);
    padding: 6px 10px;
    font-size: 12px;
    border: 1px dotted red;
    /* --t4-red: 3px; */
    }
/* ⚠️ PRÜFEN: Diese schließende Klammer wirkt überzählig. Originalzeile bleibt erhalten. */
}




/* =========================================================
   32. TIME-SLIDER FINAL LAYER
========================================================= */

/* 🔥 Container fix */
.time-slider {
    margin-top: 40px;
    width: 100%!important;
}

/* 🔥 verhindert Chaos */
.slider-container {
    position: relative;

    height: 30px;

}

/* 🔵 Track */
.slider-track {
    z-index: 1;
    
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 30px;
    background: #e0e0e0;
    border-radius: var(--radius-pill);
    transform: translateY(-50%);
}

/* 🔵 Aktiver Bereich */
.slider-range {
    z-index: 2;
    
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--c-accent);
    border-radius: var(--radius-xs);
    top: 50%;
    transform: translateY(-50%);
}

/* 🔥 Range Inputs sauber stapeln */
.slider {
    position: absolute;
    width: 100%;
    height: 30px;

    top: 50%;
    transform: translateY(-50%);  /* 🔥 DAS IST DER FIX */

    background: transparent !important;
    -webkit-appearance: none;
    z-index: 3;
}


.slider::-webkit-slider-runnable-track {
    background: transparent !important;
}

.slider::-moz-range-track {
    background: transparent !important;
}



.slider::-webkit-slider-thumb {
    transform: scale(1);
    transition: transform 0.1s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}


.slider::-moz-range-thumb {
    transform: scale(1);
    transition: transform 0.1s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.15);
}


.slider::-moz-range-thumb {
    position: relative;
    z-index: 10;
}

/* 🔥 Griffe */
.slider::-webkit-slider-thumb {
    pointer-events: all;
    box-shadow:
        0 0 0 8px rgba(0,0,0,0); /* unsichtbare Hitbox */
    width: 18px;
    height: 18px;
    background: var(--c-primary);
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
    border: none;
}

/* Firefox */
.slider::-moz-range-thumb {
    pointer-events: all;
    width: 18px;
    height: 18px;
    background: var(--c-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* 🔥 Label */
.time-label {
    margin-top: 6px;
    font-size: 13px;
    color: #444;
}

/* 🔥 GANZ WICHTIG – verhindert Button-Überlappung */
.availability-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* 🔥 Label über Griffen */
.slider-label {
    position: absolute;
    top: -30px;
    font-size: 12px;
    color: #000;
    transform: translateX(-50%);
    white-space: nowrap;
}




/* =========================================================
   33. PERSON HEADER / ROLLEN / DYNAMIK
========================================================= */

.person-header {
    text-align: center;
    font-size: x-large;
    width: 100%;
        display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    align-items: flex-start;
}

.person-title {
    display: flex;
    flex-direction: column;
    /* gap: 4px; */
    width: 100%;
}

.role-switch {
    margin-top: 2px;
}

.form-label {
font-size: x-large;
line-height: 1.1428571429;
font-weight: 400;
letter-spacing: .09em;
font-family: SF Pro Display,SF Pro Icons,Helvetica Neue,Helvetica,Arial,sans-serif;
text-align: center;
padding-bottom: 10px; 
border-bottom: 1px dotted lightgrey;
margin-bottom: 30px!important;
}



.role-chip.single, .role-fixed {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.15s ease;
        margin-bottom: 20px;
    width: 100%;
text-align: center;
margin-top: 20px;
background: #fff;
color: var(--c-accent);
}

/* 🟢 Fachkraft */
.role-chip.fachkraft {
background: #fff;
color: var(--c-accent);
margin-bottom: 20px;
width: 100%;
text-align: center;
}

/* 🟡 Helfer */
.role-chip.helfer {
border-color: var(--c-accent);
background: #fff;
color: var(--c-accent);
font-size: large;
    margin-bottom: 20px;
    width: 100%;
text-align: center;
}


.person-name {
    width: 100%;
}

.person-dynamik {
    margin-top: 4px;
    font-size: small;
    color: #666;
    line-height: 1.4;
}




/* =========================================================
   34. PERSON EDIT UX
========================================================= */

/* =========================================================
   🔥 PERSON EDIT UX (FINAL LAYER)
========================================================= */

/* EDIT BUTTON sauber positionieren */
.person-edit-toggle {
    position: absolute;
    top: 6px;
    right: 40px; /* neben X Button */
    z-index: 10;
}

.edit-person-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    cursor: pointer;

    transition: all 0.2s ease;
}

.edit-person-btn:hover {
    background: #e3f2fd;
    transform: scale(1.1);
}


/* =========================================================
   🔵 EDIT FORM VISUELL KLAR TRENNEN
========================================================= */

.person-edit-form {
    
    padding: 12px;
    margin-top: 30px!important;
margin-bottom: 30px;


    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, #f7f9fc, #eef3f8);

    border: 1px solid #dfe6ee;

    animation: fadeInEdit 0.2s ease;
}

@keyframes fadeInEdit {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   🔵 INPUTS IN EDIT MODE (ruhiger + klarer Fokus)
========================================================= */

.person-edit-form .input {
    background: #fff;
    border: 1px solid #d6dde6;

    font-size: 13px;
    padding: 8px 10px;

    border-radius: var(--radius-lg);

    transition: all 0.15s ease;
}

.person-edit-form .input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 2px rgba(33,150,243,0.15);
}


/* =========================================================
   🔵 TEXTAREA (Dynamiken = Fachkern)
========================================================= */

.person-edit-bemerkung {
    min-height: 90px;
    resize: vertical;

    font-size: 13px;
    line-height: 1.5;

    background: #fff;

    border-left: 3px solid var(--c-primary);
}


/* =========================================================
   🔵 PERSON HEADER OPTIMIERUNG
========================================================= */

.person-header {
    position: relative;
    margin-bottom: 20px;
}





/* =========================================================
   🔵 DYNAMIKEN (Anzeige)
========================================================= */

.person-dynamik {
margin-top: 20px;
font-size: 13px;
color: #374151;
/* background: #f1f5f9; */
padding: 8px 10px;
/* border-radius: var(--radius-md); */
/* border-left: 4px solid var(--c-primary); */
line-height: 1.4;
/* border-right: 4px solid var(--c-primary); */
border-top: 1px solid lightgray;
}

/* =========================================================
   🔵 GRID FEINJUSTIERUNG (Edit Bereich)
========================================================= */

.person-edit-form .form-grid {
    margin-bottom: 8px;
}


/* =========================================================
   🔵 MICRO UX
========================================================= */

/* Hover gesamter Block */
.person-block:hover {
    border-color: #cfd8e3;
}

/* leichte Hervorhebung wenn edit offen */
.person-block:has(.person-edit-form[style*="block"]) {
    border-color: var(--c-primary);
    box-shadow: 0 4px 14px rgba(33,150,243,0.15);
}






/* =====================================================
   🔵 ELTERN-SLIDER (isoliert)
   ===================================================== */

.eltern-slider-block {
    margin: 50px 20px;
}

.eltern-slider-wrapper {
    position: relative;
    width: 100%;
}



/* 🔵 BUBBLE */
#elternBubble {

    top: -45px;
    left: 0;
  
}

/* 🔵 OPTIONAL: Skala */
.eltern-slider-scale {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-top: 6px;
    color: #888;
}





/* =========================================================
   36. ELTERN- UND BERICHT-SLIDER / SCALES
========================================================= */

/* Raster für Elterngespräche */

.eltern-slider-wrapper {
    position: relative;
}



.slider-scale {
    margin-left: 9px;   /* halbe Thumb-Breite */
    display: flex;
    justify-content: space-between;
    font-size: small;
    margin-top: 12px;
    color: #666;
}


.slider-wrapper {
    position: relative;
    margin-top: 10px;
}

.slider {
    width: 100%;
}



.slider-label {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}


/* 🔵 Scope */
.bericht-slider .slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-sm);
    outline: none;

    background: #eee!important;
}

/* 🔵 Thumb */
.bericht-slider .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c-primary);
    cursor: pointer;
    margin-top: -6px;
    transition: 0.2s;
}

.bericht-slider .slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Firefox */
.bericht-slider .slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c-primary);
    cursor: pointer;
}

/* Bubble */



/* Wrapper */
.bericht-slider .slider-wrapper {
    position: relative;
    margin-top: 25px;
}

/* Disabled State */
.bericht-slider .slider:disabled {
    cursor: not-allowed;
}

/* Checkbox */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slot-chip.editing {
    background: #eaf3ff;
}

.chip-radio.active {
    background: var(--c-accent)!important;
    color:#fff;
}


.chip-title {
    
}

.chip-sub {
    font-size: 12px;
    opacity: 0.7;
}


.chip.disabled {
    
    pointer-events: none;
    
}

.chip-warning {
text-align: left;
width: 100%;
background-color: antiquewhite;
padding: 10px;
border-radius: var(--radius-md);
}

.chip-radio {
    display:inline-block;
    padding:10px 14px;
    margin:5px;
    border-radius:20px;
    background:#eee;
    cursor:pointer;
}


/* =========================================================
   51. SINGLE SELECT CHIPS / INPUT HIDDEN
========================================================= */

.chip-group.single-select {
    cursor: pointer;
}

.chip-group.single-select .chip input:checked + span,
.chip-group.single-select .chip input:checked {
    /* optional visuell verstärken */
}


.slider-scale {
    display: flex;
    justify-content: space-between;

    margin-top: 8px;

    padding-left: 10px;
    padding-right: 10px;

    font-size: 12px;
    color: #666;
}

.slider-scale span.active {
    color: var(--c-primary);
    font-weight: bold;
}

.dauer-hinweis {
    margin-top: 10px;
    margin-left: 20px;
    margin-right: 20px;
    font-size: 13px;
    line-height: 1.4;
    padding: 10px;
    border-radius: var(--radius-md);
    background: #f8f9fa;
    color: #333;
}

.dauer-hinweis.warn {
    background: #fff3cd;
    color: #856404;
}

.dauer-hinweis.risk {
    background: #f8d7da;
    color: #721c24;
}


.anzahl-scale {
    display: flex;
    justify-content: space-between;

    margin-top: 8px;

    padding-left: 10px;
    padding-right: 10px;

    font-size: 12px;
    color: #666;
}

.person-name-block {
    display: flex;
    flex-direction: column;
}

.person-name-main {
    font-weight: 600;
}

.person-phone {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}


.person-phone::before {
    content: '☎ ';
    opacity: 0.6;
}


.role-badge, .role-chip.fachkraft {
    font-size: large;
}


.slider-scale.bericht-scale.equal {
    display: flex;
    justify-content: space-between;

    margin-top: 8px;

    padding-left: 0px;
    padding-right: 20px;

    font-size: 12px;
    color: #666;
}





/* =========================================================
   37. INLINE-STYLE BLOCK – TECHNISCH PRÜFEN
========================================================= */

/* ⚠️ Hinweis: <style> ist nur in Inline-CSS gültig, nicht in einer externen .css-Datei. Originalzeile bleibt erhalten. */
.slider-wrapper {
    position: relative;
    padding-top: 34px;
}

/* 🔥 GRID exakt unter dem Slider */


/* =========================================================
   38. SLIDER GRID / ANZAHL / DAUER / KENNENLERNEN
========================================================= */

.slider-grid {
    position: absolute;
    top: 50%;
    left: 0px;
    right: 0px;
    height: 14px;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: repeat(50, 1fr);
    pointer-events: none;
    z-index: 1;
}

.grid-line {
    justify-self: center;
    width: 1px;
    height: 8px;
    background: #bbb;
}

.grid-line.major {
    height: 14px;
    width: 2px;
    background: #666;
}



#anzahlSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 3px solid #fff;
    margin-top: -6px;
    cursor: pointer;
}

#anzahlSlider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 3px solid #fff;
    cursor: pointer;
}



    /* 🔥 Dauer-Slider nutzt gleiche Technik, aber anderes Grid */
.slider-grid-dauer {
    position: absolute;
    top: 50%;
    left: 11px;
    right: 11px;
    height: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

/* 🔥 Linien exakt auf Slider-Position */
.slider-grid-dauer .grid-line {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
}



#dauerSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 3px solid #fff;
    margin-top: -6px;
    cursor: pointer;
}

#dauerSlider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 3px solid #fff;
    cursor: pointer;
}

.slider-grid-bericht {
    grid-template-columns: repeat(20, 1fr);
}



#elternSlider, #slider-kurz, #slider-lang, #kennenSlider, #anzahlSlider, #dauerSlider {
    -webkit-appearance: none;
    height: 30px;
    padding-top: 6px;
    position: relative;
    z-index: 2;
    border: 1px solid lightgray;
}


#slider-kurz::-webkit-slider-thumb, #elternSlider::-webkit-slider-thumb  {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 3px solid #fff;
    margin-top: -6px;
    cursor: pointer;
}

#slider-kurz::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 3px solid #fff;
    cursor: pointer;
}



/* 🔵 TRACK (Firefox) */
#slider-lang::-moz-range-track {
    height: 10px;
    background: #ddd;
    border-radius: var(--radius-pill);
}

/* 🔵 THUMB (Chrome + Safari) */
#slider-lang::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 3px solid #fff;
    margin-top: -6px; /* zentriert den Thumb */
    cursor: pointer;
}

/* 🔵 THUMB (Firefox) */
#slider-lang::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 3px solid #fff;
    cursor: pointer;
}

.bericht-scale {
    padding-left: unset!important;
}

/* 🔵 GRID: 0–5 */
.slider-grid-kennen {
grid-template-columns: repeat(6, 1fr);
left: -50px;
right: -48px;
}



/* 🔵 THUMB */
#kennenSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 3px solid #fff;
    margin-top: -6px;
    cursor: pointer;
}

#kennenSlider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 3px solid #fff;
    cursor: pointer;
}

/* 🔵 SCALE sauber ausrichten */
.slider-scale.equal {
    padding-left: unset!important;
}

.kl-scale {
margin-left: 20px;
position: relative;
width: calc(100% - 30px);
top: -10px;
right: 20px;
left: 0px;
}


#eg-scale {
margin-left: 0px;
margin-right: 0px;
top: 10px;
position: relative;
right: 0px;
width: calc(100% + 8px);
}

.form-actions {
    display: flex;
    gap: 10px;
   
}

.form-actions button {
    flex: 1;
}

/* Primary bleibt dein Style */
.btn-primary {
    background: var(--c-primary);
    color: #fff;
    padding: 14px;
    border-radius: var(--radius-xl);
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* Secondary = gleiche Größe, aber visuell zurückhaltend */
.btn-secondary {
    background: #eee;
    color: #333;
    padding: 14px;
    border-radius: var(--radius-xl);
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* Hover (optional aber sinnvoll) */
.btn-secondary:hover {
    background: #ddd;
}




/* =========================================================
   39. BERICHTE / TERMINVORSCHLAG HEADER / WOCHENTAGE
========================================================= */

.terminvorschlag_header  {
border-bottom: 1px dotted lightgray;
padding: 5px 10px;
border-radius: 8px 8px 0px 0px;
}

.bericht-lang {
background-color: antiquewhite;
padding: 3%;
text-align: center;
font-size: larger;
border-radius: var(--radius-md);
}

.bericht-kurz {
background-color: rgb(225, 250, 215);
padding: 3%;
text-align: center;
font-size: larger;
border-radius: var(--radius-md);
}

.wochentage-chips {
    display: flex;
    gap: 4px;
}

.chip-tag {
    padding: 4px 6px;
    font-size: 11px;
    border-radius: var(--radius-md);
    background: #fff;
    color: #818181;
    min-width: 24px;
    text-align: center;
}

.chip-tag.active {
   
    color: #fff;
    outline: 1px solid rgb(232, 245, 233)!important;
    font-weight: 600!important;
    background: rgb(232, 245, 233);
    color: rgb(46, 125, 50);
}

.chip-tag:hover {
   
    background: rgba(0, 0, 0, 0.03);
}

}

.eltern {
background-color: rgb(243, 249, 198);
padding: 3%;
text-align: center;
font-size: larger;
border-radius: var(--radius-md);
}


.kennenlernen {
background-color: rgb(243, 249, 198);
padding: 3%;
text-align: center;
font-size: larger;
border-radius: var(--radius-md);
}




/* =========================================================
   40. SLOT INLINE EDITOR
========================================================= */

.slot-inline-editor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    background: #fff;
    border-top: 1px solid #ddd;

    padding: 8px;
    font-size: 12px;

    z-index: 10;
}

.slot-inline-editor {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;

    background: rgba(255,255,255,0.98);
    padding: 8px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    z-index: 20;
}

.inline-row {
    display: flex;
    gap: 6px;
}

.inline-btn {
    flex: 1;
    padding: 6px;
    border-radius: var(--radius-sm);
    border: 1px solid #ccc;
    background: #fff;
    font-size: 12px;
}




/* =========================================================
   41. HAUPTLAYOUT KALENDER / FORM SPALTEN
========================================================= */



.kalender-spalte,
.form-spalte {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.umgang-form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;

    overflow-y: auto;
    position: relative; /* 🔥 wichtig für sticky Kontext */
}

.umgang-form {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.form-spalte {
    overflow: visible; /* 🔥 wichtig */
}



.umgang-form-wrapper {
    overflow: visible !important;
}

/* =========================================================
   42. TYP-AUSWAHL / RESPONSIVE
========================================================= */

.typ-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

/* Tablet */
@media (max-width: 900px) {
    .typ-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 500px) {
    .typ-grid {
        grid-template-columns: 1fr;
    }
}

.typ-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-lg);
    border: 1px solid #ddd;
    background: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: all 0.2s ease;
}

.typ-btn .icon {
    font-size: 18px;
}

.typ-btn .label {
    font-size: 12px;
}


.typ-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid #ddd;

    background: #fff;
    cursor: pointer;

    transition: all 0.2s ease;
}

/* Hover */
.typ-btn:hover {
    background: #f5f7fa;
    transform: translateY(-1px);
}

/* Icon */
.typ-btn .icon {
    font-size: 22px;
}

/* Label */
.typ-btn .label {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.7;
}

/* Active Zustand */
.typ-btn.active {
    background: #e3f2fd;
   
}

/* Active Text */
.typ-btn.active .label {
    opacity: 1;
    font-weight: 600;
}

.typ-btn[data-val="begleitet"].active {
    background: #e3f2fd;
}

.typ-btn[data-val="beschuetzt"].active {
    background: #fff3cd;
    border-color: #ffc107;
}

.typ-btn[data-val="uebergabe"].active {
    background: #e8f5e9;
    border-color: var(--c-success);
}



/* =========================================================
   43. RAUMAUSWAHL
========================================================= */

.raum-select {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.raum-btn {
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    transition: all 0.2s ease;
}

.raum-btn:hover {
    background: #f0f4f8;
}

.raum-btn.active {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color:#fff;
}



/* =========================================================
   44. PERSON-CHIP LAYOUT
========================================================= */

/* PERSON CHIP LAYOUT */
.chip.personen {
    display: flex;
    flex-direction: column;
    align-items: center;   /* horizontal zentriert */
    justify-content: center;
    text-align: center;
    padding: 8px 10px;
}

/* NAME */
.person-name {
/* font-weight: 600; */
font-size: medium;
line-height: 1.2;
}

/* ROLLE */
.chip.personen{
    font-size: 11px;
    opacity: 0.7;
    
}


.person-role {
font-size: unset;
opacity: 0.8;
margin-top: 3px;
padding: 4px 16px;
border-radius: var(--radius-md);
background: #fff;
color: var(--c-accent);
}



/* =========================================================
   45. DRAG HANDLE EDGE
========================================================= */

/* =========================
   🔥 DRAG HANDLE (EDGE)
========================= */

.drag-handle {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;

    width: 40px; /* gleiche Zone wie im JS */

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: grab;

    z-index: 20;

    /* subtiler Verlauf */
    background: var(--t4-primary-bg-subtle);
}

/* 🔵 Griff-Striche (Apple-Style) */
.drag-handle::after {
    content: '';
    width: 4px;
    height: 40px;

    border-radius: var(--radius-xs);

    background: rgba(0,0,0,0.2);
}

/* 🔥 Hover Feedback */
.drag-handle:hover {
    background: var(--t4-primary-bg-subtle);
}

/* 🔥 Beim Ziehen stärker */
.mobile-form.dragging .drag-handle {
    background: var(--t4-primary-bg-subtle);
}



/* =========================================================
   46. VERFÜGBARKEITS-BAR / MARQUEE
========================================================= */

.verf-bar:hover{

 background-color: color(srgb 0.645 0.8102 0.97)!important;
}


.verf-bar {
    overflow: hidden;
    position: relative;
}

/* 🔥 Text-Wrapper */
.verf-bar-text {
    display: inline-block;
    white-space: nowrap;
}

/* 🔥 Nur bei Bedarf scrollen */
.verf-bar-text.marquee {
    animation: verfMarquee 8s linear infinite;
}

@keyframes verfMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* 🔥 Mobile schneller */
@media (max-width: 768px) {
    .verf-bar-text.marquee {
        animation-duration: 5s;
    }
}






/* =========================================================
   47. FALL-CARD FINAL LAYER
========================================================= */

/* 🔲 CARD */
.fall-card {
background: #fff;
border-radius: var(--radius-md);
padding: 16px 18px;
/* box-shadow: 0 4px 20px rgba(0,0,0,0.04); */
border: 1px solid #dedede;
}

/* 🔹 HEADER LAYOUT */
.fall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 🔹 LEFT */
.fall-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 🔹 TITLE */
.fall-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.2px;
}

/* 🔹 SELECT */
.fall-select {
    appearance: none;
    background: #f5f5f7;
    border: none;
    border-radius: var(--radius-lg);
    padding: 8px 12px;
    font-size: 14px;
    color: #111;
    outline: none;
    min-width: 200px;
}

/* 🔹 RIGHT */
.fall-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 🔹 ORG */
.fall-org {
    font-size: 13px;
    color: #666;
    background: #f5f5f7;
    padding: 6px 10px;
    border-radius: var(--radius-lg);
}

/* 🔹 BUTTON (Apple Style) */
.btn-apple {
background: var(--c-accent);
color: #fff;
border-radius: var(--radius-md);
padding: 8px 14px;
font-size: 14px;
text-decoration: none;
font-weight: 500;
transition: all 0.2s ease;
}

.btn-apple:hover {
    background: #0066e0;
    color: #fff;
}

/* 📱 MOBILE */
@media (max-width: 768px) {

    .fall-header {
        flex-direction: column;
        align-items: stretch;
    }

    .fall-header-right {
        justify-content: space-between;
        width: 100%;
    }

    .fall-select {
        width: 100%;
    }
}



.form-actions-sticky {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

    justify-content: flex-end; /* 🔥 ALLES NACH RECHTS */

    position: sticky;
    bottom: 0;

    background: rgba(255, 255, 255, 0.74);
    padding: 10px;
    border-top: 1px solid #ddd;
    z-index: 100;
}

/* 🔵 Standard: nebeneinander */
.form-actions-sticky .btn {
    flex: 0 1 auto;   /* 🔥 KEIN Wachstum */
    white-space: nowrap;
}

/* 🔴 Mobile: untereinander */
@media (max-width: 480px) {
    .form-actions-sticky {
        flex-direction: column;
    }

    .form-actions-sticky .btn {
        width: 100%;
    }
}

/* Hier kannst du visuelle Hierarchie steuern */
.btn.primary {
    background: var(--c-accent)!important;
    color: #fff;
}

.btn.primary:hover {
    background: var(--c-accent);
    color: #fff;
}

.btn.secondary {
    background: #eee;
    color: #333;
}

.btn.secondary:hover {
    background: #eee;
    color: darkred;
}

.btn.danger {
background: #fff;
color: #060606;
border: 1px solid lightgray;
border-radius: var(--radius-md);
}


.btn.danger:hover {
    background: #fff;
    color: darkred;
    
}

.btn:hover {
    border-color: rgba(0, 0, 0, 0.24)!important;
}




#nextStep {
background: var(--c-accent)!important;
color: #fff;
border-radius: var(--radius-md);
gap: 10px;
margin: 10px;
}


#prevStep {
border-radius: var(--radius-md);
gap: 10px;
margin: 10px;
}
/* =========================================================
   48. DAY BLOCK / TAGESANSICHT
========================================================= */

.day-block {
    
    margin-bottom: 10px;
}


/*.day-block.week-block {
border-left: 1px solid #e5e7eb;
border-bottom: 1px solid #e5e7eb;
border-right: 1px solid #e5e7eb;
border-radius: 0px 0px 8px 8px;
padding: 10px;
background-color: #fff;
}*/


/*.weekday-switch-wrapper,*/
.kalender-view-wrap {
    border-top: 1px solid #eee;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(20,40,60,.04),0 6px 20px rgba(20,40,60,.05);

}

.day-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.time-header {
position: relative;
height: 10px;
/* border-bottom: 1px solid #ddd; */
margin-bottom: 5px;
margin-left: 15px;
margin-right: 15px;
}

.time-mark {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 10px;
    color: #666;
}

.raeume {
    position: relative;
}


.termin {
    position: absolute;
    top: 5px;
    height: 50px;
    background: #d4edda;
    
    font-size: 11px;
    padding: 4px;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
}

.termin.conflict {
    background: #ff6b6b;
    color: #fff;
}

.slot.free {
    position: absolute;
    top: 5px;
    height: 50px;
    background: rgba(22, 22, 22, 0.02);
    
    border-radius: 0px;
    cursor: pointer;
    box-sizing: border-box;
}

.slot.free:hover {
    background: rgba(33, 150, 243, 0.12);
    border-color: rgba(33, 150, 243, 0.35);
}

.slotkalenderpuffer {
    border-radius: unset!important;
}

.sticky-header {
   
    padding: 10px 0;
font-size: larger;
text-align: center;
color: var(--footer-text-color);

}

.slot.free {
    position: absolute;
    cursor: pointer;
}

/* 🔥 HOVER-EFFEKT */
.slot.free:hover {
    background: rgba(33,150,243,0.08);
}

/* 🔥 TOOLTIP */
.slot.free::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);

    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transition: all 0.15s ease;
}

/* 🔥 EINBLENDEN */
.slot.free:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}




/* =========================================================
   49. MINI-KALENDER / INFOBOXEN
========================================================= */

.mini-calendar {
    max-width: 560px;
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    font-size: 13px;
}

.mini-header {
    text-align: center;
    font-weight: 600;
    margin-bottom: 8px;
}



.mini-day-head {
    text-align: center;
    font-size: 11px;
    opacity: 0.6;
}

.mini-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.mini-day:hover {
    background: #e3f2fd;
}

.mini-day.today {
    
    color: var(--c-primary);
    font-weight: bold;
}

.mini-day.other-month {
    opacity: 0.3;
}

.mini-header-nav {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:8px;
}

.mini-header-title {
    font-weight:600;
}

.mini-nav {
    padding:4px 8px;
    border-radius: var(--radius-sm);
    text-decoration:none;
    color:#333;
    background:#f5f5f5;
    transition:0.2s;
}

.mini-nav:hover {
    background:#e3f2fd;
}

.mini-day.active {
    border-radius: var(--radius-xs);  
    font-weight: 600;
}

.mini-day.today.active {
    background: #0d47a1; /* etwas dunkler */
}

.info-box-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    
}

/* Desktop → rechts neben Kalender */
@media (min-width: 900px) {
    .mini-calendar + .info-box-wrapper {
        margin-left: 20px;
    }
}

.info-box {
    background: #fff;
   
    padding: 16px;
    
}

.info-box h3 {
    margin-bottom: 10px;
}

.info-termin {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-time {
    font-weight: none;
    min-width: 50px;
}

.info-title {
    font-weight: 600;
}

.info-personen {
    font-size: 13px;
    opacity: 0.85;
}

.info-empty {
    opacity: 0.6;
    font-style: italic;
}


.kontakt-icon {
    cursor: pointer;
    margin-left: 4px;
}

.kontakt-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}

.mini-calendar {
    flex: 0 0 300px;
}

.info-box-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px; 
    flex: 1;
}




/* =========================================================
   50. RAUM-SLOTS / RESPONSIVE HEIGHT
========================================================= */

.raum-slots {
    position: relative;
    height: auto; /* 🔥 wichtig */
    min-height: 600px; /* fallback */
}

.raum-slots {
    position: relative;
    height: auto;
}

@media (max-width: 768px) {
    .raum-slots {
        height: var(--day-height);
    }
}


.form-spalte {
    position: sticky;
    top: 20px;
}


.layout-main {
    display: flex;
    flex-wrap: nowrap;   /* ✅ FIX: verhindert Umbruch */
    align-items: stretch;
    gap: 20px;
    align-items: flex-start;

   
}


@media (max-width: 768px) {

    .layout-main {
        flex-direction: column;
    }

    .kalender-spalte,
    .form-spalte {
        width: 100%;
    }

}


.kalender-spalte {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.form-spalte {
    flex: 1;
    display: flex;
    flex-direction: column;
}


.raum-slots {
    position: relative;
    height: 100%;
}

.slot-frei,
.slot-termin {
    position: absolute;
    left: 0;
    right: 0;
}


.chip-group.single-select{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin:0px 20px;
}

/* 🔥 wichtig */
.chip-group.single-select {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 10px;
    border-radius: var(--radius-lg);
    cursor: pointer;
}

/* 🔥 Input verstecken aber klickbar halten */




.add-slot-person.dirty {
    background: var(--c-warning);
    color: #fff;
    box-shadow: 0 0 8px rgba(255,152,0,0.6);
    transform: scale(1.05);
}



/* =========================================================
   52. SLOT ACTION / ERROR / DELETE
========================================================= */

.slot-action-indicator {
position: absolute;
top: 4px;
right: 4px;
padding-top: 5px;
font-size: 15px;
font-weight: 700;
background: rgba(255, 255, 255, 1);
color: #5fb761;
border-radius: 50%;
width: 16px;
height: 16px;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
}

.input-error {
    border:2px solid var(--c-danger) !important;
    background:#fff5f5;
}

.delete-termin {
position: absolute;
top: 1px;
right: 4px;
font-size: 12px;
color: #fff;
border-radius: var(--radius-xs);
padding: 2px 6px 0px;
text-decoration: none;
z-index: 9999;
pointer-events: auto;
}


.delete-termin:hover {
color: red;
}




/* =========================================================
   53. ACTION BAR FINAL LAYER
========================================================= */

/* =========================
   ACTION BAR
========================= */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* =========================
   BASE BUTTON
========================= */
.btn {
    flex: 1;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

/* =========================
   PRIMARY (Speichern)
========================= */
.btn-primary {
    background: var(--c-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--c-primary-dark);
}

/* =========================
   SECONDARY
========================= */
.btn-secondary {
    background: #f1f1f1;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* =========================
   DANGER (Abbrechen)
========================= */
.btn-danger {
    background: #ffe5e5;
    color: var(--c-danger-dark);
}
/* =========================
   MOBILE BREAKPOINT
========================= */
@media (max-width: 600px) {
    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}



/* =========================================================
   54. DAUER LABEL WARN / ERROR
========================================================= */

#dauerLabel.warn {
    background: #fff3cd;
    color: #856404;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

#dauerLabel.error {
    background: #ffebee;
    color: var(--c-danger-dark);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}





/* =========================================================
   55. STATUS HIGHLIGHT
========================================================= */

.status-highlight {
    animation: statusPulse 0.4s ease;
}

@keyframes statusPulse {

    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0,0,0,0);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 8px rgba(0,0,0,0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0,0,0,0);
    }
}





/* =========================================================
   56. STATE & UX FINAL LAYER
========================================================= */

/* =========================================
   🔴 STATE & UX (NEU)
========================================= */

/* Disabled */
button.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Slot States */
.slot-chip.editing {
    background: var(--c-danger);
    color: #fff;
    border:1px solid #fff;
}

.slot-chip.flash {
    animation: flashPulse 0.6s ease;
    background: #d4edda;
    border-color: #28a745;
}

@keyframes flashPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Save / Dirty State */
.add-slot-person.saved {
    background: #d4edda;
    color: #155724;
}

.add-slot-person.dirty {
    background: var(--c-danger);
    color: #fff;
    box-shadow: 0 0 8px rgba(255,152,0,0.6);
}

/* Slot Edit View */
.slot-edit-view {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slot-time {
    font-weight: 600;
}

.slot-action {
    font-size: 12px;
    color: #fff;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    text-align: center;
}

/* Slot Chip UX */
.slot-chip {
    background: #fff;
    border: 1px solid rgb(106, 106, 106);
    padding: 13px 15px;
    margin: 5px;
}

.slot-chip:hover {
    transform: scale(0.96);
}



/* =========================================================
   57. SLIDER UX FINAL LAYER
========================================================= */

/* =========================================
   🔵 SLIDER UX (NEU)
========================================= */

.slider-label {
    margin-top: -14px;
    padding: 8px 15px;
    font-size: 14px;
    color: #fff;
    border-radius: var(--radius-md);
    background-color: color(srgb 0.3348 0.5908 0.8612);
}

/* optional sauberer Track */
.slider-track {
    background: #fff;
    border: 1px solid lightgrey;
}



/* =========================================================
   58. BUTTON SYSTEM RESET / CANCEL FINAL LAYER
========================================================= */

/* =========================================
   🔴 BUTTON SYSTEM (RESET / CANCEL)
========================================= */

.btn-danger {
    background: #ffe0e0;
    color: #b30000;
    border: 1px solid #ffb3b3;
}

.btn-danger:hover {
    background: #fcc;
}

/* =========================================
   🔴 KALENDER - Alles
========================================= */




.headline {
    font-size:18px;
    font-weight:600;
 
}

.alert-bar {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.alert {
    padding:6px 10px;
    border-radius: var(--radius-sm);
    font-size:13px;
    font-weight:500;
}

.alert.kritisch { background:var(--c-danger); color:#fff; }
.alert.warn     { background:var(--c-warning); color:#fff; }
.alert.info     { background:#3b82f6; color:#fff; }



.dashboard-stats {
    display: flex;
    flex-wrap: wrap;              /* 🔥 DAS ist der Schlüssel */
    gap: 10px;
    margin-bottom: 10px;

}

.stat {
    background:#f1f5f9;
    padding:12px;
    border-radius: var(--radius-lg);
    flex:1;
    text-align:center;
}

.stat strong {
    font-size:20px;
    display:block;
}

.stat.kritisch {
    background:#ffe4e4;
}

.snapshot-wrapper {
    display:flex;
    gap:12px;
    overflow-x:auto;
    margin-bottom:20px;
}

.snapshot {
    min-width:220px;
    background:#fff;
    border-radius: var(--radius-lg);
    padding:12px;
    border:2px solid #e5e7eb;
}

.snapshot.kritisch { border-color:var(--c-danger); background:#fff5f5; }
.snapshot.warn     { border-color:var(--c-warning); background:#fff8e1; }

.snapshot-header {
    font-weight:600;
    margin-bottom:6px;
}

.snapshot-body {
    font-size:13px;
    line-height:1.4;
}

.snapshot-actions {
    margin-top:10px;
}

.snapshot-actions a {
    display:inline-block;
    font-size:12px;
    margin-right:6px;
    padding:4px 6px;
    background:#e2e8f0;
    border-radius: var(--radius-sm);
    text-decoration:none;
}

/* 🔥 GANZE WOCHE MARKIEREN */
.mini-day.week-active {
    background: rgba(33, 150, 243, 0.15);
    color: #000;
}

/* 🔥 AKTIVER TAG (stärker) */
.mini-day.active {
    background: var(--c-primary);
    color: #fff;
    font-weight: bold;
}

/* 🔥 WOCHE IM HAUPTKALENDER */
.day-block.week-block {

}

/* =========================
   🔥 HINWEISE BOX (KLAPPBAR)
========================= */

.hinweise-box {
    margin-top:8px;
    padding:8px 10px;
    background:#fff8e1;
    border-left:4px solid var(--c-warning);
    border-radius: var(--radius-sm);
    font-size:12px;
    line-height:1.4;
    cursor:pointer;
    transition:background 0.2s ease;
}

.hinweise-box:hover {
    background:#fff3cd;
}

/* Header */
.hinweise-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-weight:bold;
}

/* Content (eingeklappt) */
.hinweise-content {
    max-height:40px;
    overflow:hidden;
    transition:max-height 0.3s ease;
}

/* geöffnet */
.hinweise-box.open .hinweise-content {
    max-height:500px;
}

/* Pfeil */
.hinweise-toggle {
    transition:transform 0.3s ease;
}

.hinweise-box.open .hinweise-toggle {
    transform:rotate(180deg);
}


.hinweise-cal {
    font-size:12px;
    margin-top:4px;
    padding:6px 8px;
    border-radius: var(--radius-sm);
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}



/* =========================
   🔥 MINI DASHBOARD → INFOBOX LOOK
========================= */

.mini-dashboard {
    margin-top: 12px;
    display: contents;
    flex-direction: column;
    gap: 10px;
}

/* gleiche Box, nur kompakter */
.mini-box {
    font-size: 12px;
}

/* klickbar machen */
.clickable {
    cursor: pointer;
    transition: all 0.15s ease;
}


/* Fachkraft-Warnung */
.mini-box.warn {
    border-left: 4px solid #ffc107;
    background: #fff8e1;
}

/* Links wie in Infobox */
.mini-links {
    margin-top: 6px;
}

.mini-links a {
    color: var(--c-primary-dark);
    text-decoration: none;
    font-size: 12px;
}

.mini-links a:hover {
    text-decoration: underline;
}

.info-box {
    flex: 1 1 250px; /* falls noch nicht vorhanden */
}


/* =========================
   🔥 FACHKRAFT DASHBOARD
========================= */

.fachkraft-dashboard {
    margin-bottom: 20px;
}

.fk-list {
    display: block;
}

.fk-name {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 15px;
}

.fk-count {
    opacity: 0.6;
    font-size: 12px;
    margin-left: 6px;
}

.fk-faelle {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fk-faelle li {
    margin-bottom: 4px;
}

.fk-faelle a {
    text-decoration: none;
    color: #333;
}

.fk-faelle a:hover {
    text-decoration: underline;
}


/* =========================
   🔥 FALL CARD
========================= */

.fall-card {
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    padding: 10px;
    margin-bottom: 10px;
}

.fall-typ {
    font-size: 12px;
    font-weight: bold;
    color: #666;
    margin-bottom: 6px;
}

.fk-personen div {
    margin-bottom: 3px;
}

.fall-meta {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #ddd;
    font-size: 12px;
}




/* =========================
   🔥 TIMELINE
========================= */

.fk-timeline {
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-top:8px;
}

.tl-node {
    display:flex;
    align-items:center;
    gap:4px;
}

.tl-dot {
    width:8px;
    height:8px;
    background:var(--c-primary);
    border-radius:50%;
}

.tl-node.future .tl-dot {
    background:var(--c-success);
}

.tl-date {
    font-weight:600;
    font-size:13px;
}

.tl-gap {
    display:flex;
    align-items:center;
    gap:8px;
}

.tl-line {
    flex:1;
    height:2px;
    background:#ddd;
    border-radius: var(--radius-xs);
}

.tl-gap-label {
    font-size:11px;
    color:#666;
    white-space:nowrap;
}

.tl-gap.bad .tl-line {
    background:var(--c-warning);
}

.tl-gap.bad .tl-gap-label {
    color:var(--c-danger);
    font-weight:600;
}

.tl-gap.ok .tl-line {
    background: linear-gradient(to right, #ccc, #999);
}

.tl-gap.warn .tl-line {
    background: linear-gradient(to right, var(--c-warning), #f57c00);
}

.tl-gap.kritisch .tl-line {
    background: linear-gradient(to right, var(--c-danger), var(--c-danger-dark));
}

.tl-soll {
    font-size:10px;
    color:#888;
    margin-left:4px;
}

.tl-alert {
    margin-left:4px;
}

.tl-past {
    font-size:12px;
    color:#777;
    margin-bottom:4px;
}


/* =========================
   🔥 MINI KALENDER (FINAL FIX)
========================= */

.fk-mini-kalender-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
}

/* TRACK */
.fk-mini-kalender-track {
    display: flex;
    transition: transform 0.50s ease;
    gap: 12px; /* 🔥 Abstand zwischen Monaten */
}

/* EIN MONAT */


.mini-month {

    display:flex;
    flex-direction:column;

    width:100%;

    padding:0;

    background:#fff;

    overflow:hidden;

    box-sizing:border-box;

    box-shadow:0 2px 6px rgba(0,0,0,0.08);

    
}

.mini-nav-btn {
    position: relative;
    z-index: 11;
    cursor: pointer;
}

/* HEADER */
.mini-title {
    font-size:12px;
    font-weight:600;
    text-align:center;
    margin-bottom:4px;
}

/* GRID */
.mini-grid {
    display:grid;
    grid-template-columns: 30px repeat(7, 1fr);
    gap:2px;
}

.mini-kw {
    cursor: pointer;
    color: #666;
    text-decoration: none;
}

.mini-kw:hover {
    color: var(--c-primary);
    background-color: blanchedalmond;
    border-radius: var(--radius-xs);
}


.termin.disabled {
    opacity: 0.2;
    filter: grayscale(100%);
    pointer-events: none;
}

/* HEAD */
.mini-day-head,
.mini-kw-head {
    font-size:10px;
    text-align:center;
    font-weight:600;
    color:#888;
}

/* KW */
.mini-kw {
    font-size:10px;
    text-align:center;
    color:#aaa;
    display:flex;
    align-items:center;
    justify-content:center;
}


.mini-day.weekend {
    color: var(--c-danger);
}

.mini-day.holiday {
    color: var(--c-danger);
}
/* DAY */
.mini-day {
    font-size:medium;
    text-align:center;
    padding:4px 0;
    border-radius: var(--radius-xs);
    color:#666;
    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: inherit;
    cursor: pointer;
}



.mini-day:hover {
    background: rgba(33, 150, 243, 0.1);
}


.mini-day.active-day-top {
outline: px solid var(--c-primary)!important;
/* background-color: #fff!important; */
/* color: #fff; */
/* font-weight: bold; */
/* transform: scale(1.1); */
border-radius: var(--radius-xs)!important;
border: 4px solid color(srgb 0.1279 0.5901 0.953);
}


.mini-day.other {
opacity: 0.5;
background-color: unset!important;
border: unset!important;

}

.mini-day.has-termin {
background: #e3ffa3;
border-radius: unset;
}


/* =========================
   🔥 NAV
========================= */

.mini-nav-bar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:6px;
}

.mini-nav-btn {
    background:#f5f5f5;
    border-radius: var(--radius-sm);
    padding:4px 8px;
    text-decoration:none;
    color:#333;
    font-weight:bold;
}

.mini-nav-title {
    font-size:12px;
    font-weight:600;
    opacity:0.7;
}


/* =========================
   🔥 MOBILE
========================= */

@media (max-width: 700px) {

    .fk-mini-kalender-track {
        gap: 8px;
    }

    .mini-month {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


.mini-kalender {
    width:100%;
}


.nav-btn {
    cursor:pointer;
    padding:4px 8px;
    background:#f5f5f5;
    border-radius: var(--radius-sm);
}

.mini-wrapper {
    overflow:hidden;
}

.mini-track {
    display:flex;
    will-change:transform;
}


.mini-day.today {
border: 3px solid var(--c-danger)!important;
border-radius: var(--radius-xs);
font-weight: bold;

color: #000!important;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.33) inset;
}


.fk-filter-bar {
display: flex;
flex-wrap: wrap;
gap: 8px;

padding-top: 10px;
}

.fk-filter-btn {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.fk-filter-btn.active {
        background: #f5f5f5;
        color: #495057;
        padding: 5px 10px;
}


.week-headline {
font-weight: 600;
font-size: larger;
}


.info-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.btn-edit-termin {
    font-size: 12px;
    padding: 6px 10px;
    background: var(--c-primary-dark);
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: 0.2s;
}

.btn-edit-termin:hover {
    background: #0d47a1;
}

.close-inline-form {
    position: absolute;
    top: 8px;
    right: 10px;

    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;

    color: #888;
}

.close-inline-form:hover {
    color: #000;
}

.sub-section {
    position: relative;
}

#personInlineForm {
    will-change: transform;
}



.mini-day.rot,
.chart-bar.rot {
    background: #ffd6d6 !important;
    color: #b91c1c;
}

.mini-day.gelb,
.chart-bar.gelb {
    background: #fff4bf !important;
    color: #92400e;
}

.mini-day.gruen,
.chart-bar.gruen {
    background: #dcfce7 !important;
    color: #166534;
}


.chart-bar-wrapper:hover {
    background-color: lightgray;
}


/* 🔥 DASHBOARD LAYOUT */
.dashboard-top {
    display: block;
    gap: 12px;
}

/* 🔥 HEADLINE */
.headline {
    font-size: 18px;
    font-weight: 600;
    margin-top: 25px;
}

/* 🔥 CARD ROW DESKTOP */

.card-row{
    width:100%;
    min-width:0;
}

#info-box-wrapper {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(310px, 370px));
gap: 8px;
/* align-items: stretch; */
width: 100%;
background-color: #fff;
padding: 5px 5px 10px;
border-radius: 0px 0px 8px 8px;
border: 1px solid #eee;
margin-top: -1px;
}



/* 🔥 EINZELNE KARTE */

.info-box {


}


.info-box {
margin-top: 10px;
display: flex;
flex-direction: column;
min-height: 280px;
/* height: 100%; */
box-sizing: border-box;
border-radius: var(--radius-xl);
overflow: hidden;
width: 100%;
max-width: 450px;
border: 1px solid color(srgb 0.9443 0.9443 0.9444);
background-color: rgb(255, 252, 247);
}


.info-personen,
.info-hinweise,
.info-fk {

    word-break: break-word;
}

/* 🔴 Beschützter Umgang = Risiko */
.info-box.typ-beschuetzt {
background: #fff;
border-left: 10px solid #fff5f5;
border-top: 2px solid #fff5f5;
border-right: 2px solid #fff5f5;
border-bottom: 2px solid #fff5f5;

}

/* 🔵 Begleiteter Umgang = stabil */
.info-box.typ-begleitet {
background: #fff;
border-left: 10px solid #cce5ff;
border-top: 2px solid #cce5ff;
border-right: 2px solid #cce5ff;
border-bottom: 2px solid #cce5ff;
}

/* 🟡 Übergabe = sensibel */
.info-box.typ-uebergabe {
background: #fff;
border-left: 10px solid #fffbeb;
border-top: 2px solid #fffbeb;
border-right: 2px solid #fffbeb;
border-bottom: 2px solid #fffbeb;
    
}





.fall-filter-bar {
    margin: 10px 0px 30px;
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}





.mini-day.disabled-day {
    opacity: 0.2;
    pointer-events: none;
}

.mini-day.filtered-out {
    opacity: 0.15;
    pointer-events: none;
}


.active-filter-bar {
    margin: 10px 0;
    padding: 8px 12px;
    background: #f5f7fa;
    border-radius: var(--radius-md);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-chip {
    background: #e3f2fd;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.filter-reset {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
}


.termin.dimmed,
.slot.puffer.dimmed {
    opacity: 0.25;
    filter: grayscale(80%);
    pointer-events: none; /* 🔥 KEINE KLICKS MEHR */
}


.day-block {
    display: none;
}

.day-block.active-day-view {
    display: block;
}

.weekday-switch {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.weekday-chip {
    padding: 6px 10px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: top;
    line-height: 1.2;
    min-width: 40px;
}


.weekday-chip:hover {
background: var(--c-primary);
color: #fff!important;
}


.weekday-chip.active {
background: var(--c-primary);
color: #fff!important;
border-color: var(--c-primary);
}


/* 🔥 WOCHENENDE */

.weekday-chip.weekend{

    color:var(--c-danger);
}

/* 🔥 FEIERTAG */

.weekday-chip.holiday{

    color:var(--c-danger);
}

/* 🔥 AKTIV + WOCHENENDE */

.weekday-chip.active.weekend,
.weekday-chip.weekend:hover,
.weekday-chip.active.holiday, 
.weekday-chip.holiday:hover {

    background:var(--c-danger)!important;
    color:#fff!important;
    border-color: var(--c-danger)!important;
}



.chip-day {
    font-weight: 600;
    font-size: 12px;
}

.chip-date {
    font-size: 11px;
    opacity: 0.7;
}

.weekday-chip.active .chip-date {
    opacity: 1;
}


.info-headline {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 6px;
}



.info-time {
    font-size: 13px;
    opacity: 0.7;
}

.info-fk {
font-size: large;
margin-bottom: 6px;
padding: 10px;
border-radius: var(--radius-md);
text-align: center;
}

.info-divider {
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 8px 0;
}

.info-personen {
    font-size: 13px;
    line-height: 1.4;
}

.info-hinweise {
    font-size: 12px;
    opacity: 0.85;
}


.role-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.role-icon {
width: 20px;
height: 20px;
/* opacity: 0.85; */
top: -5px;
position: relative;
}

.role-content {
    font-size: 14px;
}

.mini-action {
    text-decoration: none;
    font-weight: bold;
    margin-left: 4px;
}





.icon-phone {
    vertical-align: middle;
    opacity: 0.7;
}
.info-regeln span {

align-items: center;
padding: 4px 6px 2px;
border-radius: var(--radius-sm);
font-size: 12px;
background-color: #fff;
}


.info-regeln {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hinweis-wrapper, .hinweis-empty {
   
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 12px;
    margin-top: 10px;
    width: 100%;

}

.hinweis-empty {
    opacity: 0.5;
}

.info-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-actions {
    display: flex;
    gap: 6px;
}

.mini-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: var(--radius-sm);
    color: #333;
    text-decoration: none;
}

.mini-action:hover {
    background: #eef2f7;
}

.slot-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}

.slot-badge {
    font-size: 10px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}



.slot-time {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.slot-body {
    font-size: 11px;
    line-height: 1.25;
}

.slot-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Infokarte */
.mobile-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    z-index: 99999;
    padding: 14px;
}

.mobile-overlay.active {
    display: flex;
}

.overlay-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.overlay-typ {
    font-weight: 800;
    font-size: 15px;
}

.overlay-time {
    font-weight: 700;
    opacity: 0.75;
}

.overlay-body {
    display: grid;
    gap: 8px;
    font-size: 15px;
    margin-bottom: 14px;
}

.overlay-actions {
    display: flex;
    gap: 8px;
}

.overlay-btn,
.overlay-close {
    flex: 1;
    border: 0;
    border-radius: var(--radius-lg);
    padding: 10px 12px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.overlay-btn {
    background: #111827;
    color: #fff;
}

.overlay-close {
    background: #f3f4f6;
    color: #111827;
}

.icon-kind {
/* width: 14px; */
height: 14px;
/* margin-right: 4px; */
/* vertical-align: middle; */
position: relative;
top: -4px;
}
.slot-line {
    font-weight: 300!important;
}


.hinweis-wrapper {
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 🔥 EINGEKLAPPT */
.hinweis-wrapper.collapsed .hinweis-chip {
    display: block;
    max-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 🔥 AUFGEKLAPPT */
.hinweis-wrapper.expanded .hinweis-chip {
    white-space: normal;
    max-height: none;
}

.hinweis-wrapper.collapsed .hinweis-chip:not(:first-child) {
    display: none;
}

.chip-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.chip-date-main {
    font-size: 13px;
}

.chip-count {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}



.week-nav {
    width: 32px;
    height: 48px;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
    font-size: 18px;
    border-radius: var(--radius-sm);
}

.week-nav:hover {
    background: #ddd;
}

.error-noshow {
        position:absolute;
        left:0;
        right:0;
        top:0;
        bottom:0;
        display:flex;
        align-items:center;
        justify-content:center;
        font-size:12px;
        
        color:var(--c-danger-dark);
        border:1px dashed var(--c-danger-dark);
        z-index:50;
        text-align:center;
        padding:6px;
    }

.error-noshow:hover {
background: unset;
}


.vorschlag-diagnose {
    margin: 10px 0 18px 0;
    padding: 10px 14px;
    background: #fff8e1;
    border-left: 5px solid var(--c-warning);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.4;
}

.vorschlag-diagnose strong {
    color: #e65100;
}


.icon-cross {
    display:inline-block;
    width:16px;
    height:16px;
    margin-right:6px;
    position:relative;
    top:2px;
}

.icon-cross::before,
.icon-cross::after {
    content:'';
    position:absolute;
    left:7px;
    top:0;
    width:2px;
    height:16px;
    background:#fff;
}

.icon-cross::before {
    transform:rotate(45deg);
}
.icon-cross::after {
    transform:rotate(-45deg);
}

.fk-picker-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fk-picker-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--radius-lg);
    padding: 10px;
    cursor: pointer;
}

.fk-picker-row:hover {
    background: #f4f9ff;
    border-color: var(--c-primary);
}

.fk-picker-name {
    font-weight: 600;
    font-size: 13px;
}

.fk-picker-week {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.fk-picker-day {
    background: #f5f5f5;
    border-radius: var(--radius-sm);
    padding: 4px;
}


.form-spalte {
    position: static; /* oder entfernen */
}

#wizardViewport {
    width: 100%;
    
    position: relative;

    transition: height 0.25s ease;
}

#wizardViewport {
    overflow-x: hidden;
    overflow-y: hidden;
}

#wizardTrack {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;

    transition: transform 0.35s ease;
    will-change: transform;
}

#wizardTrack > .person-block-single {
    min-width: 100%;
    width: 100%;
    flex: 0 0 100%;

    box-sizing: border-box;
}



.person-block-single {
    width: 100%;
    min-width: 100%;

    flex: 0 0 100%;
    align-self: flex-start;

    height: auto !important;
    min-height: 0 !important;

    box-sizing: border-box;

    padding: 12px 14px;
    padding-bottom: 40px;

    margin-top: 10px;

    border: 1px solid var(--gray-500);
    border-radius: var(--radius-lg);

    background: #fff;

    position: relative;

    overflow: visible !important;

    transition: all 0.2s ease;
}

/* 🔥 Wizard Footer auf letzter Seite ausblenden */
.wizard-nav.last-step {
    display: none;
}

/* Status */
#wizardStatus {
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Nav */
.wizard-nav {
/* position: fixed; */
bottom: 0;
left: 0;
right: 0;
/* background: #fff; */
padding: 12px 20px;
display: flex;
justify-content: space-between;
/* box-shadow: 0 -2px 10px rgba(0,0,0,0.08); */
z-index: 999;
}



/* =====================================================
   🔵 WIZARD STEP LINE
===================================================== */

#wizardSteps {

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-bottom: 30px;
    padding: 10px 20px;

    overflow-x: auto;
}

.wizard-step {

    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 120px;

    position: relative;

    opacity: 0.45;
    transition: all 0.25s ease;
}

.wizard-step:hover {

    opacity: 0.9;
    transform: translateY(-2px);
}

.wizard-step.active {
    opacity: 1;
}

.wizard-step.done {
    opacity: 0.8;
}

.wizard-dot {

    width: 16px;
    height: 16px;

    border-radius: 50%;

    background: #d0d0d0;

    margin-bottom: 8px;

    transition: all 0.25s ease;
}

.wizard-step.active .wizard-dot {

    background: var(--c-primary);

    transform: scale(1.2);

    box-shadow: 0 0 0 6px rgba(33,150,243,0.12);
}

.wizard-step.done .wizard-dot {
    background: var(--c-success);
}

.wizard-label {

    font-size: 12px;
    text-align: center;

    line-height: 1.3;

    white-space: nowrap;
}

.wizard-line {

    flex: 1;
    height: 2px;

    background: #ddd;

    min-width: 30px;

    margin-top: -22px;
}


.wizard-step.valid .wizard-dot {
    background: var(--c-success);
}

.wizard-step.invalid .wizard-dot {
    background: var(--c-danger);
}

.wizard-step.partial .wizard-dot {
    background: var(--c-warning);
}

.wizard-step.active .wizard-dot {
    background: var(--c-primary);
}

/* =====================================================
   🔵 MOBILE
===================================================== */

@media (max-width: 900px) {

    #wizardSteps {
        justify-content: flex-start;
    }

    .wizard-label {
        font-size: 11px;
    }

    .wizard-step {
        min-width: 90px;
        cursor: pointer;
    }
}


.validation-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 340px;
    max-width: calc(100vw - 40px);

    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);

    padding: 18px;

    z-index: 999999;

    opacity: 0;
    transform: translateY(-10px) scale(0.98);

    transition: all 0.25s ease;
}

.validation-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-header {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 10px;
}

.toast-section ul {
    margin: 0;
    padding-left: 18px;
}

.toast-section li {
    margin-bottom: 4px;
    font-size: 13px;
    opacity: 0.9;
}

.toast-actions {
    margin-top: 14px;
}

.toast-link-btn {
    border: 0;
    background: #111;
    color: #fff;

    padding: 10px 14px;
    border-radius: var(--radius-lg);

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;

    transition: all 0.2s ease;
}

.toast-link-btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

/* =====================================================
   🔵 STICKY WIZARD
===================================================== */

#wizardSteps {

    position: sticky;
    top: 0;
    z-index: 200;

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

    padding: 14px 20px;

    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(0,0,0,0.06);
}


/* =====================================================
   🔵 SAVE BAR
===================================================== */

#wizardTopBar {

    position: sticky;
    top: 68px;

    z-index: 199;

    display: flex;
    justify-content: center;

    padding: 14px 20px;

    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(0,0,0,0.05);
}


/* =====================================================
   🔵 SAVE BUTTON
===================================================== */

.wizard-save-btn {
min-width: 260px;
border: 0;
border-radius: var(--radius-md);
padding: 14px 26px;
/* font-size: 15px; */
/* font-weight: 700; */
transition: background 0.25s ease,
transform 0.2s ease,
opacity 0.2s ease,
box-shadow 0.25s ease;
cursor: pointer;
background: #d9d9d9;
color: #000;
}


/* =====================================================
   🟢 READY
===================================================== */

.wizard-save-btn.ready {

    background: var(--c-accent);
    color: #fff;

    box-shadow:
        0 8px 24px var(--c-accent);

    animation: wizardPulse 2s infinite;
}


.wizard-save-btn.ready:hover {

    transform: translateY(-1px);
}


/* =====================================================
   🔴 DISABLED
===================================================== */

.wizard-save-btn.disabled {

    opacity: 0.8;
}


/* =====================================================
   🔵 PULSE
===================================================== */

@keyframes wizardPulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(31,170,89,0.35);
    }

    70% {
        box-shadow:
            0 0 0 12px rgba(31,170,89,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(31,170,89,0);
    }
}



/* =====================================================
   🔵 CHIP BASIS
===================================================== */

.chip {

    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    flex: 1 1 calc(50% - 10px);

    width: 100%;

    gap: 8px;

    padding: 10px 12px;

    border-radius: var(--radius-lg);

    border: 1px solid #ddd;

    background: #fff;

    cursor: pointer;

    text-align: center;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 13px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}


/* =====================================================
   🔵 INPUT VERSTECKEN
===================================================== */

.chip input[type="radio"],
.chip input[type="checkbox"] {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}


/* =====================================================
   🔵 HOVER
===================================================== */



.chip:hover,
.chip:has(input:checked)  {

    background: var(--c-accent);
    color: #fff;

    border-color: var(--c-accent);

    box-shadow:
        0 4px 12px rgba(85,151,220,0.22);
}




/* =====================================================
   🔵 BIG CHIP
===================================================== */

.chip.big {

    padding: 16px;

    border-radius: var(--radius-xl);

    min-width: 220px;

    margin-top: 10px;
}


.chip.big:has(input:checked),
.chip.big.active {
transform: scale(1.01);
background-color: color(srgb 0.3342 0.5923 0.8627);
color: #fff;
}


/* =====================================================
   ⚠️ WARN CHIP
===================================================== */

.chip.warn:has(input:checked),
.chip.warn.active {

    background: #fff8e1;
    border-color: #ffc107;
    color: #000;

    box-shadow:
        0 4px 12px rgba(255,193,7,0.18);
}


.chip.warn:hover {

background: #fff3cd;
color: #000;
border-color: color(display-p3 0.9731 0.8169 0.353);
}




/* =====================================================
   🔵 PERSONEN CHIP
===================================================== */

.chip.personen {

    font-size: unset;

    opacity: 0.85;

    margin-top: 3px;

    padding: 4px 16px;

    border-radius: var(--radius-md);

    background: #fff;

    color: var(--c-accent);

    border: 1px solid rgba(85,151,220,0.25);
}


/* =====================================================
   🔵 PERSONEN AKTIV
===================================================== */

.chip.personen:has(input:checked),
.chip.personen.active {

    background: var(--c-accent);
    color: #fff!important;

    border-color: var(--c-accent);
}


/* =====================================================
   🔵 CHIP RADIO STYLE
===================================================== */

.chip-radio:has(input:checked),
.chip-radio.active {

    background: var(--c-accent) !important;
    color: #fff;
}




.eltern-options{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-top:12px;
}

.eltern-card{
    border: 1px dashed #ddd;
    border-radius: var(--radius-md);
    padding:18px;
    background:#fff;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:220px;
    transition:all .25s ease;
}

.eltern-card:hover{
    border-color:#999;
    transform:translateY(-2px);
}

.eltern-card.active{
    border: 1px solid #d3d3d3;
    background: #f8f9fa;
}

.eltern-card-text{
    font-size:14px;
    line-height:1.5;
    margin-bottom:20px;
}

.eltern-btn{
    border:none;
    background: rgba(86, 151, 219, 0.51);
    color:#fff;
    padding:12px;
    border-radius: var(--radius-md);
    cursor:pointer;
    font-size:14px;
    font-weight:600;
    transition:.2s;
}

.eltern-btn:hover{
    opacity:.9;
}

.eltern-card.active .eltern-btn{
    background:var(--c-accent);
}

@media (max-width:768px){

    .eltern-options{
        grid-template-columns:1fr;
    }

}


.eg-hinweis {
    font-size: initial;
}


.eltern-card.disabled .eltern-btn{
    background:#adb5bd;
    cursor:not-allowed;
    opacity:.7;
}

.eltern-card.disabled .eltern-btn:hover{
    transform:none;
    opacity:.7;
}


.eltern-card.disabled{
    opacity:.75;
    border-color:#ced4da;
}

/* =======================================================
   🔵 RHYTHMUS SLIDER
======================================================= */

.rhythmus-slider-wrapper {
    margin-top: 10px;
}

#rhythmusSlider {
    width: 100%;
}

#rhythmusInfo {
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
    margin-top: 12px;
}

.dashboard-header, .week-headline  {
border: 1px solid #ddd;
padding: 10px;
margin-top: 10px;
border-radius: var(--radius-md);
}


/* =========================
   🔥 MINI DAY DIMMED
========================= */

.mini-day{

    transition:
        
        background .4s ease,
       
}

/* 🔥 AUSGEBLENDET */

.mini-day.dimmed{



    background:#fff !important;

}

/* 🔥 AKTIVE / AUSGEWÄHLTE TAGE NIE TOTDIMMEN */

.mini-day.selected-mini-day.dimmed,
/*.mini-day.active-week-day.dimmed,*/
.mini-day.today.dimmed{

    opacity:1 !important;
}

/*.mini-day.active-week-day {

font-weight: 500;
box-shadow: 0 0 31px -12px rgba(0, 0, 0, 0.15) inset;
border-top: 1px solid lightgray;
border-bottom: 1px solid lightgray;
}*/


.weekday-chip.empty-day {
    transform: scale(0.98);
}


.mini-title-nav{

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:10px 12px;

    background:#fff;

    border-bottom:1px solid #eee;

    min-height:58px;

    box-sizing:border-box;
}

.mini-title-center{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
}

.mini-title-month{
    font-size:15px;
    font-weight:600;
}

.mini-today-btn{
    font-size:12px;
    text-decoration:none;

    background:#f3f3f3;
    color:#333;

    padding:4px 10px;
    border-radius: var(--radius-pill);

    transition:0.2s;
}

.mini-today-btn:hover{
    background:#e7e7e7;
    color:#000;
}

.mini-title-arrow{
    text-decoration:none;
    color:#555;

    font-size:20px;

    padding:4px 10px;
    border-radius: var(--radius-md);

    transition:0.2s;
}

.mini-title-arrow:hover{
    background:#f3f3f3;
}

.calendar-layout{
    gap:20px;

}

/* =========================================
   🔵 TOP LAYOUT
========================================= */

.top-layout{

    display:flex;

    align-items:flex-start;

    gap:24px;

    flex-wrap:nowrap;

    width:100%;

    margin-top: 20px;
}


/* =========================================
   🔵 LINKE SPALTE
========================================= */

.calendar-sidebar{

    width:380px;

    min-width:380px;

    max-width:380px;

    display:flex;

    flex-direction:column;

    flex-shrink:0;
}

/* =========================================
   🔵 RECHTE SPALTE
========================================= */

.calendar-main{

    flex:1;

    min-width:0;

    display:flex;

    flex-direction:column;

    
}


/* =========================================
   🔵 CARD ROW
========================================= */

.card-row{

    width:100%;
}


/* =========================================
   🔥 RESPONSIVE
========================================= */

@media (max-width: 1200px){

    .calendar-sidebar
    {

        flex:1 1 100%;

        width:100%;

        min-width:0;

        max-width:100%;
    }


}

@media (max-width:1100px){

    .top-layout{

        flex-direction:column;
    }

    .calendar-sidebar{

        width:100%;

        min-width:0;

        max-width:none;
    }
}


.mini-day.selected-mini-day{
border: 1px solid #2196f3;
z-index: 5;
position: relative;
border-radius: 8px;
}


/* =========================
   🔴 CURRENT TIME MARKER
========================= */

.day-block{
    position:relative;
}

.current-time-marker{

    position:absolute;

    top:0;
    bottom:0;

    width:2px;

    z-index:200;

    pointer-events:none;

    display:none;
}

.current-time-line{

    position:absolute;

    top:0;
    bottom:0;

    width:2px;

    background:var(--c-danger);
}

.current-time-dot{

    position:absolute;

    width:10px;
    height:10px;

    border-radius:50%;

    background:var(--c-danger);

top:-2px;
left:-4px;

    box-shadow:0 0 0 3px rgba(255,59,48,0.15);
}

.current-time-label{

    position:absolute;

    top: -25px;
    left: -20px;

    font-size:11px;

    font-weight:600;

    color:var(--c-danger);

    background:#fff;

    padding:2px 6px;

    border-radius:20px;

    box-shadow:0 1px 3px rgba(0,0,0,0.08);
}





/* =========================
   📊 MONATS-DIAGRAMM
========================= */

.calendar-chart{

    margin-top:20px;

    display:flex;

    gap:10px;

    align-items:flex-end;

    padding:16px;

    background:#fff;

    border-radius: var(--radius-md);

    border:1px solid #e5e7eb;

    box-shadow: 0 1px 2px rgba(20,40,60,.04),0 6px 20px rgba(20,40,60,.05);
}

.chart-y-axis{

    width:30px;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    align-items:flex-end;

    font-size:11px;

    color:#999;

    height:140px;

    flex-shrink:0;
}

.chart-bars{

    flex:1;

    display:flex;

    align-items:flex-end;

    gap:4px;

    height:140px;

    overflow:visible;
}

.chart-day{

    position:relative;

    flex:1;

    min-width:0;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:flex-end;

    gap:6px;

    text-decoration:none;

    color:inherit;

    cursor:pointer;

    transition:0.15s ease;
}


/* =========================
   🔴 HEUTIGER TAG
========================= */

.chart-day.today{

    position:relative;
}

.chart-day.today::before{

    content:'';

    position:absolute;

    top:0;
    bottom:18px;

    left:50%;

    width:2px;

    transform:translateX(-50%);

    background:var(--t4-gray-500);

    border-radius:20px;

    pointer-events:none;
}

.chart-day.today .chart-bar{

    z-index:2;

    position:relative;
}

.chart-bar-wrapper{

    width:100%;

    height:120px;

    display:flex;

    align-items:flex-end;
}


.chart-day{

    text-decoration:none;

    color:inherit;

    cursor:pointer;

    transition:0.15s ease;
}


.chart-day:hover{

    transform:translateY(-2px);
}


/* =========================
   💬 CHART TOOLTIP
========================= */

.chart-day::after{

    content:attr(data-tooltip);

    position:absolute;

    bottom:100%;

    left:50%;

    transform:translateX(-50%) translateY(-6px);

    background:#111827;

    color:#fff;

    padding:6px 10px;

    border-radius: var(--radius-md);

    font-size:11px;

    line-height:1.2;

    white-space:nowrap;

    opacity:0;

    pointer-events:none;

    transition:0.15s ease;

    z-index:20;

    box-shadow:
        0 6px 18px rgba(0,0,0,0.15);
}

.chart-day:hover::after{

    opacity:1;
}


.chart-bar{

    width:100%;

    border-radius:6px 6px 0 0;

    transition:0.2s ease;

    min-height:2px;
}

.chart-bar:hover{

    transform:scaleY(1.04);

    opacity:0.9;
}

/* 🟢 */
.chart-bar.green{

    background:#e3fea3;
}

/* 🟡 */
.chart-bar.yellow{

    background:var(--c-warning);
}

/* 🔴 */
.chart-bar.red{

    background:var(--c-danger);
}

.chart-label{

    font-size:10px;

    color:#666;

    line-height:1;
}

/* MOBILE */

@media (max-width:700px){

    .chart-label{

        font-size:8px;
    }

    .chart-bars{

        gap:2px;
    }
}


.chart-label{

    position:relative;

    height:18px;

    width:100%;

    font-size:10px;

    color:#777;

    text-align:center;

    flex-shrink:0;
}


.chart-kw-line{

    position:absolute;

    left:50%;

    top:-8px;

    transform:translateX(-50%);

    width:1px;

    height:8px;

    background:#d1d5db;
}

/* =========================
   👤 FK KARTEN
========================= */

.fk-card-grid{

    display:flex;
    flex-wrap:wrap;

    gap:14px;
    
}

.fk-card{

    background:#fff;



    border-radius: var(--radius-md);

    margin:10px;

    min-width:260px;

    display:flex;

    flex-direction:column;

    gap:12px;


}


/* =========================
   👤 FK HEADER
========================= */

.fk-card-header{

    display:flex;

    align-items:center;

    gap:10px;

    border:none;

    background:none;

    cursor:pointer;

    font-size:14px;

    font-weight:600;

    padding:5px 10px;

    border-radius: var(--radius-lg);

    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}

.fk-card-header:hover{

    background:#f5f5f5;
}


/* =========================
   📁 FALL BUTTON WRAPPER
========================= */

.fk-card-falls{

    display:flex;

    flex-wrap:wrap;

    gap:8px;
}


/* =========================
   📁 FALL FILTER BUTTON
========================= */

.fall-filter-btn{

    display:flex;

    align-items:center;

    gap:10px;

    margin:0;

    padding:7px 12px;

    font-size:12px;

    line-height:1;

    border-radius: var(--radius-lg);

    border:2px solid #f1f5f9;

    background:#fff;

    cursor:pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.15s ease;

    color:#334155;
}


/* =========================
   ✨ HOVER
========================= */

.fall-filter-btn:hover{

    background:#f8fafc;
}


/* =========================
   🔥 ACTIVE
========================= */

.fall-filter-btn.active{

    opacity:1;
}


/* =========================
   🌫️ DIMMED
========================= */

/* =========================
   🌫️ FALL DEAKTIVIERT
========================= */

.fall-filter-btn.dimmed{

    opacity:1;

    filter:none;
}


/* 🔥 PUNKT AUS */

.fall-filter-btn.dimmed .fall-dot{

    background:#d1d5db !important;

    box-shadow:none;

    opacity:0.5;
}


/* 🔥 PUNKT AN */

.fall-filter-btn.active .fall-dot{

    opacity:1;

    box-shadow:
        0 0 0 3px rgba(255,255,255,0.9),
        0 0 12px currentColor;
}


/* =========================
   🔵 PUNKT
========================= */

.fall-dot{

    width:10px;
    height:10px;

    border-radius:50%;

    flex-shrink:0;

    background:#999;
}


/* =========================
   🔴 BESCHÜTZT
========================= */

.fall-filter-btn.typ-beschuetzt{
border-color: #fee2e2;
color: #991b1b;
border-left: 8px solid #fee2e2;
border-radius: var(--radius-md);
}

.fall-filter-btn.typ-beschuetzt .fall-dot{

    background:var(--c-danger);
}


/* =========================
   🟢 BEGLEITET
========================= */

.fall-filter-btn.typ-begleitet{

    border-color:#dbeafe;

    color:#1d4ed8;


    border-color: #dbeafe;

border-left: 8px solid #dbeafe;
border-radius: var(--radius-md);


}

.fall-filter-btn.typ-begleitet .fall-dot{

    background:#2563eb;
}


/* =========================
   🟡 ÜBERGABE
========================= */

.fall-filter-btn.typ-uebergabe{

    border-color:#fef3c7;

    color:#92400e;
}

.fall-filter-btn.typ-uebergabe .fall-dot{

    background:var(--c-warning);
}


/* =========================
   ✨ FOKUS AUF FALLKARTE
========================= */

.focus-pulse{

    animation:
        focusPulse 1.6s ease;

    position:relative;

    z-index:5;
}


@keyframes focusPulse{

    0%{

        transform:scale(1);

        box-shadow:
            0 0 0 rgba(59,130,246,0);
    }

    20%{

        transform:scale(1.015);

        box-shadow:
            0 0 0 6px rgba(59,130,246,0.12),
            0 10px 30px rgba(59,130,246,0.18);
    }

    100%{

        transform:scale(1);

        box-shadow:
            0 0 0 rgba(59,130,246,0);
    }
}


/* =========================
   ✨ FOKUS BUTTON
========================= */

.fall-filter-btn.focus-active{

    transform:scale(1.04);

    box-shadow:
        0 0 0 4px rgba(59,130,246,0.10),
        0 6px 18px rgba(59,130,246,0.18);

    position:relative;

    z-index:4;
}

/* =========================
   📅 WOCHENTAGE
========================= */

.fall-days{

    font-size:11px;

    opacity:0.65;

    font-weight:500;

    white-space:nowrap;
}

.header-wochenfaelle {

margin-top: 10px;
display: flex;
gap: 10px;
align-items: flex-end;
padding: 16px;
background: #fff;
border-radius: var(--radius-md);
border: 1px solid #e5e7eb;
margin-bottom: 20px;
}



.focus-active {
    animation: pulse 1.5s ease;
}


/* =========================
   🟢 AKTIVER TIMELINE-TAG
========================= */

.fall-active-day-dot{

    width:8px;
    height:8px;

    border-radius:50%;

    background:var(--c-success);

    opacity:0.15;

    display:inline-block;

    margin-left:4px;
    margin-right:8px;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* 🔥 aktiv */
.fall-active-day-dot.active{

    opacity:1;

    transform:scale(1.15);

    box-shadow:
        0 0 8px rgba(34,197,94,0.7),
        0 0 16px rgba(34,197,94,0.35);
}


/* =========================
   🔥 FK CARD TOGGLE
========================= */

.fk-card-toggle{

    display:flex;
    align-items:center;
    gap:10px;

    padding:14px 18px;

    background:#fff;

    border-left:1px solid #e5e7eb;
    border-top:1px solid #e5e7eb;
    border-right:1px solid #e5e7eb;

    border-radius: 8px 8px 0px 0px;

    cursor:pointer;

    transition:all .2s ease;
}

.fk-card-toggle:hover{

    background:#f8fafc;
}

.fk-card-toggle-icon{

    display:flex;
    align-items:center;
    justify-content:center;

    width:20px;
    height:20px;

    position:relative;
}

.fk-card-toggle-icon svg{

    position:absolute;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

/* 🔥 DEFAULT = ZUGEKLAPPT */

.eye-open{

    opacity:0;
    transform:scale(.85);
}

.eye-closed{

    opacity:1;
    transform:scale(1);
}

/* 🔥 OFFEN */

.fk-card-toggle.active .eye-open{

    opacity:1;
    transform:scale(1);
}

.fk-card-toggle.active .eye-closed{

    opacity:0;
    transform:scale(.85);
}

.fk-card-grid{

    overflow:hidden;

    transition:
        max-height .35s ease,
        opacity .25s ease;

    max-height:5000px;
    opacity:1;
    
    border-left:1px solid #e5e7eb;
    
    border-right:1px solid #e5e7eb;
}

.fk-card-grid.collapsed{

    max-height:0;
    opacity:0;

    pointer-events:none;

    margin:0;
    padding:0;
}


/* =========================
   📂 FALLÜBERSICHT
========================= */

.fall-overview-wrapper{

    margin-top:24px;

    display:flex;
    flex-direction:column;

    gap:18px;
}

.fall-overview-group{

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius: var(--radius-md);

    padding:10px;

    box-shadow: 0 1px 2px rgba(20,40,60,.04),0 6px 20px rgba(20,40,60,.05);
}



.fall-overview-group.ohne-fk{

    border-color:#fecaca;

    background:#fff7f7;
}

.fall-overview-headline{

    display:flex;

    align-items:center;

    justify-content:space-between;

     cursor: pointer;

     padding-bottom: 5px;
    
}

.fall-overview-count{

    background:#f3f4f6;

    border-radius: var(--radius-pill);

    padding:2px 10px;

    font-size:12px;
}

.fall-overview-list{

    display:flex;

    flex-direction:column;

    
}

.fall-overview-item{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:#111827;
    padding:5px 12px;
    border-radius: var(--radius-xl);
    transition:all .15s ease;
    position:relative;
    cursor:pointer;
}

.fall-overview-item:hover{

    transform:translateX(3px);

    background:#f9fafb;
}

.fall-overview-dot {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
background:#9ca3af;
outline: 1px solid rgb(198, 198, 198);
}

.fall-overview-dot.typ-beschuetzt{
    background:#fff5f5 !important;
}

.fall-overview-dot.typ-begleitet{
    background:#cce5ff !important;
}

.fall-overview-dot.typ-uebergabe{
    background:#b45309 !important;
}

.fall-overview-meta{

    font-size:11px;

    color:#9ca3af;

    margin-left:4px;

    font-weight:500;

    white-space:nowrap;
}


.fall-warning{

    color: indianred;


    margin-left:4px;

}

```css
.fall-overview-headline.toggleable{

    cursor:pointer;

    user-select:none;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:10px;
}

.fall-overview-headline-left{

    display:flex;

    align-items:center;

    gap:8px;


}


/* =========================
   🔥 FALL TYP DOT
========================= */

.info-typ .fall-overview-dot{

    display:inline-block;

    width:10px;
    height:10px;

    border-radius:50%;

    margin-right:8px;

    vertical-align:middle;

    flex-shrink:0;
}


/* =========================
   🔥 EYE TOGGLE
========================= */

.fall-overview-eye{

    width:18px;
    height:18px;

    position:relative;

    display:flex;

    align-items:center;
    justify-content:center;

    flex-shrink:0;

    color:#666;
}

.fall-overview-eye svg{

    position:absolute;

    width:16px;
    height:16px;

    stroke:currentColor;

    fill:none;

    overflow:visible;
}


/* 🔥 STANDARD = OFFEN */

.fall-overview-eye .eye-open{

    opacity:1;

    transition:opacity 0.2s ease;
}

.fall-overview-eye .eye-closed{

    opacity:0;

    transition:opacity 0.2s ease;
}


/* 🔥 CLOSED STATE */

.fall-overview-group.closed .eye-open{
    opacity:0;
}

.fall-overview-group.closed .eye-closed{
    opacity:1;
}


/* 🔥 LISTE ZUKLAPPEN */

.fall-overview-group.closed .fall-overview-list{

    display:none;
}

.icon-fachkraft{

    width:16px;
    height:16px;

    object-fit:contain;

    flex-shrink:0;

    opacity:0.85;
}

.fall-overview-headline-right{

    display:flex;

    align-items:center;

    gap:8px;

    flex-shrink:0;

    white-space:nowrap;
}


.fk-headline-name{

    display:flex;

    align-items:center;

    gap:6px;
}

.fk-warning{

    font-size:13px;

    color:#e67e22;

    flex-shrink:0;
}


.fall-overview-left{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
}

.fall-delete-btn{
    display:flex;
    align-items:center;
    justify-content:center;

    width:18px;
    height:18px;

    color:#555;

    border-radius: var(--radius-xs);

    opacity:0.35;

    transition:all .18s ease;

    flex-shrink:0;
    position:relative;
    z-index:2;
}

.fall-delete-btn:hover{

    opacity:1;

    background:rgba(0,0,0,0.06);

    transform:scale(1.08);
}

.fall-delete-btn svg{
    display:block;
}

.fall-overview-name-link{

    color:inherit;

    text-decoration:none;

    transition:opacity .18s ease;
}

.fall-overview-name-link:hover{

    opacity:.72;
}


.fall-overview-left{
    display:flex;
    align-items:center;
    gap:6px;
    min-width:0;
}

.fall-weekday-dots{
    display:flex;
    align-items:center;
    gap:3px;
    flex-shrink:0;
}

.fall-weekday-dot{
    border:0;
    background:#eef2ff;
    color:#1f2937;
    font-size:10px;
    line-height:1;
    padding:3px 5px;
    border-radius: var(--radius-pill);
    cursor:pointer;
    font-weight:600;
    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
        position:relative;
    z-index:2
}

.fall-weekday-dot:hover{
    background:#111827;
    color:#fff;
    transform:translateY(-1px);
}

.fall-overview-name-link{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}


.fk-headline-status{
    display:flex;
    align-items:center;
    gap:10px;
}

.fk-status-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    flex-shrink:0;
    transition:all .2s ease;
}

.fk-status-dot.active{
    background:var(--c-success);
    box-shadow:
        0 0 0 3px rgba(34,197,94,0.18);
}

.fk-status-dot.inactive{
    background:#9ca3af;
}

.weekday-chip.today-chip{

color: green;

}


/* NEU */
.fall-overview-link{
    color:inherit;
    text-decoration:none;
    font-weight:500;
    position:static;
}

.fall-overview-link::after{
    content:'';
    position:absolute;
    inset:0;
    z-index:1;
    border-radius:inherit;
}
.fall-overview-link:hover{
    opacity:.72;
}



.stat-link{

    text-decoration:none;
    color:inherit;

    transition:.18s ease;
}

.stat-link:hover{

    transform:translateY(-1px);
    opacity:.88;
}

#jump-ohne-fk{
    cursor:pointer;
}

.focus-alert{

    border:3px solid var(--c-danger) !important;

    box-shadow:
        0 0 0 4px rgba(239,68,68,.16),
        0 0 24px rgba(239,68,68,.28);

    animation:
        fkAlertPulse .7s ease infinite;
}

@keyframes fkAlertPulse{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.01);
    }

    100%{
        transform:scale(1);
    }
}


.termin.missing-fk{

    opacity:1 !important;

    border:2px solid var(--c-danger) !important;

    box-shadow:
        0 0 0 2px rgba(239,68,68,.10);

    background:
        linear-gradient(
            135deg,
            rgba(239,68,68,.03),
            rgba(239,68,68,.07)
        );
}



.info-box.missing-fk-card{

    outline:3px solid var(--c-danger) !important;

    box-shadow:
        0 0 0 3px rgba(239,68,68,.10);

    opacity:1 !important;

    position:relative;
}


.manual-vorschlag-wrapper{
    margin-top:8px;
}

.manual-vorschlag-toggle{

    font-size:12px;
    color:#666;

    cursor:pointer;

    display:inline-flex;
    align-items:center;
    gap:6px;

    padding:4px 8px;

    border-radius: var(--radius-md);

    transition:all .15s ease;
}

.manual-vorschlag-toggle:hover{
    background:#f3f3f3;
    color:#111;
}

.manual-vorschlag-box{
    margin-top:8px;
    position:relative;
}

.manual-vorschlag-date{


    width:1px;
    height:1px;

    opacity:0;

    pointer-events:none;
}


.flatpickr-input{
    display:none;
}



/* 🔵 EIGENER TERMIN */
.timeline-core-own{

   

    transform:scale(1.01);

    z-index:5;

    cursor:pointer;

    transition:all .15s ease;
}

/* 🔥 Hover */
.timeline-core-own:hover{

      
transform: translateX(-1px);
transform: translateY(-1px);
}

/* ⚪ Fremde Termine */
.timeline-core-foreign{

    opacity:0.72;

    filter:saturate(0.75);

    cursor:default;
}

.inline-save-vorschlag {
    border: 0;
    appearance: none;
}

#confirmBackdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9998;
}

.inline-confirm-box {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 260px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    padding: 16px;
}



.inline-confirm-meta {
    display: block;
    margin-top: 4px;
    opacity: 0.75;
}

.inline-confirm-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.inline-confirm-save {
    background: var(--c-success);
    color: #fff;
    border: 0;
    border-radius: var(--radius-md);
    padding: 6px 10px;
    cursor: pointer;
}

.inline-confirm-cancel {
    background: #eee;
    color: #333;
    border: 0;
    border-radius: var(--radius-md);
    padding: 6px 10px;
    cursor: pointer;
}



.inline-confirm-cancel:hover, .inline-confirm-save:hover {

transform: translateX(-1px);
transform: translateY(-1px);

}

/* 🔥 Termin-Aktionspopup */
.termin-action-popup {

    position:absolute;

    top:calc(100% + 6px);
    left:0;

    z-index:5000;

    min-width:190px;

    background:#fff;

    border:1px solid rgba(0,0,0,0.08);

    border-radius: var(--radius-lg);

    padding:8px;

    box-shadow:
        0 10px 24px rgba(0,0,0,0.16);

    backdrop-filter:blur(8px);
}

/* Titel */
.termin-action-popup strong {

    display:block;

    font-size:12px;
    font-weight:600;

    color:#444;

    margin-bottom:8px;
}

/* Buttonbereich */
.termin-action-popup .inline-confirm-actions {

    display:flex;

    gap:6px;
}

/* Basis */
.termin-action-popup a,
.termin-action-popup button {

    appearance:none;
    border:none;

    text-decoration:none;

    border-radius: var(--radius-md);

    padding:8px 10px;

    font-size:12px;
    font-weight:600;

    cursor:pointer;

    transition:
        background 0.14s ease,
        transform 0.14s ease;

    display:flex;
    align-items:center;

    width:100%;

    box-sizing:border-box;
}

/* ✏️ Bearbeiten */
.termin-action-edit {

    background:#eef4ff;
    color:var(--c-primary-dark);
}

.termin-action-edit:hover {

    background:#dbeafe;

    transform: translateX(-1px);
transform: translateY(-1px);
}

/* 🗑 Löschen */
.termin-action-delete {

    background:#fff1f1;
    color:var(--c-danger-dark);
}

.termin-action-delete:hover {

    background:#ffe2e2;

transform: translateX(-1px);
transform: translateY(-1px);
}

/* ❌ Abbrechen */
.termin-action-cancel {

    background:#f4f4f5;
    color:#555;
}

.termin-action-cancel:hover {

    background:#e5e7eb;
    transform: translateX(-1px);
transform: translateY(-1px);
}

.focus-faelle-box {
outline: 3px solid var(--c-danger) !important;
box-shadow: 0 0 0 3px rgba(239,68,68,.10);
opacity: 1 !important;
position: relative;


outline: 3px solid var(--c-danger) !important;

opacity: 1 !important;
position: relative;
/* outline: 3px solid var(--c-danger) !important; */
/* box-shadow: 0 0 100px 4px rgba(255, 5, 5, 0.1) inset; */
opacity: 1 !important;
position: relative;
display: flex;
flex-direction: column;
/* min-height: 280px; */
/* height: 100%; */
/* box-sizing: border-box; */
border-radius: var(--radius-xl);
overflow: hidden;
/* width: 100%; */
/* max-width: 420px; */
padding: 10px;
margin-top: 20px;
}


.focus-fall-title {
/* background-color: antiquewhite; */
/* padding: 10px; */
/* border-radius: var(--radius-md); */
border-bottom: 1px dashed color(srgb 0.9225 0.9294 0.9417);
margin: 20px 0px 10px;
}


.focus-faelle-headline {
    font-size: large;
color: color(srgb 0.9857 0.1783 0.1775);
margin-bottom: 10px;
margin-left: 10px;
}


.focus-faelle-list {
    padding-left: 10px;
}

.fall-overview-headline {

display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
color: #111827;
padding: 5px 12px;
border-radius: var(--radius-xl);
transition: all .15s ease;


}

.fall-overview-headline:hover {
    transform: translateX(3px);
background: #f9fafb;
}


.info-fk-warn {  
background-color: indianred;
padding: 5px 5px 0px;
border-radius: var(--radius-md);
color: #fff;
}

.planung-warning{
    margin:15px 0 20px 10px;
    padding:12px 16px;
    border-radius: var(--radius-lg);
    background:#fff8e1;
    border:1px solid #f5c542;
    color:#7a5a00;
    font-size:14px;
    line-height:1.4;
}

/* =====================================================
   Vorschlag verschieben Dialog
   ===================================================== */

.proposal-move-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 99999;

    backdrop-filter: blur(2px);
}

.proposal-move-box {
    width: 500px;
    max-width: calc(100vw - 40px);

    background: #fff;

    border-radius: var(--radius-xl);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.20);

    overflow: hidden;
}

.proposal-move-header {
    padding: 18px 22px;

    border-bottom: 1px solid #ececec;

    font-size: 20px;
    font-weight: 600;

    color: #222;
}

.proposal-move-text {
    padding: 20px 22px 10px 22px;

    font-size: 15px;
    line-height: 1.5;

    color: #555;
}

.proposal-move-actions {
    padding: 0 22px 22px 22px;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proposal-move-btn {
    border: none;

    border-radius: var(--radius-lg);

    padding: 14px 18px;

    cursor: pointer;

    font-size: 15px;
    font-weight: 600;

    transition: all .15s ease;
}

.proposal-move-btn:hover {
    transform: translateY(-1px);
}

.proposal-move-btn-single {
    background: var(--c-success);
    color: #fff;
}

.proposal-move-btn-single:hover {
    background: #43a047;
}

.proposal-move-btn-series {
    background: var(--c-primary-dark);
    color: #fff;
}

.proposal-move-btn-series:hover {
    background: var(--c-primary-dark);
}

.proposal-move-btn-cancel {
    background: #f3f4f6;
    color: #555;
}

.proposal-move-btn-cancel:hover {
    background: #e5e7eb;
}

.proposal-move-arrow {
    color: var(--c-success);
    font-weight: 700;
    margin: 0 6px;
}


.flatpickr-day {
border-radius: var(--radius-md)!important;
margin-top: 2px!important;
margin-bottom: 2px!important;
height: 30px!important;
line-height: 30px!important;
}

.timeline-gap-strip{

    width:100%;

    display:flex;

    flex-direction:column;

    align-items:center;

    margin:12px 0;
}



.gap-arrow-top,
.gap-arrow-bottom{

    width:20px;

    text-align:center;

    font-size:12px;

    color:#999;

    line-height:1;

    margin:2px 0;
}

.timeline-gap-days{

    display:flex;

    flex-wrap:nowrap;

    align-items:flex-start;

    overflow:hidden;

    margin-left:2px;
}

.gap-tick{

    width:18px;

    display:flex;

    flex-direction:column;

    align-items:center;

    flex:0 0 auto;
}

.gap-label{

    font-size:9px;

    color:#777;

    margin-bottom:4px;

    line-height:1;
}

.gap-line{

    width:2px;

    height:18px;

    background:#d0d0d0;

    border-radius: var(--radius-xs);
}

.gap-weekend .gap-line{

    background:#ffbdbd;
}

.gap-weekend .gap-label{

    color:#d66;
}


.gap-turnus .gap-line{

    background:var(--c-primary);

    width:4px;

    height:26px;
}

.gap-turnus .gap-label{

    color:var(--c-primary);

    font-weight:700;
}

.gap-arrow{

    color:var(--c-primary);

    font-size:10px;

    line-height:1;

    margin-top:2px;
}


#atlasTimelineNav{

    position:fixed;

    right:12px;
    top:300px;
    bottom:300px;
    width:20px;
    z-index:5000;
    pointer-events:none;
}

.atlas-nav-marker{

    position:absolute;

    right:0;

    width:20px;
    height:3px;

    border-radius: var(--radius-pill);

    opacity:.75;

    cursor:pointer;

    pointer-events:auto;

    padding: unset;

    transition:.15s;
}

.atlas-nav-marker:hover{

    width:25px;
    height: 4px;
    opacity:1;
}



.atlas-nav-marker.active{

    width:25px;
    height:3px;

    opacity:1;

    
}


.atlas-nav-marker.termin{
    background:#202020;
}

.atlas-nav-marker.vorschlag{
    background:#aaa;
}

.atlas-nav-marker.eltern{
    background:#fbbe6d;
}

.atlas-nav-marker.kennenlernen{
    background:#fbbe6d;
}

.atlas-nav-marker.bericht{
   background: #f0ff9a;
    outline: 1px solid var(--t4-gray-500);
    border-radius: 1px;
}


.atlas-nav-marker.abschlussbericht {
    background: #e1fad7;
}

.atlas-tooltip{

    position:fixed;

    padding:6px 10px;

    background:#fff;
    color:#000;

    font-size:12px;

    border: 1px solid #ccc;

    border-radius: var(--radius-md);

    pointer-events:none;

    z-index:999999;

    opacity:0;

    transition:.15s;
}


/* =========================================================
   DRAG & RESIZE – TERMINVORSCHLÄGE
========================================================= */

.slot-core--ok[data-drag-init],
.slot-core--conflict[data-drag-init] {
    user-select: none;
    touch-action: none;
}

.slot-core--ok[data-drag-init]:active {
    cursor: grabbing !important;
}

/* Resize-Indikator rechts */
.slot-core--ok::after,
.slot-core--conflict::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius-xs);
    cursor: ew-resize;
    pointer-events: none;
}


.nachholtermin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
}



.timeline-event.abschlussbericht {
background-color: rgb(225, 250, 215);
padding: 3%;
text-align: center;
font-size: larger;
border-radius: var(--radius-md);
}



.planungsstand-zeile {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 12px 0 8px;
    font-size: 13px;
}

.ps-item {
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid lightgray;
    margin-left: 10px;
}


.ps-erreicht     {font-weight: 700; }



.atlas-nav-marker.planung-hinweis {
    background: rgb(255, 98, 98);
}


.planung-actions {
    margin: 8px 0 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.btn-apple--primary {
    background: var(--c-primary);
    color: #fff !important;
    border-color: var(--c-primary-dark);
}

.btn-apple--nachhole {
    background: #fff3e0;
    color: #fff !important;
    border-color: #ffcc80;
    position: relative;
}

.badge-nachholbedarf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e65100;
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    vertical-align: middle;
}

.nachholtermin-wrapper {
    position: relative;
}

.nachholtermin-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 9999;
    min-width: 300px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
}

.nachholtermin-dropdown-inner {
    padding: 14px 16px;
}

.nachholtermin-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: background 0.15s;
    margin-bottom: 4px;
}

.nachholtermin-option:hover {
    background: #f5f5f5;
}

.nachholtermin-datum  { font-weight: 600; flex: 1; }
.nachholtermin-uhrzeit{ color: #888; font-size: 12px; }
.nachholtermin-arrow  { color: var(--c-primary); font-weight: 700; margin-left: auto; }

.planung-warning-budgetmax {
    background-color: rgb(255, 229, 229);
    color: #9c0000;
    padding: 10px;
    border-radius: var(--radius-md);
    text-align: center;
}



.planungsbereich {
padding: 10px;
margin-left: 10px;
border: 1px solid lightgray;
border-radius: var(--radius-md);
background-color: #fff;
}


/* =====================================================
   Berichte – die ganze .timeline-day-box einfärben
   (NICHT den .bericht-marker). Die Status-Klasse hängt
   direkt an der Box (kommt aus dem PHP-Helfer $berichtBoxClass).
   In die bestehende Stylesheet-Datei übernehmen (assets/style.css).
   ===================================================== */

/* Graue Grundoptik jeder Box, die einen Bericht enthält. */
.timeline-day-box.bericht-box {
    background: #f0ff9a;
    border: 1px solid #e3e6ea;
    border-radius: var(--radius-md);
}

/* Status-Akzente direkt an der Box.
   Wer ALLES gleichmäßig grau will, löscht die nächsten drei Regeln. */
.timeline-day-box.bericht-faellig      { border-left-color: #e0a800; }                 /* gelb: jetzt fällig */
.timeline-day-box.bericht-ueberfaellig { border-left-color: var(--c-danger); background: #fcf4f4; } /* rot: überfällig */
.timeline-day-box.bericht-erledigt     { border-left-color: var(--c-success); }                 /* grün: erledigt */

/* Marker selbst: keine eigene Box mehr, nur Text.
   !important neutralisiert evtl. noch vorhandene Inline-Farben am Marker. */
.bericht-marker {
    background: transparent !important;
    border: 0 !important;
    padding: 8px 12px;
    color: #3a4a5a;
}
.bericht-marker-title   { font-weight: 600; }
.bericht-marker-date    { font-weight: 400; opacity: .8; }
.bericht-marker-status  { font-size: 12px; margin-top: 2px; color: #6b7480; }
.bericht-marker-actions { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.bericht-marker-actions .btn-apple { font-size: 12px; padding: 4px 10px; }

/* Status-Textfarben (optional) – über die Box-Klasse angesteuert. */
.timeline-day-box.bericht-ueberfaellig .bericht-marker-status { color: var(--c-danger-dark); font-weight: 600; }
.timeline-day-box.bericht-erledigt     .bericht-marker-status { color: var(--c-success-dark); }



/* === Eltern-/Kennenlerngespräche – Timeline-Vorschläge === */

.gespraech-day {
    margin: 6px 0;
}

/* Badge "Vorschlag · Elterngespräch / Kennenlerngespräch"
   -> im Markup die Inline-Styles durch class="gespraech-badge" ersetzen */
.gespraech-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #fff;
    background: #8e44ad;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 6px;
}

.gespraech-active-date {
    font-size: 13px;
    font-weight: 600;
    margin: 2px 0 4px;
}

.gespraech-chips-toggle {
    font-size: 12px;
    color: #8e44ad;
    cursor: pointer;
    margin: 0 0 4px;
    -webkit-user-select: none;
    user-select: none;
}

.gespraech-chips {
    display: none;            /* per JS auf flex umgeschaltet */
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 6px;
}

/* Tageschip – Hintergrund/Farbe/Rahmen bleiben inline (abhängig von Verfügbarkeit) */
.gespraech-chip {
    text-decoration: none;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    min-width: 34px;
}

/* Büro-Track */
.gespraech-track {
    position: relative;
    min-height: 44px;
}

/* Shadow-Backdrop für normale Umgang-Terminvorschläge (Puffer-L + Slot + Puffer-R) */
.vorschlag-shadow-group {
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
    transition: box-shadow 0.18s ease;
}
.vorschlag-shadow-group.is-hovered {
    box-shadow: 0 4px 14px rgba(0,0,0,0.20);
}

/* Verschiebbarer Vorschlagsblock – left/width/top/bottom bleiben inline */
.gespraech-slot {
    background: rgb(232,245,233);
    border: 1px solid rgb(165,214,167);
    border-radius: var(--radius-sm);
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: grab;
    z-index: 800;
    overflow: visible;
    -webkit-user-select: none;
    user-select: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
    transition: box-shadow 0.18s ease;
}
.gespraech-slot:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.20);
}

.gespraech-slot-label {
    padding: 0 4px;
    white-space: normal;
    line-height: 1.12;
    font-size: 10px;
    word-break: break-word;
    hyphens: auto;
    pointer-events: none;
    text-align: center;
}

/* Verfügbarkeitsbalken (blau) – height bleibt inline (Anzahl Personen) */
.gespraech-verf {
    position: relative;
    margin-top: 3px;
}

/* Einzelner blauer Balken – left/width/top bleiben inline */
.verf-bar {
    height: 17px;
    background: rgba(33,150,243,0.25);
    border: 1px solid rgba(33,150,243,0.7);
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.verf-bar > span {
    position: absolute;
    left: 4px;
    font-size: 11px;
    white-space: nowrap;
    color: var(--body-text-color);
}

.gespraech-busy-data {
    display: none;
}

.gespraech-dayset {
    /* aktiver Tag sichtbar, Rest per inline display:none ausgeblendet */
}













/* =========================================================
   KAPAZITÄTS-FARBSKALA (freie Slots pro Tag)
   -> Inhalt an das Ende von
      /components/com_umgang/assets/style.css anhängen.
   ========================================================= */

/* Tagesfarbe nach freien Slots.
   !important nur belassen, falls bestehende .mini-day-Regeln
   den Hintergrund sonst überschreiben. */
.mini-day.kap-frei   { background: #e7f6ec !important; }  /* viel frei   */
.mini-day.kap-mittel { background: #fff7e0 !important; }  /* mittel      */
.mini-day.kap-knapp  { background: #ffe9d6 !important; }  /* knapp       */
.mini-day.kap-voll   { background: #fde0e0 !important; }  /* ausgebucht  */
.mini-day.kap-none   { background: transparent; }         /* geschlossen */

/* Mini-Day: Datum oben, Slot-Angabe darunter – beide zentriert.
   Erzwingt vertikale Anordnung, falls .mini-day sonst die Kinder
   nebeneinander setzt (z. B. display:flex ohne column). */
.mini-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mini-day-num {
    display: block;
    text-align: center;
    line-height: 1.1;
}

/* (x von y) zentriert unter dem Datum */
.kap-badge {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1px;
    font-size: 9px;
    line-height: 1.1;
    font-weight: 600;
    color: #555;
    pointer-events: none;
}
.mini-day.kap-frei   .kap-badge { color: #2e9e54; }
.mini-day.kap-mittel .kap-badge { color: #b07e00; }
.mini-day.kap-knapp  .kap-badge { color: #c75c00; }
.mini-day.kap-voll   .kap-badge { color: #d13434; }

/* Diagramm-Balken in gleicher Skala */
.chart-bar.kap-frei   { background: #2e9e54; }
.chart-bar.kap-mittel { background: #d9a300; }
.chart-bar.kap-knapp  { background: #e8730c; }
.chart-bar.kap-voll   { background: #d13434; }
.chart-bar.kap-none   { background: #c9ccd1; }

/* =========================================================
   LEGENDE / FARBSKALA-ERKLÄRUNG
   ========================================================= */
.kapazitaet-legende {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 10px 4px 4px;
    padding: 8px 10px;
    font-size: 11px;
    color: #444;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
}
.kapazitaet-legende .leg-title {
    font-weight: 700;
    color: #222;
    margin-right: 4px;
}
.kapazitaet-legende .leg-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.kapazitaet-legende .leg-swatch {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    display: inline-block;
}
.kapazitaet-legende .leg-swatch.kap-frei   { background: #e7f6ec; border: 1px solid #2e9e54; }
.kapazitaet-legende .leg-swatch.kap-mittel { background: #fff7e0; border: 1px solid #d9a300; }
.kapazitaet-legende .leg-swatch.kap-knapp  { background: #ffe9d6; border: 1px solid #e8730c; }
.kapazitaet-legende .leg-swatch.kap-voll   { background: #fde0e0; border: 1px solid #d13434; }
.kapazitaet-legende .leg-note {
    flex-basis: 100%;
    color: #888;
    font-size: 10px;
}

/* =========================================================
   KAPAZITÄTS-PANEL "Freie Kapazität"
   (rechts oberhalb der Wochenchips)
   ========================================================= */
.panel-kapazitaet {
    max-width: 380px;
    margin: 4px 0 14px 0;           /* unter dem Kalender, linksbündig */
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(20,40,60,.04),0 6px 20px rgba(20,40,60,.05);
}
.panel-kapazitaet .pk-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.panel-kapazitaet .pk-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}
.panel-kapazitaet .pk-sub {
    font-size: 11px;
    color: #999;
}
.panel-kapazitaet .pk-empty {
    font-size: 12px;
    color: #888;
}

/* Raster Wochentag x Zeitfenster */
.panel-kapazitaet .pk-grid {
    display: grid;
    grid-template-columns: 46px repeat(5, 1fr);
    gap: 5px;
}
.panel-kapazitaet .pk-corner {
    /* leere Ecke oben links */
}
.panel-kapazitaet .pk-colhead {
    text-align: center;
    font-size: 11px;
    color: #777;
}
.panel-kapazitaet .pk-rowhead {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #777;
}
.panel-kapazitaet .pk-cell {
    text-align: center;
    padding: 7px 0;
    border-radius: 6px;
    background: #f1f1f1;
    line-height: 1.05;
}
.panel-kapazitaet .pk-num {
    font-size: 14px;
    font-weight: 600;
}
.panel-kapazitaet .pk-den {
    font-size: 10px;
    opacity: 0.7;
}

/* Farbskala der Zellen (gleiche Logik wie Kalender) */
.panel-kapazitaet .pk-cell.kap-frei   { background: #e7f6ec; color: #2e9e54; }
.panel-kapazitaet .pk-cell.kap-mittel { background: #fff7e0; color: #b07e00; }
.panel-kapazitaet .pk-cell.kap-knapp  { background: #ffe9d6; color: #c75c00; }
.panel-kapazitaet .pk-cell.kap-voll   { background: #fde0e0; color: #d13434; }
.panel-kapazitaet .pk-cell.kap-none   { background: #f1f1f1; color: #999; }

/* Nächster freier Slot */
.panel-kapazitaet .pk-next {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 12px;
}
.panel-kapazitaet .pk-next-label {
    color: #777;
    margin-right: 5px;
}
.panel-kapazitaet .pk-next-val {
    font-weight: 600;
    color: #222;
}

/* Legende */
.panel-kapazitaet .pk-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 10px;
    color: #999;
}
.panel-kapazitaet .pk-leg-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.panel-kapazitaet .pk-swatch {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    display: inline-block;
}
.panel-kapazitaet .pk-swatch.kap-frei   { background: #e7f6ec; border: 1px solid #2e9e54; }
.panel-kapazitaet .pk-swatch.kap-mittel { background: #fff7e0; border: 1px solid #d9a300; }
.panel-kapazitaet .pk-swatch.kap-knapp  { background: #ffe9d6; border: 1px solid #e8730c; }
.panel-kapazitaet .pk-swatch.kap-voll   { background: #fde0e0; border: 1px solid #d13434; }
.panel-kapazitaet .pk-leg-note {
    flex-basis: 100%;
    color: #aaa;
}

/* =========================================================
   FALLKARTEN: Geber/Nehmer unter der Fachkraft + klappbare Details
   ========================================================= */
.info-gebernehmer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 2px 0 6px;
    font-size: 12px;
    color: #444;
}
.info-gebernehmer .info-gn-row {
    line-height: 1.35;
}
.info-gebernehmer .info-gn-label {
    color: #888;
    font-weight: 600;
    margin-right: 4px;
}

/* Klappbarer Detailbereich (alles unterhalb von Geber/Nehmer) */
.info-collapse {
    margin-top: 2px;
}
.info-collapse > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    padding: 4px 0;
    user-select: none;
}
.info-collapse > summary::-webkit-details-marker {
    display: none;
}
.info-collapse > summary::after {
    content: "\25BE";       /* ▾ */
    font-size: 10px;
}
.info-collapse[open] > summary::after {
    content: "\25B4";       /* ▴ */
}
.info-collapse .info-collapse-less {
    display: none;
}
.info-collapse[open] .info-collapse-more {
    display: none;
}
.info-collapse[open] .info-collapse-less {
    display: inline;
}

/* =========================================================
   FALLKARTEN: Aktions-Icons unter Geber/Nehmer
   ========================================================= */
.info-gn-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 2px;
}
.info-gn-actions .gn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #e2e2e2;
    border-radius: 7px;
    background: #fff;
    color: #555;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.info-gn-actions .gn-action:hover {
    background: #f3f4f6;
    color: #222;
    border-color: #cfcfcf;
}
.info-gn-actions .gn-action svg {
    display: block;
}

/* Löschen visuell abgesetzt */
.info-gn-actions .gn-action-danger:hover {
    background: #fde0e0;
    color: #d13434;
    border-color: #f0b5b5;
}

/* "Verschicken" ohne hinterlegte E-Mail: dezent gedämpft */
.info-gn-actions .gn-action-soft {
    opacity: 0.55;
}

/* Senden-Icon neben Geber/Nehmer-Name (Terminübersicht) */
.info-gebernehmer .kontakt-send:hover {
    color: #2e9e54;
}

/* =========================================================
   🏢 Büro-Timeline (Eltern-/Kennenlerngespräche) unter den Räumen
========================================================= */

/* =========================================================
   🎨 Fall-Regel-Icons + schneller, farbiger Tooltip (Touch-tauglich)
========================================================= */
.info-regel-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0 8px;
}

.regel-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    cursor: pointer;
    color: #6b7280;                 /* Ruhezustand: dezentes Grau */
    transition: color .12s ease, transform .12s ease;
    -webkit-tap-highlight-color: transparent;
}
.regel-icon svg { display: block; }

/* Farbe je Regel (im Ruhezustand schon farbig, beim Hover/Tap kräftiger) */
.regel-icon[data-tone="danger"] { --tip: #dc2626; }
.regel-icon[data-tone="info"]   { --tip: #2563eb; }
.regel-icon[data-tone="warn"]   { --tip: #d97706; }

.regel-icon:hover,
.regel-icon:focus,
.regel-icon:focus-visible {
    color: var(--tip, #374151);
    transform: translateY(-1px);
    outline: none;
}

/* ---- Tooltip-Blase (unter dem Icon, da Karte overflow:hidden oben) ---- */
.regel-icon::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 9px);
    left: -4px;
    z-index: 99999;

    background: var(--tip, #1f2937);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .1px;
    padding: 7px 11px;
    border-radius: 9px;

    width: max-content;
    max-width: 220px;
    white-space: normal;
    text-align: left;

    box-shadow: 0 6px 18px rgba(0,0,0,.22);

    opacity: 0;
    transform: translateY(-4px) scale(.97);
    transform-origin: top left;
    pointer-events: none;
    transition: opacity .08s ease, transform .08s ease;   /* schnell */
}

/* kleines Dreieck nach oben */
.regel-icon::before {
    content: "";
    position: absolute;
    top: calc(100% + 3px);
    left: 6px;
    z-index: 99999;
    border: 6px solid transparent;
    border-bottom-color: var(--tip, #1f2937);
    opacity: 0;
    transition: opacity .08s ease;
    pointer-events: none;
}

.regel-icon:hover::after,
.regel-icon:focus::after,
.regel-icon:focus-visible::after {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.regel-icon:hover::before,
.regel-icon:focus::before,
.regel-icon:focus-visible::before {
    opacity: 1;
}

/* =========================================================
   📝 Fallinfos-Button (Note) + Kontaktdaten + Fallinfos-Overlay
========================================================= */

/* .regel-icon kann jetzt auch ein <button> sein -> Reset */
.regel-icon {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
}
.regel-icon[data-tone="note"] { --tip: #0f766e; }   /* Teal */
.info-note-btn:not(.has-notes) { color: #6b7280; }
.info-note-btn.has-notes        { color: var(--tip, #0f766e); }

/* kleiner Punkt, wenn Fallinfos vorhanden sind */
.note-dot {
    position: absolute;
    top: -2px;
    right: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tip, #0f766e);
    box-shadow: 0 0 0 1.5px #fff;
    display: none;   /* nur sichtbar bei neuen/ungelesenen Infos */
}
.info-note-btn.has-unread .note-dot {
    display: block;
}

/* Kompaktere Fallkarten: feste Mindesthöhe aufheben */
.info-box { min-height: 0; }

/* Kontaktdaten in den Details */
.info-kontakte {
    display: grid;
    gap: 8px;
    font-size: 14px;
}
.kontakt-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
}
.kontakt-rolle {
    font-weight: 700;
    color: #374151;
    min-width: 62px;
}
.kontakt-name { font-weight: 600; }
.kontakt-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
}
.kontakt-link:hover { text-decoration: underline; }
.kontakt-amt .kontakt-rolle { color: #0f766e; }
.kontakt-empty { color: #777; }

/* Fallinfos-Overlay */
.overlay-x {
    border: 0;
    background: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0 2px;
}
.fallinfo-list {
    display: grid;
    gap: 6px;
    max-height: 240px;
    overflow: auto;
}
.fallinfo-item {
    background: #f3f4f6;
    border-left: 3px solid #0f766e;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}
.fallinfo-empty { color: #777; font-size: 14px; }
.fallinfo-tag {
    display: inline-block;
    background: #0f766e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    padding: 2px 8px;
    border-radius: 999px;
    margin-right: 8px;
    vertical-align: middle;
    white-space: nowrap;
}
.fallinfo-text { vertical-align: middle; }
.fallinfo-add-row {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.fallinfo-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
    font-size: 14px;
    resize: vertical;
}

/* =========================================================
   🛑 Fall-Status-Buttons (pausieren / beenden) + Beenden-Modal
========================================================= */
.info-fall-actions {
    display: flex;
    gap: 8px;
    margin: 8px 0 4px;
}
.fall-btn {
    flex: 1;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}
.fall-btn-pause {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}
.fall-btn-pause:hover { background: #ffedd5; }
.fall-btn-end {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}
.fall-btn-end:hover { background: #fee2e2; }

.overlay-btn-danger { background: #b91c1c !important; }
.fallend-hint {
    font-size: 13px;
    line-height: 1.45;
    color: #444;
    background: #fef2f2;
    border-left: 3px solid #b91c1c;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 0 0 10px;
}
.fallend-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 4px;
}

/* =========================================================
   ⏸️ Pausierte-Fälle-Gruppe (Übersicht unten links)
========================================================= */
.fall-overview-group.pausiert .fall-overview-headline-left { color: #6b7280; }
.fall-overview-group.pausiert .fall-overview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.fall-overview-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fall-resume-btn {
    flex: none;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
    border-radius: 8px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.fall-resume-btn:hover { background: #dcfce7; }

/* Fall beenden: gleiche Icon-Optik wie die übrigen .gn-action,
   nur dezent roter Hover als Hinweis auf die starke Aktion */
.gn-action-end:hover { color: #b91c1c; }

/* =========================================================
   🗓️ Kalender als weiße Karte + integrierte Kapazitäts-Legende
   (Seitenhintergrund ist hellgrau -> Kästen einheitlich #fff)
========================================================= */
.global-calendar-block {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px 12px 6px;
    margin: 0 0 12px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(20,40,60,.04),0 6px 20px rgba(20,40,60,.05);
}

/* Legende sitzt jetzt IM Kalenderblock -> kein eigener grauer Kasten,
   sondern dezenter Fuß mit Trennlinie */
.kapazitaet-legende {
    background: #fff;
    border: 0;
    border-top: 1px solid #eee;
    border-radius: 0;
    margin: 8px 0 0;
    padding: 8px 2px 2px;
}

/* =========================================================
   🔗 Verknüpfung Timeslot <-> Fallkarte (Hover-Highlight)
   Macht eindeutig, dass die Fallkarte die Detailansicht des
   Timeslots oben ist – auch bei mehreren Terminen pro Tag.
========================================================= */
.info-box.linked-hl,
.termin.linked-hl,
.termin-buero.linked-hl {
    box-shadow: 0 0 0 1px #2563eb, 0 3px 8px rgba(37, 99, 235, 0.18) !important;
    border-color: lightyellow; !important;
    z-index: 6;
}
.info-box.linked-hl {
    background: #eff6ff;
}
/* Slots zeigen, dass sie zur Karte führen */
.termin,
.termin-buero {
    cursor: pointer;
}

/* =========================================================
   🧾 Berichte-Block unter den Fallkarten
========================================================= */
.berichte-block {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0px 0px 12px 12px;
    padding: 14px 16px;
    margin: -1px 0 8px;
    box-sizing: border-box;
}
.berichte-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.berichte-title {
    font-size: 15px;
    font-weight: 800;
    color: #1f2937;
}
.berichte-count {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 1px 9px;
}
.berichte-empty {
    font-size: 14px;
    color: #777;
}
.berichte-list {
    display: grid;
    gap: 8px;
}
.berichte-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border: 1px solid #eee;
    border-left: 4px solid #9ca3af;
    border-radius: 10px;
    padding: 9px 12px;
    background: #fafafa;
}
.berichte-row.dringend {
    border-left-color: #e8730c;
    background: #fff7ed;
}
.berichte-row.abschluss {
    border-left-color: #c62828;
    background: #fef2f2;
}
.berichte-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.berichte-typ {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}
.berichte-fall {
    font-size: 13px;
    color: #374151;
}
.berichte-fk {
    font-size: 12px;
    color: #6b7280;
}
.berichte-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.berichte-when {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
}
.berichte-row.dringend .berichte-when { color: #c2410c; }
.berichte-row.abschluss .berichte-when { color: #b91c1c; }
.berichte-remind {
    flex: none;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 8px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.berichte-remind:hover { background: #e0e7ff; }

/* Erinnerungs-Zähler im Berichte-Block */
.berichte-rem {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-top: 1px;
}
.berichte-row.dringend .berichte-rem { color: #c2410c; }
.berichte-row.abschluss .berichte-rem { color: #b91c1c; }

/* =========================================================
   🔁 Vertretungsplanung
========================================================= */
.vtr-block {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0px 0px 12px 12px;
    padding: 14px 16px;
    margin: -1px 0 8px;
    box-sizing: border-box;
}

.umg-tab-btn {
    border-bottom: 1px solid #eee;
}
.vtr-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}
.vtr-title { font-size: 15px; font-weight: 800; color: #1f2937; }
.vtr-sub   { font-size: 12px; color: #9ca3af; }

.vtr-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}
.vtr-field { display: flex; flex-direction: column; gap: 3px; }
.vtr-field > span { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; }
.vtr-field select,
.vtr-field input[type="date"] {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 14px;
    background: #fff;
    color: #1f2937;
    height: 35px;
}
.vtr-show-btn {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.vtr-show-btn:hover { background: #1d4ed8; }

.vtr-result-head {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #374151;
}
.vtr-empty { margin-top: 10px; font-size: 14px; color: #777; }

.vtr-faelle { display: grid; gap: 8px; margin-top: 10px; }
.vtr-fall {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid #eee;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    padding: 9px 12px;
    background: #f8fafc;
}
.vtr-fall-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vtr-fall-titel { font-size: 14px; font-weight: 700; color: #1f2937; }
.vtr-fall-meta  { font-size: 12px; color: #6b7280; }

.vtr-assign { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vtr-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 13px;
    background: #fff;
    color: #1f2937;
    max-width: 220px;
    height: 35px;
}
.vtr-btn {
    border: 1px solid #16a34a;
    background: #16a34a;
    color: #fff;
    border-radius: 8px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.vtr-btn:hover { background: #15803d; }

.vtr-kap { margin-top: 12px; }
.vtr-kap-title { font-size: 12px; font-weight: 700; color: #6b7280; }
.vtr-kap-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vtr-kap-item {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 2px 10px;
}
.vtr-kap-item.frei {
    background: #dcfce7;
    color: #15803d;
}

/* Vertretungsanfragen-Liste */
.vtr-invites {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.vtr-invites-title {
    font-size: 12px;
}
.vtr-invites-list { display: grid; gap: 6px; margin-top: 8px; }
.vtr-invite {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.vtr-invite-main { font-size: 13px; color: #1f2937; min-width: 0; }
.vtr-invite-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7280; white-space: nowrap; }
.vtr-invite-when { color: #9ca3af; }
.vtr-status {
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 9px;
}
.vtr-status-offen { background: #fef3c7; color: #92400e; }
.vtr-status-zu    { background: #dcfce7; color: #15803d; }
.vtr-status-ab    { background: #fee2e2; color: #b91c1c; }

/* Pro-Fall: Anfragen-Chips + Zusage-Status */
.vtr-fall.erledigt {
    border-left-color: #16a34a;
    background: #f0fdf4;
}
.vtr-resolved {
    font-size: 13px;
    font-weight: 700;
    color: #15803d;
    white-space: nowrap;
}
.vtr-fall-invites {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
}
.vtr-fall-invites-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.vtr-inv-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 2px 4px 2px 10px;
}

/* Übersichtszeile: von → zu, Fall gekürzt, Link zum Formular */
.vtr-arrow { color: #9ca3af; font-weight: 700; margin: 0 2px; }
.vtr-invite-main {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    min-width: 0;
}
.vtr-invite-fall {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #374151;
}
.vtr-invite-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: #2563eb;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    text-decoration: none;
}
.vtr-invite-link:hover { background: #e0e7ff; }

/* Lange Fallnamen auch in den Fall-Karten kürzen */
.vtr-fall-titel {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Übersicht: Gruppierung nach Fall */
.vtr-invite-group { margin-top: 10px; }
.vtr-invite-group:first-of-type { margin-top: 8px; }
.vtr-invite-fallhead {
    /* font-size: 13px; */
    /* font-weight: 800; */
    color: #1f2937;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-bottom: 1px solid lightgray;
}

/* Vertretung-Overlay in Karten & Timeline */
.fk-struck { text-decoration: line-through; opacity: .6; }
.info-fk-vertreten { display: inline-flex; flex-direction: column; gap: 1px; }
.fk-vertretung {
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
}
.slot-vertretung {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #15803d;
    line-height: 1.1;
}

/* Offene Vertretungsanfrage im Fallkärtchen */
.fk-angefragt {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #b45309;
}

/* Termin-Links in der Vertretungsübersicht */
.vtr-invite-termine {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    padding-top: 6px;
    border-top: 1px dashed #eef0f3;
}
.vtr-invite-termine-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
}
.vtr-termin-chip {
    font-size: x-small;
    /* font-weight: 600; */
    color: #2563eb;
    background: #eff6ff;
    /* border: 1px solid #bfdbfe; */
    border-radius: 999px;
    padding: 2px 10px;
    text-decoration: none;
    white-space: nowrap;
}

/* =========================================================
   🔁 Vertretungsplanung – Link zur Fallplanung + Status hinfällig
========================================================= */
.vtr-invite-fallhead {
    display: flex;
    align-items: center;
    gap: 6px;
}
.vtr-fallhead-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.vtr-fall-titel-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.vtr-fall-plan-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: #2563eb;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    text-decoration: none;
}
.vtr-fall-plan-link:hover { background: #e0e7ff; }

.vtr-status-hin { background: #e5e7eb; color: #4b5563; }

/* =========================================================
   🔁 Vertretungsplanung – Zeitraum-Picker (Start/Ende in einem Kalender)
========================================================= */
.vtr-field-range { position: relative; }
.vtr-daterange { position: relative; }
.vtr-range-display {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 230px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 11px;
    font-size: 14px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
}
.vtr-range-display:hover { border-color: #9ca3af; }
.vtr-range-display svg { color: #6b7280; flex: none; }

.vtr-cal-pop {
    position: absolute;
    z-index: 50;
    top: calc(100% + 6px);
    left: 0;
    width: 280px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(0,0,0,.16);
    padding: 12px;
}
.vtr-cal-pop[hidden] { display: none; }
.vtr-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.vtr-cal-title { font-size: 14px; font-weight: 800; color: #1f2937; }
.vtr-cal-nav {
    width: 28px;
    height: 28px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 7px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #374151;
}
.vtr-cal-nav:hover { background: #f3f4f6; }
.vtr-cal-weekdays,
.vtr-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.vtr-cal-weekdays {
    margin-bottom: 4px;
}
.vtr-cal-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    padding: 2px 0;
}
.vtr-cal-day {
    border: none;
    background: transparent;
    border-radius: 7px;
    height: 34px;
    font-size: 13px;
    color: #1f2937;
    cursor: pointer;
}
.vtr-cal-day:hover { background: #eef2ff; }
.vtr-cal-day.other-month { color: #cbd5e1; }
.vtr-cal-day.in-range { background: #e0e7ff; border-radius: 0; }
.vtr-cal-day.range-start,
.vtr-cal-day.range-end {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
}
.vtr-cal-day.range-start { border-radius: 7px 0 0 7px; }
.vtr-cal-day.range-end { border-radius: 0 7px 7px 0; }
.vtr-cal-foot {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}
.vtr-cal-hint { font-size: 12px; color: #6b7280; }

/* Vertretung: einzelne Termine je Fall (statt Anzahl + Bereich) */
.vtr-fall-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #6b7280;
}
.vtr-fall-termin { display: block; white-space: nowrap; }

/* Übersicht: übrige Anfragen einklappen, wenn es eine Zusage gibt */
.vtr-invites-toggle {
    margin-top: 4px;
    align-self: flex-start;
    background: none;
    border: none;
    padding: 2px 0;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
}
.vtr-invites-toggle:hover { text-decoration: underline; }
.vtr-invites-rest[hidden] { display: none; }
.vtr-invites-rest {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    padding-left: 10px;
    border-left: 2px solid #eef2ff;
}

/* Vertretung aufheben (Übersicht) */
.vtr-invite-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    color: #b91c1c;
    border: 1px solid #fecaca;
    background: #fef2f2;
    text-decoration: none;
    margin-left: 4px;
}
.vtr-invite-del:hover { background: #fee2e2; }

/* Fallkärtchen: Fall-Name oberhalb der Umgangsart */
.info-fallname {
    display: block;
    width: 100%;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.25;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
    word-break: break-word;
}

/* Übersicht: erneute Vertretungsanfrage, wenn alle abgesagt haben */
.vtr-reask {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
}
.vtr-reask-hint {
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
    margin-bottom: 6px;
}
.vtr-reask-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}


/* =========================================================
   📑 Reiter: Termine / Vertretungsplanung / Berichte
========================================================= */
.umg-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    border-bottom: 2px solid #e5e7eb;
}
.umg-tab-btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    border-radius: 8px 8px 0 0;
}
.umg-tab-btn:hover { color: #374151; background: #f9fafb; }
.umg-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}
.umg-tab-panel { display: none; }
.umg-tab-panel.umg-tab-active { display: block; box-shadow: 0 1px 2px rgba(20,40,60,.04),0 6px 20px rgba(20,40,60,.05); }










/* =====================================================================
   Fall-Formular (tmpl/fall/default_form.php) – ausgelagerte Styles
   An das Ende von assets/style.css anhängen.
   Nutzt die vorhandenen --c-* Variablen aus :root (mit Fallback).
   ===================================================================== */

#fallForm{
  --brand:var(--c-primary,#2196f3);
  --brand-ink:var(--c-primary-dark,#1976d2);
  --brand-soft:#e3f2fd;
  --accent:var(--c-warning,#fb8c00);
  --danger:var(--c-danger,#e53935);
  --ok:var(--c-success,#4caf50);
  --ink:#1c2530;--ink-soft:#55606b;--muted:#8a929c;--line:#e8ebef;--line-strong:#e0e0e0;
  --surface:#fff;--surface-2:#f7f9fb;--bg:#f2f4f7;--radius:var(--radius-lg,10px);--radius-sm:var(--radius-sm,6px);
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-family:var(--font);color:var(--ink);display:block;
}
#fallForm *{box-sizing:border-box}
#fallForm h2{font-size:16.5px;font-weight:700;margin:0}
#fallForm .ff-topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:16px;padding:13px 22px;background:rgba(255,255,255,.85);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
#fallForm .ff-brand{width:34px;height:34px;border-radius:9px;background:linear-gradient(150deg,var(--brand),var(--brand-ink));display:grid;place-items:center;color:#fff;font-weight:800;flex-shrink:0}
#fallForm .ff-h1{font-size:17px;font-weight:700}
#fallForm .ff-sub{font-size:12px;color:var(--muted)}
#fallForm .ff-fallname{margin-left:6px;padding:5px 12px;border:1px dashed var(--line-strong);border-radius:999px;font-size:12.5px;color:var(--ink-soft);background:var(--surface-2);max-width:40ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#fallForm .ff-fallname b{color:var(--ink)}
#fallForm .ff-spacer{flex:1}
#fallForm .ff-savechip{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--ink-soft);padding:6px 12px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line)}
#fallForm .ff-savechip .dot{width:8px;height:8px;border-radius:50%;background:var(--ok)}
#fallForm .ff-savechip.saving{color:var(--accent)}
#fallForm .ff-savechip.saving .dot{background:var(--accent)}

/* Desktop: Row-Wrapper transparent in den flex-flow einreihen */
#fallForm .ff-topbar-row1{display:contents}
#fallForm .ff-topbar-row3{display:contents}
#fallForm .ff-titles{display:contents}

@media(max-width:600px){
  /* Brand-Chip auf Mobil ausblenden */
  #fallForm .ff-brand{ display:none; }

  #fallForm .ff-topbar{
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding:10px 14px;
    width:100%;
    box-sizing:border-box;
  }
  /* Zeile 1: ☰ + Titel + Status */
  #fallForm .ff-topbar-row1{
    display:flex;
    align-items:center;
    gap:8px;
  }
  #fallForm .ff-titles{
    display:block;
    flex:1;
    min-width:0;
  }
  #fallForm .ff-h1{ font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #fallForm .ff-sub{ font-size:11px; }
  #fallForm .ff-topbar-row1 .ff-statuswrap{ flex-shrink:0; }
  /* Zeile 2: Fallname zentriert */
  #fallForm .ff-fallname{
    margin:0;
    text-align:center;
    max-width:100%;
    width:100%;
    box-sizing:border-box;
  }
  /* Zeile 3: Bereit-Chip + Speichern */
  #fallForm .ff-topbar-row3{
    display:flex;
    gap:8px;
    align-items:center;
  }
  #fallForm .ff-savechip{ flex:1; justify-content:center; }
  #fallForm .ff-topbar-row3 .ff-btn.ff-primary{ flex-shrink:0; }
  #fallForm .ff-spacer{ display:none; }
}
#fallForm .ff-btn{font-weight:600;font-size:14px;cursor:pointer;border:none;padding:11px 20px;border-radius:11px}
#fallForm .ff-primary{background:linear-gradient(150deg,var(--brand),var(--brand-ink));color:#fff;box-shadow:0 6px 18px rgba(33,150,243,.32)}
#fallForm .ff-ghost{background:transparent;color:var(--ink-soft);border:1px solid var(--line-strong)}
#fallForm .ff-wrap{max-width:1180px;margin:0 auto;padding:24px;display:grid;grid-template-columns:220px 1fr;gap:26px;align-items:start}
/* ── Mobile Sidebar-Drawer ────────────────────────────────── */
.ff-nav-close{display:none}  /* auf Desktop versteckt */
.ff-nav-overlay{display:none;position:fixed;inset:0;z-index:8999;background:rgba(0,0,0,.38);animation:ff-fade-in .2s ease}
.ff-nav-overlay.show{display:block}
#ff_navToggle{
  display:none;
  background:none;
  border:1px solid var(--line,#e5e7eb);
  border-radius:8px;
  padding:6px 10px;
  cursor:pointer;
  font-size:18px;
  line-height:1;
  color:#374151;
  flex-shrink:0;
}
@media(max-width:880px){
  #fallForm .ff-wrap{ grid-template-columns:1fr }
  #ff_navToggle{ display:flex; align-items:center; justify-content:center; }

  #fallForm .ff-sidenav.mobile-open{
    display:flex !important;
    position:fixed;
    top:0; left:0; bottom:0;
    width:min(280px, 85vw);
    z-index:9000;
    background:#fff;
    box-shadow:4px 0 24px rgba(0,0,0,.18);
    overflow-y:auto;
    padding:16px 12px;
    animation:ff-slide-in .22s ease;
  }
  @keyframes ff-slide-in{
    from{transform:translateX(-100%);opacity:.7}
    to{transform:none;opacity:1}
  }


  @keyframes ff-fade-in{from{opacity:0}to{opacity:1}}

  .ff-nav-close{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    margin-bottom:10px;
  }
  .ff-nav-close button{
    background:none;
    border:none;
    font-size:20px;
    cursor:pointer;
    color:#6b7280;
    padding:4px 6px;
    border-radius:6px;
  }
  .ff-nav-close button:hover{ background:#f3f4f6; }
}
#fallForm .ff-sidenav{position:sticky;top:78px;flex-direction:column;gap:3px}
@media(max-width:880px){#fallForm .ff-sidenav{display:none}}
@media(min-width:881px){#fallForm .ff-sidenav{display:flex}}
#fallForm .ff-navitem{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;cursor:pointer;color:var(--ink-soft);font-size:14px;font-weight:500;border:1px solid transparent}
#fallForm .ff-navitem.active{background:var(--surface);border-color:var(--line);color:var(--ink)}
#fallForm .ff-tick{width:20px;height:20px;border-radius:50%;border:2px solid var(--line-strong);display:grid;place-items:center;font-size:11px;color:transparent}
#fallForm .ff-navitem.done .ff-tick{background:var(--brand);border-color:var(--brand);color:#fff}
#fallForm .ff-content{display:flex;flex-direction:column;gap:16px;min-width:0}
#fallForm .ff-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px rgba(20,40,60,.04),0 6px 20px rgba(20,40,60,.05);overflow:hidden}
#fallForm .ff-cardhead{display:flex;align-items:center;gap:12px;padding:16px 20px 12px}
#fallForm .ff-num{width:26px;height:26px;border-radius:8px;background:var(--brand-soft);color:var(--brand-ink);font-weight:700;font-size:13px;display:grid;place-items:center}
#fallForm .ff-cardbody{padding:2px 20px 20px}
#fallForm .ff-grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#fallForm .ff-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media(max-width:560px){#fallForm .ff-grid2,#fallForm .ff-grid3{grid-template-columns:1fr}}
#fallForm .ff-mt{margin-top:14px}
#fallForm .ff-field{display:flex;flex-direction:column;gap:6px}
#fallForm .ff-field>label{font-size:12.5px;font-weight:600;color:var(--ink-soft)}
#fallForm .input,#fallForm select,#fallForm textarea{font-family:var(--font);font-size:14px;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:var(--radius-sm);padding:10px 12px;width:100%;margin:0;height: 39px}
#fallForm .input:focus,#fallForm select:focus,#fallForm textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
#fallForm .ff-hint{font-size:12px;color:var(--muted)}
#fallForm .ff-desc{font-size:12.5px;color:var(--muted);margin:2px 0 8px}
#fallForm .ff-choices{display:flex;gap:10px;flex-wrap:wrap}
#fallForm .ff-choice{flex:1;min-width:150px;border:1.5px solid var(--line-strong);border-radius:8px;padding:13px 15px;cursor:pointer;background:#fff}
#fallForm .ff-choice.sel{border-color:var(--brand);background:var(--brand-soft)}
#fallForm .ff-choice .t{font-weight:600;font-size:14px}
#fallForm .ff-choice .s{font-size:12px;color:var(--muted)}
#fallForm .ff-safetygrid{display:flex;flex-direction:column;gap:10px}
#fallForm .ff-safety{display:flex;align-items:center;gap:14px;border:1.5px solid var(--line-strong);border-radius:8px;padding:13px 15px;cursor:pointer;background:#fff}
#fallForm .ff-safety .txt .t{font-weight:600;font-size:14px;display:flex;align-items:center;gap:7px}
#fallForm .ff-safety .txt .s{font-size:12px;color:var(--muted)}
#fallForm .ff-tg{position:relative;width:38px;height:22px;border-radius:999px;background:var(--line-strong);flex:none;transition:.2s}
#fallForm .ff-tg::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
#fallForm .ff-safety.on{border-color:var(--brand);background:var(--brand-soft)}
#fallForm .ff-safety.on .ff-tg{background:var(--brand)}
#fallForm .ff-safety.on .ff-tg::after{transform:translateX(16px)}
#fallForm .ff-safety.ff-crit.on{border-color:var(--danger);background:#fdeceb}
#fallForm .ff-safety.ff-crit.on .ff-tg{background:var(--danger)}
#fallForm .ff-warn{font-size:11px;font-weight:700;color:#fff;background:var(--danger);padding:2px 7px;border-radius:6px;display:none}
#fallForm .ff-safety.ff-crit.on .ff-warn{display:inline-block}
#fallForm .ff-puffer{display:flex;gap:22px;flex-wrap:wrap;margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}
#fallForm .ff-stepper{display:flex;flex-direction:column;gap:6px}
#fallForm .ff-stepper>label{font-size:12.5px;font-weight:600;color:var(--ink-soft)}
#fallForm .ff-stepperctl{display:flex;align-items:center;border:1px solid var(--line-strong);border-radius:9px;overflow:hidden;background:#fff;width:fit-content}
#fallForm .ff-stepperctl button{border:none;background:transparent;width:36px;height:38px;font-size:18px;cursor:pointer;color:var(--brand-ink)}
#fallForm .ff-stepperctl .num{width:64px;text-align:center;font-weight:600;border-left:1px solid var(--line);border-right:1px solid var(--line);padding:9px 0}
#fallForm .ff-stepperctl .num small{font-weight:400;color:var(--muted)}
#fallForm .ff-rhythmus{display:flex;gap:8px;flex-wrap:wrap}
#fallForm .ff-rh{flex:1;min-width:110px;border:1.5px solid var(--line-strong);background:#fff;color:var(--ink-soft);font-weight:600;font-size:13.5px;padding:11px;border-radius:10px;cursor:pointer}
#fallForm .ff-rh.active{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-ink)}
#fallForm .ff-times{display:flex;align-items:center;gap:6px;font-size:13px}
#fallForm .ff-times .sep,#fallForm .sep{color:var(--muted)}
#fallForm .ff-sliderbox{display:flex;align-items:center;gap:14px;margin-top:6px}
#fallForm .ff-sliderbox input[type=range]{flex:1;accent-color:var(--brand)}
#fallForm .ff-bub{min-width:60px;text-align:center;font-weight:700;color:var(--brand-ink);background:var(--brand-soft);border-radius:8px;padding:6px 4px}
#fallForm .ff-preview{margin:12px 0 2px;padding:11px 14px;border-radius:10px;background:var(--brand-soft);border:1px solid #cfe4fb;font-size:13px;color:var(--brand-ink)}
#fallForm .ff-preview .pm{font-weight:700}
#fallForm .ff-note{margin-top:8px;font-size:12.5px;color:var(--ink-soft);background:var(--surface-2);border:1px solid var(--line);border-left:3px solid var(--ok);padding:8px 12px;border-radius:8px}
#fallForm .ff-note.warn{border-left-color:var(--accent)}
#fallForm .ff-note.crit{border-left-color:var(--danger);color:#9a2a26;background:#fdeceb}
#fallForm .ff-divider{height:1px;background:var(--line);margin:20px 0 16px}
#fallForm .ff-sublabel{font-weight:700;font-size:14.5px;margin-bottom:2px}
#fallForm .ff-slrow{display:flex;align-items:center;gap:14px;padding:6px 0}
#fallForm .ff-slrow label{width:210px;font-size:13.5px;color:var(--ink-soft)}
#fallForm .ff-slrow input[type=range]{flex:1;accent-color:var(--brand)}
#fallForm .ff-slrow .ff-val{width:80px;text-align:right;font-weight:600;color:var(--brand-ink)}
#fallForm .ff-eltern{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
#fallForm .ff-ec{flex:1;min-width:170px;border:1.5px solid var(--line-strong);border-radius:8px;padding:13px 15px;cursor:pointer;background:#fff}
#fallForm .ff-ec.active{border-color:var(--brand);background:var(--brand-soft)}
#fallForm .ff-ec .ec-t{font-weight:600;font-size:14px}
#fallForm .ff-ec .ec-s{font-size:12px;color:var(--muted)}
#fallForm .ff-ptoolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
#fallForm .ff-addbtn{display:inline-flex;align-items:center;gap:8px;border:1.5px dashed var(--line-strong);background:var(--surface-2);color:var(--ink-soft);font-weight:600;font-size:13.5px;padding:10px 16px;border-radius:11px;cursor:pointer}
#fallForm .ff-addbtn:hover{border-color:var(--brand);color:var(--brand-ink);background:var(--brand-soft)}
#fallForm .ff-person{border:1px solid var(--line);border-radius:8px;background:var(--surface-2);margin-bottom:13px;overflow:hidden}
#fallForm .ff-ptop{display:flex;align-items:center;gap:13px;padding:13px 15px;cursor:pointer}
#fallForm .ff-avatar{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;font-weight:700;color:#fff;background:var(--brand)}
#fallForm .ff-avatar.kind{background:var(--accent)}
#fallForm .ff-avatar.fk{background:#3a6ea5}
#fallForm .ff-pid{flex:1;min-width:0}
#fallForm .ff-pid .nm{font-weight:600;font-size:14.5px}
#fallForm .ff-pid .rl{font-size:12px;color:var(--muted)}
#fallForm .ff-pill{font-size:11px;font-weight:600;padding:3px 9px;border-radius:999px;background:#fbf2e9;color:var(--accent);border:1px solid #e9d7c4}
#fallForm .ff-asum{font-size:12px;color:var(--ink-soft);background:#fff;border:1px solid var(--line);padding:4px 10px;border-radius:999px;white-space:nowrap}
#fallForm .ff-iconbtn{border:none;background:transparent;color:var(--muted);cursor:pointer;font-size:15px;padding:6px;border-radius:8px}
#fallForm .ff-iconbtn:hover{color:var(--danger)}
#fallForm .ff-chev{color:var(--muted);transition:.2s}
#fallForm .ff-person.open .ff-chev{transform:rotate(180deg)}
#fallForm .ff-pbody{display:none;padding:4px 15px 16px;border-top:1px solid var(--line)}
#fallForm .ff-person.open .ff-pbody{display:block}
#fallForm .ff-pcontact .ff-grid2{gap:10px}
#fallForm .ff-pflabel{font-size:12px;font-weight:600;color:var(--ink-soft);margin:12px 0 5px}
#fallForm .ff-channels{display:flex;gap:7px;flex-wrap:wrap}
#fallForm .ff-chan{font-size:12.5px;font-weight:600;color:var(--ink-soft);background:#fff;border:1.5px solid var(--line-strong);padding:7px 12px;border-radius:999px;cursor:pointer}
#fallForm .ff-chan.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-ink)}
#fallForm .ff-pcontact textarea{min-height:54px;resize:vertical}
#fallForm .ff-newperson{border:1.5px dashed var(--brand);background:var(--brand-soft);border-radius:8px;padding:16px;margin-bottom:13px}
#fallForm .ff-newrow{display:grid;grid-template-columns:1fr 1fr 160px;gap:10px}
@media(max-width:560px){#fallForm .ff-newrow{grid-template-columns:1fr}}
#fallForm .ff-miniactions{display:flex;gap:8px;margin-top:12px;justify-content:flex-end}
#fallForm .ff-avhead{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:12px 0 8px}
#fallForm .ff-avhead .lbl{font-size:13px;font-weight:600;color:var(--ink-soft)}
#fallForm .ff-presets{display:flex;gap:7px;flex-wrap:wrap}
#fallForm .ff-preset{font-size:12px;font-weight:600;color:var(--brand-ink);background:var(--brand-soft);border:1px solid #cfe4fb;padding:5px 11px;border-radius:999px;cursor:pointer}
#fallForm .ff-preset.clear{color:var(--ink-soft);background:#fff;border-color:var(--line-strong)}
#fallForm .ff-daygrid{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:10px}
#fallForm .ff-day{display:grid;grid-template-columns:44px 42px 1fr auto;align-items:center;gap:12px;padding:5px 6px;border-radius:9px}
#fallForm .ff-day.on{background:var(--brand-soft)}
#fallForm .ff-day.on .ff-tg{background:var(--brand)}
#fallForm .ff-day.on .ff-tg::after{transform:translateX(16px)}
#fallForm .ff-day .dn{font-weight:700;font-size:13px}
#fallForm .ff-day.off .ff-dmain{opacity:.35;pointer-events:none}
#fallForm .ff-dmain{display:flex;align-items:center;gap:12px;min-width:0}
#fallForm .ff-dtimes{display:flex;align-items:center;gap:6px;font-size:13px}
#fallForm .ff-dtimes input{width:84px;padding:6px 8px}
#fallForm .ff-bar{flex:1;height:9px;border-radius:999px;background:var(--line);position:relative;min-width:80px;touch-action:none}
#fallForm .ff-bar i{position:absolute;top:0;bottom:0;background:linear-gradient(90deg,var(--brand),#42a5f5);border-radius:999px}
#fallForm .ff-knob{position:absolute;top:50%;width:16px;height:16px;border-radius:50%;background:#fff;border:2px solid var(--brand);transform:translate(-50%,-50%);cursor:ew-resize;box-shadow:0 1px 4px rgba(0,0,0,.25);touch-action:none}
#fallForm .ff-copyday{font-size:11px;color:var(--brand-ink);cursor:pointer;white-space:nowrap;font-weight:600;opacity:0}
#fallForm .ff-day:hover .ff-copyday{opacity:.8}
#fallForm .ff-ov{position:fixed;inset:0;z-index:90;display:none;align-items:center;justify-content:center;background:rgba(20,30,40,.55);backdrop-filter:blur(3px)}
#fallForm .ff-ov.show{display:flex}
#fallForm .ff-ovcard{background:#fff;border-radius:18px;padding:34px 40px;text-align:center;max-width:420px;box-shadow:0 20px 60px rgba(20,40,60,.25)}
#fallForm .ff-ovcheck{width:66px;height:66px;border-radius:50%;background:var(--brand);color:#fff;font-size:34px;display:grid;place-items:center;margin:0 auto 16px}
#fallForm .ff-ovcard h3{margin:0 0 6px;font-size:20px}
#fallForm .ff-ovcard p{margin:0 0 16px;color:var(--ink-soft);font-size:14px}
#fallForm .ff-ovbar{height:4px;border-radius:999px;background:var(--line);overflow:hidden}
#fallForm .ff-ovbar i{display:block;height:100%;width:0;background:var(--brand)}
#fallForm .ff-ov.show .ff-ovbar i{transition:width 1.6s linear;width:100%}

/* --- Nachträge --- */

/* Elterngespräche: dynamisches X rot hervorheben */
#fallForm .ff-x{color:var(--danger);font-weight:700}

/* Range-Slider sichtbar machen (eigenes Styling; JS füllt den Balken in WebKit,
   Firefox füllt über ::-moz-range-progress) */
#fallForm input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:8px;border-radius:999px;background:var(--line-strong);outline:none;cursor:pointer;margin:6px 0}
#fallForm input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:999px;background:transparent}
#fallForm input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:-6px;width:20px;height:20px;border-radius:50%;background:var(--brand);border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.3);cursor:pointer}
#fallForm input[type=range]::-moz-range-track{height:8px;border-radius:999px;background:var(--line-strong)}
#fallForm input[type=range]::-moz-range-progress{height:8px;border-radius:999px;background:var(--brand)}
#fallForm input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:var(--brand);border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.3);cursor:pointer}

/* --- Seitenleiste: Gruppen, Fälle, Entwürfe --- */
#fallForm .ff-card{scroll-margin-top:80px}  /* Sektion nicht unter der Sticky-Topbar verstecken */
#fallForm .ff-navgroup{margin-bottom:4px}
#fallForm .ff-grouphead{display: flex;
    align-items: center;
    gap: 6px;
    /* padding: 9px 10px; */
    font-size: 12px;
    /* font-weight: 700; */
    /* text-transform: uppercase; */
    letter-spacing: .04em;
    color: var(--muted);
    cursor: pointer;
    border-radius: 8px;
    user-select:none
}

#fallForm .ff-grouphead:hover{background:var(--surface-2)}
#fallForm .ff-gchev{margin-left:auto;transition:.2s;font-size:11px}
#fallForm .ff-navgroup.collapsed .ff-gchev{transform:rotate(-90deg)}
#fallForm .ff-navgroup.collapsed .ff-groupbody{display:none}
#fallForm .ff-gcount{background:var(--surface-2);border:1px solid var(--line);color:var(--ink-soft);border-radius:999px;padding:1px 7px;font-size:10px;font-weight:700}
#fallForm .ff-caseitem{display:block;padding:7px 10px;border-radius:8px;font-size:13px;color:var(--ink-soft);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#fallForm .ff-caseitem:hover{background:var(--brand-soft);color:var(--brand-ink)}
#fallForm .ff-caseitem.current{background:var(--brand-soft);color:var(--brand-ink);font-weight:600}
#fallForm .ff-caseempty{padding:6px 10px;font-size:12px;color:var(--muted)}
#fallForm .ff-draftitem{display:flex;align-items:center;gap:8px}
#fallForm .ff-draftlabel{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
#fallForm .ff-drafttime{font-size:10px;color:var(--muted);cursor:pointer;white-space:nowrap}
#fallForm .ff-draftdel{color:var(--muted);cursor:pointer;font-size:11px}
#fallForm .ff-draftdel:hover{color:var(--danger)}

/* Altersanzeige beim Kind */
#fallForm .ff-agebox{font-size:14px;color:var(--brand-ink);font-weight:600;background:var(--brand-soft);border:1px solid #cfe4fb;border-radius:var(--radius-sm);padding:10px 12px}

/* --- Status-Menü (Pausieren / Beenden) --- */
#fallForm .ff-statuswrap{position:relative}
#fallForm .ff-statusdot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--muted);margin-right:7px;vertical-align:middle;flex:none}
#fallForm .ff-statuscaret{margin-left:7px;font-size:10px;opacity:.7}
#fallForm .ff-statuswrap[data-st="aktiv"]         #ff_statusBtn .ff-statusdot{background:var(--ok)}
#fallForm .ff-statuswrap[data-st="pausiert"]      #ff_statusBtn .ff-statusdot{background:var(--accent)}
#fallForm .ff-statuswrap[data-st="abgeschlossen"] #ff_statusBtn .ff-statusdot{background:var(--muted)}
#fallForm .ff-statusdot.d-aktiv{background:var(--ok)}
#fallForm .ff-statusdot.d-pausiert{background:var(--accent)}
#fallForm .ff-statusdot.d-abgeschlossen{background:var(--muted)}
#fallForm .ff-statusmenu{position:absolute;top:calc(100% + 6px);right:0;z-index:60;min-width:240px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:0 8px 28px rgba(20,40,60,.16);padding:6px;display:none}
#fallForm .ff-statusmenu.open{display:block}
#fallForm .ff-statusmenu button{display:flex;align-items:center;width:100%;text-align:left;border:0;background:none;padding:9px 10px;border-radius:8px;font-size:13.5px;color:var(--ink);cursor:pointer}
#fallForm .ff-statusmenu button:hover{background:var(--surface-2)}

/* =====================================================================
   FALL-ANSICHT · DESIGN-ANGLEICHUNG AN DAS FALLFORMULAR
   ---------------------------------------------------------------------
   Ruhige, konsistente Optik im Stil von #fallForm:
   gleiche Schrift, weiche Linien, abgerundete Flächen, gedämpfte Farben.
   "Weniger ist mehr" – weniger Rahmenkontrast, weniger Schatten,
   einheitliche Radien. Wird bewusst ans Dateiende gestellt, damit es
   ältere Einzelregeln per Quellreihenfolge überschreibt.
   Palette/Token-Werte 1:1 aus dem Formular übernommen.
   ===================================================================== */

/* — Schrift & Grundton auf die Hauptcontainer der Fall-Ansicht — */
.dashboard-fallcard,
.umg-tabs,
.umg-tab-panel,
.fall-card,
.timeline-wrapper,
.planungsbereich,
.warn-box,
.info-box {
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    color:#1c2530;
}

/* =========================================================
   REITER · ruhiges Segment-Control statt Unterstrich-Tabs
   ========================================================= */
.umg-tabs {
    display:inline-flex;
    gap:4px;
    flex-wrap:wrap;
    margin:2px 0px 0px;
    border-bottom:0px solid #fff;
    background:#f7f9fb;
    border-radius:8px 0px;
}
.umg-tab-btn {
    appearance:none;
    border:none;
    background:rgba(0, 0, 0, 0.03);
    padding:8px 17px;
    font-size:13.5px;
    font-weight:600;
    color:#55606b;
    cursor:pointer;
    border-bottom:0;
    margin-bottom:0;
    transition:background .15s ease,color .15s ease,box-shadow .15s ease;
}
.umg-tab-btn:hover {
    color:#1c2530;
    background:rgba(16,24,40,.045);
}
.umg-tab-btn.active {
    color: #1976d2;
    background: #fff;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

/* =========================================================
   KOPFKARTE · Dashboard-Headerkarte weicher
   ========================================================= */
.dashboard-fallcard {
    border-radius:14px;
}
.dashboard-top { margin:0; }
.dashboard-top:empty { display:none; }

/* =========================================================
   BUTTONS · ruhigere Apple-Optik (nur ohne Inline-Farbe wirksam)
   ========================================================= */
.btn-apple {
    background:linear-gradient(150deg,#2196f3,#1976d2);
    color:#fff;
    border:none;
    border-radius:10px;
    padding:9px 16px;
    font-size:13.5px;
    font-weight:600;
    line-height:1.1;
    text-decoration:none;
    transition:filter .15s ease, box-shadow .15s ease;
    box-shadow:0 4px 14px rgba(33,150,243,.22);
}
.btn-apple:hover { filter:brightness(1.04); color:#fff; }
.btn-apple:active { filter:brightness(.96); }
.btn-apple--primary {
    background:linear-gradient(150deg,#2196f3,#1976d2) !important;
    border:none !important;
}

/* =========================================================
   STATUS-/PLANUNGSZEILE · Pillen statt grauer Kästchen
   ========================================================= */
.planungsbereich {
    margin-left:10px;
    padding:14px 16px;
    border:1px solid #e8ebef;
    border-radius:8px;
    background:#fff;
}
.planungsstand-zeile { gap:8px; }
.ps-item {
    margin-left:0;
    padding:5px 12px;
    border:1px solid #e8ebef;
    border-radius:999px;
    background:#f7f9fb;
    color:#55606b;
    font-weight:600;
    font-size:12.5px;
}
.ps-item.ps-richtwert    { background:#e3f2fd; border-color:#cfe6fb; color:#1976d2; }
.ps-item.ps-done         { background:#e9f7ea; border-color:#cdebd0; color:#2e7d32; }
.ps-item.ps-erreicht     { background:#e9f7ea; border-color:#cdebd0; color:#2e7d32; }
.ps-item.ps-nachholbedarf{ background:#fff4e5; border-color:#ffe0b8; color:#b9770e; }

/* =========================================================
   RAHMENBEDINGUNGEN · weiche Warnkarte statt harter roter Rand
   ========================================================= */
.warn-box {
    border:1px solid #f3d2d2;
    background:#fff7f7;
    border-radius:8px;
}
.warn-header { color:#1c2530; font-weight:700; }
.warn-chip { border-radius:999px; font-weight:600; font-size:12.5px; }

/* =========================================================
   INFO-/FALLKARTEN · weichere Linien, weniger Schatten
   ========================================================= */
.info-box { border-radius:8px; }
.fall-card { border:1px solid #e8ebef; border-radius:14px; }
.info-box h3 { font-weight:600; color:#55606b; }

/* ============================================================
   Aus tmpl/fall/default.php ausgelagert
   ============================================================ */

/* --- Block 1: Planbarkeits-Alert --- */
.pb-alert > summary { list-style:none; cursor:pointer; display:inline-flex; align-items:center; }
.pb-alert > summary::-webkit-details-marker { display:none; }
.pb-alert .pb-bang { display:inline-flex; align-items:center; justify-content:center;
    width:26px; height:26px; border-radius:50%; background:#e53935; color:#fff;
    font-weight:700; font-size:16px; line-height:1; }

/* --- Block 2: Gemeinsamer Kopf-Container --- */
.fall-kopf {
    background:#fff;
    z-index:50;
    margin:20px 0;
    border-radius:8px;
    padding:10px;
    border:1px solid #eee;
}

/* --- Block 3: Fall-Header (Aktionen + Statistik-Zeile) --- */
.fh-wrap { display:flex;flex-direction:column;gap:6px;padding:10px 0 6px;margin-bottom:4px; }
.fh-row1 { display:flex;align-items:center;gap:6px;flex-wrap:wrap; }
.fh-select { font-size:13px;color:#111;background:transparent;border:none;border-radius:6px;padding:3px 22px 3px 4px;cursor:pointer;max-width:280px;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 4px center; }
.fh-select:hover { background-color:#f4f4f4;border-radius:6px; }
.fh-divider { color:#ddd; }
.fh-action { display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border:1px solid #e0e0e0;border-radius:20px;font-size:12px;font-weight:600;color:#444;background:#f9f9f9;text-decoration:none;cursor:pointer;white-space:nowrap;line-height:1.4; }
.fh-action:hover { border-color:#bbb;background:#f0f0f0;color:#111; }
.fh-action.warn   { background:#fff3e0;border-color:#ffcc80;color:#e65100; }
.fh-action.danger { background:#fdecea;border-color:#f3b8b6;color:#c62828; }
.fh-action.info   { background:#eef4ff;border-color:#c5d8f5;color:#1c4f9c; }
.fh-stat { display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:6px;font-size:12px;font-weight:600; }
.fh-stat.done        { background:#e8f5e9;color:#2e7d32; }
.fh-stat.cancel_ok   { background:#eceff1;color:#546e7a; }
.fh-stat.cancel_late { background:#fff3e0;color:#e65100; }
.fh-stat.no_show     { background:#fdecea;color:#c62828; }
.fh-sep { color:#e0e0e0; }
.fh-ampel { display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:700; }
.fh-ampel.stabil   { background:#e8f5e9;color:#2e7d32; }
.fh-ampel.instabil { background:#fff3e0;color:#e65100; }
.fh-ampel.kritisch { background:#fdecea;color:#c62828; }

/* --- Block 4: Info-Bar (sticky Chip-Leiste + Detail-Tabelle) --- */
.fi-wrap { padding:8px 0 4px;position:sticky;z-index:30;background:#fff; }
.fi-bar { display:flex;flex-wrap:wrap;gap:6px;align-items:center;cursor:pointer;user-select:none; }
.fi-bar:hover .fi-toggle-btn { opacity:1; }
.fi-chip { display:inline-flex;align-items:center;gap:4px;background:#f4f4f4;border:1px solid #e0e0e0;border-radius:20px;padding:3px 9px 3px 6px;font-size:11.5px;color:#333;white-space:nowrap;line-height:1.4; }
.fi-chip svg { flex-shrink:0;opacity:.65; }
.fi-chip strong { font-weight:400;color:#111; }
.fi-chip.fi-chip--getrennt { background:#fef2f2;border-color:#fecaca;color:#991b1b; }
.fi-chip.fi-chip--getrennt svg { opacity:.8; }
.fi-chip.fi-chip--getrennt strong { color:#991b1b; }
.fi-toggle-btn { margin-left:auto;background:none;border:none;cursor:pointer;padding:2px 4px;font-size:13px;color:#888;opacity:.6;transition:opacity .15s,transform .2s; }
.fi-wrap.fi-open .fi-toggle-btn { transform:rotate(180deg); }
.fi-detail { overflow:hidden;max-height:0;transition:max-height .28s ease,padding .28s ease;padding:0;position:relative; }
.fi-wrap.fi-open .fi-detail { max-height:600px;padding:8px 0 0; }
.fi-wrap:not(.fi-open):hover .fi-detail { max-height:34px;padding-top:8px; }
.fi-detail::after { content:'';position:absolute;bottom:0;left:0;right:0;height:18px;background:linear-gradient(to bottom,transparent,#fff);pointer-events:none;opacity:0;transition:opacity .22s ease; }
.fi-wrap:not(.fi-open):hover .fi-detail::after { opacity:1; }
.fi-line { display:flex;gap:10px;align-items:baseline;margin-bottom:5px;font-size:13px; }
.fi-lbl { min-width:130px;color:#888;font-size:11.5px;flex-shrink:0; }
.fi-val {color:#222; }
.fi-val .muted { color:#aaa;font-weight:400; }

/* --- Block 5: Termin-Edit-Overlay (Modal) --- */
.fa-overlay { position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.45);display:flex;align-items:flex-start;justify-content:center;padding:40px 16px;overflow-y:auto; }
.fa-card { background:#fff;border-radius:14px;width:100%;max-width:460px;box-shadow:0 10px 40px rgba(0,0,0,.25);padding:20px; }
.fa-head { display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:16px; }
.fa-head strong { font-size:16px; }
.fa-date { font-size:13px;color:#666; }
.fa-row { margin-bottom:14px; }
.fa-label { display:block;font-size:13px;color:#444;font-weight:600;margin-bottom:6px; }
.fa-time { display:flex;gap:10px; }
.fa-time label { flex:1;display:flex;flex-direction:column;gap:4px;font-size:12px;color:#555; }
.fa-card input[type="time"],
.fa-card input[type="number"],
.fa-card select { width:100%;padding:8px 10px;border:1px solid #ccc;border-radius:8px;font-size:14px;box-sizing:border-box;background:#fff; }
.fa-time-slider-row { margin-bottom:10px; }
.fa-time-slider-label { display:flex;flex-direction:column;gap:6px; }
.fa-slider-head { display:flex;align-items:baseline;justify-content:space-between;font-size:12px;color:#555; }
.fa-slider-head > span:first-child { font-weight:600;color:#444; }
.fa-slider-value { font-variant-numeric:tabular-nums;font-size:18px;font-weight:700;color:#111;letter-spacing:.5px; }
.fa-start-slider { -webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:999px;background:linear-gradient(90deg,#e5e7eb,#d1d5db);outline:none;margin:2px 0 0;padding:0;cursor:pointer; }
.fa-start-slider::-webkit-slider-thumb { -webkit-appearance:none;appearance:none;width:22px;height:22px;border-radius:50%;background:#111;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.25);cursor:grab; }
.fa-start-slider::-moz-range-thumb { width:22px;height:22px;border-radius:50%;background:#111;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.25);cursor:grab; }
.fa-start-slider:active::-webkit-slider-thumb { cursor:grabbing; }
.fa-start-slider:focus { outline:none;box-shadow:0 0 0 3px rgba(33,150,243,.15);border-radius:999px; }
.fa-slider-scale { display:flex;justify-content:space-between;font-size:10.5px;color:#9ca3af;font-variant-numeric:tabular-nums;letter-spacing:.04em;margin-top:1px; }
.fa-typ { display:flex;gap:8px;flex-wrap:wrap; }
.fa-chip { flex:1;min-width:90px;position:relative;margin:0; }
.fa-chip input { position:absolute;opacity:0;pointer-events:none; }
.fa-chip span { display:block;text-align:center;padding:9px 6px;border:1px solid #ccc;border-radius:8px;font-size:13px;cursor:pointer; }
.fa-chip input:checked + span { background:#2196F3;border-color:#1976D2;color:#fff; }
.fa-personen { display:flex;flex-direction:column;gap:6px;max-height:230px;overflow-y:auto; }
.fa-person { display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid #e3e3e3;border-radius:8px;cursor:pointer;margin:0; }
.fa-person input { width:auto;margin:0; }
.fa-pname { font-size:14px; }
.fa-prole { margin-left:auto;font-size:11px;color:#888; }
.fa-empty { font-size:13px;color:#999; }
.fa-actions { display:flex;align-items:center;gap:10px;margin-top:18px; }
.fa-actions button { padding:10px 16px;border-radius:8px;border:none;font-size:14px;cursor:pointer; }
.fa-cancel { background:#eee;color:#333; }
.fa-save { background:#57bd5b;color:#fff;font-weight:600; }
.fa-delete { background:#fff;color:#e53935;border:1px solid #f3b8b6 !important; }
.fa-delete:hover { background:#fdecea; }
.warn-hinweis-textarea { width:100%;min-height:90px;padding:8px 10px;border:1px solid #ccc;border-radius:8px;font-size:14px;box-sizing:border-box;resize:vertical;font-family:inherit; }

