/* ═══════════════════════════════════════════════════════════════════════
   BZKF Leuchtturm Präklinische Modelle – Stylesheet
   Color scheme derived from the BZKF PowerPoint presentation
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --bzkf-blue-dark: #003366;
    --bzkf-blue: #005a9c;
    --bzkf-blue-medium: #0074c1;
    --bzkf-blue-light: #4aa3df;
    --bzkf-blue-pale: #d6eaf8;
    --bzkf-blue-bg: #edf4fc;
    --bzkf-green: #28a745;
    --bzkf-green-light: #7bc67e;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f0f2f5;
    --gray-200: #e2e6ea;
    --gray-300: #ced4da;
    --gray-400: #adb5bd;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --gray-900: #212529;
    --danger: #dc3545;
    --warning: #ffc107;
    --font-main: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 6px;
    --radius-lg: 10px;
}

/* ── Reset & Base ──────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--bzkf-blue); text-decoration: none; }
a:hover { color: var(--bzkf-blue-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ── Header / Top Bar ──────────────────────────────────────────────── */

.top-bar {
    background: linear-gradient(135deg, var(--bzkf-blue-dark) 0%, var(--bzkf-blue) 100%);
    color: var(--white);
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--white); text-decoration: none; }
.top-bar .user-info { display: flex; align-items: center; gap: 1rem; }
.top-bar .user-info .user-name { font-weight: 600; }

header {
    background: var(--white);
    border-bottom: 3px solid var(--bzkf-blue);
    padding: 0.8rem 2rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo-area .logo-icon {
    width: 44px;
    height: 44px;
    background: var(--bzkf-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
}
.logo-area h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bzkf-blue-dark);
    line-height: 1.2;
}
.logo-area h1 span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-600);
}
.bzkf-badge {
    background: var(--bzkf-blue-pale);
    color: var(--bzkf-blue-dark);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ── Navigation ────────────────────────────────────────────────────── */

nav {
    background: var(--bzkf-blue);
    box-shadow: var(--shadow-sm);
}
nav ul {
    max-width: 1280px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
nav ul li a {
    display: block;
    color: rgba(255,255,255,0.9);
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
nav ul li a:hover,
nav ul li a.active {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    text-decoration: none;
}
nav ul li a.active {
    border-bottom: 3px solid var(--white);
}
nav ul li a.nav-locked {
    color: rgba(255,255,255,0.4);
    font-style: italic;
    cursor: not-allowed;
}
nav ul li a.nav-locked:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
}

/* ── Main Content ──────────────────────────────────────────────────── */

main {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bzkf-blue-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bzkf-blue-pale);
}

/* ── Cards ─────────────────────────────────────────────────────────── */

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.card-header {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bzkf-blue-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-header .icon {
    width: 32px;
    height: 32px;
    background: var(--bzkf-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Hero Section (Landing) ────────────────────────────────────────── */

.hero {
    background: linear-gradient(135deg, var(--bzkf-blue-dark) 0%, var(--bzkf-blue) 60%, var(--bzkf-blue-light) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.hero h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.hero p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 700px;
    position: relative;
    z-index: 1;
}
.hero .cta-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
    background: var(--bzkf-blue);
    color: var(--white);
}
.btn-primary:hover { background: var(--bzkf-blue-dark); color: var(--white); }
.btn-secondary {
    background: var(--white);
    color: var(--bzkf-blue);
    border: 2px solid var(--bzkf-blue);
}
.btn-secondary:hover { background: var(--bzkf-blue-pale); color: var(--bzkf-blue-dark); }
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: var(--white); border-color: var(--white); }
.btn-success { background: var(--bzkf-green); color: var(--white); }
.btn-success:hover { background: #218838; color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #c82333; color: var(--white); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ── Forms ─────────────────────────────────────────────────────────── */

.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.3rem;
}
.form-control {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}
.form-control:focus {
    outline: none;
    border-color: var(--bzkf-blue);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.12);
}
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.form-check input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 16px;
    height: 16px;
    accent-color: var(--bzkf-blue);
}

/* ── Grid Layouts ──────────────────────────────────────────────────── */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    main { padding: 1rem; }
    .hero { padding: 2rem 1.5rem; }
    nav ul { flex-direction: column; }
}

