/* Gemeinsame Dashboard-Tab-Styles für Artists & Organizers */

.dashboard-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.dashboard-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 100px;
    /* Über dem Hauptbereich, damit Mini-Kalender-Popover nicht unter .dashboard-tabs-content liegt */
    z-index: 2;
}

/* Reiter einheitlich breit (Desktop: volle Sidebar-Breite; Mobile: flex: 1) */
.tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background-color: #f3f4f6;
    color: #815da7;
}

.tab-btn.active {
    background: #815da7;
    color: white;
    box-shadow: 0 4px 15px rgba(129, 93, 167, 0.3);
    font-weight: 600;
}

.tab-btn.tab-btn-orange.active {
    background: #e38722;
    box-shadow: 0 4px 15px rgba(227, 135, 34, 0.4);
}

.tab-btn.tab-btn-orange:hover {
    color: #e38722;
}

.tab-btn .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.tab-btn .icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.tab-btn .tab-count {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e8e8ed;
    color: #555;
}

.tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.tab-btn.tab-btn-orange.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.dashboard-tabs-content {
    flex-grow: 1;
    margin: 0;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.tab-content {
    display: none;
    width: 100%;
    animation: dashboardFadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes dashboardFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Orange Kategorie-Reiter (wie Master-Dashboard) */
.category {
    margin-bottom: 15px;
}

.category-header {
    background: #F28C38;
    color: #fff;
    padding: 18px 25px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(242, 140, 56, 0.2);
}

.category-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 140, 56, 0.4);
}

.category-header.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.category-header::after {
    content: '▼';
    font-size: 16px;
    transition: transform 0.3s ease;
}

.category-header.active::after {
    transform: rotate(180deg);
}

.category-header-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.category-header .heading-count {
    font-size: 0.9em;
    font-weight: 600;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.25);
    min-width: 24px;
    text-align: center;
}

.header-counter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.counter-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    margin-left: 0;
    white-space: nowrap;
    min-width: 32px;
    text-align: center;
}

.spacer {
    flex-grow: 1;
}

.category-content {
    display: none;
    padding: 20px;
    background: #fdfdff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    width: 100%;
    box-sizing: border-box;
}

.category-save-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.category-save-footer .discard-button,
.category-save-footer .finalize-button {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .category-save-footer {
        justify-content: stretch;
    }

    .category-save-footer .discard-button,
    .category-save-footer .finalize-button {
        flex: 1;
        width: auto;
    }
}

/* Unterkategorien (dezent: grauer Text, lila Pfeil, Trennlinien – wie Master-Screenshot) */
.subcategory {
    margin-bottom: 0;
    border-top: 1px solid #e5e5e5;
}
.subcategory:first-child {
    border-top: none;
}
.subcategory-header {
    background: #fdfdff;
    color: #555;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.subcategory-header:hover {
    background: #f5f5f8;
}
.subcategory-header::after {
    content: '▼';
    font-size: 12px;
    color: #815da7;
    transition: transform 0.3s ease;
}
.subcategory-header.active::after {
    transform: rotate(180deg);
}
.subcategory-header .heading-count {
    font-weight: 500;
    margin-left: 6px;
    color: #666;
}
.subcategory-content {
    display: none;
    padding: 15px 0 20px 0;
    background: #fdfdff;
}
.subcategory-content.active {
    display: block;
}

.archiv-section-subheading {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0 0 10px 0;
    text-align: left;
}
.archiv-section-subheading .heading-count {
    font-weight: 500;
    margin-left: 6px;
    color: #888;
}
.archiv-section-subheading-tenders {
    margin-top: 24px;
}

