/* ============================================================
   VISION US · Academy, Version 2 (Briefing V2, Abschnitt 7)
   Lesemodus: Kursseiten auf Papier, eine Lesespalte, viel
   Abstand, klare Nummerierung. Landingpage im Dark Olive der
   Website. Version 1 liegt im Tag academy-v1-2026-10-06.
   ============================================================ */

/* ---------- Fonts: wie die Website, selbst gehostet ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-300italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('/fonts/dm-sans.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  /* Dark Olive (Landing, Navigation, Footer) */
  --bg: #363928;
  --bg2: #3E4130;
  --bg5: #282B1E;
  --bg6: #1E211A;
  --cream: #FAF7F2;
  --cream2: #EDE8DC;
  --cream3: #D8D2C4;
  --gold13: rgba(201, 169, 110, 0.13);
  --div: rgba(201, 169, 110, 0.10);

  /* Papier-Lesemodus (Briefing V2, 7.1; Namen wie global.css der Website) */
  --papier: #F1EFE8;
  --weiss: #FFFFFF;
  --tinte: #22241E;
  --text: #2A2C25;
  --text2: #4F514A;
  --muted: #7A7B72;
  --gold: #C9A96E;
  --gold-auf-hell: #816539;
  --hair: #DDCCAB;
  --hair2: #E6DBC6;
  --sage: #5E7D5A;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Runde 3, Punkt 1: echte Hoehe der fixen Navigation, per
     ResizeObserver in academy.js gesetzt; 84px ist der Fallback. */
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  background: var(--bg);
  color: var(--cream2);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid #C9A96E; outline-offset: 3px; }
.papier :focus-visible { outline-color: #816539; }

.sr-nur {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--bg6);
  color: var(--cream);
  padding: 0.8rem 1.2rem;
}
.skip-link:focus { left: 0; }

.container {
  max-width: 1256px;
  margin-inline: auto;
  padding-inline: 48px;
}
@media (max-width: 767px) {
  .container { padding-inline: 20px; }
}

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: var(--gold);
}
.papier .eyebrow { color: var(--gold-auf-hell); }
.eyebrow__linie { width: 22px; height: 1px; background: currentColor; flex: 0 0 auto; }

.gruppen-label {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-auf-hell);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 300; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
.papier h1 em, .papier h2 em { color: var(--gold-auf-hell); }

.textlink {
  color: var(--cream2);
  font-size: 13px;
  border: 0;
  border-bottom: 1px solid rgba(201, 169, 110, 0.6);
  padding: 0 0 2px;
  background: none;
  font-family: var(--sans);
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease-out;
}
.textlink:hover { color: var(--gold); }
.textlink--klein { font-size: 12px; }
.papier .textlink { color: var(--text); border-color: rgba(129, 101, 57, 0.6); }
.papier .textlink:hover { color: var(--gold-auf-hell); }

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border: 1px solid #C9A96E;
  background: var(--gold13);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease-out;
}
.btn-gold:hover { background: rgba(201, 169, 110, 0.22); }

/* Button auf Papier (Kursuebersicht): Rahmen Tinte (Briefing V2, 7.3) */
.btn-tinte {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border: 1px solid var(--tinte);
  background: transparent;
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease-out, color 0.3s ease-out;
}
.btn-tinte:hover { background: var(--tinte); color: var(--papier); }

.haarlinie { border: 0; border-top: 1px solid var(--hair); }

