:root {
    color-scheme: light dark;

    --background: #f5f6f8;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-solid: #ffffff;
    --text: #172033;
    --muted: #737b8c;
    --border: rgba(23, 32, 51, 0.09);

    --lionnel: #4d7fd3;
    --tanja: #50a87a;

    --radius-large: 24px;
    --radius-medium: 16px;
    --shadow: 0 16px 48px rgba(26, 35, 50, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);
}

button {
    font: inherit;
}

.app-shell {
    width: min(1500px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 50px;
}

.topbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.eyebrow {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 2px 0 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.view-switcher {
    display: flex;
    padding: 4px;
    gap: 3px;
    border-radius: 14px;
    background: rgba(120, 125, 140, 0.10);
}

.view-switcher button {
    border: 0;
    padding: 9px 13px;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.view-switcher button.active {
    background: var(--surface-solid);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.legend-card {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 14px;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.legend-dot,
.legend-split {
    display: inline-block;
    width: 17px;
    height: 17px;
    border-radius: 6px;
}

.legend-dot.lionnel {
    background: var(--lionnel);
}

.legend-dot.tanja {
    background: var(--tanja);
}

.legend-split {
    background:
        linear-gradient(
            90deg,
            var(--lionnel) 0%,
            var(--lionnel) 50%,
            var(--tanja) 50%,
            var(--tanja) 100%
        );
}

.calendar-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface);
    box-shadow: var(--shadow);
}


/* FullCalendar */

.fc {
    --fc-border-color: var(--border);
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: transparent;
    --fc-today-bg-color: rgba(77, 127, 211, 0.08);

    font-size: 0.95rem;
}

.fc .fc-toolbar {
    gap: 12px;
    margin-bottom: 20px;
}

.fc .fc-toolbar-title {
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 750;
    letter-spacing: -0.025em;
}

.fc .fc-button {
    border: 0 !important;
    border-radius: 11px !important;
    background: rgba(120, 125, 140, 0.10) !important;
    color: var(--text) !important;
    box-shadow: none !important;
    text-transform: none !important;
}

.fc .fc-button:hover {
    background: rgba(120, 125, 140, 0.16) !important;
}

.fc .fc-col-header-cell {
    border: 0;
    padding: 8px 0 12px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.fc .fc-daygrid-day {
    background: transparent;
}

.fc .fc-daygrid-day-frame {
    min-height: 112px;
    padding: 6px;
}

.fc .fc-daygrid-day-number {
    padding: 4px 6px;
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
}

.fc .fc-day-today .fc-daygrid-day-number {
    color: var(--lionnel);
}

.fc-theme-standard td,
.fc-theme-standard th {
    border-color: var(--border);
}


/* iPhone */

@media (max-width: 760px) {
    .app-shell {
        width: 100%;
        padding: 18px 12px 30px;
    }

    .topbar {
        display: block;
    }

    .view-switcher {
        margin-top: 18px;
        width: 100%;
    }

    .view-switcher button {
        flex: 1;
        padding-inline: 5px;
        font-size: 0.82rem;
    }

    .legend-card {
        gap: 15px;
        overflow-x: auto;
    }

    .legend-item {
        white-space: nowrap;
    }

    .calendar-card {
        padding: 10px;
        border-radius: 19px;
    }

    .fc .fc-toolbar {
        flex-wrap: wrap;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 76px;
        padding: 2px;
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.82rem;
    }
}


@media (prefers-color-scheme: dark) {
    :root {
        --background: #111318;
        --surface: rgba(28, 31, 38, 0.94);
        --surface-solid: #24272e;
        --text: #f4f5f7;
        --muted: #9ca3af;
        --border: rgba(255, 255, 255, 0.08);

        --lionnel: #6d9be5;
        --tanja: #67bc8e;

        --shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
    }
}


/* ---------------------------------------------------------
   Jilly Tagesdarstellung
--------------------------------------------------------- */

.fc .fc-daygrid-day-frame {
    position: relative;
    overflow: hidden;
    border-radius: 13px;
}

.fc .fc-daygrid-day-number {
    position: relative;
    z-index: 5;
}

.jilly-day-background {
    position: absolute;
    inset: 4px;
    z-index: 1;
    border-radius: 11px;
    opacity: 0.94;
}

.jilly-day-background.caretaker-lionnel {
    background: var(--lionnel);
}

.jilly-day-background.caretaker-tanja {
    background: var(--tanja);
}

.jilly-day-background.handover.from-lionnel.to-tanja {
    background:
        linear-gradient(
            90deg,
            var(--lionnel) 0%,
            var(--lionnel) 50%,
            var(--tanja) 50%,
            var(--tanja) 100%
        );
}

.jilly-day-background.handover.from-tanja.to-lionnel {
    background:
        linear-gradient(
            90deg,
            var(--tanja) 0%,
            var(--tanja) 50%,
            var(--lionnel) 50%,
            var(--lionnel) 100%
        );
}

.jilly-day-info {
    position: absolute;
    z-index: 6;
    left: 7px;
    right: 7px;
    bottom: 7px;

    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 4px;

    color: #ffffff;
    pointer-events: none;
}

.jilly-handover-direction {
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.jilly-handover-time {
    padding: 3px 5px;
    border-radius: 7px;

    font-size: 0.68rem;
    font-weight: 700;

    background: rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(5px);
}

.jilly-note-marker {
    position: absolute;
    z-index: 7;
    right: 7px;
    top: 24px;

    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 1;
}

.fc .fc-daygrid-day:has(.jilly-day-background) .fc-daygrid-day-number {
    color: #ffffff;
}

.fc .fc-daygrid-day.fc-day-other {
    opacity: 0.38;
}


@media (max-width: 760px) {
    .jilly-day-background {
        inset: 2px;
        border-radius: 9px;
    }

    .jilly-day-info {
        left: 4px;
        right: 4px;
        bottom: 4px;
    }

    .jilly-handover-direction {
        font-size: 0.62rem;
    }

    .jilly-handover-time {
        padding: 2px 3px;
        font-size: 0.58rem;
    }

    .jilly-note-marker {
        right: 4px;
        top: 19px;
        font-size: 0.9rem;
    }
}


/* ---------------------------------------------------------
   Jilly Editor
--------------------------------------------------------- */

.editor-open {
    overflow: hidden;
}

.edit-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;

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

    padding: 20px;

    background: rgba(10, 15, 25, 0.38);
    backdrop-filter: blur(10px);
}

.edit-backdrop[hidden] {
    display: none;
}

.edit-sheet {
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 26px;

    background: var(--surface-solid);
    color: var(--text);

    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.24);
}

.edit-sheet-handle {
    display: none;
}

.edit-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;

    margin-bottom: 24px;
}

.edit-header h2 {
    margin: 3px 0 0;

    font-size: 1.7rem;
    letter-spacing: -0.035em;
}

.close-button {
    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 50%;

    background:
        rgba(120, 125, 140, 0.12);

    color: var(--text);

    font-size: 1.6rem;
    line-height: 1;

    cursor: pointer;
}

.date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.date-row label,
.note-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.date-row label > span,
.note-field > span,
.field-title,
.caretaker-fieldset legend {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

input[type="date"],
input[type="time"],
textarea {
    width: 100%;

    border: 1px solid var(--border);
    border-radius: 13px;

    padding: 12px;

    background:
        rgba(120, 125, 140, 0.07);

    color: var(--text);

    font: inherit;

    outline: none;
}

textarea {
    resize: vertical;
    min-height: 84px;
}

input:focus,
textarea:focus {
    border-color: var(--lionnel);

    box-shadow:
        0 0 0 3px rgba(77, 127, 211, 0.13);
}

.caretaker-fieldset {
    margin: 22px 0;

    padding: 0;

    border: 0;
}

.caretaker-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;

    margin-top: 9px;
}

.caretaker-button {
    position: relative;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 13px;

    border: 2px solid transparent;
    border-radius: 14px;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.caretaker-button input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lionnel-choice {
    background:
        rgba(77, 127, 211, 0.10);
}

.tanja-choice {
    background:
        rgba(80, 168, 122, 0.11);
}

.choice-dot {
    width: 15px;
    height: 15px;

    border-radius: 5px;
}

.lionnel-choice .choice-dot {
    background: var(--lionnel);
}

.tanja-choice .choice-dot {
    background: var(--tanja);
}

.caretaker-button:has(input:checked) {
    transform: translateY(-1px);
}

.lionnel-choice:has(input:checked) {
    border-color: var(--lionnel);
}

.tanja-choice:has(input:checked) {
    border-color: var(--tanja);
}

.handover-section {
    margin-bottom: 20px;
}

.field-help {
    margin: 5px 0 12px;

    color: var(--muted);

    font-size: 0.8rem;
    line-height: 1.4;
}

.note-field {
    margin-top: 20px;
}

.edit-message {
    margin-top: 15px;

    padding: 11px 13px;

    border-radius: 11px;

    background:
        rgba(205, 70, 70, 0.12);

    color: #c64545;

    font-size: 0.84rem;
    font-weight: 600;
}

.save-button {
    width: 100%;

    margin-top: 22px;
    padding: 13px 16px;

    border: 0;
    border-radius: 14px;

    background: var(--text);
    color: var(--surface-solid);

    font-weight: 750;

    cursor: pointer;
}

.save-button:disabled {
    opacity: 0.55;
    cursor: wait;
}


@media (max-width: 600px) {

    .edit-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .edit-sheet {
        width: 100%;
        max-height: 92vh;

        padding:
            11px
            18px
            calc(22px + env(safe-area-inset-bottom));

        border-radius:
            26px 26px 0 0;
    }

    .edit-sheet-handle {
        display: block;

        width: 42px;
        height: 5px;

        margin: 0 auto 15px;

        border-radius: 5px;

        background:
            rgba(120, 125, 140, 0.32);
    }

    .date-row {
        gap: 8px;
    }

}


/* ---------------------------------------------------------
   Statistik
--------------------------------------------------------- */

.statistics-card {
    padding: 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background: var(--surface);
    box-shadow: var(--shadow);
}

.statistics-card[hidden] {
    display: none;
}

.statistics-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;

    margin-bottom: 28px;
}

.statistics-header h2 {
    margin: 3px 0 0;

    font-size: 1.7rem;
    letter-spacing: -0.035em;
}

.statistics-filters {
    display: flex;
    gap: 8px;
}

.statistics-filters select {
    border: 1px solid var(--border);
    border-radius: 12px;

    padding: 10px 34px 10px 12px;

    background: var(--surface-solid);
    color: var(--text);

    font: inherit;
    font-weight: 600;
}

.statistics-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    margin-bottom: 12px;

    color: var(--muted);
}

.statistics-total strong {
    color: var(--text);
    font-size: 1.2rem;
}

.statistics-balance {
    display: flex;

    width: 100%;
    height: 18px;

    margin-bottom: 22px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(120, 125, 140, 0.10);
}

.statistics-bar {
    height: 100%;

    transition: width 0.35s ease;
}

.lionnel-bar {
    background: var(--lionnel);
}

.tanja-bar {
    background: var(--tanja);
}

.statistics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.person-stat {
    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 18px;
}

.lionnel-stat {
    background:
        rgba(77, 127, 211, 0.08);
}

.tanja-stat {
    background:
        rgba(80, 168, 122, 0.09);
}

.person-stat-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 24px;
}

.person-stat-value {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.person-stat-value strong {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.person-stat-value span {
    color: var(--muted);
}

.person-stat-percent {
    margin-top: 8px;

    color: var(--muted);

    font-size: 1rem;
    font-weight: 700;
}

.statistics-note {
    margin: 20px 0 0;

    color: var(--muted);

    font-size: 0.8rem;
}


@media (max-width: 600px) {

    .statistics-card {
        padding: 16px;
    }

    .statistics-header {
        display: block;
    }

    .statistics-filters {
        margin-top: 16px;
    }

    .statistics-filters select {
        flex: 1;
        min-width: 0;
    }

    .statistics-grid {
        grid-template-columns: 1fr;
    }

    .person-stat {
        padding: 17px;
    }

    .person-stat-title {
        margin-bottom: 17px;
    }

}


/* ---------------------------------------------------------
   Login
--------------------------------------------------------- */

.login-page {
    min-height: 100vh;
    margin: 0;
}

.login-shell {
    min-height: 100vh;

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

    padding:
        max(24px, env(safe-area-inset-top))
        20px
        max(24px, env(safe-area-inset-bottom));
}

.login-card {
    width: min(420px, 100%);
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 28px;

    background: var(--surface);
    box-shadow: var(--shadow);
}

.login-brand {
    margin-bottom: 28px;
}

.login-paw {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(77, 127, 211, 0.15),
            rgba(80, 168, 122, 0.15)
        );

    font-size: 1.6rem;
}

.login-brand h1 {
    margin: 3px 0 8px;

    font-size: 2.1rem;
    letter-spacing: -0.05em;
}

.login-brand p {
    margin: 0;
    color: var(--muted);
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin-bottom: 15px;
}

.login-field span {
    color: var(--muted);

    font-size: 0.8rem;
    font-weight: 700;
}

.login-field input {
    width: 100%;
    box-sizing: border-box;

    padding: 13px 14px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: rgba(120, 125, 140, 0.07);
    color: var(--text);

    font: inherit;
}

.login-field input:focus {
    outline: none;
    border-color: var(--lionnel);

    box-shadow:
        0 0 0 3px rgba(77, 127, 211, 0.13);
}

.login-button {
    width: 100%;

    margin-top: 8px;
    padding: 13px 16px;

    border: 0;
    border-radius: 14px;

    background: var(--text);
    color: var(--surface-solid);

    font: inherit;
    font-weight: 750;

    cursor: pointer;
}

.login-error {
    margin-bottom: 18px;
    padding: 11px 13px;

    border-radius: 11px;

    background: rgba(205, 70, 70, 0.12);
    color: #c64545;

    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    .login-card {
        padding: 24px 20px;
        border-radius: 22px;
    }
}

/* Benutzer und Abmelden */

.user-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 14px;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
}

.user-menu form {
    margin: 0;
}

