/* ===== Vorlesungshub HKA — Stylesheet ===== */
/* Extrahiert aus vorlesung-digitale-pe.html + Erweiterungen */

:root {
  --kb-blue: #020A8C;
  --kb-blue-light: #1a22a8;
  --kb-blue-hover: #0310b5;
  --kb-dark: #303030;
  --kb-gray: #6b7280;
  --kb-light: #f3f4f6;
  --kb-white: #ffffff;
  --kb-accent: #f59e0b;
  --kb-green: #10b981;
  --kb-red: #ef4444;
  --kb-orange: #f97316;
  --radius: 12px;
  --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);
}

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

body {
  font-family: 'Work Sans', sans-serif;
  color: var(--kb-dark);
  background: var(--kb-light);
  line-height: 1.6;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > footer { margin-top: auto; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--kb-blue);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 10px rgba(2,10,140,0.3);
}
nav .logo {
  color: white; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
}
nav .logo span { opacity: 0.6; font-weight: 300; font-size: 0.85rem; }
nav ul {
  list-style: none; display: flex; gap: 0.25rem;
}
nav ul li a {
  color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.85rem;
  font-weight: 400; padding: 0.5rem 1rem; border-radius: 8px;
  transition: all 0.2s;
}
nav ul li a:hover, nav ul li a.active {
  color: white; background: rgba(255,255,255,0.15);
}
.hamburger { display: none; color: white; font-size: 1.5rem; cursor: pointer; background: none; border: none; }

/* ===== HERO ===== */
.hero {
  background: var(--kb-blue);
  padding: 5.5rem 2rem 2rem;
  color: white;
  text-align: center;
}
.hero h1 {
  font-size: 2.2rem; font-weight: 600; letter-spacing: -0.03em;
  margin-bottom: 0.5rem; line-height: 1.2;
}
.hero .subtitle {
  font-size: 1rem; font-weight: 300; opacity: 0.7; max-width: 600px; margin: 0 auto 1.5rem;
}
.hero-meta {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  font-size: 0.9rem; opacity: 0.75;
}
.hero-meta div { display: flex; align-items: center; gap: 0.4rem; }

/* ===== SECTIONS ===== */
.section { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-page { display: none; }
.section-page.active { display: block; }

.section-title {
  font-size: 1.8rem; font-weight: 600; color: var(--kb-blue);
  margin-bottom: 0.5rem; letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1rem; color: var(--kb-gray); margin-bottom: 2rem; font-weight: 300;
}

/* ===== CARDS ===== */
.card {
  background: white; border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); margin-bottom: 1.25rem;
  border-left: 4px solid transparent;
  transition: all 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.card.highlight { border-left-color: var(--kb-blue); }
.card.tomorrow { border-left-color: var(--kb-accent); background: #fffbeb; }
.card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--kb-dark); }
.card p { font-size: 0.92rem; color: var(--kb-gray); }

