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

/* ---------- 0. Schriftart (selbst gehostet, kein Google-CDN) ----------
   DM Sans als Variable Font (Gewichtsachse 400–800). Zwei Subsets:
   latin (inkl. deutscher Umlaute ä ö ü ß) + latin-ext (z. B. ł, č, ę). */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/dmsans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/dmsans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 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;

  /* Niveaustufen-Farben aus dem Logo (eine Quelle für alle Badges) */
  --lvl-a1: #65abb8;
  --lvl-a2: #d5a464;
  --lvl-b1: #a25d51;
  --lvl-b2: #568e66;
  --lvl-c1: #7a598c;
  --lvl-c2: #62aad7;

  --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 — Schwung-Unterstreichung hinter dem Wort (wie redesign-modern) */
.highlight {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-weight: 800;
}

.highlight::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 0;
  height: .38em;
  z-index: -1;
  background: var(--teal);
  opacity: .28;
  border-radius: 50% 80% 40% 70% / 80% 50% 90% 60%;
  transform: rotate(-1.2deg) skewX(-8deg);
}

.highlight-purple::after {
  background: var(--purple);
}

.highlight-orange::after {
  background: 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: 14px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 28px;
}

.site-logo img {
  height: 90px;
  width: auto;
}

.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1px;
}

.nav-list>li {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 11px;
  border-radius: var(--btn-radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: #3a4254;
  white-space: nowrap;
  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: 8px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  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: 124px 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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  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 {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--pill-radius);
  background: var(--teal-subtle);
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
}

/* 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);
}

/* Niveaustufen-Badges in Logo-Farben (Modifier .lvl-a1 … .lvl-c2).
   Substufen wie A1.1/A1.2 nutzen die Basisfarbe (z. B. .lvl-a1). */
.level-badge.lvl-a1 {
  color: var(--lvl-a1);
  background: color-mix(in srgb, var(--lvl-a1) 15%, #fff);
}

.level-badge.lvl-a2 {
  color: var(--lvl-a2);
  background: color-mix(in srgb, var(--lvl-a2) 15%, #fff);
}

.level-badge.lvl-b1 {
  color: var(--lvl-b1);
  background: color-mix(in srgb, var(--lvl-b1) 15%, #fff);
}

.level-badge.lvl-b2 {
  color: var(--lvl-b2);
  background: color-mix(in srgb, var(--lvl-b2) 15%, #fff);
}

.level-badge.lvl-c1 {
  color: var(--lvl-c1);
  background: color-mix(in srgb, var(--lvl-c1) 15%, #fff);
}

.level-badge.lvl-c2 {
  color: var(--lvl-c2);
  background: color-mix(in srgb, var(--lvl-c2) 15%, #fff);
}

.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(440px, 68vh, 680px);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* etwas höher ausrichten, damit im breiten Format keine Köpfe abgeschnitten werden */
  object-position: 50% 28%;
}

.hero-slide .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(80deg, rgba(1, 70, 100, 1) 0%, rgba(7, 26, 51, 0.55) 25%, rgba(7, 26, 51, 0.12) 40%, rgba(7, 26, 51, 0) 80%);
  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.35);
}

.hero-content .highlight {
  color: #fff;
}

.hero-content .highlight::after {
  background: #6fe4f4;
  opacity: .45;
}

.hero-content p {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 480px;
  margin-bottom: 26px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.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: 115px;
  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;
}

/* Chips immer einzeilig — Reihe scrollt horizontal statt Text umzubrechen */
.subnav .chip {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- 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);
}

/* Link-Listen (Dresden-Seiten) */
.link-list {
  list-style: none;
}

.link-list li {
  margin: 0;
}

.link-list a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 4px;
  font-size: 0.92rem;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}

.link-list li:last-child a {
  border-bottom: 0;
}

.link-list a::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--teal);
  transform: rotate(45deg);
  transition: var(--transition);
}

.link-list a:hover {
  color: var(--teal);
  padding-left: 12px;
}

.link-list a:hover::before {
  background: var(--purple);
}

.link-list.cols {
  columns: 2;
  column-gap: 34px;
}

.link-list.cols li {
  break-inside: avoid;
}

@media (max-width: 560px) {
  .link-list.cols {
    columns: 1;
  }
}

/* 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: 64px;
  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;
}

/* Vorbereitungs-Badges in Farben der Niveaustufe (Logo-Farben) */
.prep-btn .prep-level.lvl-a1 {
  background: var(--lvl-a1);
  color: #fff;
}

.prep-btn .prep-level.lvl-a2 {
  background: var(--lvl-a2);
  color: #fff;
}

.prep-btn .prep-level.lvl-b1 {
  background: var(--lvl-b1);
  color: #fff;
}

.prep-btn .prep-level.lvl-b2 {
  background: var(--lvl-b2);
  color: #fff;
}

.prep-btn .prep-level.lvl-c1 {
  background: var(--lvl-c1);
  color: #fff;
}

.prep-btn .prep-level.lvl-c2 {
  background: var(--lvl-c2);
  color: #fff;
}

/* ---------- 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: 1080px) {

  /* Navigation früher zu Hamburger zusammenklappen — das Lernen-Dropdown
     macht die Leiste sonst zu voll. Util-Bar + Desktop-Nav aus, Hamburger
     + mobile Kontakt-Pill an. */
  .utilbar {
    display: none;
  }

  .main-nav,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .contact-fab {
    display: block;
  }

  .subnav {
    top: 115px;
  }
}

@media (max-width: 768px) {
  /* Hero: kräftigeres, gleichmäßigeres Overlay → Text auf allen Fotos lesbar */
  .hero-slide .hero-overlay {
    background: linear-gradient(90deg, rgba(4, 38, 60, 0.86) 0%, rgba(6, 26, 51, 0.66) 50%, rgba(6, 26, 51, 0.5) 100%);
  }
  .hero-content h1 { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55); }
  .hero-content p { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }

  .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) {

  /* Subnav-Pills kompakter auf dem Handy */
  .subnav-inner {
    gap: 6px;
    padding: 10px 16px;
  }

  .subnav .chip {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-width: 1px;
  }

  /* 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;
  }

  /* Lange Hervorhebungen dürfen mobil umbrechen (kein horizontaler Überlauf) */
  .highlight {
    white-space: normal;
  }
}

@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;
  }
}

/* ---------- 26. Skip-Link (Barrierefreiheit) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 2000;
  background: var(--teal);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-family: var(--font-head);
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

/* ---------- 27. Sicherheitscode (Captcha) ---------- */
.captcha-field {
  margin: 18px 0;
}

.captcha-field>label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.captcha-row img {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ghost);
}

.captcha-reload {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}

.captcha-reload:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.captcha-reload svg {
  width: 18px;
  height: 18px;
}

.captcha-field input {
  width: 100%;
  max-width: 220px;
  padding: 11px 14px;
  border: 2px solid var(--line);
  border-radius: var(--btn-radius);
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.captcha-field input:focus {
  outline: none;
  border-color: var(--teal);
}

.captcha-field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- 28. Formular-Hinweise (Fehler / Erfolg) ---------- */
.form-alert {
  border-radius: var(--card-radius);
  padding: 18px 22px;
  margin-bottom: 26px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-alert.error {
  background: #fdecec;
  color: #a12525;
  border: 1px solid #f3c6c6;
}

.form-alert.success {
  background: #e9f8ef;
  color: #1a7d44;
  border: 1px solid #bfe8cf;
}

.form-alert ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* ---------- 29. Einstufungstest — Fragenlayout ---------- */
.test-q {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.test-q:last-child {
  border-bottom: none;
}

.test-q-text {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.test-q-text .qnum {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--teal-subtle);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-family: var(--font-head);
}

.test-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.test-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: var(--transition);
}

.test-opt:hover {
  border-color: var(--teal);
  background: var(--teal-subtle);
}

.test-opt input {
  margin-top: 3px;
  accent-color: var(--teal);
}

.test-opt:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-subtle);
}