.logout-button {
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.logout-button:hover {
    border-color: var(--lionnel);
}


/* Kalender-Zeitraumauswahl */

.fc .fc-highlight {
    background: rgba(77, 127, 211, 0.16);
}

.fc .fc-daygrid-day {
    cursor: pointer;
}

.delete-button {
    width: 100%;

    margin-top: 10px;
    padding: 12px 16px;

    border: 1px solid rgba(205, 70, 70, 0.35);
    border-radius: 14px;

    background: rgba(205, 70, 70, 0.08);
    color: #c64545;

    font: inherit;
    font-weight: 700;

    cursor: pointer;
}

.delete-button:hover {
    background: rgba(205, 70, 70, 0.14);
}

.delete-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

/* Hinweis bei gemischter Mehrtages-Auswahl */

.edit-range-info {
    margin-bottom: 15px;
    padding: 11px 13px;

    border: 1px solid rgba(190, 140, 40, 0.28);
    border-radius: 12px;

    background: rgba(190, 140, 40, 0.10);
    color: var(--text);

    font-size: 0.84rem;
    line-height: 1.4;
}


/* =========================================================
   Jilly – Professional Calendar V1
   ========================================================= */

:root {
    --background: #f3f4f6;
    --surface: #ffffff;
    --surface-solid: #ffffff;

    --text: #16181d;
    --muted: #777d88;

    --border: rgba(20, 24, 32, 0.10);
    --border-strong: rgba(20, 24, 32, 0.15);

    --lionnel: #5f88c9;
    --lionnel-soft: rgba(95, 136, 201, 0.15);

    --tanja: #5fa980;
    --tanja-soft: rgba(95, 169, 128, 0.15);

    --radius-large: 14px;
    --radius-medium: 10px;

    --shadow:
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 8px 28px rgba(0, 0, 0, 0.04);
}


/* Gesamtlayout */

.app-shell {
    width: min(1480px, calc(100% - 48px));
    padding-top: 34px;
}

.topbar {
    align-items: center;
    margin-bottom: 20px;
}

.topbar h1 {
    margin-top: 5px;
    font-size: 2.55rem;
    font-weight: 720;
    letter-spacing: -0.055em;
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}


/* Ansichtsschalter */

.view-switcher {
    padding: 3px;
    gap: 2px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: rgba(120, 125, 140, 0.07);
}

.view-switcher button {
    padding: 8px 14px;

    border-radius: 7px;

    font-size: 0.88rem;
    font-weight: 570;
}

.view-switcher button.active {
    box-shadow: none;

    background: var(--surface-solid);
    color: var(--text);
}


/* Benutzer */

.user-menu {
    gap: 10px;
    margin: 0;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.logout-button {
    padding: 7px 11px;

    border-radius: 8px;

    background: transparent;

    font-size: 0.8rem;
}


/* Legende */

.legend-card {
    gap: 24px;

    margin-bottom: 18px;
    padding: 0 2px;

    border: 0;
    border-radius: 0;

    background: transparent;
}

.legend-item {
    gap: 7px;

    color: var(--muted);

    font-size: 0.82rem;
    font-weight: 600;
}

.legend-dot,
.legend-split {
    width: 10px;
    height: 10px;

    border-radius: 3px;
}


/* Kalenderrahmen */

.calendar-card {
    padding: 0;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);

    box-shadow: var(--shadow);
}


/* FullCalendar Grundoptik */

.fc {
    --fc-border-color: var(--border);
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: transparent;
    --fc-today-bg-color: transparent;

    font-size: 0.9rem;
}


/* Toolbar */

.fc .fc-toolbar {
    min-height: 68px;

    margin: 0;
    padding: 14px 18px;

    border-bottom: 1px solid var(--border);
}

.fc .fc-toolbar-title {
    font-size: 1.42rem;
    font-weight: 690;

    letter-spacing: -0.035em;
}

.fc .fc-button {
    min-width: 36px;

    padding: 7px 10px !important;

    border: 1px solid var(--border) !important;
    border-radius: 7px !important;

    background: transparent !important;
    color: var(--text) !important;

    font-size: 0.82rem !important;
    font-weight: 580 !important;
}

.fc .fc-button:hover {
    background: rgba(120, 125, 140, 0.07) !important;
}

.fc .fc-button:focus {
    box-shadow: none !important;
}


/* Wochentage */

.fc .fc-col-header {
    background: rgba(120, 125, 140, 0.035);
}

.fc .fc-col-header-cell {
    padding: 11px 0;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    color: var(--muted);

    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.055em;
}

.fc .fc-col-header-cell:last-child {
    border-right: 0;
}


/* Tageszellen */

.fc-theme-standard td,
.fc-theme-standard th {
    border-color: var(--border);
}

.fc .fc-daygrid-day {
    background: var(--surface);
}

.fc .fc-daygrid-day-frame {
    min-height: 112px;

    padding: 0;

    overflow: hidden;

    border-radius: 0;
}

.fc .fc-daygrid-day-number {
    position: relative;
    z-index: 6;

    padding: 9px 10px;

    color: var(--text);

    font-size: 0.82rem;
    font-weight: 620;
}

.fc .fc-day-other .fc-daygrid-day-number {
    opacity: 0.28;
}

.fc .fc-day-today {
    box-shadow:
        inset 0 0 0 1.5px
        rgba(95, 136, 201, 0.65);
}

.fc .fc-day-today .fc-daygrid-day-number {
    color: var(--text);
    font-weight: 760;
}


/* Betreuung:
   Keine "Karte im Tag" mehr.
   Ruhige Fläche über die ganze Zelle. */

.jilly-day-background {
    inset: 0;

    border-radius: 0;

    opacity: 1;

    pointer-events: none;
}

.jilly-day-background.caretaker-lionnel {
    background:
        linear-gradient(
            90deg,
            var(--lionnel-soft),
            var(--lionnel-soft)
        );
}

.jilly-day-background.caretaker-tanja {
    background:
        linear-gradient(
            90deg,
            var(--tanja-soft),
            var(--tanja-soft)
        );
}


/* Dünner Farbakzent statt Vollflächen */

.jilly-day-background.caretaker-lionnel::before,
.jilly-day-background.caretaker-tanja::before {
    content: "";

    position: absolute;

    inset: 0 auto 0 0;

    width: 4px;
}

.jilly-day-background.caretaker-lionnel::before {
    background: var(--lionnel);
}

.jilly-day-background.caretaker-tanja::before {
    background: var(--tanja);
}


/* Übergabe bleibt 50/50,
   aber deutlich ruhiger */

.jilly-day-background.handover.from-lionnel.to-tanja {
    background:
        linear-gradient(
            90deg,
            var(--lionnel-soft) 0%,
            var(--lionnel-soft) 50%,
            var(--tanja-soft) 50%,
            var(--tanja-soft) 100%
        );
}

.jilly-day-background.handover.from-tanja.to-lionnel {
    background:
        linear-gradient(
            90deg,
            var(--tanja-soft) 0%,
            var(--tanja-soft) 50%,
            var(--lionnel-soft) 50%,
            var(--lionnel-soft) 100%
        );
}

.jilly-day-background.handover::after {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 50%;

    width: 1px;

    background: var(--border-strong);
}


/* Übergabeinformation */

.jilly-day-info {
    position: absolute;
    z-index: 8;

    left: 10px;
    right: 10px;
    bottom: 8px;

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

    gap: 8px;

    color: var(--text);

    font-size: 0.72rem;
    font-weight: 650;
}

.jilly-day-info > * {
    position: relative;
    z-index: 2;
}


/* Notizpunkt */

.jilly-note-indicator {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: currentColor;

    opacity: 0.55;
}


/* Auswahl */

.fc .fc-highlight {
    background: rgba(95, 136, 201, 0.09);
}


/* Dark Mode */

@media (prefers-color-scheme: dark) {

    :root {
        --background: #0e1014;
        --surface: #15181e;
        --surface-solid: #1c2027;

        --text: #eef0f3;
        --muted: #969da8;

        --border: rgba(255, 255, 255, 0.075);
        --border-strong: rgba(255, 255, 255, 0.13);

        --lionnel: #7195cf;
        --lionnel-soft: rgba(113, 149, 207, 0.18);

        --tanja: #6eaf8d;
        --tanja-soft: rgba(110, 175, 141, 0.18);

        --shadow:
            0 1px 2px rgba(0, 0, 0, 0.20),
            0 18px 50px rgba(0, 0, 0, 0.18);
    }

    .fc .fc-col-header {
        background: rgba(255, 255, 255, 0.018);
    }

    .view-switcher {
        background: rgba(255, 255, 255, 0.035);
    }

    .fc .fc-button:hover {
        background: rgba(255, 255, 255, 0.05) !important;
    }
}


/* Mobil */

@media (max-width: 760px) {

    .app-shell {
        width: 100%;
        padding: 16px 10px 28px;
    }

    .topbar h1 {
        font-size: 2rem;
    }

    .legend-card {
        margin-bottom: 12px;
        padding-inline: 2px;
    }

    .calendar-card {
        border-radius: 11px;
    }

    .fc .fc-toolbar {
        min-height: auto;

        padding: 11px 10px;

        gap: 8px;
    }

    .fc .fc-toolbar-title {
        font-size: 1.08rem;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 74px;
    }

    .fc .fc-daygrid-day-number {
        padding: 6px 7px;

        font-size: 0.72rem;
    }

    .jilly-day-info {
        left: 6px;
        right: 6px;
        bottom: 5px;

        font-size: 0.62rem;
    }

    .view-switcher button {
        padding: 7px 5px;

        font-size: 0.76rem;
    }
}


/* =========================================================
   Avatar-Kalender V1
   ========================================================= */

.fc .fc-scrollgrid,
.fc .fc-scrollgrid table,
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.fc .fc-daygrid-body,
.fc .fc-daygrid-body table {
    width: 100% !important;
}

.fc .fc-col-header-cell-cushion {
    padding: 10px 0;
    color: #a6afc2;
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
}

.fc .fc-daygrid-day {
    padding: 5px;
    background: transparent;
}

.fc .fc-daygrid-day-frame {
    position: relative;
    min-height: 150px;
    padding: 12px 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background:
        linear-gradient(
            180deg,
            rgba(20, 26, 40, 0.98),
            rgba(16, 20, 31, 0.98)
        );
    overflow: hidden;
}

.fc .fc-daygrid-day-top {
    justify-content: flex-start;
}

.fc .fc-daygrid-day-number {
    padding: 0;
    color: #e9edf7;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    z-index: 5;
}

.fc .fc-day-other .fc-daygrid-day-frame {
    opacity: 0.42;
}

.fc .fc-day-today .fc-daygrid-day-frame {
    box-shadow:
        inset 0 0 0 2px rgba(167, 186, 255, 0.90);
}

.fc .fc-daygrid-day.jilly-state-lionnel .fc-daygrid-day-frame {
    background:
        linear-gradient(
            180deg,
            rgba(30, 41, 67, 0.96),
            rgba(18, 23, 35, 0.98)
        );
}

.fc .fc-daygrid-day.jilly-state-tanja .fc-daygrid-day-frame {
    background:
        linear-gradient(
            180deg,
            rgba(25, 52, 44, 0.96),
            rgba(18, 23, 35, 0.98)
        );
}

.fc .fc-daygrid-day.jilly-state-handover.jilly-from-lionnel.jilly-to-tanja .fc-daygrid-day-frame {
    background:
        linear-gradient(
            90deg,
            rgba(30, 41, 67, 0.96) 0%,
            rgba(30, 41, 67, 0.96) 50%,
            rgba(25, 52, 44, 0.96) 50%,
            rgba(25, 52, 44, 0.96) 100%
        );
}

.fc .fc-daygrid-day.jilly-state-handover.jilly-from-tanja.jilly-to-lionnel .fc-daygrid-day-frame {
    background:
        linear-gradient(
            90deg,
            rgba(25, 52, 44, 0.96) 0%,
            rgba(25, 52, 44, 0.96) 50%,
            rgba(30, 41, 67, 0.96) 50%,
            rgba(30, 41, 67, 0.96) 100%
        );
}

.jilly-avatar-row {
    position: absolute;
    left: 14px;
    top: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 6;
}

.jilly-badge-cluster {
    display: flex;
    align-items: center;
}

.jilly-badge {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.42rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.jilly-badge.lionnel {
    background: #9bb1f1;
    color: #12233f;
}

.jilly-badge.tanja {
    background: #83c7a0;
    color: #123725;
}

.jilly-badge.shift-left {
    margin-left: -12px;
}

.jilly-badge.vacation {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
    font-weight: 800;
    margin-left: 2px;
    box-shadow:
        0 0 0 3px rgba(16, 20, 31, 0.95),
        0 6px 12px rgba(0, 0, 0, 0.20);
}

.jilly-time-pill {
    position: absolute;
    left: 14px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(6, 10, 18, 0.45);
    backdrop-filter: blur(6px);
    color: #dfe6f6;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    z-index: 6;
}

.jilly-note-indicator {
    position: absolute;
    right: 12px;
    top: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f3f6ff;
    opacity: 0.9;
    z-index: 6;
}

@media (max-width: 760px) {

    .fc .fc-daygrid-day-frame {
        min-height: 102px;
        padding: 10px 10px 8px;
        border-radius: 14px;
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.9rem;
    }

    .jilly-avatar-row {
        left: 10px;
        top: 36px;
        gap: 6px;
    }

    .jilly-badge {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    .jilly-badge.vacation {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .jilly-time-pill {
        left: 10px;
        bottom: 8px;
        padding: 3px 8px;
        font-size: 0.66rem;
    }
}


/* =========================================================
   Jilly – Refined Calendar V2
   ========================================================= */

/* Kalender etwas kompakter und ruhiger */

.fc .fc-daygrid-day {
    padding: 4px;
}

.fc .fc-daygrid-day-frame {
    min-height: 128px;

    padding: 11px 11px 9px;

    border-radius: 14px;

    border: 1px solid rgba(255, 255, 255, 0.055);

    background: #151922;
}


/* Normale Betreuung viel dezenter */

.fc .fc-daygrid-day.jilly-state-lionnel
.fc-daygrid-day-frame {
    background:
        linear-gradient(
            180deg,
            rgba(65, 91, 145, 0.22),
            rgba(21, 25, 34, 1) 68%
        );
}

.fc .fc-daygrid-day.jilly-state-tanja
.fc-daygrid-day-frame {
    background:
        linear-gradient(
            180deg,
            rgba(56, 119, 89, 0.22),
            rgba(21, 25, 34, 1) 68%
        );
}


/* Übergaben subtiler */

.fc .fc-daygrid-day.jilly-state-handover.jilly-from-lionnel.jilly-to-tanja
.fc-daygrid-day-frame {
    background:
        linear-gradient(
            90deg,
            rgba(65, 91, 145, 0.24) 0%,
            rgba(65, 91, 145, 0.24) 50%,
            rgba(56, 119, 89, 0.24) 50%,
            rgba(56, 119, 89, 0.24) 100%
        ),
        #151922;
}

.fc .fc-daygrid-day.jilly-state-handover.jilly-from-tanja.jilly-to-lionnel
.fc-daygrid-day-frame {
    background:
        linear-gradient(
            90deg,
            rgba(56, 119, 89, 0.24) 0%,
            rgba(56, 119, 89, 0.24) 50%,
            rgba(65, 91, 145, 0.24) 50%,
            rgba(65, 91, 145, 0.24) 100%
        ),
        #151922;
}


/* Datum stärker, aber nicht dominant */

.fc .fc-daygrid-day-number {
    padding: 0;

    font-size: 0.92rem;
    font-weight: 700;

    color: #f2f4f8;
}


/* Avatare kleiner */

.jilly-avatar-row {
    left: 12px;
    top: 42px;

    gap: 6px;
}

.jilly-badge {
    width: 36px;
    height: 36px;

    font-size: 1.05rem;

    box-shadow: none;
}

.jilly-badge.lionnel {
    background: #91a9e6;
    color: #14213b;
}

.jilly-badge.tanja {
    background: #79bf98;
    color: #123322;
}

.jilly-badge.shift-left {
    margin-left: -9px;
}


/* Ferienbadge kleiner und klar */

.jilly-badge.vacation {
    width: 24px;
    height: 24px;

    margin-left: 1px;

    font-size: 0.72rem;
    font-weight: 800;

    box-shadow:
        0 0 0 2px #151922;
}


/* Zeit: genau die gute Idee beibehalten */

.jilly-time-pill {
    left: 12px;
    bottom: 9px;

    padding: 4px 8px;

    border-radius: 7px;

    background: rgba(7, 11, 18, 0.66);

    color: #f1f4fb;

    font-size: 0.72rem;
    font-weight: 720;

    letter-spacing: 0.01em;

    backdrop-filter: blur(5px);
}


/* Notizpunkt etwas kleiner */

.jilly-note-indicator {
    top: 12px;
    right: 11px;

    width: 5px;
    height: 5px;

    opacity: 0.7;
}


/* Auswahl deutlich, aber elegant */

.fc .fc-highlight {
    background: rgba(150, 175, 235, 0.08);
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-frame {
    box-shadow:
        inset 0 0 0 1.5px rgba(145, 169, 230, 0.85);
}


/* Weniger Abstand im Raster */

.fc .fc-daygrid-body tr {
    height: auto;
}


/* Mobile */

@media (max-width: 760px) {

    .fc .fc-daygrid-day {
        padding: 3px;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 92px;

        padding: 8px;

        border-radius: 11px;
    }

    .jilly-avatar-row {
        left: 8px;
        top: 32px;
    }

    .jilly-badge {
        width: 29px;
        height: 29px;

        font-size: 0.9rem;
    }

    .jilly-badge.vacation {
        width: 20px;
        height: 20px;

        font-size: 0.62rem;
    }

    .jilly-time-pill {
        left: 8px;
        bottom: 6px;

        padding: 3px 6px;

        font-size: 0.62rem;
    }
}


/* =========================================================
   Jilly Calendar V3
   Neutral + Kreise
   ========================================================= */


/* ---------------------------------------------------------
   Legende
--------------------------------------------------------- */

.legend-card {
    gap: 26px;

    margin-bottom: 16px;
    padding: 0 2px;

    border: 0;
    background: transparent;
}

.legend-item {
    gap: 8px;

    color: var(--muted);

    font-size: 0.84rem;
    font-weight: 600;
}

.legend-dot {
    width: 11px;
    height: 11px;

    border-radius: 50%;
}


/* ---------------------------------------------------------
   Kalenderzellen
--------------------------------------------------------- */

.fc .fc-daygrid-day {
    padding: 4px;

    background: transparent !important;
}

.fc .fc-daygrid-day-frame {
    position: relative;

    min-height: 126px;

    padding: 10px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;

    background: #151922 !important;

    box-shadow: none !important;
}


/* ALLE Betreuungsarten bekommen denselben Hintergrund */

.fc .fc-daygrid-day.jilly-state-lionnel
.fc-daygrid-day-frame,

.fc .fc-daygrid-day.jilly-state-tanja
.fc-daygrid-day-frame,

.fc .fc-daygrid-day.jilly-state-handover
.fc-daygrid-day-frame {

    background: #151922 !important;
}


/* Übergabetage nur minimal hervorheben */

.fc .fc-daygrid-day.jilly-state-handover
.fc-daygrid-day-frame {

    border-color: rgba(255, 255, 255, 0.11);
}


/* ---------------------------------------------------------
   Datum
--------------------------------------------------------- */

.fc .fc-daygrid-day-top {
    justify-content: flex-end;
}

.fc .fc-daygrid-day-number {
    position: relative;
    z-index: 8;

    padding: 0;

    color: #d9deea;

    font-size: 0.84rem;
    font-weight: 650;

    text-decoration: none;
}

.fc .fc-day-other .fc-daygrid-day-frame {
    opacity: 0.34;
}


/* ---------------------------------------------------------
   Betreuungskreise
--------------------------------------------------------- */

.jilly-avatar-row {
    position: absolute;

    left: 50%;
    top: 52%;

    transform: translate(-50%, -50%);

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

    gap: 7px;

    z-index: 7;
}

.jilly-badge {
    width: 36px;
    height: 36px;

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

    border-radius: 50%;

    font-size: 1rem;
    font-weight: 750;

    line-height: 1;

    box-shadow: none;
}

.jilly-badge.lionnel {
    background: #8fa9ea;
    color: #15233c;
}

.jilly-badge.tanja {
    background: #78c39a;
    color: #123624;
}


/* ---------------------------------------------------------
   Übergabe – überlappende Kreise
--------------------------------------------------------- */

.jilly-badge-cluster {
    position: relative;

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

    min-width: 66px;
}

.jilly-badge-cluster .jilly-badge {
    position: relative;
}

.jilly-badge-cluster .jilly-badge:first-child {
    z-index: 2;
}

.jilly-badge-cluster .jilly-badge.shift-left {
    z-index: 3;

    margin-left: -7px;
}


/* kleiner Pfeil über der Überschneidung */

.jilly-badge-cluster::after {
    content: "→";

    position: absolute;

    left: 50%;
    top: 50%;

    z-index: 5;

    transform: translate(-50%, -50%);

    color: rgba(255, 255, 255, 0.95);

    font-size: 0.67rem;
    font-weight: 850;

    pointer-events: none;
}


/* ---------------------------------------------------------
   Ferien
--------------------------------------------------------- */

.jilly-badge.vacation {
    width: 24px;
    height: 24px;

    margin-left: 1px;

    border: 2px solid #151922;

    font-size: 0.72rem;
    font-weight: 850;

    box-shadow: none;
}


/* ---------------------------------------------------------
   Übergabezeit
--------------------------------------------------------- */

.jilly-time-pill {
    position: absolute;

    left: 50%;
    bottom: 8px;

    transform: translateX(-50%);

    z-index: 7;

    padding: 3px 8px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 7px;

    background: rgba(5, 8, 14, 0.50);

    color: #e7ebf5;

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.01em;

    backdrop-filter: blur(5px);
}


/* ---------------------------------------------------------
   Notiz
--------------------------------------------------------- */

.jilly-note-indicator {
    position: absolute;

    top: 31px;
    right: 10px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #f4f6fb;

    opacity: 0.65;

    z-index: 8;
}


/* ---------------------------------------------------------
   Heute
--------------------------------------------------------- */

.fc .fc-day-today .fc-daygrid-day-frame {
    box-shadow:
        inset 0 0 0 1.5px
        rgba(143, 169, 234, 0.75)
        !important;
}


/* ---------------------------------------------------------
   Wochentage
--------------------------------------------------------- */

.fc .fc-col-header-cell {
    padding: 11px 0;

    color: #8f97a7;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.045em;
}


/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */

@media (max-width: 760px) {

    .fc .fc-daygrid-day {
        padding: 2px;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 88px;

        padding: 7px;

        border-radius: 9px;
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.72rem;
    }

    .jilly-badge {
        width: 28px;
        height: 28px;

        font-size: 0.8rem;
    }

    .jilly-badge-cluster {
        min-width: 51px;
    }

    .jilly-badge-cluster .jilly-badge.shift-left {
        margin-left: -6px;
    }

    .jilly-badge-cluster::after {
        font-size: 0.55rem;
    }

    .jilly-badge.vacation {
        width: 19px;
        height: 19px;

        font-size: 0.58rem;
    }

    .jilly-time-pill {
        bottom: 5px;

        padding: 2px 6px;

        font-size: 0.57rem;
    }
}

/* Jilly Logo */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 54px;
    height: 54px;

    object-fit: contain;

    border-radius: 13px;
}

.login-logo {
    width: 120px;
    height: 120px;

    display: block;

    margin: 0 auto 18px;

    object-fit: contain;

    border-radius: 28px;
}

@media (max-width: 760px) {

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .login-logo {
        width: 96px;
        height: 96px;
    }
}


/* =========================================================
   FIX: Jilly Logo Grösse
   ========================================================= */

.topbar .brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
}

.topbar .brand-logo,
.topbar .brand img {
    width: 56px !important;
    height: 56px !important;

    min-width: 56px !important;
    min-height: 56px !important;

    max-width: 56px !important;
    max-height: 56px !important;

    flex: 0 0 56px !important;

    object-fit: contain !important;

    display: block !important;

    border-radius: 13px !important;
}

.topbar .brand-text {
    min-width: 0 !important;
}

.topbar .brand-text h1 {
    margin: 2px 0 0 !important;
}


/* Login */

.login-brand .login-logo,
.login-brand img {
    width: 120px !important;
    height: 120px !important;

    min-width: 120px !important;
    min-height: 120px !important;

    max-width: 120px !important;
    max-height: 120px !important;

    object-fit: contain !important;

    display: block !important;

    margin: 0 auto 18px !important;

    border-radius: 28px !important;
}


/* Mobile */

@media (max-width: 760px) {

    .topbar .brand-logo,
    .topbar .brand img {
        width: 44px !important;
        height: 44px !important;

        min-width: 44px !important;
        min-height: 44px !important;

        max-width: 44px !important;
        max-height: 44px !important;

        flex-basis: 44px !important;
    }

    .login-brand .login-logo,
    .login-brand img {
        width: 96px !important;
        height: 96px !important;

        min-width: 96px !important;
        min-height: 96px !important;

        max-width: 96px !important;
        max-height: 96px !important;
    }
}


/* =========================================================
   FIX: Jilly Logo Grösse
   ========================================================= */

.topbar .brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
}

.topbar .brand-logo,
.topbar .brand img {
    width: 56px !important;
    height: 56px !important;

    min-width: 56px !important;
    min-height: 56px !important;

    max-width: 56px !important;
    max-height: 56px !important;

    flex: 0 0 56px !important;

    object-fit: contain !important;

    display: block !important;

    border-radius: 13px !important;
}

.topbar .brand-text {
    min-width: 0 !important;
}

.topbar .brand-text h1 {
    margin: 2px 0 0 !important;
}


/* Login */

.login-brand .login-logo,
.login-brand img {
    width: 120px !important;
    height: 120px !important;

    min-width: 120px !important;
    min-height: 120px !important;

    max-width: 120px !important;
    max-height: 120px !important;

    object-fit: contain !important;

    display: block !important;

    margin: 0 auto 18px !important;

    border-radius: 28px !important;
}


/* Mobile */

@media (max-width: 760px) {

    .topbar .brand-logo,
    .topbar .brand img {
        width: 44px !important;
        height: 44px !important;

        min-width: 44px !important;
        min-height: 44px !important;

        max-width: 44px !important;
        max-height: 44px !important;

        flex-basis: 44px !important;
    }

    .login-brand .login-logo,
    .login-brand img {
        width: 96px !important;
        height: 96px !important;

        min-width: 96px !important;
        min-height: 96px !important;

        max-width: 96px !important;
        max-height: 96px !important;
    }
}


/* =========================================================
   Jilly Header – final
   ========================================================= */

.jilly-brand {
    display: flex !important;
    align-items: center !important;

    gap: 14px !important;

    width: auto !important;
    height: 58px !important;

    margin: 0 !important;
    padding: 0 !important;

    flex: 0 0 auto !important;
}

.jilly-brand-logo {
    display: block !important;

    width: 58px !important;
    height: 58px !important;

    min-width: 58px !important;
    min-height: 58px !important;

    max-width: 58px !important;
    max-height: 58px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;

    border-radius: 14px !important;

    flex: 0 0 58px !important;
}

.jilly-brand-label {
    display: flex !important;
    align-items: center !important;

    height: 58px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: var(--muted) !important;

    font-size: 0.82rem !important;
    font-weight: 700 !important;

    line-height: 1 !important;

    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;

    white-space: nowrap !important;
}


/* Das alte Jilly-H1 im Header darf nicht mehr erscheinen */

.topbar > div > h1,
.topbar .brand-text h1 {
    display: none !important;
}


/* iPhone */

@media (max-width: 760px) {

    .jilly-brand {
        height: 52px !important;
        gap: 12px !important;
    }

    .jilly-brand-logo {
        width: 52px !important;
        height: 52px !important;

        min-width: 52px !important;
        min-height: 52px !important;

        max-width: 52px !important;
        max-height: 52px !important;

        flex-basis: 52px !important;

        border-radius: 13px !important;
    }

    .jilly-brand-label {
        height: 52px !important;
        font-size: 0.78rem !important;
    }
}

/* =========================================================
   JILLY V5 – HEADER + KOMPAKTER KALENDER
   ========================================================= */

/* HEADER */

.jilly-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.jilly-brand-logo {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    flex: 0 0 58px !important;
    display: block !important;
    object-fit: contain !important;
    border-radius: 14px !important;
}

.jilly-brand-label {
    display: flex !important;
    align-items: center !important;
    height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #e7eaf0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    position: relative !important;
    top: -2px !important;
}

.topbar {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 24px !important;
    margin-bottom: 18px !important;
}

.view-switcher {
    justify-self: center !important;
}

.user-menu {
    justify-self: end !important;
    margin: 0 !important;
}


/* KALENDERKARTE */

.calendar-card {
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    box-shadow: none !important;
}


/* TOOLBAR */

.fc .fc-toolbar {
    min-height: 56px !important;
    padding: 10px 14px !important;
}

.fc .fc-toolbar-title {
    font-size: 1.22rem !important;
    font-weight: 700 !important;
}


/* WOCHENTAGE */

.fc .fc-col-header-cell {
    padding: 8px 0 !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
}


/* TAGESZELLEN */

.fc .fc-daygrid-day {
    padding: 1px !important;
}

.fc .fc-daygrid-day-frame {
    min-height: 88px !important;
    padding: 7px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255,255,255,0.045) !important;
    background: #151922 !important;
    box-shadow: none !important;
}

.fc .fc-daygrid-day.jilly-state-lionnel .fc-daygrid-day-frame,
.fc .fc-daygrid-day.jilly-state-tanja .fc-daygrid-day-frame,
.fc .fc-daygrid-day.jilly-state-handover .fc-daygrid-day-frame {
    background: #151922 !important;
}


/* DATUM */

.fc .fc-daygrid-day-top {
    justify-content: flex-start !important;
}

.fc .fc-daygrid-day-number {
    padding: 0 !important;
    font-size: 0.7rem !important;
    font-weight: 650 !important;
    color: #dfe3eb !important;
}


/* L / T KREISE */

.jilly-avatar-row {
    position: absolute !important;
    left: 50% !important;
    top: 41% !important;
    transform: translate(-50%, -50%) !important;
    gap: 3px !important;
}

.jilly-badge {
    width: 29px !important;
    height: 29px !important;
    font-size: 0.8rem !important;
    font-weight: 750 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}

.jilly-badge.lionnel {
    background: #8fa9ea !important;
    color: #17233b !important;
}

.jilly-badge.tanja {
    background: #78c39a !important;
    color: #123524 !important;
}


/* ÜBERGABE */

.jilly-badge-cluster {
    min-width: 47px !important;
}

.jilly-badge-cluster .jilly-badge.shift-left {
    margin-left: -9px !important;
}

.jilly-badge-cluster::after {
    font-size: 0.5rem !important;
}


/* UHRZEIT */

.jilly-time-pill {
    left: 50% !important;
    bottom: 7px !important;
    transform: translateX(-50%) !important;
    padding: 2px 6px !important;
    border-radius: 5px !important;
    font-size: 0.57rem !important;
    font-weight: 700 !important;
}


/* HEUTE */

.fc .fc-day-today .fc-daygrid-day-frame {
    border-color: rgba(143,169,234,0.30) !important;
    box-shadow: none !important;
}


/* VOR-/FOLGEMONAT */

.fc .fc-day-other .fc-daygrid-day-frame {
    opacity: 0.14 !important;
}


/* MOBILE */

@media (max-width: 760px) {

    .topbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .jilly-brand {
        height: 50px !important;
    }

    .jilly-brand-logo {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
        flex-basis: 50px !important;
    }

    .jilly-brand-label {
        height: 50px !important;
        font-size: 0.9rem !important;
        top: -2px !important;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 74px !important;
        padding: 5px !important;
    }

    .jilly-badge {
        width: 25px !important;
        height: 25px !important;
        font-size: 0.7rem !important;
    }

    .jilly-avatar-row {
        top: 40% !important;
    }

    .jilly-time-pill {
        bottom: 5px !important;
        font-size: 0.5rem !important;
    }
}


/* =========================================================
   JILLY V6 – KLARES KALENDERRASTER
   ========================================================= */


/* ---------------------------------------------------------
   LOGO + KALENDER
--------------------------------------------------------- */

.jilly-brand {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;

    height: 60px !important;

    margin: 0 !important;
    padding: 0 !important;
}

.jilly-brand-logo {
    display: block !important;

    width: 60px !important;
    height: 60px !important;

    min-width: 60px !important;
    min-height: 60px !important;

    max-width: 60px !important;
    max-height: 60px !important;

    flex: 0 0 60px !important;

    object-fit: contain !important;

    border-radius: 14px !important;
}

.jilly-brand-label {
    display: block !important;

    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    align-self: center !important;

    color: #eef0f5 !important;

    font-size: 1rem !important;
    font-weight: 600 !important;

    line-height: 1 !important;

    letter-spacing: 0 !important;
    text-transform: none !important;

    position: relative !important;

    /* deutlich höher – optisch zur Bildmitte */
    transform: translateY(-9px) !important;
}


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.topbar {
    display: grid !important;

    grid-template-columns:
        auto
        1fr
        auto !important;

    align-items: center !important;

    gap: 28px !important;

    margin-bottom: 22px !important;
}

.view-switcher {
    justify-self: center !important;
}

.user-menu {
    justify-self: end !important;
}


/* ---------------------------------------------------------
   KALENDER-AUSSENRAHMEN
--------------------------------------------------------- */

.calendar-card {
    overflow: hidden !important;

    border:
        1px solid
        rgba(255,255,255,0.07)
        !important;

    border-radius: 12px !important;

    background: #11151c !important;

    box-shadow: none !important;
}


/* ---------------------------------------------------------
   TOOLBAR
--------------------------------------------------------- */

.fc .fc-toolbar {
    min-height: 58px !important;

    margin: 0 !important;

    padding: 12px 16px !important;

    border-bottom:
        1px solid
        rgba(255,255,255,0.06)
        !important;
}

.fc .fc-toolbar-title {
    font-size: 1.24rem !important;
    font-weight: 700 !important;

    letter-spacing: -0.025em !important;
}


/* ---------------------------------------------------------
   WOCHENTAGE
--------------------------------------------------------- */

.fc .fc-col-header-cell {
    height: 42px !important;

    padding: 0 !important;

    vertical-align: middle !important;

    background: #151920 !important;

    color: #9ca4b4 !important;

    font-size: 0.7rem !important;
    font-weight: 700 !important;

    letter-spacing: 0.05em !important;
}

.fc .fc-col-header-cell-cushion {
    padding: 13px 0 !important;

    text-decoration: none !important;
}


/* ---------------------------------------------------------
   EIN ZUSAMMENHÄNGENDES RASTER
--------------------------------------------------------- */

.fc-theme-standard td,
.fc-theme-standard th {
    border-color:
        rgba(255,255,255,0.055)
        !important;
}

/* Kein Abstand zwischen den Tageszellen */

.fc .fc-daygrid-day {
    padding: 0 !important;

    background: #151922 !important;
}

/* Keine Karte innerhalb der Zelle */

.fc .fc-daygrid-day-frame {
    position: relative !important;

    height: 96px !important;
    min-height: 96px !important;

    margin: 0 !important;
    padding: 8px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: #151922 !important;

    box-shadow: none !important;
}

/* FullCalendar-Zeilen wirklich kleiner machen */

.fc .fc-daygrid-body tr {
    height: 96px !important;
}


/* Betreuung verändert NICHT den Hintergrund */

.fc .fc-daygrid-day.jilly-state-lionnel
.fc-daygrid-day-frame,

.fc .fc-daygrid-day.jilly-state-tanja
.fc-daygrid-day-frame,

.fc .fc-daygrid-day.jilly-state-handover
.fc-daygrid-day-frame {

    background: #151922 !important;
}


/* ---------------------------------------------------------
   DATUM
--------------------------------------------------------- */

.fc .fc-daygrid-day-top {
    justify-content: flex-start !important;
}

.fc .fc-daygrid-day-number {
    position: relative !important;

    z-index: 8 !important;

    padding: 0 !important;

    color: #d9dee8 !important;

    font-size: 0.72rem !important;
    font-weight: 650 !important;

    text-decoration: none !important;
}


/* ---------------------------------------------------------
   L / T KREISE
--------------------------------------------------------- */

.jilly-avatar-row {
    position: absolute !important;

    left: 50% !important;
    top: 45% !important;

    transform:
        translate(-50%, -50%)
        !important;

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

    gap: 3px !important;

    z-index: 7 !important;
}

.jilly-badge {
    width: 30px !important;
    height: 30px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;

    font-size: 0.82rem !important;
    font-weight: 750 !important;

    box-shadow: none !important;
}

.jilly-badge.lionnel {
    background: #91a9e8 !important;
    color: #15223b !important;
}

.jilly-badge.tanja {
    background: #78c49a !important;
    color: #123524 !important;
}


/* ---------------------------------------------------------
   ÜBERGABE
--------------------------------------------------------- */

.jilly-badge-cluster {
    position: relative !important;

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

    min-width: 49px !important;
}

.jilly-badge-cluster
.jilly-badge.shift-left {

    margin-left: -9px !important;
}

.jilly-badge-cluster::after {
    content: "→" !important;

    position: absolute !important;

    left: 50% !important;
    top: 50% !important;

    transform:
        translate(-50%, -50%)
        !important;

    z-index: 6 !important;

    color: #ffffff !important;

    font-size: 0.5rem !important;
    font-weight: 900 !important;
}


/* ---------------------------------------------------------
   UHRZEIT – DIREKT UNTER DEN KREISEN
--------------------------------------------------------- */

.jilly-time-pill {
    position: absolute !important;

    left: 50% !important;
    bottom: 9px !important;

    transform:
        translateX(-50%)
        !important;

    z-index: 7 !important;

    padding: 2px 6px !important;

    border:
        1px solid
        rgba(255,255,255,0.08)
        !important;

    border-radius: 5px !important;

    background:
        rgba(4,7,12,0.62)
        !important;

    color: #eef1f7 !important;

    font-size: 0.58rem !important;
    font-weight: 700 !important;

    line-height: 1 !important;
}


/* ---------------------------------------------------------
   NOTIZ
--------------------------------------------------------- */

.jilly-note-indicator {
    position: absolute !important;

    top: 8px !important;
    right: 8px !important;

    width: 4px !important;
    height: 4px !important;

    border-radius: 50% !important;

    background: #eef1f6 !important;

    opacity: 0.6 !important;
}


/* ---------------------------------------------------------
   HEUTE
--------------------------------------------------------- */

.fc .fc-day-today {
    background:
        rgba(126,155,222,0.035)
        !important;
}

.fc .fc-day-today
.fc-daygrid-day-frame {

    box-shadow:
        inset 0 0 0 1px
        rgba(143,169,234,0.42)
        !important;
}

.fc .fc-day-today
.fc-daygrid-day-number {

    color: #9eb5f1 !important;
}


/* ---------------------------------------------------------
   VOR-/FOLGEMONAT
--------------------------------------------------------- */

.fc .fc-day-other {
    background: #12161d !important;
}

.fc .fc-day-other
.fc-daygrid-day-frame {

    background: #12161d !important;

    opacity: 0.20 !important;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 760px) {

    .topbar {
        display: flex !important;

        flex-direction: column !important;
        align-items: stretch !important;

        gap: 12px !important;
    }

    .jilly-brand {
        height: 50px !important;
    }

    .jilly-brand-logo {
        width: 50px !important;
        height: 50px !important;

        min-width: 50px !important;
        min-height: 50px !important;

        max-width: 50px !important;
        max-height: 50px !important;

        flex-basis: 50px !important;
    }

    .jilly-brand-label {
        font-size: 0.9rem !important;

        transform:
            translateY(-6px)
            !important;
    }

    .fc .fc-daygrid-day-frame {
        height: 72px !important;
        min-height: 72px !important;

        padding: 5px !important;
    }

    .fc .fc-daygrid-body tr {
        height: 72px !important;
    }

    .jilly-badge {
        width: 25px !important;
        height: 25px !important;

        font-size: 0.7rem !important;
    }

    .jilly-avatar-row {
        top: 43% !important;
    }

    .jilly-badge-cluster {
        min-width: 41px !important;
    }

    .jilly-badge-cluster
    .jilly-badge.shift-left {

        margin-left: -7px !important;
    }

    .jilly-time-pill {
        bottom: 5px !important;

        padding: 2px 4px !important;

        font-size: 0.5rem !important;
    }
}



/* =========================================================
   JILLY V7
   Klarere Monatsübersicht mit Statuslinie
   ========================================================= */


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.jilly-brand {
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
    height: 58px !important;
}

.jilly-brand-logo {
    width: 58px !important;
    height: 58px !important;

    min-width: 58px !important;
    min-height: 58px !important;

    max-width: 58px !important;
    max-height: 58px !important;

    flex: 0 0 58px !important;
}

.jilly-brand-label {
    display: flex !important;
    align-items: center !important;

    height: 58px !important;

    margin: 0 !important;

    color: #e8ebf1 !important;

    font-size: 1rem !important;
    font-weight: 600 !important;

    line-height: 1 !important;

    transform: translateY(-3px) !important;
}


/* ---------------------------------------------------------
   KALENDER-GRUNDFLÄCHE
--------------------------------------------------------- */

.calendar-card {
    background: #12161d !important;

    border:
        1px solid
        rgba(255,255,255,0.08)
        !important;

    border-radius: 12px !important;

    box-shadow:
        0 12px 32px
        rgba(0,0,0,0.12)
        !important;
}


/* ---------------------------------------------------------
   WOCHENTAGE
--------------------------------------------------------- */

.fc .fc-col-header-cell {
    background: #171b23 !important;

    border-color:
        rgba(255,255,255,0.07)
        !important;
}

.fc .fc-col-header-cell-cushion {
    color: #aab2c2 !important;

    font-size: 0.72rem !important;
    font-weight: 700 !important;

    letter-spacing: 0.055em !important;
}


/* ---------------------------------------------------------
   TAGESRASTER
--------------------------------------------------------- */

.fc-theme-standard td,
.fc-theme-standard th {
    border-color:
        rgba(255,255,255,0.075)
        !important;
}

.fc .fc-daygrid-day {
    position: relative !important;

    padding: 0 !important;

    background: #181d26 !important;
}

.fc .fc-daygrid-day-frame {
    position: relative !important;

    height: 100px !important;
    min-height: 100px !important;

    margin: 0 !important;
    padding: 9px !important;

    overflow: hidden !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: #181d26 !important;

    box-shadow: none !important;
}

.fc .fc-daygrid-body tr {
    height: 100px !important;
}


/* ---------------------------------------------------------
   STATUSLINIE OBEN
--------------------------------------------------------- */

.fc .fc-daygrid-day-frame::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background: transparent;

    z-index: 4;

    pointer-events: none;
}


/* Lionnel */

.fc .fc-daygrid-day.jilly-state-lionnel
.fc-daygrid-day-frame::before {

    background: #8fa9ea;
}


/* Tanja */

.fc .fc-daygrid-day.jilly-state-tanja
.fc-daygrid-day-frame::before {

    background: #78c39a;
}


/* Lionnel -> Tanja */

.fc .fc-daygrid-day.jilly-state-handover.jilly-from-lionnel.jilly-to-tanja
.fc-daygrid-day-frame::before {

    background:
        linear-gradient(
            90deg,
            #8fa9ea 0%,
            #8fa9ea 50%,
            #78c39a 50%,
            #78c39a 100%
        );
}


/* Tanja -> Lionnel */

.fc .fc-daygrid-day.jilly-state-handover.jilly-from-tanja.jilly-to-lionnel
.fc-daygrid-day-frame::before {

    background:
        linear-gradient(
            90deg,
            #78c39a 0%,
            #78c39a 50%,
            #8fa9ea 50%,
            #8fa9ea 100%
        );
}


/* ---------------------------------------------------------
   ÜBERGABETAG ETWAS HERVORHEBEN
--------------------------------------------------------- */

.fc .fc-daygrid-day.jilly-state-handover
.fc-daygrid-day-frame {

    background:
        #1a202a
        !important;
}


/* ---------------------------------------------------------
   DATUM
--------------------------------------------------------- */

.fc .fc-daygrid-day-top {
    justify-content: flex-start !important;
}

.fc .fc-daygrid-day-number {
    position: relative !important;

    z-index: 8 !important;

    padding: 0 !important;

    color: #dfe4ed !important;

    font-size: 0.74rem !important;
    font-weight: 650 !important;

    text-decoration: none !important;
}


/* ---------------------------------------------------------
   KREISE
--------------------------------------------------------- */

.jilly-avatar-row {
    position: absolute !important;

    left: 50% !important;
    top: 44% !important;

    transform:
        translate(-50%, -50%)
        !important;

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

    gap: 3px !important;

    z-index: 7 !important;
}

.jilly-badge {
    width: 35px !important;
    height: 35px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;

    font-size: 0.92rem !important;
    font-weight: 750 !important;

    box-shadow:
        0 3px 9px
        rgba(0,0,0,0.15)
        !important;
}

.jilly-badge.lionnel {
    background: #94adeb !important;
    color: #14213a !important;
}

.jilly-badge.tanja {
    background: #7ac49b !important;
    color: #123423 !important;
}


/* ---------------------------------------------------------
   ÜBERLAPPUNG
--------------------------------------------------------- */

.jilly-badge-cluster {
    min-width: 56px !important;
}

.jilly-badge-cluster
.jilly-badge.shift-left {

    margin-left: -10px !important;
}

.jilly-badge-cluster::after {
    font-size: 0.53rem !important;

    color: white !important;
}


/* ---------------------------------------------------------
   ÜBERGABEZEIT
--------------------------------------------------------- */

.jilly-time-pill {
    position: absolute !important;

    left: 50% !important;
    bottom: 9px !important;

    transform:
        translateX(-50%)
        !important;

    z-index: 8 !important;

    padding: 3px 7px !important;

    border:
        1px solid
        rgba(255,255,255,0.10)
        !important;

    border-radius: 6px !important;

    background:
        rgba(5,8,14,0.72)
        !important;

    color: #f3f5f9 !important;

    font-size: 0.62rem !important;
    font-weight: 750 !important;

    line-height: 1 !important;
}


/* ---------------------------------------------------------
   HEUTE
--------------------------------------------------------- */

/* kein kompletter blauer Rahmen */

.fc .fc-day-today
.fc-daygrid-day-frame {

    box-shadow: none !important;
}


/* kleiner Punkt neben dem Datum */

.fc .fc-day-today
.fc-daygrid-day-number::after {

    content: "";

    display: inline-block;

    width: 5px;
    height: 5px;

    margin-left: 5px;

    border-radius: 50%;

    background: #8fa9ea;

    vertical-align: middle;
}


/* ---------------------------------------------------------
   NOTIZ
--------------------------------------------------------- */

.jilly-note-indicator {
    top: 10px !important;
    right: 9px !important;

    width: 4px !important;
    height: 4px !important;

    opacity: 0.55 !important;
}


/* ---------------------------------------------------------
   VOR- / FOLGEMONAT
--------------------------------------------------------- */

.fc .fc-day-other {
    background: #141820 !important;
}

.fc .fc-day-other
.fc-daygrid-day-frame {

    background: #141820 !important;

    opacity: 0.15 !important;
}


/* ---------------------------------------------------------
   FERIEN
--------------------------------------------------------- */

.jilly-badge.vacation {
    width: 22px !important;
    height: 22px !important;

    font-size: 0.62rem !important;

    border:
        2px solid
        #181d26
        !important;

    box-shadow: none !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .jilly-brand {
        height: 50px !important;
    }

    .jilly-brand-logo {
        width: 50px !important;
        height: 50px !important;

        min-width: 50px !important;
        min-height: 50px !important;

        max-width: 50px !important;
        max-height: 50px !important;

        flex-basis: 50px !important;
    }

    .jilly-brand-label {
        height: 50px !important;

        font-size: 0.9rem !important;

        transform:
            translateY(-2px)
            !important;
    }

    .fc .fc-daygrid-day-frame {
        height: 76px !important;
        min-height: 76px !important;

        padding: 5px !important;
    }

    .fc .fc-daygrid-body tr {
        height: 76px !important;
    }

    .fc .fc-daygrid-day-frame::before {
        height: 2px !important;
    }

    .jilly-badge {
        width: 27px !important;
        height: 27px !important;

        font-size: 0.75rem !important;

        box-shadow: none !important;
    }

    .jilly-avatar-row {
        top: 42% !important;
    }

    .jilly-badge-cluster {
        min-width: 44px !important;
    }

    .jilly-badge-cluster
    .jilly-badge.shift-left {

        margin-left: -7px !important;
    }

    .jilly-time-pill {
        bottom: 5px !important;

        padding: 2px 5px !important;

        font-size: 0.51rem !important;
    }
}


