:root{
    --brand-dark:#1e1e1e;
    --brand-accent:#38beef;

    --color-primary:var(--brand-accent);
    --color-primary-soft:rgba(56,190,239,0.16);
    --color-primary-softer:rgba(56,190,239,0.08);

    --color-danger:#e5484d;
    --color-warning:#f5a524;
    --color-success:#2fbf71;

    --color-countdown-today:#e5484d;
    --color-countdown-orange:#f5a524;

    --color-bg:#f6f8fb;
    --color-bg-bars-light:#ffffff;
    --color-bg-card:#ffffff;
    --color-bg-input:#ffffff;
    --color-bg-nav:var(--brand-dark);

    --color-text:#0f172a;
    --color-text-secondary:#475569;
    --color-border:#e2e8f0;

    --header-height:60px;
    --mobile-nav-height:70px;
    --sidebar-width:260px;

    --shadow-sm:0 1px 2px rgba(15,23,42,0.06);
    --shadow-md:0 12px 20px -10px rgba(15,23,42,0.18),0 6px 10px -8px rgba(15,23,42,0.12);

    --radius-md:12px;
    --radius-lg:16px;
    --sidebar-bg:#ffffff;
    --sidebar-bg-2:#f7fafc;
    --sidebar-border:#e2e8f0;
    --sidebar-text:#0f172a;
    --sidebar-text-muted:#475569;
    --sidebar-hover-bg:rgba(56,190,239,0.10);
    --sidebar-active-bg:rgba(56,190,239,0.14);
    --sidebar-active-border:rgba(56,190,239,0.55);
    --sidebar-shadow:0 18px 28px -22px rgba(15,23,42,0.35);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

html.dark{
    --color-bg:#0e1216;
    --color-bg-bars-light:#121820;
    --color-bg-card:#151c24;
    --color-bg-input:#0f151c;
    --color-bg-nav:var(--brand-dark);

    --color-text:#e6eef7;
    --color-text-secondary:#9fb0c2;
    --color-border:#253040;

    --shadow-sm:0 1px 2px rgba(0,0,0,0.35);
    --shadow-md:0 18px 28px -16px rgba(0,0,0,0.75),0 10px 16px -14px rgba(0,0,0,0.55);
	 --sidebar-bg:#121820;
    --sidebar-bg-2:#0f151c;
    --sidebar-border:#253040;
    --sidebar-text:#e6eef7;
    --sidebar-text-muted:#a6b6c8;
    --sidebar-hover-bg:rgba(255,255,255,0.06);
    --sidebar-active-bg:rgba(56,190,239,0.16);
    --sidebar-active-border:rgba(56,190,239,0.55);
    --sidebar-shadow:0 24px 36px -26px rgba(0,0,0,0.85);
}

*{box-sizing:border-box;margin:0;padding:0}

html,body{
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    user-select:none;
    touch-action:manipulation;
}

.app-container,.app-main,.main-content-area{
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    user-select:none;
    touch-action:manipulation;
}

body{
    background-color:var(--color-bg);
    color:var(--color-text);
    transition:background-color .25s ease,color .25s ease;
    font-size:16px;
    line-height:1.5;
}

a{text-decoration:none;color:inherit}
ul{list-style:none}

.app-container{
    display:flex;
    min-height:100vh;
    width:100%;
    overflow-x:hidden;
}

.app-sidebar{
 width:var(--sidebar-width);
    background:linear-gradient(180deg,var(--sidebar-bg),var(--sidebar-bg-2));
    color:var(--sidebar-text);
    display:none;
    flex-direction:column;
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    z-index:100;
    border-right:1px solid var(--sidebar-border);
    box-shadow:var(--sidebar-shadow);
}

.sidebar-header{
  height:var(--header-height);
    display:flex;
    align-items:center;
    padding:0 1.25rem;
    font-weight:900;
    font-size:1.05rem;
    border-bottom:1px solid var(--sidebar-border);
    color:var(--sidebar-text);
    letter-spacing:.2px;
}

.sidebar-nav{padding:14px 12px;overflow-y:auto;flex:1}

.sidebar-link{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    color:var(--sidebar-text-muted);
    border-radius:14px;
    margin-bottom:8px;
    transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
    font-weight:800;
    border:1px solid transparent;
    background:transparent;
}

.sidebar-link i,
.sidebar-link [class*="ffweb-"]{
    color:var(--sidebar-text-muted);
    opacity:.95;
}

.sidebar-link:hover{
    background:var(--sidebar-hover-bg);
    border-color:rgba(56,190,239,0.18);
    color:var(--sidebar-text);
    transform:translateY(-1px);
}

.sidebar-link:hover i,
.sidebar-link:hover [class*="ffweb-"]{
    color:var(--sidebar-text);
}

.sidebar-link.active{
    background:var(--sidebar-active-bg);
    border-color:var(--sidebar-active-border);
    color:var(--sidebar-text);
}

.sidebar-link.active i,
.sidebar-link.active [class*="ffweb-"]{
    color:var(--color-primary);
}

.app-sidebar .btn,
.app-sidebar .btn-primary,
.app-sidebar .btn-secondary{
    border-radius:14px;
}

.app-sidebar .btn-primary{
    background-color:var(--color-primary);
    color:#071018;
    border:1px solid rgba(56,190,239,0.55);
}

html.dark .app-sidebar .btn-primary{
    background-color:var(--color-primary);
    color:#071018;
}

.app-main{
    flex:1;
    width:100%;
    display:flex;
    flex-direction:column;
}

@media (min-width:1025px){
    .app-sidebar{display:flex}
    .app-main{margin-left:var(--sidebar-width)}
    .app-mobile-nav{display:none !important}
}

.app-header{
    height:var(--header-height);
    background-color:var(--color-bg-bars-light);
    border-bottom:1px solid var(--color-border);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 1.25rem;
    position:sticky;
    top:0;
    z-index:90;
    box-shadow:0 10px 18px -16px rgba(15,23,42,0.35);
}

html.dark .app-header{
    background-color:var(--color-bg-bars-light);
    border-bottom:1px solid var(--color-border);
    box-shadow:none;
}

.header-left,.header-right{display:flex;align-items:center;gap:.6rem}
.header-title{font-size:1.05rem;font-weight:900;color:var(--color-text);margin:0;letter-spacing:.2px}

.icon-button{
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    color:var(--color-text-secondary);
    background:transparent;
    border:1px solid transparent;
    cursor:pointer;
    font-size:1.2rem;
    transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}

.icon-button:hover{
    background-color:rgba(56,190,239,0.10);
    border-color:rgba(56,190,239,0.22);
    color:var(--color-primary);
}

html.dark .icon-button:hover{
    background-color:rgba(56,190,239,0.14);
    border-color:rgba(56,190,239,0.24);
}

#theme-toggle .ffweb-sun{display:none}
#theme-toggle .ffweb-moon{display:inline-block}
html.dark #theme-toggle .ffweb-sun{display:inline-block}
html.dark #theme-toggle .ffweb-moon{display:none}

.app-mobile-nav{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    height:var(--mobile-nav-height);
    background-color:var(--color-bg-bars-light);
    border-top:1px solid var(--color-border);
    display:flex;
    justify-content:space-around;
    align-items:center;
    z-index:95;
    padding-bottom:max(6px,env(safe-area-inset-bottom));
    padding-top:6px;
}

html.dark .app-mobile-nav{
    background-color:var(--color-bg-bars-light);
    border-top:1px solid var(--color-border);
}

.mobile-nav-link{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    font-size:.75rem;
    color:var(--color-text-secondary);
    width:20%;
    height:100%;
    background:transparent;
    border:none;
    cursor:pointer;
    text-align:center;
    position:relative;
    transition:color .18s ease,opacity .18s ease;
}

.mobile-icon-wrapper{
    position:relative;
    width:50px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:4px;
}

.mobile-icon-wrapper i{
    font-size:1.4rem;
    position:relative;
    z-index:2;
    transition:color .18s ease;
}

html.dark .mobile-nav-link{color:var(--color-text-secondary) !important;opacity:1 !important}
.mobile-nav-link.active{color:var(--color-primary);font-weight:900}
html.dark .mobile-nav-link.active,
html.dark .mobile-nav-link.active i,
html.dark .mobile-nav-link.active span{color:var(--color-primary) !important;opacity:1 !important}

.overlay-icon{
    position:absolute;
    top:-12px;
    left:-5px;
    width:55px;
    height:auto;
    pointer-events:none;
    z-index:5;
    opacity:.9;
}

.main-content-area{
    padding:18px;
    max-width:1200px;
    margin:0 auto;
    width:100%;
    padding-bottom:calc(var(--mobile-nav-height) + 18px);
}

@media (min-width:1025px){
    .main-content-area{padding-bottom:38px}
}

.content-row.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:18px;
    margin-top:18px;
}

.grid-view-mobile{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
}

.content-card-link{text-decoration:none;display:block}

.content-card{
    background-color:var(--color-bg-card);
    border:1px solid var(--color-border);
    border-left:5px solid transparent;
    border-radius:16px;
    padding:1.25rem;
    margin-bottom:1rem;
    box-shadow:var(--shadow-sm);
    color:var(--color-text);
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
    position:relative;
    overflow:hidden;
}

html.dark .content-card{
    background-color:var(--color-bg-card);
    border:1px solid var(--color-border);
    border-left:5px solid transparent;
    box-shadow:var(--shadow-sm);
    color:var(--color-text);
}

.content-card:active{transform:scale(0.988)}
.content-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}

.card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
    padding-bottom:10px;
    border-bottom:1px solid rgba(15,23,42,0.06);
}

html.dark .card-header{border-bottom-color:rgba(230,238,247,0.08)}

.card-title{
    font-weight:900;
    font-size:1.02rem;
    display:flex;
    align-items:center;
    gap:8px;
    color:var(--color-text);
    margin-bottom:10px;
    letter-spacing:.15px;
}

.termin-card-header{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    margin-bottom:12px;
    padding-bottom:10px;
    border-bottom:1px solid rgba(15,23,42,0.06);
}

html.dark .termin-card-header{border-bottom-color:rgba(230,238,247,0.08)}
.termin-card-header + .card-title{margin-top:4px}

