/* ============================================================
   KI-Club Kurs — zentrales Stylesheet
   Design-System: tobiasnase.de (Design-Tokens, Fonts, Buttons 1:1)
   ============================================================ */

:root {
  --bg:        #17052d;
  --bg-soft:   #17052d;
  --bg-card:   #220840;
  --bg-card-2: #2a1050;
  --violet:    #7b2ff7;
  --violet-2:  #a855f7;
  --violet-3:  #c77dff;
  --text:      #ffffff;
  --text-soft: #cbb6e6;
  --text-mut:  #9887b0;
  --good:      #a855f7;
  --bad:       #ef4444;
  --border:    rgba(168, 85, 247, 0.18);
  --border-2:  rgba(168, 85, 247, 0.30);
  --radius:    4px;
  --maxw:      1080px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Inter", sans-serif;
  --font-pixel: "Pixelify Sans", "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, monospace;
  --grad-head: linear-gradient(100deg, #f5ecff 0%, #dcc0ff 26%, #c197fb 50%, #a76bf3 74%, #8b3ff0 100%);
  --success:   #2fd57b;
  --shadow:    0 12px 40px rgba(123, 47, 247, 0.20);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: var(--violet-3); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

/* ---------- Header (Glas-Look wie tobiasnase.de) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 5, 45, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { font-family: var(--font-pixel); font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: 0.01em; display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand span { color: var(--violet-3); }
.brand img { width: clamp(120px, 12vw, 158px); height: auto; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--text-soft); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.nav-link:hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons (TN-Vorlage: 4px, Verlaufs-Stroke, Glitch, Leiterbahn) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 2rem;
  font-family: "Inter", sans-serif;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.01em;
  text-align: center;
  border-radius: var(--radius); cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* Premium-Aufbau: Fill-Verlauf + Stroke-Verlauf (border-box-Trick),
   solider Ring, weicher Schatten, Text-Schatten, seltener Glitch */
.btn--primary {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, #A055FF 0%, #8B36F9 55%, #7B2FF7 100%) padding-box,
    linear-gradient(180deg, #C18CFF 0%, #6C1EDC 100%) border-box;
  border-color: transparent;
  box-shadow:
    0 0 0 2px #6318C9,
    0 4px 4px rgba(99, 24, 201, 0.20);
  text-shadow: 0 2px 4px rgba(99, 24, 201, 0.5);
  animation: btnGlitch 4s infinite steps(1, end);
}
@keyframes btnGlitch {
  0%, 91%  { transform: none; text-shadow: 0 2px 4px rgba(99, 24, 201, 0.5); filter: none; }
  92%      { transform: translate(-2px, 1px) skewX(-5deg);
             text-shadow: -3px 0 0 rgba(255, 77, 240, 0.85), 3px 0 0 rgba(77, 232, 255, 0.85); }
  93.5%    { transform: translate(2px, -1px) skewX(4deg);
             text-shadow: 3px 0 0 rgba(255, 77, 240, 0.85), -3px 0 0 rgba(77, 232, 255, 0.85);
             filter: hue-rotate(18deg) saturate(1.4); }
  95%      { transform: translate(-1px, 0);
             text-shadow: -2px 0 0 rgba(77, 232, 255, 0.7), 2px 0 0 rgba(255, 77, 240, 0.7); filter: none; }
  96.5%    { transform: translate(1px, 1px) skewX(-2deg);
             text-shadow: 2px 0 0 rgba(255, 77, 240, 0.5), -2px 0 0 rgba(77, 232, 255, 0.5); }
  98%, 100% { transform: none; text-shadow: 0 2px 4px rgba(99, 24, 201, 0.5); filter: none; }
}
/* Leiterbahn (per fx.js eingefügtes SVG): feine Bahn + 2 Strom-Impulse bei Hover */
.btn-circuit {
  position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px);
  pointer-events: none; opacity: 0; transition: opacity 0.18s var(--ease);
  overflow: visible; z-index: 1;
}
.btn-label { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-circuit rect.c-run1, .btn-circuit rect.c-run2 {
  x: 1px; y: 1px; width: calc(100% - 2px); height: calc(100% - 2px); rx: 7px; fill: none;
}
.btn-circuit .c-run1 {
  stroke: #4DE8FF; stroke-width: 2; stroke-dasharray: 12 88; stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(77, 232, 255, 0.9));
  animation: circuitRun 1.5s linear infinite;
}
.btn-circuit .c-run2 {
  stroke: #F0E7FF; stroke-width: 2; stroke-dasharray: 8 92; stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(199, 125, 255, 0.9));
  animation: circuitRun 1.5s linear infinite; animation-delay: -0.75s;
}
@keyframes circuitRun { to { stroke-dashoffset: -100; } }
.btn--primary:hover .btn-circuit, .btn--primary:active .btn-circuit { opacity: 1; }
/* Dauerhaft laufende Leiterbahn (z. B. Rahmen des Willkommens-Videos) */
.btn-circuit.circuit--always { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .btn--primary { animation: none; }
  .btn-circuit .c-run1, .btn-circuit .c-run2 { animation: none; }
  .btn-circuit.circuit--always { opacity: 0; }
}

/* ---------- Überschriften im KI-Look (Pixelify Sans, TN-Vorgabe) ---------- */
.member-header h1, .course-heading, .module-block h2,
.section-title, .auth-card h1, .lesson-view h1, .legal h1 {
  font-family: var(--font-pixel);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn--ghost { color: var(--text); background: rgba(168, 85, 247, 0.08); border: 1px solid var(--border-2); }
.btn--ghost:hover { background: rgba(168, 85, 247, 0.16); }
.btn--small { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto;
  height: 480px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(123, 47, 247, 0.25), transparent 65%);
}
.hero > * { position: relative; }
.eyebrow {
  font-family: var(--font-mono);
  display: inline-block; padding: 6px 16px; border-radius: var(--radius);
  border: 1px solid var(--border-2); background: var(--bg-card);
  color: var(--violet-3); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 24px;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15;
  letter-spacing: -0.02em; font-weight: 800; margin-bottom: 20px;
}
h1 .grad, .grad {
  background: var(--grad-head);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--text-soft); max-width: 640px; margin: 0 auto 32px;
}
.hero-note { margin-top: 14px; color: var(--text-mut); font-size: 0.88rem; font-family: var(--font-mono); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 12px; text-align: center; }
.section-sub { font-family: var(--font-mono); color: var(--text-soft); font-size: 0.98rem; text-align: center; max-width: 560px; margin: 0 auto 40px; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.2s var(--ease);
}
.card:hover { border-color: var(--border-2); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 0.95rem; }
.card .icon { font-size: 1.6rem; margin-bottom: 14px; }

/* ---------- Kursinhalt (Landing) ---------- */
.curriculum { max-width: 720px; margin: 0 auto; display: grid; gap: 14px; }
.curriculum__module {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px;
}
.curriculum__module h3 { font-size: 1.05rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.curriculum__module h3 .num {
  font-family: var(--font-pixel);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--radius); flex-shrink: 0;
  background: linear-gradient(180deg, #A055FF 0%, #7B2FF7 100%);
  color: #fff; font-size: 0.95rem; font-weight: 700;
}
.curriculum__module ul { list-style: none; }
.curriculum__module li { color: var(--text-soft); font-size: 0.95rem; padding: 5px 0 5px 26px; position: relative; }
.curriculum__module li::before { content: "▸"; position: absolute; left: 8px; color: var(--violet-2); }

/* ---------- Preisbox ---------- */
.price-box {
  max-width: 460px; margin: 0 auto; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 40px 32px; box-shadow: var(--shadow);
}
.price-box .price { font-family: var(--font-pixel); font-size: 3rem; font-weight: 700; letter-spacing: 0; }
/* Streichpreis (Einführungspreis-Anker) */
.price-old { text-decoration: line-through; color: var(--text-mut); font-weight: 500; }
.price-old--big { font-size: 1.6rem; vertical-align: 12px; margin-right: 6px; }
.price-badge {
  font-family: var(--font-mono); color: var(--violet-3); font-weight: 700;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px;
}
.price-note { font-family: var(--font-mono); font-weight: 400; color: var(--text-mut); font-size: 0.72rem; display: block; }
.price-box .price small { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 400; color: var(--text-mut); }
.price-box ul { list-style: none; text-align: left; margin: 24px 0 28px; }
.price-box li { padding: 7px 0 7px 30px; position: relative; color: var(--text); font-size: 0.98rem; }
.price-box li::before { content: "✓"; position: absolute; left: 4px; color: var(--violet-2); font-weight: 800; }
.price-box .legal-hint { margin-top: 14px; font-size: 0.78rem; color: var(--text-mut); }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 24px;
}
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--violet-3); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-soft); margin-top: 12px; font-size: 0.95rem; }

/* ---------- Formulare (Login etc.) ---------- */
.auth-card {
  max-width: 440px; margin: 80px auto; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 36px;
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 10px; }
.auth-card .sub { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { font-family: var(--font-mono); display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-soft); margin-bottom: 8px; }
.field input {
  width: 100%; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--border-2); background: var(--bg);
  color: var(--text); font-size: 1rem; font-family: "Inter", sans-serif;
  transition: border-color 0.2s var(--ease);
}
.field input:focus { outline: none; border-color: var(--violet-2); }
.form-msg { margin-top: 16px; font-size: 0.92rem; display: none; }
.form-msg--ok { color: var(--success); display: block; }
.form-msg--err { color: var(--bad); display: block; }

/* ---------- Member-Bereich ---------- */
.member-hero { padding-top: 40px; margin-bottom: 44px; position: relative; }
.member-hero > * { position: relative; }
.member-hero .video-frame { margin-top: 20px; }
.member-hero .video-wrap { box-shadow: var(--shadow); }

/* Rahmen um Videos, der Effekte (Leiterbahn, Pins) NICHT abschneidet */
.video-frame { position: relative; }
.member-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 0 0 8px; }
.member-header h1 { font-size: 1.8rem; margin: 0; }
.member-sub { font-family: var(--font-mono); color: var(--text-soft); font-size: 0.92rem; margin-top: 4px; }
.course-heading { font-size: 1.35rem; margin-bottom: 14px; }
.progress-bar { height: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 20px 0 36px; }
.progress-bar__fill { height: 100%; background: linear-gradient(90deg, var(--violet), var(--violet-2)); transition: width 0.4s var(--ease); }
.progress-label { font-family: var(--font-mono); color: var(--text-soft); font-size: 0.88rem; margin-bottom: 8px; }

