/* =====================================================================
   Deutsche Sprachschule Dresden — Redesign Prototyp
   Gemeinsames Stylesheet (Designsystem + Komponenten)
   Hybrid: Typografie/Komponenten aus redesign-modern,
   Hero-Crossfade aus redesign-dsd, weißer Footer, mobile Kontakt-Pill.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --purple: #864A92;
  --purple-dark: #6e3d7a;
  --teal: #16A4B9;
  --teal-dark: #128a9c;
  --teal-subtle: rgba(22, 164, 185, 0.08);
  --navy: #084B8A;
  --navy-dark: #063a6b;
  --orange: #FF6600;
  --ghost: #F8F8FF;
  --light-gray: #F5F5F5;
  --line: #ececf1;
  --ink: #1d2330;
  --muted: #6B7280;
  --white: #ffffff;

  --green: #1f9d57;

  --font-head: "DM Sans", "Segoe UI", Verdana, Arial, sans-serif;
  --font-body: Verdana, "Segoe UI", Arial, Helvetica, sans-serif;

  --max-w: 1200px;

  --card-radius: 18px;
  --btn-radius: 10px;
  --pill-radius: 100px;

  --shadow-sm: 0 2px 8px rgba(16, 30, 54, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 30, 54, 0.08);
  --shadow-lg: 0 18px 48px rgba(16, 30, 54, 0.12);
  --shadow-teal: 0 10px 30px rgba(22, 164, 185, 0.28);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: all 0.3s ease;
}

/* ---------- 2. Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ghost);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

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

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ---------- 3. Typografie ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 0.85rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--ink); }

.lead { font-size: 1.08rem; color: #475063; line-height: 1.75; }
.muted { color: var(--muted); }
.text-center { text-align: center; }

/* Hervorhebung — nur Farbe (teal) + etwas fetter, kein Unterstrich */
.highlight { color: var(--teal); font-weight: 800; }
.highlight-purple { color: var(--purple); }
.highlight-orange { color: var(--orange); }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--pill-radius);
  background: var(--teal-subtle); color: var(--teal);
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px;
}
.section-label.purple { background: rgba(134,74,146,0.09); color: var(--purple); }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--btn-radius);
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; transition: var(--transition); white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-2px); box-shadow: var(--shadow-teal); }
.btn-secondary { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-secondary:hover { background: var(--purple-dark); border-color: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(134,74,146,0.28); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: transparent; }
.btn-ghost:hover { background: var(--teal-subtle); color: var(--teal); }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }

/* ---------- 5. Util-Bar (Kontaktbanner über Navbar) ---------- */
.utilbar { background: var(--purple); color: #fff; font-size: 0.82rem; }
.utilbar-inner {
  display: flex; align-items: center; justify-content: center; gap: 28px;
  flex-wrap: wrap; padding: 9px 24px; max-width: var(--max-w); margin: 0 auto;
}
.utilbar-item { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.92); }
.utilbar-item svg { width: 14px; height: 14px; opacity: 0.85; flex-shrink: 0; }
.utilbar-item a { color: inherit; transition: opacity 0.2s; }
.utilbar-item a:hover { opacity: 0.8; }
.utilbar-spacer { margin-left: auto; }

/* ---------- 6. Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200; background: #fff;
  border-bottom: 1px solid var(--line); transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; gap: 20px;
  max-width: var(--max-w); margin: 0 auto; padding: 12px 24px;
}
.site-logo img { height: 54px; width: auto; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: var(--btn-radius);
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem;
  color: #3a4254; transition: var(--transition); background: none; border: none;
}
.nav-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
.nav-link:hover, .nav-link.active { color: var(--teal); background: var(--teal-subtle); }
.nav-item.open > .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0.22s;
}
.nav-item:hover > .dropdown,
.nav-item.open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: 10px; font-family: var(--font-head); font-weight: 600;
  font-size: 0.88rem; color: #3a4254; transition: var(--transition);
}
.dropdown a:hover { background: var(--teal-subtle); color: var(--teal); }
.dropdown a .dd-ico {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--teal-subtle); color: var(--teal);
}
.dropdown a .dd-ico svg { width: 16px; height: 16px; }
.dropdown a small { display: block; font-weight: 400; font-size: 0.74rem; color: var(--muted); font-family: var(--font-body); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--pill-radius);
  border: 2px solid var(--line); background: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; color: #3a4254;
  transition: var(--transition);
}
.lang-pill:hover { border-color: var(--teal); color: var(--teal); }
.lang-pill svg { width: 14px; height: 14px; }
.lang-pill { cursor: pointer; }
.lang-pill .chev { transition: transform 0.2s; }
.lang-select { position: relative; }
.lang-select.open .lang-pill { border-color: var(--teal); color: var(--teal); }
.lang-select.open .lang-pill .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 180px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 300; }
.lang-select.open .lang-menu { display: block; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 0.86rem; color: var(--ink); font-family: var(--font-head); font-weight: 500; transition: background 0.15s; }
.lang-menu a:hover { background: var(--teal-subtle); color: var(--teal-dark); }
.lang-menu a.active { background: var(--teal-subtle); color: var(--teal-dark); font-weight: 700; }
.lang-menu .lang-flag { font-size: 1.05rem; line-height: 1; }

/* Hamburger */
.hamburger {
  display: none; width: 44px; height: 44px; background: none; border: none;
  position: relative; flex-shrink: 0; margin-left: auto;
}
.hamburger span {
  display: block; width: 24px; height: 2.5px; background: var(--navy);
  border-radius: 2px; margin: 0 auto; transition: all 0.3s var(--ease-out);
}
.hamburger span:nth-child(1) { transform: translateY(-6px); }
.hamburger span:nth-child(3) { transform: translateY(6px); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw);
  background: #fff; box-shadow: var(--shadow-lg); z-index: 300;
  transform: translateX(100%); transition: transform 0.35s var(--ease-out);
  overflow-y: auto; padding: 88px 22px 40px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(16,30,54,0.45); z-index: 250;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }
.m-group { border-bottom: 1px solid var(--line); }
.m-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 15px 6px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  color: var(--navy); background: none; border: none; text-align: left;
}
.m-link svg { width: 16px; height: 16px; transition: transform 0.25s; }
.m-group.open .m-link svg { transform: rotate(180deg); }
.m-sub { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease-out); }
.m-sub a { display: block; padding: 11px 14px; color: #475063; font-size: 0.95rem; }
.m-sub a:hover { color: var(--teal); }
.mobile-menu .btn { width: 100%; margin-top: 18px; }

/* ---------- 7. Mobile Kontakt-Pill (FAB) ---------- */
.contact-fab { display: none; }
.contact-fab-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 240;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: var(--pill-radius);
  background: var(--teal); color: #fff; border: none;
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  box-shadow: var(--shadow-teal);
}
.contact-fab-btn svg { width: 18px; height: 18px; }
.contact-fab-panel {
  position: fixed; right: 16px; bottom: 76px; z-index: 241;
  width: min(320px, calc(100vw - 32px));
  background: #fff; border-radius: var(--card-radius); box-shadow: var(--shadow-lg);
  padding: 22px; opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.97);
  transform-origin: bottom right; transition: all 0.28s var(--ease-spring);
}
.contact-fab-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.contact-fab-panel h4 { color: var(--navy); margin-bottom: 14px; }
.cf-item { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 14px; font-size: 0.88rem; line-height: 1.5; }
.cf-item svg { width: 18px; height: 18px; fill: var(--teal); flex-shrink: 0; margin-top: 2px; }
.cf-item a { color: var(--ink); }
.cf-hours { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 14px; }
.cf-hours .row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); margin-bottom: 5px; }
.contact-fab-panel .btn { width: 100%; margin-top: 8px; }

/* ---------- 8. Cards ---------- */
.card { background: #fff; border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(16,30,54,0.04); transition: var(--transition); }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(16,30,54,0.09); border-color: rgba(22,164,185,0.4); }
.card-body { padding: 24px; }

/* Kurs-Karten (Index) */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 26px; }
.course-card { display: flex; flex-direction: column; position: relative; }
.course-card .cc-media { height: 168px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--teal)); }
.course-card .cc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.course-card:hover .cc-media img { transform: scale(1.06); }
.course-card .cc-icon {
  position: absolute; top: 14px; left: 14px; width: 44px; height: 44px;
  border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: var(--teal); box-shadow: var(--shadow-md);
}
.course-card .cc-icon svg { width: 22px; height: 22px; }
.course-card.tone-purple .cc-icon { background: var(--purple); }
.course-card.tone-navy .cc-icon { background: var(--navy); }
.course-card.tone-orange .cc-icon { background: var(--orange); }
.course-card .card-body { flex: 1; display: flex; flex-direction: column; }
.course-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.course-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.cc-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--teal); transition: gap 0.2s; }
.cc-link:hover { gap: 11px; }
.cc-link svg { width: 16px; height: 16px; }
.cc-meta { font-size: 0.8rem; color: var(--muted); }

/* Prüfungs-Info-Band (Index, keine Karte) */
.exam-note { display: flex; align-items: center; gap: 22px; margin-top: 30px; padding: 24px 30px; background: var(--teal-subtle); border: 1px solid rgba(22,164,185,0.2); border-left: 4px solid var(--teal); border-radius: var(--card-radius); }
.exam-note-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--teal); color: #fff; }
.exam-note-icon svg { width: 26px; height: 26px; }
.exam-note-text { flex: 1; }
.exam-note-text h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: 4px; }
.exam-note-text p { color: var(--muted); font-size: 0.92rem; }
.exam-note .btn { flex-shrink: 0; }

/* ---------- 9. Chips / Badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--pill-radius);
  border: 2px solid var(--line); background: #fff; color: #475063;
  font-family: var(--font-head); font-weight: 600; font-size: 0.84rem;
  transition: var(--transition);
}
.chip:hover, .chip.active, .chip.selected { background: var(--teal); color: #fff; border-color: var(--teal); }
.chip-purple:hover, .chip-purple.active { background: var(--purple); border-color: var(--purple); color: #fff; }

.level-badge { display: inline-block; padding: 3px 12px; border-radius: var(--pill-radius); font-family: var(--font-head); font-size: 0.74rem; font-weight: 700; background: var(--teal-subtle); color: var(--teal); }
.meta-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: var(--pill-radius);
  background: var(--teal-subtle); color: var(--teal);
  font-family: var(--font-head); font-size: 0.82rem; font-weight: 600;
}
.meta-tag svg { width: 15px; height: 15px; }
.meta-tag.purple { background: rgba(134,74,146,0.09); color: var(--purple); }
.meta-tag.navy { background: rgba(8,75,138,0.08); color: var(--navy); }

/* ---------- 10. Hero Crossfade Slider (Index) ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 3px solid var(--teal);
  background: var(--navy);
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-track { position: relative; height: clamp(420px, 60vh, 580px); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,24,48,0.94) 0%, rgba(7,45,90,0.86) 40%, rgba(8,75,138,0.55) 72%, rgba(134,74,146,0.4) 100%);
  display: flex; align-items: center;
}
.hero-content { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; width: 100%; color: #fff; }
.hero-content .inner { max-width: 600px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 6px 16px; border-radius: var(--pill-radius);
  background: rgba(255,255,255,0.14); backdrop-filter: blur(6px);
  font-family: var(--font-head); font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.hero-content h1 { color: #fff; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.hero-content .highlight { color: #6fe4f4; }
.hero-content p { font-size: 1.12rem; color: rgba(255,255,255,0.92); max-width: 480px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Bewegung liefert die Folien-Überblendung selbst — Inhalt bleibt immer sichtbar. */

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(8px); color: #fff;
  display: grid; place-items: center; transition: background 0.2s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.35); }
.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 9px; }
.hero-dot { width: 11px; height: 11px; border-radius: 50%; border: none; background: rgba(255,255,255,0.45); transition: all 0.3s; }
.hero-dot.active { background: #fff; transform: scale(1.25); width: 28px; border-radius: 6px; }

/* ---------- 11. Intro-Band (Index) ---------- */
.intro-band { background: #fff; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.intro-grid .intro-media { position: relative; border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--purple), var(--navy)); }
.intro-grid .intro-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.intro-badge {
  position: absolute; left: 22px; bottom: 22px; background: #fff;
  border-radius: 14px; padding: 14px 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
}
.intro-badge .num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--teal); line-height: 1; }
.intro-badge .lbl { font-size: 0.82rem; color: var(--muted); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; margin-top: 36px; }
.stat .num { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--teal); }
.stat .lbl { font-size: 0.88rem; color: var(--muted); }

/* ---------- 12. Trust-Bar ---------- */
.trust { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; padding: 26px 24px; }
.trust-logo { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; color: #b9bdc8; transition: var(--transition); }
.trust-logo:hover { color: var(--navy); }

/* ---------- 13. Video-Bereich ---------- */
.video-section { background: var(--ghost); text-align: center; }
.video-wrap { max-width: 920px; margin: 36px auto 0; }
.video-frame { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.video-frame iframe, .video-frame .video-ph { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph {
  display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(135deg, var(--navy), var(--purple-dark));
}
.video-ph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(22,164,185,0.25), transparent 65%); }
.play-btn { position: relative; width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,0.16); backdrop-filter: blur(4px); border: 2px solid rgba(255,255,255,0.3); display: grid; place-items: center; transition: var(--transition); }
.video-ph:hover .play-btn { transform: scale(1.08); background: rgba(255,255,255,0.26); }
.play-btn svg { width: 34px; height: 34px; fill: #fff; margin-left: 5px; }
.video-ph .ph-text { position: absolute; bottom: 26px; color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* ---------- 14. Sub-Navigation (Kursseiten) ---------- */
.subnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 79px; z-index: 100; }
.subnav-inner { display: flex; gap: 8px; padding: 14px 24px; max-width: var(--max-w); margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }

/* ---------- 15. Kurs-Detail Hero ---------- */
.course-hero { background: #fff; }
.course-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.course-hero-media { border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--navy), var(--teal)); }
.course-hero-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.course-hero-text h1 { margin-bottom: 16px; }
/* Kurzinfo-Buttons UNTER dem Text (Kundenwunsch) */
.meta-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb svg { width: 13px; height: 13px; }

/* ---------- 16. Schedule-Tabelle ---------- */
.schedule-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.schedule-table th { background: var(--navy); color: #fff; padding: 14px 20px; text-align: left; font-family: var(--font-head); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.schedule-table td { padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tbody tr { transition: background 0.2s; }
.schedule-table tbody tr:hover { background: var(--teal-subtle); }
.status-free { color: var(--green); font-weight: 700; }
.status-soon { color: var(--orange); font-weight: 700; }

/* ---------- 17. Accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item { border: 1px solid var(--line); border-radius: var(--card-radius); overflow: hidden; background: #fff; transition: box-shadow 0.25s; }
.accordion-item.open { box-shadow: var(--shadow-md); }
.accordion-header {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px; background: none; border: none; text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--navy);
  transition: var(--transition);
}
.accordion-header:hover { background: var(--teal-subtle); }
.accordion-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--light-gray); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; font-size: 1.3rem; line-height: 1; transition: var(--transition); }
.accordion-item.open .accordion-icon { background: var(--teal); color: #fff; transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-out); }
.accordion-content-inner { padding: 4px 24px 24px; color: #4a5363; font-size: 0.95rem; line-height: 1.75; }
.accordion-content-inner ul { list-style: none; }
.accordion-content-inner li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.accordion-content-inner li::before { content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; background: var(--teal-subtle); border-radius: 50%; }
.accordion-content-inner li::after { content: ""; position: absolute; left: 5px; top: 11px; width: 6px; height: 3px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.price-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-top: 6px; }
.price-table th { text-align: left; padding: 11px 14px; border-bottom: 2px solid var(--teal); font-family: var(--font-head); color: var(--navy); font-size: 0.82rem; }
.price-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.price-table tr.featured { background: var(--teal-subtle); }
.price-table tr.featured td { font-weight: 700; color: var(--navy); }

/* ---------- 18. Formulare ---------- */
.form-card { background: #fff; border-radius: var(--card-radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-section { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.form-section h3 { font-size: 1.05rem; color: var(--purple); display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.section-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--purple); flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-family: var(--font-head); font-size: 0.82rem; font-weight: 600; color: #4a5363; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 15px; border: 2px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 0.92rem; color: var(--ink); background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(22,164,185,0.12); }
.form-textarea { resize: vertical; min-height: 120px; }
.radio-group { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-label { display: inline-flex; align-items: center; gap: 7px; font-size: 0.92rem; }
.radio-label input { accent-color: var(--teal); }
.level-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.privacy-note { font-size: 0.8rem; color: var(--muted); line-height: 1.55; margin-top: 6px; }
.privacy-note a { color: var(--teal); }

.anmeldung-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }

/* Kontakt-Panel (sticky) */
.contact-panel { background: var(--navy); color: #fff; border-radius: var(--card-radius); padding: 32px; position: sticky; top: 100px; }
.contact-panel h3 { color: #fff; margin-bottom: 22px; }
.cp-item { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 20px; }
.cp-item svg { width: 20px; height: 20px; fill: var(--teal); flex-shrink: 0; margin-top: 3px; }
.cp-item p { font-size: 0.9rem; line-height: 1.55; color: rgba(255,255,255,0.85); }
.cp-item a { color: #fff; }
.cp-hours { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); }
.cp-hours .row { display: flex; justify-content: space-between; font-size: 0.86rem; color: rgba(255,255,255,0.7); margin-bottom: 8px; }

/* ---------- 19. Einstufungstest ---------- */
.test-hero { background: linear-gradient(135deg, var(--navy), var(--purple)); border-radius: var(--card-radius); padding: 64px 32px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.test-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 22px 22px; }
.test-hero > * { position: relative; }
.test-hero h1 { color: #fff; }
.test-hero p { color: rgba(255,255,255,0.82); margin-top: 14px; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card { background: #fff; border-radius: var(--card-radius); padding: 32px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.info-card .ico { width: 58px; height: 58px; border-radius: 16px; background: var(--teal-subtle); color: var(--teal); display: grid; place-items: center; margin: 0 auto 16px; }
.info-card .ico svg { width: 26px; height: 26px; }
.info-card h4 { color: var(--navy); margin-bottom: 6px; }
.info-card p { font-size: 0.88rem; color: var(--muted); }
/* Multistep-Test */
.test-stepper { max-width: 760px; margin: 0 auto; }
.test-progress { height: 8px; background: var(--line); border-radius: 100px; overflow: hidden; margin-bottom: 12px; }
.test-progress-bar { height: 100%; width: 20%; background: linear-gradient(90deg, var(--teal), var(--navy)); border-radius: 100px; transition: width 0.45s var(--ease-out); }
.test-stepmeta { display: flex; justify-content: space-between; font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 24px; }
.test-stepmeta .pct { color: var(--teal); }
.test-step { display: none; }
.test-step.active { display: block; animation: fadeStep 0.45s var(--ease-out); }
@keyframes fadeStep { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.test-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.test-nav .btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.quiz { max-width: 760px; margin: 0 auto; }
.quiz-q { background: #fff; border-radius: var(--card-radius); padding: 28px; margin-bottom: 18px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--teal); }
.q-num { font-family: var(--font-head); font-size: 0.74rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.q-text { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.q-options { display: flex; flex-direction: column; gap: 9px; }
.q-option { display: flex; align-items: center; gap: 11px; padding: 11px 16px; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; transition: var(--transition); font-size: 0.92rem; }
.q-option:hover { border-color: var(--teal); background: var(--teal-subtle); }
.q-option input { accent-color: var(--teal); }
.quiz-divider { text-align: center; padding: 22px; color: #b3b8c2; font-style: italic; font-size: 0.9rem; position: relative; }
.quiz-divider::before, .quiz-divider::after { content: ""; position: absolute; top: 50%; width: 28%; height: 1px; background: var(--line); }
.quiz-divider::before { left: 4%; } .quiz-divider::after { right: 4%; }
.email-box { background: var(--light-gray); border-radius: var(--card-radius); padding: 34px; text-align: center; margin-top: 30px; }
.email-box h3 { margin-bottom: 8px; }
.email-input-group { display: flex; gap: 12px; max-width: 460px; margin: 18px auto 0; }
.email-input-group .form-input { flex: 1; }

/* ---------- 20. Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.team-card { text-align: center; }
.team-photo { width: 100%; height: 300px; object-fit: cover; object-position: center 28%; background: var(--light-gray); }
/* Dozenten-Fotos im Hochformat (210x300) — Ratio 7:10 = kein Crop, ganzes Gesicht */
.team-card .team-photo { display: block; width: 82%; max-width: 240px; height: auto; aspect-ratio: 7 / 10; margin: 26px auto 0; object-fit: cover; object-position: center; border-radius: 16px; box-shadow: var(--shadow-sm); }
.team-card .card-body { padding: 22px; }
.team-card h4 { color: var(--navy); margin-bottom: 4px; }
.team-role { color: var(--teal); font-family: var(--font-head); font-size: 0.84rem; font-weight: 700; margin-bottom: 12px; }
.team-bio { font-size: 0.86rem; color: var(--muted); line-height: 1.65; }

/* Hervorgehobener Schulleiter (löst 5er-Problem) */
.team-lead { display: grid; grid-template-columns: 300px 1fr; max-width: 880px; margin: 0 auto 40px; overflow: hidden; }
.team-lead .team-photo { height: 100%; min-height: 320px; }
.team-lead .lead-body { padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.team-lead .lead-tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 7px;
  padding: 5px 14px; border-radius: var(--pill-radius); background: var(--teal-subtle);
  color: var(--teal); font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px;
}
.team-lead h3 { color: var(--navy); margin-bottom: 6px; }
.team-lead .team-role { margin-bottom: 14px; }
.team-lead .team-bio { font-size: 0.95rem; line-height: 1.7; }

/* Dozenten als 2x2-Raster (Desktop) */
.team-grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 880px; margin: 0 auto; }

@media (max-width: 980px) {
  .team-lead { grid-template-columns: 1fr; max-width: 420px; text-align: center; }
  .team-lead .lead-body { padding: 28px; }
  .team-lead .lead-tag { align-self: center; }
  .team-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 560px) { .team-grid-4 { grid-template-columns: 1fr; } }

/* avatar placeholder (kein Foto vorhanden) */
.avatar-ph { width: 100%; height: 280px; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 3.2rem; background: linear-gradient(135deg, var(--teal), var(--navy)); }
.team-card:nth-child(2) .avatar-ph { background: linear-gradient(135deg, var(--purple), var(--navy)); }
.team-card:nth-child(3) .avatar-ph { background: linear-gradient(135deg, var(--navy), var(--teal)); }
.team-card:nth-child(4) .avatar-ph { background: linear-gradient(135deg, var(--purple), var(--teal)); }
.team-card:nth-child(5) .avatar-ph { background: linear-gradient(135deg, var(--orange), var(--purple)); }

/* ---------- 21. CTA-Band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--purple)); border-radius: var(--card-radius); padding: 60px 40px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 24px 24px; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.82); margin-bottom: 28px; font-size: 1.05rem; }
.cta-band .highlight { color: #6fe4f4; }

/* ---------- 22. Footer (WEISS) ---------- */
.site-footer { background: #fff; border-top: 4px solid var(--purple); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 36px; max-width: var(--max-w); margin: 0 auto; padding: 0 24px 40px; border-bottom: 1px solid var(--line); }
.footer-brand img { height: 50px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: var(--light-gray); display: grid; place-items: center; color: var(--navy); transition: var(--transition); }
.footer-social a:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.footer-social a svg { width: 17px; height: 17px; }
.footer-col h4 { color: var(--navy); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--teal); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.88rem; color: var(--muted); }
.footer-contact-item svg { width: 16px; height: 16px; fill: var(--teal); flex-shrink: 0; margin-top: 4px; }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--teal); }

/* ---------- 23. Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- 24. Styleguide-Helfer ---------- */
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.sg-swatch { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.sg-swatch .chip-color { height: 96px; }
.sg-swatch .meta { padding: 12px 14px; background: #fff; font-size: 0.8rem; }
.sg-swatch .meta strong { display: block; font-family: var(--font-head); }
.sg-swatch .meta code { color: var(--muted); }
.sg-block { background: #fff; border: 1px solid var(--line); border-radius: var(--card-radius); padding: 30px; margin-bottom: 26px; }
.sg-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.sg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ---------- 24b. Referenzen ---------- */
button.chip { -webkit-appearance: none; appearance: none; cursor: pointer; }
.lang-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 0 auto 40px; max-width: 760px; }
.lang-filter .chip { cursor: pointer; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.reference-card { display: flex; flex-direction: column; padding: 26px; position: relative; }
.reference-card.is-hidden { display: none; }
.ref-lang-badge { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--pill-radius); background: var(--teal-subtle); color: var(--teal-dark); font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; }
.ref-quote { font-size: 0.98rem; line-height: 1.7; color: var(--ink); margin: 6px 0 22px; position: relative; padding-top: 30px; }
.ref-quote::before { content: "\201C"; position: absolute; top: -8px; left: -4px; font-family: Georgia, serif; font-size: 3.4rem; line-height: 1; color: var(--teal); opacity: 0.4; }
.ref-person { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.ref-avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; background: linear-gradient(135deg, var(--teal), var(--navy)); overflow: hidden; }
.ref-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ref-person:nth-child(n) .ref-avatar { } /* Platzhalter-Farben via data-tone */
.reference-card[data-tone="purple"] .ref-avatar { background: linear-gradient(135deg, var(--purple), var(--navy)); }
.reference-card[data-tone="orange"] .ref-avatar { background: linear-gradient(135deg, var(--orange), var(--purple)); }
.reference-card[data-tone="teal"] .ref-avatar { background: linear-gradient(135deg, var(--teal), var(--green)); }
.ref-name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 0.98rem; }
.ref-meta { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.ref-flag { font-size: 1rem; }
.ref-empty { text-align: center; color: var(--muted); padding: 40px 0; display: none; }

/* ---------- 24c. Daten / Diagramme ---------- */
.year-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 40px; }
.year-switch .chip { cursor: pointer; min-width: 64px; justify-content: center; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--card-radius); padding: 28px; box-shadow: var(--shadow-sm); }
.chart-title { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.chart-sub { font-size: 0.84rem; color: var(--muted); margin-bottom: 22px; }
.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: center; }
.donut { position: relative; width: 200px; height: 200px; flex-shrink: 0; }
.donut svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donut-center .num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--navy); line-height: 1; }
.donut-center .lbl { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.donut-seg { transition: stroke-dashoffset 0.6s var(--ease-out), stroke-dasharray 0.6s var(--ease-out); }
.donut-legend { display: flex; flex-direction: column; gap: 10px; min-width: 180px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.legend-name { color: var(--ink); flex: 1; }
.legend-val { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.legend-pct { color: var(--muted); font-size: 0.78rem; width: 42px; text-align: right; }
.bar-list { display: flex; flex-direction: column; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 34px; align-items: center; gap: 12px; }
.bar-label { font-size: 0.85rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { display: block; height: 20px; background: var(--light-gray); border-radius: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; min-width: 2px; border-radius: 6px; background: linear-gradient(90deg, var(--teal), var(--navy)); transition: width 0.7s var(--ease-out); }
.bar-value { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--navy); text-align: right; }
.daten-note { font-size: 0.82rem; color: var(--muted); margin-top: 26px; text-align: center; }

/* ---------- 24d. Termin-Kalender (Intensivkurse) ---------- */
.termine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.termin-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: var(--card-radius); padding: 22px 18px; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); }
.termin-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.termin-month { font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); }
.termin-day { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.termin-note { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

/* ---------- 24e. Prüfungs-Vorbereitungsmaterial ---------- */
.prep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.prep-btn { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--card-radius); box-shadow: var(--shadow-sm); transition: var(--transition); }
.prep-btn:hover { border-color: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.prep-btn .prep-level { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--teal-subtle); color: var(--teal-dark); font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; }
.prep-btn .prep-text { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 0.9rem; line-height: 1.3; }
.prep-btn .prep-text small { display: block; color: var(--muted); font-weight: 400; font-size: 0.78rem; }

/* ---------- 25. Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .course-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .info-cards { grid-template-columns: 1fr; }
  .anmeldung-grid { grid-template-columns: 1fr !important; }
  .contact-panel { position: static; }
  .sg-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .utilbar { display: none; }              /* Kontaktbanner mobil ausblenden */
  .main-nav, .nav-actions { display: none; }
  .hamburger { display: block; }
  .contact-fab { display: block; }          /* mobile Kontakt-Pill anzeigen */
  .subnav { top: 67px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section { padding: 52px 0; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .exam-note { flex-direction: column; text-align: center; }
  .email-input-group { flex-direction: column; }
  .hero-arrow { display: none; }
}

@media (max-width: 600px) {
  /* Kurszeiten/Niveau-Tabelle → gestapelte Karten (kein x-Überlauf) */
  .schedule-table { display: block; box-shadow: none; background: transparent; border-radius: 0; overflow: visible; }
  .schedule-table thead { display: none; }
  .schedule-table tbody, .schedule-table tr, .schedule-table td { display: block; }
  .schedule-table tr { background: #fff; border: 1px solid var(--line); border-radius: var(--card-radius); box-shadow: var(--shadow-sm); padding: 14px 16px; margin-bottom: 12px; }
  .schedule-table tbody tr:hover { background: #fff; }
  .schedule-table td { padding: 3px 0; border: none; font-size: 0.9rem; }
  .schedule-table td:first-child { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
  /* Preistabellen: horizontal scrollbar statt Seitenüberlauf */
  .price-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: 1fr; }
}

/* reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