/* ── Alerts ────────────────────────────────────────────────────────── */

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.alert-danger {
    background: #fdecea;
    color: #721c24;
    border-left: 4px solid var(--danger);
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--bzkf-green);
}
.alert-info {
    background: var(--bzkf-blue-bg);
    color: var(--bzkf-blue-dark);
    border-left: 4px solid var(--bzkf-blue);
}
.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning);
}

/* ── Proto Banner (dev mode) ───────────────────────────────────────── */

.proto-banner {
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    color: var(--white);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.proto-link-box {
    background: #fff3cd;
    border: 2px dashed #f7931e;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-size: 0.88rem;
}
.proto-link-box strong { color: #856404; }
.proto-link-box a {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--bzkf-blue);
    font-weight: 600;
    word-break: break-all;
}

/* ── Feature Tiles ─────────────────────────────────────────────────── */

.feature-tile {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.75rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--bzkf-blue);
}
.feature-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.feature-tile .tile-icon {
    width: 56px;
    height: 56px;
    background: var(--bzkf-blue-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}
.feature-tile h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bzkf-blue-dark);
    margin-bottom: 0.5rem;
}
.feature-tile p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* ── Auth Layout (centered card) ───────────────────────────────────── */

.auth-wrapper {
    max-width: 500px;
    margin: 2rem auto;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    border-top: 4px solid var(--bzkf-blue);
}
.auth-card h2 {
    text-align: center;
    color: var(--bzkf-blue-dark);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}
.auth-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.88rem;
}
.auth-links a { margin: 0 0.5rem; }

/* ── Message Page ──────────────────────────────────────────────────── */

.message-wrapper {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
}
.message-wrapper .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}
.icon-circle.success { background: #d4edda; color: var(--bzkf-green); }
.icon-circle.error { background: #fdecea; color: var(--danger); }
.icon-circle.info { background: var(--bzkf-blue-pale); color: var(--bzkf-blue); }

/* ── Data Table ────────────────────────────────────────────────────── */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.data-table thead th {
    background: var(--bzkf-blue);
    color: var(--white);
    padding: 0.7rem 1rem;
    text-align: left;
    font-weight: 600;
}
.data-table tbody td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}
.data-table tbody tr:hover { background: var(--bzkf-blue-bg); }

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #fdecea; color: #721c24; }

/* ── Placeholder Content Cards ─────────────────────────────────────── */

.placeholder-card {
    background: var(--bzkf-blue-bg);
    border: 2px dashed var(--bzkf-blue-light);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--bzkf-blue);
}
.placeholder-card h3 { margin-bottom: 0.5rem; }
.placeholder-card p { opacity: 0.7; font-size: 0.9rem; }

/* ── Search / Filter Bar ───────────────────────────────────────────── */

.search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.search-bar .form-control { flex: 1; min-width: 200px; }
.search-bar select.form-control { flex: 0 0 auto; min-width: 180px; }

/* ── Footer ────────────────────────────────────────────────────────── */

.uni-logos {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.uni-logos .uni-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 600;
}
.uni-logos .uni-dot {
    width: 28px;
    height: 28px;
    background: var(--bzkf-blue);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 800;
}

footer {
    background: var(--bzkf-blue-dark);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.78rem;
}
footer a {
    color: rgba(255,255,255,0.8);
    margin: 0 0.75rem;
}
footer a:hover { color: var(--white); text-decoration: none; }

/* ── Aktuelles / News Sidebar ──────────────────────────────────────── */

.news-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}
.news-item:last-child { border-bottom: none; }
.news-item .date {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-bottom: 0.2rem;
}
.news-item .title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bzkf-blue-dark);
}

/* ── Kontakt ───────────────────────────────────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ── Animations ────────────────────────────────────────────────────── */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.4s ease-out; }

/* ── University Logos Bar (updated for real logos) ─────────────────── */
.uni-logos {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}
.uni-logos img {
    height: 36px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.uni-logos img:hover {
    opacity: 1;
}