/* =========================================================
   JILLY V11 – HEUTE KLARER + RUHIGERER HINTERGRUND
   ========================================================= */

/* ---------------------------------------------------------
   Grundhintergrund des Kalenders ruhiger und etwas heller
--------------------------------------------------------- */

.fc,
.fc-theme-standard .fc-scrollgrid,
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: rgba(255,255,255,0.07) !important;
}

.fc .fc-daygrid-day,
.fc .fc-daygrid-day-frame {
    background: #121926 !important;
}

.fc .fc-daygrid-day-frame {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.04) !important;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease !important;
}

/* andere Monate stärker zurücknehmen */
.fc .fc-day-other .fc-daygrid-day-frame {
    background: #0d131d !important;
    opacity: 0.42 !important;
}

/* normale Tage bewusst neutral halten */
.fc .fc-daygrid-day.jilly-state-lionnel .fc-daygrid-day-frame,
.fc .fc-daygrid-day.jilly-state-tanja .fc-daygrid-day-frame {
    background: #121926 !important;
}

/* Übergabetage leicht abheben */
.fc .fc-daygrid-day.jilly-state-handover .fc-daygrid-day-frame {
    background: #172132 !important;
    box-shadow:
        inset 0 0 0 1px rgba(140, 178, 255, 0.10) !important;
}

/* Hover dezent */
.fc .fc-daygrid-day:hover .fc-daygrid-day-frame {
    background: #162031 !important;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08) !important;
}

/* ---------------------------------------------------------
   HEUTE deutlich hervorheben
--------------------------------------------------------- */

.fc .fc-day-today,
.fc .fc-day-today .fc-daygrid-day-frame {
    background: #1a2638 !important;
}

.fc .fc-day-today .fc-daygrid-day-frame {
    box-shadow:
        inset 0 0 0 2px rgba(151, 187, 255, 0.72),
        0 0 0 1px rgba(255,255,255,0.04),
        0 10px 22px rgba(0,0,0,0.18) !important;
}

/* kleines Heute-Label */
.fc .fc-day-today .fc-daygrid-day-top {
    position: relative !important;
}

.fc .fc-day-today .fc-daygrid-day-top::before {
    content: "Heute";
    position: absolute;
    top: 8px;
    left: 10px;

    padding: 4px 9px;
    border-radius: 999px;

    background: rgba(151, 187, 255, 0.18);
    border: 1px solid rgba(151, 187, 255, 0.24);
    color: #eef4ff;

    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Tageszahl von heute grösser und markanter */
.fc .fc-day-today .fc-daygrid-day-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 40px !important;
    height: 40px !important;
    margin: 8px 8px 0 0 !important;
    padding: 0 !important;

    border-radius: 999px !important;
    background: linear-gradient(
        180deg,
        rgba(151, 187, 255, 0.24),
        rgba(151, 187, 255, 0.14)
    ) !important;
    border: 1px solid rgba(151, 187, 255, 0.38) !important;
    color: #ffffff !important;

    font-size: 1.22rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    box-shadow:
        0 6px 18px rgba(0,0,0,0.22) !important;
}

/* normale Tageszahlen etwas ruhiger */
.fc .fc-daygrid-day-number {
    font-weight: 700 !important;
    color: rgba(255,255,255,0.92) !important;
}

/* Wochentage oben etwas klarer */
.fc .fc-col-header-cell-cushion {
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    color: rgba(226,232,245,0.82) !important;
}

/* ---------------------------------------------------------
   Kreise leicht sauberer platzieren
--------------------------------------------------------- */

.jilly-avatar-row {
    top: 47% !important;
}

.jilly-badge {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.16) !important;
}

/* Übergabezeit besser lesbar */
.jilly-time-pill {
    bottom: 10px !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    background: rgba(6, 10, 18, 0.88) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    color: #ffffff !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
}

/* aktive / ausgewählte Zelle */
.fc .fc-daygrid-day:focus-within .fc-daygrid-day-frame {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.12),
        0 0 0 1px rgba(146,181,255,0.28) !important;
}


/* =========================================================
   JILLY V12 – ruhigerer Kalender, klare Heute-Markierung,
   keine Sonder-Hintergründe auf Übergabe-Tagen
   ========================================================= */

/* ---------------------------------------------------------
   1) Grunddarstellung der Tage vereinheitlichen
--------------------------------------------------------- */

.fc .fc-daygrid-day,
.fc .fc-daygrid-day.fc-day-today,
.fc .fc-scrollgrid td,
.fc .fc-scrollgrid th {
    background: transparent !important;
}

