/* ===================================================
   KI-Nuggets — Globales Stylesheet
   Corporate Design: textil+mode
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* t+m Corporate Palette */
  --primary:      #1c3d5a;  /* Navy    */
  --primary-dark: #14293e;  /* Dunkles Navy */
  --accent:       #f5a623;  /* Orange  */
  --pfad1:        #5cb040;  /* Grün   — Grundlagen */
  --pfad2:        #3db8d8;  /* Cyan   — Verstehen  */
  --pfad3:        #f5a623;  /* Orange — Anwenden   */
  --pfad4:        #7090b8;  /* Stahlblau — Vertiefen */
  --primary-2:    #245279;
  --primary-3:    #1c4a6e;
  --hero-glow-1:  rgba(61,184,216,0.18);
  --hero-glow-2:  rgba(245,166,35,0.12);
  --media-grad-2: #2e6a96;
  --chatbot-grad-2: #245279;
  /* Neutrale Töne */
  --bg:           #f4f6f9;
  --surface:      #ffffff;
  --text:         #1c2b3a;
  --text-muted:   #5a7086;
  --border:       #d8e3ec;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 2px 12px rgba(28,61,90,0.08);
  --shadow-hover: 0 8px 28px rgba(28,61,90,0.16);
  --shadow-card:  0 1px 4px rgba(28,61,90,0.06), 0 4px 16px rgba(28,61,90,0.06);
}

body[data-theme="funky"] {
  --primary:      #0b5c6b;
  --primary-dark: #063a42;
  --accent:       #ff4d6d;
  --pfad1:        #2bd67b;
  --pfad2:        #00c2ff;
  --pfad3:        #ffd166;
  --pfad4:        #ff8a3d;
  --bg:           #8ecce5;
  --surface:      #c5e8f5;
  --text:         #102a33;
  --text-muted:   #3d6272;
  --border:       #a8d4e4;
  --primary-2:    #0f7888;
  --primary-3:    #0a6a78;
  --hero-glow-1:  rgba(0,194,255,0.22);
  --hero-glow-2:  rgba(255,77,109,0.14);
  --media-grad-2: #0f7888;
  --chatbot-grad-2: #0f7888;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

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

/* ---- NAVIGATION ---- */
nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 8px rgba(28,61,90,0.07);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.nav-logo-text-link {
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-logo-dot { color: var(--accent); }

.nav-logo-sep {
  width: 1px;
  height: 26px;
  background: var(--border);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.18s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.22s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  font-family: inherit;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle-track {
  width: 34px;
  height: 18px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  transition: background 0.18s;
}

.theme-toggle-thumb {
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.18s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

body[data-theme="funky"] .theme-toggle {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,255,255,0.8);
}

body[data-theme="funky"] .theme-toggle-track {
  background: var(--accent);
}

body[data-theme="funky"] .theme-toggle-thumb {
  transform: translateX(16px);
}

/* ---- FUNKY THEME: Erweiterte Overrides ---- */

/* Navigation – dunkler Teal-Hintergrund statt Weiß */
body[data-theme="funky"] nav {
  background: rgba(11, 92, 107, 0.97);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(0, 194, 255, 0.2);
  box-shadow: 0 1px 12px rgba(0, 194, 255, 0.15);
}
body[data-theme="funky"] .nav-logo-text { color: white; }
body[data-theme="funky"] .nav-logo-sep  { background: rgba(255,255,255,0.18); }
body[data-theme="funky"] .nav-links a   { color: rgba(255,255,255,0.65); }
body[data-theme="funky"] .nav-links a:hover,
body[data-theme="funky"] .nav-links a.active { color: white; }

/* Buttons – Schatten an neue Akzentfarbe anpassen */
body[data-theme="funky"] .btn-primary {
  box-shadow: 0 2px 10px rgba(255,77,109,0.4);
}
body[data-theme="funky"] .btn-primary:hover {
  background: #ff6b84;
  box-shadow: 0 6px 24px rgba(255,77,109,0.55);
}

/* Hero Fox – Ring in Akzentfarbe */
body[data-theme="funky"] .hero-fox {
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 4px rgba(255,77,109,0.45);
}

/* Pfad-Karten – farbige Hover-Schatten */
body[data-theme="funky"] .pfad-card:hover {
  box-shadow: 0 8px 32px rgba(0,194,255,0.22);
}
body[data-theme="funky"] .pfad-card[data-pfad="1"] .pfad-tag { background: rgba(43,214,123,0.18);  color: #17935d; }
body[data-theme="funky"] .pfad-card[data-pfad="2"] .pfad-tag { background: rgba(0,194,255,0.15);   color: #0080a8; }
body[data-theme="funky"] .pfad-card[data-pfad="3"] .pfad-tag { background: rgba(255,209,102,0.25); color: #9a6000; }
body[data-theme="funky"] .pfad-card[data-pfad="4"] .pfad-tag { background: rgba(255,138,61,0.18);  color: #b04a00; }

/* Video Badge */
body[data-theme="funky"] .video-badge { background: rgba(0,194,255,0.15); color: #0080a8; }

/* Best-Practices Tag */
body[data-theme="funky"] .bp-tag { background: rgba(255,77,109,0.13); color: #b80033; }

/* Selbsttest-Banner */
body[data-theme="funky"] .selftest-banner {
  background: linear-gradient(135deg, rgba(43,214,123,0.13), rgba(0,194,255,0.10));
  border-color: rgba(43,214,123,0.3);
}
body[data-theme="funky"] .selftest-banner::before {
  background: radial-gradient(circle, rgba(43,214,123,0.18), transparent 70%);
}

/* Level-Badges im Glossar */
body[data-theme="funky"] .level-badge.anfaenger       { background: rgba(43,214,123,0.18);  color: #17935d; }
body[data-theme="funky"] .level-badge.fortgeschritten { background: rgba(0,194,255,0.15);   color: #0080a8; }
body[data-theme="funky"] .level-badge.experte         { background: rgba(255,138,61,0.18);  color: #b04a00; }

/* Glossar – Suchfeld und Filter */
body[data-theme="funky"] .filter-btn {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
}
body[data-theme="funky"] .glossar-search:focus {
  border-color: var(--pfad2);
  box-shadow: 0 0 0 3px rgba(0,194,255,0.15);
}
body[data-theme="funky"] .filter-btn.active,
body[data-theme="funky"] .filter-btn:hover {
  border-color: var(--pfad2);
  background: var(--pfad2);
}
body[data-theme="funky"] .alpha-link:hover,
body[data-theme="funky"] .alpha-link.active {
  background: var(--pfad2);
  border-color: var(--pfad2);
}

/* Fortschrittsbalken – Gradient an Funky-Palette */
body[data-theme="funky"] .progress-fill {
  background: linear-gradient(90deg, var(--pfad1), var(--accent));
}

/* Video-Seite Tabs */
body[data-theme="funky"] .tab-btn.active,
body[data-theme="funky"] .tab-btn:hover {
  color: var(--pfad2);
  border-bottom-color: var(--pfad2);
}

/* Selbsttest Auswahl-Labels */
body[data-theme="funky"] .option-label:hover,
body[data-theme="funky"] input[type=radio]:checked + .option-label {
  border-color: var(--pfad2);
  background: rgba(0,194,255,0.06);
}

/* Chatbot FAB – Pulsieren in neuen Farben */
body[data-theme="funky"] #chatbot-fab {
  box-shadow: 0 4px 20px rgba(0,194,255,0.28), 0 0 0 0 rgba(255,77,109,0.5);
  animation: fab-pulse-funky 3s ease-in-out infinite;
}
body[data-theme="funky"] #chatbot-fab:hover {
  box-shadow: 0 8px 28px rgba(0,194,255,0.35), 0 0 0 4px rgba(255,77,109,0.28);
  animation: none;
}
@keyframes fab-pulse-funky {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,194,255,0.28), 0 0 0 0  rgba(255,77,109,0.6); }
  50%       { box-shadow: 0 4px 20px rgba(0,194,255,0.28), 0 0 0 8px rgba(255,77,109,0); }
}

/* Chatbot Send-Button Hover */
body[data-theme="funky"] .chatbot-send:hover {
  background: var(--pfad1);
  color: white;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 50%, var(--primary-3) 100%);
  color: white;
  padding: 5.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, var(--hero-glow-1) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, var(--hero-glow-2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  justify-content: center;
  position: relative;
}

.hero-text { flex: 1; max-width: 600px; }

.hero-mascot {
  flex-shrink: 0;
  width: clamp(120px, 18vw, 210px);
}

.hero-fox {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 4px rgba(61,184,216,0.4);
  border: 3px solid rgba(255,255,255,0.2);
  display: block;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.12rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto 2.2rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 2px 10px rgba(245,166,35,0.35);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245,166,35,0.5);
  background: #fbb030;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.45);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.18s, color 0.18s;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- SECTIONS ---- */
section { padding: 4.5rem 0; }

.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---- PFAD-KARTEN ---- */
.pfad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pfad-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--pfad1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s, box-shadow 0.22s;
  display: block;
  position: relative;
  overflow: hidden;
}

.pfad-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--pfad1);
  opacity: 0;
  transition: opacity 0.2s;
}

.pfad-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.pfad-card[data-pfad="1"] { border-top-color: var(--pfad1); }
.pfad-card[data-pfad="2"] { border-top-color: var(--pfad2); }
.pfad-card[data-pfad="3"] { border-top-color: var(--pfad3); }
.pfad-card[data-pfad="4"] { border-top-color: var(--pfad4); }

.pfad-icon {
  font-size: 2.4rem;
  margin-bottom: 0.9rem;
  display: block;
  line-height: 1;
}

.pfad-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.pfad-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.55;
}

.pfad-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

.pfad-card[data-pfad="1"] .pfad-tag { background: #eef8e9; color: #3a7d25; }
.pfad-card[data-pfad="2"] .pfad-tag { background: #e5f6fc; color: #1b7a96; }
.pfad-card[data-pfad="3"] .pfad-tag { background: #fef5e4; color: #a06800; }
.pfad-card[data-pfad="4"] .pfad-tag { background: #edf1f8; color: #3a5a84; }

/* ---- VIDEO-GRID ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s, box-shadow 0.22s;
  display: block;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.video-thumb {
  background: linear-gradient(135deg, var(--primary) 0%, var(--media-grad-2) 100%);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.video-thumb .play-btn {
  position: absolute;
  width: 54px;
  height: 54px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,0.3);
  transition: background 0.2s, transform 0.2s;
}

.video-card:hover .play-btn {
  background: rgba(255,255,255,0.28);
  transform: scale(1.08);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.video-body { padding: 1.1rem 1.3rem 1.4rem; }

.video-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.video-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 5px;
  background: #eef8e9;
  color: #3a7d25;
}

.video-card h4 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--primary);
  line-height: 1.4;
}

.video-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- BEST PRACTICES ---- */
.bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.bp-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s, box-shadow 0.22s;
  display: block;
}

.bp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.bp-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--primary) 0%, var(--media-grad-2) 100%);
  overflow: hidden;
}

.bp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-body { padding: 1.2rem 1.4rem 1.5rem; }

.bp-meta {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.bp-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--primary);
  line-height: 1.4;
}

.bp-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.bp-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: 99px;
  background: #eef8e9;
  color: #3a7d25;
}

.bp-soon {
  cursor: default;
  opacity: 0.85;
}

.bp-soon .bp-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bp-soon-thumb {
  background: rgba(0,0,0,0.35);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* ---- SELBSTTEST CTA BANNER ---- */
.selftest-banner {
  background: linear-gradient(135deg, #eef8e9, #e5f6fc);
  border: 1.5px solid #b8dfc9;
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.selftest-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(92,176,64,0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.selftest-banner .icon { font-size: 3rem; line-height: 1; }

.selftest-banner h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.selftest-banner p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ---- RESULT FOX (Selbsttest) ---- */
.result-fox {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(28,61,90,0.2);
  border: 3px solid var(--accent);
  flex-shrink: 0;
}

/* ---- LERNPFADE-ÜBERSICHT ---- */
.pfad-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.pfad-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

/* ---- GLOSSAR ---- */
.glossar-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: center;
}

.glossar-search {
  flex: 1;
  min-width: 200px;
  padding: 0.7rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.glossar-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28,61,90,0.1);
}

.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.18s;
  font-family: inherit;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.alpha-link {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.18s;
}

.alpha-link:hover,
.alpha-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.glossar-term {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1rem;
  border-left: 4px solid var(--pfad2);
  transition: box-shadow 0.2s;
}

.glossar-term:hover {
  box-shadow: var(--shadow-hover);
}

.glossar-term h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.glossar-term p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.term-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.6rem;
}

.level-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}

.level-badge.anfaenger { background: #eef8e9; color: #3a7d25; }
.level-badge.fortgeschritten { background: #e5f6fc; color: #1b7a96; }
.level-badge.experte { background: #edf1f8; color: #3a5a84; }

/* ---- VIDEO-DETAILSEITE ---- */
.video-player-wrap {
  background: var(--primary-dark);
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.video-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.7rem 1.4rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: inherit;
  transition: color 0.18s, border-color 0.18s;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* ---- SELBSTTEST-SEITE ---- */
.question-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.option-label:hover,
input[type=radio]:checked + .option-label {
  border-color: var(--primary);
  background: rgba(28,61,90,0.04);
}

/* ---- FOOTER ---- */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.65);
  padding: 3rem 2rem;
  margin-top: 5rem;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.7;
}

footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.18s;
}

footer a:hover { color: var(--accent); }

/* ---- BADGE "BALD" ---- */
.badge-soon {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  letter-spacing: 0.03em;
}

/* ---- FORTSCHRITTSBALKEN ---- */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pfad1), var(--pfad2));
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* ---- FLOATING CHATBOT ---- */
#chatbot-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 4px 20px rgba(28,61,90,0.25), 0 0 0 0 rgba(245,166,35,0.4);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fab-pulse 3s ease-in-out infinite;
  background: var(--accent);
  padding: 0;
}

#chatbot-fab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

#chatbot-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(28,61,90,0.3), 0 0 0 4px rgba(245,166,35,0.3);
  animation: none;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(28,61,90,0.25), 0 0 0 0 rgba(245,166,35,0.5); }
  50%       { box-shadow: 0 4px 20px rgba(28,61,90,0.25), 0 0 0 8px rgba(245,166,35,0); }
}

#chatbot-panel {
  position: fixed;
  bottom: 104px;
  right: 28px;
  z-index: 9001;
  width: 340px;
  max-height: 480px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(28,61,90,0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.88) translateY(16px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s;
  border: 1px solid var(--border);
}

#chatbot-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary), var(--chatbot-grad-2));
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-header img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.chatbot-header-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.chatbot-header-info p {
  font-size: 0.76rem;
  opacity: 0.75;
  margin: 0;
}

.chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  font-family: inherit;
  line-height: 1;
}

.chatbot-close:hover {
  color: white;
  background: rgba(255,255,255,0.15);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chat-msg {
  max-width: 88%;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  animation: msg-in 0.2s ease;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  background: var(--bg);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.1rem 0.8rem;
}

.chat-chip {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  border: 1.5px solid var(--pfad2);
  color: var(--pfad2);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.chat-chip:hover {
  background: var(--pfad2);
  color: white;
}

.chatbot-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem 1rem;
  border-top: 1px solid var(--border);
}

.chatbot-input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.18s;
}

.chatbot-input:focus {
  border-color: var(--primary);
}

.chatbot-send {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.15s;
  flex-shrink: 0;
}

.chatbot-send:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: scale(1.07);
}

/* ---- RESPONSIVE ---- */

/* Kleine Laptops / große Tablets */
@media (max-width: 1024px) {
  .hero { padding: 4rem 1.5rem; }
  .hero-inner { gap: 2rem; }
  section { padding: 3.5rem 0; }
  .container { padding: 0 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.85rem; }
}

/* Tablets */
@media (max-width: 768px) {
  .pfad-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .bp-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 1.5rem; }
  .hero-inner { flex-direction: column-reverse; gap: 1.5rem; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  section { padding: 3rem 0; }
  .selftest-banner { padding: 1.5rem; gap: 1.25rem; }
  .nav-links { display: none; }
  .nav-logo-text { display: none; }
  .nav-logo-sep  { display: none; }
  nav { padding: 0 1rem; }
  #chatbot-panel { width: calc(100vw - 32px); right: 16px; bottom: 96px; }
  footer { padding: 2rem 1.5rem; margin-top: 3rem; }
}

/* Smartphones */
@media (max-width: 640px) {
  .hero { padding: 3rem 1rem; }
  .btn-secondary { display: none; }
  .container { padding: 0 1rem; }
  section { padding: 2.5rem 0; }
  .selftest-banner { flex-direction: column; text-align: center; padding: 1.25rem; }
  .hero-mascot { width: 130px; }
  .pfad-grid { grid-template-columns: 1fr; }
  .pfad-card { padding: 1.5rem 1.2rem; }
  .video-body { padding: 0.9rem 1rem 1.1rem; }
  .btn-primary { padding: 0.75rem 1.6rem; font-size: 0.93rem; }
  .glossar-term { padding: 1.1rem 1.25rem; }
  .question-card { padding: 1.5rem; }
  #chatbot-fab { right: 16px; bottom: 20px; width: 56px; height: 56px; }
  footer { padding: 2rem 1rem; margin-top: 2.5rem; }
}

/* Kleine Smartphones */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }
  .hero-mascot { width: 110px; }
  .pfad-icon { font-size: 2rem; }
  .pfad-card h3 { font-size: 1rem; }
  .alpha-link { width: 28px; height: 28px; font-size: 0.75rem; }
  .glossar-term h3 { font-size: 0.95rem; }
  .video-card h4 { font-size: 0.9rem; }
  .btn-primary { padding: 0.7rem 1.3rem; font-size: 0.88rem; }
  .selftest-banner h3 { font-size: 1.1rem; }
}

/* ===================================================
   BARRIEREFREIHEIT
   =================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

html.a11y-font-lg  { font-size: 112.5%; }
html.a11y-font-xl  { font-size: 125%; }