/* Mini-Kalender in der Sidebar */
.sidebar-mini-calendar {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.mini-calendar-header {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

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

.mini-calendar-nav-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #f8f8fa;
    color: #555;
    font-size: 18px;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mini-calendar-nav-btn:hover {
    background: #ede8f5;
    border-color: #d5cce8;
    color: #815da7;
}

.mini-calendar-month-label {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.mini-calendar-nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.mini-calendar-grid-wrap {
    position: relative;
    min-height: 0;
}

.mini-calendar-loading {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.mini-calendar-loading.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mini-calendar-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e8e4ef;
    border-top-color: #815da7;
    border-radius: 50%;
    animation: mini-calendar-spin 0.65s linear infinite;
}

@keyframes mini-calendar-spin {
    to {
        transform: rotate(360deg);
    }
}

.mini-calendar-loading-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    font-size: 11px;
}

.mini-calendar-weekday {
    text-align: center;
    font-weight: 600;
    color: #888;
    font-size: 10px;
}

.mini-calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f8f8fa;
    color: #555;
}

.mini-calendar-day.has-open > span,
.mini-calendar-day.has-confirmed > span {
    font-weight: 700;
}

.mini-calendar-day.today {
    background: #815da7;
    color: white;
    font-weight: 600;
}

.mini-calendar-day.has-open.today {
    background: linear-gradient(135deg, #815da7 50%, #e38722 50%);
}

.mini-calendar-day.has-confirmed.today {
    background: linear-gradient(135deg, #815da7 50%, #22c55e 50%);
}

.mini-calendar-day.other-month {
    opacity: 0.4;
}

.mini-calendar-day.other-month > span {
    font-weight: 500;
}

.mini-calendar-day.other-month.today {
    opacity: 0.88;
}

.mini-calendar-day.other-month .mini-calendar-dot.open {
    opacity: 0.85;
}

.mini-calendar-day.other-month .mini-calendar-dot.confirmed {
    opacity: 0.85;
}

.mini-calendar-day-indicators {
    display: flex;
    gap: 2px;
    margin-top: 2px;
    align-items: center;
    justify-content: center;
}

.mini-calendar-day-indicators--many {
    flex-wrap: wrap;
    max-width: 100%;
    gap: 1px;
}

.mini-calendar-day-indicators--many .mini-calendar-dot {
    width: 6px;
    height: 6px;
}

.mini-calendar-dot-more {
    font-size: 8px;
    line-height: 1;
    font-weight: 700;
    color: #888;
    margin-left: 1px;
}

.mini-calendar-day.today .mini-calendar-dot-more {
    color: rgba(255, 255, 255, 0.92);
}

.mini-calendar-day.other-month .mini-calendar-dot-more {
    opacity: 0.85;
}

.mini-calendar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mini-calendar-dot.open {
    background: #e38722;
}

.mini-calendar-dot.confirmed {
    background: #22c55e;
}

.mini-calendar-day.past .mini-calendar-dot.confirmed {
    background: #9ca3af;
}

/* Organizer: Hover-Popover für Tage mit Events/Ausschreibungen */
.mini-calendar-day-wrap {
    position: relative;
    aspect-ratio: 1;
    z-index: 1;
}

.mini-calendar-day-wrap:hover {
    z-index: 30;
}

.mini-calendar-day-wrap .mini-calendar-day {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.mini-calendar-day-wrap:hover .mini-calendar-day.has-open,
.mini-calendar-day-wrap:hover .mini-calendar-day.has-confirmed {
    box-shadow: inset 0 0 0 1px rgba(129, 93, 167, 0.35);
}

.mini-calendar-day-popover {
    position: absolute;
    left: 0;
    top: 100%;
    /* Überlappt die Zelle nach oben → kein „toter“ Streifen zwischen Tag und Popover (Hover bricht nicht ab) */
    margin-top: -10px;
    padding: 14px 10px 8px;
    min-width: 200px;
    max-width: min(280px, 90vw);
    max-height: 240px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-size: 11px;
    line-height: 1.35;
    color: #444;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, visibility 0.12s ease;
}

.mini-calendar-day-wrap:hover .mini-calendar-day-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hamburger-Kalender (Master / Veranstalter / Musikschaffende): Desktop ausgeblendet */
.dashboard-top-nav-calendar {
    display: none;
}

/* Kalender im Hamburger — Details per Tap (.is-open), kein Hover-Popover */
.dashboard-top-nav-calendar .mini-calendar-day-wrap:hover .mini-calendar-day-popover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dashboard-top-nav-calendar .mini-calendar-day-wrap.is-open .mini-calendar-day-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dashboard-top-nav-calendar .mini-calendar-day-wrap.is-open {
    z-index: 30;
}

.mini-calendar-popover-date {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.mini-calendar-popover-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mini-calendar-popover-item + .mini-calendar-popover-item {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.mini-calendar-popover-kind {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #815da7;
    margin-bottom: 4px;
}

.mini-calendar-popover-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    word-break: break-word;
}

.mini-calendar-popover-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.mini-calendar-popover-excerpt {
    margin: 0 0 6px 0;
    color: #666;
    font-size: 10px;
}

.mini-calendar-popover-excerpt-empty {
    color: #aaa;
    font-style: italic;
}

.mini-calendar-popover-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mini-calendar-popover-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mini-calendar-popover-btn--primary {
    background: #815da7;
    color: #fff;
    border-color: #6b4d8c;
}

.mini-calendar-popover-btn--primary:hover {
    background: #6f4f94;
    color: #fff;
    text-decoration: none;
}

.mini-calendar-popover-btn--secondary {
    background: #f3f0f8;
    color: #5a4378;
    border-color: #ddd5e8;
}

.mini-calendar-popover-btn--secondary:hover {
    background: #e8e2f2;
    color: #4a3866;
    text-decoration: none;
}


/* Legacy: dashboard-section (falls noch verwendet) */
.dashboard-section {
    margin-bottom: 30px;
}

.dashboard-section h2 {
    font-size: 20px;
    color: #555;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.dashboard-section .heading-count {
    font-size: 0.9em;
    font-weight: 500;
    margin-left: 8px;
    color: #888;
}

.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.dashboard-list > .event-item,
.dashboard-list > .gig-item {
    width: 100%;
}

/* Tender-Fortschritt (4 Schritte) – Master-Listen + Organizer-Karten */
.master-tender-step-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 8px;
    max-width: 100%;
}

.organizer-tender-step-caption {
    font-size: 13px;
    font-weight: 600;
    color: #e38722;
    line-height: 1.35;
    max-width: 100%;
}

.organizer-tender-step-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-top: 0;
    padding: 2px 0;
    flex-wrap: nowrap;
}

.organizer-tender-step-seg {
    flex: 1 1 16px;
    min-width: 12px;
    max-width: 52px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 3px;
}

.organizer-tender-step-seg--done {
    background: #22c55e;
}

.organizer-tender-step-dot {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-sizing: border-box;
}

.organizer-tender-step-dot--done {
    background: #22c55e;
    border: 2px solid #16a34a;
}

.organizer-tender-step-dot--current {
    width: 18px;
    height: 18px;
    background: #e38722;
    border: 2px solid #e38722;
    box-shadow: 0 0 0 4px rgba(227, 135, 34, 0.28);
}

.organizer-tender-step-dot--upcoming {
    background: #fff;
    border: 2px solid #cbd5e1;
}

/* Segment controls (search-master category-buttons pattern) */
.muveup-segment {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: 100%;
    background: #F5F5F5;
    padding: 5px;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.muveup-segment__slider {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: 0;
    border-radius: 8px;
    transition: transform 0.35s ease, width 0.35s ease, background 0.35s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 0;
}

.muveup-segment--master .muveup-segment__slider {
    background: #815da7;
}

.muveup-segment--filter .muveup-segment__slider {
    background: #fff;
}

.muveup-segment__btn {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.muveup-segment--master .muveup-segment__btn {
    color: #555;
}

.muveup-segment--master .muveup-segment__btn:not(.active) {
    opacity: 0.75;
}

.muveup-segment--master .muveup-segment__btn.active {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

.muveup-segment--filter {
    gap: 2px;
}

.muveup-segment--filter .muveup-segment__btn {
    color: #52525b;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.muveup-segment--filter .muveup-segment__btn:not(.active) {
    opacity: 0.7;
}

.muveup-segment--filter .muveup-segment__btn.active {
    color: #e38722;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.muveup-segment--filter .filter-btn-label {
    display: block;
    line-height: 1.15;
}

.muveup-segment--filter .filter-btn-count {
    display: block;
    font-size: 0.85em;
    font-weight: 500;
    opacity: 0.85;
    line-height: 1.1;
}

.filter-controls--spaced {
    margin-top: 15px;
    margin-bottom: 25px;
}

/* MOBILE */
@media (max-width: 900px) {
    .dashboard-layout {
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
        min-width: 0;
        max-width: 100%;
    }

    .dashboard-sidebar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        position: static;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: hidden;
        overflow-y: visible;
        padding: 10px 8px;
        gap: 6px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        justify-content: stretch;
    }

    .dashboard-sidebar--segment-mobile {
        flex-direction: column;
        padding: 0;
        gap: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .dashboard-sidebar--segment-mobile .muveup-segment--master {
        margin: 0;
    }

    /* Master-Haupttabs: Slider-Position für Profile (1. Tab) bis JS sync */
    #masterMainTabs:not([data-slider-synced]) .muveup-segment__slider {
        width: calc((100% - 10px) / 3);
        transform: translateX(0);
        transition: none;
    }

    .dashboard-sidebar--segment-mobile .muveup-segment--master .tab-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        padding: 12px 8px;
        font-size: 14px;
        font-weight: 500;
        gap: 8px;
    }

    .dashboard-sidebar--segment-mobile .muveup-segment--master .tab-btn.active {
        background: transparent;
        color: #fff;
        box-shadow: none;
    }

    /* Master-Dashboard: Icon oben, Label darunter (Profile / Events / Verwaltung) */
    .dashboard-sidebar--tab-labels-below .muveup-segment--master .tab-btn {
        position: relative;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 10px 4px 8px;
        white-space: normal;
        overflow: visible;
    }

    .dashboard-sidebar--tab-labels-below .tab-label {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        clip: auto;
        clip-path: none;
        white-space: nowrap;
        border: 0;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.15;
    }

    .dashboard-sidebar--tab-labels-below .muveup-segment--master .tab-btn:not(.active) .tab-label {
        color: #555;
    }

    .dashboard-sidebar--tab-labels-below .muveup-segment--master .tab-btn.active .tab-label {
        color: #fff;
    }

    .dashboard-sidebar--tab-labels-below .muveup-segment--master .tab-btn .icon {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .sidebar-mini-calendar {
        display: none;
    }

    /* Basis: Desktop nutzt width:100% pro Tab — in der mobilen Zeile muss jeder Tab nur seinen Flex-Anteil haben */
    .dashboard-sidebar > .tab-btn {
        width: auto;
        max-width: 100%;
        flex: 1 1 0%;
        min-width: 0;
        box-sizing: border-box;
    }

    .dashboard-sidebar--segment-mobile > .tab-btn {
        display: none;
    }

    .tab-btn {
        flex: 1 1 0%;
        min-width: 0;
        white-space: nowrap;
        padding: 12px 8px;
        font-size: 14px;
        justify-content: center;
        gap: 8px;
    }

    /* Künstler-/Veranstalter-Sidebar: kompakte Icon-Leiste (Klasse am <aside>) */
    .dashboard-sidebar--icon-tabs-mobile .tab-btn,
    .dashboard-sidebar--icon-tabs-mobile .muveup-segment--master .tab-btn {
        position: relative;
        justify-content: center;
        align-items: center;
        flex: 1 1 0%;
        min-width: 0;
        padding: 12px 6px 10px;
        overflow: hidden;
        gap: 0;
    }

    .dashboard-sidebar--icon-tabs-mobile .tab-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    .dashboard-sidebar--icon-tabs-mobile .tab-count,
    .dashboard-sidebar--tab-labels-below .tab-count {
        position: absolute;
        top: 2px;
        right: 2px;
        margin-left: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 700;
        min-width: 20px;
        min-height: 20px;
        padding: 2px 6px;
        line-height: 1;
        border-radius: 999px;
        z-index: 1;
        box-sizing: border-box;
        max-width: calc(100% - 4px);
    }

    .dashboard-sidebar--icon-tabs-mobile .tab-btn .icon {
        width: 20px;
        height: 20px;
        margin: 0;
        flex-shrink: 0;
    }

    .tab-btn .icon {
        margin: 0;
        flex-shrink: 0;
        width: 18px;
        height: 18px;
    }

    .category-header {
        font-size: 16px;
        padding: 15px 20px;
    }

    .counter-badge {
        font-size: 13px;
        padding: 4px 10px;
    }

    .muveup-segment--filter {
        align-items: stretch;
    }

    .muveup-segment--filter .muveup-segment__btn {
        font-size: 11px;
        font-weight: 600;
        padding: 8px 3px;
        white-space: normal;
        line-height: 1.15;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    .muveup-segment--filter .muveup-segment__btn.active {
        color: #e38722;
        font-weight: 700;
    }

    .muveup-segment--filter .muveup-segment__btn:not(.active) {
        opacity: 0.65;
    }

    .muveup-segment--filter .muveup-segment__btn.active .filter-btn-count {
        opacity: 1;
    }
}

/* Sehr schmale Handys */
@media (max-width: 480px) {
    .dashboard-sidebar:not(.dashboard-sidebar--segment-mobile) {
        padding: 8px 6px;
        gap: 4px;
    }
    .tab-btn {
        font-size: 13px;
        padding: 10px 4px;
    }
    .dashboard-sidebar--icon-tabs-mobile .tab-btn,
    .dashboard-sidebar--icon-tabs-mobile .muveup-segment--master .tab-btn {
        padding: 10px 4px 8px;
    }
    .dashboard-sidebar--tab-labels-below .tab-label {
        font-size: 10px;
    }
    .dashboard-sidebar--tab-labels-below .muveup-segment--master .tab-btn .icon {
        width: 20px;
        height: 20px;
    }
    .muveup-segment--filter .muveup-segment__btn {
        font-size: 13px;
        padding: 10px 4px;
    }
    .dashboard-sidebar--icon-tabs-mobile .tab-count,
    .dashboard-sidebar--tab-labels-below .tab-count {
        font-size: 10px;
        min-width: 18px;
        min-height: 18px;
        padding: 2px 5px;
        top: 1px;
        right: 1px;
    }
    .dashboard-sidebar--icon-tabs-mobile .tab-btn .icon {
        width: 18px;
        height: 18px;
    }
    .tab-btn .icon {
        width: 16px;
        height: 16px;
    }
}

/* Desktop: Segment-Slider aus, klassische Tab-/Filter-Optik */
@media (min-width: 901px) {
    .dashboard-sidebar--segment-mobile {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
        background: #fff;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
        border-radius: 16px;
    }

    .dashboard-sidebar--segment-mobile .muveup-segment--master {
        flex-direction: column;
        background: transparent;
        padding: 0;
        gap: 10px;
        overflow: visible;
    }

    .dashboard-sidebar--segment-mobile .muveup-segment__slider {
        display: none;
    }

    .dashboard-sidebar--segment-mobile .muveup-segment--master .tab-btn {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        padding: 15px 20px;
        font-size: 16px;
        gap: 12px;
    }

    .dashboard-sidebar--segment-mobile .muveup-segment--master .tab-btn:not(.active) {
        opacity: 1;
        color: #555;
    }

    .dashboard-sidebar--segment-mobile .muveup-segment--master .tab-btn.active {
        background: #815da7;
        color: #fff;
        box-shadow: 0 4px 15px rgba(129, 93, 167, 0.3);
    }

    .dashboard-sidebar--icon-tabs-mobile .tab-label {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        clip: auto;
        clip-path: none;
        white-space: nowrap;
    }

    .dashboard-sidebar--tab-labels-below .muveup-segment--master .tab-btn {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 15px 20px;
        font-size: 16px;
    }

    .dashboard-sidebar--tab-labels-below .tab-label {
        font-size: 16px;
        font-weight: 500;
    }

    .filter-controls.muveup-segment {
        display: inline-flex;
        width: auto;
        overflow: visible;
    }

    .filter-controls.muveup-segment .muveup-segment__slider {
        display: none;
    }

    .muveup-segment--filter .muveup-segment__btn {
        flex: 0 1 auto;
        min-width: auto;
        white-space: nowrap;
    }

    .muveup-segment--filter .muveup-segment__btn.active {
        background: #fff;
        color: #e38722;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }
}

/* Community-Member: Sidebar nur mit Kalender (keine Tabs) */
.dashboard-sidebar--calendar-only {
    padding: 15px;
    gap: 0;
}

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

@media (max-width: 900px) {
    .dashboard-sidebar--calendar-only {
        display: none;
    }
}
