/**
 * ZE - Zeiterfassung Styles
 * Eigenständiges CSS für das Zeiterfassungs-Modul
 */

/* ============================================
   Layout
   ============================================ */
#ze-app {
    display: flex;
    min-height: 100vh;
    background: var(--color-background, #f5f5f5);
}

/*#sidebar {
    width: 260px;
    background: var(--color-surface, #fff);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}*/

#main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
    min-height: 100vh;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar-logo {
    margin-bottom:18px
}

/*.sidebar-logo img {
    height: 32px;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-text-secondary, #666);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.15s ease;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-text, #333);
}

.nav-item.active {
    background: var(--color-primary-light, #f3e5f5);
    color: #fff;
    font-weight: 500;
}

.nav-item .material-icons {
    font-size: 22px;
}

.nav-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-section-title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted, #999);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 16px 8px;
}*/

/* App Switcher 
.app-switcher {
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-switcher .label {
    font-size: 11px;
    color: var(--color-text-muted, #999);
    margin-right: auto;
}

.app-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary, #666);
    transition: all 0.15s ease;
}

.app-link:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--color-text, #333);
}

.app-link.active {
    background: var(--color-primary, #c71585);
    color: white;
}*/

/* User Menu */
.sidebar-user {
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted, #999);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--color-text-secondary, #666);
    transition: all 0.15s ease;
}

.btn-logout:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--color-danger, #dc3545);
}

/* ============================================
   Setup Banner
   ============================================ */
.setup-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    margin: -24px -24px 24px -24px;
    border-radius: 0;
}

.setup-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
}

.setup-banner-content .material-icons {
    font-size: 32px;
    opacity: 0.9;
}

.setup-banner-content div {
    flex: 1;
}

.setup-banner-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.setup-banner-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.setup-banner .btn {
    background: white;
    color: #667eea;
    border: none;
}

.setup-banner .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.card h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
}


/* ============================================
   Kalender-Widget
   ============================================ */
.kalender-widget{
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    border:solid 1px var(--color-primary);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Stempel-Widget (Hauptfunktion)
   ============================================ */
.stempel-widget {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    border: solid 1px #c71585;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
}

.stempeln-h3{
    background-color: var(--color-primary);
    color:#fff;
}

.stempel-uhr {
    font-size: 20px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--color-text, #333);
    margin-bottom: 8px;
}

.stempel-datum {
    font-size: 16px;
    color: var(--color-text-secondary, #666);
    margin-bottom: 32px;
}

.stempel-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
}

.stempel-status.nicht-gestempelt {
    background: #f5f5f5;
    color: #666;
}

.stempel-status.anwesend {
    background: #e8f5e9;
    color: #2e7d32;
}

.stempel-status.pause {
    background: #fff3e0;
    color: #ef6c00;
}

.stempel-status.gegangen {
    background: #e3f2fd;
    color: #1976d2;
}

.stempel-status .material-icons {
    font-size: 18px;
}

.stempel-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.stempel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 32px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100px;
    height:100px
}

