/* Ausbildungsmanagement v2 - Stylesheet */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --border-radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

/* Login Screen */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-container h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.login-container .subtitle {
    color: var(--gray-500);
    margin-bottom: 30px;
}

.login-container .login-hint {
    margin-top: 20px;
    font-size: 13px;
    color: var(--gray-400);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group.small {
    flex: 0 0 100px;
}

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

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

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto !important;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn:hover {
    background: var(--gray-200);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-group {
    display: flex;
    gap: 8px;
}

/* Header */
.app-header {
    background: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header h1 {
    font-size: 20px;
    color: var(--gray-900);
}

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

#currentUser {
    color: var(--gray-600);
    font-size: 14px;
}

/* Navigation */
.main-nav {
    background: white;
    padding: 0 24px;
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--gray-200);
}

.nav-btn {
    padding: 14px 20px;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-btn:hover {
    color: var(--gray-900);
    background: var(--gray-50);
}

.nav-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Content */
.content {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.view h2 {
    margin-bottom: 24px;
    color: var(--gray-900);
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.view-header h2 {
    margin-bottom: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card.warning {
    border-left: 4px solid var(--warning-color);
}

.stat-card.danger {
    border-left: 4px solid var(--danger-color);
    background: #fef2f2;
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-label {
    color: var(--gray-500);
    font-size: 14px;
    margin-top: 4px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Cards List */
.cards-list {
    display: grid;
    gap: 16px;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

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

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}

.card-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 2px;
}

.card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    font-size: 14px;
}

.card-field {
    color: var(--gray-600);
}

.card-field strong {
    color: var(--gray-800);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.geplant {
    background: var(--gray-100);
    color: var(--gray-600);
}

.status-badge.laufend {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-badge.abgeschlossen {
    background: #d1fae5;
    color: #059669;
}

.status-badge.abgebrochen {
    background: #fee2e2;
    color: #dc2626;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

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

.modal-content.modal-large {
    max-width: 700px;
}

.modal-content.modal-xlarge {
    max-width: 900px;
}

.modal-content.modal-fullscreen {
    max-width: 1000px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h3 {
    font-size: 18px;
    color: var(--gray-900);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: var(--gray-600);
}

.modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.modal-body h4 {
    margin: 20px 0 12px 0;
    font-size: 14px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

/* Tabs */
.detail-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: var(--gray-700);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    padding-top: 16px;
}

/* Detail View */
.detail-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-field {
    padding: 12px;
    background: var(--gray-50);
    border-radius: 6px;
}

.detail-field label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.detail-field .value {
    font-size: 15px;
    color: var(--gray-900);
}

.detail-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 10px;
}

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

.section-header h4 {
    margin: 0 !important;
    text-transform: none !important;
    font-size: 16px !important;
    color: var(--gray-800) !important;
}

/* Abschnitte List */
.abschnitt-item {
    padding: 16px;
    background: var(--gray-50);
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary-color);
}

.abschnitt-item.laufend {
    border-left-color: var(--success-color);
}

.abschnitt-item.abgeschlossen {
    border-left-color: var(--gray-400);
}

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

.abschnitt-title {
    font-weight: 600;
    color: var(--gray-800);
}

.abschnitt-abteilung {
    font-size: 14px;
    color: var(--gray-600);
}

.abschnitt-meta {
    font-size: 13px;
    color: var(--gray-500);
}

/* Lernziele List */
.lernziel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: 6px;
    margin-bottom: 8px;
}

.lernziel-item.erreicht {
    background: #d1fae5;
}

.lernziel-info {
    flex: 1;
}

.lernziel-name {
    font-weight: 500;
    color: var(--gray-800);
}

.lernziel-meta {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

.lernziel-progress {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-text {
    font-weight: 600;
    color: var(--gray-700);
}

.lernziel-actions {
    display: flex;
    gap: 8px;
}

.lernziel-actions button {
    padding: 4px 8px;
    font-size: 12px;
}

/* Rating Grid */
.rating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.rating-item {
    padding: 12px;
    background: var(--gray-50);
    border-radius: 6px;
}

.rating-item label {
    display: block;
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.rating-buttons {
    display: flex;
    gap: 4px;
}

.rating-buttons button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.rating-buttons button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.rating-buttons button.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Evaluierung List */
.evaluierung-item {
    padding: 16px;
    background: var(--gray-50);
    border-radius: 6px;
    margin-bottom: 12px;
}

.evaluierung-item.vollstaendig {
    border-left: 4px solid var(--primary-color);
}

.evaluierung-item.kurz {
    border-left: 4px solid var(--gray-400);
}

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

.evaluierung-date {
    font-weight: 600;
    color: var(--gray-800);
}

.evaluierung-type {
    font-size: 13px;
    color: var(--gray-500);
}

.evaluierung-ratings {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.rating-display {
    font-size: 13px;
}

.rating-display .label {
    color: var(--gray-500);
}

.rating-display .value {
    font-weight: 600;
    color: var(--gray-800);
}

.evaluierung-summary {
    font-size: 14px;
    color: var(--gray-600);
    padding: 12px;
    background: white;
    border-radius: 4px;
}

.evaluierung-burnout {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.evaluierung-burnout.burnout-a, .evaluierung-burnout.burnout-b {
    background: #d1fae5;
    color: #059669;
}

.evaluierung-burnout.burnout-c {
    background: #fef3c7;
    color: #d97706;
}

.evaluierung-burnout.burnout-d, .evaluierung-burnout.burnout-e {
    background: #fee2e2;
    color: #dc2626;
}

/* Settings */
.settings-sections {
    display: grid;
    gap: 24px;
}

.settings-section {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.settings-section h3 {
    margin-bottom: 16px;
    color: var(--gray-800);
    font-size: 16px;
}

.simple-list {
    margin-top: 16px;
}

.simple-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 6px;
    margin-bottom: 8px;
}

.simple-list-item .name {
    font-weight: 500;
}

.simple-list-item .meta {
    font-size: 13px;
    color: var(--gray-500);
}

/* Dashboard Sections */
.dashboard-sections {
    display: grid;
    gap: 24px;
}

.dashboard-section {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.dashboard-section h3 {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--gray-800);
}

/* Placeholder */
.placeholder-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.placeholder-message p {
    color: var(--gray-500);
    margin-bottom: 8px;
}

.placeholder-message p:first-child {
    font-size: 24px;
    margin-bottom: 16px;
}

/* ==================== EVALUIERUNG VOLLSTÄNDIG ==================== */

.eval-form-body {
    padding: 0 !important;
}

.eval-progress {
    padding: 16px 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
    width: 5.88%;
}

.eval-nav {
    padding: 12px 24px;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.eval-nav select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    min-width: 280px;
}

.eval-section {
    padding: 24px;
    min-height: 400px;
}

.eval-section h4 {
    font-size: 20px !important;
    color: var(--gray-900) !important;
    text-transform: none !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.section-hint {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 6px;
}

/* Kompetenz Items */
.kompetenz-item {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 8px;
}

.kompetenz-item > label {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.kompetenz-item .rating-buttons {
    margin-bottom: 12px;
}

.kompetenz-item textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-label:hover {
    border-color: var(--primary-color);
}

.radio-label input[type="radio"] {
    width: auto;
}

.radio-label input[type="radio"]:checked + span,
.radio-label input[type="radio"]:checked ~ span {
    color: var(--primary-color);
}

/* Burnout Options */
.burnout-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.burnout-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.burnout-option:hover {
    border-color: var(--gray-400);
}

.burnout-option input[type="radio"] {
    width: auto;
    margin-top: 4px;
}

.burnout-content {
    flex: 1;
}

.burnout-action {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

.burnout-a .burnout-action { color: var(--success-color); }
.burnout-b .burnout-action { color: var(--gray-600); }
.burnout-c .burnout-action { color: var(--warning-color); }
.burnout-d .burnout-action { color: #ea580c; }
.burnout-e .burnout-action { color: var(--danger-color); }

.burnout-option:has(input:checked) {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.burnout-c:has(input:checked) { border-color: var(--warning-color); background: #fffbeb; }
.burnout-d:has(input:checked) { border-color: #ea580c; background: #fff7ed; }
.burnout-e:has(input:checked) { border-color: var(--danger-color); background: #fef2f2; }

/* Info/Warning Boxes */
.info-box {
    padding: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #1e40af;
}

.warning-box {
    padding: 16px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #92400e;
}

/* Ziel Box */
.ziel-box {
    padding: 16px;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 16px;
}

.ziel-box h5 {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 12px;
}

/* Summary Box */
.summary-box {
    padding: 24px;
    background: #d1fae5;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.summary-box h5 {
    color: #059669;
    margin-bottom: 8px;
}

/* Sticky Actions */
.sticky-actions {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    margin: 0 -24px -24px -24px;
    padding: 16px 24px;
}

/* Clickable Stat Card */
.stat-card.clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Termin Section */
.termin-section {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.termin-section h4 {
    margin-bottom: 12px;
    color: var(--primary);
}

.termin-form {
    background: white;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.termine-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.termin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid var(--primary);
}

.termin-item.durchgefuehrt {
    border-left-color: var(--success);
    opacity: 0.7;
}

.termin-item.abgesagt {
    border-left-color: var(--gray-400);
    opacity: 0.5;
    text-decoration: line-through;
}

.termin-info {
    flex: 1;
}

.termin-datum {
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-800);
}

.termin-details {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

.termin-actions {
    display: flex;
    gap: 8px;
}

.termin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
}

.termin-badge.geplant {
    background: #dbeafe;
    color: #1e40af;
}

.termin-badge.durchgefuehrt {
    background: #d1fae5;
    color: #047857;
}

.termin-badge.email-sent {
    background: #fef3c7;
    color: #92400e;
}

/* Alle Termine Modal */
#alleTermineList .termin-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary);
}

#alleTermineList .termin-card-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
}

#alleTermineList .termin-card-info .arzt-name {
    font-weight: 600;
    color: var(--gray-800);
}

#alleTermineList .termin-card-info .mentor-name {
    font-size: 13px;
    color: var(--gray-500);
}

#alleTermineList .termin-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Lernziel overdue styling */
.lernziel-item.overdue {
    border-left: 3px solid #dc2626;
}

.lernziel-item.overdue .lernziel-meta {
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .detail-info {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-body {
        grid-template-columns: 1fr;
    }
    
    .detail-tabs {
        flex-wrap: wrap;
    }
    
    .eval-nav select {
        min-width: 200px;
    }
}

/* ==================== RASTERZEUGNIS STYLES ==================== */

/* Small stats grid */
.stats-grid.small-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card.mini {
    padding: 1rem;
    text-align: center;
}

.stat-card.mini .stat-value {
    font-size: 1.5rem;
}

.stat-card.mini .stat-label {
    font-size: 0.75rem;
}

.stat-card.success {
    border-left: 4px solid var(--success-color);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-offen {
    background: var(--gray-200);
    color: var(--gray-600);
}

.status-in_bearbeitung {
    background: #dbeafe;
    color: #1e40af;
}

.status-zur_unterschrift {
    background: #fef3c7;
    color: #92400e;
}

.status-unterschrieben {
    background: #d1fae5;
    color: #065f46;
}

.status-abgeschlossen {
    background: #e0e7ff;
    color: #3730a3;
}

/* Detail modal */
.modal-large .modal-content {
    max-width: 800px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item .label {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.detail-item .value {
    font-weight: 500;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.detail-table th,
.detail-table td {
    padding: 0.5rem;
    border: 1px solid var(--gray-200);
    text-align: left;
}

.detail-table th {
    background: var(--gray-50);
    font-weight: 500;
}

.signatures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.signature-box {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
}

.signature-type {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.signature-image {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    background: white;
}

.signature-info {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.detail-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* Checkbox label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

/* Text utilities */
.text-muted {
    color: var(--gray-500);
}

@media (max-width: 768px) {
    .stats-grid.small-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .signatures-grid {
        grid-template-columns: 1fr;
    }
}
