/* =========================================================
   Sebastian Gunia – Fitline Coaching & Fitness
   Basis-Stylesheet – dunkles, editoriales Monochrom-Theme
   ========================================================= */

:root {
  --bg: #0A0A0A;
  --bg-alt: #141414;
  --text: #FFFFFF;
  --text-muted: #9A9A9A;
  --card-bg: #161616;
  --border: #2A2A2A;

  /* Dezenter Orange-Akzent aus dem SG-Logo, sehr sparsam eingesetzt
     (Trennlinien mit Glow, vereinzelte Buttons) – die Seite bleibt
     ansonsten Schwarz/Weiß. */
  --accent: #FB5C03;

  /* "Inverse" = helle Fläche innerhalb der dunklen Seite, für Kontrast-Bänder
     (Stats-Leiste, CTA-Banner) – ersetzt die frühere Rot-Akzentfarbe */
  --inverse-bg: #FFFFFF;
  --inverse-text: #0A0A0A;
  --inverse-muted: #555555;

  --radius-lg: 20px;
  --radius-pill: 999px;
  --max-width: 1140px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

section { padding: 88px 0; }
section.alt { background: var(--bg-alt); }

@media (max-width: 640px) {
  section { padding: 56px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

/* Primary = weiß gefüllt, dunkler Text – der "Punch"-Button auf dunklem Grund */
.btn-primary { background: #fff; color: var(--bg); }
.btn-primary:hover { background: #E0E0E0; box-shadow: 0 10px 24px rgba(255,255,255,0.15); }

/* Secondary = umrandet, invertiert beim Hover */
.btn-secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn-secondary:hover { background: var(--text); color: var(--bg); }

.btn-ghost { background: var(--card-bg); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }

.btn-block { width: 100%; justify-content: center; }

/* Buttons innerhalb heller ("inverse") Flächen wie dem CTA-Banner umkehren */
.cta-banner .btn-primary { background: var(--bg); color: #fff; }
.cta-banner .btn-primary:hover { background: #2A2A2A; }
.cta-banner .btn-secondary { color: var(--inverse-text); border-color: var(--inverse-text); }
.cta-banner .btn-secondary:hover { background: var(--inverse-text); color: #fff; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--accent);
  box-shadow: 0 1px 16px 0 rgba(251, 92, 3, 0.45);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo span { color: var(--text-muted); }
.logo-mark { height: 30px; width: auto; display: block; }
.site-footer .logo-mark { height: 26px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active { border-color: var(--text); }

/* Shop = sekundär: umrandet */
.nav-links a.shop-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border-bottom: 2px solid var(--text);
}
.nav-links a.shop-link:hover { background: var(--text); color: var(--bg); }

/* Partner werden = primär: weiß gefüllt, wichtigster Button */
.nav-links a.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--bg);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border-bottom: none;
}
.nav-links a.partner-link:hover { background: #E0E0E0; }

/* Members Area = dezent hervorgehoben: dünner Rahmen, kein gefüllter Button */
.nav-links a.members-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border-bottom: 1px solid var(--border);
}
.nav-links a.members-link:hover { border-color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; }
  .nav-links a.shop-link,
  .nav-links a.partner-link { width: auto; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .cta-row { justify-content: center; }
  .hero .eyebrow { margin-inline: auto; }
}

.hero-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }

.hero p.lead {
  font-size: 1.15rem;
  max-width: 52ch;
}
@media (max-width: 900px) {
  .hero p.lead { margin-inline: auto; }
}

/* ---------- Full-Bleed Hero (Startseite) ---------- */
/* Ein großformatiges Foto als Hero, Inhalte mittig darüber – austauschbar,
   sobald ein neues, professionelles Foto vorliegt (assets/images/...). */
.hero-fullbleed {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-fullbleed .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(15%) brightness(0.65);
}
.hero-fullbleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 40%, rgba(10,10,10,0.85) 100%);
}
.hero-fullbleed .hero-fullbleed-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 24px;
}

/* Schlichte, zentrierte Menü-Liste statt Headline/Fließtext */
.hero-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-menu-item {
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: -0.01em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hero-menu-item:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* "Partner werden" – dezent hervorgehoben: größer, fett, dünner Rahmen
   statt große gefüllte Fläche */
.hero-menu-item.featured {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  padding: 10px 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
}
.hero-menu-item.featured:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .hero-menu { gap: 18px; }
  .hero-menu-item { font-size: 1.1rem; }
  .hero-menu-item.featured { font-size: 1.3rem; padding: 9px 26px; }
}

/* ---------- Stats bar (helles Kontrast-Band) ---------- */
.stats-bar {
  background: var(--inverse-bg);
  color: var(--inverse-text);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-grid .stat-value {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--inverse-text);
  margin-bottom: 4px;
}
.stats-grid .stat-label {
  font-size: 0.9rem;
  color: var(--inverse-muted);
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
}

.stats-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .stats-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats-grid-4 { grid-template-columns: 1fr; } }

/* Klickbare Stat-Felder (z.B. Follower-Tracker "Meine Erfolge") */
.stat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 14px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.stat-link:hover { transform: translateY(-3px); background: rgba(10, 10, 10, 0.04); }
.stat-link .stat-icon { margin-bottom: 2px; }

/* ---------- Teaser / Card grid ---------- */
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #3a3a3a; }

.card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 20px;
}
.card ul li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}
.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--text);
  font-weight: 700;
}

