/* ============================================================
   FRISIUS & PARTNER – MANDANTENPORTAL
   Design System – Kanzlei CI
   Primärfarbe: #123b62 | Akzent: #b49f82
   Schriften: Barlow (Text) · Cormorant (Überschriften)
   ============================================================ */

/* --- Schriften (lokal) --- */
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/Cormorant-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/Cormorant-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/Cormorant-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/Cormorant-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/Cormorant-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal;
}

/* --- Variablen --- */
:root {
  --primary:       #123b62;
  --primary-dark:  #0d2b47;
  --accent:        #b49f82;
  --accent-light:  #ede3d8;
  --bg:            #f5f3f0;
  --card:          #FFFFFF;
  --text:          #123b62;
  --text-muted:    #6B7280;
  --border:        #e2ddd7;
  --success:       #22894A;
  --error:         #C0392B;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow:        0 2px 12px rgba(27, 43, 91, 0.08);
  --shadow-md:     0 4px 24px rgba(27, 43, 91, 0.13);
  --transition:    0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Typography – Kanzlei CI --- */
h1 { font-family: 'Cormorant', serif; font-size: 2.2rem; font-weight: 500; line-height: 1.2; letter-spacing: 0.01em; }
h2 { font-family: 'Barlow', sans-serif; font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h3 { font-family: 'Barlow', sans-serif; font-size: 1.1rem; font-weight: 600; line-height: 1.35; letter-spacing: 0.02em; }
h4 { font-family: 'Barlow', sans-serif; font-size: 1rem; font-weight: 600; }
p  { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }
small { font-size: 0.85rem; color: var(--text-muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
  color: #fff;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: #9d8a6e;
  text-decoration: none;
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* --- Forms --- */
.form-group { margin-bottom: 1.1rem; }
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 43, 91, 0.12);
}
.form-error {
  font-size: 0.83rem;
  color: var(--error);
  margin-top: 0.3rem;
}
.form-hint {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* --- Cards --- */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.card-sm { padding: 1rem; }
.card-lg { padding: 2rem; }

/* --- Alert --- */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}
.alert.show { display: block; }
.alert-error { background: #fdecea; color: var(--error); border: 1px solid #f5c5c1; }
.alert-success { background: #eafaf1; color: var(--success); border: 1px solid #a8dfbc; }
.alert-info { background: #eef2ff; color: var(--primary); border: 1px solid #c3cfe8; }

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-primary { background: #e8ecf7; color: var(--primary); }
.badge-accent  { background: var(--accent-light); color: #6b5c47; }
.badge-success { background: #e6f9ed; color: var(--success); }
.badge-muted   { background: var(--border); color: var(--text-muted); }

/* --- Progress Bar --- */
.progress-bar-wrap {
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* --- Spinner --- */
.spinner {
  width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   NAVIGATION / HEADER
   ============================================================ */
.topbar {
  background: var(--primary);
  color: #fff;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}
.topbar-brand-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
}
.topbar-brand-icon.logo-icon {
  background: #fff;
  padding: 3px;
}
.topbar-brand-icon.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
}
/* Login-Seite Logo */
.auth-logo-icon.logo-icon {
  background: #fff;
  padding: 6px;
  overflow: hidden;
}
.auth-logo-icon.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.topbar-brand-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.topbar-brand-sub {
  font-family: 'Barlow', sans-serif;
  font-size: 0.68rem;
  opacity: 0.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.topbar-nav a {
  color: rgba(255,255,255,0.8);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.topbar-nav a:hover,
.topbar-nav a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.topbar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topbar-email {
  font-size: 0.85rem;
  opacity: 0.8;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   LANDING / AUTH PAGE
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  top: -100px; right: -100px;
}
.auth-left::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
  bottom: -80px; left: -80px;
}
.auth-logo {
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}
.auth-logo-full {
  max-width: 280px;
  height: auto;
  display: block;
}
/* Fallback icon (nicht mehr genutzt, aber CSS bleibt für Kompatibilität) */
.auth-logo-icon {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}
.auth-logo-text { line-height: 1.2; }
.auth-logo-name { font-size: 1.15rem; font-weight: 700; }
.auth-logo-sub { font-size: 0.75rem; opacity: 0.7; letter-spacing: 0.06em; text-transform: uppercase; }
.auth-headline {
  font-family: 'Cormorant', serif;
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
}
.auth-headline span { color: var(--accent); }
.auth-desc {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 2.5rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
}
.auth-feature-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: var(--bg);
}
.auth-box {
  width: 100%;
  max-width: 420px;
}
.auth-tabs {
  display: flex;
  background: var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 1.75rem;
}
.auth-tab {
  flex: 1;
  padding: 0.55rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: calc(var(--radius) - 2px);
  transition: all var(--transition);
  color: var(--text-muted);
}
.auth-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form h2 { margin-bottom: 0.4rem; }
.auth-form .subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.auth-divider {
  text-align: center;
  margin: 1.2rem 0;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.auth-legal {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.page-header {
  margin-bottom: 2rem;
}
.page-header h1 { margin-bottom: 0.3rem; }
.page-header p { color: var(--text-muted); }

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title span { color: var(--accent); }

/* Course Cards */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.course-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}
.course-card-header {
  padding: 1.5rem 1.5rem 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, #1a4f7a 100%);
  color: #fff;
  position: relative;
  min-height: 100px;
}
.course-card-emoji {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.course-card-header h3 { color: #fff; margin-bottom: 0.25rem; }
.course-card-header p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin: 0; }
.course-card-badge {
  position: absolute;
  top: 1rem; right: 1rem;
}
.course-card-body { padding: 1rem 1.5rem 1.25rem; }
.course-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.course-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* Guide Cards */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.guide-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}
.guide-icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.guide-info h4 { margin-bottom: 0.2rem; font-size: 0.95rem; }
.guide-info p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon-blue { background: #e8ecf7; }
.stat-icon-gold { background: var(--accent-light); }
.stat-icon-green { background: #e6f9ed; }
.stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1; margin-bottom: 0.2rem; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); }

/* ============================================================
   COURSE PAGE
   ============================================================ */
.course-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4f7a 100%);
  color: #fff;
  padding: 3rem 0;
  margin-bottom: 2rem;
}
.course-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.course-hero h1 { color: #fff; font-size: 1.8rem; margin-bottom: 0.5rem; }
.course-hero p { color: rgba(255,255,255,0.8); margin-bottom: 1.25rem; }
.course-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}
.course-hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.85);
}
.course-progress-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-width: 220px;
  text-align: center;
}
.course-progress-card .big-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.course-progress-card p { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin-bottom: 0.75rem; }

/* Lesson List */
.lesson-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.lesson-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.lesson-item:hover {
  border-color: var(--primary);
  transform: translateX(3px);
  text-decoration: none;
  color: inherit;
}
.lesson-item.completed { border-color: var(--success); }
.lesson-item.locked { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.lesson-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--text-muted);
}
.lesson-item.completed .lesson-num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.lesson-info { flex: 1; }
.lesson-info h4 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.lesson-info p  { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.lesson-duration {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.lesson-type-icon { font-size: 1.1rem; }

/* ============================================================
   LESSON (VIDEO) PAGE
   ============================================================ */
.lesson-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.lesson-main {}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1a4f7a 100%);
  color: #fff;
  gap: 1rem;
}
.video-placeholder .play-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: transform var(--transition);
}
.video-placeholder .play-btn:hover { transform: scale(1.08); }
.lesson-content-card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.5rem; }
.lesson-content-card h2 { margin-bottom: 0.35rem; }
.lesson-content-card .lesson-meta-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.lesson-text { font-size: 0.97rem; line-height: 1.75; color: #333; }
.lesson-text h3 { margin: 1.25rem 0 0.5rem; color: var(--primary); }
.lesson-text ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.lesson-text ul li { margin-bottom: 0.3rem; }
.lesson-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 1rem;
}

/* Sidebar */
.lesson-sidebar {}
.sidebar-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.sidebar-header {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.25rem;
}
.sidebar-header h4 { color: #fff; font-size: 0.9rem; margin: 0; }
.sidebar-header p { color: rgba(255,255,255,0.7); font-size: 0.8rem; margin: 0.25rem 0 0; }
.sidebar-lessons { padding: 0.5rem 0; max-height: 70vh; overflow-y: auto; }
.sidebar-lesson {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
}
.sidebar-lesson:hover { background: var(--bg); text-decoration: none; color: inherit; }
.sidebar-lesson.active { background: #eef2ff; border-left-color: var(--primary); color: var(--primary); font-weight: 600; }
.sidebar-lesson.completed { color: var(--success); }
.sidebar-lesson-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--text-muted);
}
.sidebar-lesson.completed .sidebar-lesson-num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.sidebar-lesson.active .sidebar-lesson-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.downloads-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-top: 1rem;
}
.download-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  font-size: 0.88rem;
  transition: color var(--transition);
}
.download-item:last-child { border-bottom: none; }
.download-item:hover { color: var(--primary); text-decoration: none; }
.download-icon {
  width: 36px; height: 36px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq-search-bar {
  position: relative;
  margin-bottom: 2rem;
}
.faq-search-bar input {
  padding-left: 2.75rem;
  font-size: 1rem;
  height: 52px;
}
.faq-search-bar .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
}
.faq-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.faq-cat-btn {
  padding: 0.4rem 1rem;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}
.faq-cat-btn:hover,
.faq-cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.faq-section { margin-bottom: 2.5rem; }
.faq-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  gap: 1rem;
  transition: color var(--transition);
  user-select: none;
}
.faq-question:hover { color: var(--primary); }
.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
  font-size: 1.1rem;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  font-size: 0.93rem;
  color: #444;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-answer { display: block; }
.faq-answer p { margin-bottom: 0.6rem; }
.faq-answer ul { list-style: disc; padding-left: 1.25rem; }
.faq-answer ul li { margin-bottom: 0.3rem; }

/* ============================================================
   LOCKED / TEASER STATES
   ============================================================ */

/* Gesperrte Kurs-Karte */
.course-card.locked .course-card-header {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  position: relative;
}
.course-card.locked .course-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}
.course-card.locked:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Lock-Badge auf Karte */
.lock-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 99px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 1;
}

/* Teaser-Modal / Overlay auf der Kurs-Karte */
.course-card.locked .course-card-body {
  background: #fafafa;
}
.course-card-teaser-preview {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.teaser-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.teaser-highlights li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.teaser-highlights li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* Lektion gesperrt (auf course.html) */
.lesson-item.access-locked {
  opacity: 1;
  pointer-events: auto;
  cursor: default;
  border-color: transparent;
  background: #fafafa;
}
.lesson-item.access-locked:hover {
  transform: none;
  border-color: transparent;
}
.lesson-item.access-locked .lesson-num {
  background: #e5e7eb;
  color: #9ca3af;
  border-color: #e5e7eb;
}
.lesson-lock-icon {
  font-size: 1rem;
  color: #9ca3af;
}

/* Lesson-Teaser-Box (auf lesson.html für gesperrte Kurse) */
.lesson-teaser-box {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
}
.lesson-teaser-preview {
  font-size: 0.97rem;
  line-height: 1.75;
  color: #555;
  text-align: left;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.25rem 0 1.75rem;
  font-style: italic;
}
.lesson-teaser-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4f7a 100%);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: #fff;
  text-align: center;
  margin-top: 1.5rem;
}
.lesson-teaser-cta h3 { color: #fff; margin-bottom: 0.4rem; }
.lesson-teaser-cta p { color: rgba(255,255,255,0.8); margin-bottom: 1.25rem; font-size: 0.95rem; }
.lesson-teaser-cta .btn-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Video gesperrt */
.video-locked {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 0.75rem;
}
.video-locked .lock-icon-big {
  font-size: 3rem;
  opacity: 0.7;
}
.video-locked p { opacity: 0.75; font-size: 0.9rem; }

/* ============================================================
   ADMIN PAGE
   ============================================================ */
.admin-page { min-height: 100vh; background: var(--bg); }
.admin-header {
  background: var(--primary);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header h1 { font-size: 1.1rem; color: #fff; margin: 0; }
.admin-content { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }
.admin-section { margin-bottom: 2.5rem; }

.access-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}
.access-table th {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}
.access-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.access-table tr:last-child td { border-bottom: none; }
.access-table tr:hover td { background: var(--bg); }
.access-table .course-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0.15rem;
  background: #e8ecf7;
  color: var(--primary);
}
.access-table .course-pill.granted {
  background: #e6f9ed;
  color: var(--success);
}
.access-table .course-pill button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  font-size: 0.9rem;
  padding: 0;
  line-height: 1;
}
.access-table .course-pill button:hover { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.83rem;
  margin-top: 4rem;
}
.footer a { color: rgba(255,255,255,0.65); }
.footer a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 2rem 1.25rem; min-height: 100vh; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { order: -1; }
  .sidebar-card { position: static; }
  .course-hero-inner { grid-template-columns: 1fr; }
  .course-progress-card { display: none; }
  .stats-row { grid-template-columns: 1fr; }
  .topbar-nav { display: none; }
  .topbar-email { display: none; }
}
@media (max-width: 600px) {
  .auth-right { padding: 1.5rem 1rem; }
  .page-container { padding: 1.25rem 1rem; }
  h1 { font-size: 1.5rem; }
  .guide-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.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; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }
