:root {
  /* Farben */
  --bg: #f8fafc;
  --surface: #ffffff;
  --muted: #64748b;
  --text: #0b1120;
  --brand: #8b5cf6;
  --brand-2: #22d3ee;

  /* Ein zentrales Shadow/Ring + Radius */
  --ring: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 10px 30px rgba(2, 6, 23, 0.10);
  --radius: 20px;

  /* Einheitliche Gradients */
  --grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  --grad-strong: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  --grad-subtle: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.18));
  --grad-pink: linear-gradient(135deg, #ce2dff 0%, #ff54b0 32%, #22d3ee 100%);
  --overlay-hero: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));

  /* Typo-Skala */
  --fs-xs: 0.85rem;
  --fs-sm: 0.95rem;
  --fs-base: 1rem;
  --fs-lg: clamp(1.05rem, 1rem + 0.6vw, 1.2rem);
  --fs-xl: clamp(1.25rem, 1.1rem + 1.2vw, 1.6rem);
  --fs-2xl: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
  --fs-3xl: clamp(2rem, 1.6rem + 3vw, 3rem);

  --lh-tight: 1.15;
  --lh-normal: 1.45;
  --lh-relaxed: 1.6;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(139, 92, 246, 0.08), transparent 60%),
    var(--bg);
  line-height: var(--lh-relaxed);
}

/* Header */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.72));
  border-bottom: 1px solid rgba(2, 6, 23, 0.08);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: inherit;
  text-decoration: none;
}

.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: conic-gradient(from 220deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22), 0 10px 30px rgba(34, 211, 238, 0.18);
}

.nav a.btn {
  text-decoration: none;
  color: var(--text);
  padding: 10px 14px;
  margin: 0 0 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(2, 6, 23, 0.10);
  background: rgba(255, 255, 255, 0.7);
  transition: 200ms ease;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.nav a.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--ring);
}

/* Hero (Basis) */
.hero {
  position: relative;
  border-radius: 0;
  margin: 0 auto -80px;
  overflow: hidden;
  background: url('/img1.jpeg') center/cover no-repeat;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  box-shadow: 0 10px 45px rgba(2, 6, 23, 0.15);
}

.hero::after {
  content: none !important;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  padding: 20px 18px 30px;
}

.hero h1 {
  font-size: var(--fs-3xl);
  margin: 0;
  color: #fff;
  line-height: var(--lh-tight);
}

.hero p {
  color: #e6edf5;
  max-width: 1000px;
  margin: 0 auto;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

/* Mobile-specific hero override */
@media (max-width: 768px) {
  .hero {
    margin: 28px auto -80px;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
  }
}

/* Rabatt-Störer (optional, auskommentiert im JSX) */
.discount-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--grad);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .3px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .22);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: rotate(-2deg);
  font-size: var(--fs-sm);
}

.discount-badge .save {
  display: inline-grid;
  place-items: center;
  font-feature-settings: "tnum" on;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: var(--fs-sm);
}

/* Play button (Basis) */
.play-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.pulse,
.pulse::before,
.pulse::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  inset: -28px;
  pointer-events: none;
  border: 2px solid rgba(0, 0, 0, 0.08);
  animation: pulse 2.2s ease-out infinite;
}

.pulse::before {
  inset: -44px;
  animation-delay: .35s;
  opacity: .5
}

.pulse::after {
  inset: -60px;
  animation-delay: .7s;
  opacity: .3
}

@keyframes pulse {
  from {
    transform: scale(.75);
    opacity: .8
  }

  to {
    transform: scale(1.25);
    opacity: 0
  }
}