.card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover { text-decoration: underline; }

/* ---------- Two-column content block ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---------- Timeline (Werdegang) ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
.timeline-item .year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Foto-Galerie mit Lightbox ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--card-bg);
  display: block;
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.gallery-tile:hover img { transform: scale(1.06); }
.gallery-tile .tile-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px 10px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-inner {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 920px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.lightbox-inner img {
  width: 52%;
  object-fit: cover;
  display: block;
}
.lightbox-text {
  padding: 36px;
  overflow-y: auto;
}
.lightbox-text .eyebrow { margin-bottom: 4px; }
.lightbox-text h3 { margin-bottom: 12px; }
.lightbox-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.6);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.lightbox-close:hover { background: rgba(10, 10, 10, 0.85); }
@media (max-width: 700px) {
  .lightbox-inner { flex-direction: column; max-height: 92vh; overflow-y: auto; }
  .lightbox-inner img { width: 100%; max-height: 42vh; }
}

/* ---------- Material-Galerie (Members Area) ----------
   Vollbild-Ansicht innerhalb von kurs.html (kein Seitenwechsel, nutzt den
   bestehenden Login). Kachel-Grid mit Vorschau + Mehrfachauswahl, darüber
   bei Bedarf eine zweite Ebene für die groß angezeigte Vorschau. */
button.card-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.material-gallery {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.material-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}
.material-gallery-head .lightbox-close { position: static; }
.material-gallery-grid {
  flex: 1 1 auto;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
  padding: 28px;
  align-content: start;
}
.material-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.material-item-check {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
}
.material-item-check input {
  width: 20px; height: 20px;
  accent-color: var(--accent, var(--text));
  cursor: pointer;
}
.material-item-thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt) center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.material-item-icon { font-size: 2.4rem; }
.material-item-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.material-item-name { font-weight: 700; font-size: 0.9rem; }
.material-item-type { font-size: 0.75rem; color: var(--text-muted); }
.material-item-dl {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
}
.material-item-dl:hover { background: rgba(10, 10, 10, 0.85); }
.material-gallery-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
  flex-wrap: wrap;
}
.material-gallery-bar-actions { display: flex; gap: 10px; }
#material-download-selected:disabled { opacity: 0.4; cursor: not-allowed; }
.material-preview {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 10, 10, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
}
.material-preview-body {
  max-width: min(90vw, 800px);
  max-height: 72vh;
  display: flex;
}
.material-preview-body img,
.material-preview-body video {
  max-width: 100%;
  max-height: 72vh;
  border-radius: 12px;
  display: block;
}
@media (max-width: 700px) {
  .material-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; padding: 16px; }
  .material-gallery-head { padding: 16px; }
  .material-gallery-bar { padding: 12px 16px; }
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}
.faq-question .icon { font-size: 1.3rem; color: var(--text); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p { padding-bottom: 22px; margin: 0; }

/* Modul-Playlists brauchen deutlich mehr Platz als eine FAQ-Antwort */
.module-list .faq-question { font-size: 1.15rem; }
.module-list .faq-item.open .faq-answer { max-height: 5000px; }

/* ---------- Profilbild: klickbar, mit Hover-Hinweis ---------- */
.avatar-edit {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  cursor: pointer;
}
.avatar-edit img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.avatar-edit-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.6);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.avatar-edit:hover .avatar-edit-overlay,
.avatar-edit:focus-visible .avatar-edit-overlay {
  opacity: 1;
}

/* ---------- Members-Area-Dashboard ---------- */
.dashboard {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}
.dashboard-nav {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 96px;
}
.dashboard-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.dashboard-nav-btn:hover { color: var(--text); background: var(--card-bg); }
.dashboard-nav-btn.active {
  color: var(--text);
  background: var(--card-bg);
  border-color: var(--border);
}
.dashboard-nav-btn .nav-icon { font-size: 1.05rem; }

.dashboard-main { flex: 1 1 auto; min-width: 0; }

.dashboard-profile {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.dashboard-profile-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}
.dashboard-profile-main .avatar-edit { width: 48px; height: 48px; flex-shrink: 0; }
.dashboard-profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.profile-edit-dropdown summary { list-style: none; cursor: pointer; }
.profile-edit-dropdown summary::-webkit-details-marker { display: none; }
.profile-edit-dropdown[open] summary { background: var(--card-bg); }
.profile-edit-dropdown form {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: 280px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.dashboard-panel { display: none; }
.dashboard-panel.active { display: block; }

@media (max-width: 860px) {
  .dashboard { flex-direction: column; }
  .dashboard-nav {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    position: static;
    width: 100%;
    gap: 8px;
    padding-bottom: 6px;
  }
  .dashboard-nav-btn { white-space: nowrap; flex: 0 0 auto; width: auto; align-items: center; }
  .dashboard-profile { justify-content: space-between; }
  .dashboard-profile-main { margin-right: 0; }
}

/* ---------- Steps (Projekt-Info) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--bg);
  font-weight: 800;
  margin-bottom: 16px;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial .stars { color: var(--text); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial .author { font-weight: 700; margin-top: 16px; }
.testimonial .role { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Video grid (Kurs) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }
.video-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.video-card .video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-card .video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-card .video-meta { padding: 18px 20px; }
.video-card .video-meta h4 { margin-bottom: 4px; }
.video-card .video-meta p { margin: 0; font-size: 0.9rem; }

/* ---------- Password gate ---------- */
.gate {
  max-width: 440px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.gate input[type="password"],
.gate input[type="email"],
.gate input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
  font-family: var(--font);
  font-size: 1rem;
  margin: 20px 0 12px;
  text-align: center;
  background: var(--bg);
  color: var(--text);
}
.gate input[type="password"]:focus,
.gate input[type="email"]:focus,
.gate input[type="text"]:focus { outline: none; border-color: var(--text); }
.gate .gate-error {
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 20px;
  margin-bottom: 8px;
}
.hidden { display: none !important; }

/* ---------- Calendly wrap ---------- */
.calendly-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---------- Contact / opt-in form ---------- */
.form-grid {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.form-grid label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
}
.form-grid input:focus,
.form-grid textarea:focus { outline: none; border-color: var(--text); }

input[type="email"] {
  background: var(--bg);
  color: var(--text);
}
input[type="email"]:focus { outline: none; border-color: var(--text); }

/* ---------- CTA banner (helles Kontrast-Band) ---------- */
.cta-banner {
  background: var(--inverse-bg);
  color: var(--inverse-text);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
.cta-banner .eyebrow { background: rgba(10,10,10,0.06); color: var(--inverse-text); }
.cta-banner h2 { color: var(--inverse-text); }
.cta-banner p { color: var(--inverse-muted); }
.cta-banner .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--accent);
  box-shadow: 0 -1px 16px 0 rgba(251, 92, 3, 0.45);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; color: var(--text-muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--text); }

.social-icons { display: flex; gap: 12px; margin-top: 16px; }
.social-icons a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.social-icons a:hover { transform: translateY(-2px); border-color: #4a4a4a; box-shadow: var(--shadow); }
.social-icons img { width: 18px; height: 18px; display: block; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Page header (Unterseiten) ---------- */
.page-header {
  padding: 64px 0 24px;
  text-align: center;
}
.page-header .eyebrow { margin-inline: auto; }
.page-header p.lead { max-width: 60ch; margin-inline: auto; font-size: 1.1rem; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 24px;
}
