/* =========================================================
   Matadata e.U. – Website-Stylesheet
   Farben, Schrift und Abstände zentral als Variablen (:root).
   ========================================================= */

/* ---------- Schrift (selbst gehostet, SIL Open Font License) ---------- */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/nunito-sans-latin-var.564391bd38.woff2) format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/nunito-sans-latin-italic-var.8ec0974881.woff2) format("woff2");
}

/* ---------- Design-Tokens ---------- */
:root {
  /* CI-Farben */
  --mt-green: #9ec73c;          /* Matadata-Grün (Flächen, Linien, Buttons) */
  --mt-green-hover: #8bb52c;
  --mt-green-text: #587818;     /* Grün für Text/Links auf Weiß (Kontrast AA) */
  --mt-green-large: #77972b;    /* CI-Farbton, abgedunkelt: für große Schrift (Kontrast ≥ 3:1) */
  --mt-green-deep: #3f5711;
  --mt-green-tint: #f3f7ea;     /* helle Fläche */
  --mt-green-quote: #e3ebd0;    /* Zitatbox (wie im Buch) */
  --mt-green-line: #d6e2bc;
  --mt-green-chip: #eef4e1;
  --mt-grey: #9da4a3;           /* Matadata-Grau (Flächen, Linien) */
  --mt-grey-text: #5a6261;      /* Grau für Text auf Weiß (Kontrast AA) */
  --mt-ink: #1f2420;            /* Überschriften */
  --mt-text: #3a403c;           /* Fließtext */
  --mt-line: #e1e4e3;
  --mt-soft: #f6f7f6;
  --mt-white: #ffffff;

  /* Typografie */
  --font: "Nunito Sans", "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.0625rem;         /* 17px */
  --fs-lead: 1.125rem;          /* 18px */
  --fs-statement: 1.25rem;      /* 20px */
  --fs-h1: clamp(2.25rem, 4.6vw, 3.75rem);
  --fs-h1-page: clamp(2.1rem, 4.2vw, 3.4rem);
  --fs-h2: clamp(1.75rem, 3.2vw, 2.5rem);
  --fs-h3: 1.5rem;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 16px 36px rgba(31, 36, 32, 0.12);
  --shadow-book: 0 2px 6px rgba(31, 36, 32, 0.14), 0 16px 32px rgba(31, 36, 32, 0.22);
  --section-y: clamp(64px, 9vw, 104px);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--mt-white);
  color: var(--mt-text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; }
strong { font-weight: 600; color: var(--mt-ink); }
a { color: var(--mt-green-text); text-underline-offset: 3px; }
a:hover { color: var(--mt-green-deep); }
:focus-visible { outline: 3px solid var(--mt-green-text); outline-offset: 3px; border-radius: 2px; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 868px; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack--lg { gap: 56px; }
.stack--sm { gap: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--mt-ink); color: var(--mt-white); padding: 10px 16px; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--mt-white); }

/* ---------- Typo-Bausteine ---------- */
.kicker {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mt-green-text);
}
.kicker--muted { color: var(--mt-grey-text); }
.h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.01em; font-weight: 700; color: var(--mt-ink); }
.h1 em { font-style: normal; color: var(--mt-green-large); }
.h1-page { font-size: var(--fs-h1-page); line-height: 1.08; letter-spacing: 0.01em; font-weight: 700; color: var(--mt-ink); text-transform: uppercase; }
.h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: 0.01em; font-weight: 700; color: var(--mt-ink); text-transform: uppercase; }
.h2--sm { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; color: var(--mt-ink); }
.lead { font-size: 1.25rem; color: var(--mt-text); max-width: 38em; }
.muted { color: var(--mt-grey-text); }
.small { font-size: 0.9375rem; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.section-head--split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head .lead { max-width: 52em; }
.link-arrow { font-weight: 600; text-decoration: none; padding: 10px 0; display: inline-block; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 6px;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--mt-green); color: var(--mt-ink); }
.btn--primary:hover { background: var(--mt-green-hover); color: var(--mt-ink); }
.btn--ghost { border-color: var(--mt-grey); color: var(--mt-ink); background: var(--mt-white); }
.btn--ghost:hover { border-color: var(--mt-ink); color: var(--mt-ink); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header & Navigation ---------- */
.site-header { border-bottom: 1px solid var(--mt-line); background: var(--mt-white); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; padding: 6px 0; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav a:not(.btn) {
  color: var(--mt-text); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  padding: 12px 0; box-shadow: inset 0 -2px 0 transparent;
}
.nav a:not(.btn):hover { color: var(--mt-green-text); }
.nav a[aria-current="page"] { color: var(--mt-green-text); box-shadow: inset 0 -2px 0 var(--mt-green); }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: var(--mt-white); border: 1.5px solid var(--mt-grey); border-radius: 6px;
  font: inherit; font-weight: 600; color: var(--mt-ink); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; border-top: 1px solid var(--mt-line); }
  .js .nav.is-open { display: flex; }
  .js .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--mt-line); box-shadow: none; }
  .js .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--mt-green); padding-left: 14px; }
  .js .nav .btn { margin-top: 14px; }
}

/* ---------- Sektionen ---------- */
.section { padding-block: var(--section-y); }
.section--flush-top { padding-top: 0; }
.section--soft { background: var(--mt-soft); border-block: 1px solid var(--mt-line); }
.section--tint { background: var(--mt-green-tint); border-block: 1px solid var(--mt-green-quote); }
.page-hero { background: var(--mt-green-tint); border-bottom: 1px solid var(--mt-green-quote); }
.page-hero__inner { padding-block: 56px; display: flex; flex-direction: column; gap: 14px; }
.page-hero__split { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 48px; padding-block: 56px; }
.page-hero__split > .stack { flex: 999 1 480px; min-width: 0; gap: 16px; }
.page-hero__media { flex: 1 1 340px; min-width: 0; max-width: 520px; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.875rem; color: var(--mt-grey-text); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--mt-grey-text); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Startseite: Hero ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px 64px; align-items: center; padding-block: clamp(56px, 9vw, 96px) 72px; }
.hero__text { display: flex; flex-direction: column; gap: 26px; }
.hero__chart { background: var(--mt-white); border: 1px solid var(--mt-line); border-radius: var(--radius); padding: 28px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; padding-bottom: var(--section-y); }
.feature { display: flex; gap: 24px; border-top: 3px solid var(--mt-green); padding-top: 24px; }
.feature__no { font-size: 2.5rem; line-height: 1; color: var(--mt-grey); font-weight: 700; }
.feature .stack { gap: 10px; }

/* ---------- Listen mit Linien ---------- */
.columns-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px; }
.columns-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 48px; align-items: start; }
.line-list { list-style: none; display: flex; flex-direction: column; }
.line-list li { font-size: 1.3125rem; line-height: 1.4; color: var(--mt-ink); font-weight: 500; padding: 10px 0; border-bottom: 1px solid var(--mt-green-line); }
.line-list--grey li { border-bottom-color: var(--mt-line); font-size: 1.25rem; }
.line-list .sub { display: block; font-size: 0.9375rem; color: var(--mt-grey-text); font-weight: 400; }
.line-list li:last-child.no-line { border-bottom: 0; }

/* ---------- Flipbox (Service-Angebot) ---------- */
.flip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 32px; }
.flip { perspective: 1600px; }
.flip__inner { display: grid; height: 100%; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.flip:hover .flip__inner, .flip:focus-within .flip__inner { transform: rotateY(180deg); }
.flip__face {
  grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border: 1px solid var(--mt-line); border-radius: var(--radius); overflow: hidden;
  background: var(--mt-white); display: flex; flex-direction: column;
}
.flip__front img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--mt-line); }
.flip__bar { padding: 20px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; flex-grow: 1; }
.flip__hint { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--mt-green-text); }
.flip__hint svg { width: 18px; height: 18px; }
.flip__back { transform: rotateY(180deg); background: var(--mt-green-tint); border-color: var(--mt-green-line); padding: clamp(28px, 4vw, 44px); justify-content: center; gap: 18px; }
.flip__back .h3 { text-transform: uppercase; letter-spacing: 0.02em; }
.flip__back .meta { border-top: 1px solid var(--mt-green-line); padding-top: 14px; }
.flip__back .link-arrow { align-self: flex-start; }
@media (prefers-reduced-motion: reduce) {
  .flip__inner { transition: none; }
  .flip:hover .flip__inner, .flip:focus-within .flip__inner { transform: none; }
  .flip__back { transform: none; opacity: 0; transition: opacity 0.2s; }
  .flip:hover .flip__back, .flip:focus-within .flip__back { opacity: 1; }
}
@media (hover: none) {
  .flip__inner, .flip:hover .flip__inner, .flip:focus-within .flip__inner { transform: none; }
  .flip__face { grid-area: auto; }
  .flip__front { border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
  .flip__back { transform: none; opacity: 1; border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
  .flip__hint { display: none; }
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip { background: var(--mt-green-chip); color: var(--mt-green-deep); padding: 4px 12px; border-radius: 4px; font-size: 0.8125rem; font-weight: 600; }
.chip--grey { background: #f2f4f3; color: var(--mt-text); }
.chip--pill { border-radius: 999px; padding: 10px 18px; font-size: 1rem; }

/* ---------- CTA-Leiste ---------- */
.cta-bar { margin-top: 48px; border-top: 3px solid var(--mt-green); border-bottom: 1px solid var(--mt-line); padding: 32px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-bar__title { font-size: 1.5rem; line-height: 1.3; font-weight: 700; color: var(--mt-ink); }

/* ---------- Person / Zitate ---------- */
.person { display: grid; grid-template-columns: 1fr; gap: 48px 64px; align-items: center; }
@media (min-width: 900px) { .person { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); } }
.person .h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.person .quote { max-width: 584px; }
.person__photo { width: 100%; max-width: 420px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); justify-self: center; }
.quote { background: var(--mt-green-quote); padding: 26px 30px; display: flex; flex-direction: column; gap: 8px; color: var(--mt-ink); }
.quote__text { font-style: italic; font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.35; }
.quote--inline { font-style: italic; }

/* ---------- Galerie (Visualisierungen) ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.gallery__item { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--mt-text); }
.gallery__item img { width: 100%; aspect-ratio: 1165 / 825; object-fit: cover; border: 1px solid var(--mt-line); border-radius: var(--radius-sm); }
.gallery__item figcaption, .gallery__item span { font-size: 0.9375rem; border-top: 2px solid var(--mt-green-quote); padding-top: 12px; }

/* ---------- Bücher-Teaser ---------- */
.banner-link { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--mt-line); margin-bottom: 24px; }
.banner-link img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; }
.book-teaser { border: 1px solid var(--mt-line); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center; }
.book-teaser .stack { gap: 16px; }
.book-teaser__sub { border-top: 1px solid var(--mt-line); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.covers { display: flex; justify-content: center; align-items: flex-end; gap: 28px; padding: 8px 0 16px; }
.covers img { height: clamp(200px, 26vw, 330px); width: auto; max-width: 46%; object-fit: contain; }
.cover--shadow { border-radius: 2px; box-shadow: var(--shadow-book); }

/* ---------- Passt / passt nicht ---------- */
.fit-card { background: var(--mt-white); border: 1px solid var(--mt-line); border-top: 3px solid var(--mt-green); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.fit-card--no { border-top-color: var(--mt-grey); }
.icon-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.icon-list li { display: flex; gap: 14px; }
.icon-list svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px; }
.check-list { list-style: none; display: flex; flex-direction: column; font-size: var(--fs-statement); line-height: 1.5; color: var(--mt-ink); }
.check-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--mt-line); }
.check-list li:last-child { border-bottom: 0; }
.check-list svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 4px; }

/* ---------- 9 Gründe ---------- */
.reasons { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 36px 48px; }
.reasons li { display: flex; gap: 18px; border-top: 1px solid var(--mt-line); padding-top: 18px; }
.reasons__no { font-size: 1.875rem; line-height: 1; color: var(--mt-green); font-weight: 700; min-width: 40px; }

/* ---------- Referenz ---------- */
.testimonial { background: var(--mt-green-quote); padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 22px; }
.testimonial blockquote { display: flex; flex-direction: column; gap: 16px; font-style: italic; color: var(--mt-ink); }
.testimonial__lead { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.3; }
.testimonial figcaption { display: flex; flex-direction: column; border-top: 1px solid #c9d8a6; padding-top: 16px; }

/* ---------- Kontakt ---------- */
.contact { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.contact__photo { width: 120px; height: 120px; border-radius: 999px; object-fit: cover; border: 3px solid var(--mt-green-quote); }
.contact .h2 { max-width: 860px; }
.contact .note { font-size: 0.9375rem; color: var(--mt-grey-text); max-width: 640px; padding-top: 8px; }

/* ---------- Über mich ---------- */
.intro { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.intro__photo { flex: 0 1 340px; min-width: 0; }
.intro__photo img { width: 100%; aspect-ratio: 800 / 1158; object-fit: cover; border-radius: var(--radius-sm); background: var(--mt-soft); }
.intro__text { flex: 999 1 480px; min-width: 0; font-size: var(--fs-lead); line-height: 1.65; }
.intro__text p:first-child { color: var(--mt-ink); }
.moves { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 48px; }
.moves__text { flex: 999 1 560px; max-width: 820px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.moves__book { flex: 0 0 auto; display: flex; justify-content: center; margin-inline: auto; }
.moves__book img { height: 100%; width: auto; max-width: 300px; object-fit: contain; opacity: 0.75; transition: opacity 0.2s; }
.moves__book:hover img { opacity: 1; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; margin-top: 48px; }
.tile { display: flex; flex-direction: column; gap: 12px; }
.tile img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; }
.tile figcaption { font-size: 1rem; font-weight: 700; color: var(--mt-ink); border-top: 3px solid var(--mt-green); padding-top: 10px; }
.value-card { border: 1px solid var(--mt-line); border-top: 3px solid var(--mt-green); border-radius: 10px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.value-card .vision { background: var(--mt-green-quote); padding: 22px 26px; font-size: 1.375rem; line-height: 1.4; font-style: italic; color: var(--mt-ink); }
.story .first { font-size: 1.1875rem; line-height: 1.7; color: var(--mt-ink); }
.story .source { border-top: 1px solid var(--mt-line); padding-top: 18px; font-size: 0.9375rem; color: var(--mt-grey-text); }
.thesis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.thesis { display: flex; gap: 20px; align-items: center; border: 1px solid var(--mt-line); border-radius: 10px; padding: 18px; text-decoration: none; color: var(--mt-text); }
.thesis:hover { border-color: var(--mt-green); color: var(--mt-text); }
.thesis img { width: 96px; height: 137px; flex-shrink: 0; object-fit: cover; border: 1px solid var(--mt-line); border-radius: 4px; }
.thesis__meta { color: var(--mt-green-text); font-weight: 600; font-size: 0.9375rem; }
.thesis .stack { gap: 6px; }
.cert-list { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--mt-line); }
.cert-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--mt-line); }
.cert-list .year { color: var(--mt-grey-text); white-space: nowrap; }
.badges { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; padding-top: 12px; }
.badges .badge-databricks { height: 150px; width: auto; }
.badges .badge-tableau { height: 112px; width: auto; }

/* ---------- Trainings ---------- */
.section--strip { padding-block: 48px 0; }
.training__content .h3 { font-size: 1.375rem; }
.training__content h4.h3 { font-size: 1.125rem; padding-top: 8px; }
.strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.strip figure { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start; }
.strip img { height: 260px; width: auto; object-fit: cover; border-radius: var(--radius-sm); }
.strip .framed { border: 1px solid var(--mt-line); }
.strip figcaption { font-size: 0.875rem; color: var(--mt-grey-text); max-width: 370px; }
.training { display: flex; flex-direction: column; gap: 28px; }
.training__aside { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.training__aside > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.training__content { flex: 1 1 440px; min-width: 0; background: var(--mt-white); border: 1px solid var(--mt-line); border-top: 3px solid var(--mt-green); border-radius: 10px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.dot-list { list-style: none; display: flex; flex-direction: column; }
.dot-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--mt-line); }
.dot-list li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--mt-green); margin-top: 10px; }
.agenda-card { border: 1px solid var(--mt-line); border-radius: 10px; padding: 28px 32px; background: var(--mt-white); display: flex; flex-direction: column; gap: 12px; }
.agenda { list-style: none; display: grid; grid-template-columns: 1fr; }
@media (min-width: 700px) { .agenda { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 40px; } .agenda li:nth-child(5)::after { display: none; } }
.agenda li { position: relative; display: flex; align-items: center; gap: 14px; padding: 6px 0; color: var(--mt-ink); font-weight: 500; line-height: 1.3; }
.agenda li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: calc(50% + 17px); height: calc(100% - 34px); width: 2px; background: var(--mt-green-line); }
.agenda .n { position: relative; z-index: 1; flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px; background: var(--mt-white); border: 2px solid var(--mt-green); color: var(--mt-green-deep); font-size: 0.875rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.agenda li.is-key .n { background: var(--mt-green); color: var(--mt-ink); } /* hervorgehobener Punkt */

/* ---------- Bücher ---------- */
.book { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.book__cover { flex: 0 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.book__cover img { width: 100%; object-fit: contain; }
.book__text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.book__text .first { font-size: 1.25rem; line-height: 1.5; color: var(--mt-ink); }
.meta-list { display: grid; grid-template-columns: max-content 1fr; column-gap: 20px; row-gap: 8px; font-size: 0.9375rem; }
.meta-list dt { color: var(--mt-grey-text); }
.meta-list dd { color: var(--mt-ink); font-weight: 500; }
.meta-list--lg { font-size: 1.0625rem; }
.hero-books { flex: 1 1 360px; min-width: 0; max-width: 520px; }
.hero-books img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* ---------- Impressum ---------- */
.legal { display: flex; flex-direction: column; gap: 48px; }
.legal section { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--mt-line); padding-top: 24px; }
.legal section.first { border-top: 0; padding-top: 0; }
.legal section.accent { border-top: 3px solid var(--mt-green); }
.legal .h3 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.06em; }
.def-list { display: grid; grid-template-columns: max-content 1fr; column-gap: 24px; row-gap: 8px; }
.def-list dt { color: var(--mt-grey-text); }
.def-list dd { color: var(--mt-ink); }
@media (max-width: 560px) {
  .def-list, .meta-list { grid-template-columns: 1fr; row-gap: 2px; }
  .def-list dd, .meta-list dd { margin-bottom: 10px; }
}
.wko { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 8px; }

/* ---------- Datenschutz (A4-Blatt) ---------- */
.paper-bg { background: #eceFEE; padding: 48px 16px 96px; }
.paper-bg .breadcrumb { max-width: 794px; margin: 0 auto 16px; }
.sheet {
  max-width: 794px; margin: 0 auto; background: var(--mt-white);
  padding: clamp(28px, 9%, 76px) clamp(20px, 9%, 72px);
  box-shadow: 0 1px 2px rgba(31, 36, 32, 0.06), 0 18px 48px rgba(31, 36, 32, 0.1);
  border-top: 6px solid var(--mt-green); display: flex; flex-direction: column; gap: 22px; font-size: 1rem; line-height: 1.7;
}
.sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 8px; }
.sheet__head img { height: 30px; width: auto; }
.sheet h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.15; text-transform: uppercase; font-weight: 700; color: var(--mt-ink); }
.sheet__lead { font-size: 1.125rem; color: var(--mt-ink); }
.ds-sec { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; row-gap: 10px; padding-top: 22px; border-top: 1px solid var(--mt-line); }
.ds-sec__no { font-size: 1.375rem; line-height: 1.2; font-weight: 700; color: var(--mt-green-text); }
.ds-sec h2 { font-size: 1.0625rem; line-height: 1.35; font-weight: 700; color: var(--mt-ink); text-transform: uppercase; letter-spacing: 0.04em; }
.ds-sec p { grid-column: 2; }
@media (max-width: 560px) { .ds-sec { grid-template-columns: 1fr; } .ds-sec p { grid-column: 1; } }
.sheet__box { background: var(--mt-green-quote); padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.sheet__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--mt-line); padding-top: 16px; font-size: 0.8125rem; color: var(--mt-grey-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--mt-soft); border-top: 3px solid var(--mt-green); }
.site-footer__inner { padding-block: 48px 32px; display: flex; flex-direction: column; gap: 32px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; }
.site-footer__brand img { height: 34px; width: auto; align-self: flex-start; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-nav a { text-decoration: none; padding: 8px 0; font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; }
.site-footer__copy { font-size: 0.875rem; color: var(--mt-grey-text); }

/* ---------- 404 ---------- */
.notfound { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* ---------- Druck ---------- */
@media print {
  .site-header, .site-footer, .skip-link, .breadcrumb, .nav-toggle { display: none !important; }
  body { font-size: 11pt; }
  .paper-bg { background: #fff; padding: 0; }
  .sheet { box-shadow: none; border-top: 0; padding: 0; max-width: none; }
  a { color: inherit; }
}

/* ---------- Trainings: Übersicht, Highlights, Beschreibung ---------- */
.lang-note { background: var(--mt-green-tint); border-left: 3px solid var(--mt-green); padding: 14px 18px; color: var(--mt-ink); max-width: 880px; }
.lang-note--white { background: var(--mt-white); }
.training__overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: stretch; }
.training__overview > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; align-self: center; border-radius: 10px; }
.hl-card { background: var(--mt-white); border: 1px solid var(--mt-line); border-top: 3px solid var(--mt-green); border-radius: 10px; padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.hl-card .h3, .course .h3 { font-size: 1.25rem; }
.hl { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 18px; }
.hl dt { color: var(--mt-grey-text); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 11px 0; border-bottom: 1px solid var(--mt-green-line); }
.hl dd { color: var(--mt-ink); padding: 10px 0; border-bottom: 1px solid var(--mt-green-line); }
.hl dt:last-of-type, .hl dd:last-of-type { border-bottom: 0; }
@media (max-width: 480px) { .hl { grid-template-columns: 1fr; } .hl dt { border-bottom: 0; padding-bottom: 0; } }
.course { background: var(--mt-white); border: 1px solid var(--mt-line); border-radius: 10px; padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 48px; }
.course .stack { gap: 14px; }
.dot-list li:last-child { border-bottom: 0; }

/* ---------- Karussell ---------- */
.section--carousel { padding-bottom: 0; }
.carousel { display: flex; flex-direction: column; gap: 16px; }
.carousel__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.carousel__controls { display: none; align-items: center; gap: 12px; }
.js .carousel__controls { display: flex; }
.carousel__counter { font-size: 0.9375rem; color: var(--mt-grey-text); min-width: 48px; text-align: right; }
.carousel__btn { width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--mt-grey); background: var(--mt-white); color: var(--mt-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.carousel__btn:hover { border-color: var(--mt-ink); }
.carousel__btn svg { width: 22px; height: 22px; }
.carousel__track { list-style: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: var(--radius); }
.carousel__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: start; }
.carousel__slide figure { display: flex; flex-direction: column; gap: 12px; }
.carousel__frame { height: clamp(300px, 44vw, 540px); background: var(--mt-green-tint); border: 1px solid var(--mt-green-quote); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.carousel__frame img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.carousel__slide figcaption { font-weight: 600; color: var(--mt-ink); border-left: 3px solid var(--mt-green); padding-left: 12px; }
.carousel__thumbs { display: none; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.js .carousel__thumbs { display: flex; }
.carousel__thumbs button { flex: 0 0 auto; padding: 0; border: 3px solid transparent; border-radius: 8px; background: none; cursor: pointer; overflow: hidden; opacity: 0.7; }
.carousel__thumbs button[aria-current="true"] { border-color: var(--mt-green); opacity: 1; }
.carousel__thumbs img { width: 96px; height: 72px; object-fit: cover; }

/* ---------- Impressum ---------- */
.imprint { display: flex; flex-direction: column; gap: 32px; }
.imprint__main { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 32px; align-items: stretch; }
.imprint-card { border: 1px solid var(--mt-line); border-top: 3px solid var(--mt-green); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.imprint-card__name { font-size: 1.5rem; line-height: 1.25; }
.imprint-card__line { color: var(--mt-ink); }
.rows { display: grid; grid-template-columns: 170px minmax(0, 1fr); column-gap: 20px; }
.rows dt { color: var(--mt-grey-text); font-size: 0.9375rem; padding: 10px 0; border-top: 1px solid var(--mt-line); }
.rows dd { color: var(--mt-ink); padding: 10px 0; border-top: 1px solid var(--mt-line); }
@media (max-width: 520px) { .rows { grid-template-columns: 1fr; } .rows dd { border-top: 0; padding-top: 0; } }
.imprint-card .wko { background: var(--mt-soft); border-radius: 8px; padding: 18px 20px; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: auto; font-size: 0.9375rem; }
.wko__badge { display: inline-flex; padding: 4px 0; }
.imprint__info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; }
.info-card { background: var(--mt-soft); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.info-card .h3 { font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.08em; }