/* ===== TIMELINE ===== */
.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 28px; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(to bottom, var(--kb-blue), var(--kb-blue-light), #ddd);
  border-radius: 2px;
}
.timeline-item {
  position: relative; padding-left: 72px; margin-bottom: 1.5rem;
  cursor: pointer;
}
.timeline-dot {
  position: absolute; left: 16px; top: 6px;
  width: 28px; height: 28px; border-radius: 50%;
  background: white; border: 3px solid var(--kb-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 600; color: var(--kb-blue);
  z-index: 1; transition: all 0.2s;
}
.timeline-item:hover .timeline-dot { background: var(--kb-blue); color: white; }
.timeline-item.tomorrow .timeline-dot { background: var(--kb-accent); border-color: var(--kb-accent); color: white; }
.timeline-content { background: white; border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.timeline-content h3 { font-size: 1rem; font-weight: 600; color: var(--kb-dark); margin-bottom: 0.3rem; }
.timeline-content .date { font-size: 0.8rem; color: var(--kb-gray); margin-bottom: 0.5rem; }
.timeline-content p { font-size: 0.88rem; color: var(--kb-gray); }
.timeline-content .tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.6rem; }
.tag {
  font-size: 0.72rem; padding: 0.2rem 0.6rem; border-radius: 20px;
  font-weight: 500; background: #e8eaff; color: var(--kb-blue);
}
.tag.tool { background: #ecfdf5; color: #059669; }
.tag.check { background: #fef3c7; color: #92400e; }
.timeline-detail {
  display: none; margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid #eee; font-size: 0.88rem; color: var(--kb-dark);
}
.timeline-detail.open { display: block; }
.timeline-detail ul { padding-left: 1.2rem; margin-top: 0.3rem; }
.timeline-detail ul li { margin-bottom: 0.3rem; color: var(--kb-gray); }

/* Fortschritts-Status in der Timeline */
.timeline-item.done .timeline-dot {
  background: var(--kb-green); border-color: var(--kb-green); color: white;
}
.timeline-item.done .timeline-content {
  border-left: 3px solid var(--kb-green);
}
.timeline-item.current .timeline-dot {
  background: var(--kb-accent); border-color: var(--kb-accent); color: white;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}
.timeline-item.current .timeline-content {
  border-left: 3px solid var(--kb-accent);
}

/* Fortschrittsbalken */
.progress-bar-container {
  background: white; border-radius: var(--radius); padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
}
.progress-bar-container .progress-label {
  font-size: 0.85rem; color: var(--kb-gray); white-space: nowrap;
}
.progress-bar {
  flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--kb-green), #34d399);
  border-radius: 4px; transition: width 0.5s ease;
}

/* ===== GROUPS TABLE ===== */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.group-card {
  background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: all 0.2s;
}
.group-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.group-header {
  padding: 1rem 1.25rem; color: white; font-weight: 600; font-size: 0.95rem;
  display: flex; justify-content: space-between; align-items: center;
}
.group-header .badge { font-size: 0.72rem; background: rgba(255,255,255,0.25); padding: 0.15rem 0.6rem; border-radius: 20px; font-weight: 400; }
.group-body { padding: 1.25rem; }
.group-body h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--kb-dark); }
.group-body p { font-size: 0.85rem; color: var(--kb-gray); margin-bottom: 0.75rem; }
.group-body .deliverables { font-size: 0.82rem; }
.group-body .deliverables li { margin-bottom: 0.2rem; color: var(--kb-gray); }
.hka { background: linear-gradient(135deg, #1e3a5f, #2d5a87); }
.bnk { background: linear-gradient(135deg, var(--kb-blue), var(--kb-blue-light)); }

/* ===== CHECKLIST ===== */
.checklist-section { margin-bottom: 1.5rem; }
.checklist-header {
  display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem;
  background: white; border-radius: var(--radius); cursor: pointer;
  box-shadow: var(--shadow); transition: all 0.2s; user-select: none;
}
.checklist-header:hover { box-shadow: var(--shadow-lg); }
.checklist-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--kb-blue);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.85rem; flex-shrink: 0;
}
.checklist-header h3 { font-size: 1rem; font-weight: 600; flex: 1; }
.checklist-arrow { transition: transform 0.2s; color: var(--kb-gray); }
.checklist-header.open .checklist-arrow { transform: rotate(180deg); }
.checklist-body {
  display: none; padding: 1rem 1.25rem 1rem 4rem;
  background: white; margin-top: -8px; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.checklist-body.open { display: block; }
.check-item {
  display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6; font-size: 0.9rem;
}
.check-item:last-child { border: none; }
.check-item input[type="checkbox"] {
  margin-top: 0.2rem; width: 18px; height: 18px; accent-color: var(--kb-blue);
  flex-shrink: 0; cursor: pointer;
}
.check-item label { cursor: pointer; color: var(--kb-gray); }
.check-item label strong { color: var(--kb-dark); font-weight: 500; }

/* ===== TOOLS ===== */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.tool-card {
  background: white; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  text-align: center; transition: all 0.2s;
}
.tool-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tool-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.tool-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.tool-card p { font-size: 0.85rem; color: var(--kb-gray); }
.tool-card a { display: inline-block; margin-top: 0.75rem; font-size: 0.82rem; color: var(--kb-blue); font-weight: 500; text-decoration: none; }
.tool-card a:hover { text-decoration: underline; }

/* ===== ASSESSMENT ===== */
.assessment-box {
  background: white; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.assessment-part { text-align: center; }
.assessment-part .percent { font-size: 3rem; font-weight: 700; color: var(--kb-blue); }
.assessment-part h4 { font-size: 1rem; font-weight: 600; margin: 0.25rem 0; }
.assessment-part p { font-size: 0.85rem; color: var(--kb-gray); }

/* ===== KICKOFF DETAIL ===== */
.kickoff-block {
  background: white; border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); margin-bottom: 1.25rem;
}
.kickoff-block h3 {
  font-size: 1.05rem; font-weight: 600; color: var(--kb-blue);
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem;
}
.kickoff-time {
  font-size: 0.78rem; background: var(--kb-blue); color: white;
  padding: 0.15rem 0.6rem; border-radius: 20px; font-weight: 500;
}
.kickoff-block ul { padding-left: 1.2rem; }
.kickoff-block ul li { margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--kb-gray); }
.kickoff-block p { font-size: 0.9rem; color: var(--kb-gray); }

/* ===== STARTSEITE: KURS-KACHELN ===== */
.hub-header {
  background: var(--kb-blue);
  padding: 5rem 2rem 1.75rem;
  color: white;
  text-align: center;
}
.hub-header h1 {
  font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.3rem;
}
.hub-header p { font-size: 0.9rem; opacity: 0.6; font-weight: 300; }

.course-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto; padding: 3rem 2rem;
}
.course-card {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.3s;
}
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.course-card-header {
  background: var(--kb-blue);
  padding: 1.25rem 1.5rem; color: white;
}
.course-card-header h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.3rem; }
.course-card-header .meta {
  font-size: 0.82rem; opacity: 0.8; display: flex; gap: 1rem; flex-wrap: wrap;
}
.course-card-body { padding: 1.5rem; }
.course-card-body p { font-size: 0.9rem; color: var(--kb-gray); margin-bottom: 1rem; }
.course-card-actions {
  display: flex; gap: 0.75rem; align-items: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.2rem; border-radius: 8px; font-size: 0.85rem;
  font-weight: 500; text-decoration: none; transition: all 0.2s;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary {
  background: var(--kb-blue); color: white;
}
.btn-primary:hover { background: var(--kb-blue-hover); }
.btn-secondary {
  background: transparent; color: var(--kb-blue); border: 1.5px solid var(--kb-blue);
}
.btn-secondary:hover { background: var(--kb-blue); color: white; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

/* ===== LOGIN-SEITE ===== */
.login-container {
  max-width: 420px; margin: 0 auto; padding: 2rem;
}
.login-box {
  background: white; border-radius: var(--radius); padding: 2.5rem;
  box-shadow: var(--shadow-lg); text-align: center;
}
.login-box h2 {
  font-size: 1.4rem; font-weight: 600; color: var(--kb-blue); margin-bottom: 0.5rem;
}
.login-box .login-subtitle {
  font-size: 0.9rem; color: var(--kb-gray); margin-bottom: 1.5rem;
}
.login-box input[type="password"] {
  width: 100%; padding: 0.8rem 1rem; border: 2px solid #e5e7eb;
  border-radius: 8px; font-size: 1rem; font-family: inherit;
  transition: border-color 0.2s; text-align: center;
  letter-spacing: 0.1em;
}
.login-box input[type="password"]:focus {
  outline: none; border-color: var(--kb-blue);
}
.login-box .btn { width: 100%; justify-content: center; margin-top: 1rem; padding: 0.8rem; }
.login-error {
  background: #fef2f2; color: var(--kb-red); padding: 0.6rem 1rem;
  border-radius: 8px; font-size: 0.85rem; margin-bottom: 1rem;
}

/* ===== DOZENTEN-INFO ===== */
.dozent-info {
  background: white; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); margin-bottom: 1.5rem;
  display: flex; align-items: flex-start; gap: 1.25rem;
  border-left: 4px solid var(--kb-blue);
}
.dozent-info .dozent-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--kb-blue); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.dozent-info h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.dozent-info p { font-size: 0.85rem; color: var(--kb-gray); }
.dozent-info a { color: var(--kb-blue); text-decoration: none; }
.dozent-info a:hover { text-decoration: underline; }

/* ===== DOWNLOADS-BEREICH ===== */
.download-list { display: flex; flex-direction: column; gap: 0.75rem; }
.download-item {
  background: white; border-radius: var(--radius); padding: 1rem 1.25rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem;
  transition: all 0.2s;
}
.download-item:hover { box-shadow: var(--shadow-lg); }
.download-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: #e8eaff; color: var(--kb-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.download-item .download-info { flex: 1; }
.download-item .download-info h4 { font-size: 0.92rem; font-weight: 500; }
.download-item .download-info p { font-size: 0.78rem; color: var(--kb-gray); }
.download-actions { display: flex; gap: 0.5rem; }

/* ===== EMBED-CONTAINER ===== */
.embed-container {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.embed-container .embed-title {
  padding: 0.75rem 1.25rem; font-size: 0.9rem; font-weight: 500;
  background: var(--kb-light); border-bottom: 1px solid #e5e7eb;
}
.embed-container iframe {
  display: block; border: none; width: 100%;
}

/* ===== INTERAKTIONEN ===== */
.interaction-box {
  background: white; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); margin-bottom: 1.5rem;
  border-left: 4px solid var(--kb-accent);
}
.interaction-box h4 {
  font-size: 1rem; font-weight: 600; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.poll-option {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0;
  cursor: pointer;
}
.poll-option input[type="radio"] {
  accent-color: var(--kb-blue); width: 18px; height: 18px;
}
.poll-option label { font-size: 0.9rem; cursor: pointer; flex: 1; }
.poll-bar {
  height: 6px; background: #e5e7eb; border-radius: 3px; margin-top: 0.3rem;
  overflow: hidden;
}
.poll-bar-fill {
  height: 100%; background: var(--kb-blue); border-radius: 3px;
  transition: width 0.5s ease;
}
.poll-result {
  font-size: 0.78rem; color: var(--kb-gray); text-align: right;
}

/* ===== DRUCKFUNKTION-BUTTON ===== */
.print-btn {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 50;
  background: white; color: var(--kb-blue); border: 2px solid var(--kb-blue);
  padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.82rem;
  font-weight: 500; cursor: pointer; box-shadow: var(--shadow-lg);
  transition: all 0.2s; font-family: inherit;
  display: flex; align-items: center; gap: 0.4rem;
}
.print-btn:hover { background: var(--kb-blue); color: white; }

/* ===== FOOTER ===== */
footer {
  background: transparent; color: #bbb; padding: 0.75rem 1rem; text-align: center;
}
footer p { font-size: 0.65rem; color: #ccc; }
footer a { color: #bbb; text-decoration: none; font-size: 0.65rem; }
footer a:hover { color: #888; text-decoration: underline; }
footer .footer-links {
  margin-top: 0.2rem; display: flex; justify-content: center; gap: 0.75rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav ul { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--kb-blue); flex-direction: column; padding: 1rem; }
  nav ul.open { display: flex; }
  .hamburger { display: block; }
  .hero h1 { font-size: 1.6rem; }
  .hero { padding: 5rem 1.5rem 1.5rem; }
  .hub-header h1 { font-size: 1.4rem; }
  .hub-header { padding: 4.5rem 1.5rem 1.5rem; }
  .section { padding: 2rem 1rem; }
  .course-grid { grid-template-columns: 1fr; padding: 2rem 1rem; }
  .groups-grid { grid-template-columns: 1fr; }
  .assessment-box { grid-template-columns: 1fr; }
  .timeline-item { padding-left: 60px; }
  .dozent-info { flex-direction: column; }
  .print-btn { bottom: 1rem; right: 1rem; }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Print */
@media print {
  nav, .hamburger, footer, .print-btn { display: none; }
  .section-page { display: block !important; page-break-before: always; }
  .hero { padding: 2rem; }
  .card, .timeline-content, .kickoff-block { box-shadow: none; border: 1px solid #ddd; }
}