/* ---------- Navigation (wie die Website, Punkt Academy aktiv) ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  color: var(--cream);
  background: transparent;
  /* Runde 4, Punkt 7: unterhalb des Heros sofort deckend, max. 150ms */
  transition: background-color 0.15s ease-out;
}
.nav--sofort, .nav.is-solid { background: var(--bg5); }
.nav__inner {
  max-width: 1256px;
  margin-inline: auto;
  padding: 1.15rem 48px;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.nav__logo { margin-right: auto; line-height: 0; position: relative; z-index: 110; }
.nav__logo img { height: 15px; width: auto; }
.nav__liste { display: flex; gap: clamp(1.2rem, 2.5vw, 2.4rem); list-style: none; }
.nav__link {
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease-out;
}
.nav__link:hover { border-bottom-color: var(--gold); }
.nav__punkt {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 9px;
  vertical-align: 2px;
}
.nav__link--academy[aria-current='page'] { color: var(--gold); border-bottom-color: var(--gold); }
.nav__instagram { display: inline-flex; color: var(--gold); opacity: 0.85; transition: opacity 0.3s ease-out; }
.nav__instagram:hover { opacity: 1; }
.nav__cta {
  border: 1px solid var(--gold);
  padding: 0.7rem 1.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s ease-out, color 0.3s ease-out;
}
.nav__cta:hover { background: var(--cream); color: var(--bg6); }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
}
.nav__overlay[hidden] { display: none; }
.nav__overlay {
  position: fixed;
  inset: 0;
  background: var(--bg6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  text-align: center;
  z-index: 105;
}
.nav__overlay-liste { list-style: none; display: flex; flex-direction: column; gap: 1.6rem; }
.nav__overlay-link {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  color: var(--cream);
  border-bottom: 1px solid transparent;
}
.nav__overlay-link:hover,
.nav__overlay-link[aria-current='page'] { border-bottom-color: var(--gold); }
.nav__overlay-link--academy .nav__punkt { vertical-align: 8px; }
.nav__overlay-cta {
  border: 1px solid var(--gold);
  padding: 0.9rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
}
@media (max-width: 1020px) {
  .nav__menu, .nav__instagram, .nav__cta { display: none; }
  .nav__toggle { display: block; position: relative; z-index: 110; }
  .nav__inner { padding-inline: 20px; }
}

/* ---------- Footer (wie die Website) ---------- */
.footer { background: var(--bg6); color: #EDE8DC; }
.footer__inner {
  max-width: 1256px;
  margin-inline: auto;
  padding: clamp(3.5rem, 8vh, 6rem) 48px 2.5rem;
}
.footer__oben {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}
.footer__marke img { height: 15px; width: auto; }
.footer__subline { margin-top: 1rem; font-family: var(--serif); font-size: 1.05rem; opacity: 0.75; }
.footer__liste { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer__liste--zeile { flex-direction: row; flex-wrap: wrap; gap: 1.8rem; row-gap: 0.6rem; }
.footer__link { font-size: 0.85rem; opacity: 0.85; transition: opacity 0.3s ease-out; }
.footer__link:hover { opacity: 1; }
.footer__label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.footer__kontakt .footer__link { display: block; width: fit-content; margin-top: 0.45rem; }
.footer__unten {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  border-top: 1px solid var(--div);
  padding-top: 1.6rem;
}
.footer__zeile { font-size: 0.8rem; opacity: 0.6; }
@media (max-width: 700px) {
  .footer__inner { padding-inline: 20px; }
  .footer__oben { grid-template-columns: 1fr; }
  .footer__unten { flex-direction: column; gap: 1rem; }
}

/* ---------- Landing (Runde 3): Hero mit Bild aus eigener Produktion ---------- */
.landing-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(30, 33, 26, 0.6), rgba(30, 33, 26, 0.6) 55%, var(--bg));
}
.landing-hero__inhalt { position: relative; padding: 140px 48px 80px; }
.landing-hero__konto { font-size: 12px; color: var(--cream3); }
.landing-hero__konto .inline-form { display: inline; }
.landing-hero-schlicht { padding: 160px 0 96px; }
.landing-hero__h1 {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.95;
  margin-top: 26px;
  max-width: 11em;
  color: var(--cream);
}
.landing-hero__unterzeile {
  font-size: 17px;
  margin-top: 26px;
  max-width: 560px;
  color: var(--cream2);
}
.landing-hero__aktionen {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
/* Intro zwischen Hero und Kurskarte (Korrektur Landingpage 06.10., 17:50):
   buendig mit der Karte, keine Karte, kein Rahmen, kein Hintergrund. */
.landing-intro { max-width: 760px; margin-bottom: 96px; }
/* Runde 4, Punkt 5: Eyebrow ueber dem Raster, Satz buendig mit dem
   ersten Absatz rechts */
.landing-intro__eyebrow { margin-bottom: 28px; }
/* p.landing-intro__satz: gewinnt gegen die 17px-Regel fuer Intro-Absaetze */
.landing-intro p.landing-intro__satz {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  color: var(--cream);
  max-width: 12em;
}
@media (min-width: 1024px) {
  .landing-intro--zweispaltig {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 640px);
    gap: 64px;
  }
}
.landing-intro p:not(.eyebrow):not(.landing-intro__satz) {
  font-size: 17px;
  line-height: 1.8;
  color: var(--cream2);
}
.landing-intro .eyebrow + p { margin-top: 26px; }
.landing-intro p + p { margin-top: 1.4em; }
.landing-intro a {
  border-bottom: 1px solid rgba(201, 169, 110, 0.6);
  padding-bottom: 1px;
  transition: color 0.3s ease-out;
}
.landing-intro a:hover { color: var(--gold); }
@media (max-width: 767px) {
  .landing-intro { margin-bottom: 64px; }
}

/* Kursraster (Runde 2, A2/A3): 3 Spalten, Tablet 2, Handy 1, Gap 2px */
.landing-kursblock { padding-bottom: 96px; }
.landing-kursblock__eyebrow { margin-bottom: 26px; }
.kurs-raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; /* Runde 5: Luft zwischen den Karten, alle Breiten */
}
.kurs-kachel {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  transition: background-color 0.3s ease-out;
}
/* Runde 5: Hover und Tastaturfokus gleich; Bild zoomt im Rahmen,
   Karte heller, Titel Gold, Knopf gefuellt */
a.kurs-kachel:hover,
a.kurs-kachel:focus-visible { background: #454835; }
a.kurs-kachel:hover .kurs-kachel__bild img,
a.kurs-kachel:focus-visible .kurs-kachel__bild img { transform: scale(1.04); }
a.kurs-kachel:hover .kurs-kachel__titel,
a.kurs-kachel:focus-visible .kurs-kachel__titel { color: var(--gold); }
a.kurs-kachel:hover .kurs-kachel__knopf,
a.kurs-kachel:focus-visible .kurs-kachel__knopf {
  background: #C9A96E;
  color: var(--tinte);
}
/* Runde 3, Punkt 9: Bild 16:10 oben, Text darunter */
.kurs-kachel__bild {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.kurs-kachel__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .kurs-kachel__bild img { transition: none; }
  a.kurs-kachel:hover .kurs-kachel__bild img,
  a.kurs-kachel:focus-visible .kurs-kachel__bild img { transform: none; }
}
/* Demnaechst ohne Foto: flache dunkle Flaeche im selben Format (Runde 5) */
.kurs-kachel__flaeche {
  display: block;
  aspect-ratio: 16 / 10;
  background: #26281F;
  border-bottom: 1px solid rgba(221, 204, 171, 0.15);
}
.kurs-kachel--demnaechst { cursor: default; }
.kurs-kachel--demnaechst .kurs-kachel__bild img { filter: brightness(0.55) saturate(0.8); }
.kurs-kachel__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 28px 28px;
}
.kurs-kachel--demnaechst .kurs-kachel__titel,
.kurs-kachel--demnaechst .kurs-kachel__unterzeile { color: var(--cream3); }
.kurs-kachel__titel { font-size: 24px; line-height: 1.15; color: var(--cream); margin-top: 16px; }
.kurs-kachel__unterzeile { margin-top: 10px; font-size: 14px; color: var(--cream2); }
.kurs-kachel__meta { margin-top: 12px; font-size: 12px; color: var(--cream3); }
.kurs-kachel__knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 0 22px;
  min-height: 40px;
  border: 1px solid #C9A96E;
  background: var(--gold13);
  color: var(--cream);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.kurs-kachel__knopf { margin-top: 24px; }
a.kurs-kachel { gap: 0; }
a.kurs-kachel .kurs-kachel__knopf { margin-top: 24px; }
@media (max-width: 1024px) {
  .kurs-raster { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .kurs-raster { grid-template-columns: 1fr; }
}

/* So bekommst du Zugang, kompakt (Runde 3, Punkt 10): eine Zeile,
   Nummern in Gold, Trennlinien statt Kaesten */
.landing-zugangsweg { padding-bottom: 110px; }
.zugangsweg {
  list-style: none;
  display: flex;
  margin-bottom: 36px;
}
.zugangsweg__schritt {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex: 1;
  padding: 6px 28px 6px 0;
}
.zugangsweg__schritt + .zugangsweg__schritt {
  border-left: 1px solid var(--div);
  padding-left: 28px;
}
.zugangsweg__nummer {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
  flex: 0 0 auto;
}
.zugangsweg__schritt p { font-size: 14px; color: var(--cream2); }
@media (max-width: 860px) {
  .zugangsweg { flex-direction: column; gap: 14px; }
  .zugangsweg__schritt { padding: 14px 0 0; }
  .zugangsweg__schritt + .zugangsweg__schritt {
    border-left: 0;
    border-top: 1px solid var(--div);
    padding-left: 0;
  }
}

/* No-JS-Fallback am Seitenende (C3); mit JavaScript versteckt */
.landing-zugang { padding-bottom: 110px; }
.landing-zugang[hidden] { display: none; }
@media (max-width: 767px) {
  .landing-hero-schlicht { padding: 112px 0 64px; }
  .landing-kursblock, .landing-zugang, .landing-zugangsweg { padding-bottom: 64px; }
}

/* ---------- Login und Anfrage (dunkel, wie V1) ---------- */
.zugang-zeile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  align-items: start;
}
.login-box, .anfrage { background: var(--bg2); padding: 30px 26px; }
.login-box form, .anfrage form { margin-top: 22px; }
.feld { margin-bottom: 16px; }
.feld label {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream3);
  margin-bottom: 6px;
}
.feld__optional { text-transform: none; letter-spacing: 0.5px; color: #9A9480; font-size: 10px; }
.feld input, .feld textarea {
  width: 100%;
  min-height: 44px;
  background: var(--bg5);
  border: 1px solid var(--div);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 0;
}
.feld textarea { line-height: 1.6; min-height: 110px; resize: vertical; }
.feld-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--cream2);
  margin-bottom: 18px;
  min-height: 44px;
  cursor: pointer;
}
.feld-checkbox input { width: 16px; height: 16px; accent-color: #C9A96E; }
.feld__fehler, .formular-fehler { color: #E8D5B0; font-size: 12px; margin-top: 6px; }
.formular-fehler { margin-bottom: 14px; }
.feld-falle { position: absolute; left: -9999px; top: auto; }
.anfrage__erfolg { color: var(--cream); font-size: 15px; margin-top: 18px; }
.anfrage__datenschutz { font-size: 11px; color: var(--cream3); margin-top: 16px; max-width: 40em; }
.anfrage__datenschutz a, .login-box__hinweis a { border-bottom: 1px solid rgba(201, 169, 110, 0.6); }
.login-box__hinweis { font-size: 11px; color: var(--cream3); margin-top: 16px; }
.login-box__angemeldet { margin-top: 18px; margin-bottom: 16px; color: var(--cream); }
.login-box__logout { margin-top: 16px; }
.login-box .btn-gold, .anfrage .btn-gold { width: 100%; }
@media (max-width: 960px) {
  .zugang-zeile { grid-template-columns: 1fr; }
  .anfrage { order: -1; } /* Handy: Anfrage zuerst (Briefing 7.4) */
}

/* ---------- Papier-Grundflaeche ---------- */
.papier {
  background: var(--papier);
  color: var(--text);
  padding-top: var(--nav-h);
}

/* ---------- Kursansicht (Runde 3) ---------- */
/* Kursleiste: volle Breite, sticky unter der Navigation (--nav-h),
   Fortschrittsbalken am unteren Rand (Punkt 1 und 6) */
.kursleiste {
  position: sticky;
  top: var(--nav-h);
  z-index: 95;
  margin-top: var(--nav-h);
  background: #282B1E;
  color: var(--cream2);
  font-size: 13px;
}
.kursleiste__inner {
  max-width: 1256px;
  margin-inline: auto;
  padding: 0 48px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.kursleiste__kapitelknopf {
  display: none;
  min-height: 40px;
  padding: 0 16px;
  background: none;
  border: 1px solid rgba(201, 169, 110, 0.5);
  color: var(--cream2);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
}
/* display: block statt inline-flex: Flex kollabiert das Leerzeichen vor
   dem <em> im Kurstitel ("Setup mit Claude" klebte zusammen) */
.kursleiste__titel {
  flex: 1;
  font-size: 13px;
  color: var(--cream);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  padding-block: 13px;
}
a.kursleiste__titel:hover { color: var(--gold-l); }
.kursleiste__titel em { font-style: italic; color: var(--gold); }
.kursleiste__rechts {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}
.kursleiste__stand { font-size: 13px; color: var(--cream3); }
.kursleiste__academy-link {
  font-size: 12px;
  color: var(--cream2);
  border-bottom: 1px solid rgba(201, 169, 110, 0.6);
  padding-bottom: 1px;
}
.kursleiste__anmelden {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid #C9A96E;
  background: var(--gold13);
  color: var(--cream);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}
/* Namensmenue (Punkt 6) */
.kursleiste__nutzer { position: relative; }
.kursleiste__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  background: none;
  border: 0;
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  cursor: pointer;
}
.kursleiste__name-pfeil {
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
}
.kursleiste__menue {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 170px;
  background: var(--bg6);
  border: 1px solid var(--div);
  padding: 8px 0;
  z-index: 96;
}
.kursleiste__menue[hidden] { display: none; }
.kursleiste__menue a,
.kursleiste__menue button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 18px;
  background: none;
  border: 0;
  color: var(--cream2);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  cursor: pointer;
}
.kursleiste__menue a:hover,
.kursleiste__menue button:hover { color: var(--gold); background: rgba(201, 169, 110, 0.07); }
.kursleiste__balken {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  width: 0;
  transition: width 0.3s ease-out;
}

/* Ein zentriertes Raster wie die Navigation (Punkt 4): Karte 280px,
   Abstand 64px, Lesespalte 720px, gleiche linke Kante wie das Logo */
.kursansicht { padding-bottom: 120px; }
.kursansicht.papier { padding-top: 0; }
.kursraster { padding-top: 48px; }
@media (min-width: 1100px) {
  .kursraster {
    display: grid;
    grid-template-columns: 280px minmax(0, 720px);
    gap: 64px;
    align-items: start;
  }
}
.lese-spalte { max-width: 720px; }

/* Seitenleiste als Karte, immer ausgeklappt (Punkt 4 und 5) */
.kursmenue {
  background: var(--weiss);
  border: 1px solid #E6DBC6;
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 56px + 24px);
  max-height: calc(100vh - var(--nav-h) - 56px - 48px);
  overflow-y: auto;
}
.kursmenue__gruppe + .kursmenue__gruppe { margin-top: 24px; }
.kursmenue__gruppe .gruppen-label { margin-bottom: 8px; }
.kursmenue__liste { list-style: none; }
.kursmenue__eintrag {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 10px 6px 10px;
  margin-left: -12px;
  border-left: 2px solid transparent;
  font-size: 13px;
  color: var(--text2);
  min-height: 32px;
}
.kursmenue__eintrag:hover { color: var(--gold-auf-hell); }
.kursmenue__eintrag.ist-aktuell {
  background: #F1EFE8;
  border-left-color: var(--gold);
  color: var(--tinte);
}
.kursmenue__eintrag.ist-gesperrt { color: var(--muted); }
.kursmenue__nummer { font-family: var(--serif); font-size: 14px; color: var(--gold-auf-hell); flex: 0 0 18px; }
.kursmenue__titel { flex: 1; }
.kursmenue__eintrag .icon-schloss { align-self: center; color: var(--gold-auf-hell); opacity: 0.7; }
.kursmenue__haken { color: var(--gold-auf-hell); align-self: center; }
.kursmenue__haken[hidden] { display: none; }
.kursmenue-overlay[hidden] { display: none; }
.kursmenue-overlay {
  position: fixed;
  inset: 0;
  z-index: 118;
  background: rgba(20, 22, 16, 0.42);
}

/* Unter 1100px: Seitenleiste als Schublade (Punkt 6 der Runde 2 bleibt) */
@media (max-width: 1099px) {
  .kursleiste__kapitelknopf { display: inline-flex; align-items: center; }
  .kursmenue {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(340px, 86vw);
    max-height: none;
    border: 0;
    border-right: 1px solid #E6DBC6;
    z-index: 120;
    transform: translateX(-105%);
    transition: transform 0.25s ease-out;
  }
  .kursmenue.ist-offen { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .kursmenue { transition: none; }
  .kursleiste__balken { transition: none; }
}
@media (max-width: 700px) {
  .kursleiste__inner { padding: 8px 20px; gap: 14px; }
  .kursleiste__stand { display: none; }
  .kursleiste__titel { font-size: 12px; }
}

/* Kopf der Kapitelseite */
.kapitel-kopf { padding-top: 96px; }
.kapitel-kopf__zeile {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-top: 24px;
}
.kapitel-kopf__nummer {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(64px, 8vw, 96px);
  line-height: 1;
  color: var(--gold);
}
.kapitel-kopf__h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.05;
  color: var(--tinte);
}
.kapitel-kopf .haarlinie { margin-top: 28px; margin-bottom: 32px; }
@media (max-width: 600px) {
  .kapitel-kopf { padding-top: 56px; }
  .kapitel-kopf__zeile { flex-direction: column; gap: 8px; }
}