.fc .fc-daygrid-day .jilly-day-frame {
    position: relative !important;
    min-height: 112px !important;
    padding: 16px 12px 14px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    background:
        linear-gradient(
            180deg,
            rgba(14,22,36,0.72),
            rgba(11,18,30,0.78)
        ) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

/* Übergabe-Tage NICHT speziell abdunkeln/aufhellen */
.fc .fc-daygrid-day.has-handover .jilly-day-frame,
.fc .fc-daygrid-day.jilly-handover-day .jilly-day-frame,
.fc .fc-daygrid-day[data-handover="true"] .jilly-day-frame,
.fc .fc-daygrid-day .jilly-day-frame.is-handover {
    background:
        linear-gradient(
            180deg,
            rgba(14,22,36,0.72),
            rgba(11,18,30,0.78)
        ) !important;
}

/* Falls alte V-Blöcke einzelne Wochentage anders einfärben */
.fc .fc-daygrid-day:nth-child(odd) .jilly-day-frame,
.fc .fc-daygrid-day:nth-child(even) .jilly-day-frame {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

/* ---------------------------------------------------------
   2) Heute klar markieren
--------------------------------------------------------- */

.fc .fc-daygrid-day.fc-day-today .jilly-day-frame {
    background:
        linear-gradient(
            180deg,
            rgba(24,36,58,0.92),
            rgba(17,27,43,0.92)
        ) !important;
    border: 1px solid rgba(133,169,255,0.95) !important;
    box-shadow:
        0 0 0 2px rgba(133,169,255,0.18) inset,
        0 0 0 1px rgba(133,169,255,0.18),
        0 10px 24px rgba(0,0,0,0.18) !important;
}

/* Datum von heute grösser und fetter */
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: rgba(133,169,255,0.18) !important;
    color: #ffffff !important;
    font-size: 1.32rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

/* Heute-Badge kleiner und sauberer */
.fc .fc-daygrid-day.fc-day-today .today-badge,
.fc .fc-daygrid-day.fc-day-today .jilly-today-badge,
.fc .fc-daygrid-day.fc-day-today .day-today-badge {
    top: 12px !important;
    left: 12px !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: rgba(133,169,255,0.18) !important;
    border: 1px solid rgba(133,169,255,0.30) !important;
    color: #eaf0ff !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

/* ---------------------------------------------------------
   3) Datumszahlen überall sauber platzieren
--------------------------------------------------------- */

.fc .fc-daygrid-day-number {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    z-index: 3 !important;
    color: rgba(255,255,255,0.92) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}

/* ---------------------------------------------------------
   4) Kreise und Uhrzeit ruhiger darstellen
--------------------------------------------------------- */

.fc .fc-daygrid-day .jilly-day-frame :where(
    .jilly-circle,
    .person-circle,
    .status-circle,
    .avatar-circle,
    .caretaker-badge
) {
    box-shadow: 0 2px 10px rgba(0,0,0,0.18) !important;
}

.fc .fc-daygrid-day .jilly-day-frame :where(
    .handover-time,
    .jilly-handover-time,
    .day-time-chip
) {
    padding: 5px 12px !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,0.42) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
}

/* ---------------------------------------------------------
   5) Mobile / iPhone – kleiner und ohne Überschneidungen
--------------------------------------------------------- */

@media (max-width: 900px) {
    .topbar {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .jilly-brand {
        height: 46px !important;
        gap: 10px !important;
    }

    .jilly-brand-logo {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
    }

    .jilly-brand-label {
        height: 46px !important;
        font-size: 1rem !important;
        top: 0 !important;
    }

    .view-switcher {
        width: 100% !important;
        justify-self: stretch !important;
        overflow-x: auto !important;
    }

    .user-menu {
        justify-self: end !important;
        gap: 10px !important;
    }

    .fc .fc-daygrid-day .jilly-day-frame {
        min-height: 92px !important;
        padding: 12px 8px 10px !important;
        border-radius: 14px !important;
    }

    .fc .fc-daygrid-day-number {
        top: 8px !important;
        right: 8px !important;
        font-size: 0.95rem !important;
    }

    .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
        min-width: 30px !important;
        height: 30px !important;
        font-size: 1.08rem !important;
        padding: 0 8px !important;
    }

    .fc .fc-daygrid-day.fc-day-today .today-badge,
    .fc .fc-daygrid-day.fc-day-today .jilly-today-badge,
    .fc .fc-daygrid-day.fc-day-today .day-today-badge {
        top: 8px !important;
        left: 8px !important;
        padding: 3px 8px !important;
        font-size: 0.68rem !important;
    }

    .fc .fc-daygrid-day .jilly-day-frame :where(
        .handover-time,
        .jilly-handover-time,
        .day-time-chip
    ) {
        padding: 4px 10px !important;
        font-size: 0.8rem !important;
    }

    .fc .fc-toolbar-title,
    .calendar-title,
    .month-title {
        font-size: 1.35rem !important;
    }
}

@media (max-width: 640px) {
    .fc .fc-daygrid-day .jilly-day-frame {
        min-height: 80px !important;
        padding: 10px 6px 8px !important;
    }

    .fc .fc-daygrid-day .jilly-day-frame :where(
        .jilly-circle,
        .person-circle,
        .status-circle,
        .avatar-circle,
        .caretaker-badge
    ) {
        transform: scale(0.88) !important;
        transform-origin: center !important;
    }

    .fc .fc-daygrid-day .jilly-day-frame :where(
        .handover-time,
        .jilly-handover-time,
        .day-time-chip
    ) {
        font-size: 0.74rem !important;
        padding: 3px 8px !important;
    }
}

/* =========================================================
   JILLY V13 – KORREKTUR
   Einheitliche Hintergründe + deutliches Heute + Mobile
   ========================================================= */


/* ---------------------------------------------------------
   ALTE STATUSSTREIFEN / SONDERHINTERGRÜNDE ABSCHALTEN
--------------------------------------------------------- */

.fc .fc-daygrid-day-frame::before {
    display: none !important;
}

.fc .fc-daygrid-day,
.fc .fc-daygrid-day-frame,
.fc .fc-daygrid-day.jilly-state-lionnel .fc-daygrid-day-frame,
.fc .fc-daygrid-day.jilly-state-tanja .fc-daygrid-day-frame,
.fc .fc-daygrid-day.jilly-state-handover .fc-daygrid-day-frame,
.fc .fc-daygrid-day.jilly-state-handover.jilly-from-lionnel.jilly-to-tanja .fc-daygrid-day-frame,
.fc .fc-daygrid-day.jilly-state-handover.jilly-from-tanja.jilly-to-lionnel .fc-daygrid-day-frame {
    background: #151b25 !important;
}


/* Einheitliches Raster */

.fc-theme-standard td,
.fc-theme-standard th {
    border-color: rgba(255,255,255,0.075) !important;
}

.fc .fc-daygrid-day-frame {
    position: relative !important;

    height: 100px !important;
    min-height: 100px !important;

    padding: 8px !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
}


/* ---------------------------------------------------------
   DATUM NORMAL
--------------------------------------------------------- */

.fc .fc-daygrid-day-top {
    position: relative !important;

    justify-content: flex-end !important;
}

.fc .fc-daygrid-day-number {
    position: relative !important;

    z-index: 10 !important;

    padding: 0 !important;

    color: #e2e6ee !important;

    font-size: 0.76rem !important;
    font-weight: 700 !important;

    text-decoration: none !important;
}


/* ---------------------------------------------------------
   HEUTE
--------------------------------------------------------- */

.fc .fc-day-today,
.fc .fc-day-today .fc-daygrid-day-frame {
    background: #192437 !important;
}


/* klarer Rahmen */

.fc .fc-day-today .fc-daygrid-day-frame {
    box-shadow:
        inset 0 0 0 2px rgba(143, 177, 242, 0.78)
        !important;
}


/* HEUTE links oben */

.fc .fc-day-today .fc-daygrid-day-top::before {
    content: "Heute";

    position: absolute;

    top: 1px;
    left: 2px;

    padding: 4px 8px;

    border-radius: 999px;

    background: rgba(143,177,242,0.18);
    border: 1px solid rgba(143,177,242,0.30);

    color: #eef4ff;

    font-size: 0.57rem;
    font-weight: 850;

    line-height: 1;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* heutiges Datum deutlich grösser */

.fc .fc-day-today .fc-daygrid-day-number {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 34px !important;
    height: 34px !important;

    margin: -2px -2px 0 0 !important;

    border-radius: 50% !important;

    background: rgba(143,177,242,0.20) !important;

    border:
        1px solid
        rgba(143,177,242,0.48)
        !important;

    color: #ffffff !important;

    font-size: 1.12rem !important;
    font-weight: 900 !important;
}


/* ---------------------------------------------------------
   L / T
--------------------------------------------------------- */

.jilly-avatar-row {
    left: 50% !important;
    top: 46% !important;

    transform: translate(-50%, -50%) !important;
}

.jilly-badge {
    width: 34px !important;
    height: 34px !important;

    font-size: 0.9rem !important;
    font-weight: 800 !important;

    box-shadow: none !important;
}


/* Übergabe */

.jilly-badge-cluster {
    min-width: 55px !important;
}

.jilly-badge-cluster .jilly-badge.shift-left {
    margin-left: -9px !important;
}


/* ---------------------------------------------------------
   UHRZEIT
--------------------------------------------------------- */

.jilly-time-pill {
    left: 50% !important;
    bottom: 8px !important;

    transform: translateX(-50%) !important;

    padding: 3px 8px !important;

    border-radius: 999px !important;

    background: rgba(4,7,12,0.82) !important;

    border:
        1px solid
        rgba(255,255,255,0.07)
        !important;

    color: #ffffff !important;

    font-size: 0.62rem !important;
    font-weight: 800 !important;
}


/* ---------------------------------------------------------
   VOR-/FOLGEMONAT
--------------------------------------------------------- */

.fc .fc-day-other .fc-daygrid-day-frame {
    background: #11161f !important;

    opacity: 0.20 !important;
}


/* =========================================================
   IPHONE / MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .fc .fc-daygrid-day-frame {
        height: 72px !important;
        min-height: 72px !important;

        padding: 5px !important;
    }

    .fc .fc-daygrid-body tr {
        height: 72px !important;
    }


    /* normales Datum */

    .fc .fc-daygrid-day-number {
        font-size: 0.62rem !important;
    }


    /* Heute auf dem Handy:
       kein zusätzliches HEUTE-Label, damit nichts überlappt */

    .fc .fc-day-today .fc-daygrid-day-top::before {
        display: none !important;
    }

    .fc .fc-day-today .fc-daygrid-day-number {
        width: 25px !important;
        height: 25px !important;

        margin: 0 !important;

        font-size: 0.82rem !important;
    }


    /* kleinere Kreise */

    .jilly-avatar-row {
        top: 44% !important;
    }

    .jilly-badge {
        width: 25px !important;
        height: 25px !important;

        font-size: 0.68rem !important;
    }

    .jilly-badge-cluster {
        min-width: 42px !important;
    }

    .jilly-badge-cluster .jilly-badge.shift-left {
        margin-left: -7px !important;
    }

    .jilly-badge-cluster::after {
        font-size: 0.44rem !important;
    }


    /* Uhrzeit kleiner */

    .jilly-time-pill {
        bottom: 4px !important;

        padding: 2px 5px !important;

        font-size: 0.47rem !important;
    }


    /* Heute-Rahmen etwas dünner */

    .fc .fc-day-today .fc-daygrid-day-frame {
        box-shadow:
            inset 0 0 0 1.5px
            rgba(143,177,242,0.82)
            !important;
    }
}

/* ===== JILLY LOGIN BRAND FINAL ===== */

.login-page .login-brand {
    margin-bottom: 26px !important;
    text-align: center !important;
}


/* Logo bewusst kompakt:
   präsent, aber nicht überdimensioniert */

.login-page
.login-brand
.login-logo,

.login-page
.login-brand
img.login-logo {

    display: block !important;

    width: 84px !important;
    height: 84px !important;

    min-width: 84px !important;
    min-height: 84px !important;

    max-width: 84px !important;
    max-height: 84px !important;

    margin:
        0 auto 7px
        !important;

    object-fit: contain !important;

    border-radius:
        20px !important;
}


/* Kalender direkt unter dem Logo */

.login-page
.login-brand
.login-title {

    margin: 0 !important;

    padding: 0 !important;

    color: var(--text) !important;

    font-size: 1.35rem !important;
    font-weight: 750 !important;

    line-height: 1.05 !important;

    letter-spacing:
        -0.025em !important;

    text-align: center !important;
}


/* Alte Texte sicher ausblenden */

.login-page
.login-brand
.eyebrow,

.login-page
.login-brand
h1,

.login-page
.login-brand
p {

    display: none !important;
}


/* iPhone */

@media (max-width: 600px) {

    .login-page
    .login-brand
    .login-logo,

    .login-page
    .login-brand
    img.login-logo {

        width: 76px !important;
        height: 76px !important;

        min-width: 76px !important;
        min-height: 76px !important;

        max-width: 76px !important;
        max-height: 76px !important;

        margin-bottom:
            6px !important;

        border-radius:
            18px !important;
    }


    .login-page
    .login-brand
    .login-title {

        font-size:
            1.25rem !important;
    }
}

/* ===== ENDE JILLY LOGIN BRAND FINAL ===== */


/* =========================================================
   JILLY LOGIN – LOGO FINAL
   ========================================================= */

.login-page
.login-brand
.login-logo,

.login-page
.login-brand
img.login-logo {

    width: 96px !important;
    height: 96px !important;

    min-width: 96px !important;
    min-height: 96px !important;

    max-width: 96px !important;
    max-height: 96px !important;

    display: block !important;

    margin:
        0 auto 7px
        !important;

    object-fit: contain !important;

    border-radius:
        22px !important;
}


.login-page
.login-brand
.login-title {

    margin: 0 !important;

    padding: 0 !important;

    text-align: center !important;

    font-size: 1.35rem !important;
    font-weight: 750 !important;

    line-height: 1.05 !important;

    letter-spacing:
        -0.025em !important;
}


/* iPhone */

@media (max-width: 600px) {

    .login-page
    .login-brand
    .login-logo,

    .login-page
    .login-brand
    img.login-logo {

        width: 86px !important;
        height: 86px !important;

        min-width: 86px !important;
        min-height: 86px !important;

        max-width: 86px !important;
        max-height: 86px !important;

        margin-bottom:
            6px !important;

        border-radius:
            20px !important;
    }
}



/* =========================================================
   JILLY LOGIN – LOGO 108 PX FINAL
   ========================================================= */

.login-page
.login-brand
.login-logo,

.login-page
.login-brand
img.login-logo {

    display: block !important;

    width: 108px !important;
    height: 108px !important;

    min-width: 108px !important;
    min-height: 108px !important;

    max-width: 108px !important;
    max-height: 108px !important;

    margin:
        0 auto 7px
        !important;

    object-fit: contain !important;

    border-radius:
        24px !important;
}


@media (max-width: 600px) {

    .login-page
    .login-brand
    .login-logo,

    .login-page
    .login-brand
    img.login-logo {

        width: 98px !important;
        height: 98px !important;

        min-width: 98px !important;
        min-height: 98px !important;

        max-width: 98px !important;
        max-height: 98px !important;

        margin-bottom:
            6px !important;

        border-radius:
            22px !important;
    }
}



/* =========================================================
   LOGIN LOGO – 116 PX
   ========================================================= */

.login-page
.login-brand
.login-logo,

.login-page
.login-brand
img.login-logo {

    width: 116px !important;
    height: 116px !important;

    min-width: 116px !important;
    min-height: 116px !important;

    max-width: 116px !important;
    max-height: 116px !important;

    margin:
        0 auto 7px
        !important;

    border-radius:
        26px !important;
}


@media (max-width: 600px) {

    .login-page
    .login-brand
    .login-logo,

    .login-page
    .login-brand
    img.login-logo {

        width: 104px !important;
        height: 104px !important;

        min-width: 104px !important;
        min-height: 104px !important;

        max-width: 104px !important;
        max-height: 104px !important;
    }
}

