/* ============================================================
   Berufsinformationstag – Stylesheet
   ============================================================ */

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

:root {
    --primary:   #1a5276;
    --secondary: #2980b9;
    --accent:    #e67e22;
    --success:   #27ae60;
    --danger:    #c0392b;
    --warning:   #f39c12;
    --light:     #f4f6f9;
    --dark:      #2c3e50;
    --border:    #dde1e7;
    --radius:    8px;
    --shadow:    0 2px 8px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* NAVIGATION */
.navbar {
    background: var(--primary);
    color: white;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.navbar h1 { font-size: 1.1rem; font-weight: 600; }
.navbar nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.navbar nav a:hover { color: white; }
.navbar nav a.active { color: white; font-weight: 600; border-bottom: 2px solid var(--accent); }

/* LAYOUT */
.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.container-sm { max-width: 600px; }

/* CARDS */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light);
}
.card-header h2 { font-size: 1.15rem; color: var(--primary); }

/* FORMULARE */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: var(--dark);
}
.form-control {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}
textarea.form-control { resize: vertical; min-height: 80px; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn:hover  { opacity: 0.88; }
.btn-primary  { background: var(--primary);   color: white; }
.btn-secondary{ background: var(--secondary); color: white; }
.btn-success  { background: var(--success);   color: white; }
.btn-danger   { background: var(--danger);    color: white; }
.btn-warning  { background: var(--warning);   color: white; }
.btn-light    { background: var(--border);    color: var(--dark); }
.btn-sm       { padding: 0.35rem 0.8rem; font-size: 0.82rem; }

/* TABELLEN */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
    background: var(--primary);
    color: white;
    padding: 0.65rem 1rem;
    text-align: left;
    font-weight: 600;
}
td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f0f4f8; }

/* ALERTS */
.alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.alert-success { background: #d5f5e3; color: #1e8449; border-left: 4px solid var(--success); }
.alert-danger  { background: #fadbd8; color: #922b21; border-left: 4px solid var(--danger); }
.alert-warning { background: #fef9e7; color: #7d6608; border-left: 4px solid var(--warning); }
.alert-info    { background: #d6eaf8; color: #1a5276; border-left: 4px solid var(--secondary); }

/* BADGES */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}
.badge-primary { background: var(--primary);   color: white; }
.badge-success { background: var(--success);   color: white; }
.badge-warning { background: var(--warning);   color: white; }
.badge-danger  { background: var(--danger);    color: white; }
.badge-light   { background: var(--border);    color: var(--dark); }

/* INTERESSE-STERNE */
.interesse-stars { display: flex; gap: 0.3rem; align-items: center; }
.stern-btn {
    background: none;
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 36px; height: 36px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    color: #999;
}
.stern-btn:hover, .stern-btn.aktiv {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.stern-btn.null-btn.aktiv {
    background: var(--border);
    border-color: #bbb;
    color: var(--dark);
}

/* FIRMEN-KARTEN (Schüler-Ansicht) */
.firmen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.firma-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    border-left: 4px solid var(--border);
    transition: border-color 0.2s;
}
.firma-card.interesse-hoch  { border-left-color: var(--success); }
.firma-card.interesse-mittel{ border-left-color: var(--warning); }
.firma-card.interesse-niedrig{ border-left-color: var(--danger); }
.firma-card h3 { font-size: 1rem; color: var(--primary); margin-bottom: 0.3rem; }
.firma-card .branche { font-size: 0.8rem; color: #888; margin-bottom: 0.6rem; }
.firma-card p { font-size: 0.88rem; color: #555; margin-bottom: 0.75rem; }

/* STATS KACHELN */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-box {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    text-align: center;
}
.stat-box .zahl { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-box .label { font-size: 0.82rem; color: #888; margin-top: 0.2rem; }

/* LOGIN */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}
.login-box h1 { font-size: 1.4rem; color: var(--primary); margin-bottom: 0.3rem; }
.login-box .subtitle { color: #888; font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ZEITPLAN */
.zeitplan-slot {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--success);
}
.zeitplan-slot .uhrzeit { font-weight: 700; color: var(--primary); min-width: 110px; }
.zeitplan-slot .firma   { font-weight: 600; }

/* UTILITY */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }

@media (max-width: 600px) {
    .navbar { padding: 0 1rem; }
    .navbar nav a { margin-left: 0.75rem; }
    .container { padding: 0 1rem; }
    .firmen-grid { grid-template-columns: 1fr; }
    .stats-grid  { grid-template-columns: 1fr 1fr; }
}