.play-btn {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(60% 60% at 30% 25%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 60%), var(--grad-strong);
  box-shadow: 0 15px 40px rgba(2, 6, 23, .18), 0 0 0 8px rgba(2, 6, 23, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.play-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 55px rgba(2, 6, 23, .22), 0 0 0 10px rgba(2, 6, 23, 0.06);
}

.play-btn svg {
  transform: translateX(2px);
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta {
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid rgba(2, 6, 23, 0.10);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
}

.cta.primary {
  background: var(--grad-strong);
  color: #fff;
  border-color: transparent;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--ring);
}

/* Newsletter-Form */
.nl-form {
  --h: 54px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, .14);
  padding: 8px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.nl-form--inverse {
  background: rgba(255, 255, 255, .06);
}

.nl-input {
  height: var(--h);
  min-width: min(420px, 92vw);
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.85);
  outline: none;
  font-size: var(--fs-base);
}

.hero-bottom .nl-input {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.92);
}

.nl-btn {
  height: var(--h);
  font-size: var(--fs-base);
}

.nl-hint {
  width: 100%;
  text-align: center;
  color: #e6edf5;
  font-size: var(--fs-sm);
  margin: 4px 0 0;
}

.hero-bottom .nl-hint {
  color: #e6edf5;
}

/* Grid Kurse */
.section {
  padding: 24px 0 40px;
}

.section h2 {
  font-size: var(--fs-2xl);
  margin: 0 0 22px;
  line-height: var(--lh-tight);
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.card {
  grid-column: span 12;
  background: var(--surface);
  border: 1px solid rgba(2, 6, 23, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  min-width: 0;
}

.content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

@media (min-width: 768px) {
  .card {
    grid-column: span 6;
  }
}

/* 2 pro Reihe */
@media (min-width: 1024px) {
  .card {
    grid-column: span 2;
  }
}

/* 4 pro Reihe */


.card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* hält das Seitenverhältnis */
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-2, #111);
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* füllt den Rahmen sauber aus */
  display: block;
}

.thumb {
  aspect-ratio: 16 / 9;
  background: var(--grad-subtle);
  position: relative;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.35));
}

.title {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: .2px;
}

.title_box {
  display: flex;
  align-items: baseline;     /* gleiche Grundlinie */
  justify-content: space-between; /* Preis ganz nach rechts */
  gap: 12px;
}

.meta {
  color: var(--muted);
  font-size: var(--fs-sm);
  padding-top: 0px;
}

.price {
  margin-top: 2px;
  font-weight: 700;
  font-size: var(--fs-lg);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn {
  flex: 0 0 auto;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(2, 6, 23, 0.12);
  background: #ffffff;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: 180ms ease;
  text-align: center;
  text-decoration: none;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--ring);
}

.btn.primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

/* Footer */
footer {
  color: var(--muted);
  border-top: 1px solid rgba(2, 6, 23, 0.08);
  padding: 24px 0 48px;
  text-align: center;
  font-size: var(--fs-sm);
}

/* Modal */
dialog::backdrop {
  background: rgba(0, 0, 0, .45);
}

dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  max-width: min(900px, 92vw);
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.25);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(2, 6, 23, 0.08);
}

.modal-head h3 {
  margin: 0;
  font-size: var(--fs-base);
  color: var(--text);
}

.x {
  background: none;
  border: none;
  color: #334155;
  font-size: 22px;
  cursor: pointer;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Testimonials / Benefits */
.benefits-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  margin-top: 20px;
  align-items: stretch;
  justify-content: center;
}

.benefit {
  background: rgba(2, 6, 23, 0.03);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(2, 6, 23, 0.08);
  flex: 1 1 0;
  min-width: 0;
}