.test-gap-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.test-gap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.test-gap input {
  width: 70px;
  padding: 8px 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.test-gap input:focus {
  outline: none;
  border-color: var(--teal);
}

/* Ergebnis-Anzeige */
.result-level {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--teal-dark);
}

.result-score {
  font-size: 1.05rem;
  color: var(--muted);
}

/* ---------- 30. Lehrwerk-Liste (verlinkte Schubert-Titel) ---------- */
.lehrwerk-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 0;
}

.lehrwerk-list li {
  margin: 0;
}

.lehrwerk-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: var(--pill-radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--teal-dark);
  transition: var(--transition);
}

.lehrwerk-list a::after {
  content: "↗";
  font-size: 0.8em;
  opacity: 0.6;
}

.lehrwerk-list a:hover {
  border-color: var(--teal);
  background: var(--teal-subtle);
}

/* Niveaustufen-Chips als Checkboxen (Anmeldeformular) */
.chip-check {
  cursor: pointer;
  user-select: none;
}

.chip-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.chip-check:has(input:checked) {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.chip-check:focus-within {
  border-color: var(--teal);
}

/* =====================================================================
   Rechtstexte (Impressum / Datenschutz / AGB)
   ===================================================================== */
.legal-text {
  color: var(--ink);
  line-height: 1.75;
}

.legal-text>p,
.legal-text ul,
.legal-text ol {
  font-size: 1rem;
  color: #475063;
  margin: 0 0 1.1em;
}

.legal-text h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin: 2.2em 0 0.6em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
}

.legal-text h2:first-of-type {
  padding-top: 0;
  border-top: 0;
  margin-top: 0.4em;
}

.legal-text h3 {
  font-size: 1.08rem;
  color: var(--ink);
  margin: 1.6em 0 0.5em;
}

.legal-text ul,
.legal-text ol {
  padding-left: 1.4em;
}

.legal-text li {
  margin: 0 0 0.5em;
}

.legal-text a {
  color: var(--teal);
  text-decoration: underline;
}

.legal-text a:hover {
  color: var(--teal-dark);
}

.legal-text .legal-contact {
  margin: 0.4em 0 1.4em;
  padding: 18px 22px;
  background: var(--teal-subtle);
  border-radius: 12px;
  line-height: 1.6;
}

.legal-text .legal-contact p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.legal-text .muted {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- 31. Dev-Leiste (nur localhost) ---------- */
.dev-bar {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff7ed;
  border: 2px dashed var(--orange);
  border-radius: var(--btn-radius);
  font-size: 0.85rem;
}
.dev-bar strong { color: var(--orange); font-family: var(--font-head); }
.dev-bar .dev-hint { color: var(--muted); font-size: 0.78rem; }

/* ---------- 32. GER-Grafik (volle Größe, nicht beschnitten) ---------- */
.ger-grafik {
  margin: 40px auto 0;
  max-width: 1000px;
  text-align: center;
}
.ger-grafik img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.ger-grafik img[data-zoom]:hover { box-shadow: var(--shadow-md); }

/* ---------- 33. Bild-Lightbox ---------- */
.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(13, 18, 28, 0.9);
  display: grid;
  place-items: center;
  padding: 24px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.zoom-overlay.open { opacity: 1; }
.zoom-overlay img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ---------- 34. Back-to-top-Button ---------- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 230;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--teal-dark); }
.to-top svg { width: 22px; height: 22px; }

/* unterhalb 1080px ist die mobile Kontakt-Pill sichtbar → Button darüber setzen */
@media (max-width: 1080px) {
  .to-top { bottom: 78px; }
}