/* ==========================================================================
   Testothek Modern Design System
   ========================================================================== */

:root {
    --hu-blue: #00376C;
    --hu-dark: #002447;
    --hu-light: #EBF3FA;
    --hu-teal: #008080;
    
    --bg-app: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-hover: #F1F5F9;
    
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    
    --border-color: #E2E8F0;
    
    --status-success-bg: #ECFDF5;
    --status-success-text: #065F46;
    --status-success-border: #A7F3D0;
    
    --status-warning-bg: #FFFBEB;
    --status-warning-text: #92400E;
    --status-warning-border: #FDE68A;
    
    --status-danger-bg: #FEF2F2;
    --status-danger-text: #991B1B;
    --status-danger-border: #FECACA;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 60px;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-full {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.container-95 {
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 12px;
}

.container-75 {
    width: 75%;
    max-width: 75%;
    margin: 0 auto;
    padding: 0 12px;
}

@media (max-width: 1200px) {
    .container-75, .container-95 {
        width: 95%;
        max-width: 95%;
    }
}

/* Header & Nav */
.navbar {
    background-color: var(--hu-blue);
    color: #ffffff;
    padding: 14px 0;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
}
.navbar .container, .navbar .container-full, .navbar .container-75, .navbar .container-95 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    white-space: nowrap;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.01em;
    flex-shrink: 0;
    white-space: nowrap;
}
.nav-brand span {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.85;
    display: block;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
    background: rgba(255,255,255,0.1);
    white-space: nowrap;
}
.nav-links a:hover {
    background: rgba(255,255,255,0.22);
}
.nav-links a.active {
    background: #ffffff;
    color: var(--hu-blue);
}

/* Page Header */
.page-header { margin-bottom: 24px; }
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hu-blue);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.page-subtitle { color: var(--text-muted); font-size: 0.95rem; }

/* Search Hero */
.search-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}
.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.search-input-group {
    flex: 1;
    min-width: 260px;
    position: relative;
}
.search-input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}
.search-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.15s ease;
    background: var(--bg-surface);
}
.search-input:focus {
    border-color: var(--hu-blue);
    box-shadow: 0 0 0 3px rgba(0, 55, 108, 0.12);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.3;
}
.btn-primary { background-color: var(--hu-blue); color: #ffffff; }
.btn-primary:hover { background-color: var(--hu-dark); }
.btn-success { background-color: #10B981; color: #ffffff; }
.btn-success:hover { background-color: #059669; }
.btn-warning { background-color: #F59E0B; color: #ffffff; }
.btn-warning:hover { background-color: #D97706; }
.btn-danger { background-color: #EF4444; color: #ffffff; }
.btn-danger:hover { background-color: #DC2626; }
.btn-secondary { background-color: #F1F5F9; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background-color: #E2E8F0; }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; border-radius: var(--radius-sm); }

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.status-available { background-color: var(--status-success-bg); color: var(--status-success-text); border: 1px solid var(--status-success-border); }
.status-reserved { background-color: var(--status-warning-bg); color: var(--status-warning-text); border: 1px solid var(--status-warning-border); }
.status-borrowed { background-color: var(--status-danger-bg); color: var(--status-danger-text); border: 1px solid var(--status-danger-border); }

/* Card Grid (Variant A) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.test-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.test-card:hover {
    border-color: #CBD5E1;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.badge-abk {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--hu-light);
    color: var(--hu-blue);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}
.test-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 4px;
}
.test-title a { color: inherit; text-decoration: none; }
.test-title a:hover { color: var(--hu-blue); }
.test-author { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 12px; }
.test-specs {
    font-size: 0.83rem;
    color: var(--text-muted);
    background: #F8FAFC;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.test-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
    flex-wrap: wrap;
    gap: 8px;
}

/* Data-Grid Table (Variant B) */
.table-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    margin-bottom: 28px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}
.data-table th {
    background-color: #F8FAFC;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.data-table th a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.data-table th a:hover { color: var(--hu-blue); }
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}
.data-table tr:hover td { background-color: var(--bg-surface-hover); }
.data-table tr:last-child td { border-bottom: none; }
.action-cell { white-space: nowrap; display: flex; gap: 6px; }

/* Feedback Card */
.feedback-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    max-width: 800px;
}
.feedback-card.success { border-left: 6px solid #10B981; }
.feedback-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.feedback-header i { font-size: 2.2rem; color: #10B981; }
.feedback-title { font-size: 1.25rem; font-weight: 700; color: var(--text-main); }
.feedback-subtitle { font-size: 0.88rem; color: var(--text-muted); }
.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    background: #F8FAFC;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}
.feedback-grid-item span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}
.feedback-grid-item strong { font-size: 0.92rem; color: var(--text-main); }
.feedback-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Forms */
.form-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    max-width: 820px;
    margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.92rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.15s ease;
    background: var(--bg-surface);
}
.form-control:focus {
    border-color: var(--hu-blue);
    box-shadow: 0 0 0 3px rgba(0, 55, 108, 0.12);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}
.dash-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.15s ease;
}
.dash-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
    transform: translateY(-2px);
}
.dash-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff;
    flex-shrink: 0;
}
.dash-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 3px; color: var(--text-main); }
.dash-info p { font-size: 0.82rem; color: var(--text-muted); }
