/* ========================================
   100PC - NEUE ZENTRALE STYLESHEET
   Komplett neu strukturiert basierend auf
   der tatsächlichen HTML-Struktur
   ======================================== */

/* ===== 1. TYPOGRAPHY SYSTEM ===== */
h1 {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.4em;
}

h3 {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.3em;
}

h4 {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.3em;
}

h5 {
    font-size: 1.1em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.2em;
}

h6 {
    font-size: 1em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.2em;
}

/* ===== 2. RESET & GRUNDLEGENDE STYLES ===== */

/* ===== SUCHFELD FÜR LEHRLINGE ===== */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

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

.search-result-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 2px;
}

.search-result-item .abteilung {
    color: #6c757d;
    font-size: 0.9em;
}

.search-no-results {
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
}

.selected-text {
    color: #155724;
    font-weight: 500;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background: #c82333;
}

/* Relative Positionierung für Suchfeld-Container */
.form-group {
    position: relative;
}

/* ===== BADGE-STYLES FÜR AUFGABEN ===== */
.badge-projekt {
    background-color: #007bff;
    color: white;
}

.badge-täglich {
    background-color: #28a745;
    color: white;
}

/* ===== FARBLEGENDE ===== */
.color-legend {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.color-legend h3 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.1em;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-color.deadline-overdue {
    background-color: #dc3545;
}

.legend-color.deadline-urgent {
    background-color: #fd7e14;
}

.legend-color.deadline-soon {
    background-color: #28a745;
}

.legend-color.deadline-far {
    background-color: #6c757d;
}

.legend-item span {
    font-size: 0.9em;
    color: #495057;
    line-height: 1.4;
}

/* Responsive Anpassungen für Farblegende */
@media (max-width: 768px) {
    .legend-items {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .legend-item {
        padding: 3px 0;
    }
    
    .legend-item span {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .color-legend {
        padding: 15px;
    }
    
    .color-legend h3 {
        font-size: 1em;
        margin-bottom: 12px;
    }
    
    .legend-item {
        padding: 2px 0;
        gap: 8px;
    }
    
    .legend-color {
        width: 14px;
        height: 14px;
    }
    
    .legend-item span {
        font-size: 0.8em;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ===== 2. LAYOUT CONTAINER ===== */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 30px;
    min-height: calc(100vh - 80px);
}

/* ===== 3. NAVIGATION ===== */
/* Alte NavBar-CSS entfernt - wird durch neue NavBar-CSS ersetzt */

/* Alte NavBar-CSS-Regeln entfernt - werden durch neue NavBar-CSS ersetzt */

/* ===== 4. HEADER BEREICH ===== */
.header {
    color: white;
    margin-bottom: 30px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    text-align: left;
}

.header-right {
    text-align: right;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: bold;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.user-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-name {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.user-role {
    display: block;
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 10px;
}

.logout-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: white;
}

/* ===== 5. DASHBOARD LAYOUT ===== */
.dashboard {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    min-height: 600px;
}

.dashboard h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8em;
    text-align: center;
    border-bottom: 3px solid #3498db;
    padding-bottom: 20px;
    font-weight: bold;
}

/* ===== 6. DASHBOARD GRID & CARDS ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 170px);
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.card-title {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.9em;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
}

.card-title::before {
    content: attr(data-icon);
    display: block;
    font-size: 32px;
    margin-bottom: 6px;
    text-align: center;
}

/* ===== 7. MENU CARDS ===== */
.menu-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block;
    min-height: 100px;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.menu-card-title {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1em;
    font-weight: bold;
    line-height: 1.2;
}

.menu-card-title::before {
    content: attr(data-icon);
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
    text-align: center;
}

.menu-card-description {
    color: #666;
    font-size: 0.8em;
    line-height: 1.3;
    margin: 0;
}

/* Menu Card Color Groups */
.menu-card.management { background: linear-gradient(135deg, #e8f5e8, #f0f8f0); }
.menu-card.tasks { background: linear-gradient(135deg, #e3f2fd, #f0f7ff); }
.menu-card.projects { background: linear-gradient(135deg, #fff3e0, #fff8f0); }
.menu-card.reporting { background: linear-gradient(135deg, #f3e5f5, #faf5ff); }
.menu-card.admin { background: linear-gradient(135deg, #ffebee, #fff5f5); }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-card p {
    color: #666;
    margin-bottom: 6px;
    line-height: 1.2;
    font-size: 0.75em;
    flex-grow: 1;
}

.dashboard-card .stat-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #3498db;
    text-align: center;
    margin: 6px 0;
    display: block;
}

/* ===== 7. LEHRLING WELCOME ===== */
.lehrling-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.lehrling-welcome h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: bold;
}

.lehrling-welcome p {
    font-size: 1.3em;
    opacity: 0.9;
}

/* ===== 8. QUICK ACTIONS ===== */
.quick-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
}

/* ===== 9. MODERN BUTTON & BADGE SYSTEM ===== */

/* ===== UNIFIED BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    min-width: 70px;
    height: 32px;
    position: relative;
    overflow: hidden;
    background-color: #e3f2fd;
    color: #1565c0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #bbdefb;
}

.btn:hover {
    text-decoration: none;
    color: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ===== FUNCTIONAL BUTTON ICONS (vor dem Text) ===== */
.btn::before {
    content: "";
    display: none;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Spezifische Icons für funktionale Buttons */
.btn-primary::before {
    content: "💾";
    display: inline;
}

.btn-secondary::before {
    content: "✏️";
    display: inline;
}

.btn-cancel::before {
    content: "❌";
    display: inline;
}

.btn-success::before {
    content: "";
    display: inline;
}

.btn-danger::before {
    content: "🗑️";
    display: inline;
}

.btn-warning::before {
    content: "";
    display: inline;
}

.btn-info::before {
    content: "ℹ️";
    display: inline;
}

/* ===== LINK BUTTON ICONS (nach dem Text) ===== */
a.btn::after {
    content: "→";
    display: inline;
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

a.btn:hover::after {
    transform: translateX(2px);
}

/* Entferne Icons von Link-Buttons vor dem Text */
a.btn::before {
    display: none !important;
}

/* Navigation-Buttons: Keine automatischen Symbole */
.nav-btn::before,
.nav-btn::after {
    display: none !important;
}

/* Aktuelle Status-Nachricht Anzeige */
.current-status-message {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 8px;
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    font-size: 14px;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Checkbox-Label Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

/* Kleinere Form-Gruppen für Datumsfelder */
.form-group-small {
    flex: 0 0 25%; /* Etwa 1/3 kleiner als normale form-group */
    max-width: 200px;
}

/* Mittlere Form-Gruppen für Abteilungsauswahl */
.form-group-medium {
    flex: 0 0 35%; /* Etwa 1/3 kleiner als normale form-group */
    max-width: 250px;
}

/* Status-Anzeige spezifische Klassen */
.status-tables-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.status-tables-container .table {
    flex: 1;
    min-width: 0; /* Verhindert Overflow */
}

.table-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 12px;
    font-weight: bold;
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.table-header > div {
    display: contents;
}

.table-header > div > div {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1fr 1fr;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    align-items: center;
}

.table-row:nth-child(even) {
    background-color: #f8f9fa;
}

.progress-container {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    /* Fallback-Farbe falls keine inline-Farbe gesetzt ist */
    background-color: #e9ecef;
}

.feierabend.early {
    color: #28a745;
    font-weight: bold;
}

.feierabend.normal {
    color: #6c757d;
}

/* Pulse Animation für Status-Nachrichten */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ===== SOFT BUTTON COLORS (Pastellfarben wie Badges) ===== */
.btn-primary {
    background-color: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

.btn-primary:hover {
    background-color: #bbdefb;
    color: #0d47a1;
    border-color: #90caf9;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #616161;
    border-color: #e0e0e0;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    color: #424242;
    border-color: #bdbdbd;
}

.btn-success {
    background-color: #e8f5e8;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.btn-success:hover {
    background-color: #c8e6c9;
    color: #1b5e20;
    border-color: #a5d6a7;
}

.btn-danger {
    background-color: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.btn-danger:hover {
    background-color: #ffcdd2;
    color: #b71c1c;
    border-color: #ef9a9a;
}

.btn-cancel {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
    color: #333;
    border-color: #bbb;
}

.btn-warning {
    background-color: #fff3e0;
    color: #ef6c00;
    border-color: #ffcc02;
}

.btn-warning:hover {
    background-color: #ffcc02;
    color: #e65100;
    border-color: #ffb74d;
}

.btn-absent {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-absent::before {
    content: "🚪";
    display: inline;
}

.btn-absent:hover {
    background-color: #e0e0e0;
    color: #333;
    border-color: #bbb;
}

.btn-info {
    background-color: #e0f2f1;
    color: #00695c;
    border-color: #b2dfdb;
}

.btn-info:hover {
    background-color: #b2dfdb;
    color: #004d40;
    border-color: #80cbc4;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    min-width: auto;
}

/* ===== TABLE BUTTONS (Subtile Buttons für Tabellenzeilen) ===== */
.btn-table {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
    font-weight: normal;
    text-align: center;
    transition: all 0.2s ease;
    min-width: 50px;
    height: 24px;
    background-color: transparent;
    border: 1px solid transparent;
}

.btn-table:hover {
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.05);
    transform: none;
    box-shadow: none;
}

.btn-table:active {
    transform: none;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.1);
}

/* ===== TABLE BUTTON COLORS (Gleiche Farbkonzepte, aber nur Text) ===== */
.btn-table.btn-table-primary {
    color: #1565c0;
}

.btn-table.btn-table-primary:hover {
    background-color: rgba(21, 101, 192, 0.1);
    color: #0d47a1;
}

.btn-table.btn-table-secondary {
    color: #616161;
}

.btn-table.btn-table-secondary:hover {
    background-color: rgba(97, 97, 97, 0.1);
    color: #424242;
}

.btn-table.btn-table-success {
    color: #2e7d32;
}

.btn-table.btn-table-success:hover {
    background-color: rgba(46, 125, 50, 0.1);
    color: #1b5e20;
}

.btn-table.btn-table-danger {
    color: #c62828;
}

.btn-table.btn-table-danger:hover {
    background-color: rgba(198, 40, 40, 0.1);
    color: #b71c1c;
}

.btn-table.btn-table-warning {
    color: #ef6c00;
}

.btn-table.btn-table-warning:hover {
    background-color: rgba(239, 108, 0, 0.1);
    color: #e65100;
}

.btn-table.btn-table-info {
    color: #00695c;
}

.btn-table.btn-table-info:hover {
    background-color: rgba(0, 105, 92, 0.1);
    color: #004d40;
}

/* ===== TABLE BUTTON ICONS (Gleiche Symbolik wie normale Buttons) ===== */
.btn-table::before {
    content: "";
    display: none;
    width: 12px;
    height: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Spezifische Icons für Table-Buttons */
.btn-table-primary::before {
    content: "💾";
    display: inline;
}

.btn-table-secondary::before {
    content: "❌";
    display: inline;
}

.btn-table-success::before {
    content: "✅";
    display: inline;
}

.btn-table-danger::before {
    content: "🗑️";
    display: inline;
}

.btn-table-warning::before {
    content: "⚠️";
    display: inline;
}

.btn-table-info::before {
    content: "ℹ️";
    display: inline;
}

/* ===== TABLE LINK BUTTONS (Pfeil nach dem Text) ===== */
a.btn-table::after {
    content: "→";
    display: inline;
    font-size: 10px;
    margin-left: 3px;
    transition: transform 0.2s ease;
}

a.btn-table:hover::after {
    transform: translateX(1px);
}

/* Entferne Icons von Table-Link-Buttons vor dem Text */
a.btn-table::before {
    display: none !important;
}

/* ===== MODERN BADGE SYSTEM ===== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 50px;
    height: 20px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    background-color: #e2e8f0;
    color: #4a5568;
}

/* Badges haben keinen Hover-Effekt - sie sind reine Status-Anzeigen */

/* ===== BADGE VARIANTS ===== */
.badge-primary {
    background-color: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

.badge-secondary {
    background-color: #f5f5f5;
    color: #616161;
    border-color: #e0e0e0;
}

.badge-success {
    background-color: #e8f5e8;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.badge-warning {
    background-color: #fff3e0;
    color: #ef6c00;
    border-color: #ffcc02;
}

.badge-danger {
    background-color: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.badge-info {
    background-color: #e0f2f1;
    color: #00695c;
    border-color: #b2dfdb;
}

/* ===== STATUS-SPECIFIC BADGES ===== */

/* ===== 10. ACTION BUTTONS & LINKS ===== */
.action-btn {
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.action-btn:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

.action-link {
    color: #007bff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 0;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.action-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ===== 11. ALERT SYSTEM ===== */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda; 
    color: #155724; 
    border-color: #c3e6cb;
}

.alert-danger,
.alert-error {
    background-color: #f8d7da; 
    color: #721c24; 
    border-color: #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* ===== 12. MESSAGE SYSTEM ===== */
.message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== 13. PROJECTS GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-card.ueberfaellig {
    background-color: #fff5f5;
    border-left: 4px solid #e53e3e;
}

.project-header {
        padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
}

.project-info {
    padding: 20px;
}

.project-info p {
    margin: 8px 0;
    color: #666;
    font-size: 0.9em;
}

.project-actions {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-description {
    margin: 15px 20px 0 20px;
    padding: 15px 0 15px 0;
    border-top: 1px solid #eee;
}

.project-description p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 1em;
}

/* ===== 15. FORM CONTAINER ===== */
.form-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* ===== 16. TEAM MANAGEMENT ===== */
.current-team-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.team-display {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.projektleiter-display {
    flex: 1;
    min-width: 200px;
}

.team-mitglieder-display {
    flex: 1;
    min-width: 200px;
}

.no-members {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

.team-edit-section {
    display: none;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
        padding: 20px;
    margin-bottom: 20px;
}

.team-filter {
    margin-bottom: 20px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-help {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-style: italic;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4px 8px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    background: white;
}

/* Responsive Spalten-Anzahl */
@media (max-width: 768px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .checkbox-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .checkbox-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    min-height: 32px;
}

.checkbox-label:hover {
    background-color: #f8f9fa;
}

.checkbox-text {
    flex: 1;
    font-size: 0.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.projektleiter-radio {
    margin-right: 8px;
}

.team-checkbox {
    margin-right: 8px;
}

/* ===== 17. MEILENSTEIN MANAGEMENT ===== */
.meilenstein-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.meilenstein-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.delete-meilenstein {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.delete-meilenstein:hover {
    background-color: #ffcdd2;
    color: #b71c1c;
}

.add-meilenstein {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    margin-bottom: 20px;
}

.add-meilenstein:hover {
    background-color: #c8e6c9;
    color: #1b5e20;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.form-actions-inline {
    justify-content: flex-start;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* ===== 18. PROJECT DETAIL PAGE ===== */
.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filter-toggle {
    display: flex;
    align-items: center;
}

.btn-toggle {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-toggle:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
    text-decoration: none;
}

.btn-toggle.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-toggle.active:hover {
    background: #218838;
    border-color: #1e7e34;
    color: white;
}

.project-stats {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.project-stats p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* ===== DELETE MODAL STYLES ===== */
#delete-modal .modal-content {
    max-width: 500px;
}

#delete-project-info {
    margin-bottom: 20px;
}

#delete-project-stats {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

#delete-project-stats ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

#delete-project-stats li {
    margin: 5px 0;
    color: #495057;
}

#delete-project-stats .count {
    font-weight: bold;
    color: #dc3545;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.warning-box p {
    margin: 5px 0;
    color: #856404;
}

.warning-box p:first-child {
    margin-top: 0;
}

.warning-box p:last-child {
    margin-bottom: 0;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    color: white;
}

.project-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.project-counter {
    color: #e0e0e0;
    font-size: 0.9em;
    font-weight: bold;
    white-space: nowrap;
}

.detail-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item strong {
    color: #2c3e50;
    font-size: 0.9em;
    font-weight: 600;
}

.info-item span {
    color: #666;
    font-size: 0.9em;
}

.description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.description p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

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

.team-member {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    min-width: 0; /* Verhindert Overflow */
}

.team-member.role-projektleiter {
    order: -1; /* Projektleiter immer an erster Stelle */
    background: #e3f2fd;
    border-color: #bbdefb;
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.member-info strong {
    font-size: 1em;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-department {
    color: #666;
    font-size: 0.85em;
    font-style: italic;
    margin-top: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.role-projektleiter {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.role-badge.role-mitglied {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

/* ===== 19. MEILENSTEIN DETAIL VIEW ===== */
.no-meilensteine {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.meilenstein-with-tasks {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.meilenstein-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.meilenstein-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.meilenstein-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.meilenstein-icon {
    font-size: 1.2em;
}

.meilenstein-statistiken {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meilenstein-statistik {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 500;
}

.badge-offen {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.badge-in-bearbeitung {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.badge-erledigt {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-ueberfaellig {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.meilenstein-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meilenstein-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.meilenstein-toggle-btn.expanded {
    background-color: #c8e6c9;
}

.meilenstein-toggle-btn.collapsed {
    background-color: #ffcdd2;
}

.toggle-icon {
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.meilenstein-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.meilenstein-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.meilenstein-content.collapsed {
    max-height: 0;
    padding: 0 20px;
}

.meilenstein-content.expanded {
    max-height: none;
    padding: 20px;
}

.meilenstein-details {
    margin-bottom: 20px;
}

.meilenstein-description {
    color: #666;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

/* ===== 20. AUFGABEN IN MEILENSTEINEN ===== */
.meilenstein-aufgaben {
    margin-top: 20px;
}

.aufgaben-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.aufgaben-icon {
    font-size: 1.1em;
}

.aufgaben-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aufgabe-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.aufgabe-item:hover {
    background: #e9ecef;
}

.aufgabe-drag-handle {
    cursor: grab;
    padding: 4px;
    color: #666;
}

.drag-icon {
    font-size: 12px;
    line-height: 1;
}

.aufgabe-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aufgabe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
        gap: 10px;
    }
    
.aufgabe-beschreibung {
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
}

.aufgabe-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zugewiesen-an {
    color: #666;
        font-size: 0.9em;
    }

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

.aufgabe-notizen {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.aufgabe-details {
    display: flex;
    gap: 15px;
    font-size: 0.8em;
    color: #666;
}

.aufgabe-lehrling {
    display: flex;
    align-items: center;
    gap: 4px;
}

.aufgabe-deadline {
    display: flex;
    align-items: center;
    gap: 4px;
}

.aufgabe-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.status-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-arrow {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
}

.status-arrow:hover:not(.disabled) {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.status-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.current-status {
    font-size: 0.8em;
    color: #666;
    min-width: 80px;
    text-align: center;
}

.action-links {
    display: flex;
    gap: 10px;
}

.no-aufgaben {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.add-aufgabe-form {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.inline-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aufgaben-liste {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-meilenstein-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.add-form {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.add-form.show {
    display: block;
}

/* ===== 21. MEILENSTEIN DEADLINE ===== */
.meilenstein-deadline {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}





/* ===== 14. STATUS BADGES ===== */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
        font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.status-offen {
    background-color: #e2e8f0;
    color: #4a5568;
}

.status-badge.status-in_bearbeitung {
    background-color: #fef5e7;
    color: #d69e2e;
}

.status-badge.status-fertig {
    background-color: #c6f6d5;
    color: #2f855a;
}

.status-badge.status-erledigt {
    background-color: #c6f6d5;
    color: #2f855a;
}

/* ===== 15. STATISTIK BADGES ===== */
.aufgaben-statistiken {
    margin: 15px 0;
}

.statistik-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.statistik-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}


/* ===== 16. STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
    margin: 0;
}

/* ===== 17. FORM SYSTEM ===== */
.form-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: bold;
}

.filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* ===== LARGE FORM CONTROLS (für Login und wichtige Formulare) ===== */
.form-control-large {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
    box-sizing: border-box;
}

.form-control-large:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
    background-color: #fafafa;
}

.form-control-large:hover {
    border-color: #bbdefb;
}

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

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

/* ===== 18. TABLE SYSTEM ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: #e9ecef;
}

.table th a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
}

.table th a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* ===== RESPONSIVE TABELLEN ===== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table-responsive .table {
    margin-bottom: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    width: auto;
    min-width: 100%;
}

/* Basis-Schriftgröße für responsive Tabellen */
.table-responsive {
    font-size: 12px;
}

.table-responsive .table th,
.table-responsive .table td {
    padding: 8px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Status-Spalte darf nicht gekürzt werden */
.table-responsive .table th:nth-child(2),
.table-responsive .table td:nth-child(2) {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
    min-width: 120px;
}

/* Responsive Anpassungen für verschiedene Bildschirmgrößen */
@media (max-width: 1200px) {
    .table-responsive .table th,
    .table-responsive .table td {
        padding: 6px;
        max-width: 150px;
    }
    .table-responsive .btn {
        padding: 3px 6px;
    }
    .table-responsive .badge {
        font-size: 8px;
        padding: 1px 3px;
    }
    /* Status-Spalte darf nicht gekürzt werden */
    .table-responsive .table th:nth-child(2),
    .table-responsive .table td:nth-child(2) {
        max-width: none;
        min-width: 120px;
    }
    /* ID-Spalte ausblenden (9. Spalte - ganz rechts) */
    .table-responsive .table th:nth-child(9),
    .table-responsive .table td:nth-child(9) {
        display: none;
    }
}

@media (max-width: 992px) {
    .table-responsive .table th,
    .table-responsive .table td {
        padding: 4px;
        max-width: 120px;
    }
    .table-responsive .btn {
        padding: 2px 4px;
    }
    .table-responsive .badge {
        font-size: 6px;
        padding: 1px 2px;
    }
    /* Status-Spalte darf nicht gekürzt werden */
    .table-responsive .table th:nth-child(2),
    .table-responsive .table td:nth-child(2) {
        max-width: none;
        min-width: 120px;
    }
    /* ID + Registriert ausblenden (9. + 8. Spalte) */
    .table-responsive .table th:nth-child(9),
    .table-responsive .table td:nth-child(9),
    .table-responsive .table th:nth-child(8),
    .table-responsive .table td:nth-child(8) {
        display: none;
    }
}

@media (max-width: 768px) {
    .table-responsive .table th,
    .table-responsive .table td {
        padding: 3px;
        max-width: 100px;
    }
    .table-responsive .btn {
        padding: 1px 3px;
    }
    .table-responsive .badge {
        font-size: 5px;
        padding: 1px 2px;
    }
    /* Status-Spalte darf nicht gekürzt werden */
    .table-responsive .table th:nth-child(2),
    .table-responsive .table td:nth-child(2) {
        max-width: none;
        min-width: 120px;
    }
    /* ID + Registriert + Letzter Login ausblenden (9. + 8. + 7. Spalte) */
    .table-responsive .table th:nth-child(9),
    .table-responsive .table td:nth-child(9),
    .table-responsive .table th:nth-child(8),
    .table-responsive .table td:nth-child(8),
    .table-responsive .table th:nth-child(7),
    .table-responsive .table td:nth-child(7) {
        display: none;
    }
}

@media (max-width: 576px) {
    .table-responsive .table th,
    .table-responsive .table td {
        padding: 2px;
        max-width: 80px;
    }
    .table-responsive .btn {
        padding: 1px 2px;
    }
    .table-responsive .badge {
        font-size: 4px;
        padding: 1px;
    }
    /* Status-Spalte darf nicht gekürzt werden */
    .table-responsive .table th:nth-child(2),
    .table-responsive .table td:nth-child(2) {
        max-width: none;
        min-width: 120px;
    }
    /* ID + Registriert + Letzter Login + E-Mail ausblenden (9. + 8. + 7. + 6. Spalte) */
    .table-responsive .table th:nth-child(9),
    .table-responsive .table td:nth-child(9),
    .table-responsive .table th:nth-child(8),
    .table-responsive .table td:nth-child(8),
    .table-responsive .table th:nth-child(7),
    .table-responsive .table td:nth-child(7),
    .table-responsive .table th:nth-child(6),
    .table-responsive .table td:nth-child(6) {
        display: none;
    }
}

/* Buttons in responsive Tabellen anpassen */
.table-responsive .btn {
    font-size: 12px;
    padding: 4px 8px;
    white-space: nowrap;
    min-width: auto;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badges in responsive Tabellen anpassen */
.table-responsive .badge {
    font-size: 10px;
    padding: 2px 4px;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Spezielle Behandlung für wichtige Spalten */
.table-responsive .table th:first-child,
.table-responsive .table td:first-child {
    min-width: 120px;
    white-space: normal;
}

/* Responsive Breakpoints für Tabellen */
@media (max-width: 1200px) {
    .table-responsive {
        font-size: clamp(8px, 2.2vw, 14px);
    }
    
    .table-responsive .table th,
    .table-responsive .table td {
        padding: clamp(6px, 1.2vw, 12px);
    }
}

@media (max-width: 992px) {
    .table-responsive {
        font-size: clamp(8px, 2vw, 12px);
    }
    
    .table-responsive .table th,
    .table-responsive .table td {
        padding: clamp(5px, 1vw, 10px);
    }
    
    /* Verstecke weniger wichtige Spalten auf kleineren Bildschirmen */
    .table-responsive .table th:nth-child(n+6),
    .table-responsive .table td:nth-child(n+6) {
        display: none;
    }
}

@media (max-width: 768px) {
    .table-responsive {
        font-size: clamp(8px, 1.8vw, 10px);
    }
    
    .table-responsive .table th,
    .table-responsive .table td {
        padding: clamp(4px, 0.8vw, 8px);
    }
    
    /* Verstecke noch mehr Spalten auf mobilen Geräten */
    .table-responsive .table th:nth-child(n+4),
    .table-responsive .table td:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 576px) {
    .table-responsive {
        font-size: 8px;
    }
    
    .table-responsive .table th,
    .table-responsive .table td {
        padding: 4px;
    }
    
    /* Nur die wichtigsten Spalten anzeigen */
    .table-responsive .table th:nth-child(n+3),
    .table-responsive .table td:nth-child(n+3) {
        display: none;
    }
}

/* Verbesserte Lesbarkeit für kleine Texte */
.table-responsive .table th {
    background-color: #f8f9fa;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.table-responsive .table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Spezielle Behandlung für Buttons in Tabellen */
.table-responsive .btn {
    font-size: inherit;
    padding: clamp(2px, 0.5vw, 6px) clamp(4px, 1vw, 8px);
    min-width: auto;
}

/* Badge-Anpassungen für kleine Bildschirme */
.table-responsive .badge {
    font-size: clamp(6px, 1.5vw, 10px);
    padding: clamp(1px, 0.3vw, 3px) clamp(3px, 0.8vw, 6px);
}

.active-filters {
    margin-bottom: 5px;
}

/* ===== 19. MODAL SYSTEM ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5em;
}

.close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #333;
}

/* ===== 20. RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .dashboard {
        padding: 25px;
        margin-top: 10px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .quick-actions {
        flex-direction: column;
    align-items: center;
    }
    
    .quick-actions .btn {
        width: auto;
        max-width: none;
    }
    
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .header-left,
    .header-right {
        text-align: center;
    }
    
    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }
    
    /* NavBar responsive */
    .navbar-container {
        flex-direction: column;
    gap: 15px;
        padding: 15px 20px;
        align-items: center;
    }
    
    .navbar-menu {
        flex-wrap: wrap;
    justify-content: center;
        gap: 6px;
        width: 100%;
    }
    
    .navbar-item {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 50px;
        height: 26px;
    }
    
    .navbar-user {
        flex-direction: column;
    gap: 8px;
        align-items: center;
    }
    
    .user-info {
        align-items: center;
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        min-width: auto;
    }
}

/* ===== 21. HD OPTIMIZATION ===== */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        padding: 50px 40px;
    }
    
    .dashboard {
        padding: 50px;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, 170px);
        gap: 20px;
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 30px;
    }
}

/* ===== 22. FILTER & SORT SYSTEM ===== */
.filter-sort-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-sort-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.filter-sort-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
    flex: 1;
}

.filter-sort-title:hover {
    background-color: #f8f9fa;
}

.filter-sort-actions-header {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-sort-icon {
    font-size: 1.2em;
}

.filter-sort-arrow {
    margin-left: auto;
    font-size: 0.9em;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.filter-sort-summary {
    margin-top: 8px;
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
}

.filter-sort-content {
    padding: 20px;
    background-color: #f8f9fa;
}

.filter-sort-form {
    max-width: 100%;
}

.filter-sort-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9em;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.9em;
    transition: border-color 0.2s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.filter-sort-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.filter-sort-actions .btn {
    padding: 8px 16px;
    font-size: 0.9em;
}

/* Responsive Design für Filter */
@media (max-width: 768px) {
    .filter-sort-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .filter-sort-actions {
        flex-direction: column;
    }
    
    .filter-sort-actions .btn {
        width: 100%;
    }
}

/* ===== 23. AUFGABEN FARBKODIERUNG ===== */
/* Farbkodierung nach Enddatum */
.deadline-overdue {
    border-left: 4px solid #dc3545 !important; /* Rot - Überfällig */
    background-color: #fff5f5;
}

.deadline-urgent {
    border-left: 4px solid #fd7e14 !important; /* Orange - Dringend (innerhalb 3 Tage) */
    background-color: #fff8f0;
}

.deadline-soon {
    border-left: 4px solid #ffc107 !important; /* Gelb - Bald fällig (innerhalb 7 Tage) */
    background-color: #fffdf0;
}

.deadline-far {
    border-left: 4px solid #28a745 !important; /* Grün - Normal (mehr als 7 Tage) */
    background-color: #f8fff8;
}

/* Spezielle Stile für Aufgabenkarten */
.aufgabe-card.deadline-overdue {
    border-left: 4px solid #dc3545;
    background-color: #fff5f5;
}

.aufgabe-card.deadline-urgent {
    border-left: 4px solid #fd7e14;
    background-color: #fff8f0;
}

.aufgabe-card.deadline-soon {
    border-left: 4px solid #ffc107;
    background-color: #fffdf0;
}

.aufgabe-card.deadline-far {
    border-left: 4px solid #28a745;
    background-color: #f8fff8;
}

/* ===== 24. UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none; }
.visible { display: block; }

/* ===== 23. NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.navbar-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 20px;
    width: 100%;
    margin: 0;
    flex-wrap: wrap;
    gap: 15px;
}

.navbar-brand {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand:hover {
    color: #007bff;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    min-width: 60px;
    height: 28px;
    white-space: nowrap;
    background-color: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-item:hover {
    background-color: #bbdefb;
    color: #0d47a1;
    border-color: #90caf9;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.navbar-item.active {
    background-color: #bbdefb;
    color: #0d47a1;
    border-color: #90caf9;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.navbar-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* NavBar Link-Button Icons (Pfeil nach dem Text) */
.navbar-item::after {
    content: "→";
    display: inline;
    font-size: 10px;
    margin-left: 3px;
    transition: transform 0.2s ease;
}

.navbar-item:hover::after {
    transform: translateX(2px);
}

/* Entferne Pfeil vom Logout-Button (funktionaler Button) */
.navbar-item[href*="logout"]::after {
    display: none;
}

/* Entferne Icons von NavBar-Buttons vor dem Text */
.navbar-item::before {
    display: none !important;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.8em;
    color: #666;
}

.user-email {
    font-weight: 500;
    color: #333;
}

.user-role {
    color: #888;
    font-size: 0.85em;
}


/* ===== 24. SPECIAL PAGES ===== */
.admin-pages .container {
    max-width: 1400px;
}

/* ===== 25. USER MANAGEMENT KOMPONENTEN ===== */
.user-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

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

.user-meta {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.user-status {
    display: flex;
    align-items: center;
}

.approval-actions {
    display: flex;
        gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.approval-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Collapsible Komponenten */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.collapsible-header:hover {
    background-color: #f8f9fa;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.show {
    max-height: 2000px;
}

/* Formular-Komponenten */
.form-col {
    flex: 1;
    margin-right: 15px;
}

.form-col:last-child {
    margin-right: 0;
}

/* Text-Links */
.text-link {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.text-primary {
    color: #007bff !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-muted {
    color: #6c757d !important;
}

.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* Modal-Anzeige Klassen */
.modal-hidden {
    display: none !important;
}

.modal-visible {
    display: block !important;
}

.form-group-hidden {
    display: none !important;
}

.form-group-visible {
    display: block !important;
}

/* Abteilungen-spezifische Klassen */
.abteilung-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.abteilung-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.abteilung-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.info-stat {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.info-primary {
    background-color: #e3f2fd;
    color: #1976d2;
}

.info-success {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.standard-tagesziele-form,
.tagesziel-form {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.standard-tagesziele-form h4,
.tagesziel-form h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

/* Responsive Anpassungen für Abteilungen */
@media (max-width: 768px) {
    .abteilung-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn,
    .button-group .action-btn {
        width: 100%;
    }
}

/* Admin-Aufgaben-spezifische Klassen */

.aufgabe-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.aufgabe-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.aufgabe-card.prioritaet-kritisch {
    border-left: 4px solid #dc3545;
}

.aufgabe-card.prioritaet-hoch {
    border-left: 4px solid #fd7e14;
}

.aufgabe-card.prioritaet-normal {
    border-left: 4px solid #28a745;
}

.aufgabe-card.prioritaet-niedrig {
    border-left: 4px solid #6c757d;
}

.aufgabe-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}

.aufgabe-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.aufgabe-titel {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    flex: 1;
    text-align: left;
}

.aufgabe-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}


.aufgabe-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.aufgabe-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.aufgabe-meta-details {
    font-size: 12px;
    color: #666;
    text-align: left !important;
    line-height: 1.3;
    width: 100%;
}

.aufgabe-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.zugewiesen-info {
    background-color: #e3f2fd;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 0.9em;
    color: #1976d2;
}

.badge-status-offen {
    background-color: #fff3cd;
    color: #856404;
}

.badge-status-in_bearbeitung {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-status-erledigt {
    background-color: #d4edda;
    color: #155724;
}

.badge-prioritaet-kritisch {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-prioritaet-hoch {
    background-color: #ffeaa7;
    color: #856404;
}

.badge-prioritaet-normal {
    background-color: #d4edda;
    color: #155724;
}

.badge-prioritaet-niedrig {
    background-color: #e2e3e5;
    color: #383d41;
}

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

.badge-oeffentlich {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.badge-zugewiesen {
    background-color: #fff3cd;
    color: #856404;
}

.badge-bug {
    background-color: #dc3545;
    color: white;
}

.badge-feature {
    background-color: #28a745;
    color: white;
}

.badge-kategorie {
    background-color: #6c757d;
    color: white;
}

/* Bug/Feature-spezifische Info-Bereiche */
.bug-info, .feature-info, .loesung-info {
    margin: 15px 0;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid;
}

.bug-info {
    background-color: #fff5f5;
    border-left-color: #dc3545;
}

.bug-info h4 {
    color: #dc3545;
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.feature-info {
    background-color: #f8fff8;
    border-left-color: #28a745;
}

.feature-info h4 {
    color: #28a745;
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.loesung-info {
    background-color: #f0f8ff;
    border-left-color: #007bff;
}

.loesung-info h4 {
    color: #007bff;
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.bug-info p, .feature-info p, .loesung-info p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

/* Bug/Feature-Status-Bereich */
.bug-feature-status {
    margin: 15px 0;
    padding: 12px;
    border-radius: 6px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.bug-feature-status h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.status-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-status {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-status:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.btn-status.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-status.active:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Modal-spezifische Verbesserungen */
.personal-task-group {
    border: 2px solid #dc3545;
    border-radius: 6px;
    padding: 12px;
    background-color: #fff5f5;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
} 

.checkbox-group label {
    margin: 0;
    font-size: 14px;
    cursor: pointer;
}

/* Responsive Anpassungen für Admin-Aufgaben */
@media (max-width: 768px) {
    .aufgabe-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .aufgabe-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .aufgabe-meta {
        width: 100%;
        justify-content: flex-start;
    }
    
    .aufgabe-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .aufgabe-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
    }
}

/* Punktevergabe-spezifische Klassen */
.section-header {
    display: flex;
    justify-content: space-between;
        align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.task-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.task-form .form-group {
    margin-bottom: 15px;
}

.task-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.task-form .form-control,
.task-form .form-select {
        width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.task-form .form-control:focus,
.task-form .form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.date-navigation {
    display: flex;
    gap: 10px;
    align-items: center;
        justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.compact-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-main h1 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.abteilung-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 200px;
}

.form-select.compact {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 150px;
}

.toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.status-form-compact {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.status-form-compact.hidden {
    display: none;
}

.new-task-form-compact {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.new-task-form-compact.hidden {
    display: none;
}

.lehrling-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.lehrling-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.lehrling-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.lehrling-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.lehrling-meta {
    font-size: 0.9em;
    color: #666;
}

.aufgaben-section {
    margin-top: 15px;
}

.aufgaben-section h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #555;
}

.aufgabe-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aufgabe-info {
    flex: 1;
}

.aufgabe-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.aufgabe-meta {
    font-size: 0.85em;
    color: #666;
}

.punkte-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.punkte-display {
    font-weight: bold;
    color: #28a745;
    min-width: 60px;
    text-align: center;
}

.navigation-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.counter {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-results.hidden {
    display: none;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

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

.search-compact {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Fehlende Klassen für punktevergabe.php */
.section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lehrling-header-compact {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.lehrling-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.lehrling-info h2 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.abteilung-badge {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.aufgabe-text {
    margin-bottom: 15px;
}

.aufgabe-text p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.5;
    color: #333;
}

.info-text {
    font-size: 0.9em;
    color: #666;
    margin-right: 15px;
}

.aufgabe-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.projekt-aufgabe-card {
    border-left: 4px solid #007bff;
}

.projekt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.projekt-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.projekt-name {
    font-weight: 600;
    color: #007bff;
    font-size: 1.1em;
}

.meilenstein-name {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* Weitere fehlende Klassen für punktevergabe.php */
.compact-header {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.header-main h1 {
    margin: 0;
    color: #333;
    font-size: 1.8em;
}

.abteilung-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.status-form-compact {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.new-task-form-compact {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.new-task-form-compact h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3em;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.search-results .search-result-item {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-results .search-result-item:hover {
    background-color: #f8f9fa;
}

.search-results .search-result-item:last-child {
    border-bottom: none;
}


.aufgabe-meta {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.aufgabe-info {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
}

.aufgabe-notizen {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    border-left: 3px solid #007bff;
    font-size: 0.9em;
    color: #666;
}

/* Details-Bereich für Aufgaben */
.aufgabe-details {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}

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

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-item strong {
    font-size: 0.85em;
    color: #495057;
    font-weight: 600;
}

.detail-item {
    font-size: 0.9em;
    color: #212529;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #17a2b8 !important;
}

/* Responsive Anpassungen für Punktevergabe */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        align-items: stretch;
    }
    
    .abteilung-selector {
        justify-content: center;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lehrling-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .aufgabe-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .navigation-controls {
        flex-direction: column;
        gap: 15px;
    }
}

/* Container mit sticky NavBar */
.with-sticky-navbar {
    padding-top: 0;
}

body.with-sticky-navbar {
    padding-top: 0;
}

/* ========================================
   REGISTRIERUNG & LOGIN STYLES
   ======================================== */

.register-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.logo p {
    color: #7f8c8d;
    margin: 0;
    font-size: 1.1em;
}

.info-box {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 25px;
}

.info-box h4 {
    margin: 0 0 10px 0;
    color: #0c5460;
    font-size: 1em;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
    color: #0c5460;
}

.info-box li {
    margin-bottom: 5px;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.login-link p {
    margin: 0;
    color: #7f8c8d;
}

.login-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Input-Validierung */
.input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

.input-success {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2) !important;
}

/* Zuweisungsmodal */
.current-assignment-display {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 12px;
    font-weight: 500;
    color: #495057;
}

/* Status-Navigation */
.status-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.status-navigation .btn-table {
    padding: 4px 8px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 32px;
    text-align: center;
}

.status-navigation .btn-table:hover:not(.disabled) {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.status-navigation .btn-table.disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.status-navigation .current-status {
    flex: 1;
    text-align: center;
    font-weight: 500;
    color: #495057;
    padding: 4px 8px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.status-navigation .inline-form {
    display: inline;
    margin: 0;
}

/* Status-spezifische Farben */
.status-navigation .current-status.status-offen {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.status-navigation .current-status.status-in_bearbeitung {
    background-color: #cce5ff;
    border-color: #74c0fc;
    color: #004085;
}

.status-navigation .current-status.status-fertig {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.status-navigation .current-status.status-erledigt {
    background-color: #e2e3e5;
    border-color: #d6d8db;
    color: #383d41;
}

/* ===== EINKAUFSZETTEL STYLES ===== */

/* Einkaufszettel Hauptseite */
.artikel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.artikel-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.artikel-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.artikel-card.status-gewünscht {
    border-left: 4px solid #ffc107;
}

.artikel-card.status-bestellt {
    border-left: 4px solid #17a2b8;
}

.artikel-card.status-gekauft {
    border-left: 4px solid #28a745;
}

.artikel-card.status-abgeschlossen {
    border-left: 4px solid #6c757d;
    opacity: 0.7;
}

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

.artikel-title h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.artikel-menge {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.artikel-badges {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-prioritaet-niedrig {
    background-color: #6c757d;
    color: white;
}

.badge-prioritaet-normal {
    background-color: #28a745;
    color: white;
}

.badge-prioritaet-hoch {
    background-color: #fd7e14;
    color: white;
}

.badge-prioritaet-dringend {
    background-color: #dc3545;
    color: white;
}

.badge-kategorie-büromaterial {
    background-color: #007bff;
    color: white;
}

.badge-kategorie-hardware {
    background-color: #6f42c1;
    color: white;
}

.badge-kategorie-software {
    background-color: #20c997;
    color: white;
}

.badge-kategorie-sonstiges {
    background-color: #6c757d;
    color: white;
}

.artikel-beschreibung {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.artikel-meta {
    margin-bottom: 15px;
}

.meta-item {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.meta-item strong {
    color: #333;
}

.artikel-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.status-controls {
    flex: 1;
}

.status-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    background-color: white;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #6c757d;
    color: #6c757d;
}

.btn-outline:hover {
    background-color: #6c757d;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    grid-column: 1 / -1;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

/* Druckseite Styles */
.print-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
}

.print-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.print-info {
    font-size: 14px;
    color: #666;
}

.kategorie-section {
    margin-bottom: 30px;
    page-break-inside: avoid;
}

.kategorie-header {
    background-color: #f5f5f5;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 16px;
    border-left: 4px solid #007bff;
    margin-bottom: 15px;
}

.artikel-list {
    list-style: none;
}

.artikel-item {
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.artikel-info {
    flex: 1;
}

.artikel-name {
    font-weight: bold;
    margin-bottom: 2px;
}

.artikel-details {
    font-size: 12px;
    color: #666;
}

.artikel-menge {
    font-weight: bold;
    text-align: right;
    min-width: 80px;
}

.prioritaet-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
}

.prioritaet-dringend { background-color: #dc3545; color: white; }
.prioritaet-hoch { background-color: #fd7e14; color: white; }
.prioritaet-normal { background-color: #28a745; color: white; }
.prioritaet-niedrig { background-color: #6c757d; color: white; }

.print-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.checkbox {
    width: 15px;
    height: 15px;
    margin-right: 10px;
}

/* Dashboard Karte für Einkaufszettel */
.menu-card.shopping {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    color: #333;
}

.menu-card.shopping:hover {
    background: linear-gradient(135deg, #e8e8e8, #dcdcdc);
    transform: translateY(-2px);
}

/* Bug/Feature-Status Button - leicht grün */
.btn-status.bug-feature-active {
    background-color: #d4edda !important;
    color: #155724 !important;
    border-color: #c3e6cb !important;
}

.stat-subtitle {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .artikel-grid {
        grid-template-columns: 1fr;
    }
    
    .artikel-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons {
        justify-content: center;
    }
}

/* ===== ARBEITSPROTOKOLL STYLES ===== */

/* Aufgabendetails */
.aufgabe-meta {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem 0;
}

.aufgabe-meta p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e50;
}

.aufgabe-meta p:last-child {
    margin-bottom: 0;
}

.aufgabe-meta strong {
    color: #495057;
    font-weight: 600;
}

/* Statistiken Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Arbeitsschritte Liste */
.arbeitsschritte-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.arbeitsschritt-item {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.arbeitsschritt-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.arbeitsschritt-item.punkte-vergeben {
    border-left: 6px solid #28a745;
    background: linear-gradient(135deg, #f8fff9, #e8f5e8);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.1);
}

.arbeitsschritt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.arbeitsschritt-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
    color: #495057;
    margin-bottom: 1rem;
}

.arbeitsschritt-meta .datum {
    font-weight: bold;
    color: #2c3e50;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.arbeitsschritt-meta .uhrzeit {
    color: #6c757d;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.arbeitsschritt-meta .ersteller {
    color: #495057;
    font-weight: 500;
}

.arbeitsschritt-beschreibung {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* Punktevergabe Sektion */
.punktevergabe-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.punktevergabe-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.punktevergabe-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #007bff;
}

.checkbox-text {
    color: #2c3e50;
    font-weight: 600;
}

.punkte-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-radius: 12px;
    border: 2px solid #e1f5fe;
    margin-top: 1rem;
}

.input-sm {
    padding: 0.5rem;
    font-size: 0.9rem;
}

.punkte-meta {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Punktevergabe Anzeige für Lehrlinge */
.punkte-vergeben-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 6px;
    border: 1px solid #c3e6cb;
}

.punkte-anzahl {
    font-weight: bold;
    color: #155724;
    font-size: 1.1rem;
}

.kommentar {
    font-style: italic;
    color: #155724;
    margin-top: 0.5rem;
}

/* Responsive Design für Arbeitsprotokoll */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .arbeitsschritt-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .arbeitsschritt-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .punkte-details {
        flex-direction: column;
    }
}

/* ===== ENDE DER STYLESHEET ===== */
