/* BBS Papenburg - Bewerberportal 
    Gesamte CSS-Struktur (Responsive & Modern)
*/

:root {
    /* Farbpalette */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --accent: #fbbf24; /* Das BBS Gelb/Orange */
    --success: #10b981;
    --danger: #ef4444;
    
    /* Hintergrund & Text */
    --bg-light: #f8fafc;
    --bg-dashboard: #f1f5f9;
    --sidebar-dark: #1e293b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;

    /* Abstände & Radien */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* 1. RESET & BASIS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

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

/* 2. LOGO BADGE (Zentrales Element) */
.logo-badge {
    background-color: var(--white) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.main-logo {
    max-width: 220px;
    height: auto;
    display: block;
}

/* 3. HERO & ÖFFENTLICHER BEREICH */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    border-bottom: 6px solid var(--accent);
}

.hero h1 { font-size: 2.8rem; margin-bottom: 10px; }
.subtitle { font-size: 1.2rem; opacity: 0.95; font-weight: 400; }

.steps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.step-card {
    flex: 1 1 calc(33.33% - 20px);
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    min-width: 280px;
}

.step-num {
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-weight: 700;
}

/* 4. DASHBOARD LAYOUT (Sidebar) */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-dashboard);
}

.sidebar {
    width: 260px;
    background-color: var(--sidebar-dark);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-brand {
    padding: 30px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-links {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}

.sidebar-links li a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.sidebar-links li:hover a, .sidebar-links li.active a {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.main-content {
    margin-left: 260px;
    flex-grow: 1;
    padding: 40px;
    width: calc(100% - 260px);
}

/* 5. FORMULARE & CARDS */
.form-wizard-card, .auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.auth-card { max-width: 450px; }

.form-section {
    background: #f8fafc;
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

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

/* 6. BUTTONS */
.btn {
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-secondary { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: #eff6ff; }

.btn-lg { width: 100%; padding: 15px; font-size: 1.1rem; }

/* 7. DASHBOARD ELEMENTE */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.selection-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.selection-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }

.icon-box {
    width: 60px; height: 60px; background: #eff6ff; color: var(--primary);
    border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}

/* Status Badges */
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.status-entwurf { background: var(--accent); }
.status-eingereicht { background: var(--success); }

/* 8. RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .sidebar { width: 70px; }
    .sidebar span, .sidebar-brand span { display: none; }
    .main-content { margin-left: 70px; width: calc(100% - 70px); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .main-content { margin-left: 0; width: 100%; padding: 20px; }
    .sidebar { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; }
}

/* Utilities */
.py-40 { padding: 40px 0; }
.mb-40 { margin-bottom: 40px; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.admin-table th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.85rem;
    color: var(--secondary);
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.badge-bg {
    background: #eff6ff;
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.btn-small {
    padding: 5px 10px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.filter-group input, .filter-group select {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.mb-20 { margin-bottom: 20px; }
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.auth-badge.iserv {
    background-color: #ff6600; /* IServ Orange */
    color: white;
}

.auth-badge.local {
    background-color: #e2e8f0;
    color: #64748b;
}
/* Neue Farben passend zu den ENUM-Werten */
.status-entwurf { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.status-eingereicht { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.status-pruefung { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.status-zusage { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.status-absage { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }