/* ===========================
   CSS Variables & Reset
   =========================== */

:root {
    /* Modern Color Palette */
    --color-primary: #E30613;
    --color-primary-light: #f87171;
    --color-primary-dark: #850000;
    --color-secondary: #E30613;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #06b6d4;
    
    /* Neutral Colors */
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;
    
    /* Background & Surface */
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--color-gray-900);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Header & Navigation - Zentrierter Toggle
   =========================== */

.main-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-4) var(--spacing-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-4);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

/* Logo Bild - Optimierte Skalierung */
.logo img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* ===========================
   Navigation Container
   =========================== */

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    flex: 1;
    justify-content: flex-end;
}

/* Navigation Links Container */
.nav-links {
    display: flex;
    gap: var(--spacing-2);
    align-items: center;
}

.nav-link {
    padding: var(--spacing-2) var(--spacing-4);
    color: var(--color-gray-600);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-primary);
    background-color: var(--color-gray-50);
}
/* ===========================
   Navigation Toggle Button - NUR MOBILE
   =========================== */

.nav-toggle-btn {
    display: none; /* Standardmäßig versteckt auf Desktop */
}

/* ===========================
   Responsive - Mobile
   =========================== */

@media (max-width: 768px) {
    .header-content {
        padding: var(--spacing-3) var(--spacing-4);
        flex-wrap: wrap;
    }
    
    /* Logo für Mobile */
    .logo img {
        height: 45px;
        max-width: 150px;
    }
    
    .logo span {
        font-size: var(--font-size-base);
    }
    
    /* Navigation nimmt volle Breite ein */
    .main-nav {
        width: 100%;
        order: 3;
        flex-direction: column;
        padding-top: var(--spacing-2);
    }
    
    /* Navigation Links werden zu vertikaler Liste */
    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: var(--spacing-3);
        border-radius: 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-link:hover {
        background-color: var(--color-gray-100);
    }
    
    /* Toggle Button - NUR auf Mobile sichtbar, UNTER den Links */
    .nav-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-3);
        width: 100%;
        padding: var(--spacing-4);
        margin-top: var(--spacing-3);
        background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
        border: none;
        color: white;
        font-size: var(--font-size-base);
        font-weight: 600;
        border-radius: var(--radius-lg);
        cursor: pointer;
        transition: all var(--transition-base);
        box-shadow: 0 2px 4px rgba(227, 6, 19, 0.2);
    }
    
    .nav-toggle-btn:hover {
        background: linear-gradient(135deg, var(--color-primary-dark) 0%, #600000 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(227, 6, 19, 0.3);
    }
    
    .nav-toggle-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(227, 6, 19, 0.2);
    }
    
    .nav-toggle-icon {
        flex-shrink: 0;
        transition: transform var(--transition-base);
        order: 2; /* Icon rechts */
        transform: rotate(180deg); /* Wenn OFFEN: Pfeil zeigt NACH OBEN */
    }
    
    .nav-toggle-text {
        order: 1; /* Text links */
    }
    
    /* Collapsed State Mobile */
    .main-nav.collapsed .nav-links {
        display: none;
    }
    
    .main-nav.collapsed .nav-toggle-btn {
        margin-top: 0;
        background: linear-gradient(135deg, var(--color-gray-600) 0%, var(--color-gray-700) 100%);
    }
    
    .main-nav.collapsed .nav-toggle-btn:hover {
        background: linear-gradient(135deg, var(--color-gray-700) 0%, var(--color-gray-800) 100%);
    }
    
    .main-nav.collapsed .nav-toggle-icon {
        transform: rotate(0deg); /* Wenn GESCHLOSSEN: Pfeil zeigt NACH UNTEN */
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
        max-width: 120px;
    }
    
    .logo span {
        font-size: var(--font-size-sm);
    }
    
    .nav-toggle-btn {
        font-size: var(--font-size-sm);
        padding: var(--spacing-3);
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
        max-width: 120px;
    }
    
    .logo span {
        font-size: var(--font-size-sm);
    }
    
    .nav-toggle-btn {
        font-size: var(--font-size-sm);
        padding: var(--spacing-3);
    }
}

/* ===========================
   Animationen
   =========================== */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.nav-links {
    animation: slideDown 0.3s ease-out;
}

/* ===========================
   Accessibility
   =========================== */

.nav-toggle-btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.nav-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===========================
   Print Styles
   =========================== */

@media print {
    .main-nav.collapsed .nav-links {
        display: flex;
    }
    
    .nav-toggle-btn {
        display: none;
    }
}

/* ===========================
   Page Layout
   =========================== */

.page {
    display: none;
    min-height: calc(100vh - 73px);
}

.page.active {
    display: block;
}

/* ===========================
   Auth Pages (Login/Register)
   =========================== */

.auth-container {
    min-height: calc(100vh - 73px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-8) var(--spacing-6);
}

.auth-card {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-10);
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--color-border);
}

.auth-card.wide {
    max-width: 900px;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-8);
}

.auth-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-2);
}

.auth-header p {
    font-size: var(--font-size-base);
    color: var(--color-gray-500);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

/* ===========================
   Forms
   =========================== */

.form-section {
    background: var(--color-gray-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
}

.section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-5);
    padding-bottom: var(--spacing-3);
    border-bottom: 2px solid var(--color-border);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-700);
}

.form-control {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--color-gray-900);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-control::placeholder {
    color: var(--color-gray-400);
}

.form-hint {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: calc(var(--spacing-2) * -1);
}

.form-actions {
    display: flex;
    gap: var(--spacing-3);
    justify-content: flex-end;
}

/* Checkbox Wrapper */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-wrapper label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    cursor: pointer;
}

.checkbox-wrapper label a {
    color: var(--color-primary);
    text-decoration: none;
}

.checkbox-wrapper label a:hover {
    text-decoration: underline;
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-5);
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
}

.btn-primary {
    color: white;
    background-color: #E30613;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    color: var(--color-gray-700);
    background-color: var(--color-surface);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-gray-50);
    border-color: var(--color-gray-300);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===========================
   Links
   =========================== */

/* Globale Link-Styles */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.link-primary {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

.link-primary:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.link-secondary {
    color: var(--color-gray-600);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: color var(--transition-base);
}

.link-secondary:hover {
    color: var(--color-primary);
}

.auth-switch {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.auth-switch a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: var(--spacing-2);
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ===========================
   Dashboard Layout
   =========================== */

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-8) var(--spacing-6);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-8);
}

.dashboard-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-2);
}

.text-muted {
    color: var(--color-gray-500);
    font-size: var(--font-size-base);
}

.header-actions {
    display: flex;
    gap: var(--spacing-3);
}

/* ===========================
   Stats Grid
   =========================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-8);
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    text-decoration: none;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: rgba(30, 64, 175, 0.1);
    color: var(--color-primary);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.stat-icon.info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-info);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    font-weight: 500;
}

.stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-gray-900);
    line-height: 1;
}

/* ===========================
   Dashboard Grid
   =========================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-6);
}

/* ===========================
   Cards
   =========================== */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.card-header {
    padding: var(--spacing-6);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-gray-900);
}

.card-body {
    padding: var(--spacing-6);
}

/* ===========================
   Shift List
   =========================== */

.shift-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.shift-item {
    display: flex;
    gap: var(--spacing-4);
    padding: var(--spacing-5);
    background: var(--color-gray-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
}

.shift-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    text-decoration: none;
}

.shift-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: var(--spacing-3);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.date-day {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.date-month {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--spacing-1);
}

.shift-details {
    flex: 1;
    min-width: 0;
}

.shift-details h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-2);
}

.shift-meta {
    display: flex;
    gap: var(--spacing-4);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.meta-item svg {
    color: var(--color-gray-400);
}

/* ===========================
   Badges
   =========================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-1) var(--spacing-3);
    font-size: var(--font-size-xs);
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-md);
    white-space: nowrap;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-weight: 700;
}

.badge-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-info);
}

/* ===========================
   Sidebar Content
   =========================== */

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

/* ===========================
   Quick Actions
   =========================== */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-3);
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-5) var(--spacing-3);
    background: var(--color-gray-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    text-decoration: none;
}

.quick-action-btn:hover {
    background: white;
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action-btn svg {
    color: var(--color-gray-400);
    transition: color var(--transition-base);
}

.quick-action-btn:hover svg {
    color: var(--color-primary);
}

/* ===========================
   Notifications
   =========================== */

.notification-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.notification-item {
    display: flex;
    gap: var(--spacing-3);
    padding: var(--spacing-4);
    background: var(--color-gray-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
}

.notification-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.primary {
    background: rgba(30, 64, 175, 0.1);
    color: var(--color-primary);
}

.notification-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.notification-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.notification-icon.info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-info);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content p {
    font-size: var(--font-size-sm);
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-1);
    line-height: 1.4;
}

.notification-time {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-content {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--spacing-4);
        align-items: flex-start;
    }
    
    .main-nav {
        width: 100%;
        flex-direction: column;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: var(--spacing-4);
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .header-actions .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: var(--spacing-6);
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .shift-item {
        flex-direction: column;
    }
    
    .shift-date {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: var(--spacing-4);
    }
    
    .auth-container {
        padding: var(--spacing-4);
    }
    
    .dashboard-header h1 {
        font-size: var(--font-size-2xl);
    }
    
    .auth-header h1 {
        font-size: var(--font-size-2xl);
    }
    
    .card-header,
    .card-body {
        padding: var(--spacing-4);
    }
}

/* ===========================
   Animations
   =========================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    animation: fadeIn var(--transition-slow);
}

/* ===========================
   Utilities
   =========================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-4 {
    margin-top: var(--spacing-4);
}

.mb-4 {
    margin-bottom: var(--spacing-4);
}

.p-4 {
    padding: var(--spacing-4);
}

/* ===========================
   Extended Components
   =========================== */

/* Clickable Elements */
.clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.stat-card.clickable:hover,
.shift-item.clickable:hover,
.notification-item.clickable:hover {
    transform: translateY(-2px);
}

/* Notification Badge */
.badge-notification {
    position: relative;
    top: -2px;
    background: var(--color-danger);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-md);
    margin-left: var(--spacing-2);
}

/* Page Header */
.page-header {
    margin-bottom: var(--spacing-8);
}

.page-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-2);
    margin-top: var(--spacing-2);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    color: var(--color-gray-600);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--spacing-3);
    transition: color var(--transition-base);
}

.back-link:hover {
    color: var(--color-primary);
}

/* Content Single Column */
.content-single {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

/* Profile Forms */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: var(--spacing-4);
}

/* Event Grid & Cards */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-6);
}

.event-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    text-decoration: none;
}

.event-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-content {
    padding: var(--spacing-5);
}

.event-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-3);
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-4);
}

.event-stats {
    display: flex;
    gap: var(--spacing-2);
    flex-wrap: wrap;
}

/* Area Grid & Cards */
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-6);
}

.area-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    transition: all var(--transition-base);
}

.area-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.area-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-icon.primary {
    background: rgba(30, 64, 175, 0.1);
    color: var(--color-primary);
}

.area-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.area-icon.info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-info);
}

.area-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-2);
}

.area-content p {
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-3);
}

.area-stats {
    margin-top: auto;
}

/* Shift Detail List */
.shift-list-detailed {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.shift-detail-item {
    padding: var(--spacing-5);
    background: var(--color-gray-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.shift-main {
    display: flex;
    gap: var(--spacing-5);
}

.shift-date-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: var(--spacing-4);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.date-day {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.date-month {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--spacing-1);
}

.date-year {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
    margin-top: var(--spacing-1);
}

.shift-info {
    flex: 1;
}

.shift-info h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-3);
}

.shift-meta-large {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-3);
}

.shift-description {
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.shift-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-3);
    justify-content: flex-end;
}

/* Event Summary Cards */
.event-summary-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-5);
    transition: all var(--transition-base);
}

.event-summary-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.event-summary-header {
    display: flex;
    gap: var(--spacing-4);
    align-items: center;
}

.event-summary-image {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-summary-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-1);
}

.event-summary-header p {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.event-summary-stats {
    display: flex;
    gap: var(--spacing-6);
    flex-wrap: wrap;
}

.stat-small {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.stat-small-label {
    font-size: var(--font-size-xs);
    color: var(--color-gray-600);
    font-weight: 500;
}

.stat-small-value {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-gray-900);
}

/* Stats Summary */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-8);
}

.summary-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-5);
    text-align: center;
}

.summary-card h4 {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    font-weight: 500;
    margin-bottom: var(--spacing-2);
}

.summary-value {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-primary);
}

/* History List */
.history-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-5);
}

.history-item {
    padding: var(--spacing-5);
    background: var(--color-gray-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-4);
}

.history-header h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-gray-900);
}

.history-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.history-areas {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.area-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-3);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.area-badge strong {
    color: var(--color-gray-900);
}

.area-badge span {
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
}

.history-total {
    text-align: right;
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
}

.history-total strong {
    color: var(--color-primary);
    font-size: var(--font-size-lg);
}

/* Stats Bars */
.stats-bars {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-5);
}

.stats-bar-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.stats-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-bar-label {
    font-weight: 600;
    color: var(--color-gray-900);
}

.stats-bar-value {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.stats-bar-track {
    height: 12px;
    background: var(--color-gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.stats-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    transition: width var(--transition-slow);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-8);
    text-align: center;
    background: var(--color-gray-50);
    transition: all var(--transition-base);
}

.upload-area:hover {
    border-color: var(--color-primary);
    background: rgba(30, 64, 175, 0.05);
}

.upload-area svg {
    color: var(--color-gray-400);
    margin-bottom: var(--spacing-4);
}

.upload-area h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-2);
}

.upload-area p {
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-2);
}

.upload-link {
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
}

.upload-link:hover {
    text-decoration: underline;
}

/* Document List */
.document-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.document-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    padding: var(--spacing-4);
    background: var(--color-gray-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.document-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.document-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-icon.primary {
    background: rgba(30, 64, 175, 0.1);
    color: var(--color-primary);
}

.document-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.document-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-info h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-1);
}

.document-meta {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    flex-wrap: wrap;
}

.document-actions {
    display: flex;
    gap: var(--spacing-2);
}

.btn-icon-small {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-icon-small:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
    color: var(--color-gray-900);
}

.btn-icon-small.text-danger {
    color: var(--color-danger);
}

.btn-icon-small.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--color-danger);
}

/* Notification Detail Cards */
.notification-detail-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-5);
}

.notification-detail-card.read {
    border-left-color: var(--color-gray-300);
    opacity: 0.8;
}

.notification-detail-header {
    display: flex;
    gap: var(--spacing-4);
    align-items: flex-start;
}

.notification-icon-large {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon-large.primary {
    background: rgba(30, 64, 175, 0.1);
    color: var(--color-primary);
}

.notification-icon-large.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.notification-icon-large.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.notification-icon-large.info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-info);
}

.notification-detail-info h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-1);
}

.notification-detail-body {
    padding-left: 64px;
}

.notification-detail-body p {
    color: var(--color-gray-700);
    line-height: 1.6;
    margin-bottom: var(--spacing-4);
}

.notification-detail-meta {
    background: var(--color-gray-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-4);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-4);
}

.meta-label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    font-weight: 500;
}

.meta-value {
    font-size: var(--font-size-sm);
    color: var(--color-gray-900);
    font-weight: 600;
}

.notification-detail-actions {
    display: flex;
    gap: var(--spacing-3);
    padding-left: 64px;
}

/* Responsive Adjustments for New Components */
@media (max-width: 768px) {
    .event-grid,
    .area-grid {
        grid-template-columns: 1fr;
    }
    
    .shift-main {
        flex-direction: column;
    }
    
    .shift-date-large {
        align-self: flex-start;
    }
    
    .notification-detail-body,
    .notification-detail-actions {
        padding-left: 0;
    }
    
    .event-summary-stats {
        flex-direction: column;
        gap: var(--spacing-3);
    }
    
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-summary {
        grid-template-columns: 1fr;
    }
    
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-2);
    }
    
    .area-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-1);
    }
    
    .document-item {
        flex-wrap: wrap;
    }
    
    .document-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ===========================
   Radio Groups & Conditional Fields
   =========================== */

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-wrapper input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-wrapper label {
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.conditional-field {
    margin-top: 16px;
    padding: 16px;
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
}

/* ===========================
   Checkbox Grid & Bordered Groups
   =========================== */

.checkbox-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.checkbox-group-bordered {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: #f9fafb;
}

@media (max-width: 768px) {
    .checkbox-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Empty State - Zentriert
   =================================== */

.empty-state {
    grid-column: 1 / -1; /* Gesamte Grid-Breite */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 400px;
}

.empty-state svg {
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: #6b7280;
    font-size: 1rem;
    max-width: 500px;
    line-height: 1.6;
}

/* Event-Grid Anpassung für zentrierte Darstellung */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

/* Wenn Empty-State alleine ist, volle Breite und zentriert */
.event-grid:has(.empty-state:only-child) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

/* Create-Card nach Empty-State soll auch zentriert sein */
.event-grid:has(.empty-state:first-child) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.event-grid:has(.empty-state:first-child) .event-card-create {
    max-width: 400px;
    width: 100%;
}

/* Event Management Buttons */
.event-management-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.event-mgmt-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    min-height: 80px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-align: center;
}

.event-mgmt-btn:hover:not(.disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-mgmt-btn.checkin-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
}

.event-mgmt-btn.checkin-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #059669;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.event-mgmt-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f9fafb;
    border-color: #e5e7eb;
}

.event-mgmt-btn svg {
    flex-shrink: 0;
}

/* Tabs */
.anmeldungs-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    padding: 0 2rem;
    background: #f9fafb;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #374151;
    background: rgba(59, 130, 246, 0.05);
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Fahrzeug-Registrierungen */
.vehicle-registration {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: white;
    transition: box-shadow 0.2s;
}

.vehicle-registration:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vehicle-registration-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
}

.vehicle-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.conflict-warning-icon {
    flex-shrink: 0;
}

.vehicle-icon {
    flex-shrink: 0;
    color: #3b82f6;
}

.vehicle-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vehicle-name {
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
}

.vehicle-plate {
    font-size: 0.95rem;
    color: #6b7280;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.vehicle-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

/* Vehicle Details */
.vehicle-registration-details {
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
    background: #f9fafb;
}

.vehicle-details-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vehicle-info-section {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.vehicle-info-section h6 {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: #374151;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item strong {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
}

.info-item span {
    color: #111827;
    font-size: 0.95rem;
}

.text-success {
    color: #059669 !important;
}

.text-warning {
    color: #d97706 !important;
}

/* Conflict Styling */
.other-shift-item.conflict {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.conflict-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #ef4444;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Detail Sections */
.detail-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h5 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #111827;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.detail-section p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .anmeldungs-tabs {
        padding: 0 1rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicle-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* User Profile Styles */
.user-profile-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-field strong {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-field span {
    color: #111827;
    font-size: 1rem;
}

.qualifications-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qualification-badge {
    padding: 0.5rem 1rem;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #E30613;
    color: white;
}

.btn-primary:hover {
    background: #991b1b;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-view-profile {
    background: #8b5cf6;
    color: white;
}

.btn-view-profile:hover {
    background: #7c3aed;
}

/* Anmeldungs-Modal */
.anmeldungs-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.anmeldungs-modal.active {
    opacity: 1;
    pointer-events: all;
}

.anmeldungs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.anmeldungs-modal-content {
    position: relative;
    width: 95vw;
    height: 90vh;
    max-width: 1400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.anmeldungs-modal.active .anmeldungs-modal-content {
    transform: scale(1);
}

.anmeldungs-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.anmeldungs-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #111827;
}

.modal-close-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
    border-radius: 6px;
}

.modal-close-btn:hover {
    color: #111827;
    background: #f3f4f6;
}

.anmeldungs-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Registrations Container */
.registrations-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Filter */
.registrations-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.search-input,
.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
}

.search-input {
    flex: 1;
}

.filter-select {
    min-width: 200px;
}

/* Day Section */
.registration-day {
    margin-bottom: 3rem;
}

.day-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3b82f6;
}

/* Area Section */
.registration-area {
    margin-bottom: 2rem;
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
}

.area-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

/* Shift Section */
.registration-shift {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shift-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.shift-info h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: #111827;
}

.shift-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.registration-count {
    background: #e0e7ff;
    color: #4338ca;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* User Registration */
.user-registration {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: white;
    transition: box-shadow 0.2s;
}

.user-registration:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-registration-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.minor-warning-icon {
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.user-qualification {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.user-qualification.qualification-verified {
    background: #d1fae5;
    color: #065f46;
}

.user-qualification.qualification-pending {
    background: #fef3c7;
    color: #92400e;
}

.user-birthdate {
    color: #6b7280;
}

.registration-actions-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.registration-status {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.registration-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.registration-status.status-accepted {
    background: #d1fae5;
    color: #065f46;
}

.registration-status.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.toggle-details-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.toggle-details-btn:hover {
    color: #111827;
}

.toggle-details-btn svg {
    transition: transform 0.2s;
}

/* User Details */
.user-registration-details {
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
    background: #f9fafb;
}

.user-details-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert svg {
    flex-shrink: 0;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
}

.alert p {
    margin: 0;
    font-size: 0.9rem;
}

/* Other Shifts */
.other-shifts-section {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.other-shifts-section h6 {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: #374151;
}

.other-shifts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.other-shift-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 0.9rem;
}

.shift-info-compact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.shift-info-compact strong {
    color: #111827;
}

.shift-info-compact span {
    color: #6b7280;
    font-size: 0.85rem;
}

.shift-time-compact {
    color: #6b7280;
    font-size: 0.85rem;
}

/* Registration Actions */
.registration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-notification {
    background: #dbeafe;
    color: #1e40af;
}

.btn-notification:hover {
    background: #bfdbfe;
}

.btn-verify {
    background: #fef3c7;
    color: #92400e;
}

.btn-verify:hover {
    background: #fde68a;
}

.btn-accept {
    background: #d1fae5;
    color: #065f46;
}

.btn-accept:hover {
    background: #a7f3d0;
}

.btn-reject {
    background: #fee2e2;
    color: #991b1b;
}

.btn-reject:hover {
    background: #fecaca;
}

.qualification-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #d1fae5;
    color: #065f46;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-state h3 {
    color: #111827;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.error-state {
    text-align: center;
    padding: 4rem 2rem;
}

.error-state h3 {
    color: #111827;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .anmeldungs-modal-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    .registrations-filters {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .user-registration-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .registration-actions {
        width: 100%;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
}

/**
 * Benutzerverwaltung & Grundeinstellungen Modals
 * Erweiterte Styles für Admin-Funktionen
 */

/* ===================================
   Großes Modal für Benutzerverwaltung
   =================================== */

.users-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.users-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.users-modal-container {
    background: white;
    border-radius: 16px;
    max-width: 95%;
    width: 1400px;
    max-height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.users-modal-overlay.active .users-modal-container {
    transform: scale(1);
}

.users-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.users-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.users-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.users-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.users-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* ===================================
   Suchfeld für Benutzertabelle
   =================================== */

.users-search-container {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.users-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
}

.users-search-input:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* ===================================
   Benutzertabelle
   =================================== */

.users-table-container {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: #f9fafb;
}

.users-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.users-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.15s;
    cursor: pointer;
}

.users-table tbody tr:hover {
    background: #f9fafb;
}

.users-table tbody tr.expanded {
    background: #f3f4f6;
}

.users-table td {
    padding: 1rem;
    font-size: 0.9375rem;
    color: #1f2937;
}

.users-table td.actions-cell {
    padding: 0.5rem;
}

/* ===================================
   Aktions-Buttons in Zeile
   =================================== */

.user-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.user-action-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-action-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.user-action-btn.notify {
    color: #3b82f6;
}

.user-action-btn.notify:hover {
    background: #eff6ff;
    color: #2563eb;
}

.user-action-btn.reset {
    color: #ef4444;
}

.user-action-btn.reset:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ===================================
   Erweiterbare Zeilen mit Logdaten
   =================================== */

.user-details-row {
    display: none;
    background: #f9fafb;
}

.user-details-row.active {
    display: table-row;
}

.user-details-cell {
    padding: 1.5rem 2rem;
}

.user-logs-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.user-logs-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-log-item {
    padding: 0.75rem;
    border-left: 3px solid #27ae60;
    background: #f9fafb;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.user-log-item:last-child {
    margin-bottom: 0;
}

.user-log-time {
    color: #6b7280;
    font-weight: 500;
    margin-right: 0.5rem;
}

.user-log-action {
    color: #1f2937;
}

.loading-logs {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* ===================================
   Durchsuchbares Dropdown
   =================================== */

.user-group-select-container {
    position: relative;
}

.user-group-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
}

.user-group-input:focus {
    outline: none;
    border-color: #27ae60;
}

.user-group-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-top: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
}

.user-group-dropdown.active {
    display: block;
}

.user-group-option {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}

.user-group-option:hover {
    background: #f3f4f6;
}

.user-group-option.create-new {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 500;
}

.user-group-actions {
    display: flex;
    gap: 0.25rem;
}

.group-edit-btn,
.group-delete-btn {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.15s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.group-edit-btn:hover {
    color: #2563eb;
    background: #eff6ff;
}

.group-delete-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* ===================================
   Benachrichtigungs-Modal (Klein)
   =================================== */

.notify-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.notify-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.notify-modal-container {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.notify-modal-overlay.active .notify-modal-container {
    transform: scale(1);
}

.notify-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.notify-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.notify-modal-body {
    padding: 1.5rem;
}

.notify-form-group {
    margin-bottom: 1rem;
}

.notify-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.notify-form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
}

.notify-form-textarea:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.notify-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ===================================
   Grundeinstellungen Modal mit Tabs
   =================================== */

.settings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.settings-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.settings-modal-container {
    background: white;
    border-radius: 16px;
    max-width: 95%;
    width: 1200px;
    max-height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.settings-modal-overlay.active .settings-modal-container {
    transform: scale(1);
}

.settings-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.settings-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.settings-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===================================
   Tab Navigation
   =================================== */

.settings-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 0 2rem;
}

.settings-tab {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.settings-tab:hover {
    color: #1f2937;
}

.settings-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: white;
}

/* ===================================
   Tab Content
   =================================== */

.settings-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

/* ===================================
   Erfolgs-/Fehler-Meldung
   =================================== */

.settings-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.settings-alert.show {
    opacity: 1;
}

.settings-alert.success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.settings-alert.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* ===================================
   Rich Text Editor (einfacher)
   =================================== */

.editor-toolbar {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.editor-btn {
    background: white;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.editor-btn:hover {
    background: #f3f4f6;
    border-color: #27ae60;
}

.editor-btn.active {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.editor-textarea {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0 0 8px 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
}

.editor-textarea:focus {
    outline: none;
    border-color: #27ae60;
}

/* ===================================
   Organisationen/Qualifikationen Tabelle
   =================================== */

.settings-table-container {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    margin-top: 1rem;
}

.settings-table {
    width: 100%;
    border-collapse: collapse;
}

.settings-table thead {
    background: #f9fafb;
}

.settings-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.settings-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.15s;
}

.settings-table tbody tr:hover {
    background: #f9fafb;
}

.settings-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: #1f2937;
}

.settings-table-actions {
    display: flex;
    gap: 0.5rem;
}

.settings-action-btn {
    background: none;
    border: none;
    padding: 0.375rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.15s;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-action-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.settings-action-btn.edit:hover {
    background: #eff6ff;
    color: #2563eb;
}

.settings-action-btn.delete:hover {
    background: #fee2e2;
    color: #ef4444;
}

.settings-add-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.settings-add-btn:hover {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* ===================================
   Inline-Edit für Organisationen
   =================================== */

.inline-edit-input {
    width: 100%;
    padding: 0.375rem 0.5rem;
    border: 1px solid #27ae60;
    border-radius: 6px;
    font-size: 0.9375rem;
}

.inline-edit-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* ===================================
   Responsive Anpassungen
   =================================== */

@media (max-width: 768px) {
    .users-modal-container,
    .settings-modal-container {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .users-table,
    .settings-table {
        font-size: 0.875rem;
    }

    .users-table th,
    .users-table td,
    .settings-table th,
    .settings-table td {
        padding: 0.5rem;
    }

    .settings-tabs {
        overflow-x: auto;
        padding: 0 1rem;
    }

    .settings-tab {
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }
}

/* ============================================
   INLINE ADD/EDIT FORMS
   ============================================ */

/* Inline Add Container */
.settings-add-container {
    margin-bottom: 1.5rem;
}

.settings-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-add-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.settings-add-form {
    display: none;
    gap: 0.5rem;
    align-items: center;
    animation: fadeInSlide 0.2s ease-out;
}

.settings-add-form-qual {
    display: none;
    gap: 0.5rem;
    align-items: center;
    animation: fadeInSlide 0.2s ease-out;
    flex-wrap: wrap;
}

.settings-add-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    min-width: 200px;
}

.settings-add-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-add-select {
    padding: 0.75rem 1rem;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
}

.settings-add-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-add-confirm {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.settings-add-confirm:hover {
    background: #059669;
}

.settings-add-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-add-cancel:hover {
    background: #dc2626;
}

/* Inline Edit */
.settings-inline-edit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-item-name {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.settings-item-name:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.settings-edit-form {
    display: none;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
    animation: fadeInSlide 0.2s ease-out;
}

.settings-edit-form-qual {
    display: none;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
    animation: fadeInSlide 0.2s ease-out;
    flex-wrap: wrap;
}

.settings-edit-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
    min-width: 150px;
}

.settings-edit-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-edit-select {
    padding: 0.5rem 0.75rem;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 150px;
}

.settings-edit-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-edit-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-edit-confirm:hover {
    background: #059669;
}

.settings-edit-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-edit-cancel:hover {
    background: #dc2626;
}

/* Kategorie-Badge */
.qualification-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Animation */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .settings-add-form,
    .settings-add-form-qual,
    .settings-edit-form,
    .settings-edit-form-qual {
        flex-direction: column;
        align-items: stretch;
    }
    
    .settings-add-input,
    .settings-edit-input,
    .settings-add-select,
    .settings-edit-select {
        width: 100%;
        min-width: unset;
    }
    
    .settings-add-confirm {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   TOGGLE SWITCH STYLING
   ============================================ */

/* Toggle Switch Container */
.settings-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.settings-toggle-label:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Toggle Switch */
.settings-toggle-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 22px;
    background: #e5e7eb;
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.settings-toggle-label input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.settings-toggle-label input[type="checkbox"]:checked {
    background: #10b981;
}

.settings-toggle-label input[type="checkbox"]:checked::before {
    left: 20px;
}

/* Aktiver Toggle Label */
.settings-toggle-label:has(input[type="checkbox"]:checked) {
    background: #ecfdf5;
    border-color: #86efac;
    color: #047857;
}

/* Fokus */
.settings-toggle-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Disabled State */
.settings-toggle-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.settings-toggle-label:has(input[type="checkbox"]:disabled) {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============================================
   ORGANISATIONS FORMULAR LAYOUT
   ============================================ */

/* Add Form für Organisationen */
.settings-add-form-org {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    flex-wrap: wrap;
}

/* Edit Form für Organisationen */
.settings-edit-form-org {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    flex-wrap: wrap;
}

/* Input in Org-Formularen */
.settings-add-form-org .settings-add-input,
.settings-edit-form-org .settings-edit-input {
    flex: 1;
    min-width: 200px;
}

/* Toggle Gruppe */
.settings-add-form-org .settings-toggle-label,
.settings-edit-form-org .settings-toggle-label {
    flex: 0 0 auto;
}

/* ============================================
   TABELLEN ICONS (Haken/Kreuz)
   ============================================ */

/* Container für Check/Cross Icons in Tabelle */
.org-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.org-check-icon.checked {
    background: #ecfdf5;
    color: #10b981;
}

.org-check-icon.unchecked {
    background: #fef2f2;
    color: #ef4444;
}

.org-check-icon:hover {
    transform: scale(1.1);
}

/* Tooltip für Icons */
.org-check-icon[title] {
    cursor: help;
}

/* ============================================
   RESPONSIVE ANPASSUNGEN
   ============================================ */

@media (max-width: 1024px) {
    .settings-add-form-org,
    .settings-edit-form-org {
        flex-direction: column;
        align-items: stretch;
    }
    
    .settings-add-form-org .settings-add-input,
    .settings-edit-form-org .settings-edit-input {
        width: 100%;
    }
    
    .settings-add-form-org .settings-toggle-label,
    .settings-edit-form-org .settings-toggle-label {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .settings-toggle-label {
        padding: 0.25rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .settings-toggle-label input[type="checkbox"] {
        width: 36px;
        height: 20px;
    }
    
    .settings-toggle-label input[type="checkbox"]::before {
        width: 16px;
        height: 16px;
    }
    
    .settings-toggle-label input[type="checkbox"]:checked::before {
        left: 18px;
    }
    
    .org-check-icon {
        width: 24px;
        height: 24px;
    }
    
    .org-check-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   FLIP-BENACHRICHTIGUNGEN
   Füge diesen Code am Ende von style.css hinzu
   ============================================ */

/* Flip Wrapper */
.notification-flip-wrapper {
    perspective: 1200px;
    margin-bottom: 0.75rem;
}

/* Flip Card */
.notification-flip-card {
    position: relative;
    width: 100%;
    min-height: 90px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.notification-flip-card.flipped {
    transform: rotateY(180deg);
}

.notification-flip-card.mark-as-read-success {
    animation: successFadeOut 0.6s ease-out forwards;
}

/* Animationen */
@keyframes successFadeOut {
    0% {
        opacity: 1;
        transform: rotateY(180deg) scale(1);
    }
    50% {
        transform: rotateY(180deg) scale(1.05);
    }
    100% {
        opacity: 0;
        transform: rotateY(180deg) scale(0.95);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3);
    }
}

@keyframes checkPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

/* Vorder- und Rückseite */
.notification-flip-front,
.notification-flip-back {
    position: absolute;
    width: 100%;
    min-height: 90px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

/* Vorderseite */
.notification-flip-front {
    background: var(--color-surface);
    border-left: 3px solid var(--color-primary);
    gap: 0.875rem;
    transition: all 0.2s;
    transform: rotateY(0deg);
}

.notification-flip-card.unread .notification-flip-front {
    background: linear-gradient(to right, var(--color-gray-50) 0%, var(--color-surface) 100%);
    border-left-width: 4px;
    border-left-color: var(--color-primary-light);
}

.notification-flip-card:hover .notification-flip-front {
    box-shadow: var(--shadow-md);
    transform: translateX(3px) rotateY(0deg);
}

/* Icon Badge */
.notification-icon-badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.notification-flip-card:hover .notification-icon-badge {
    transform: scale(1.1);
}

/* Icon Typ-Farben */
.notification-icon-badge.type-ADMIN {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
}

.notification-icon-badge.type-INFO {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-info);
}

.notification-icon-badge.type-WARNING {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.notification-icon-badge.type-SUCCESS {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.notification-icon-badge.type-ERROR {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

/* Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-900);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.notification-content p {
    margin: 0 0 0.375rem 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-time {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
    font-weight: 500;
}

/* Ungelesen Punkt */
.notification-unread-dot {
    width: 8px;
    height: 8px;
    background: var(--color-danger);
    border-radius: 50%;
    margin-left: auto;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 var(--color-danger);
}

/* Rückseite */
.notification-flip-back {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    transform: rotateY(180deg);
    justify-content: center;
    align-items: center;
    border: none;
    box-shadow: var(--shadow-lg);
}

.flip-back-content {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.flip-back-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkPulse 1.5s ease-in-out infinite;
}

.flip-back-content h3 {
    margin: 0;
    font-size: var(--font-size-base);
    font-weight: 600;
    letter-spacing: 0.025em;
}

.flip-back-content p {
    margin: 0;
    font-size: var(--font-size-sm);
    opacity: 0.95;
    font-weight: 500;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .notification-flip-card {
        min-height: 100px;
    }
    
    .notification-flip-front,
    .notification-flip-back {
        min-height: 100px;
    }
    
    .notification-content p {
        -webkit-line-clamp: 3;
    }
    
    .notification-icon-badge {
        width: 40px;
        height: 40px;
    }
    
    .notification-icon-badge svg {
        width: 20px;
        height: 20px;
    }
    
    .flip-back-icon {
        width: 48px;
        height: 48px;
    }
    
    .flip-back-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .flip-back-content h3 {
        font-size: var(--font-size-sm);
    }
    
    .flip-back-content p {
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 480px) {
    .notification-flip-wrapper {
        margin-bottom: 0.5rem;
    }
    
    .notification-flip-front,
    .notification-flip-back {
        padding: 0.75rem;
    }
    
    .notification-content h4 {
        font-size: var(--font-size-xs);
    }
    
    .notification-content p {
        font-size: var(--font-size-xs);
    }
}

/* Notification Flip Card - Text Fix */
.notification-flip-back {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 120px; /* Mindesthöhe für bessere Lesbarkeit */
}

.flip-back-content {
    text-align: center;
    color: white;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.flip-back-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.notification-flip-back h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0.75rem 0 0.5rem;
    line-height: 1.4;
    color: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.notification-flip-back p {
    font-size: 0.9375rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
    color: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Shake Animation für Fehler */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Notifications Grid Layout */
.notifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Notification Error Card */
.notification-error-card {
    background: #fee;
    border: 1px solid #fcc;
    border-left: 4px solid #f00;
    border-radius: 8px;
    padding: 1rem;
}

.notification-error-card strong {
    display: block;
    color: #c00;
    margin-bottom: 0.5rem;
}

.notification-error-card p {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

/* Notification Message - volle Länge */
.notification-message {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: none !important;
    line-height: 1.5;
}

/* Erledigt Badge */
.notification-done-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Flip Card Anpassungen für Notifications-Seite */
.notifications-grid .notification-flip-card.read {
    opacity: 0.7;
    cursor: default;
}

.notifications-grid .notification-flip-card.read:hover {
    transform: none;
}

/* Success Animation */
@keyframes mark-as-read-success {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        background: #10b981;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.mark-as-read-success {
    animation: mark-as-read-success 0.6s ease-out forwards;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .notifications-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Empty State */
.empty-state svg {
    display: block;
}

/**
 * Anmeldungsverwaltung - Styles
 * Hierarchische Darstellung mit Lazy Loading
 */

/* ===== MODAL BASIS ===== */
.anmeldungs-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.anmeldungs-modal.active {
    opacity: 1;
    visibility: visible;
}

.anmeldungs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.anmeldungs-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.anmeldungs-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.anmeldungs-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.modal-close-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
    border-radius: 8px;
}

.modal-close-btn:hover {
    color: #111827;
    background: #f3f4f6;
}

/* ===== TABS ===== */
.anmeldungs-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #111827;
    background: #f9fafb;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-btn svg {
    flex-shrink: 0;
}

/* ===== SUCHE UND FILTER ===== */
.anmeldungs-search {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    min-width: 180px;
}

/* ===== MODAL BODY ===== */
.anmeldungs-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== HIERARCHISCHE STRUKTUR ===== */
.registrations-hierarchy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Datum-Gruppe */
.date-group {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    cursor: pointer;
    transition: background 0.2s;
}

.date-header:hover {
    background: #f3f4f6;
}

.date-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.group-count {
    font-size: 0.875rem;
    color: #6b7280;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

.date-content {
    padding: 1rem;
}

/* Bereich-Gruppe */
.areas-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.area-group {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.area-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: #fafbfc;
    cursor: pointer;
    transition: background 0.2s;
}

.area-header:hover {
    background: #f3f4f6;
}

.area-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.shifts-count {
    font-size: 0.8125rem;
    color: #6b7280;
    background: white;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
}

.area-content {
    padding: 0.875rem;
}

/* Schicht-Gruppe */
.shifts-container {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.shift-group {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.shift-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.shift-header:hover {
    background: #f3f4f6;
}

.shift-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shift-info h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
}

.shift-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.registration-count {
    font-size: 0.8125rem;
    color: #6b7280;
    background: white;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
}

.shift-content {
    border-top: 1px solid #e5e7eb;
    background: white;
}

/* Expand Icons */
.expand-icon {
    flex-shrink: 0;
    transition: transform 0.2s;
    transform: rotate(-90deg);
}

/* ===== PERSONENANMELDUNGEN ===== */
.registrations-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
}

.personal-registration {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.personal-registration.rejected {
    opacity: 0.6;
    order: 999;
}

.personal-registration:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.registration-row {
    display: grid;
    grid-template-columns: auto 200px 250px 120px 150px auto;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.registration-row:hover {
    background: #f9fafb;
}

/* Spalten */
.reg-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-accepted {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.reg-qualification {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qual-verified {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: bold;
}

.qual-unverified {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: bold;
}

.qual-name {
    font-size: 0.875rem;
    color: #374151;
}

.reg-name strong {
    font-size: 0.9375rem;
    color: #111827;
}

.reg-birthdate {
    font-size: 0.875rem;
    color: #6b7280;
}

.reg-warnings {
    display: flex;
    gap: 0.5rem;
}

.warning-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.warning-badge.warning-minor {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.warning-badge.warning-rest-time {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.reg-expand {
    display: flex;
    justify-content: flex-end;
}

/* ===== ANMELDUNGSDETAILS ===== */
.registration-details {
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
    padding: 1rem;
}

.registration-details-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Alerts */
.alert {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.alert svg {
    flex-shrink: 0;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fbbf24;
}

.alert-warning strong {
    color: #92400e;
}

.alert-warning p {
    margin: 0.25rem 0 0 0;
    color: #78350f;
    font-size: 0.875rem;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #ef4444;
}

.alert-danger strong {
    color: #991b1b;
}

.alert-danger p {
    margin: 0.25rem 0 0 0;
    color: #7f1d1d;
    font-size: 0.875rem;
}

/* Weitere Bewerbungen */
.other-registrations-section {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.other-registrations-section h6 {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.other-registrations-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.other-registration-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.other-registration-item.has-conflict {
    background: #fef2f2;
    border-color: #fecaca;
}

.other-reg-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.other-reg-info strong {
    font-size: 0.875rem;
    color: #111827;
}

.other-reg-info span {
    font-size: 0.8125rem;
    color: #6b7280;
}

.other-reg-time {
    font-size: 0.8125rem;
    color: #6b7280;
}

.conflict-badge {
    padding: 0.25rem 0.5rem;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.other-reg-actions {
    display: flex;
    gap: 0.5rem;
}

/* Aktions-Buttons */
.registration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.action-btn svg {
    flex-shrink: 0;
}

.action-btn.btn-accept {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.action-btn.btn-accept:hover {
    background: #059669;
    border-color: #059669;
}

.action-btn.btn-reject {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.action-btn.btn-reject:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.action-btn.btn-qual-approve {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.action-btn.btn-qual-approve:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* ===== FAHRZEUGANMELDUNGEN ===== */
.vehicle-registrations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
}

.vehicle-registration {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s;
}

.vehicle-registration:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.vehicle-row {
    display: grid;
    grid-template-columns: auto 200px 150px 300px 250px auto;
    align-items: center;
    gap: 1rem;
}

.vehicle-status {
    display: flex;
    align-items: center;
}

.vehicle-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vehicle-type strong {
    font-size: 0.9375rem;
    color: #111827;
}

.vehicle-plate {
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    border-radius: 4px;
    text-align: center;
}

.vehicle-properties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.badge {
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.vehicle-drivers {
    font-size: 0.875rem;
    color: #374151;
}

.text-muted {
    color: #9ca3af;
}

.vehicle-actions {
    display: flex;
    gap: 0.375rem;
    justify-content: flex-end;
}

.btn-small {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-small.btn-accept {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.btn-small.btn-accept:hover {
    background: #059669;
}

.btn-small.btn-reject {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.btn-small.btn-reject:hover {
    background: #dc2626;
}

.btn-small.btn-primary {
    background: #E30613;
    color: white;
    border-color: #3b82f6;
}

.btn-small.btn-primary:hover {
    background: #ef4444;
}

.btn-small.btn-notification {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

.btn-small.btn-notification:hover {
    background: #d97706;
}

.btn-small.btn-note {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

.btn-small.btn-note:hover {
    background: #7c3aed;
}

.empty-state,
.empty-state-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.empty-state-small {
    padding: 1.5rem;
}

.empty-state h3 {
    margin: 1rem 0 0.5rem 0;
    color: #374151;
    font-size: 1.125rem;
}

.empty-state p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.error-state,
.error-state-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.error-state-small {
    padding: 1.5rem;
}

.error-state h3 {
    margin: 1rem 0 0.5rem 0;
    color: #ef4444;
    font-size: 1.125rem;
}

.error-state p {
    margin: 0 0 1rem 0;
    color: #991b1b;
    font-size: 0.875rem;
}

/* ===== CUSTOM DIALOGS ===== */
.custom-dialog-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-dialog-modal.active {
    opacity: 1;
    visibility: visible;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .registration-row {
        grid-template-columns: auto 180px 220px 110px auto auto;
        gap: 0.75rem;
        font-size: 0.875rem;
    }
    
    .vehicle-row {
        grid-template-columns: auto 180px 130px 250px auto auto;
        gap: 0.75rem;
    }
}

@media (max-width: 1200px) {
    .registration-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .vehicle-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .reg-status,
    .reg-qualification,
    .reg-name,
    .reg-birthdate,
    .reg-warnings {
        border-bottom: 1px solid #f3f4f6;
        padding-bottom: 0.5rem;
    }
    
    .reg-expand {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .anmeldungs-modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .anmeldungs-modal-header,
    .anmeldungs-search,
    .anmeldungs-modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .anmeldungs-search {
        flex-direction: column;
    }
    
    .filter-select {
        min-width: auto;
    }
    
    .registration-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .vehicle-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/**
 * Styling für Berechtigungen-Tab
 * Ergänzung zu den bestehenden User Management Styles
 */

/* ============================================
   BERECHTIGUNGEN TAB
   ============================================ */

.permissions-info-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: #1e40af;
    font-size: 0.875rem;
}

.permissions-info-banner svg {
    flex-shrink: 0;
    color: #3b82f6;
}

.permissions-groups-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Gruppen-Card */
.permissions-group-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.permissions-group-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.permissions-group-card.expanded {
    border-color: #3b82f6;
}

.permissions-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.permissions-group-header:hover {
    background-color: #f9fafb;
}

.permissions-group-card.expanded .permissions-group-header {
    background-color: #f0f9ff;
    border-bottom: 1px solid #e0f2fe;
}

.permissions-group-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.permissions-group-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
}

.permissions-group-count {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.permissions-group-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.permissions-group-toggle:hover {
    background-color: #e5e7eb;
}

.permissions-group-card.expanded .permissions-group-toggle {
    background-color: #3b82f6;
}

.permissions-group-card.expanded .permissions-group-toggle svg {
    color: white;
    transform: rotate(180deg);
}

.toggle-icon {
    transition: transform 0.2s ease;
}

.permissions-group-body {
    display: none;
    padding: 1.5rem;
    background: #f9fafb;
}

/* Loading States */
.permissions-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
    color: #6b7280;
}

/* Berechtigungen Liste */
.permissions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.permissions-locked-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    margin-bottom: 1rem;
    color: #92400e;
    font-size: 0.875rem;
}

.permissions-locked-notice svg {
    flex-shrink: 0;
    color: #f59e0b;
}

/* Permission Item */
.permission-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.permission-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.permission-item.active {
    background: #f0fdf4;
    border-color: #86efac;
}

.permission-item.updating {
    opacity: 0.6;
    pointer-events: none;
}

.permission-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.permission-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.permission-key {
    font-size: 0.75rem;
    color: #6b7280;
    font-family: 'Courier New', monospace;
}

/* Permission Checkbox */
.permission-toggle {
    display: flex;
    align-items: center;
}

.permission-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.permission-checkbox.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.permission-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.permission-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.permission-checkmark svg {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
    color: white;
}

.permission-checkbox:hover .permission-checkmark {
    border-color: #9ca3af;
    background: #e5e7eb;
}

.permission-checkbox input:checked ~ .permission-checkmark {
    background: #10b981;
    border-color: #10b981;
}

.permission-checkbox input:checked ~ .permission-checkmark svg {
    opacity: 1;
    transform: scale(1);
}

.permission-checkbox.disabled:hover .permission-checkmark {
    border-color: #d1d5db;
    background: #f3f4f6;
}

/* Empty State */
.permissions-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: #6b7280;
}

.permissions-empty svg {
    margin-bottom: 1rem;
    color: #9ca3af;
}

.permissions-empty p {
    margin: 0;
    font-size: 0.875rem;
}

/* Error State */
.permissions-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
    text-align: center;
    color: #dc2626;
}

.permissions-error svg {
    color: #ef4444;
}

.btn-retry {
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-retry:hover {
    background: #2563eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .permissions-group-header {
        padding: 1rem;
    }
    
    .permissions-group-body {
        padding: 1rem;
    }
    
    .permission-item {
        padding: 0.75rem;
    }
    
    .permission-checkmark {
        width: 36px;
        height: 36px;
    }
}

/* Animation für Permission Items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.permission-item {
    animation: slideIn 0.2s ease-out;
}

.permission-item:nth-child(1) { animation-delay: 0.05s; }
.permission-item:nth-child(2) { animation-delay: 0.1s; }
.permission-item:nth-child(3) { animation-delay: 0.15s; }
.permission-item:nth-child(4) { animation-delay: 0.2s; }
.permission-item:nth-child(5) { animation-delay: 0.25s; }


/* ============================================
   BERECHTIGUNGEN TAB - CRUD MATRIX
   ============================================ */

.permissions-crud-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.permissions-crud-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.875rem;
}

.permissions-crud-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.permissions-crud-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.permissions-crud-table th.perm-name-col {
    min-width: 280px;
}

.permissions-crud-table th.perm-crud-col {
    width: 120px;
    text-align: center;
}

.perm-crud-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.perm-crud-header svg {
    color: #6b7280;
}

.perm-crud-row {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}

.perm-crud-row:hover {
    background-color: #f9fafb;
}

.perm-crud-row.has-permission {
    background-color: #f0fdf4;
}

.perm-crud-row.has-permission:hover {
    background-color: #dcfce7;
}

.perm-crud-row.updating {
    opacity: 0.6;
    pointer-events: none;
}

.perm-name-cell {
    padding: 1rem;
}

.perm-name-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.perm-title {
    font-weight: 500;
    color: #111827;
    font-size: 0.875rem;
}

.perm-key {
    font-size: 0.75rem;
    color: #6b7280;
    font-family: 'Monaco', 'Courier New', monospace;
}

.perm-crud-cell {
    padding: 0.75rem 1rem;
    text-align: center;
    vertical-align: middle;
}

.perm-crud-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.perm-crud-checkbox.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.perm-crud-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.perm-crud-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: white;
    transition: all 0.15s ease;
}

.perm-crud-checkmark svg {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.15s ease;
}

.perm-crud-checkbox input[type="checkbox"]:checked + .perm-crud-checkmark {
    background: #10b981;
    border-color: #10b981;
}

.perm-crud-checkbox input[type="checkbox"]:checked + .perm-crud-checkmark svg {
    opacity: 1;
    transform: scale(1);
    stroke: white;
}

.perm-crud-checkbox:hover .perm-crud-checkmark {
    border-color: #9ca3af;
}

.perm-crud-checkbox input[type="checkbox"]:checked:hover + .perm-crud-checkmark {
    background: #059669;
    border-color: #059669;
}

.perm-crud-checkbox.disabled .perm-crud-checkmark {
    background: #f3f4f6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
    .permissions-crud-table-wrapper {
        overflow-x: scroll;
    }
    
    .permissions-crud-table {
        min-width: 700px;
    }
}

/* Loading State */
.permissions-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

/* ============================================
   USER LOGS - ENHANCED WITH SEARCH
   ============================================ */

/* Log Header mit Suchfeld */
.user-logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.user-logs-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #6b7280;
}

.user-logs-title svg {
    flex-shrink: 0;
}

/* Suchfeld */
.user-logs-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.user-logs-search-input {
    width: 100%;
    padding: 6px 12px 6px 32px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.user-logs-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.user-logs-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* Log Liste */
.user-logs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Einzelner Log-Eintrag */
.user-log-item {
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.user-log-item:hover {
    background: #f3f4f6;
    transform: translateX(2px);
}

.user-log-item.success {
    border-left-color: #10b981;
}

.user-log-item.error {
    border-left-color: #ef4444;
    background-color: #fef2f2;
}

.user-log-item.error:hover {
    background-color: #fee2e2;
}

/* Haupt-Info Zeile */
.user-log-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-log-time {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    min-width: 70px;
    flex-shrink: 0;
}

.user-log-action {
    font-size: 13px;
    color: #374151;
    flex: 1;
}

.user-log-state {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    color: #ef4444;
    background-color: #fee2e2;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Detail-Info Zeile */
.user-log-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e5e7eb;
}

.user-log-detail {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6b7280;
}

.user-log-detail svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Klickbare User-Links */
.user-log-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
}

.user-log-link:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.user-log-link:active {
    color: #1d4ed8;
}

/* Scrollbar Styling */
.user-logs-list::-webkit-scrollbar {
    width: 6px;
}

.user-logs-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.user-logs-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.user-logs-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Loading State */
.loading-logs {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .user-logs-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .user-logs-search {
        max-width: 100%;
    }
    
    .user-logs-list {
        max-height: 300px;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .user-log-item {
        background: #1f2937;
        color: #e5e7eb;
    }
    
    .user-log-item:hover {
        background: #374151;
    }
    
    .user-log-time,
    .user-log-detail {
        color: #9ca3af;
    }
    
    .user-log-action {
        color: #e5e7eb;
    }
    
    .user-logs-search-input {
        background: #1f2937;
        border-color: #374151;
        color: #e5e7eb;
    }
    
    .user-logs-search-input:focus {
        border-color: #3b82f6;
    }
}

/* E-Mail-Tab Styles */

.email-config-container {
    padding: 1.5rem;
}

.email-config-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.email-template-section {
    background: #ffffff;
    padding: 2rem;
}

.email-config-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.email-config-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.email-config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.email-config-input {
    padding: 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.email-config-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.email-config-readonly {
    pointer-events: none;
}

.email-config-readonly .email-config-value {
    padding: 0.625rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.email-config-readonly .email-config-value-error {
    color: #dc2626;
}

.email-config-status {
    padding: 0.625rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.email-config-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    background: #e5e7eb;
    color: #6b7280;
}

.email-config-status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.email-config-status-badge.active::before {
    content: "●";
    margin-right: 0.5rem;
    color: #10b981;
}

/* HTML-Editor Styles */
.html-editor {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    min-height: 400px;
}

.editor-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #1e40af;
    font-size: 0.875rem;
    line-height: 1.5;
}

.editor-info-banner svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Anpassungen für Settings-Modal Button */
#settingsModal .btn-primary {
    padding: 0.625rem 1.25rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#settingsModal .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#settingsModal .btn-primary:active {
    transform: translateY(0);
}

/* Shortcode Spalte Style */
.qualification-shortcode {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
}

#shift-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

#shift-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
}

.status-open {
    background: #d1fae5;
    color: #065f46;
}

.status-closed {
    background: #fee2e2;
    color: #991b1b;
}

/* Shift-Karte */
.shift-detail-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.2s ease;
}

.shift-detail-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Kalenderblatt */
.shift-date-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #f3f3f3;
    border-radius: 12px;
    color: white;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.date-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.date-month {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.date-year {
    font-size: 0.625rem;
    opacity: 0.9;
}

/* Shift-Content */
.shift-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.shift-content p {
    margin: 0 0 1rem 0;
    color: #6b7280;
    line-height: 1.6;
}

/* Shift-Aktionen */
.shift-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Manager-Mode */
.manager-mode-active {
    border: 2px solid #f59e0b;
    background: #fffbeb;
}

.manager-mode-active:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.shift-detail-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.shift-detail-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shift-detail-action-btn:hover {
    background: #f3f4f6;
    transform: scale(1.05);
}

.shift-detail-action-btn.edit:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.shift-detail-action-btn.delete:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Modal-Footer Styles */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* Form-Input Styles */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

/* Qualification Requirement Item */
.qualification-requirement-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.qualification-requirement-item:hover {
    background: #f3f4f6;
}

/* Responsive */
@media (max-width: 768px) {
    .shift-main {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .shift-date-large {
        width: 60px;
        height: 60px;
    }
    
    .date-day {
        font-size: 1.5rem;
    }
    
    .shift-actions {
        flex-direction: column;
    }
    
    .shift-detail-actions {
        position: static;
        justify-content: flex-end;
        margin-bottom: 1rem;
    }
}

/* Text-Utilities */
.text-muted {
    color: #6b7280;
}

/* Empty-State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.empty-state svg {
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.125rem;
    margin: 0;
}

/* Qualifikations-Badges für Schichten (wie bei Bereichen) */
.shift-qualifications {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.shift-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.shift-qual-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shift-qual-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.shift-qual-badge.owned {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.shift-qual-badge.owned::before {
    content: '✓ ';
    margin-right: 0.25rem;
    font-weight: 700;
}

/* Filter-Anzeige für Manager */
.shift-filters {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
}

.shift-filter-group {
    margin-bottom: 0.5rem;
}

.shift-filter-group:last-child {
    margin-bottom: 0;
}

.shift-filter-group strong {
    font-size: 0.875rem;
    color: #92400e;
}

.shift-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.25rem;
}

.shift-filter-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.shift-filter-badge.qual {
    background: #dbeafe;
    color: #1e40af;
}

.shift-filter-badge.group {
    background: #fef3c7;
    color: #92400e;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .shift-qual-list,
    .shift-filter-list {
        flex-direction: column;
    }
    
    .shift-qual-badge,
    .shift-filter-badge {
        width: 100%;
        justify-content: center;
    }
}

/**
 * Anmeldungsverwaltung - Styles für erweiterte Version
 * 
 * @version 2.0.0
 * @author DRK Kaltenkirchen
 */

/* ============================================================================
   MODAL BASIS
   ============================================================================ */

.anmeldungs-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.anmeldungs-modal.active {
    opacity: 1;
    visibility: visible;
}

.anmeldungs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.anmeldungs-modal-content {
    position: relative;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    margin: 5vh auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.anmeldungs-modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.anmeldungs-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.modal-close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #e5e7eb;
    color: #111827;
    transform: rotate(90deg);
}

/* ============================================================================
   TABS
   ============================================================================ */

.anmeldungs-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 32px 0;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #cc0000;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.tab-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.tab-btn.active {
    background: #ffffff;
    color: #cc0000;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================================================
   TAB CONTENT
   ============================================================================ */

.anmeldungs-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    background: #f9fafb;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================================================
   LOADING & ERROR STATES
   ============================================================================ */

.error-state,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.error-state svg,
.empty-state svg {
    color: #9ca3af;
    margin-bottom: 16px;
}

.error-state h3,
.empty-state h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.error-state p,
.empty-state p {
    margin: 0 0 24px;
    font-size: 14px;
    color: #6b7280;
    max-width: 400px;
}

.empty-text {
    display: block;
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
}

.error-text {
    color: #dc2626;
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

/* ============================================================================
   FILTERS
   ============================================================================ */

.registration-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.filter-select,
.search-input,
.form-control {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.filter-select:focus,
.search-input:focus,
.form-control:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.search-input {
    min-width: 250px;
}

/* ============================================================================
   REGISTRATION ITEMS (PERSONEN & FAHRZEUGE)
   ============================================================================ */

.registrations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.registration-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.registration-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.registration-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
}

.registration-header:hover {
    background: #f9fafb;
}

.user-info,
.vehicle-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expand-icon {
    transition: transform 0.2s ease;
    color: #9ca3af;
}

.registration-item.expanded .expand-icon {
    transform: rotate(180deg);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.vehicle-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-details,
.vehicle-details {
    flex: 1;
}

.user-details h4,
.vehicle-details h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.user-email,
.vehicle-type {
    font-size: 13px;
    color: #6b7280;
}

.registration-stats,
.vehicle-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-badge,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

/* ============================================================================
   REGISTRATION DETAILS
   ============================================================================ */

.registration-details {
    border-top: 1px solid #e5e7eb;
    padding: 20px;
    background: #f9fafb;
}

.registration-detail-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.qual-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.qual-status.status-danger {
    background: #fef2f2;
    color: #dc2626;
}

.qual-status.status-warning {
    background: #fef3c7;
    color: #d97706;
}

.qual-status.status-success {
    background: #d1fae5;
    color: #065f46;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.user-qualifications,
.user-shifts-list,
.vehicle-shifts-list,
.vehicle-history {
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.user-qualifications h5,
.user-shifts-list h5,
.vehicle-shifts-list h5,
.vehicle-history h5 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.qual-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qual-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================================================
   SHIFT REGISTRATION ITEM
   ============================================================================ */

.shift-registration-item {
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.shift-registration-item:last-child {
    margin-bottom: 0;
}

.shift-info h6 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.shift-time,
.shift-area {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    font-size: 13px;
    color: #6b7280;
}

.warning-box {
    margin: 12px 0;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.age-warning {
    background: #fef3c7;
    color: #d97706;
    border-left: 3px solid #f59e0b;
}

.rest-warning {
    background: #fef2f2;
    color: #dc2626;
    border-left: 3px solid #ef4444;
}

.shift-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.detail-actions,
.supervisor-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 16px;
}

.supervisor-actions {
    padding: 16px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
}

.supervisor-actions h5 {
    width: 100%;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #cc0000;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background: #b30000;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

.btn-success {
    background: #10b981;
    color: #ffffff;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-warning {
    background: #f59e0b;
    color: #ffffff;
}

.btn-warning:hover:not(:disabled) {
    background: #d97706;
}

.btn-info {
    background: #3b82f6;
    color: #ffffff;
}

.btn-info:hover:not(:disabled) {
    background: #2563eb;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ============================================================================
   SHIFTS LIST (TAB 3)
   ============================================================================ */

.shifts-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.shifts-list-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.shifts-by-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.area-shifts-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.area-shifts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.area-shifts-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.shifts-count {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 6px;
}

.shifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.shift-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.shift-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cc0000;
}

.shift-card-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shift-card-header h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.shift-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.shift-status.status-0 {
    background: #dbeafe;
    color: #1e40af;
}

.shift-status.status-1 {
    background: #d1fae5;
    color: #065f46;
}

.shift-status.status-2 {
    background: #f3f4f6;
    color: #6b7280;
}

.shift-status.status-3 {
    background: #fef2f2;
    color: #dc2626;
}

.shift-card-body {
    padding: 16px;
}

.shift-requirements {
    margin-top: 12px;
}

.shift-requirements h6 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.qual-stat-item {
    margin-bottom: 12px;
}

.qual-stat-item:last-child {
    margin-bottom: 0;
}

.qual-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.qual-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.qual-count {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.qual-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #cc0000;
    transition: width 0.3s ease;
}

.qual-progress.progress-complete .progress-bar {
    background: #10b981;
}

.qual-progress.progress-half .progress-bar {
    background: #f59e0b;
}

.qual-progress.progress-low .progress-bar {
    background: #ef4444;
}

.shift-stats {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.shift-card-footer {
    padding: 12px 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================================
   AREAS LIST (TAB 4)
   ============================================================================ */

.areas-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.areas-list-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.area-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.area-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #cc0000;
}

.area-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.area-card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.area-shift-count {
    padding: 4px 12px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.area-card-body {
    padding: 20px;
}

.area-description {
    margin-bottom: 16px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.area-qual-overview h5 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.area-qual-item {
    margin-bottom: 12px;
}

.area-qual-item:last-child {
    margin-bottom: 0;
}

.qual-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.area-card-footer {
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================================
   HISTORY (TAB 5)
   ============================================================================ */

.history-header {
    margin-bottom: 24px;
}

.history-header h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.history-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#history-search,
#history-type-filter {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
}

.history-timeline {
    position: relative;
    padding-left: 40px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.history-entry {
    position: relative;
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.history-entry-icon {
    position: absolute;
    left: -40px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #6b7280;
}

.history-entry-icon.registration {
    border-color: #3b82f6;
    background: #dbeafe;
    color: #1e40af;
}

.history-entry-icon.acceptance {
    border-color: #10b981;
    background: #d1fae5;
    color: #065f46;
}

.history-entry-icon.rejection {
    border-color: #ef4444;
    background: #fef2f2;
    color: #dc2626;
}

.history-entry-icon.modification {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #d97706;
}

.history-entry-icon.notification {
    border-color: #8b5cf6;
    background: #f3e8ff;
    color: #6d28d9;
}

.history-entry-content {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.history-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.history-user {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.history-timestamp {
    font-size: 13px;
    color: #9ca3af;
}

.history-action {
    margin: 0 0 4px;
    font-size: 14px;
    color: #374151;
}

.history-details {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

/* ============================================================================
   EXPORT (TAB 6)
   ============================================================================ */

.export-header {
    margin-bottom: 32px;
}

.export-header h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.export-description {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.export-templates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.export-template-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.2s ease;
}

.export-template-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #cc0000;
}

.template-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    margin: 0 auto;
}

.template-icon.xlsx {
    background: #dbeafe;
    color: #1e40af;
}

.template-icon.csv {
    background: #d1fae5;
    color: #065f46;
}

.template-icon.pdf {
    background: #fef2f2;
    color: #dc2626;
}

.template-info {
    text-align: center;
}

.template-info h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.template-info p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #6b7280;
}

.template-type {
    display: inline-block;
    padding: 4px 8px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.template-actions {
    display: flex;
    justify-content: center;
}

.export-history {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.export-history h4 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

#export-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.export-history-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.export-history-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.export-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.export-timestamp {
    font-size: 12px;
    color: #6b7280;
}

/* ============================================================================
   MODALS
   ============================================================================ */

.document-review-modal,
.application-modal,
.car-history-modal,
.car-pictures-modal,
.shift-stats-modal,
.prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-content.modal-large {
    max-width: 900px;
}

.modal-content.modal-small {
    max-width: 400px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Document Review */
.documents-scroll {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.document-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 16px;
}

.document-preview {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-preview {
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
}

.document-info {
    flex: 1;
}

.document-info h5 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.document-info p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.document-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

/* Application Details */
.application-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-section h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px 16px;
    margin: 0;
}

.detail-list dt {
    font-weight: 500;
    color: #6b7280;
}

.detail-list dd {
    margin: 0;
    color: #111827;
}

/* Car History */
.history-entry {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.history-date,
.history-user {
    font-size: 13px;
    color: #6b7280;
}

.history-content p {
    margin: 0;
    font-size: 14px;
    color: #374151;
}

/* Pictures Grid */
.pictures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.picture-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.picture-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Statistics Modal */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-box {
    padding: 20px;
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    border-radius: 8px;
    text-align: center;
    color: #ffffff;
}

.stat-box h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.stat-number {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.qual-stats-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qual-stats-detail h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.qual-stat-detail {
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.qual-stat-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.qual-stat-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qual-stat-bar span {
    font-size: 13px;
    color: #6b7280;
}

.progress-bar-container {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

/* ============================================================================
   TOAST NOTIFICATIONS
   ============================================================================ */

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 12000;
    max-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-content svg {
    flex-shrink: 0;
}

.toast-success svg {
    color: #10b981;
}

.toast-error svg {
    color: #ef4444;
}

.toast-warning svg {
    color: #f59e0b;
}

.toast-info svg {
    color: #3b82f6;
}

.toast-content span {
    font-size: 14px;
    color: #374151;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .anmeldungs-modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .anmeldungs-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }
    
    .anmeldungs-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .registration-filters {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        min-width: 0;
    }
    
    .shifts-grid,
    .areas-grid,
    .export-templates {
        grid-template-columns: 1fr;
    }
    
    .registration-stats,
    .vehicle-badges {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shift-actions,
    .detail-actions,
    .supervisor-actions {
        flex-direction: column;
    }
    
    .shift-actions .btn,
    .detail-actions .btn,
    .supervisor-actions .btn {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .detail-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .detail-list dt {
        font-weight: 600;
    }
    
    .toast {
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .anmeldungs-modal-overlay,
    .modal-close-btn,
    .anmeldungs-tabs,
    .registration-filters,
    .btn,
    .toast {
        display: none !important;
    }
    
    .anmeldungs-modal-content {
        box-shadow: none;
        border: none;
    }
    
    .registration-details {
        display: block !important;
    }
}

/* ============================================================================
   VERLAUF (HISTORY) - Zusätzliche Styles für Pagination und Click-to-Filter
   ============================================================================ */

/* Search Bar */
.history-search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.history-search-bar .form-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
}

.history-search-bar .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
}

/* Header Stats */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.history-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Clickable Filter Fields */
.clickable-filter {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 2px 4px;
    margin: -2px -4px;
}

.clickable-filter:hover {
    background: #eff6ff;
    color: #2563eb;
    text-decoration: underline;
}

.history-user.clickable-filter:hover {
    background: #fef3c7;
    color: #92400e;
}

.history-action.clickable-filter:hover {
    background: #dbeafe;
    color: #1e40af;
}

.history-details.clickable-filter:hover {
    background: #e0e7ff;
    color: #4338ca;
}

/* Pagination */
.history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.pagination-info {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

.history-pagination .btn {
    min-width: 100px;
}

.history-pagination .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty State */
.history-timeline .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .history-search-bar {
        flex-direction: column;
    }
    
    .history-search-bar .btn {
        width: 100%;
        justify-content: center;
    }
    
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .history-pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .history-pagination .btn {
        width: 100%;
    }
}

/* Tooltip für klickbare Felder */
.clickable-filter::after {
    content: '🔍';
    margin-left: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.75em;
}

.clickable-filter:hover::after {
    opacity: 0.6;
}

/* =================================================================
   PAGINATION STYLES FOR ANMELDUNGSVERWALTUNG
   Add this to anmeldungsverwaltung.css or create separate file
   ================================================================= */

/* Registration Header Section */
.registration-header-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Pagination Search Bar */
.pagination-search-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-search-bar .search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.pagination-search-bar .search-input:focus {
    outline: none;
    border-color: #E30613;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

/* Pagination Info */
.pagination-info {
    font-size: 0.9rem;
    color: #666;
    padding: 0.5rem 0;
    font-weight: 500;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 1.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: #666;
    font-weight: 500;
}

/* Pagination Buttons */
.pagination-controls .btn {
    min-width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-controls .btn:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #ccc;
    transform: translateY(-1px);
}

.pagination-controls .btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-controls .btn-primary {
    background: #E30613;
    color: white;
    border-color: #E30613;
    font-weight: 600;
}

.pagination-controls .btn-primary:hover:not(:disabled) {
    background: #c00510;
    border-color: #c00510;
}

.pagination-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* Number Buttons */
.pagination-numbers .btn {
    min-width: 36px;
    padding: 0.5rem;
}

/* Navigation Buttons (Erste, Zurück, Weiter, Letzte) */
.pagination-controls .btn:first-child,
.pagination-controls .btn:last-child {
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .registration-header-section {
        padding: 0.75rem;
    }
    
    .pagination-search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-search-bar .search-input {
        min-width: 100%;
    }
    
    .pagination-controls {
        padding: 1rem 0.5rem;
        gap: 0.25rem;
    }
    
    .pagination-controls .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
        min-width: 32px;
        height: 32px;
    }
    
    /* Hide "Erste" and "Letzte" on mobile to save space */
    .pagination-controls .btn:first-child,
    .pagination-controls .btn:last-child {
        display: none;
    }
    
    /* Reduce visible page numbers on mobile */
    .pagination-numbers .btn:nth-child(n+6) {
        display: none;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .pagination-numbers {
        gap: 0.15rem;
    }
    
    .pagination-controls .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
        min-width: 28px;
        height: 28px;
    }
    
    .pagination-ellipsis {
        font-size: 0.8rem;
        padding: 0 0.25rem;
    }
}

/* Loading State */
.pagination-controls.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty State with Pagination */
.registration-header-section + .empty-state {
    margin-top: -1rem;
}

/* Smooth Transitions */
.registrations-list {
    transition: opacity 0.2s ease;
}

.registrations-list.loading {
    opacity: 0.6;
}

/* ============================================
   Collapsible Shift List Styles
   ============================================ */

/* Container für einklappbare Schichten */
.shift-collapsible-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out;
    margin-top: 0;
}

/* Geöffneter Zustand */
.shift-collapsible-container.is-open {
    max-height: 2000px; /* Ausreichend hoch für viele Schichten */
    opacity: 1;
    margin-top: 1rem;
}

/* Header-Bereich für "Weitere Schichten" */
.shift-collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.shift-collapsible-title {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

/* Toggle-Button */
.shift-collapsible-btn {
    background: transparent;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shift-collapsible-btn:hover {
    background: #ffffff;
    border-color: #c8ccd0;
    color: #212529;
}

.shift-collapsible-btn:active {
    transform: translateY(1px);
}

/* Chevron Icon */
.shift-collapsible-btn .chev {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Chevron rotiert beim Öffnen (wird im Button-Text von ▼ zu ▲ geändert) */
/* Bereits über Text-Änderung gelöst, kein CSS nötig */

/* Shift Selection List Spacing */
.shift-selection-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Shift Selection Item Styles */
.shift-selection-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    position: relative;
}

.shift-selection-item:hover {
    border-color: #c8ccd0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.shift-selection-item.selected {
    border-color: #0066cc;
    background: #f0f7ff;
}

.shift-selection-item.selected:hover {
    border-color: #0052a3;
}

/* Checkbox verstecken, da das Item selbst klickbar ist */
.shift-selection-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Label Layout */
.shift-selection-label {
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.shift-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.shift-selection-header strong {
    font-size: 1rem;
    color: #212529;
}

.shift-selection-time {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.shift-selection-details {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .shift-collapsible-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .shift-collapsible-btn {
        width: 100%;
        justify-content: center;
    }

    .shift-selection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .shift-selection-time {
        font-size: 0.85rem;
    }
}

/* Animation beim Laden */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shift-selection-item {
    animation: fadeInSlide 0.3s ease-out;
}

/* Loading State für Collapsible Container */
.shift-collapsible-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Badge für Anzahl der weiteren Schichten */
.shift-collapsible-title::after {
    content: '';
}

/* Alternative: Badge-Style falls gewünscht */
.shift-count-badge {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    font-weight: 600;
}

/* Accessibility: Focus States */
.shift-collapsible-btn:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.shift-selection-item:focus-within {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .shift-collapsible-container {
        max-height: none !important;
        opacity: 1 !important;
    }

    .shift-collapsible-btn {
        display: none;
    }

    .shift-collapsible-header {
        page-break-after: avoid;
    }
}