/* ==========================================================================
   ATEM — Design System
   Neumorphism, minimalistisch, medizinisch, clean
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/Inter-Variable.woff2') format('woff2-variations'), url('../assets/fonts/Inter-Variable.woff2') format('woff2');
}

:root {
  /* Brand */
  --color-primary: #4E84F7;
  --color-primary-dark: #3968D6;
  --color-primary-light: #7FA6FA;
  --color-primary-tint: #E7EEFE;

  /* Neumorphic base surface */
  --bg: #E9EEF9;
  --surface: #E9EEF9;
  --shadow-light: #FFFFFF;
  --shadow-dark: #C4CDE3;

  /* Text */
  --text-primary: #1E2433;
  --text-secondary: #5B6478;
  --text-muted: #8891A3;
  --text-on-primary: #FFFFFF;

  /* Semantic */
  --success: #3FB27F;
  --danger: #E25858;

  /* Elevation (neumorphic) */
  --el-sm: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
  --el-md: 8px 8px 20px var(--shadow-dark), -8px -8px 20px var(--shadow-light);
  --el-lg: 14px 14px 32px var(--shadow-dark), -14px -14px 32px var(--shadow-light);
  --el-inset: inset 4px 4px 10px var(--shadow-dark), inset -4px -4px 10px var(--shadow-light);
  --el-inset-sm: inset 3px 3px 7px var(--shadow-dark), inset -3px -3px 7px var(--shadow-light);

  /* Radii */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-full: 999px;

  /* Layout */
  --max-width: 1180px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.lede {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.section { padding: var(--space-6) 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-5);
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-primary); color: #fff;
  padding: 10px 18px; border-radius: 0 0 var(--r-sm) 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Neumorphic primitives ---------- */
.surface {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--el-md);
}
.surface-sm { box-shadow: var(--el-sm); border-radius: var(--r-sm); }
.surface-inset { box-shadow: var(--el-inset); border-radius: var(--r-md); }

.card {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--el-md);
  padding: var(--space-3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--el-lg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--r-full);
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--color-primary);
  color: var(--text-on-primary);
  box-shadow: 6px 6px 16px rgba(78, 132, 247, 0.35), -4px -4px 12px rgba(255, 255, 255, 0.6);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 8px 8px 20px rgba(78, 132, 247, 0.4), -4px -4px 12px rgba(255, 255, 255, 0.6); }

.btn-ghost {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--el-sm);
}
.btn-ghost:hover { box-shadow: var(--el-md); }

.btn-icon {
  width: 46px; height: 46px; padding: 0; border-radius: var(--r-full);
  background: var(--surface); box-shadow: var(--el-sm); color: var(--text-primary);
  position: relative;
}
.btn-icon:hover { box-shadow: var(--el-md); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-2) 0;
  background: rgba(233, 238, 249, 0.82);
  backdrop-filter: blur(14px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: var(--el-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  overflow: hidden;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name small { font-weight: 500; font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--surface);
  box-shadow: var(--el-inset-sm);
  border-radius: var(--r-full);
  padding: 6px;
}
.nav-links a {
  padding: 10px 18px;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active {
  color: var(--text-primary);
  background: var(--surface);
  box-shadow: var(--el-sm);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  border-radius: var(--r-full);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.cart-count[hidden] { display: none; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-6) 0 var(--space-5);
}
.hero-intro { display: grid; grid-template-columns: 1fr 1fr 1.6fr; align-items: center; gap: var(--space-3); }
.hero-intro-text { grid-column: 1 / 3; max-width: 640px; }
.hero-intro-logo { grid-column: 3; justify-self: center; width: 220px; height: 220px; object-fit: contain; }
.hero-leitsaetze {
  display: block;
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-leitsaetze:hover, .hero-leitsaetze:focus-visible { transform: translateY(-4px); box-shadow: var(--el-lg); }
.hero-leitsaetze:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.hero-leitsaetze strong { display: block; width: 100%; font-size: 1.3rem; line-height: 1.3; color: var(--color-primary); }
.hero-leitsaetze span { display: block; margin-top: 4px; font-size: 0.8rem; line-height: 1.4; color: var(--text-secondary); }
.hero-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: var(--space-3);
  align-items: end;
  margin-top: var(--space-4);
  position: relative;
}
.hero-stat {
  display: block;
  padding: var(--space-3);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-stat:hover, .hero-stat:focus-visible { transform: translateY(-4px); box-shadow: var(--el-lg); }
.hero-stat:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.hero-stat strong { display: block; font-size: 1.15rem; line-height: 1.3; color: var(--color-primary); }
.hero-stat span { display: block; margin-top: 4px; font-size: 0.8rem; line-height: 1.4; color: var(--text-secondary); }

/* ---------- Hero Kurs-Finder Quiz ---------- */
.hero-quiz { padding: 34px; }
.hero-quiz-eyebrow { display: block; text-align: center; margin-bottom: 22px; }
.quiz-step[hidden] { display: none; }
.quiz-step[data-step="intro"] { text-align: center; }
.quiz-intro { font-size: 0.94rem; line-height: 1.5; color: var(--text-secondary); margin-bottom: 22px; }
.quiz-step[data-step="intro"] .btn { margin: 0 auto; }

.quiz-back {
  display: inline-flex; align-items: center;
  background: none; border: none; padding: 0;
  color: var(--text-muted); font-size: 0.78rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  margin-bottom: var(--space-2);
}
.quiz-back:hover { color: var(--color-primary); }

.quiz-progress {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 8px;
}
.quiz-question { font-size: 0.98rem; font-weight: 600; margin-bottom: var(--space-3); }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: left;
  background: var(--surface); box-shadow: var(--el-sm);
  border: none; border-radius: var(--r-sm);
  padding: 12px 16px;
  font-family: inherit; color: var(--text-primary); font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.quiz-option:hover, .quiz-option:focus-visible { box-shadow: var(--el-inset-sm); outline: none; }
.quiz-option span { font-weight: 500; font-size: 0.8rem; color: var(--text-secondary); }

.quiz-result h3 { margin-bottom: 8px; }
.quiz-result p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: var(--space-3); }
.quiz-result .btn { width: 100%; }
.quiz-restart {
  display: block; margin: 10px auto 0;
  background: none; border: none;
  color: var(--text-muted); font-size: 0.78rem; text-decoration: underline;
  cursor: pointer; font-family: inherit;
}

/* ---------- Values strip ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}
.value-item {
  padding: var(--space-3) var(--space-2);
  text-align: center;
}
.value-icon {
  width: 52px; height: 52px;
  margin: 0 auto var(--space-2);
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: var(--el-inset-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
}
.value-item h3 { font-size: 0.98rem; margin-bottom: 4px; }
.value-item p { font-size: 0.82rem; color: var(--text-secondary); }

/* ---------- Course / product grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.course-card { display: flex; flex-direction: column; gap: var(--space-2); }
.course-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  background: var(--color-primary-tint);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.course-icon svg { width: 28px; height: 28px; }
.course-icon--badge {
  background: none;
  width: 56px; height: 56px;
  border-radius: var(--r-full);
  overflow: hidden;
}
.course-icon--badge img { width: 100%; height: 100%; object-fit: cover; }
.course-card h3 { margin-top: 4px; }
.course-card p.desc { color: var(--text-secondary); font-size: 0.9rem; flex-grow: 1; }
.course-card--selectable { cursor: pointer; }
.course-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--text-muted);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(196, 205, 227, 0.6);
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-tint);
  padding: 5px 12px; border-radius: var(--r-full);
}

/* ---------- Split / feature sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.feature-list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item .dot {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: var(--r-full);
  background: var(--surface); box-shadow: var(--el-sm);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.feature-item h4 { font-size: 0.98rem; margin-bottom: 2px; }
.feature-item p { font-size: 0.86rem; color: var(--text-secondary); }

.panel-visual {
  border-radius: var(--r-lg);
  box-shadow: var(--el-lg);
  padding: var(--space-4);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  justify-content: center;
}
.mini-bar { height: 14px; border-radius: var(--r-full); background: var(--surface); box-shadow: var(--el-inset-sm); overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: var(--color-primary); border-radius: var(--r-full); }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--r-lg);
  box-shadow: var(--el-lg);
  padding: var(--space-5);
  text-align: center;
  background: var(--surface);
}
.cta-banner .btn-primary { margin-top: var(--space-3); }

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--space-5) 0 var(--space-4);
  margin-top: var(--space-5);
}
.site-footer--marquee { padding-top: 0; }
.site-footer--marquee .partner-marquee { margin: calc(var(--space-4) * -1) 0 var(--space-5); }
.partner-marquee {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 22px 0;
  margin-bottom: var(--space-4);
  background: var(--surface);
  box-shadow: var(--el-inset-sm);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.partner-marquee:hover, .partner-marquee:focus-visible { box-shadow: var(--el-md); }
.partner-marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  width: max-content;
  animation: partner-marquee-scroll 90s linear infinite;
}
.partner-marquee:hover .partner-marquee-track { animation-play-state: paused; }
.partner-marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.partner-marquee-item img { height: 26px; width: auto; max-width: 110px; object-fit: contain; flex-shrink: 0; }
@keyframes partner-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partner-marquee-track { animation: none; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}
.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; margin-top: var(--space-2); max-width: 40ch; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: var(--space-2); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(196, 205, 227, 0.6);
  font-size: 0.8rem; color: var(--text-muted);
  flex-wrap: wrap; gap: 10px;
}

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: var(--space-5) 0 var(--space-4); text-align: center; }
.page-hero .eyebrow { display: block; }
.breadcrumb { font-size: 0.8rem; color: var(--text-muted); margin-bottom: var(--space-2); }
.breadcrumb a { color: var(--color-primary); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.team-card { text-align: center; }
.avatar {
  width: 96px; height: 96px;
  margin: 0 auto var(--space-2);
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: var(--el-inset);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.4rem; color: var(--color-primary);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 2px; }
.team-role { font-size: 0.82rem; color: var(--color-primary); font-weight: 600; margin-bottom: 4px; }
.team-email { font-size: 0.78rem; color: var(--text-muted); margin-bottom: var(--space-2); }
.team-email a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.team-email a:hover { text-decoration: underline; }
.team-bio { text-align: left; margin-top: var(--space-2); }
.team-bio li {
  position: relative;
  padding-left: 14px;
  font-size: 0.86rem; color: var(--text-secondary);
  margin-bottom: 6px;
}
.team-bio li::before { content: "–"; position: absolute; left: 0; color: var(--color-primary); }
.team-bio li:last-child { margin-bottom: 0; }

/* TEST: Bio nur bei Hover über die gesamte Kachel sichtbar — bei Bedarf diesen Block entfernen */
.team-card { cursor: pointer; }
.team-card h3 { transition: color 0.2s ease; }
.team-card:hover h3 { color: var(--color-primary); }
.team-bio { display: none; }
.team-card:hover .team-bio { display: block; }
.team-card:hover { transform: translateY(-4px) scale(1.06); position: relative; z-index: 2; }
/* ENDE TEST */

/* ---------- Kooperationspartner ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: 760px;
  margin: 0 auto;
}
.partner-card { text-align: center; }
.partner-card--link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.partner-logo {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--el-inset);
  border: 2px dashed var(--shadow-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: var(--space-2);
  color: var(--text-muted);
}
.partner-logo svg { width: 28px; height: 28px; }
.partner-logo span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.partner-logo--image {
  background: #fff;
  box-shadow: var(--el-sm);
  border: none;
  padding: var(--space-3);
}
.partner-logo--image img { width: 100%; height: 100%; object-fit: contain; }
.partner-card h3 { margin-bottom: 4px; }
.partner-card p { font-size: 0.86rem; color: var(--text-secondary); }

/* ---------- Legal pages ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content .surface { padding: var(--space-4); }
.legal-content h2 { margin-top: var(--space-4); margin-bottom: var(--space-2); font-size: 1.25rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-secondary); font-size: 0.94rem; margin-bottom: var(--space-1); }
.legal-content ul { padding-left: 1.2em; list-style: disc; }
.placeholder {
  background: #FFF6E5;
  color: #8A6116;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85em;
}
.legal-notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: #FFF6E5;
  border-radius: var(--r-sm);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
  color: #8A6116;
  font-size: 0.88rem;
}

/* ---------- Shop ---------- */
.shop-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.filter-chip {
  display: inline-block;
  background: var(--surface);
  box-shadow: var(--el-sm);
  border: none;
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.filter-chip.active { color: var(--color-primary); box-shadow: var(--el-inset-sm); }

.product-card { display: flex; flex-direction: column; gap: 10px; }
.product-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--el-inset-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  overflow: hidden;
}
.product-thumb svg { width: 40%; height: 40%; }
.product-thumb--image { background: none; box-shadow: none; }
.product-thumb--image img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb--top img { object-position: top; }
.product-thumb--contain { background: var(--surface); box-shadow: var(--el-inset-sm); padding: 10px; }
.product-thumb--contain img { object-fit: contain; }
.product-thumb--round {
  aspect-ratio: 1 / 1;
  width: 96px; max-width: 60%;
  margin: 0 auto;
  border-radius: var(--r-full);
}
.product-card h3 { font-size: 1rem; }
.product-price { font-weight: 700; color: var(--color-primary); font-size: 1.05rem; white-space: nowrap; flex-shrink: 0; }
.product-price .price-vat { display: inline; white-space: normal; font-weight: 500; font-size: 0.68em; color: var(--text-muted); }
.product-foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 6px; }
.product-foot .btn { width: 100%; }
.product-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }

.product-card--selectable { cursor: pointer; }
.product-card--selectable:focus-visible { outline: 2px solid var(--color-primary-light); outline-offset: 3px; }
.product-details-link {
  background: none; border: none; padding: 0;
  color: var(--color-primary); font-size: 0.82rem; font-weight: 600;
  text-align: left; cursor: pointer;
}
.product-details-link:hover { text-decoration: underline; }

/* Course detail modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(30, 36, 51, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 200;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(30, 36, 51, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

.course-modal {
  position: fixed;
  top: 50%; left: 50%;
  width: min(600px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--r-md);
  box-shadow: var(--el-lg);
  padding: var(--space-4);
  transform: translate(-50%, -48%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 201;
}
.course-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.course-modal--large { width: min(760px, 94vw); max-height: 90vh; }
.course-modal--wide { width: min(820px, 94vw); }
.course-modal--xwide { width: min(980px, 94vw); max-height: 90vh; }
.akademie-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.akademie-modal-head-text { flex: 1 1 220px; min-width: 0; }
.akademie-modal-logo { width: 160px; height: auto; flex-shrink: 0; }
@media (max-width: 600px) {
  .akademie-modal-head { justify-content: center; text-align: center; }
  .akademie-modal-logo { width: 110px; order: -1; margin: 0 auto; }
}
.course-modal-close { position: absolute; top: var(--space-3); right: var(--space-3); }
.course-modal-logo {
  width: 72px; height: 72px; margin: 0 auto var(--space-2);
  border-radius: var(--r-full); overflow: hidden; box-shadow: var(--el-sm);
}
.course-modal-logo img { width: 100%; height: 100%; object-fit: cover; }
.course-modal-body .eyebrow { display: block; margin-bottom: 8px; }
.course-modal-body h2 { margin-bottom: 12px; padding-right: 40px; }
.course-modal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--space-3); }
.course-modal-meta span {
  background: var(--surface); box-shadow: var(--el-sm);
  border-radius: var(--r-full); padding: 6px 14px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
}
.course-modal-body ul { display: flex; flex-direction: column; gap: 10px; margin: var(--space-2) 0 var(--space-4); }
.course-modal-body ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; color: var(--text-secondary);
}
.course-modal-body ul li svg { flex-shrink: 0; margin-top: 3px; color: var(--color-primary); }
.course-modal-body ul.course-modal-sublist {
  flex-direction: row; flex-wrap: wrap; gap: 8px;
  margin: var(--space-2) 0 0;
}
.course-modal-body ul.course-modal-sublist li {
  background: var(--surface); box-shadow: var(--el-sm);
  border-radius: var(--r-full); padding: 4px 12px;
  font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
}
.course-modal-body ul.course-modal-facts { gap: 8px; margin: 0 0 var(--space-3); }
.course-modal-body ul.course-modal-facts li { align-items: center; font-size: 0.88rem; }
.course-modal-body ul.course-modal-facts li svg { margin-top: 0; }
.course-modal-facts a {
  color: var(--color-primary); font-weight: 600; text-decoration: none;
}
.course-modal-facts a:hover { text-decoration: underline; }
.external-link-hint { color: var(--text-muted); font-weight: 500; font-size: 0.78rem; }
.date-text { color: var(--color-primary); font-weight: 700; font-size: 0.98rem; }
.course-modal-body p.desc { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: var(--space-2); }
.course-modal-body p.desc:last-child { margin-bottom: 0; }
.wissenspool-free { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--color-primary); font-weight: 700; font-size: 0.88rem; margin-bottom: var(--space-2); }
.wissenspool-free svg { width: 16px; height: 16px; flex-shrink: 0; }
.course-modal-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}
.course-modal-gallery.course-modal-gallery--single { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; margin-right: auto; }
.course-modal-gallery.course-modal-gallery--single img { aspect-ratio: 3 / 4; }
.course-modal-gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-sm); box-shadow: var(--el-sm);
}
.course-modal-subhead { font-size: 1.02rem; margin-bottom: 8px; }
.leitsatz-item { margin-bottom: var(--space-3); }
.leitsatz-item:last-child { margin-bottom: 0; }
.leitsaetze-vision {
  background: var(--surface); box-shadow: var(--el-inset-sm);
  border-radius: var(--r-sm); padding: 14px 16px;
  margin-bottom: var(--space-3);
}
.leitsaetze-vision h3 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-primary); margin-bottom: 6px; }
.leitsaetze-vision p { font-size: 0.8rem; line-height: 1.5; color: var(--text-secondary); margin-bottom: 8px; }
.leitsaetze-vision p:last-child { margin-bottom: 0; }
.course-modal-why { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: var(--space-2); }
.course-modal-audience {
  font-size: 0.86rem; color: var(--text-secondary);
  background: var(--surface); box-shadow: var(--el-inset-sm);
  border-radius: var(--r-sm); padding: 10px 14px;
  margin-bottom: var(--space-3);
}
.course-modal-audience strong { color: var(--text-primary); }
.course-modal-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-3); border-top: 1px solid rgba(196, 205, 227, 0.6);
}

/* Kurse-Übersicht modal */
.course-overview-list { display: flex; flex-direction: column; gap: 10px; margin: var(--space-2) 0 var(--space-3); }
.course-overview-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  background: var(--surface); box-shadow: var(--el-sm);
  border: none; border-radius: var(--r-sm);
  padding: 10px 14px;
  font-family: inherit; cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.course-overview-item:hover, .course-overview-item:focus-visible { box-shadow: var(--el-inset-sm); outline: none; }
.course-overview-thumb {
  width: 44px; height: 44px; border-radius: var(--r-full);
  overflow: hidden; flex-shrink: 0; box-shadow: var(--el-sm);
}
.course-overview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-overview-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.course-overview-text strong { font-size: 0.92rem; color: var(--text-primary); }
.course-overview-text span {
  font-size: 0.78rem; color: var(--text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.course-overview-price { font-weight: 700; color: var(--color-primary); font-size: 0.85rem; white-space: nowrap; flex-shrink: 0; }

/* Product quick-view modal (e.g. Taschenkarten) */
.quickview-image {
  aspect-ratio: 3 / 4;
  max-width: 260px;
  border-radius: var(--r-sm);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  margin: 0 auto var(--space-3);
  color: var(--text-muted);
}
.quickview-image--placeholder {
  background: var(--surface);
  box-shadow: var(--el-inset);
  border: 2px dashed var(--shadow-dark);
}
.quickview-image img { width: 100%; height: 100%; object-fit: cover; }
.quickview-image svg { width: 20%; height: 20%; }
.quickview-image span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }

.quickview-slideshow { position: relative; }
.quickview-slideshow-track { display: flex; width: 100%; height: 100%; transition: transform 0.3s ease; }
.quickview-slideshow-track img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }
.slideshow-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.9); box-shadow: var(--el-sm); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--color-primary); font-size: 1.1rem; line-height: 1; padding: 0;
}
.slideshow-nav:hover { background: #fff; }
.slideshow-prev { left: 6px; }
.slideshow-next { right: 6px; }
.slideshow-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.slideshow-dots button {
  width: 7px; height: 7px; border-radius: var(--r-full); padding: 0; border: none;
  background: rgba(255, 255, 255, 0.7); box-shadow: var(--el-sm); cursor: pointer;
}
.slideshow-dots button.active { background: var(--color-primary); }
.course-modal--quickview { padding: var(--space-3); }
.course-modal--quickview .quickview-image { max-width: 170px; margin: 0 auto 12px; }
.course-modal--quickview .quickview-image--wide { max-width: 320px; }
.course-modal--quickview .course-modal-body .eyebrow { font-size: 0.78rem; margin-bottom: 6px; }
.course-modal--quickview .course-modal-body h2 { font-size: 1.25rem; margin-bottom: 8px; }
.course-modal--quickview .course-modal-body p.desc { font-size: 0.82rem; margin-bottom: 10px; }
.course-modal--quickview .course-modal-foot { padding-top: 12px; }
.course-modal--quickview .course-modal-body .product-price { font-size: 1.2rem; font-weight: 800; }
.course-modal--quickview .qty-control { margin: 12px 0; }
.course-modal--quickview .qty-control .qty-btn { width: 32px; height: 32px; }
.course-modal--quickview .btn-primary { padding: 12px 28px; }
.qty-control {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: var(--space-3) 0;
}
.qty-control .qty-btn { width: 36px; height: 36px; font-size: 1.1rem; }
.qty-input {
  width: 64px; text-align: center;
  border: none; background: var(--surface); box-shadow: var(--el-inset-sm);
  border-radius: var(--r-sm); padding: 8px; font-family: inherit; font-size: 0.95rem; color: var(--text-primary);
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Cart drawer */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(30, 36, 51, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 200;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--bg);
  box-shadow: -12px 0 40px rgba(30, 36, 51, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 201;
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-3); }
.cart-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-2); }
.cart-clear {
  display: block; width: 100%; margin-top: var(--space-2);
  background: none; border: none; padding: 4px 0;
  font-family: inherit; font-size: 0.78rem; color: var(--text-muted);
  text-align: center; cursor: pointer;
}
.cart-clear:hover { color: var(--text-secondary); text-decoration: underline; }
.cart-item { display: flex; gap: 12px; padding: 12px; }
.cart-item-thumb {
  width: 52px; height: 52px; border-radius: var(--r-sm);
  background: var(--surface); box-shadow: var(--el-inset-sm);
  display: flex; align-items: center; justify-content: center; color: var(--color-primary); flex-shrink: 0;
  overflow: hidden;
}
.cart-item-thumb svg { width: 24px; height: 24px; }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-price { white-space: nowrap; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: var(--r-full);
  background: var(--surface); box-shadow: var(--el-sm); border: none;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-primary);
}
.cart-item-remove { color: var(--danger); font-size: 0.78rem; font-weight: 600; margin-top: 6px; display: inline-block; }
.cart-empty { text-align: center; color: var(--text-muted); padding: var(--space-5) 0; }
.cart-foot { padding-top: var(--space-3); border-top: 1px solid rgba(196, 205, 227, 0.6); margin-top: var(--space-2); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: var(--space-2); }
.cart-total-value { white-space: nowrap; }
.cart-note { font-size: 0.78rem; color: var(--text-muted); margin-top: var(--space-2); text-align: center; }

/* ---------- Contact form (used on index) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-2); min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.form-field input:not([type="checkbox"]):not([type="radio"]), .form-field textarea, .form-field select {
  width: 100%;
  min-width: 0;
  border: none;
  background: var(--surface);
  box-shadow: var(--el-inset-sm);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--color-primary-light); }
.form-field a { color: var(--color-primary); text-decoration: underline; font-weight: 600; }
.form-field a:hover, .form-field a:focus-visible { color: var(--color-primary-dark); }
.discount-apply-row { display: flex; gap: 8px; }
@media (max-width: 480px) {
  .discount-apply-row { flex-direction: column; }
  .discount-apply-row button { width: 100%; }
}

/* ---------- Eigene Checkbox-Optik (Admin: Rabattcodes, Shop-Artikel) ---------- */
.checkbox-nice {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--el-inset-sm);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.checkbox-nice:hover { box-shadow: var(--el-inset); }
.checkbox-nice:checked {
  background: var(--color-primary);
  box-shadow: none;
}
.checkbox-nice:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-nice:focus-visible { outline: 2px solid var(--color-primary-light); outline-offset: 2px; }

/* "Bereit..." tile spans the width of the two tiles below it; quiz grows upward from a fixed bottom edge instead of pushing the page down */
@media (min-width: 961px) {
  .hero-tiles { grid-template-rows: auto auto; }
  .hero-tiles > *:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .hero-tiles > *:nth-child(2) { grid-column: 1; grid-row: 2; }
  .hero-tiles > *:nth-child(3) { grid-column: 2; grid-row: 2; }
  .hero-quiz {
    grid-column: 3;
    grid-row: 1;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-intro { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-intro-text { grid-column: 1; max-width: 100%; }
  .hero-intro-logo { grid-column: 1; width: 140px; height: 140px; }
  .hero-tiles { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .panel-visual { order: -1; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex; width: 46px; height: 46px; border: none;
    background: var(--surface); box-shadow: var(--el-sm); border-radius: var(--r-full);
    align-items: center; justify-content: center; color: var(--text-primary);
  }
  .nav-links.mobile-open {
    display: flex; position: absolute; top: 78px; left: var(--space-3); right: var(--space-3);
    flex-direction: column; border-radius: var(--r-md); box-shadow: var(--el-lg); padding: var(--space-2);
    z-index: 1;
  }
  .nav-links.mobile-open a { width: 100%; text-align: center; }
  .values { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .course-overview-text span { display: none; }
  .course-overview-item { align-items: center; }
  .form-field input:not([type="checkbox"]):not([type="radio"]), .form-field textarea, .form-field select {
    font-size: 16px;
    padding: 12px 14px;
  }
  .course-modal { padding: var(--space-3); }
}