.benefitMain {
  flex: 1.25 1 0;
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.testimonial {
  background: rgba(2, 6, 23, 0.03);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  font-style: italic;
}

.testimonial strong {
  display: block;
  margin-top: 10px;
  font-style: normal;
  color: #334155;
}

@media (max-width: 768px) {
  .benefits-grid {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }
}

/* ===== Kursseite (light theme) ===== */
.course-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.course-head h1 {
  margin: 0;
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
}

/* Intro-Video als Karte */
.video-card {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(2, 6, 23, 0.08);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

/* Inhalt-Card */
.course-card {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid rgba(2, 6, 23, 0.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

.course-card h2 {
  margin: 0 0 8px;
  font-size: var(--fs-xl);
  line-height: var(--lh-tight);
}

/* Kapitel-Grid */
.lesson-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.lesson-item {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.02)), var(--surface);
  border: 1px solid rgba(2, 6, 23, 0.08);
  border-radius: 12px;
  padding: 12px;
}

.lesson-inner {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
}

/* Bild bleibt sauber */
.lesson-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(2, 6, 23, 0.08);
}
.lesson-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.lesson-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.lesson-desc {
  margin: 6px 0 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

/* Mobile: 1 Spalte + Text/Bild über volle Breite */
@media (max-width: 640px) {
  .lesson-inner {
    grid-template-columns: 1fr; /* statt 140px 1fr */
    align-items: start;
  }

  /* spannt beide Bereiche sicher über alle Spalten */
  .lesson-thumb,
  .lesson-text {
    grid-column: 1 / -1;
  }

  /* verhindert, dass lange Inhalte die Breite begrenzen */
  .lesson-text {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .lesson-inner {
    grid-template-columns: 1fr;
  }
}

/* Sticky-Kaufleiste */
.purchase-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.96));
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(2, 6, 23, 0.08);
  padding: 10px 0;
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.bar-info {
  display: grid;
  gap: 2px;
}

.bar-actions {
  display: flex;
  gap: 8px;
}

/* Platzhalter */
.sticky-spacer {
  height: 90px;
}

/* Flow box */
.flow-box {
  background: var(--surface);
  border: 1px solid rgba(2, 6, 23, .08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .08);
}

.flow-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.flow-head h3 {
  margin: 0;
  font-size: var(--fs-lg);
}

.flow-sub {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* Spaltenüberschriften */
.flow-cols {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 220px) 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 6px;
}

.colhead {
  padding: 4px 6px;
  font-size: var(--fs-sm);
}

.colhead.right {
  text-align: right
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  background: rgba(2, 6, 23, .04);
  color: var(--text);
  border: 1px solid rgba(2, 6, 23, .08);
}

.pill.good {
  background: var(--grad-subtle);
  border-color: rgba(139, 92, 246, .25);
}

.colspacer {
  height: 1px;
}

/* Rows */
.flow-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow-row {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 220px) 1fr;
  gap: 10px;
  align-items: stretch;
}

.flow-row:first-child {
  border-top: none;
}

.p-card,
.s-card {
  border-radius: calc(var(--radius) - 6px);
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.s-card {
  border-color: rgba(139, 92, 246, .18);
}

.p-card h4,
.s-card h4 {
  margin: 0 0 4px;
  font-size: var(--fs-base);
  color: var(--text);
}

.muted {
  color: var(--muted);
  margin: 0;
  font-size: var(--fs-sm);
}

/* Bridge */
.bridge {
  position: relative;
  min-height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.arrow {
  width: 92%;
  height: 42px;
  filter: drop-shadow(0 1px 2px rgba(2, 6, 23, .1)) drop-shadow(0 0 6px rgba(34, 211, 238, .25));
}

/* Actions */
.flow-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(2, 6, 23, .12);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--ring);
}

.btn.primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

/* Responsive (Flow) */
@media (max-width: 768px) {
  .flow-cols {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .colspacer {
    display: none;
  }

  .flow-row {
    grid-template-columns: 1fr;
  }

  .bridge {
    min-height: 40px;
  }

  .arrow {
    transform: rotate(90deg);
    height: 40px;
  }
}

/* Generator */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap, 16px);
}

.field {
  margin-bottom: 40px;
  margin-top: 40px;
  padding: 15px;
  background-color: #00000004;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}


.field .label {
  display: block;
  font-weight: 400;
  margin-bottom: 6px;
  font-size: var(--fs-lg);
  margin-top: 5px;
}

.field input,
.field textarea {
  padding: 12px;
  border: 1px solid var(--border, #ddd);
  border-radius: 12px;
  font-size: var(--fs-base);
}

.lesson-item.full {
  grid-column: 1 / -1;
}

/* Screenreader-only (global util) */
.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;
}

/* Zweite große Hero unten */
.hero-bottom {
  margin: 0 auto 24px;
  min-height: 48vh;
  background: url('/img2.png') center/cover no-repeat;
}

.hero-bottom::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.65));
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.logos-strip {
  --gap: 40px;
  --cell-min: 50px;
  --row-h: clamp(40px, 10vw, 100px);

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--cell-min), 1fr));
  gap: var(--gap);
  align-items: center;
  grid-auto-rows: var(--row-h);
}

.logos-strip .logo {
  /* Bild als Grid-Item zentrieren */
  justify-self: center;
  align-self: center;
  padding-bottom: 20px;

  /* groß, aber nie verzerrt */
  max-width: 100%;
  max-height: 35%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .logos-strip {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 20px;
  }

  .logo {
    height: 64px;
  }
}

/* Vollbild-Dialog */
#previewModal[open] {
  width: 96vw;
  max-height: 90vh;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  inset: 0;
  border-radius: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #000;
  top: 5vh;
  left: 2vw;
}

#previewModal::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

#previewModal .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
}

#previewModal .x {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#previewModal .video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

#previewModal .video-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@supports (padding: max(0px)) {
  #previewModal .modal-head {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* HERO SECTION 2 (CTA) */
.cta-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  color: #fff;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 255, 255, 0.2), transparent 50%),
    var(--grad-strong);
}

.cta-wrap {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 28px;
  align-items: center;
}

.badge {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: var(--fs-xs);
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  margin-bottom: 10px;
}

h2 {
  margin: 0 0 8px 0;
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
}

.lead {
  margin: 0 0 14px 0;
  font-size: var(--fs-base);
  opacity: .95;
  line-height: var(--lh-normal);
}

.benefits {
  margin: 0 0 18px 0;
  padding-left: 18px;
}

.benefits li {
  margin: 6px 0;
  font-size: var(--fs-sm);
}

.cta-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.cta-form input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  padding: 0 14px;
  font-size: var(--fs-base);
  color: #0f172a;
}

.cta-form input:focus {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 1px;
}

.cta-form button {
  height: 48px;
  border-radius: 12px;
  border: none;
  padding: 0 18px;
  font-weight: 700;
  font-size: var(--fs-base);
  background: #ffffff;
  color: #0b1020;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.cta-form button:hover {
  transform: translateY(-1px);
}

.cta-form button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.hint {
  display: block;
  margin-top: 8px;
  opacity: .8;
  font-size: var(--fs-xs);
}

.cta-left img {
  width: 80%;
  height: auto;
  border-radius: 16px;
  transform: rotate(-2deg);
  display: block;            /* macht das <img> block-level */
  margin-inline: auto;       /* zentriert horizontal */
  transform-origin: center;  /* Rotation um die Mitte (optional) */
}


/* Responsiv CTA */
@media (max-width: 900px) {
  .cta-wrap {
    grid-template-columns: 1fr;
  }

  .cta-right {
    order: 1;
  }

  .cta-left {
    order: 2;
  }

  .cta-hero {
    padding: 22px 18px;
  }

  .cta-form {
    grid-template-columns: 1fr;
  }
}

/* ——— THE HERO SECTION (minimal & responsive) ——— */
.hero--split {
  min-height: 84vh;
  /* kompakter */
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.40)),
    url('/img1.jpeg') center/cover no-repeat;
  border-radius: 0;
  margin: 0 0 -64px 0;
  /* weniger Negativ-Margin */
}

.hero--split .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 44px 0 60px;
}

.hero-copy {
  color: #fff;
}

.hero-title {
  margin: 0 0 6px;
  line-height: var(--lh-tight);
}

