/* ==================================================================
   RachiGerman — shared layer.

   Design tokens, base reset, typography, buttons, header, footer and
   the consent banner. Loaded by every page so the legal pages and the
   main page cannot drift apart again; page-specific layout stays with
   its page.
   ================================================================== */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --cream: #fbf6ee;
  --cream-alt: #f5eee1;
  --white: #ffffff;
  --orange: #e8752c;
  --orange-dark: #c85f1e;
  --orange-light: #fbe4cc;
  --orange-lighter: #fdf0e1;
  --pill-bg: #fdf0e1;
  --text-dark: #241c15;
  --text-muted: #8a8074;
  --border: #eee3d2;

  /* Format-Akzente */
  --fmt-selfpaced-accent: #5b8c5a;
  --fmt-selfpaced-dark: #466b45;
  --fmt-selfpaced-light: #deebda;

  --fmt-hybrid-accent: #d4a017;
  --fmt-hybrid-dark: #a87d10;
  --fmt-hybrid-light: #faecc4;

  --fmt-live-accent: #c1442d;
  --fmt-live-dark: #983320;
  --fmt-live-light: #f5dad2;

  --font-display: "Noto Kufi Arabic", sans-serif;
  --font-body: "Tajawal", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

/* Versatz für Anker-Sprungziele, damit der fixierte Header nichts verdeckt */
#top,
#kurse,
#ueber-mich,
#bewertungen,
#kontakt {
  scroll-margin-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button,
select {
  font-family: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
}
/* iconSvg() emits <svg class="ic" viewBox="0 0 24 24"> with no width or height,
   so its size comes entirely from a contextual rule further down (.step-icon .ic,
   .format-pill .ic, …). Without a base size, one missing rule makes the icon fall
   back to 100% of its container — which is how a stale cached stylesheet once
   turned every icon into a 1140px play button. This keeps that failure cosmetic. */
.ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
/* The wrapper carries no layout of its own, so <picture> can be introduced
   without disturbing any existing `img` rule or absolute positioning. */
picture {
  display: contents;
}
:focus-visible {
  outline: 2px solid var(--orange-dark);
  outline-offset: 3px;
}

/* ============================================
   TYPE
   ============================================ */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  /* German compounds ("Geschäftsbedingungen", "Verbraucherstreitbeilegung") are
     wider than a 320px heading box and would push the page sideways. */
  overflow-wrap: break-word;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange-dark);
  margin-bottom: 14px;
}
.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange-dark);
}
.section-label + .section-title {
  margin-top: 6px;
}
.section-title {
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  margin-bottom: 28px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  /* Labels are translated at runtime; "Reserve your spot" is far wider than
     "احجز مكانك". Wrapping inside the pill beats overflowing the card. */
  white-space: normal;
  text-align: center;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover {
  background: var(--orange-dark);
}
.btn-ghost {
  background: transparent;
  border-color: var(--text-dark);
  color: var(--text-dark);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}
.btn-outline {
  background: var(--white);
  border-color: var(--border);
  color: var(--text-dark);
  font-size: 0.85rem;
  padding: 10px 18px;
}
.btn-outline:hover {
  border-color: var(--orange);
}
.btn-sm {
  padding: 10px 20px;
  font-size: 0.88rem;
}
.btn-block {
  width: 100%;
}

.badge-comingsoon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--cream-alt);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 10px 20px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
/* Content mirrors with `dir`, the chrome does not. Pinning these two rows to LTR
   keeps the logo left and the nav/CTA/language switch right in every language,
   so switching AR↔DE↔EN no longer flips the whole header. Arabic labels inside
   still shape correctly — the bidi algorithm handles each RTL run on its own. */
.header-inner,
.footer-top {
  direction: ltr;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-chip {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 7px;
}
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-dark);
}
.brand-name em {
  font-style: normal;
  color: var(--orange-dark);
}

.main-nav {
  display: none;
  gap: 24px;
}
.main-nav a {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}
.main-nav a:hover {
  color: var(--orange-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-cta {
  display: none;
  padding: 9px 18px;
  font-size: 0.82rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 68px;
  right: 0;
  left: 0;
  background: var(--white);
  padding: 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

/* ============================================
   LANGUAGE SWITCH
   ============================================ */
.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--cream-alt);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.lang-btn:hover {
  color: var(--text-dark);
}
.lang-btn.is-active {
  background: var(--orange);
  color: var(--white);
}
#langSwitchFooter {
  background: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--cream-alt);
  padding: 40px 0 24px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 28px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}
.footer-col a {
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--orange-dark);
}
.footer-col-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-dark);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ============================================
   FOOTER SOCIAL ICONS
   ============================================ */
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.social-icon-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.social-icon-link:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  color: var(--orange-dark);
}
.social-icon-link svg {
  width: 20px;
  height: 20px;
  display: block;
}
.social-icon-link.skool-link {
  width: auto;
  min-width: 42px;
  padding: 0 12px;
  border-radius: 999px;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
}
.social-icon-link.skool-link svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   COOKIE / PRIVACY CONSENT
   ============================================ */
.cookie-banner {
  position: fixed;
  z-index: 1000;
  inset: auto 16px 16px 16px;
  max-width: 720px;
  margin-inline: auto;
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(36, 28, 21, 0.22);
  padding: 18px;
  display: none;
}
.cookie-banner.is-open {
  display: block;
}
.cookie-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 6px;
}
.cookie-text {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.65;
  margin: 0;
}
.cookie-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.cookie-btn {
  flex: 1 1 160px;
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  padding: 10px 15px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
}
.cookie-btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.cookie-btn-secondary {
  background: var(--white);
  color: var(--text-dark);
}
.cookie-settings-link {
  width: 100%;
  border: 0;
  background: none;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  margin-top: 3px;
}
.cookie-settings {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.cookie-settings.is-open {
  display: block;
}
.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}
.cookie-option + .cookie-option {
  border-top: 1px solid var(--border);
}
.cookie-option-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
}
.cookie-option-copy span {
  display: block;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.5;
  margin-top: 2px;
}
.cookie-switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 0;
  background: #d8d1c8;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: left 0.15s ease;
}
.cookie-switch[aria-checked="true"] {
  background: var(--orange);
}
.cookie-switch[aria-checked="true"]::after {
  left: 23px;
}
.cookie-switch[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}
.cookie-manage {
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.external-media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 30px;
  background: #201b17;
  color: #fff;
}
.external-media-placeholder p {
  max-width: 38ch;
  font-size: 0.82rem;
  opacity: 0.78;
}
.external-media-placeholder button {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.external-media-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 2px;
}
/* Escape hatch while external media is blocked: the embed stays off, but the
   visitor can still reach the video on youtube.com. */
.external-media-link {
  color: #fff;
  opacity: 0.72;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.external-media-link:hover {
  opacity: 1;
}
@media (max-width: 520px) {
  .cookie-banner {
    inset: auto 10px 10px 10px;
    padding: 16px;
    border-radius: 17px;
  }
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-btn {
    width: 100%;
    flex: auto;
  }
}

/* ============================================
   RESPONSIVE — SHARED CHROME
   ============================================ */
/* At the narrowest widths the wordmark, language switch and menu button stop
   fitting side by side — most visibly in German, whose CTA label is longest.
   Tighten the switch first, then fall back to the logo mark alone. */
@media (max-width: 400px) {
  .lang-btn {
    padding: 6px 7px;
  }
  .header-inner {
    gap: 8px;
  }
}
@media (max-width: 360px) {
  .brand-name {
    display: none;
  }
}

@media (min-width: 640px) {
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 780px) {
  .main-nav {
    display: flex;
  }
  .header-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ============================================================
   COURSE CARD + COURSE PAGE
   Moved out of index.html so the standalone course pages under
   /kurse/ can use the same cards, badges and benefit rows.
   ============================================================ */
/* ============================================
   COURSE CARD (mit Format-Akzenten)
   ============================================ */
.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.course-card-ar {
  --fmt-accent: var(--fmt-selfpaced-accent);
  --fmt-dark: var(--fmt-selfpaced-dark);
  --fmt-light: var(--fmt-selfpaced-light);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--fmt-accent);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.course-card-ar.fmt-hybrid {
  --fmt-accent: var(--fmt-hybrid-accent);
  --fmt-dark: var(--fmt-hybrid-dark);
  --fmt-light: var(--fmt-hybrid-light);
}
.course-card-ar.fmt-live {
  --fmt-accent: var(--fmt-live-accent);
  --fmt-dark: var(--fmt-live-dark);
  --fmt-light: var(--fmt-live-light);
}
.course-card-ar:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(36, 28, 21, 0.08);
}
.course-card-ar.is-comingsoon {
  opacity: 0.75;
}
/* A started, fully booked cohort. Dimmed so it reads as unavailable at a glance,
   and labelled explicitly — swapping the CTA to "join waitlist" on its own left
   visitors to infer that the course was full. */
.course-card-ar.is-soldout {
  opacity: 0.72;
}
.card-full-badge,
.course-full-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--text-dark);
  background: var(--cream-alt);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 10px;
}
.course-full-note {
  display: flex;
  justify-content: center;
  font-size: 0.82rem;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.card-media {
  line-height: 0;
  overflow: hidden;
}
.card-media svg {
  width: 100%;
  height: 185px;
  display: block;
}
.card-media img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
}
.card-media-private {
  background: #f4e8da;
}
.card-media-private img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  object-position: center;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.format-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.format-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  background: var(--fmt-light);
  color: var(--fmt-dark);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.format-pill .ic {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Für Modal-Kopfzeile (ein einzelnes Format-Label) */
.format-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  background: var(--fmt-light);
  color: var(--fmt-dark);
  padding: 6px 13px;
  border-radius: 999px;
  white-space: nowrap;
}

.level-row {
  margin-top: 12px;
}
.level-badge {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  background: var(--cream-alt);
  color: var(--text-dark);
  padding: 6px 13px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-block;
}
/* Sekundäre, kleinere Variante direkt unter dem Titel */
.level-badge-inline {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-top: 2px;
}
.card-body h3 {
  font-size: 1.32rem;
  margin-top: 10px;
  min-height: 2.6em;
  font-weight: 800;
}
.card-body h3.title-tight {
  min-height: 0;
}
.card-tagline {
  color: var(--text-dark);
  opacity: 0.72;
  font-size: 0.96rem;
  margin-top: 6px;
  min-height: 2.6em;
}
.card-trustline {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--orange-lighter);
  color: var(--text-dark);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.6;
}

.meta-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-dark);
}
.meta-item .ic {
  width: 17px;
  height: 17px;
  color: var(--fmt-accent);
  flex-shrink: 0;
}

.benefit-list {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.benefit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}
.benefit-row .ic {
  width: 17px;
  height: 17px;
  color: var(--fmt-accent);
  flex-shrink: 0;
}
.benefit-row.benefit-strong {
  font-weight: 800;
  color: var(--fmt-dark);
}

.how-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0 0;
  margin-top: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--fmt-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.how-toggle .ic {
  width: 16px;
  height: 16px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  gap: 10px;
  flex-wrap: wrap;
}
.price-block {
  line-height: 1.3;
  flex: 0 0 auto;
}
.price-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--text-dark);
}
.price-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}
.card-ctas {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}
/* Buttons share a line when they fit and take the full width when they wrap,
   instead of overflowing the card in the 3-column grid with longer labels. */
.card-ctas .btn {
  flex: 1 1 auto;
  min-width: 0;
}

/* ============================================================
   BOOKING DIALOG + PROCESS STEPS
   Shared with the course pages: booking.js builds this dialog on
   whichever page it is loaded, and the "how the course works"
   steps are the main content of a course page.
   ============================================================ */
/* ============================================
   MODAL (mit sticky Kauf-Leiste)
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 28, 21, 0.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
}
.modal-overlay.is-open {
  display: flex;
}
.modal {
  background: var(--cream);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 20px 20px 0 0;
  position: relative;
  animation: modal-up 0.25s ease-out both;
  display: flex;
  flex-direction: column;
}
#modalContent {
  overflow-y: auto;
  padding: 30px 22px 20px;
}
@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
  .modal {
    border-radius: var(--radius);
  }
  #modalContent {
    padding: 36px 36px 20px;
  }
}
@keyframes modal-up {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-dark);
  z-index: 2;
}

.modal-sticky {
  border-top: 1px solid var(--border);
  background: var(--cream);
  padding: 14px 22px;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .modal-sticky {
    padding: 16px 36px;
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

.modal-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.modal h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.modal-tagline {
  color: var(--text-muted);
  margin-bottom: 4px;
}

.steps-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 4px 0 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.steps-heading .ic {
  width: 20px;
  height: 20px;
  color: var(--orange);
}

.steps-list {
  position: relative;
}
.step-row {
  display: flex;
  gap: 14px;
  padding-bottom: 22px;
  position: relative;
}
.step-row:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 44px;
  bottom: 0;
  right: 21px;
  width: 1px;
  border-right: 1.5px dashed var(--border);
}
.step-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange-lighter);
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.step-icon .ic {
  width: 20px;
  height: 20px;
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--orange-dark);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 2px;
}
.step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.step-desc {
  color: var(--text-muted);
  font-size: 0.86rem;
}
.modal-spacer {
  height: 8px;
}

.private-booking-intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 18px;
}
.private-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.private-detail {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.84rem;
  font-weight: 700;
}
.private-detail .ic {
  width: 18px;
  height: 18px;
  color: var(--orange-dark);
  flex-shrink: 0;
  margin-top: 1px;
}
.private-package-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  margin: 4px 0 10px;
}
.private-package-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.private-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.private-package {
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  border-radius: 12px;
  padding: 13px 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}
.private-package:hover {
  border-color: var(--orange);
}
.private-package.is-selected {
  border-color: var(--orange);
  background: var(--orange-lighter);
  color: var(--orange-dark);
}
.private-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.private-whatsapp-btn .ic {
  width: 19px;
  height: 19px;
}
@media (max-width: 420px) {
  .private-detail-grid {
    grid-template-columns: 1fr;
  }
  .private-packages {
    grid-template-columns: 1fr;
  }
}

.bank-booking-intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0 0 18px;
}
.bank-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bank-whatsapp-btn .ic {
  width: 19px;
  height: 19px;
}

/* ============================================================
   COURSE PAGE (/kurse/*.html)
   One shareable page per course. Uses the card, badge, benefit
   and step rules above; this section is only the page layout.
   ============================================================ */
.course-hero {
  background: var(--cream-alt);
  border-bottom: 1px solid var(--border);
  padding: 34px 0 38px;
}
.course-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.course-hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--text-dark);
  aspect-ratio: 16 / 9;
}
.course-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-hero-media.is-contain img {
  object-fit: contain;
  background: #000;
}
.course-hero-copy h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin: 4px 0 10px;
}
.course-lead {
  color: var(--text-dark);
  opacity: 0.78;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.course-hero-copy .format-pill-row {
  margin: 14px 0 0;
}
.course-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.course-cta {
  margin-top: 18px;
  max-width: 420px;
}

.course-body {
  padding: 40px 0 64px;
}
.course-body-inner {
  max-width: 760px;
}
.course-included {
  margin-bottom: 26px;
}
.course-cta-bottom {
  margin: 32px auto 0;
}
.course-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.course-back:hover {
  color: var(--orange-dark);
}
/* The chevron points at the list, which is behind the reader in both
   directions — mirrored for RTL by the same rule that mirrors the page. */
.course-back .ic {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
}
html[dir="rtl"] .course-back .ic {
  transform: rotate(-90deg);
}

@media (min-width: 780px) {
  .course-hero {
    padding: 48px 0 52px;
  }
  .course-hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* ============================================================
   WHATSAPP FLOAT
   On the landing page and on every course page.
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.22),
    0 0 0 5px rgba(37, 211, 102, 0.14);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.26),
    0 0 0 6px rgba(37, 211, 102, 0.18);
}
.whatsapp-float svg {
  width: 34px;
  height: 34px;
}
@media (max-width: 480px) {
  .whatsapp-float {
    width: 62px;
    height: 62px;
    bottom: 16px;
    right: 16px;
  }
  .whatsapp-float svg {
    width: 32px;
    height: 32px;
  }
}