.stempel-btn:hover:not(:disabled) {
    border-color: var(--color-primary, #c71585);
    background: var(--color-primary-light, #fce4ec);
}

.stempel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.stempel-btn .material-icons {
    font-size: 36px;
    color: var(--color-primary, #c71585);
}

.stempel-btn span:last-child {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text, #333);
}

.stempel-btn.kommen .material-icons { color: #2e7d32; }
.stempel-btn.gehen .material-icons { color: #1976d2; }
.stempel-btn.pause .material-icons { color: #ef6c00; }

/* ============================================
   Mobile-Responsive Grid für Stempel-Seite
   ============================================ */
.stempel-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.85fr;
    gap: 24px;
    align-items: stretch;
}

.stempel-rechts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Mobile Anpassungen */
@media (max-width: 900px) {
    .stempel-grid {
        grid-template-columns: 1fr;
    }
    
    .stempel-widget {
        max-width: 100%;
    }
    
    .kalender-widget {
        max-width: 100%;
    }
}

/* Buchungen heute */
.buchungen-heute {
    margin-top: 40px;
    text-align: left;
}

.buchungen-heute h4 {
    font-size: 14px;
    color: var(--color-text-muted, #999);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buchung-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.buchung-item:last-child {
    border-bottom: none;
}

.buchung-zeit {
    font-size: 18px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    width: 60px;
}

.buchung-typ {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.buchung-typ.kommen {
    background: #e8f5e9;
    color: #2e7d32;
}

.buchung-typ.gehen {
    background: #e3f2fd;
    color: #1976d2;
}

.buchung-typ.pause_start,
.buchung-typ.pause_ende {
    background: #fff3e0;
    color: #ef6c00;
}

/* Tages-Zusammenfassung */
.tages-zusammenfassung {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.zusammenfassung-item {
    text-align: center;
}

.zusammenfassung-label {
    font-size: 12px;
    color: var(--color-text-muted, #999);
    margin-bottom: 4px;
}

.zusammenfassung-wert {
    font-size: 24px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.zusammenfassung-wert.positiv {
    color: #2e7d32;
}

.zusammenfassung-wert.negativ {
    color: #c62828;
}

/* ============================================
   Team-Übersicht
   ============================================ */
.team-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.stat-card .value {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-card .label {
    font-size: 13px;
    color: var(--color-text-muted, #999);
}

.stat-card.anwesend .value { color: #2e7d32; }
.stat-card.pause .value { color: #ef6c00; }
.stat-card.gegangen .value { color: #1976d2; }
.stat-card.nicht-gestempelt .value { color: #9e9e9e; }

/* Team-Tabelle */
.team-table {
    width: 100%;
    border-collapse: collapse;
}

.team-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted, #999);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.team-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: middle;
}

.team-table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.ma-name {
    font-weight: 500;
}

.ma-abteilung {
    font-size: 13px;
    color: var(--color-text-muted, #999);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.anwesend {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.pause {
    background: #fff3e0;
    color: #ef6c00;
}

.status-badge.gegangen {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.nicht_gestempelt {
    background: #f5f5f5;
    color: #9e9e9e;
}

/* ============================================
   Meine Zeiten (Monatsübersicht)
   ============================================ */
.monat-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.monat-navigation h2 {
    margin: 0;
    font-size: 24px;
}

.monat-nav-btns {
    display: flex;
    gap: 8px;
}

.zeiten-kalender {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.kalender-header {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted, #999);
}

.kalender-tag {
    aspect-ratio: 1;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.kalender-tag:hover {
    background: rgba(0, 0, 0, 0.04);
}

.kalender-tag.heute {
    border: 2px solid var(--color-primary, #c71585);
}

.kalender-tag.wochenende {
    background: #fafafa;
}

.kalender-tag.feiertag {
    background: #fff3e0;
}

.kalender-tag .tag-nummer {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.kalender-tag .tag-stunden {
    font-size: 11px;
    color: var(--color-text-secondary, #666);
}

.kalender-tag .tag-differenz {
    font-size: 10px;
    position: absolute;
    bottom: 4px;
    right: 6px;
}

.kalender-tag .tag-differenz.positiv { color: #2e7d32; }
.kalender-tag .tag-differenz.negativ { color: #c62828; }

/* Monatssaldo */
.monat-saldo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 24px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
}

.saldo-item {
    text-align: center;
}

.saldo-label {
    font-size: 12px;
    color: var(--color-text-muted, #999);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.saldo-wert {
    font-size: 28px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   Arbeitszeitmodelle
   ============================================ */
.modell-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.modell-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.15s ease;
}

.modell-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modell-card.standard {
    border-color: var(--color-primary, #c71585);
    border-width: 2px;
}

.modell-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.modell-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modell-kuerzel {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary, #666);
}

.modell-wochenstunden {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-primary, #c71585);
    margin-bottom: 16px;
}

.modell-wochenstunden small {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-muted, #999);
}

.wochenverteilung {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.wochentag {
    text-align: center;
    padding: 8px 4px;
    border-radius: 6px;
    background: #f8f9fa;
}

.wochentag .tag {
    font-size: 11px;
    color: var(--color-text-muted, #999);
}

.wochentag .stunden {
    font-size: 14px;
    font-weight: 500;
}

.wochentag.frei {
    background: transparent;
    opacity: 0.4;
}

/* ============================================
   Formulare & Inputs
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text, #333);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary, #c71585);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--color-primary, #c71585);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--color-text, #333);
}

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

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--color-text-secondary, #666);
    transition: all 0.15s ease;
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.06);
}

.btn-icon.danger:hover {
    background: #fee;
    color: #dc3545;
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

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

/* ============================================
   Filter Bar
   ============================================ */
.filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar select,
.filter-bar input[type="date"] {
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font-size: 14px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    #sidebar {
        width: 72px;
    }
    
    #sidebar .sidebar-nav span:not(.material-icons),
    #sidebar .nav-section-title,
    #sidebar .app-switcher .label,
    #sidebar .user-info {
        display: none;
    }
    
    #sidebar .nav-item {
        justify-content: center;
        padding: 12px;
    }
    
    #main-content {
        margin-left: 72px;
    }
    
    .team-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .monat-saldo {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #sidebar {
        display: none;
    }
    
    #main-content {
        margin-left: 0;
        padding: 16px;
    }
    
    .stempel-uhr {
        font-size: 48px;
    }
    
    .stempel-buttons {
        flex-direction: column;
    }
    
    .stempel-btn {
        width: 100%;
    }
    
    .tages-zusammenfassung {
        grid-template-columns: 1fr;
    }
    
    .zeiten-kalender {
        font-size: 12px;
    }
}

/* ============================================
   Utilities
   ============================================ */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--color-text-muted, #999);
}

.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted, #999);
}

.empty .material-icons {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge.primary {
    background: var(--color-primary, #c71585);
    color: white;
}

.hidden {
    display: none !important;
}

.nav-item .badge {
    background: #e74c3c;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: auto;
    min-width: 18px;
    text-align: center;
}

/* ============================================
   Stempeln-Seite Redesign (NEU)
   Diese Styles am Ende der ze-styles.css einfügen
   ============================================ */

/* Layout für Stempel-Seite */
.stempel-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: start;
}

.stempel-right-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card mit farbigem Header */
.stempel-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.stempel-card-header {
    background: var(--color-primary, #c71585);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.stempel-card-header .material-icons {
    font-size: 22px;
}

.stempel-card-body {
    padding: 24px;
}

/* Kalender-Card nimmt mehr Platz ein */
.stempel-card.kalender-card {
    flex: 2;
}

.stempel-card.urlaub-card {
    flex: 1;
}

/* Uhr - Überschreibt alte Styles */
.stempel-card .stempel-uhr {
    font-size: 56px;
    font-weight: 700;
    text-align: center;
    color: var(--color-text, #1a1a1a);
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
    margin-bottom: 4px;
}

.stempel-card .stempel-datum {
    text-align: center;
    color: var(--color-text-muted, #666);
    font-size: 16px;
    margin-bottom: 20px;
}

/* Status Badge (NEU) */
.stempel-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted, #666);
    margin: 0 auto 24px;
    width: fit-content;
}

.stempel-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bbb;
    flex-shrink: 0;
}

.status-dot.anwesend {
    background: #4caf50;
}

.status-dot.pause {
    background: #ff9800;
}

.status-dot.abwesend {
    background: #9e9e9e;
}

.status-dot.warning {
    background: #ff9800;
}

.stempel-status-badge.anwesend {
    background: #e8f5e9;
    color: #2e7d32;
}

.stempel-status-badge.pause {
    background: #fff3e0;
    color: #ef6c00;
}

.stempel-status-badge.warning {
    background: #fff3e0;
    color: #ef6c00;
}

/* Stempel-Buttons Row (NEU) */
.stempel-buttons-row {
    display: flex;
    justify-content: center;    
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.stempel-action-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    border-radius: 12px;
    border: 2px solid transparent;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stempel-action-btn .material-icons {
    font-size: 28px;
}

.stempel-action-btn.primary {
    background: var(--color-primary, #c71585);
    color: white;
    border-color: var(--color-primary, #c71585);
}

.stempel-action-btn.primary:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 21, 133, 0.3);
}

.stempel-action-btn.secondary {
    background: #f8f9fa;
    color: #999;
    border-color: #e0e0e0;
}

.stempel-action-btn.secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.stempel-action-btn.secondary:hover:not(:disabled) {
    background: #f0f0f0;
    color: #666;
}

/* Buchungen Section (NEU) */
.buchungen-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 8px;
    width: 100%;
    text-align: left;
}

.buchungen-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text, #1a1a1a);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.buchungen-liste {
    min-height: 40px;
}

.keine-buchungen {
    color: var(--color-text-muted, #999);
    font-size: 14px;
}

.buchungen-liste .buchung-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.buchungen-liste .buchung-item:last-child {
    border-bottom: none;
}

.buchung-icon {
    font-size: 18px;
    color: var(--color-primary, #c71585);
}

.buchungen-liste .buchung-zeit {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    width: auto;
    font-size: 14px;
}

.buchungen-liste .buchung-typ {
    color: var(--color-text-muted, #666);
    font-size: 13px;
    background: none;
    padding: 0;
}

/* Kalender Navigation (NEU) */
.kalender-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.kalender-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted, #666);
    transition: all 0.2s;
}

.kalender-nav-btn:hover {
    background: #f5f5f5;
    color: var(--color-text, #1a1a1a);
}

.kalender-titel {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Kalender Grid (NEU) */
.kalender-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.kalender-wochentag {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted, #666);
    padding: 8px 4px;
}

.kalender-wochentag.weekend {
    color: #e57373;
}

.kalender-grid .kalender-tag {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    position: relative;
    transition: all 0.15s;
    padding: 0;
    cursor: default;
}

.kalender-grid .kalender-tag.leer,
.kalender-grid .kalender-tag.andere-monat {
    color: #ccc;
}

.kalender-grid .kalender-tag.weekend {
    color: #e57373;
}

.kalender-grid .kalender-tag.vergangen {
    color: #bbb;
}

.kalender-grid .kalender-tag.klickbar {
    cursor: pointer;
}

.kalender-grid .kalender-tag.klickbar:hover {
    background: #f5f5f5;
    transform: scale(1.08);
}

.kalender-grid .kalender-tag.heute {
    background: var(--color-primary, #c71585);
    color: white !important;
    font-weight: 600;
    border: none;
}

.kalender-grid .kalender-tag.heute .tag-nummer {
    color: white;
}

.kalender-grid .tag-nummer {
    font-weight: 500;
    line-height: 1;
}

.tag-kuerzel {
    font-size: 9px;
    font-weight: 700;
    margin-top: 2px;
    line-height: 1;
}

.kalender-grid .kalender-tag.abwesenheit {
    border: 2px solid;
    cursor: default;
}

.kalender-grid .kalender-tag.abwesenheit.beantragt {
    background: white !important;
    border-style: dashed;
}

/* Urlaubsübersicht (NEU) */
.urlaub-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.urlaub-stat {
    text-align: center;
    padding: 14px 8px;
    border-radius: 10px;
}

.urlaub-stat.anspruch {
    background: #e3f2fd;
}

.urlaub-stat.anspruch .urlaub-stat-wert,
.urlaub-stat.anspruch .urlaub-stat-label {
    color: #1565c0;
}

.urlaub-stat.genommen {
    background: #fff3e0;
}

.urlaub-stat.genommen .urlaub-stat-wert,
.urlaub-stat.genommen .urlaub-stat-label {
    color: #ef6c00;
}

.urlaub-stat.beantragt {
    background: #fce4ec;
}

.urlaub-stat.beantragt .urlaub-stat-wert,
.urlaub-stat.beantragt .urlaub-stat-label {
    color: #c2185b;
}

.urlaub-stat.verfuegbar {
    background: #e8f5e9;
}

.urlaub-stat.verfuegbar .urlaub-stat-wert,
.urlaub-stat.verfuegbar .urlaub-stat-label {
    color: #2e7d32;
}

.urlaub-stat.verfuegbar.niedrig {
    background: #ffebee;
}

.urlaub-stat.verfuegbar.niedrig .urlaub-stat-wert,
.urlaub-stat.verfuegbar.niedrig .urlaub-stat-label {
    color: #c62828;
}

.urlaub-stat-wert {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.urlaub-stat-label {
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
}

.urlaub-keine-daten {
    color: var(--color-text-muted, #999);
    text-align: center;
    padding: 20px;
}

/* Responsive für neues Design */
@media (max-width: 900px) {
    .stempel-layout {
        grid-template-columns: 1fr;
    }
    
    .stempel-right-column {
        order: -1;
    }
    
    .urlaub-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .stempel-card .stempel-uhr {
        font-size: 42px;
    }
    
    .stempel-action-btn {
        padding: 16px 12px;
    }
    
    .stempel-action-btn .material-icons {
        font-size: 24px;
    }
    
    .urlaub-stat-wert {
        font-size: 22px;
    }
    
    .urlaub-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.rotating {
    animation: rotate 1s linear infinite;
}

/* Schichtplanung Einstellungen */
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-full-width {
    grid-column: 1 / -1;
}

.color-dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    vertical-align: middle;
}

.input-mini {
    width: 50px;
    padding: 4px 8px;
    text-align: center;
}

.input-with-suffix {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-suffix input {
    width: 80px;
}

.row-inactive {
    opacity: 0.5;
}

.schicht-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 12px;
    margin-right: 8px;
}

/* Mein Schichtplan - Mitarbeiter-Ansicht */
.schichtplan-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.kw-display {
    font-size: 18px;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}

.highlight-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 20px;
}

.highlight-card .card-body {
    padding: 20px;
}

.next-shift-empty {
    text-align: center;
    padding: 20px;
    opacity: 0.9;
}

.next-shift-empty .material-icons {
    font-size: 48px;
    margin-bottom: 8px;
}

.next-shift-today {
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 16px;
}

.next-shift-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.next-shift-details {
    display: flex;
    align-items: center;
    gap: 16px;
}

.schicht-badge-lg {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.next-shift-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.next-shift-info strong {
    font-size: 20px;
}

.next-shift-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
}

.next-shift-time .material-icons {
    font-size: 18px;
}

/* Wochenübersicht */
.mein-wochenplan {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wochentag-card {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 16px;
}

.wochentag-heute {
    background: #e3f2fd;
    border: 2px solid #2196F3;
}

.wochentag-vergangen {
    opacity: 0.6;
}

.wochentag-header {
    min-width: 120px;
}

.wochentag-name {
    font-weight: 600;
    display: block;
}

.wochentag-datum {
    font-size: 12px;
    color: #666;
}

.wochentag-schicht {
    flex: 1;
}

.meine-schicht {
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.meine-schicht strong {
    margin-right: auto;
}

.schicht-zeit {
    font-size: 14px;
}

.schicht-pause {
    font-size: 12px;
    color: #666;
}

.keine-schicht {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 14px;
}

.keine-schicht .material-icons {
    font-size: 18px;
}

/* Kommende Schichten */
.kommende-schichten-liste {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kommende-woche-header {
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.kommende-woche-schichten {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kommende-schicht-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.schicht-badge-sm {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.kommende-datum {
    min-width: 100px;
}

.kommende-zeit {
    color: #666;
}

/* Statistik Dashboard */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #C73178, #e91e63);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon .material-icons {
    font-size: 28px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

/* Stunden pro Mitarbeiter */
.stunden-liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stunden-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stunden-ma-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ma-name {
    font-weight: 500;
    min-width: 150px;
}

.ma-stunden {
    font-size: 13px;
    color: #666;
}

.ma-diff {
    font-size: 12px;
    font-weight: 500;
}

.ma-diff.positive {
    color: #4CAF50;
}

.ma-diff.negative {
    color: #f44336;
}

.stunden-bar-container {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: visible;
}

.stunden-bar {
    height: 100%;
    background: linear-gradient(90deg, #C73178, #e91e63);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.soll-marker {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 16px;
    background: #333;
    transform: translateX(-50%);
}

/* Fairness Tabelle */
.highlight-high {
    background: #ffebee !important;
    color: #c62828;
    font-weight: 600;
}

.highlight-low {
    background: #e8f5e9 !important;
    color: #2e7d32;
    font-weight: 600;
}

.highlight-high-dot, .highlight-low-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 4px;
}

.highlight-high-dot {
    background: #ffcdd2;
    border: 2px solid #c62828;
}

.highlight-low-dot {
    background: #c8e6c9;
    border: 2px solid #2e7d32;
}

/* Schichtverteilung */
.schicht-verteilung-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.verteilung-label {
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verteilung-bar-container {
    flex: 1;
    height: 24px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.verteilung-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.verteilung-wert {
    min-width: 100px;
    text-align: right;
    font-size: 13px;
    color: #666;
}

/* Arbeitsbereiche */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    cursor: pointer;
}

.checkbox-item:hover {
    background: #e9ecef;
    border-radius: 4px;
}

.modal-lg {
    max-width: 700px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-row .form-group.flex-2 {
    flex: 2;
}

.ma-preview {
    font-size: 11px;
    color: #666;
    margin-left: 4px;
}

/* Verfügbarkeit Tabs */
.verfuegbarkeit-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.verfuegbarkeit-tabs .tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.verfuegbarkeit-tabs .tab-btn:hover {
    background: #f5f5f5;
}

.verfuegbarkeit-tabs .tab-btn.active {
    background: #C73178;
    color: white;
    border-color: #C73178;
}

/* Wochen-Grid */
.verfuegbarkeit-wochen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.verfuegbarkeit-tag-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.verfuegbarkeit-tag-card .tag-header {
    background: #f5f5f5;
    padding: 10px 12px;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

.verfuegbarkeit-tag-card .tag-regeln {
    padding: 8px;
    min-height: 60px;
}

.regel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 6px;
}

.regel-item .regel-text {
    flex: 1;
    font-size: 13px;
}

.regel-item .regel-text small {
    color: #666;
    display: block;
}

.regel-item .btn-icon-sm {
    padding: 2px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
}

.regel-item .btn-icon-sm:hover {
    opacity: 1;
}

.regel-item .btn-icon-sm .material-icons {
    font-size: 16px;
}

.keine-regel {
    color: #999;
    font-size: 13px;
    text-align: center;
    padding: 16px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state .material-icons {
    font-size: 48px;
    margin-bottom: 12px;
}

/* Verfügbarkeit im Grid */
.sp-tag-cell.nicht-verfuegbar {
    background: #ffebee !important;
}

.sp-tag-cell.bevorzugt {
    background: #e3f2fd !important;
}

.sp-tag-cell.konflikt {
    background: #ffcdd2 !important;
    animation: konflikt-pulse 1s ease-in-out infinite;
}

@keyframes konflikt-pulse {
    0%, 100% { background: #ffcdd2; }
    50% { background: #ef9a9a; }
}

.sp-tag-cell .verf-icon {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    opacity: 0.7;
}

.sp-tag-cell {
    position: relative;
}

.sp-schicht-badge.konflikt-badge {
    border: 2px solid #f44336 !important;
}

/* Tags Grid */
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
}

.tag-item.inactive {
    opacity: 0.5;
}

.tag-item .tag-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tag-item .tag-kategorie {
    color: #666;
    font-size: 11px;
}

.tag-item .tag-count {
    color: #999;
    font-size: 11px;
}

.tag-item .tag-actions {
    display: flex;
    gap: 2px;
    margin-left: 4px;
}

.tag-item .btn-icon-sm {
    padding: 2px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
}

.tag-item .btn-icon-sm:hover {
    opacity: 1;
}

.tag-item .btn-icon-sm .material-icons {
    font-size: 14px;
}

/* Checkbox Row */
.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.checkbox-inline input {
    margin: 0;
}

/* Schicht-Dropdown Tags */
.sp-schicht-dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
}

.sp-schicht-dropdown-section {
    font-size: 11px;
    color: #666;
    padding: 4px 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.sp-schicht-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
}

.sp-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.sp-tag .material-icons {
    font-size: 12px;
    cursor: pointer;
    opacity: 0.7;
}

.sp-tag .material-icons:hover {
    opacity: 1;
}

.btn-tag-add {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    border: 1px dashed #999;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-tag-add .material-icons {
    font-size: 14px;
    color: #666;
}

.btn-tag-add:hover {
    background: #f0f0f0;
}

/* Tag-Auswahl Popup */
.tag-auswahl-popup {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    max-height: 250px;
    overflow-y: auto;
    padding: 6px 0;
}

.tag-auswahl-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}

.tag-auswahl-item:hover {
    background: #f5f5f5;
}

.tag-auswahl-item .tag-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tag-auswahl-item small {
    color: #888;
    margin-left: auto;
}

/* Tag-Auswahl Inline */
.tag-auswahl-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
    width: 100%;
}

.tag-auswahl-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.1s;
}

.tag-auswahl-chip:hover {
    transform: scale(1.05);
}