/* Minimalere Headline – ohne Animation */
.hero-title {
  position: relative;
  display: inline-block;
}

.gradient-title {
  position: relative;
  z-index: 1;
  background: var(--grad-strong);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-shadow {
  position: absolute;
  inset: 0;
  color: transparent;
  /* kein Füller */
  text-shadow:
    0 2px 4px rgba(0, 0, 0, .1),
    /* direkter Rand */
    0 8px 20px rgba(0, 0, 0, .25),
    /* mittlerer Glow */
    0 14px 34px rgba(0, 0, 0, .50);
  /* weiter außen, weicher */
  z-index: 0;
  pointer-events: none;
}

.title-sub {
  font-size: clamp(1.2rem, 1rem + 1.2vw, 1.8rem);
  opacity: .95;
}

.hero-lead {
  color: #e6edf5;
  max-width: 42ch;
  margin: 8px 0 12px;
}

/* Bullets dezenter */
.bullets {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  display: grid;
  gap: 8px;
}

.bullets li {
  position: relative;
  padding-left: 24px;
  font-size: var(--fs-base);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--grad-strong);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .14);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5L9 16.2z"/></svg>') center/70% no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5L9 16.2z"/></svg>') center/70% no-repeat;
}

/* Proof Row */
.proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: #e6edf5;
  font-size: var(--fs-sm);
}

.faces {
  display: flex;
  align-items: center;
}

.face {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .9);
  background: var(--grad-strong);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.faces .face+.face {
  margin-left: -8px;
}

.faces .f2 {
  filter: hue-rotate(25deg)
}

.faces .f3 {
  filter: hue-rotate(55deg)
}

.faces .f4 {
  filter: hue-rotate(85deg)
}

/* Media / Device Mock – cleaner */
.hero-media {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.device {
  position: relative;
  width: min(520px, 96vw);
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .40), 0 0 0 8px rgba(255, 255, 255, .06) inset;
  backdrop-filter: blur(2px);
}

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

/* Dezenter Play-Button zentriert */
.play-btn--center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 999px;
  cursor: pointer;
  border: 0;
  background:
    radial-gradient(60% 60% at 30% 25%, rgba(255, 255, 255, .48), rgba(255, 255, 255, 0) 60%),
    var(--grad-strong);
  box-shadow: 0 14px 30px rgba(2, 6, 23, .26), 0 0 0 6px rgba(255, 255, 255, .08) inset;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}

.play-btn--center:hover {
  transform: translate(-50%, -50%) scale(1.03);
  box-shadow: 0 18px 46px rgba(2, 6, 23, .32), 0 0 0 8px rgba(255, 255, 255, .10) inset;
}

/* Mini-Benefits kompakter */
.mini-benefits {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.mini {
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  text-align: center;
  min-width: 100px;
}

.mini strong {
  font-size: 1.05rem;
  line-height: 1;
}

.mini span {
  font-size: var(--fs-xs);
  opacity: .9;
}

/* Scroll Cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  background: transparent;
  border: 0;
  color: #fff;
  opacity: .82;
  cursor: pointer;
  font-size: 18px;
  transition: transform .2s ease, opacity .2s ease;
}

.scroll-cue:hover {
  transform: translateX(-50%) translateY(-2px);
  opacity: 1;
}

.scroll-cue .chev {
  display: inline-block;
  animation: bob 1.8s ease-in-out infinite;
}

/* Responsive Hero */
@media (max-width: 960px) {
  .hero--split .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0 56px;
  }

  .hero-grid> :first-child {
    order: 2;
    /* Text geht nach unten */
  }
}