/* Karten: Ergebnis, Pruefe, Problem (Briefing V2, 7.4) */
.karte-ergebnis {
  background: var(--weiss);
  border-left: 2px solid var(--gold);
  padding: 22px 26px;
  margin-bottom: 56px;
}
.karte-ergebnis__label, .karte--pruefe .karte__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.karte-ergebnis__label { color: var(--gold-auf-hell); }
.karte-ergebnis p:last-child { font-size: 16px; line-height: 1.7; }
.karte--pruefe {
  background: var(--weiss);
  border-left: 2px solid var(--sage);
  padding: 22px 26px;
  margin-block: 40px;
}
.karte--pruefe .karte__label { color: var(--sage); }
.karte--pruefe p:last-child { font-size: 16px; line-height: 1.7; }
.karte--problem {
  background: var(--weiss);
  border: 1px solid var(--hair2);
  padding: 22px 26px;
}
.karte--problem + .karte--problem { margin-top: 16px !important; }
.karte--problem__titel { font-weight: 400; font-size: 17px; color: var(--tinte); margin-bottom: 6px; }
.karte--problem p:last-child { font-size: 16px; line-height: 1.7; }

/* Inhalt */
.kapitel-inhalt { font-size: 17px; line-height: 1.8; }
.kapitel-inhalt > * + * { margin-top: 1.4em; }
.kapitel-inhalt strong { font-weight: 400; color: var(--tinte); }
.kapitel-inhalt h2, .kapitel-inhalt h3 {
  font-size: 28px;
  line-height: 1.15;
  color: var(--tinte);
  margin-top: 64px;
  margin-bottom: 20px;
}
.h2-nummer { color: var(--gold-auf-hell); }
.kapitel-inhalt a:not(.kapitel-link) {
  color: var(--tinte);
  border-bottom: 1px solid rgba(129, 101, 57, 0.6);
  transition: color 0.3s ease-out;
}
.kapitel-inhalt a:not(.kapitel-link):hover { color: var(--gold-auf-hell); }
.kapitel-link { border-bottom: 1px solid rgba(129, 101, 57, 0.4); }
.kapitel-link:hover { color: var(--gold-auf-hell); }
.platzhalter { color: var(--gold-auf-hell); }
/* Bedienelemente (Runde 4, Punkt 3): Schaltflaechen und Menuepunkte */
.bedienelement {
  font-weight: 400;
  font-size: 0.92em;
  background: #E6DBC6;
  border: 1px solid #DDCCAB;
  border-radius: 2px;
  padding: 1px 6px;
  color: var(--tinte);
  white-space: nowrap;
}
.listen-label {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-auf-hell);
  margin-top: 2.6em !important;
}
code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.92em;
  background: rgba(34, 36, 30, 0.06);
  padding: 1px 5px;
}

