/* ============================================================
   CHARISMA DECODED — Mitgliederbereich
   Gleiche Marke wie die Startseite (style.css): dunkler Grund,
   Electric Blue, Fraunces für Überschriften, Karten mit Glow.
   Eigenständige Datei, damit die Seite nichts vom Funnel erbt.
   ============================================================ */

:root {
  --bg: #05060a;
  --bg-soft: #0a0c14;
  --card: #10121d;
  --card-border: rgba(139, 92, 246, 0.18);
  --ink: #ffffff;
  --muted: #a6aec3;
  --muted-2: #78819a;
  --blue: #2764ff;
  --blue-soft: #7ea2ff;
  --violet: #7c3aed;
  --danger: #f87171;
  --ok: #4ade80;
  --accent-grad: linear-gradient(100deg, #5b8cff, #8b5cf6);
  --line: rgba(255, 255, 255, 0.12);
  --radius: 20px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* feines Korn wie auf der Startseite */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 5px 5px;
  z-index: 1;
}

.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 48px);
  flex: 1;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; }

.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-soft);
}

h1 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.05;
  text-wrap: balance;
}
h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.lead { color: var(--muted); font-size: clamp(16.5px, 1.8vw, 18.5px); max-width: 44em; }

/* ---- Buttons --------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 14px 34px rgba(39, 100, 255, 0.35); }
.btn--blue:hover { background: #1e51d8; transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

.linkbtn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--blue-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkbtn:hover { color: #fff; }

/* ---- Topbar ---------------------------------------------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
  flex-wrap: wrap;
}
.topbar__mark {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.topbar__mark span { color: var(--blue-soft); }
.topbar__sitzung {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--muted-2);
  flex-wrap: wrap;
}

/* ---- Laden ----------------------------------------------- */

.laden { padding: 80px 0; color: var(--muted-2); display: flex; align-items: center; gap: 12px; }
.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--blue-soft);
  animation: drehen 0.8s linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }

/* ---- Karte (Login) ---------------------------------------- */

.login {
  position: relative;
  padding: clamp(24px, 6vw, 80px) 0 clamp(60px, 8vw, 110px);
}
.login::before {
  content: "";
  position: absolute;
  top: -180px;
  bottom: -120px;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 16% 4%, rgba(124, 58, 237, 0.30), transparent 62%),
    radial-gradient(52% 41% at 88% 32%, rgba(39, 100, 255, 0.24), transparent 62%);
}

.karte {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.karte--login {
  max-width: 560px;
  padding: clamp(28px, 5vw, 48px);
}
.karte--login h1 { font-size: clamp(38px, 6vw, 58px); margin: 14px 0 16px; }
.karte--login .lead { margin-bottom: 28px; }
.karte--login form { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.karte--login .btn { margin-top: 4px; }

.feld { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.feld span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.feld input {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.feld input::placeholder { color: var(--muted-2); }
.feld input:focus { outline: none; border-color: var(--blue-soft); background: rgba(255, 255, 255, 0.07); }
#feld-code { font-family: var(--mono); font-size: 24px; letter-spacing: 0.18em; }

.hinweis { font-size: 15px; color: var(--muted); }
.hinweis b { color: var(--ink); overflow-wrap: anywhere; }

.meldung { margin-top: 18px; font-size: 15px; color: var(--muted); min-height: 1.5em; }
.meldung.ist-fehler { color: var(--danger); }
.meldung.ist-ok { color: var(--ok); }

.kleingedruckt { margin-top: 26px; font-size: 13px; color: var(--muted-2); }
.kleingedruckt a { color: var(--blue-soft); text-decoration: none; }

/* ---- Bereich --------------------------------------------- */

.bereich { padding: clamp(10px, 3vw, 30px) 0 60px; }
.bereich__kopf { position: relative; padding: clamp(20px, 5vw, 56px) 0 clamp(36px, 5vw, 64px); }
.bereich__kopf::before {
  content: "";
  position: absolute;
  top: -220px;
  bottom: -60px;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 12% 10%, rgba(124, 58, 237, 0.28), transparent 62%),
    radial-gradient(52% 41% at 90% 40%, rgba(39, 100, 255, 0.22), transparent 62%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}
.bereich__kopf h1 { font-size: clamp(40px, 7vw, 76px); margin: 18px 0 20px; }

.block { padding: 34px 0 44px; border-top: 1px solid var(--line); }
.block__kopf { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.block__kopf p { color: var(--muted-2); font-size: 15px; }

.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

.material {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.material:hover { transform: translateY(-2px); border-color: rgba(126, 162, 255, 0.5); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.material b { font-size: 17px; }
.material span { color: var(--muted); font-size: 14.5px; }
.material .material__cta { margin-top: 10px; color: var(--blue-soft); font-weight: 600; font-size: 14px; }
.material--aus { opacity: 0.6; cursor: default; }
.material--aus:hover { transform: none; box-shadow: none; border-color: var(--card-border); }

/* ---- Aufzeichnungen -------------------------------------- */

.monat { border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; overflow: hidden; }
.monat summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.025);
}
.monat summary::-webkit-details-marker { display: none; }
.monat summary::after { content: "+"; font-family: var(--mono); color: var(--blue-soft); font-size: 20px; line-height: 1; }
.monat[open] summary::after { content: "–"; }
.monat__anzahl { color: var(--muted-2); font-weight: 500; font-size: 14px; margin-left: auto; }
.calls { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 12px; }

.call {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.call:hover { transform: translateY(-2px); border-color: rgba(126, 162, 255, 0.5); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.call__datum { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-soft); }
.call__teaser {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.call__meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted-2); }
.leer { color: var(--muted-2); }

/* ---- Einzelne Aufzeichnung -------------------------------- */

.aufzeichnung { padding: 10px 0 80px; }
.zurueck { display: inline-block; color: var(--blue-soft); text-decoration: none; font-size: 14.5px; margin-bottom: 26px; }
.zurueck:hover { text-decoration: underline; }
.aufzeichnung h1 { font-size: clamp(32px, 5vw, 52px); margin: 12px 0 26px; }
.aufzeichnung h2 { margin: 36px 0 16px; }
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.punkte { list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.punkte li { position: relative; padding-left: 26px; color: var(--muted); font-size: 16.5px; }
.punkte li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-grad); }

/* ---- Footer ---------------------------------------------- */

.sitefooter { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 40px 0 56px; }
.sitefooter__inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.sitefooter__logo { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.sitefooter__logo span { color: var(--blue-soft); }
.sitefooter nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: 14px; }
.sitefooter nav a { color: var(--muted-2); text-decoration: none; }
.sitefooter nav a:hover { color: var(--blue-soft); }
.sitefooter__legal { width: 100%; color: var(--muted-2); font-size: 12.5px; }

@media (max-width: 640px) {
  .block__kopf { flex-direction: column; gap: 4px; }
  .topbar__sitzung { font-size: 12.5px; }
}