@media (max-width: 680px) {
  .hero--split {
    min-height: auto;
    margin-bottom: -48px;
  }

  .gradient-title {
    font-size: clamp(1.6rem, 1.1rem + 4.2vw, 2.4rem);
  }

  .hero-lead {
    font-size: var(--fs-sm);
  }

  .bullets {
    gap: 6px;
  }

  .bullets li {
    padding-left: 20px;
  }

  .bullets li::before {
    top: 6px;
    width: 12px;
    height: 12px;
  }

  .device {
    width: 100%;
    border-radius: 16px;
  }

  .play-btn--center {
    width: 56px;
    height: 56px;
  }

  .mini-benefits {
    gap: 8px;
  }

  .proof {
    font-size: var(--fs-xs);
  }

  .faces {
    display: none;
  }

  /* Avatare mobil verstecken */
  .cta-form {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 100%;
  }

  .cta-form input,
  .cta-form button {
    height: 46px;
  }

  .cta-form input {
    max-width: 95%;
  }
}

/* Animations */
@keyframes sheen {

  0%,
  100% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(4px)
  }
}

/* Bild steuert das Overlay */
.device.img-overlay {
  position: relative;
  overflow: hidden;
}

.device-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

/* Overlay sitzt AUF dem Bild und reagiert auf Hover/Focus */
.device.img-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .45)),
    radial-gradient(60% 60% at 50% 50%, rgba(0, 0, 0, .25), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
}

.device.img-overlay:hover::after,
.device.img-overlay:focus-within::after {
  opacity: 1;
}

.device.img-overlay:hover .device-img,
.device.img-overlay:focus-within .device-img {
  transform: scale(1.02);
}

/* Play-Button: rund, mittig, mit sanftem Glow & Ring (zentriert) */
.play-btn--center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 999px;
  cursor: pointer;
  border: 0;
  background:
    radial-gradient(60% 60% at 30% 25%, rgba(255, 255, 255, .48), rgba(255, 255, 255, 0) 60%),
    var(--grad-strong);
  box-shadow: 0 14px 30px rgba(2, 6, 23, .26), 0 0 0 6px rgba(255, 255, 255, .08) inset;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}

.play-btn--center:hover {
  transform: translate(-50%, -50%) scale(1.03);
  box-shadow: 0 18px 46px rgba(2, 6, 23, .32), 0 0 0 8px rgba(255, 255, 255, .10) inset;
}

.play-btn--center:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 0 0 8px rgba(139, 92, 246, .35);
}

/* dezente Puls-Aura */
.play-btn--center::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .55);
  opacity: .0;
  transform: scale(.9);
  transition: opacity .3s ease, transform .3s ease;
}

.device.img-overlay:hover .play-btn--center::before,
.device.img-overlay:focus-within .play-btn--center::before {
  opacity: .6;
  transform: scale(1);
}

/* optional: Shine im Device abschalten, Overlay übernimmt die Arbeit */
.device .shine {
  display: none;
}

/* Motion-Respect */
@media (prefers-reduced-motion: reduce) {

  .device-img,
  .play-btn--center {
    transition: none;
  }
}


.responsivegridL {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}

.responsivegridR {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .responsivegridL {
    grid-template-columns: 1fr;
  }

  .responsivegridR {
    grid-template-columns: 1fr;

  }
}


/* Bestehend: sichtbar auf Desktop/Tablet, auf Mobile ausgeblendet */
.hide-on-mobile {
  display: block; /* Standard: sichtbar */
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important; /* ab 768px und kleiner ausgeblendet */
  }

  .responsivegridR > :first-child {
    order: 2; /* Text geht nach unten */
  }
}

/* Neu: nur auf Mobile sichtbar, sonst versteckt */
.show-on-mobile {
  display: none;
}

@media (max-width: 768px) {
  .show-on-mobile {
    display: block !important; /* bei Bedarf auf inline/inline-block/flex ändern */
  }
}

/* Optional: Anzeige-Modifier für die Mobile-Variante */
@media (max-width: 768px) {
  .show-on-mobile.inline        { display: inline !important; }
  .show-on-mobile.inline-block  { display: inline-block !important; }
  .show-on-mobile.flex          { display: flex !important; }
}

/* --- MediaKit Form (große Inputs, sauberes Card-Layout) --- */
.form-card {
  background: #fff;
  border: 1px solid rgba(2, 6, 23, .08);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .08);
}

.label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.big-input,
.big-textarea {
  width: 100%;
  border: 1px solid rgba(2, 6, 23, .12);
  border-radius: 16px;
  background: #fff;
  padding: 16px 18px;
  font-size: clamp(1rem, .95rem + .4vw, 1.125rem);
  box-sizing: border-box;
  min-height: 40px;
}

.big-input {
  height: 26px;
}

.big-textarea {
  min-height: 200px;
  line-height: 1.55;
  resize: vertical;
}

.photo-drop {
  border: 2px dashed rgba(2, 6, 23, .18);
  border-radius: 16px;
  padding: 14px;
  background: rgba(2, 6, 23, .02);
}

.preview {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  display: block;
}

.generate-btn {
  height: 56px;
  border-radius: 16px;
  font-weight: 800;
}

/* --- Crop Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .6);
  display: grid;
  place-items: center;
  z-index: 1000;
}

.modal {
  width: min(92vw, 860px);
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(2, 6, 23, .12);
  box-shadow: 0 20px 60px rgba(2, 6, 23, .35);
  padding: 16px;
}

.cropper-wrap {
  position: relative;
  width: 100%;
  height: min(72vh, 640px);
  background: #0b1120;
}

.cropper-wrap .reactEasyCrop_Container {
  border-radius: 12px;
}

.modal-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-actions input[type="range"] {
  width: 240px;
}

.collapsible .link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  color: var(--link, hsl(192, 76%, 71%));
  margin-top: 4px;
}

.collapsible-content {
  white-space: normal;
  color: #555;
}

.collapsible-content.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: var(--lines, 1);
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collapsible-content>*:first-child {
  margin-top: 0;
}

.collapsible-content>*:last-child {
  margin-bottom: 0;
}

.collapsible-box {
  background: #f6f8fa;            /* dezente Box */
  border: 1px solid #e5e7eb;
  border-left: 4px solid #0ea5e9; /* Akzent */
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 10px;
  margin-bottom: 5px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}


/* TEM;PLATE SELECTOR */
.tpl-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.tpl-opt {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px; background: #f0f0f0;
  border: 2px solid transparent; border-radius: 12px;
  cursor: pointer; transition: border-color .15s ease;
}
.tpl-opt:hover { border-color: #e5e7eb; }
.tpl-opt.is-active { border-color: var(--c1); }   /* farbiger Rahmen aus c1 */
.tpl-opt:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }

.tpl-opt .swatch {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
}
/* exakt die ersten ZWEI Hauptfarben anzeigen */
.tpl-opt .swatch:nth-of-type(1) { background: var(--c1); }
.tpl-opt .swatch:nth-of-type(2) { background: var(--c2); }

.tpl-name { font-size: 13px; color: #374151; }





.course img {
  display: block;       /* keine Inline-Lücken */
  max-width: 100%;
}


.lesson-item {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: var(--surface, #fff);
  overflow: hidden; /* falls etwas trotzdem drüber steht */
}

/* --- Karte/Item --- */
.lesson-item {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: var(--surface, #fff);
  overflow: hidden; /* falls etwas trotzdem drüber steht */
}

/* Inhalt: links Thumb, rechts Text */
.lesson-inner {
  display: grid;
  grid-template-columns: 180px 1fr; /* fixe Thumb-Breite */
  gap: 14px;
  align-items: start;
  padding: 12px;
}

/* --- Thumbnail-Box: gleiche Größe für alle --- */
.lesson-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;   /* EINHEITLICH! (z.B. 16:9) */
  overflow: hidden;       /* Überstände abschneiden */
  border-radius: 8px;
  background: var(--wash, #f3f4f6);
}

/* Bild füllt die Box, schneidet sauber zu */
.lesson-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