/* Schritte (1.-Listen): Raster 56px + Text, Haarlinie dazwischen */
.md-nummern { list-style: none; }
.schritt {
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 28px 0;
  border-bottom: 1px solid var(--hair2);
}
.md-nummern li:first-child { border-top: 1px solid var(--hair2); }
.schritt__nr {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 36px;
  line-height: 1;
  color: var(--gold);
}
.schritt__text { font-size: 17px; line-height: 1.75; }
@media (max-width: 480px) {
  .schritt { grid-template-columns: 1fr; gap: 8px; }
  .schritt__nr { font-size: 22px; }
}

/* Strichlisten */
.md-liste { list-style: none; }
.md-liste li {
  position: relative;
  padding-left: 24px;
  margin-top: 12px;
}
.md-liste li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

/* Aufgabenliste (Kapitel 9): echte Checkboxen, Zustand in localStorage */
.aufgaben { list-style: none; }
.aufgabe {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
}
.aufgabe input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 4px;
  border: 1px solid var(--tinte);
  background: var(--weiss);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.aufgabe input[type='checkbox']:checked::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 1.6px solid var(--gold-auf-hell);
  border-bottom: 1.6px solid var(--gold-auf-hell);
  transform: rotate(-45deg) translateY(-1px);
}
.aufgabe label { font-size: 17px; line-height: 1.6; cursor: pointer; padding-block: 2px; }
.aufgabe input:checked + label { color: var(--text2); }

/* Tabellen */
.md-tabelle { overflow-x: auto; }
.md-tabelle table { border-collapse: collapse; width: 100%; min-width: 520px; }
.md-tabelle th {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-auf-hell);
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--hair);
}
.md-tabelle td {
  font-size: 15px;
  line-height: 1.55;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--hair2);
  vertical-align: top;
}
.md-tabelle td:first-child { color: var(--tinte); font-weight: 400; }

/* Anweisungsbox (Anhang A) und Prompt-Boxen: dunkel auf Papier */
.prompt-box {
  position: relative;
  background: var(--tinte);
  color: var(--papier);
  padding: 32px 36px;
  margin-top: 2em;
}
.prompt-box pre {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.prompt-box--baum pre { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }
.prompt-feld { color: var(--gold); }
/* Runde 5: Kopieren bleibt beim Scrollen sichtbar (sticky im Fluss,
   klebt unter Navigation und Kursleiste) */
.prompt-kopieren {
  position: sticky;
  top: calc(var(--nav-h) + 56px + 12px);
  display: block;
  margin-left: auto;
  margin-bottom: 10px;
  z-index: 2;
  min-height: 32px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--papier);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease-out;
}
.prompt-kopieren:hover { background: rgba(201, 169, 110, 0.2); }
/* Lange Boxen (Runde 5, Punkt 4): eingeklappt auf ~420px, Verlauf in
   die Boxfarbe, Umschalt-Knopf darunter. Ohne JavaScript voll offen. */
.prompt-box { position: relative; }
.prompt-box.ist-eingeklappt pre {
  max-height: 420px;
  overflow: hidden;
}
.prompt-box.ist-eingeklappt::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  height: 120px;
  background: linear-gradient(rgba(34, 36, 30, 0), var(--tinte));
  pointer-events: none;
}
.prompt-toggle {
  position: relative;
  z-index: 2;
  display: block;
  margin: 14px auto 0;
  min-height: 36px;
  padding: 0 20px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--papier);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease-out;
}
.prompt-toggle:hover { background: rgba(201, 169, 110, 0.2); }

/* Fuss: zwei echte Buttons (Runde 2, B5) */
.kapitel-fuss {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
}
.btn-zurueck {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--tinte);
  color: var(--tinte);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: background-color 0.3s ease-out, color 0.3s ease-out;
}
.btn-zurueck:hover { background: var(--tinte); color: var(--papier); }
.btn-weiter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  background: var(--gold);
  color: var(--tinte);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: background-color 0.3s ease-out;
}
.btn-weiter:hover { background: #B99A5F; }
@media (max-width: 600px) {
  .kapitel-fuss { flex-direction: column; align-items: stretch; }
  .btn-zurueck, .btn-weiter { width: 100%; }
}

/* ---------- Dialog fuer Anmelden und Anfrage (Runde 2, C) ---------- */
/* Runde 3, Punkt 2: der globale margin-Reset nahm <dialog> die
   Zentrierung; margin: auto + inset: 0 stellt sie wieder her. */
.zugang-dialog {
  border: 0;
  padding: 0;
  margin: auto;
  inset: 0;
  position: fixed;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--bg2);
  color: var(--cream2);
}
.zugang-dialog::backdrop { background: rgba(20, 22, 16, 0.6); }
.zugang-dialog__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 0 28px;
  border-bottom: 1px solid var(--div);
}
.zugang-dialog__reiter { display: flex; gap: 24px; }
.zugang-dialog__reiterknopf {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--cream3);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px 0 14px;
  min-height: 44px;
  cursor: pointer;
}
.zugang-dialog__reiterknopf.ist-aktiv {
  color: var(--cream);
  border-bottom-color: var(--gold);
}
.zugang-dialog__schliessen {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--cream2);
  cursor: pointer;
}
.zugang-dialog .login-box,
.zugang-dialog .anfrage {
  background: transparent;
  padding: 24px 28px 28px;
}
.zugang-dialog .login-box .eyebrow,
.zugang-dialog .anfrage .eyebrow { display: none; }
.zugang-dialog__panel[hidden] { display: none; }
@media (max-width: 600px) {
  .zugang-dialog {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0;
  }
}

/* Altlasten-Komponenten der Kurse 1 und 2 (Container, Zitate), damit eine
   spaetere Aktivierung auf Papier nicht bricht. Bewusst knapp. */
.chip-ungeprueft, .chip-beruf {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-auf-hell);
  border: 1px solid rgba(129, 101, 57, 0.5);
  padding: 2px 8px;
  white-space: nowrap;
}
.q-verweis { font-size: 10px; line-height: 0; }
.q-verweis a { color: var(--gold-auf-hell); border-bottom: 0; }
.zitat-gross p { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 36px); line-height: 1.3; color: var(--tinte); }
.info-box { border: 1px solid rgba(129, 101, 57, 0.3); padding: 24px 28px; }
.info-box__label { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-auf-hell); margin-bottom: 8px; }
.zahlen-raster, .spalten-drei, .zeitstrahl, .kontakt-spalten, .team-zeile, .galerie, .schritte__liste { display: grid; gap: 2px; }
.zahl-kachel, .spalten-drei__spalte, .zeitstrahl__spalte, .kontakt-spalten__spalte, .schritte__punkt { background: var(--weiss); padding: 24px; }
.md-bild figcaption, .galerie figcaption { font-size: 11px; color: var(--text2); margin-top: 8px; }