.module-block { margin-bottom: 28px; }
.module-block h2 { font-size: 1.15rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.module-block h2 .num {
  font-family: var(--font-pixel);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--radius); flex-shrink: 0;
  background: linear-gradient(180deg, #A055FF 0%, #7B2FF7 100%);
  color: #fff; font-size: 1rem; font-weight: 700;
}
.lesson-list { display: grid; gap: 10px; }
.lesson-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; color: var(--text);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}
.lesson-item:hover { border-color: var(--border-2); background: var(--bg-card-2); text-decoration: none; transform: translateX(3px); }
.lesson-item .check {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border-2); display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: transparent;
}
.lesson-item.done .check { background: var(--success); border-color: var(--success); color: #06220f; font-weight: 800; }
.lesson-item .title { flex: 1; font-weight: 600; }
.lesson-item .meta { font-family: var(--font-mono); color: var(--text-mut); font-size: 0.82rem; }

/* ---------- Lektion / Video ---------- */
.lesson-view { padding-top: 40px; padding-bottom: 80px; }
.lesson-view .back { font-family: var(--font-mono); color: var(--text-soft); font-size: 0.88rem; display: inline-block; margin-bottom: 20px; }
.video-wrap {
  position: relative; padding-top: 56.25%; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-2);
}
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.video-wrap iframe.is-ready { opacity: 1; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  color: var(--text-soft); font-size: 0.92rem; text-align: center; padding: 20px;
}
/* Lade-Zustand: ruhiger Shimmer statt Text (Text kommt nur bei "kein Video"/Fehler) */
.video-placeholder--skeleton {
  background: linear-gradient(110deg,
    rgba(168, 85, 247, 0.05) 30%, rgba(168, 85, 247, 0.14) 50%, rgba(168, 85, 247, 0.05) 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s linear infinite;
}
@keyframes skeletonShimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .video-placeholder--skeleton { animation: none; }
  .video-wrap iframe { transition: none; }
}
.lesson-view h1 { font-size: 1.6rem; margin: 24px 0 8px; }
.lesson-view .desc { color: var(--text-soft); margin-bottom: 28px; }
.lesson-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Status / Hinweisboxen ---------- */
.notice {
  max-width: 640px; margin: 40px auto; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; color: var(--text-soft);
}

/* ---------- Checkout-Seite (Embedded Stripe) ---------- */
/* WICHTIG: nur padding-top/bottom setzen — sonst wird das seitliche
   Container-Padding überschrieben und nichts ist mehr bündig! */
.checkout-page { padding-top: 48px; padding-bottom: 80px; }
.checkout-title { font-size: 1.8rem; margin-bottom: 8px; font-family: var(--font-pixel); font-weight: 700; }
.checkout-sub { font-family: var(--font-mono); color: var(--text-soft); font-size: 0.95rem; margin-bottom: 36px; }
.trust-line {
  font-family: var(--font-mono); color: var(--violet-3); font-weight: 700;
  font-size: 0.88rem; margin: -24px 0 32px;
}
[data-teilnehmer] { color: var(--violet-3); font-weight: 700; }
/* stretch: beide Container enden unten auf gleicher Höhe */
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary__img { max-width: 420px; }
}

.order-summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column;
}
.order-summary__img { border-radius: var(--radius); border: 1px solid var(--border-2); margin-bottom: 18px; }
.order-summary h2 { font-size: 1.05rem; margin-bottom: 4px; }
.order-summary__desc { font-family: var(--font-mono); color: var(--text-mut); font-size: 0.82rem; margin-bottom: 16px; }
.order-summary ul { list-style: none; margin-bottom: 20px; }
.order-summary li { padding: 5px 0 5px 26px; position: relative; color: var(--text-soft); font-size: 0.9rem; }
.order-summary li::before { content: "✓"; position: absolute; left: 2px; color: var(--violet-2); font-weight: 800; }
/* "So geht's weiter": füllt den flexiblen Raum, rutscht ans untere Drittel */
.order-steps { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
.order-steps__label {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  color: var(--violet-3); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.order-step {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-soft); font-size: 0.9rem; padding: 6px 0;
}
.order-step .num {
  font-family: var(--font-pixel);
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: var(--radius); flex-shrink: 0;
  background: linear-gradient(180deg, #a055ff 0%, #7b2ff7 100%);
  color: #fff; font-size: 0.85rem; font-weight: 700;
}

.order-summary__total {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 16px; margin-top: 20px; font-weight: 700;
}
.order-summary__total .price-tag { font-family: var(--font-pixel); font-size: 1.6rem; }
.order-summary__hint { font-family: var(--font-mono); color: var(--text-mut); font-size: 0.78rem; margin-top: 12px; }

/* Transparent + feiner Rand: das Stripe-Formular verschmilzt mit dem
   Seiten-Hintergrund, die Leiterbahn läuft direkt an der Randkante entlang */
.checkout-box {
  background: transparent; border-radius: var(--radius);
  border: 1px solid var(--border-2);
  padding: 16px;
  min-height: 480px;
}
.checkout-loading {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 440px; font-family: var(--font-mono); color: var(--text-soft); font-size: 0.92rem;
}
.checkout-loading span {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(123, 47, 247, 0.25); border-top-color: #7b2ff7;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.checkout-legal { font-family: var(--font-mono); color: var(--text-mut); font-size: 0.78rem; margin-top: 28px; text-align: center; }

/* ---------- Rechtstexte ---------- */
.legal { padding-top: 56px; padding-bottom: 80px; }
.legal h1 { font-size: 1.8rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--text-soft); font-size: 0.97rem; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; margin-top: 40px; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer p { color: var(--text-mut); font-size: 0.88rem; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-mut); font-size: 0.88rem; }
.site-footer a:hover { color: var(--text); }

/* ============================================================
   Futuristik-Effekte (KI-Look)
   ============================================================ */

/* ---------- Chip-Pins: Video-Rahmen als Prozessor ---------- */
.chip-pin {
  position: absolute; width: 12px; height: 4px;
  background: linear-gradient(90deg, #6C1EDC, #A055FF);
  box-shadow: 0 0 5px rgba(168, 85, 247, 0.55);
  border-radius: 1px; pointer-events: none;
}
.chip-pin--left { left: -12px; }
.chip-pin--right { right: -12px; }

/* ---------- Terminal-Typing: blinkender Cursor ---------- */
.is-typing::after {
  content: "▌"; color: var(--violet-3); margin-left: 2px;
  animation: cursorBlink 0.8s steps(1) infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

/* ---------- Neural-Grid: feines pulsierendes Punktraster ---------- */
.hero::after, .member-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(168, 85, 247, 0.20) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 25%, transparent 75%);
  animation: gridPulse 6s ease-in-out infinite;
}
@keyframes gridPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ---------- Strom-Impuls im Fortschrittsbalken ---------- */
.progress-bar__fill { position: relative; overflow: hidden; }
.progress-bar__fill::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; left: -80px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: barPulse 2.6s var(--ease) infinite;
}
@keyframes barPulse { 0% { left: -80px; } 60%, 100% { left: 100%; } }

/* ---------- Holo-Schimmer auf Karten & Lektionen (Hover) ---------- */
.card, .lesson-item, .curriculum__module { position: relative; overflow: hidden; }
.card::after, .lesson-item::after, .curriculum__module::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -75%; width: 45%;
  background: linear-gradient(105deg,
    transparent 0%, rgba(255, 255, 255, 0.05) 40%,
    rgba(77, 232, 255, 0.10) 50%, rgba(255, 255, 255, 0.05) 60%, transparent 100%);
  transform: skewX(-18deg); pointer-events: none;
  transition: left 0.7s var(--ease);
}
.card:hover::after, .lesson-item:hover::after, .curriculum__module:hover::after { left: 135%; }

/* ---------- Boot-Sequenz (Member-Login) ---------- */
.boot-overlay {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 1; transition: opacity 0.45s var(--ease);
}
.boot-overlay--out { opacity: 0; pointer-events: none; }
.boot-lines {
  font-family: var(--font-mono); color: var(--violet-3);
  font-size: 0.95rem; display: grid; gap: 10px; min-width: 320px; min-height: 100px;
}
.boot-lines div { animation: bootIn 0.2s ease; }
@keyframes bootIn { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Reduzierte Bewegung: Effekte abschalten ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero::after, .member-hero::before { animation: none; }
  .progress-bar__fill::after,
  .card::after, .lesson-item::after, .curriculum__module::after,
  .is-typing::after { display: none; }
  .chip-pin { box-shadow: none; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  section { padding: 44px 0; }
  .auth-card { margin: 48px auto; padding: 32px 24px; }
  .btn { padding: 0.95rem 1.2rem; }
  .chip-pin { display: none; }
}
