:root{
    --bg:#0b0b0d;
    --sidebar:#101012;
    --panel:#202022;
    --panel-2:#262628;
    --panel-3:#2d2d30;
    --line:#353538;
    --line-soft:#2b2b2e;
    --text:#f4f4f5;
    --muted:#8d8d92;
    --purple:#7051d8;
    --purple-soft:#31284f;
    --blue:#2f95dc;
    --orange:#f6a623;
    --green:#42a865;
    --red:#ef5350;
    --radius:18px;
}

*{box-sizing:border-box}

html,body{
    margin:0;
    min-height:100%;
    background:var(--bg);
    color:var(--text);
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;
    -webkit-font-smoothing:antialiased;
}

body{font-size:15px}

a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}

h1,h2,h3,p{margin-top:0}
h1{font-size:36px;letter-spacing:-.03em;margin-bottom:6px}
h2{font-size:21px;letter-spacing:-.015em;margin-bottom:8px}
h3{font-size:16px;margin-bottom:5px}

.app-shell{
    min-height:100vh;
    display:grid;
    grid-template-columns:215px minmax(0,1fr);
}

.sidebar{
    position:sticky;
    top:0;
    height:100vh;
    display:flex;
    flex-direction:column;
    padding:20px 14px 16px;
    background:var(--sidebar);
    border-right:1px solid #242426;
}

.brand {
    height: 90px;
}

.desktop-brand-logo {
    display: block;
    width: 185px;
    height: 85px;
    object-fit: contain;
    object-position: left center;
}

.desktop-top-logo {
    display: block;
    width: 120px;
    height: 40px;
    object-fit: contain;
    object-position: left center;
}

.desktop-auth-logo {
    width: 260px;
    height: 160px;
    margin: 0 auto 20px;
}
.brand-mark{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:#6b50d8;
    color:white;
    font-size:18px;
    font-weight:800;
}
.brand-name{
    font-size:19px;
    font-weight:750;
    letter-spacing:-.02em;
}
.desktop-brand-logo{
    display:block;
    width:200px;
    height:5590x;
    object-fit:contain;
    object-position:left center;
}
.mobile-brand-original{display:none;align-items:center;gap:10px}

.nav{
    display:grid;
    gap:4px;
    margin-top:28px;
}
.nav-item{
    height:44px;
    display:flex;
    align-items:center;
    gap:11px;
    padding:0 12px;
    border-radius:11px;
    color:#b9b9be;
    font-weight:560;
}
.nav-item.active{
    background:#262329;
    color:#fff;
}
.nav-icon{
    width:20px;
    text-align:center;
    color:#a99ae5;
}

.sidebar-footer{
    margin-top:auto;
}
.profile-mini{
    display:flex;
    align-items:center;
    gap:10px;
    padding:11px 8px;
}
.avatar{
    width:35px;
    height:35px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#3a3a3d;
    font-weight:700;
}
.profile-mini-text{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
}
.profile-mini-text strong,
.profile-mini-text span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.profile-mini-text strong{font-size:13px}
.profile-mini-text span{font-size:11px;color:var(--muted)}
.logout-link{
    display:block;
    padding:9px 8px;
    color:#8d8d92;
    font-size:13px;
}

.main{min-width:0}
.topbar{
    height:66px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 28px;
    border-bottom:1px solid #242426;
    background:#0d0d0f;
}
.topbar>div:first-child{display:flex;flex-direction:column;gap:1px}
.top-kicker{font-size:10px;color:#66666b;text-transform:uppercase;letter-spacing:.08em}
.desktop-top-logo{
    display:block;
    width:86px;
    height:22px;
    object-fit:contain;
    object-position:left center;
}
.top-title{font-size:14px}
.top-user{font-size:13px;color:#99999e}

.content{
    width:min(1380px,100%);
    margin:0 auto;
    padding:30px 34px 50px;
}

.page-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:26px;
}
.page-head.compact{align-items:center}
.page-eyebrow{
    margin:0 0 4px;
    color:#8f8f94;
    font-size:11px;
    font-weight:700;
    letter-spacing:.11em;
}
.page-subtitle{
    margin:0;
    color:var(--muted);
    font-size:14px;
}

.button{
    min-height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 15px;
    border:0;
    border-radius:11px;
    font-weight:650;
    color:#fff;
    background:#303033;
}
.button-primary{background:#6d50d5}
.button-outline{
    background:transparent;
    border:1px solid #424247;
    color:#e9e9eb;
}
.button-quiet{
    background:#242426;
    border:1px solid #343437;
    color:#d7d7da;
}
.button-danger{
    background:#3a2021;
    color:#ff7774;
}
.button.full{width:100%}

.panel{
    background:var(--panel);
    border:1px solid #313134;
    border-radius:var(--radius);
}

.panel-head{
    min-height:43px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.panel-head a{
    color:#9d8ce2;
    font-size:13px;
}
.panel-label{
    color:#9b9ba0;
    font-size:11px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

/* Dashboard */
.dashboard-layout{
    display:grid;
    grid-template-columns:minmax(0,1.7fr) minmax(250px,.72fr);
    gap:18px;
}
.next-panel{
    min-height:310px;
    padding:22px;
}
.next-shift{
    display:flex;
    align-items:center;
    gap:15px;
    margin-top:42px;
}
.shift-badge{
    --shift-color:#7051d8;
    width:38px;
    height:30px;
    display:grid;
    place-items:center;
    flex:0 0 auto;
    border-radius:7px;
    background:var(--shift-color);
    color:#fff;
    font-size:13px;
    font-weight:750;
}
.shift-badge.big{
    width:58px;
    height:58px;
    border-radius:15px;
    font-size:19px;
}
.next-shift-copy h2{font-size:28px;margin-bottom:3px}
.next-shift-copy p{color:var(--muted);margin:0}
.time-block{
    margin-top:28px;
    font-size:35px;
    font-weight:700;
    letter-spacing:-.025em;
}
.time-block span{color:#6f6f74;padding:0 4px}

.empty-simple{margin-top:38px}
.empty-plus{
    width:52px;height:52px;
    display:grid;place-items:center;
    border-radius:14px;
    background:#29272d;
    color:#9a88e5;
    font-size:28px;
    margin-bottom:18px;
}
.empty-simple h2{font-size:24px}
.empty-simple p{color:var(--muted)}

.summary-stack{display:grid;gap:14px}
.summary-panel{
    min-height:94px;
    padding:18px 20px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:7px;
}
.summary-number{font-size:29px;letter-spacing:-.02em}
.summary-text{font-size:17px}

.dashboard-bottom{
    display:grid;
    grid-template-columns:minmax(0,1.45fr) minmax(300px,.78fr);
    gap:18px;
    margin-top:18px;
}
.upcoming-panel,.quick-panel{padding:21px}
.upcoming-panel h2,.quick-panel h2{margin-top:5px;margin-bottom:0}
.empty-line{
    margin-top:20px;
    padding:18px 0;
    color:var(--muted);
    border-top:1px solid var(--line-soft);
}
.shift-list{margin-top:10px}
.shift-row{
    min-height:67px;
    display:flex;
    align-items:center;
    gap:12px;
    border-top:1px solid var(--line-soft);
}
.date-box{
    width:42px;
    text-align:center;
    display:flex;
    flex-direction:column;
}
.date-box strong{font-size:17px}
.date-box span{font-size:9px;color:var(--muted);font-weight:700}
.shift-row-main{
    display:flex;
    flex-direction:column;
    gap:3px;
}
.shift-row-main span{font-size:12px;color:var(--muted)}
.shift-row-time{margin-left:auto;font-size:13px;color:#c4c4c8}

.action-list{display:grid;margin-top:14px}
.action-list a{
    min-height:64px;
    display:grid;
    grid-template-columns:38px minmax(0,1fr) 14px;
    align-items:center;
    gap:11px;
    border-top:1px solid var(--line-soft);
}
.action-list a:first-child{border-top:0}
.action-icon{
    width:34px;height:34px;
    display:grid;place-items:center;
    border-radius:9px;
    background:#2c2933;
    color:#a792eb;
    font-size:18px;
}
.action-list a>span:nth-child(2){
    display:flex;
    flex-direction:column;
    gap:2px;
}
.action-list small{color:var(--muted)}
.action-list b{color:#6f6f74;font-size:22px;font-weight:400}

/* Calendar */
.calendar-toolbar{
    display:flex;
    gap:7px;
    margin-bottom:10px;
}
.calendar-card{overflow:hidden;padding:0}
.weekday-grid,.month-grid{
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
}
.weekday-grid{
    background:#1b1b1d;
    border-bottom:1px solid var(--line);
}
.weekday-grid div{
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#9d9da2;
    font-size:11px;
    font-weight:700;
}
.day{
    min-height:124px;
    padding:10px;
    border-right:1px solid var(--line-soft);
    border-bottom:1px solid var(--line-soft);
    background:#202022;
}
.day:nth-child(7n){border-right:0}
.day.empty{background:#1c1c1e}
.day.today{box-shadow:inset 0 0 0 2px #8170da}
.day-number{
    margin-bottom:8px;
    color:#e5e5e7;
    font-size:15px;
    font-weight:650;
}
.shift-pill{
    min-height:27px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:6px;
    margin:4px 0 0;
    color:white;
    font-size:12px;
    font-weight:750;
}

/* Dienstvorlagen */
.template-layout{
    display:grid;
    grid-template-columns:minmax(290px,.8fr) minmax(420px,1.25fr);
    gap:18px;
}
.template-list-panel,.template-editor-panel{padding:20px}
.muted-count{font-size:12px;color:var(--muted)}
.template-list{
    display:grid;
    margin:8px 0 15px;
}
.template-item{
    width:100%;
    min-height:67px;
    display:grid;
    grid-template-columns:42px minmax(0,1fr) 20px;
    align-items:center;
    gap:10px;
    padding:0;
    border:0;
    border-top:1px solid var(--line-soft);
    background:transparent;
    color:var(--text);
    text-align:left;
}
.template-item:first-child{border-top:0}
.template-item.selected{
    margin:0 -8px;
    width:calc(100% + 16px);
    padding:0 8px;
    border-radius:10px;
    background:#29272e;
}
.template-item-copy{
    display:flex;
    flex-direction:column;
    gap:3px;
}
.template-item-copy small{color:var(--muted)}
.chevron{color:#6f6f74;font-size:23px}
.editor-preview{
    display:flex;
    align-items:center;
    gap:14px;
    padding:15px;
    margin:10px 0 20px;
    border-radius:13px;
    background:#18181a;
}
.editor-preview>div:last-child{
    display:flex;
    flex-direction:column;
    gap:3px;
}
.editor-preview span{color:var(--muted);font-size:13px}
.field{margin-top:15px}
.field-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
label{
    display:block;
    margin:0 0 7px;
    color:#aaaab0;
    font-size:12px;
    font-weight:600;
}
input,select,textarea{
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border:1px solid #3a3a3e;
    border-radius:10px;
    background:#18181a;
    color:#f4f4f5;
    outline:none;
}
textarea{resize:vertical}
.color-row{
    display:flex;
    align-items:center;
    gap:9px;
    min-height:44px;
}
.color-dot{
    width:28px;height:28px;
    padding:0;
    border:2px solid #303033;
    border-radius:50%;
    background:var(--dot);
}
input[type=color]{
    width:36px;height:36px;
    min-height:36px;
    padding:3px;
    border-radius:50%;
}
.input-suffix{position:relative}
.input-suffix input{padding-right:55px}
.input-suffix span{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    color:var(--muted);
    font-size:12px;
}
.editor-actions{
    display:flex;
    gap:9px;
    margin-top:24px;
}
.hidden-action{display:none}

/* Statistik */
.stats-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin-bottom:18px;
}
.stat-card{
    padding:19px;
    min-height:110px;
}
.stat-card .metric{
    margin-top:11px;
    font-size:31px;
    font-weight:700;
}
.stats-list-panel{padding:20px}
.stat-row{
    min-height:52px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-top:1px solid var(--line-soft);
}
.stat-row:first-of-type{margin-top:10px}

/* Einstellungen */
.settings-panel,.logout-panel{
    max-width:690px;
    padding:22px;
}
.settings-panel form{display:grid;gap:15px}
.settings-panel label{margin-bottom:6px}
.logout-panel{margin-top:18px}
.logout-panel p{color:var(--muted)}

/* Modal */
.modal{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(0,0,0,.67);
    z-index:100;
}
.modal.open{display:flex}
.modal-box{
    position:relative;
    width:min(520px,100%);
    max-height:90vh;
    overflow:auto;
    padding:22px;
    border:1px solid #38383b;
    border-radius:18px;
    background:#202022;
}
.modal-x{
    position:absolute;
    right:13px;
    top:10px;
    width:34px;height:34px;
    border:0;border-radius:50%;
    background:#303033;
    color:#c7c7cb;
    font-size:23px;
}
.two{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
.detail-card{
    padding:16px;
    margin:14px 0;
    border-radius:13px;
    background:#18181a;
}
.big-time{
    margin:9px 0;
    font-size:25px;
    font-weight:700;
}
.hidden{display:none}

/* Auth */
.auth-body{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:24px;
    background:#0b0b0d;
}
.auth-card{
    width:min(430px,100%);
    padding:30px;
    border:1px solid #2f2f32;
    border-radius:20px;
    background:#1d1d1f;
}
.auth-card.wide{width:min(520px,100%)}
.desktop-auth-logo{
    width:190px;
    height:76px;
    margin:0 auto 18px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.desktop-auth-logo img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}
.mobile-auth-mark{display:none}
.auth-brand{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:28px;
}
.auth-card h1{font-size:30px}
.muted{color:var(--muted)}
.auth-card form{display:grid;gap:13px;margin-top:22px}
.auth-card form label{margin-bottom:-5px}
.auth-switch{
    margin:20px 0 0;
    text-align:center;
    color:var(--muted);
    font-size:13px;
}
.auth-switch a{color:#a897e6}
.alert,.success{
    margin:15px 0;
    padding:11px 12px;
    border-radius:10px;
    font-size:13px;
}
.alert{background:#3a2021;color:#ff8582}
.success{background:#1f3528;color:#7fd5a1}

/* Absolutely no hover styling anywhere */
*:hover{
    transition:none !important;
}

/* Responsive */
@media(max-width:1050px){
    .app-shell{grid-template-columns:78px minmax(0,1fr)}
    .brand-name,.nav-item span:last-child,.profile-mini-text,.logout-link{display:none}
    .sidebar{padding-left:11px;padding-right:11px}
    .brand,.nav-item{justify-content:center}
    .desktop-brand-logo{width:150px;height: 55px;}
    .dashboard-layout,.dashboard-bottom,.template-layout{grid-template-columns:1fr}
}
@media(max-width:760px){
    .app-shell{display:block}
    .sidebar{
        position:static;
        height:auto;
        display:block;
        border-right:0;
        border-bottom:1px solid #242426;
    }
    .brand{justify-content:flex-start}
    .brand-name{display:inline}
    .desktop-brand-logo,.desktop-auth-logo{display:none}
    .mobile-brand-original{display:flex}
    .mobile-auth-mark{display:grid}
    .nav{
        grid-template-columns:repeat(5,1fr);
        margin-top:12px;
    }
    .nav-item{justify-content:center;padding:0}
    .sidebar-footer{display:none}
    .topbar{display:none}
    .content{padding:22px 14px 40px}
    .page-head{align-items:flex-start;flex-direction:column}
    h1{font-size:31px}
    .stats-grid{grid-template-columns:1fr}
    .field-grid,.two{grid-template-columns:1fr}
    .day{min-height:86px;padding:7px 5px}
    .weekday-grid div{height:38px}
    .shift-row-time{font-size:12px}
}


/* Kalender: schwebender Neuer-Dienst-Button unten rechts */
.calendar-fab{
    position:fixed;
    right:28px;
    bottom:28px;
    z-index:250;
    min-width:118px;
    height:54px;
    padding:0 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    border:0;
    border-radius:27px;
    background:#7051d8;
    color:#fff;
    box-shadow:0 12px 28px rgba(0,0,0,.38);
    font-weight:700;
    cursor:pointer;
}

.calendar-fab-plus{
    font-size:27px;
    line-height:1;
    font-weight:400;
    margin-top:-2px;
}

.calendar-fab-text{
    font-size:14px;
    letter-spacing:-.01em;
}

/*
 * Extra hoch, damit der Button auch über späteren Bearbeiten-/Stift-Buttons liegt.
 * Falls solche Buttons positioniert werden, bleiben sie darunter.
 */
.calendar-fab,
.calendar-fab:focus,
.calendar-fab:active{
    z-index:250;
}

@media(max-width:760px){
    .calendar-fab{
        right:18px;
        bottom:18px;
        min-width:56px;
        width:56px;
        height:56px;
        padding:0;
        border-radius:50%;
    }

    .calendar-fab-text{
        display:none;
    }

    .calendar-fab-plus{
        font-size:31px;
    }
}


/* V7: Tag-Auswahl + Termine */
.day-choice-card{
    position:relative;
    width:min(320px,calc(100vw - 34px));
    padding:17px;
    border:1px solid #39393d;
    border-radius:16px;
    background:#202022;
    box-shadow:0 18px 48px rgba(0,0,0,.42);
}

.day-choice-date{
    padding:2px 38px 13px 2px;
    color:#b4b4b8;
    font-size:13px;
    font-weight:650;
}

.day-choice-actions{
    display:grid;
    gap:7px;
}

.day-choice-option{
    width:100%;
    min-height:58px;
    display:grid;
    grid-template-columns:38px minmax(0,1fr);
    align-items:center;
    gap:11px;
    padding:8px 10px;
    border:0;
    border-radius:11px;
    background:#29292c;
    color:#f3f3f5;
    text-align:left;
}

.choice-symbol{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:9px;
    background:#37343f;
    color:#a996ed;
    font-size:18px;
}

.day-choice-option>span:last-child{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.day-choice-option strong{
    font-size:14px;
}

.day-choice-option small{
    color:#8f8f94;
    font-size:11px;
}

.event-pill{
    min-height:25px;
    display:flex;
    align-items:center;
    gap:6px;
    margin-top:4px;
    padding:4px 6px;
    border-radius:6px;
    background:#2a2a2d;
    color:#d8d8dc;
    font-size:11px;
    font-weight:550;
    overflow:hidden;
}

.event-pill span:last-child{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.event-dot{
    width:6px;
    height:6px;
    flex:0 0 auto;
    border-radius:50%;
    background:var(--event-color);
}

.event-color-row{
    display:flex;
    align-items:center;
    gap:11px;
    min-height:44px;
}

.event-color-choice{
    margin:0;
    cursor:pointer;
}

.event-color-choice input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.event-color-choice span{
    width:28px;
    height:28px;
    display:block;
    border-radius:50%;
    background:var(--c);
    border:3px solid transparent;
    box-shadow:0 0 0 1px #414145;
}

.event-color-choice input:checked + span{
    border-color:#1d1d1f;
    box-shadow:0 0 0 2px #d2d2d5;
}

.event-detail-head{
    display:flex;
    align-items:center;
    gap:12px;
    padding-right:36px;
}

.event-detail-head h2{
    margin:2px 0 0;
}

.event-detail-dot{
    width:13px;
    height:13px;
    flex:0 0 auto;
    border-radius:50%;
    background:#8a8a8f;
}

@media(max-width:760px){
    .day-choice-card{
        width:min(300px,calc(100vw - 28px));
    }
}


/* V8: Kalender mit Feiertags-Sidebar */
.calendar-with-sidebar{
    display:grid;
    grid-template-columns:minmax(0,1fr) 292px;
    gap:16px;
    align-items:start;
}

.calendar-main{
    min-width:0;
}

.holiday-sidebar{
    position:sticky;
    top:82px;
    padding:18px;
    max-height:calc(100vh - 104px);
    overflow:auto;
}

.holiday-sidebar-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}

.holiday-sidebar-head h2{
    margin:3px 0 0;
    font-size:20px;
}

.holiday-year{
    color:#77777c;
    font-size:12px;
    font-weight:700;
}

.holiday-form>label:first-of-type{
    margin-top:0;
}

.holiday-toggle{
    min-height:44px;
    display:flex;
    align-items:center;
    gap:9px;
    margin:12px 0 6px;
    padding:0 2px;
    color:#d3d3d6;
}

.holiday-toggle input{
    width:17px;
    height:17px;
    min-height:0;
    margin:0;
    accent-color:#7051d8;
}

.holiday-list{
    margin:4px 0 14px;
    border-top:1px solid var(--line-soft);
}

.holiday-row{
    min-height:53px;
    display:grid;
    grid-template-columns:18px minmax(0,1fr);
    align-items:center;
    gap:9px;
    margin:0;
    border-bottom:1px solid var(--line-soft);
    cursor:pointer;
}

.holiday-row input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.holiday-check{
    width:16px;
    height:16px;
    display:block;
    border-radius:5px;
    border:1px solid #55555a;
    background:#19191b;
}

.holiday-row input:checked + .holiday-check{
    border-color:#7051d8;
    background:#7051d8;
    box-shadow:inset 0 0 0 3px #202022;
}

.holiday-copy{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
}

.holiday-copy strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:12px;
    font-weight:620;
}

.holiday-copy small{
    color:#77777c;
    font-size:10px;
}

.holiday-note{
    margin:12px 2px 0;
    color:#717176;
    font-size:10px;
    line-height:1.45;
}

.holiday-pill{
    min-height:23px;
    display:flex;
    align-items:center;
    gap:5px;
    margin-top:4px;
    padding:3px 5px;
    border-radius:5px;
    background:#2b2831;
    color:#cfc4f2;
    font-size:10px;
    font-weight:600;
    overflow:hidden;
}

.holiday-pill span:last-child{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.holiday-mark{
    flex:0 0 auto;
    color:#8f79dc;
    font-size:7px;
}

@media(max-width:1120px){
    .calendar-with-sidebar{
        grid-template-columns:1fr;
    }

    .holiday-sidebar{
        position:static;
        max-height:none;
    }
}


/* V9: Mobile Kalender wie eine eigenständige Schichtplan-App */
.mobile-month-title,
.mobile-floating-menu{
    display:none;
}

@media(max-width:760px){
    /* Oben kein Logo / keine Desktop-Navigation im Kalender */
    body:has(.calendar-with-sidebar) .sidebar{
        display:none;
    }

    body:has(.calendar-with-sidebar) .topbar{
        display:none;
    }

    body:has(.calendar-with-sidebar) .app-shell{
        display:block;
    }

    body:has(.calendar-with-sidebar) .content{
        padding:18px 10px 116px;
    }

    body:has(.calendar-with-sidebar) .page-head{
        display:block;
        margin:0 0 12px;
        padding:0 8px;
    }

    body:has(.calendar-with-sidebar) .page-head .page-eyebrow,
    body:has(.calendar-with-sidebar) .page-head .page-subtitle{
        display:none;
    }

    .desktop-month-title{
        display:none;
    }

    .mobile-month-title{
        display:block;
        margin:0;
        font-size:40px;
        line-height:1;
        font-weight:760;
        letter-spacing:-.035em;
        text-align:left;
    }

    /* Die alten Pfeile/Heute-Zeile wird mobil entfernt, da geswiped wird. */
    body:has(.calendar-with-sidebar) .calendar-toolbar{
        display:none;
    }

    .calendar-with-sidebar{
        display:block;
    }

    .calendar-main{
        touch-action:pan-x;
        user-select:none;
        -webkit-user-select:none;
    }

    .calendar-card{
        border-radius:20px;
        overflow:hidden;
    }

    .weekday-grid div{
        height:42px;
        font-size:12px;
    }

    .day{
        min-height:96px;
        padding:7px 4px;
    }

    .day-number{
        font-size:14px;
        margin-bottom:5px;
    }

    .shift-pill{
        min-height:24px;
        border-radius:6px;
        font-size:11px;
        margin-top:3px;
    }

    .event-pill,
    .holiday-pill{
        font-size:9px;
        padding:3px 4px;
    }

    /* Feiertage mobil unterhalb des Kalenders, damit der Monat breit bleibt. */
    .holiday-sidebar{
        position:static;
        max-height:none;
        margin-top:14px;
    }

    /* Stift-Button schwebt rechts über dem Kalender. */
    .calendar-fab{
        right:18px;
        bottom:154px;
        width:58px;
        min-width:58px;
        height:58px;
        border-radius:50%;
        padding:0;
        z-index:420;
        box-shadow:0 10px 26px rgba(0,0,0,.46);
    }

    .calendar-fab-plus{
        font-size:29px;
        line-height:1;
        margin:0;
        transform:rotate(-10deg);
    }

    .calendar-fab-text{
        display:none;
    }

    /* 5-Punkte-Menü direkt unter dem Stift, aber weiterhin über dem Kalender. */
    .mobile-floating-menu{
        position:fixed;
        right:18px;
        bottom:18px;
        z-index:410;
        display:grid;
        grid-template-columns:repeat(5,44px);
        gap:6px;
        padding:7px;
        border-radius:27px;
        background:rgba(29,29,31,.96);
        border:1px solid #3a3a3d;
        box-shadow:0 12px 30px rgba(0,0,0,.44);
        backdrop-filter:blur(16px);
        -webkit-backdrop-filter:blur(16px);
    }

    .mobile-menu-item{
        width:44px;
        height:44px;
        display:grid;
        place-items:center;
        border-radius:50%;
        color:#b8b8bd;
        font-size:18px;
        text-decoration:none;
    }

    .mobile-menu-item.active{
        background:#343038;
        color:#b7a7ef;
    }

    /* Kein Hover-Look auf Touch-Geräten. */
    .mobile-menu-item:hover,
    .calendar-fab:hover{
        background:inherit;
        transform:none;
    }
}


/* V10: Mobile Feiertags-Button neben dem Monatsnamen + Drawer von rechts */
.calendar-title-wrap{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    width:100%;
}

.mobile-holiday-button,
.holiday-drawer-close,
.holiday-drawer-overlay{
    display:none;
}

.holiday-sidebar-head-actions{
    display:flex;
    align-items:center;
    gap:8px;
}

@media(max-width:760px){
    .calendar-title-wrap{
        align-items:center;
    }

    .calendar-title-wrap>div:first-child{
        min-width:0;
    }

    .mobile-holiday-button{
        display:flex;
        align-items:center;
        gap:7px;
        min-height:38px;
        padding:0 12px;
        border:1px solid #47474b;
        border-radius:11px;
        background:#2a2a2d;
        color:#d9d9dc;
        font-size:12px;
        font-weight:650;
        flex:0 0 auto;
    }

    .mobile-holiday-button-icon{
        color:#9a86e4;
        font-size:9px;
    }

    /*
     * Sidebar wird mobil zu einem echten Drawer.
     * Sie liegt komplett außerhalb des Bildschirms und fährt von rechts herein.
     */
    .holiday-sidebar{
        position:fixed;
        top:0;
        right:0;
        bottom:0;
        width:min(340px,88vw);
        max-height:none;
        margin:0;
        padding:20px 18px calc(24px + env(safe-area-inset-bottom));
        border-radius:20px 0 0 20px;
        border-right:0;
        z-index:700;
        overflow-y:auto;
        transform:translateX(105%);
        transition:transform .24s ease;
        box-shadow:-18px 0 44px rgba(0,0,0,.42);
        background:#202022;
    }

    .holiday-sidebar.open{
        transform:translateX(0);
    }

    .holiday-drawer-overlay{
        position:fixed;
        inset:0;
        z-index:690;
        display:block;
        pointer-events:none;
        opacity:0;
        background:rgba(0,0,0,.52);
        transition:opacity .2s ease;
    }

    .holiday-drawer-overlay.open{
        pointer-events:auto;
        opacity:1;
    }

    .holiday-drawer-close{
        display:grid;
        place-items:center;
        width:34px;
        height:34px;
        border:1px solid #454549;
        border-radius:50%;
        background:#2b2b2e;
        color:#cfcfd3;
        font-size:22px;
        line-height:1;
        padding:0;
    }

    body.holiday-drawer-open{
        overflow:hidden;
    }

    /*
     * Weil die Feiertage nun im Drawer liegen, nehmen sie unter dem Kalender
     * keinen zusätzlichen Platz mehr ein.
     */
    .calendar-with-sidebar{
        display:block;
    }
}

@media(min-width:761px){
    .holiday-drawer-overlay{
        display:none !important;
    }

    .holiday-drawer-close{
        display:none !important;
    }
}


/* V11: Heutigen Kalendertag deutlich in VitaShift-Lila/Blau hervorheben */
.day.today{
    position:relative;
    box-shadow:
        inset 0 0 0 2px #7d67e8,
        0 0 0 1px rgba(63,148,232,.22);
    background:
        linear-gradient(
            145deg,
            rgba(112,81,216,.28),
            rgba(47,149,220,.16)
        ),
        #202022;
}

.day.today .day-number{
    color:#ffffff;
    font-weight:800;
}

.day.today .day-number::after{
    content:"";
    display:inline-block;
    width:6px;
    height:6px;
    margin-left:6px;
    border-radius:50%;
    background:linear-gradient(135deg,#8d72ff,#3f98e9);
    vertical-align:middle;
}

@media(max-width:760px){
    .day.today{
        box-shadow:
            inset 0 0 0 2px #8068eb,
            0 0 0 1px rgba(63,148,232,.18);
        background:
            linear-gradient(
                145deg,
                rgba(112,81,216,.32),
                rgba(47,149,220,.18)
            ),
            #202022;
    }
}


/* V12: Heute-Markierung nicht mehr an den Kalenderecken abschneiden */
.day.today{
    position:relative;
    box-shadow:none !important;
    background:
        linear-gradient(
            145deg,
            rgba(112,81,216,.24),
            rgba(47,149,220,.13)
        ),
        #202022;
}

.day.today::before{
    content:"";
    position:absolute;
    inset:4px;
    z-index:0;
    pointer-events:none;
    border:2px solid #8068eb;
    border-radius:9px;
    box-shadow:0 0 0 1px rgba(63,148,232,.12);
}

.day.today > *{
    position:relative;
    z-index:1;
}

@media(max-width:760px){
    .day.today{
        box-shadow:none !important;
        background:
            linear-gradient(
                145deg,
                rgba(112,81,216,.28),
                rgba(47,149,220,.15)
            ),
            #202022;
    }

    .day.today::before{
        inset:4px;
        border-radius:8px;
        border-color:#8068eb;
    }
}


/* V13: Tages-Popup als große Bottom-Sheet wie Schichtkalender-Apps */
.day-sheet-modal{
    align-items:flex-end;
    padding:0;
}

.day-sheet{
    width:min(760px,calc(100vw - 28px));
    max-height:min(78vh,760px);
    margin:0 auto 14px;
    overflow:auto;
    border-radius:30px;
    background:#efeff1;
    color:#111114;
    box-shadow:0 18px 60px rgba(0,0,0,.48);
}

.day-sheet-handle{
    width:54px;
    height:5px;
    margin:13px auto 5px;
    border-radius:999px;
    background:#b6b6ba;
}

.day-sheet-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:20px 28px 16px;
}

.day-sheet-head h2{
    margin:0;
    color:#111114;
    font-size:24px;
    font-weight:760;
    letter-spacing:-.025em;
}

.day-sheet-close{
    width:42px;
    height:42px;
    flex:0 0 auto;
    display:grid;
    place-items:center;
    border:0;
    border-radius:50%;
    background:#dddddf;
    color:#202024;
    font-size:29px;
    line-height:1;
    font-weight:300;
}

.day-sheet-list{
    margin:0 22px;
    overflow:hidden;
    border:1px solid #d0d0d3;
    border-radius:19px;
    background:#fafafa;
}

.day-sheet-list:empty{
    display:none;
}

.day-sheet-row{
    min-height:104px;
    display:grid;
    grid-template-columns:58px minmax(0,1fr) auto auto;
    align-items:center;
    gap:15px;
    padding:14px 19px;
    border-top:1px solid #d2d2d5;
}

.day-sheet-row:first-child{
    border-top:0;
}

.day-sheet-icon{
    --item-color:#6d4aff;
    width:54px;
    height:54px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--item-color);
    color:#fff;
    font-size:17px;
    font-weight:750;
}

.day-sheet-icon.event-icon{
    font-size:31px;
    font-weight:400;
}

.day-sheet-copy{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:5px;
}

.day-sheet-copy strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#111114;
    font-size:22px;
    font-weight:600;
}

.day-sheet-copy span{
    color:#222226;
    font-size:16px;
}

.day-sheet-duration{
    min-width:78px;
    text-align:right;
    color:#111114;
    font-size:17px;
    white-space:nowrap;
}

.day-sheet-actions{
    display:flex;
    align-items:center;
    gap:8px;
    padding-left:12px;
    border-left:1px solid #d5d5d7;
}

.day-sheet-actions button{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border:0;
    border-radius:50%;
    background:#e2e2e4;
    color:#29292d;
    font-size:18px;
}

.day-sheet-empty{
    margin:0 22px;
    padding:22px;
    border:1px solid #d0d0d3;
    border-radius:18px;
    background:#fafafa;
    color:#77777c;
    text-align:center;
}

.day-sheet-add{
    min-height:105px;
    display:grid;
    grid-template-columns:1fr 1px 1fr;
    align-items:center;
    margin-top:20px;
    border-top:1px solid #d1d1d4;
}

.day-sheet-add button{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
    border:0;
    background:transparent;
    color:#67676c;
}

.day-sheet-add button span{
    font-size:39px;
    font-weight:250;
    line-height:1;
}

.day-sheet-add button strong{
    font-size:23px;
    font-weight:450;
}

.day-sheet-divider{
    width:1px;
    height:64px;
    background:#c5c5c8;
}

@media(max-width:760px){
    .day-sheet{
        width:calc(100vw - 20px);
        max-height:80vh;
        margin-bottom:10px;
        border-radius:28px;
    }

    .day-sheet-head{
        padding:17px 20px 13px;
    }

    .day-sheet-head h2{
        font-size:21px;
    }

    .day-sheet-close{
        width:38px;
        height:38px;
        font-size:26px;
    }

    .day-sheet-list{
        margin:0 12px;
        border-radius:16px;
    }

    .day-sheet-row{
        min-height:88px;
        grid-template-columns:48px minmax(0,1fr) auto;
        gap:11px;
        padding:11px 12px;
    }

    .day-sheet-icon{
        width:46px;
        height:46px;
        border-radius:50%;
        font-size:14px;
    }

    .day-sheet-copy strong{
        font-size:18px;
    }

    .day-sheet-copy span{
        font-size:14px;
    }

    .day-sheet-duration{
        font-size:14px;
        min-width:auto;
    }

    .day-sheet-actions{
        grid-column:2 / 4;
        justify-content:flex-end;
        padding:8px 0 0;
        border-left:0;
        border-top:1px solid #e0e0e2;
    }

    .day-sheet-actions button{
        width:36px;
        height:36px;
    }

    .day-sheet-empty{
        margin:0 12px;
    }

    .day-sheet-add{
        min-height:92px;
        margin-top:14px;
    }

    .day-sheet-add button{
        gap:10px;
    }

    .day-sheet-add button span{
        font-size:33px;
    }

    .day-sheet-add button strong{
        font-size:19px;
    }
}