.content-card.card-blue{border-left-color:var(--color-primary)}
.content-card.card-blue .card-title{color:var(--color-primary)}
html.dark .content-card.card-blue{border-left-color:var(--color-primary)}
html.dark .content-card.card-blue .card-title{color:var(--color-primary) !important}

.content-card.card-red{border-left-color:var(--color-danger)}
.content-card.card-red .card-title{color:var(--color-danger)}
html.dark .content-card.card-red{border-left-color:var(--color-danger)}
html.dark .content-card.card-red .card-title{color:#ff8a80 !important}

.content-card.card-green{border-left-color:var(--color-success)}
.content-card.card-green .card-title{color:var(--color-success)}
html.dark .content-card.card-green{border-left-color:var(--color-success)}
html.dark .content-card.card-green .card-title{color:#7cf2b3 !important}

.content-card.card-orange{border-left-color:var(--color-warning)}
content-card.card-orange .card-title{color:var(--color-warning)}
html.dark .content-card.card-orange{border-left-color:var(--color-warning)}
html.dark .content-card.card-orange .card-title{color:#ffd39a !important}

.content-card.card-grey{border-left-color:#94a3b8}
.content-card.card-grey .card-title{color:#64748b}
html.dark .content-card.card-grey{border-left-color:#94a3b8}
html.dark .content-card.card-grey .card-title{color:#cbd5e1 !important}

.card-subtitle{
    display:block !important;
    font-weight:800;
    color:var(--color-text);
    margin:0 !important;
    padding-bottom:10px !important;
}

.card-text{font-size:.95rem;color:var(--color-text-secondary);margin-bottom:.5rem}
.card-date{font-size:.85rem;color:var(--color-text-secondary);opacity:.9;margin-top:8px;border-top:1px solid var(--color-border);padding-top:8px}

.content-card i,
.content-card [class*="ffweb-"]{
    color:var(--color-text);
    font-size:1.5rem;
    transition:color .18s ease;
}

html.dark .content-card i,
html.dark .content-card [class*="ffweb-"]{color:var(--color-text) !important}

.content-card.verschoben{
    border-left-color:var(--color-warning) !important;
    background-color:rgba(245,165,36,0.06);
}

html.dark .content-card.verschoben{background-color:rgba(245,165,36,0.10)}

.content-card.abgesagt{
    border-left-color:var(--color-danger) !important;
    background-color:rgba(229,72,77,0.06);
    opacity:.94;
}

html.dark .content-card.abgesagt{background-color:rgba(229,72,77,0.12)}

.content-card.abgesagt .card-title,
.content-card.abgesagt .card-subtitle,
.content-card.abgesagt .card-text{text-decoration:line-through;opacity:.78}

.content-card.abgesagt::before{
    content:'ABGESAGT';
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%) rotate(-20deg);
    font-size:1.85rem;
    font-weight:900;
    color:var(--color-danger);
    opacity:.10;
    pointer-events:none;
    border:3px solid var(--color-danger);
    padding:8px 16px;
    border-radius:12px;
    z-index:10;
    text-decoration:none !important;
}

.countdown-badge{
    font-size:.75rem;
    font-weight:800;
    padding:4px 10px;
    border-radius:999px;
    background-color:rgba(15,23,42,0.06);
    color:var(--color-text-secondary);
    white-space:nowrap;
    margin-left:10px;
}

html.dark .countdown-badge{background-color:rgba(230,238,247,0.10);color:var(--color-text-secondary)}
.countdown-badge.today{background-color:var(--color-danger);color:#ffffff}
.countdown-badge.orange{background-color:var(--color-warning);color:#111827}

.nav-badge{
    background-color:var(--color-danger);
    color:#ffffff;
    font-size:10px;
    font-weight:900;
    min-width:16px;
    height:16px;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    position:absolute;
    top:-5px;
    right:-5px;
    z-index:10;
    padding:0 4px;
}

@media (max-width:1024px){
    .main-content-area{padding:10px;padding-bottom:92px}
    .app-header{padding:0 1rem}
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:.62rem 1.05rem;
    border-radius:12px;
    font-weight:900;
    font-size:.95rem;
    cursor:pointer;
    border:1px solid transparent;
    transition:transform .16s ease,filter .16s ease,background-color .16s ease,border-color .16s ease,color .16s ease;
    gap:8px;
    text-decoration:none;
    line-height:1.2;
}

.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(1px)}

.btn-primary{
    background-color:var(--color-primary);
    color:#071018;
    border:1px solid rgba(56,190,239,0.55);
}

.btn-primary:hover{filter:brightness(1.04)}
.btn-primary:active{filter:brightness(.98)}

.btn-secondary{
    background-color:rgba(15,23,42,0.05);
    color:var(--color-text);
    border:1px solid rgba(15,23,42,0.08);
}

html.dark .btn-secondary{
    background-color:rgba(230,238,247,0.08);
    color:var(--color-text);
    border:1px solid rgba(230,238,247,0.12);
}

html.dark .btn-secondary:hover{background-color:rgba(230,238,247,0.12)}

.btn-success{background-color:var(--color-success);color:#07120b}
.btn-danger{background-color:var(--color-danger);color:#ffffff}

.btn-link{
    background:transparent;
    color:var(--color-text-secondary);
    padding-left:0;
    justify-content:flex-start;
}

.btn-link:hover{color:var(--color-primary)}

.btn-sm{
    padding:.45rem .8rem;
    font-size:.85rem;
}

html.dark .btn-outline-danger{
    border-color:rgba(230,238,247,0.16) !important;
    color:var(--color-text) !important;
    background-color:rgba(230,238,247,0.06) !important;
}

html.dark .btn-outline-danger:hover{
    background-color:rgba(230,238,247,0.10) !important;
    border-color:rgba(230,238,247,0.22) !important;
    color:var(--color-text) !important;
}

select,
.form-select{
    appearance:none;
    -webkit-appearance:none;
    background-color:var(--color-bg-input);
    color:var(--color-text);
    border:1px solid var(--color-border);
    border-radius:12px;
    padding:.62rem 2.5rem .62rem 1rem;
    font-size:16px;
    font-family:inherit;
    width:100%;
    cursor:pointer;
    background-repeat:no-repeat;
    background-position:right .75rem center;
    background-size:16px 12px;
}

.form-control{
    -webkit-appearance:auto;
    appearance:auto;
    background-color:var(--color-bg-input);
    color:var(--color-text);
    border:1px solid var(--color-border);
    border-radius:12px;
    padding:.62rem 1rem;
    font-size:16px;
    font-family:inherit;
    width:100%;
    cursor:text;
    line-height:1.2;
    min-height:44px;
}

textarea.form-control{min-height:120px;resize:vertical}

select:focus,
.form-select:focus,
.form-control:focus{
    outline:none;
    border-color:rgba(56,190,239,0.70);
    box-shadow:0 0 0 3px var(--color-primary-soft);
}

.form-control::placeholder{
    color:var(--color-text-secondary);
    opacity:.75;
}

html.dark select,
html.dark .form-select,
html.dark .form-control{
    background-color:var(--color-bg-input);
    border-color:rgba(230,238,247,0.12);
    color:var(--color-text);
}

html.dark .form-control::placeholder{color:rgba(230,238,247,0.58)}

.badge{
    display:inline-block;
    padding:.25em .6em;
    font-size:.75em;
    font-weight:900;
    line-height:1;
    text-align:center;
    white-space:nowrap;
    vertical-align:baseline;
    border-radius:.5rem;
}

.bg-secondary{background-color:#64748b;color:#ffffff}
.bg-danger{background-color:var(--color-danger);color:#ffffff}

.d-flex{display:flex !important}
.flex-wrap{flex-wrap:wrap !important}
.gap-2{gap:.5rem !important}
.align-items-center{align-items:center !important}
.justify-content-between{justify-content:space-between !important}
.w-100{width:100% !important}
.mb-3{margin-bottom:1rem !important}
.mt-2{margin-top:.5rem !important}

.status-msg{font-size:.85rem;font-weight:900}
.text-success{color:var(--color-success) !important}
.text-danger{color:var(--color-danger) !important}
.text-muted{color:var(--color-text-secondary) !important}
html.dark .text-danger{color:#ff8a80 !important}

html.dark .card-date{opacity:1}

.content-card.card-mint{border-left-color:#53d6c0}
.content-card.card-mint .card-title{color:#0f766e}
html.dark .content-card.card-mint{border-left-color:#53d6c0}
html.dark .content-card.card-mint .card-title{color:#53d6c0 !important}

.filter-bar-compact{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:1.25rem;
    padding:0 2px;
}

.filter-group{display:flex;gap:8px;flex-grow:1}
.filter-bar-compact .form-select{max-width:100%;width:auto;flex-grow:1}

@media (min-width:1025px){
    .filter-bar-compact .form-select{max-width:200px}
    .filter-group{flex-grow:0}
}

.card-header-stack{display:flex;flex-direction:column;gap:6px;width:100%}
.card-headline-wrap{white-space:normal;word-wrap:break-word;font-size:1.12rem;line-height:1.3;padding-right:10px}

.countdown-box{
    display:inline-block;
    background-color:var(--color-primary-softer);
    color:rgba(12,74,110,0.92);
    border:1px solid rgba(56,190,239,0.22);
    padding:5px 10px;
    border-radius:10px;
    font-weight:900;
    font-size:.85rem;
    margin-top:6px;
    align-self:flex-start;
}

html.dark .countdown-box{
    background-color:rgba(56,190,239,0.12);
    border-color:rgba(56,190,239,0.22);
    color:rgba(210,245,255,0.95);
}

.countdown-box.urgent{
    background-color:rgba(229,72,77,0.10);
    color:rgba(190,18,60,0.95);
    border-color:rgba(229,72,77,0.22);
}

html.dark .countdown-box.urgent{
    background-color:rgba(229,72,77,0.14);
    color:rgba(255,138,128,0.95);
    border-color:rgba(229,72,77,0.22);
}

.toggle-trigger{
    cursor:pointer;
    user-select:none;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 12px;
    background-color:rgba(15,23,42,0.04);
    border:1px solid rgba(15,23,42,0.06);
    border-radius:12px;
    margin-bottom:6px;
    transition:background-color .16s ease,border-color .16s ease;
    font-weight:900;
    color:var(--color-text);
}

.toggle-trigger:hover{
    background-color:rgba(56,190,239,0.08);
    border-color:rgba(56,190,239,0.18);
}

html.dark .toggle-trigger{
    background-color:rgba(230,238,247,0.05);
    border-color:rgba(230,238,247,0.10);
}

html.dark .toggle-trigger:hover{
    background-color:rgba(56,190,239,0.10);
    border-color:rgba(56,190,239,0.18);
}

.toggle-content{
    display:none;
    padding:10px 12px;
    padding-top:0;
    border-left:2px solid rgba(15,23,42,0.10);
    margin-left:10px;
    margin-bottom:10px;
}

html.dark .toggle-content{border-left-color:rgba(230,238,247,0.14)}
.toggle-content.show{display:block;animation:fadeIn .22s ease}

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

.action-buttons-row{display:flex;gap:10px;width:100%}
.action-buttons-row .btn{flex:1}

.date-time-row{display:flex;gap:10px;margin-bottom:1rem;flex-wrap:wrap}

.dt-badge{
    display:flex;
    align-items:center;
    gap:8px;
    background-color:rgba(15,23,42,0.04);
    border:1px solid rgba(15,23,42,0.08);
    padding:10px 12px;
    border-radius:14px;
    font-weight:900;
    font-size:1rem;
    color:var(--color-text);
    flex:1;
    min-width:140px;
}

html.dark .dt-badge{
    background-color:rgba(230,238,247,0.05);
    border-color:rgba(230,238,247,0.10);
}

.dt-badge i{font-size:1.1rem;opacity:.85}
.dt-badge span{display:block;line-height:1.1}
.dt-badge small{display:block;font-size:.75rem;font-weight:800;opacity:.74;margin-top:2px}

.stats-toggle-row{display:flex;gap:10px;margin-bottom:6px}

.stat-trigger{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px;
    border-radius:14px;
    font-weight:900;
    font-size:.95rem;
    cursor:pointer;
    transition:background-color .16s ease,color .16s ease,filter .16s ease;
    border:1px solid transparent;
    user-select:none;
    text-align:center;
}

.stat-trigger.dabei{
    background-color:rgba(47,191,113,0.12);
    color:rgba(16,94,52,0.95);
    border-color:rgba(47,191,113,0.20);
}

.stat-trigger.dabei.active{
    background-color:var(--color-success);
    color:#07120b;
}

.stat-trigger.dabei:hover:not(.active){filter:brightness(1.03)}

.stat-trigger.abgesagt{
    background-color:rgba(229,72,77,0.12);
    color:rgba(127,29,29,0.95);
    border-color:rgba(229,72,77,0.20);
}

.stat-trigger.abgesagt.active{
    background-color:var(--color-danger);
    color:#ffffff;
}

.stat-trigger.abgesagt:hover:not(.active){filter:brightness(1.03)}

html.dark .stat-trigger.dabei{background-color:rgba(47,191,113,0.16);color:#7cf2b3;border-color:transparent}
html.dark .stat-trigger.dabei.active{background-color:#00e676;color:#06100b}
html.dark .stat-trigger.abgesagt{background-color:rgba(229,72,77,0.16);color:#ff8a80;border-color:transparent}
html.dark .stat-trigger.abgesagt.active{background-color:#ff5252;color:#ffffff}

.stat-content-wrapper{
    background-color:rgba(15,23,42,0.02);
    border-radius:14px;
    margin-bottom:15px;
    overflow:hidden;
    border:1px solid rgba(15,23,42,0.04);
}

html.dark .stat-content-wrapper{
    background-color:rgba(230,238,247,0.03);
    border-color:rgba(230,238,247,0.06);
}

.stat-list-content{
    display:none;
    padding:15px;
    border-top:1px solid rgba(15,23,42,0.06);
    animation:slideDown .18s ease-out;
}

html.dark .stat-list-content{border-top-color:rgba(230,238,247,0.08)}
.stat-list-content.show{display:block}

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

html.dark .modal-content.bg-dark{
    background-color:var(--color-bg-nav) !important;
    border-color:var(--color-border) !important;
}

html.dark .modal-body .form-control{background-color:var(--color-bg-input) !important}

input.form-control[type="date"],
input.form-control[type="time"],
input.form-control[type="datetime-local"]{text-align:left}

input.form-control[type="date"]::-webkit-date-and-time-value,
input.form-control[type="time"]::-webkit-date-and-time-value,
input.form-control[type="datetime-local"]::-webkit-date-and-time-value{text-align:left}

input.form-control[type="date"],
input.form-control[type="time"],
input.form-control[type="datetime-local"]{padding-right:44px}

.modal-header{
    padding:1rem 1.25rem !important;
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
}

.modal-body{padding:1.25rem !important}

.modal-footer{
    padding:1rem 1.25rem !important;
    display:flex !important;
    justify-content:flex-end !important;
}

#feuerwehrCheckboxList{margin-top:1rem;padding-top:0 !important}

.modal-body .form-check{
    display:flex;
    align-items:center;
    padding-top:10px !important;
    padding-bottom:10px !important;
    padding-left:1.5em !important;
    margin-bottom:0 !important;
}

.modal-body .form-check-input{
    width:1.5em !important;
    height:1.5em !important;
    margin-left:-1.5em !important;
    margin-right:12px;
}

.modal-content{
    background-color:var(--color-bg-card);
    color:var(--color-text);
    border-color:var(--color-border);
    border-radius:16px;
}

.modal-content .text-white{color:var(--color-text) !important}

html.dark .modal-content{
    background-color:var(--color-bg-card) !important;
    color:var(--color-text) !important;
    border-color:var(--color-border) !important;
}

html.dark .modal-content .text-white{color:var(--color-text) !important}

.modal-body .form-check-label{color:var(--color-text)}
html.dark .modal-body .form-check-label{color:var(--color-text)}

.modal-body input.form-control{
    background-color:var(--color-bg-input);
    color:var(--color-text);
}

html.dark .modal-body input.form-control{
    background-color:var(--color-bg-input);
    color:var(--color-text);
}

.notification-bell{position:relative}

.notification-badge{
    position:absolute;
    top:-8px;
    right:-8px;
    background:var(--color-danger);
    color:#ffffff;
    font-size:11px;
    font-weight:900;
    min-width:18px;
    height:18px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 5px;
    border:2px solid var(--color-bg-bars-light);
    box-shadow:0 2px 8px rgba(0,0,0,0.18);
}

.notification-modal{
    position:fixed;
    top:70px;
    right:16px;
    width:380px;
    max-height:70vh;
    background:var(--color-bg-card);
    border-radius:16px;
    box-shadow:0 20px 40px rgba(0,0,0,0.22);
    z-index:1000;
    display:none;
    flex-direction:column;
    overflow:hidden;
    border:1px solid var(--color-border);
}

.notification-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.42);
    z-index:999;
    display:none;
}

.notification-header{
    padding:14px 16px;
    border-bottom:1px solid var(--color-border);
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:var(--color-bg-card);
}

.notification-header h3{
    margin:0;
    font-size:18px;
    color:var(--color-text);
    font-weight:900;
}

.notification-list{overflow-y:auto;flex:1}

.notification-item{
    display:flex;
    padding:12px 16px;
    border-bottom:1px solid var(--color-border);
    text-decoration:none;
    color:var(--color-text);
    transition:background-color .16s ease;
}

.notification-item:hover{background:var(--color-primary-softer)}
html.dark .notification-item:hover{background:rgba(56,190,239,0.10)}

.notification-item.unread{background:var(--color-primary-soft)}
html.dark .notification-item.unread{background:rgba(56,190,239,0.12)}

.notification-icon{
    margin-right:12px;
    color:var(--color-primary);
    font-size:20px;
    flex-shrink:0;
}

.notification-content{flex:1;min-width:0}

.notification-title{
    font-weight:900;
    margin-bottom:4px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    color:var(--color-text);
}

.notification-text{
    font-size:14px;
    color:var(--color-text-secondary);
    margin-bottom:4px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.notification-time{
    font-size:12px;
    color:var(--color-text-secondary);
    opacity:.9;
}

.notification-empty{
    text-align:center;
    padding:40px 20px;
    color:var(--color-text-secondary);
}

.notification-empty i{
    font-size:48px;
    margin-bottom:12px;
    opacity:.4;
    color:var(--color-text-secondary);
}

.notification-footer{
    padding:12px 16px;
    border-top:1px solid var(--color-border);
    text-align:center;
    background:var(--color-bg-card);
}

.notification-all-link{
    color:var(--color-primary);
    font-weight:900;
    text-decoration:none;
}

.notification-all-link:hover{text-decoration:underline}

.notification-profile-img{
    width:40px;
    height:40px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid var(--color-border);
    background:var(--color-bg-card);
}

.notification-profile-img:not([src]),
.notification-profile-img[src=""]{
    background:var(--color-primary-soft);
    display:flex;
    align-items:center;
    justify-content:center;
}

.notification-profile-img:not([src])::after,
.notification-profile-img[src=""]::after{
    content:"\f007";
    font-family:"Font Awesome 5 Free";
    font-weight:900;
    color:var(--color-primary);
    font-size:18px;
}

.notification-icon{
    position:relative;
    width:40px;
    height:40px;
    flex-shrink:0;
    overflow:hidden;
    border-radius:50%;
    background:var(--color-primary-soft);
    display:flex;
    align-items:center;
    justify-content:center;
}

.notification-icon i.ffweb-bell{display:none}

.wb-modal-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    background-color:rgba(0,0,0,0.60);
    z-index:10000;
    display:none;
    align-items:center;
    justify-content:center;
    backdrop-filter:blur(3px);
}

.wb-modal-card{
    background:var(--color-bg-card) !important;
    border:1px solid var(--color-border);
    border-radius:16px;
    padding:0;
    width:90%;
    max-width:420px;
    box-shadow:0 24px 40px -22px rgba(0,0,0,0.55);
    animation:modalPopIn .18s ease-out;
}

@keyframes modalPopIn{
    from{opacity:0;transform:scale(.97)}
    to{opacity:1;transform:scale(1)}
}

@media print{
    @page{margin:0;size:auto}
    body,html{
        background-color:#ffffff !important;
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
        -webkit-print-color-adjust:exact;
        print-color-adjust:exact;
    }
    .app-main,.main-content-area{
        margin:0 !important;
        padding:10mm 10mm 10mm 15mm !important;
        width:100% !important;
        max-width:100% !important;
        overflow:visible !important;
    }
    .app-sidebar,
    .app-header,
    .app-mobile-nav,
    .action-buttons-row,
    .btn,
    .filter-bar-compact,
    .alert,
    .no-print,
    .nav-badge,
    #theme-toggle,
    .sidebar-overlay{display:none !important}

    .print-header-container{
        display:flex !important;
        align-items:flex-end;
        justify-content:space-between;
        width:100%;
        border-bottom:3px solid #000000;
        padding-bottom:5px;
        margin-bottom:10mm;
    }
    .print-logo-wrapper{width:30%;max-width:30%}
    .print-logo-wrapper img{max-width:100%;max-height:250px;object-fit:contain}
    .print-title-wrapper{
        flex:1;
        width:65%;
        padding-left:20px;
        text-align:right;
        overflow:hidden;
    }
    .print-title-wrapper h1{
        font-family:sans-serif;
        font-size:24pt;
        font-weight:900;
        color:#000000 !important;
        margin:0;
        line-height:1.2;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
        display:block;
        text-transform:uppercase;
    }
    .content-card,.admin-list-item{
        background:#ffffff !important;
        border:1px solid #cccccc !important;
        border-radius:16px !important;
        box-shadow:0 4px 8px rgba(0,0,0,0.10) !important;
        color:#000000 !important;
        margin-bottom:5mm !important;
        padding:5mm !important;
        break-inside:avoid;
        display:block !important;
    }
    .content-card.abgesagt{border-left:5px solid #e5484d !important}
    .content-card.verschoben{border-left:5px solid #f5a524 !important}
    .content-card.card-blue{border-left:5px solid #38beef !important}
    h3,h4,.card-title{color:#000000 !important;font-size:14pt !important;margin-bottom:5px !important}
    .card-body,div,span,p{color:#000000 !important}
    i,[class^="ffweb-"]{color:#000000 !important}
}

.print-header-container{display:none}

.form-control[type="file"]{
    padding:6px 12px;
    cursor:pointer;
    background-color:var(--color-bg-input);
    color:var(--color-text-secondary);
}

.form-control::file-selector-button{
    margin-right:15px;
    border:none;
    background:var(--color-primary);
    padding:6px 12px;
    border-radius:12px;
    color:#071018;
    cursor:pointer;
    font-weight:900;
    transition:filter .16s ease-in-out;
}

.form-control::file-selector-button:hover{filter:brightness(1.06)}
html.dark .form-control[type="file"]{color:var(--color-text)}