/*
 * Kristallvitrine: ein dunkler Ausstellungsraum. Der Grund liegt tiefer als der
 * der App, damit die Aufnahmen darauf als Gegenstand liegen und nicht mit der
 * Seite verschwimmen. Gold traegt alles Bedienbare, Blau bleibt der
 * Zielsprache, genau wie in der Farbwelt Onyx.
 *
 * Die Schrift liegt im Ordner nebenan, es gibt also keine fremde Anfrage und
 * keine Zeile JavaScript. Jede Bewegung steht hier unten und schaltet sich bei
 * `prefers-reduced-motion` ab.
 */

/*
 * Nunito traegt die Marke. Dieselbe Schrift wie in der App, damit Seite und
 * Programm gleich klingen. Die Dateien liegen hier im Ordner: die CSP in
 * `_headers` erlaubt unter `font-src` nur `self`, ein Aufruf bei Google waere
 * also geblockt, und `scripts/website/check.mjs` weist jede fremde Adresse im
 * Stylesheet ohnehin ab.
 *
 * Je Zeichenbereich eine variable Datei statt drei fester Schnitte: 73 kB
 * gegen 219 kB, und dazwischen liegt jedes Gewicht von 400 bis 700. Der zweite
 * Bereich holt nur nach, was Osteuropa und Vietnam brauchen; wer die deutsche
 * Fassung liest, laedt ihn nie. `swap` zeigt den Text sofort in der
 * Systemschrift und tauscht ihn, sobald die Datei da ist.
 *
 * Kursiv fehlt mit Absicht, weil die Seite nichts kursiv setzt: das eine
 * `em` in der Ueberschrift steht auf `font-style: normal` und faerbt
 * stattdessen.
 */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  /* Farben aus src/designs/design-families.ts, Familie Onyx, dunkel. */
  --color-background: #0b0d10;
  --color-surface: #131619;
  --color-elevated: #1b1f24;
  --color-input: #0e1114;
  --color-text: #f2f5f8;
  --color-text-secondary: #98a2ac;
  --color-border: #262e36;
  --color-border-strong: #333b44;
  --color-accent: #daaf72;
  --color-accent-alt: #dccdb4;
  --color-on-accent: #1a1206;
  --color-target: #7fc3f0;
  --color-success: #daaf72;
  --color-shadow: rgba(0, 0, 0, 0.6);
  --color-header: rgba(11, 13, 16, 0.72);

  --font-sans:
    "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --space-half: 2px;
  --space-one: 4px;
  --space-two: 8px;
  --space-three: 12px;
  --space-four: 16px;
  --space-five: 20px;
  --space-six: 24px;
  --space-seven: 32px;
  --space-eight: 40px;
  --space-nine: 48px;
  --space-ten: 72px;
  --space-band: clamp(56px, 8vw, 96px);

  /*
   * Der Schein um eine Karte. Er liegt als box-shadow ohne Versatz auf dem
   * Rahmen, folgt also der Rundung und ist in den Ecken genauso stark wie an
   * den Seiten. Er steht dauerhaft, damit er nichts anklickbar aussehen
   * laesst, was keins ist.
   */
  --schein:
    0 0 0 1px rgba(218, 175, 114, 0.05),
    0 0 14px rgba(218, 175, 114, 0.05);

  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 21px;
  --radius-pill: 999px;
  --content-width: 1120px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dauer: 0.7s;

  interpolate-size: allow-keywords;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Sonst liegt das Sprungziel unter der klebenden Kopfzeile. */
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-small);
}

.skip-link {
  position: fixed;
  top: var(--space-four);
  left: var(--space-four);
  z-index: 20;
  min-height: 44px;
  padding: var(--space-three) var(--space-four);
  border-radius: var(--radius-small);
  background: var(--color-text);
  color: var(--color-background);
  font-weight: 600;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ------------------------------------------------------------------ Kopf */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  isolation: isolate;
  background: var(--color-header);
  backdrop-filter: blur(18px) saturate(140%);
}

/*
 * Die Kante unter dem Kopf ist kein Rahmen, sondern ein Verlauf: in der Mitte
 * das Gold der Marke, zu beiden Seiten hin weg. Ein durchgezogener Strich
 * kastet den Kopf ein, dieser laesst ihn offen.
 */
.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent) 20%,
    var(--color-accent) 80%,
    transparent
  );
}

.header-inner,
.band-inner,
.footer-inner {
  width: min(calc(100% - var(--space-eight)), var(--content-width));
  margin-inline: auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-six);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-three);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand {
  min-height: 44px;
}

/*
 * Das Zeichen ist der Onyx aus dem App-Icon, freigestellt in Gold. Ein Vektor,
 * erzeugt von scripts/branding/build-icons.mjs: so steht er in jedem
 * Browserzoom und auf jedem Schirm scharf, statt nur in einer Groesse.
 * Die Fugen darin sind trotzdem fuer 34 Punkte geschnitten und nicht fuer die
 * Zeichenflaeche des Vektors, sonst wuerden sie hier zu duenn.
 * Die Zahlen sind der Ausschnitt der Datei, damit nichts verzerrt.
 */
.brand-mark,
.footer-mark {
  --mark-hoehe: 34px;
  width: calc(var(--mark-hoehe) * 768.21 / 1000);
  height: var(--mark-hoehe);
  flex: none;
  background-image: url("/lingonyx-mark.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

nav,
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-six);
}.nav-link {
  position: relative;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Der Strich laeuft von links ein, statt einfach da zu sein. */
.nav-link::after {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
  content: "";
}.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

@media (max-width: 640px) {
  /* Auf dem Telefon rutschen die drei Verweise in eine zweite Zeile unter
     Marke und Knopf, statt zu verschwinden. */
  .header-inner {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .header-inner nav {
    display: contents;
  }

  .header-inner .button-small {
    margin-left: auto;
  }

  .nav-links {
    order: 1;
    width: 100%;
    gap: var(--space-five);
    margin-top: -6px;
    padding-bottom: 6px;
  }

  .nav-link {
    min-height: 36px;
  }
}

/* --------------------------------------------------------------- Knoepfe */

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-two);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.35s ease,
    background 0.25s ease;
}

.button-small {
  min-height: 40px;
  padding-inline: var(--space-five);
  background: rgba(255, 255, 255, 0.04);
}

.button-small:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.button-primary {
  position: relative;
  padding-inline: var(--space-seven);
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-on-accent);
  /* Ringsum gleich stark, wie bei den Karten, nur kraeftiger. */
  box-shadow: 0 0 18px rgba(218, 175, 114, 0.28);
  overflow: hidden;
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(218, 175, 114, 0.42);
}

/* Ein Lichtstreifen, der einmal ueber den Knopf zieht, wenn der Zeiger kommt. */
.button-primary::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 80%
  );
  transform: translateX(-120%);
  content: "";
}

.button-primary:hover::after {
  animation: glanz 0.9s var(--ease-out);
}

@keyframes glanz {
  to {
    transform: translateX(120%);
  }
}

/* ----------------------------------------------------------------- Baender */

/*
 * Baender tragen keine Kante. Ein Strich quer ueber den ganzen Bildschirm liegt
 * zwischen zwei Abschnitten im Leeren und gehoert zu keinem von beiden; bei
 * ungleich hohen Abschnitten wirkt seine Lage zufaellig. Den Anfang markiert
 * der kurze Strich vor der Rubrik, der am Text haengt, und der Abstand selbst.
 */
.band {
  position: relative;
  padding-block: var(--space-band);
}

/*
 * Der Kopf eines Abschnitts nimmt die ganze Breite: die Ueberschrift soll auf
 * eine Zeile passen, wo sie kann. Nur der Vorspann bekommt ein Mass. Er bricht
 * nicht ausgewogen (`balance`), denn das zoege den Nebensatz unten wieder ein
 * Wort nach; die Stelle des Umbruchs bestimmt der Nebensatz selbst.
 */
.band-kopf {
  margin-bottom: var(--space-nine);
}

.eyebrow {
  margin: 0 0 var(--space-four);
  display: flex;
  align-items: center;
  gap: var(--space-three);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}

.band-kopf h2 {
  font-size: clamp(30px, 4.4vw, 46px);
}

.band-kopf p {
  max-width: 44em;
  margin: var(--space-five) 0 0;
  color: var(--color-text-secondary);
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}

/*
 * Der Nebensatz eines Vorspanns bleibt beisammen: passt er nicht mehr auf die
 * Zeile, wandert er als Ganzes auf die naechste, und der Umbruch sitzt am
 * Komma statt mitten im Satz. Auf dem Telefon ist er breiter als die Zeile;
 * dort liesse er ein Loch am Zeilenende, darum gilt das erst ab 700px.
 */
@media (min-width: 700px) {
  .zeile {
    display: inline-block;
  }
}

/*
 * Der Strich vor der Rubrik ist der Anfang eines Abschnitts. Er steht von sich
 * aus da; das Ziehen beim Scrollen kommt weiter unten dazu und faengt dank
 * `both` von selbst bei null an.
 */
.eyebrow::before {
  width: 28px;
  height: 1px;
  flex: none;
  background: var(--color-accent);
  transform-origin: left;
  content: "";
}

/* -------------------------------------------------------------------- Hero */

/*
 * Kein `overflow: hidden`. Es hat frueher den Schein hinter den Geraeten
 * gehalten, seit der waagerecht im Rahmen bleibt schnitt es nur noch die
 * Bildunterschriften ab, sobald die Aufnahmen beim Scrollen ein Stueck nach
 * unten ziehen.
 */
.hero {
  position: relative;
  padding-block: clamp(64px, 10vw, 112px) 0;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(calc(100% - var(--space-eight)), 940px);
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(40px, 7.2vw, 76px);
  letter-spacing: -0.045em;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-lead {
  max-width: 38em;
  margin: var(--space-six) auto 0;
  color: var(--color-text-secondary);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: var(--space-eight);
  display: flex;
  justify-content: center;
  gap: var(--space-four);
  flex-wrap: wrap;
}

.availability {
  margin: var(--space-five) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-two);
  color: var(--color-text-secondary);
  font-size: 14px;
}

.availability span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(218, 175, 114, 0.14);
}

/* ------------------------------------------------------------ Sprachwahl */

.kurse {
  position: relative;
  z-index: 1;
  width: min(calc(100% - var(--space-eight)), var(--content-width));
  margin: var(--space-nine) auto 0;
}

.kurse-label {
  margin: 0 0 var(--space-five);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kurs-liste {
  --kurs-spalten: 4;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-three);
}

/* Zehn Kurse fallen in 4, 4 und 2, die unvollstaendige Reihe steht mittig
   und ihre Kacheln sind so breit wie die anderen. */
.kurs-liste li {
  position: relative;
  flex: 1 1 220px;
  max-width: calc(
    (100% - (var(--kurs-spalten) - 1) * var(--space-three)) / var(--kurs-spalten)
  );
  box-shadow: var(--schein);
  display: flex;
  align-items: center;
  gap: var(--space-four);
  padding: var(--space-four) var(--space-five);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  text-align: left;
}

/* Der Vorrat der Flaggen liegt unsichtbar am Anfang der Seite. */
.flaggen-quelle {
  position: absolute;
}

.flagge {
  width: 30px;
  height: 20px;
  flex: none;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.kurs-liste strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (max-width: 1023px) {
  .kurs-liste {
    --kurs-spalten: 3;
  }
}

@media (max-width: 640px) {
  .kurs-liste li {
    max-width: none;
  }
}

/* --------------------------------------------------------------- Vitrine */

.vitrine {
  position: relative;
  margin-top: var(--space-nine);
  /* Unten so viel Luft, wie die Aufnahmen beim Scrollen tief ziehen koennen. */
  padding-block: var(--space-nine) clamp(48px, 6vw, 88px);
}

/*
 * Kein Lichtschein hinter den Aufnahmen. Ein weicher Schein auf fast schwarzem
 * Grund zerfaellt in sichtbare Ringe, und dagegen hilft nur eine Kachel aus
 * Rauschen ueber der ganzen Seite. Die Aufnahmen tragen sich auch ohne.
 */

.geraete {
  position: relative;
  z-index: 1;
  /* Fluchtpunkt fuer die Neigung, mit der die Aufnahmen hereinkommen. */
  perspective: 1600px;
  width: min(calc(100% - var(--space-eight)), var(--content-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: clamp(12px, 2.2vw, 28px);
}

.geraet {
  margin: 0;
}

/* <picture> ist von Haus aus inline und liesse unter dem Bild eine Zeile Luft. */
.geraet picture {
  display: block;
}

.geraet img {
  display: block;
  width: 100%;
  border: 1px solid var(--color-border-strong);
  border-radius: clamp(14px, 1.8vw, 22px);
  background: var(--color-surface);
  box-shadow:
    var(--schein),
    0 30px 60px -30px var(--color-shadow);
}

.geraet figcaption {
  margin-top: var(--space-four);
  color: var(--color-text-secondary);
  font-size: 13px;
  text-align: center;
  text-wrap: balance;
}

/* Die zweite Aufnahme steht hoeher, wie ein Stueck im Schaukasten. */
.geraet:nth-child(2) {
  margin-bottom: clamp(18px, 3vw, 46px);
}

.geraet:nth-child(3) {
  margin-bottom: clamp(9px, 1.5vw, 23px);
}

@media (max-width: 860px) {
  .geraete {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .geraet:nth-child(2),
  .geraet:nth-child(3) {
    margin-bottom: 0;
  }
}

/* ---------------------------------------------------------------- Methode */

.schritte {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-two);
}

.schritte li {
  padding: var(--space-six);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  box-shadow: var(--schein);
}

.schritte b {
  display: block;
  margin-bottom: var(--space-three);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.schritte h3 {
  margin-bottom: var(--space-three);
  font-size: 21px;
}

.schritte p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.fremd {
  color: var(--color-target);
}

/* ---------------------------------------------------------------- Leiter */

/*
 * Zwei gleich breite Spalten: links der Wortschatz, rechts die Grammatik. So
 * steht auf einen Blick da, dass zu jeder Stufe Serien und Lektionen gehoeren
 * und dass der Kurs bis C2 reicht.
 */
/*
 * Eine Leiter fuer beides: links die Woerter, in der Mitte, welchen Serien man
 * dann folgen kann, rechts die Grammatikstufen. Alle sechs Stufen stehen in
 * jeder Zeile, die passenden sind gefuellt. So enden die Zeilen buendig, und
 * niemand zaehlt vier Stufen gegen sechs.
 */
.leiter-kopf,
.leiter > li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-six);
}

.leiter-kopf {
  padding-bottom: var(--space-three);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.leiter-kopf span:last-child {
  text-align: right;
}

.leiter {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.leiter > li {
  padding-block: var(--space-five);
  border-bottom: 1px solid var(--color-border);
}

.leiter .zahl {
  color: var(--color-accent);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.leiter h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.leiter h3 + p {
  margin: var(--space-half) 0 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* Die sechs Stufen des Referenzrahmens; gefuellt ist, was zur Zeile gehoert. */
.stufen {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stufen li {
  width: 34px;
  padding-block: 5px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-input);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

.stufen .an {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-on-accent);
}

@media (max-width: 640px) {
  .leiter-kopf {
    display: none;
  }

  .leiter > li {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: var(--space-three) var(--space-four);
  }

  .stufen {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------------ Fragen */

.fragen {
  border-top: 1px solid var(--color-border);
}

.fragen details {
  border-bottom: 1px solid var(--color-border);
}

.fragen summary {
  padding-block: var(--space-five);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-five);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s ease;
}

.fragen summary::-webkit-details-marker {
  display: none;
}

.fragen details[open] summary {
  color: var(--color-accent);
}

.fragen summary:hover {
  color: var(--color-accent);
}

/* Ein Plus, das sich beim Oeffnen zum Minus dreht. */
.fragen summary::after {
  width: 14px;
  height: 14px;
  flex: none;
  background:
    linear-gradient(var(--color-accent), var(--color-accent)) center / 100% 1.5px
      no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) center / 1.5px 100%
      no-repeat;
  transition: transform 0.4s var(--ease-out);
  content: "";
}

.fragen details[open] summary::after {
  transform: rotate(135deg);
}

.fragen p {
  margin: 0 0 var(--space-five);
  max-width: 46em;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.fragen p a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fragen details::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.4s var(--ease-out),
    content-visibility 0.4s allow-discrete;
}

.fragen details[open]::details-content {
  block-size: auto;
}

/* -------------------------------------------------------------------- Laden */

.laden {
  padding: var(--space-nine);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  box-shadow: var(--schein);
  text-align: center;
}

.laden h2 {
  font-size: clamp(26px, 3.6vw, 38px);
}

.laden p {
  max-width: 36em;
  margin: var(--space-four) auto var(--space-seven);
  color: var(--color-text-secondary);
  font-size: 17px;
  text-wrap: pretty;
}

/*
 * Das Formular der Warteliste.
 *
 * Ein Feld und ein Knopf, auf einer Zeile, solange Platz ist. Es kommt ohne
 * JavaScript aus: abgeschickt wird an den Worker, geantwortet wird mit einer
 * Umleitung auf eine der drei Hinweisseiten.
 */
.warteliste {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-three);
  margin-bottom: var(--space-four);
}

.warteliste input[type="email"] {
  flex: 1 1 240px;
  max-width: 320px;
  min-height: 48px;
  padding-inline: var(--space-six);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-input);
  color: var(--color-text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.25s ease;
}

.warteliste input[type="email"]::placeholder {
  color: var(--color-text-secondary);
}

.warteliste input[type="email"]:hover {
  border-color: var(--color-accent);
}

/* Die gemeinsame Regel weiter oben rundet jedes Ziel auf --radius-small ab.
 * Beim Feld saehe der Rahmen dann eckiger aus als seine eigene Kante. */
.warteliste input[type="email"]:focus-visible {
  border-radius: var(--radius-pill);
}

/* Ein <button> erbt die Schrift nicht von selbst, ein <a> schon. */
.warteliste button {
  font-family: inherit;
  cursor: pointer;
}

/* Mit dem p davor, denn .laden p setzt Grad und Abstand schon selbst. */
.laden p.warteliste-fein {
  margin-top: 0;
  font-size: 13px;
}

/* Dasselbe Formular als eigene Seite, Ziel der Knoepfe im Kopf und im Hero. */
.not-found .warteliste {
  margin-top: var(--space-seven);
}

.not-found .warteliste-fein {
  max-width: 32em;
  margin: 0 auto;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.warteliste-fein a {
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.warteliste-fein a:hover {
  color: var(--color-accent);
}

/*
 * Zwei Dinge, die auf dem Schirm nicht stehen sollen.
 *
 * `.nur-vorlesen` traegt die Beschriftung des Feldes fuer ein
 * Vorleseprogramm; der Platzhalter allein waere keine.
 *
 * `.koeder` ist die Falle fuer Bots: ein zweites Feld, das ein Mensch nie
 * sieht und deshalb nie ausfuellt. Kommt es gefuellt an, verwirft der Worker
 * die Eingabe still. Das ist die einzige Abwehr, die ohne JavaScript und ohne
 * Bilderraetsel auskommt. Beschriftet ist es trotzdem, denn ein
 * Vorleseprogramm liest es vor und muss sagen koennen, dass es leer bleibt.
 */
.nur-vorlesen,
.koeder {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Das Versprechen unter dem Formular. `auto` haelt es mittig, denn .laden p
 * begrenzt die Breite, und ohne den Seitenrand saesse der Kasten links. */
.laden p.laden-marken {
  margin: 0 auto;
  font-size: 14px;
}

/* -------------------------------------------------------------------- Fuss */

/* Auch der Fuss traegt keine Kante; der Abstand trennt ihn vom letzten Band. */
footer {
  padding-block: var(--space-nine) var(--space-ten);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-five);
}

.footer-brand {
  font-size: 17px;
}

.footer-mark {
  --mark-hoehe: 28px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-six);
}

/* Die Sprachwahl steht vor den Rechtslinks und traegt die aktuelle in Gold. */
.sprachwahl {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-two) var(--space-four);
  padding-bottom: var(--space-five);
  border-bottom: 1px solid var(--color-border);
}

.sprachwahl a {
  color: var(--color-text-secondary);
  font-size: 14px;
  transition: color 0.25s ease;
}

.sprachwahl a:hover {
  color: var(--color-text);
}

.sprachwahl a[aria-current="page"] {
  color: var(--color-accent);
}

.footer-nav a {
  color: var(--color-text-secondary);
  font-size: 14px;
  transition: color 0.25s ease;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--color-text);
}

.footer-inner p {
  margin: 0;
  width: 100%;
  color: var(--color-text-secondary);
  font-size: 13px;
}

/* ------------------------------------------------- Innenseiten und Text */

.page {
  padding-block: var(--space-ten) var(--space-band);
}

/*
 * Die Textspalte beginnt an derselben Kante wie das Zeichen in der Kopfzeile.
 * Vorher stand sie mittig im Fenster und damit gegen alles andere verschoben.
 * Rechts daneben bleibt Platz fuer die Leiste mit den uebrigen Seiten.
 */
.page-inner {
  width: min(calc(100% - var(--space-eight)), var(--content-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 42rem) minmax(0, 1fr);
  column-gap: var(--space-nine);
  align-items: start;
}

.page-text {
  min-width: 0;
}

.page-rail {
  position: sticky;
  top: 92px;
  align-self: start;
  padding-left: var(--space-six);
  border-left: 1px solid var(--color-border);
}

.rail-titel {
  margin: 0 0 var(--space-four);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-three);
}

.rail-nav a {
  color: var(--color-text-secondary);
  font-size: 15px;
  transition: color 0.25s ease;
}

.rail-nav a:hover {
  color: var(--color-text);
}

.rail-nav a[aria-current="page"] {
  color: var(--color-accent);
}

/* Auf schmalen Fenstern traegt die Fusszeile dieselben Wege. */
@media (max-width: 900px) {
  .page-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-rail {
    display: none;
  }
}

/* Die Fehlerseite hat keine Leiste und bleibt mittig. */
.page-inner.not-found {
  display: block;
  width: min(calc(100% - var(--space-eight)), 680px);
}

address {
  font-style: normal;
}

.page-title {
  max-width: none;
  margin-bottom: var(--space-four);
  font-size: clamp(38px, 6vw, 58px);
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.page-lead {
  margin-bottom: var(--space-seven);
  color: var(--color-text-secondary);
  font-size: 18px;
  line-height: 1.65;
}

.stand {
  margin-bottom: var(--space-eight);
  color: var(--color-text-secondary);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notice {
  margin-bottom: var(--space-seven);
  padding: var(--space-five);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  box-shadow: var(--schein);
}

.notice p {
  margin-bottom: var(--space-three);
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.notice p:last-child {
  margin-bottom: 0;
}

.contact-card {
  margin-bottom: var(--space-eight);
  padding: var(--space-six);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  box-shadow: var(--schein);
}

.contact-card p {
  margin-bottom: var(--space-two);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: clamp(20px, 3.6vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
  transition: color 0.25s ease;
}

.contact-card a:hover {
  color: var(--color-accent);
}

.contact-card span {
  display: block;
  margin-top: var(--space-two);
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: none;
}

.platzhalter {
  padding: 1px var(--space-two);
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius-small);
  color: var(--color-accent);
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.prose {
  overflow-wrap: break-word;
  hyphens: auto;
}

.prose h2 {
  margin-top: var(--space-nine);
  margin-bottom: var(--space-four);
  font-size: 26px;
  line-height: 1.2;
}

.prose h3 {
  margin-top: var(--space-seven);
  margin-bottom: var(--space-three);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p,
.prose li,
.prose dd {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.prose p {
  margin-bottom: var(--space-four);
}

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-four);
  padding-left: var(--space-five);
}

.prose li {
  margin-bottom: var(--space-two);
}

.prose dl {
  margin: 0 0 var(--space-four);
}

.prose dt {
  margin-top: var(--space-five);
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
}

.prose dd {
  margin: var(--space-one) 0 0;
  font-size: 15px;
}

.prose strong {
  color: var(--color-text);
}

.not-found {
  padding-block: var(--space-band);
  text-align: center;
}

/* ================================================================ Bewegung
 *
 * Alles darunter ist Zierde. Ohne Unterstuetzung im Browser und bei
 * `prefers-reduced-motion: reduce` steht die Seite still und vollstaendig da.
 */

@media (prefers-reduced-motion: no-preference) {
  /* Einzug beim Laden: Kopfzeile, Satz, Knopf, Kurse, nacheinander. */
  .hero-copy > *,
  .kurse > * {
    animation: einzug var(--dauer) var(--ease-out) backwards;
  }

  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.23s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
  .kurse > *:nth-child(1) { animation-delay: 0.4s; }
  .kurse > *:nth-child(2) { animation-delay: 0.48s; }
  .kurse > *:nth-child(3) { animation-delay: 0.56s; }

  .kurs-liste li {
    animation: einzug 0.6s var(--ease-out) backwards;
  }

  .kurs-liste li:nth-child(1) { animation-delay: 0.5s; }
  .kurs-liste li:nth-child(2) { animation-delay: 0.56s; }
  .kurs-liste li:nth-child(3) { animation-delay: 0.62s; }
  .kurs-liste li:nth-child(4) { animation-delay: 0.68s; }
  .kurs-liste li:nth-child(5) { animation-delay: 0.74s; }
  .kurs-liste li:nth-child(6) { animation-delay: 0.8s; }
  .kurs-liste li:nth-child(7) { animation-delay: 0.86s; }

  /* Ein Lichtstreifen laeuft in Abstaenden ueber das goldene Wort. */
  .hero h1 em {
    background: linear-gradient(
      100deg,
      var(--color-accent) 0%,
      var(--color-accent) 36%,
      #fff3dd 48%,
      var(--color-accent) 60%,
      var(--color-accent) 100%
    );
    background-clip: text;
    background-size: 260% 100%;
    background-position: 100% 0;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: schimmer 8s var(--ease-out) 1.4s infinite;
  }

  @keyframes schimmer {
    0%,
    62% {
      background-position: 100% 0;
    }

    88%,
    100% {
      background-position: 0 0;
    }
  }

  .availability span {
    animation: puls 3.4s ease-in-out infinite;
  }

  @keyframes puls {
    0%,
    100% {
      box-shadow: 0 0 0 4px rgba(218, 175, 114, 0.14);
    }

    50% {
      box-shadow: 0 0 0 8px rgba(218, 175, 114, 0.04);
    }
  }

  @keyframes einzug {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
  }

}

/*
 * Vom Scrollen getrieben: kein Beobachter, kein Skript. Wo der Browser das
 * nicht kennt, steht der Abschnitt einfach sofort da.
 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band-kopf,
    .schritte li,
    .leiter > li,
    .fragen details,
    .laden,
    .geraet {
      animation: auftauchen linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }

    /* Die Aufnahmen ziehen unterschiedlich schnell mit, das gibt Tiefe. */
    .geraet:nth-child(odd) img {
      animation: schweben linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    .geraet:nth-child(even) img {
      animation: schweben-tief linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    /* Die Kante wird erst gezogen, wenn die Seite gescrollt ist. */
    .site-header::after {
      animation: kopf-linie linear both;
      animation-timeline: scroll(root);
      animation-range: 0 120px;
    }

    /* Der Strich vor der Rubrik wird gezogen, wenn der Abschnitt kommt. */
    .eyebrow::before {
      animation: strich linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 25%;
    }

    /* Die Aufnahmen kommen leicht gekippt herein und stellen sich auf. */
    .geraet {
      animation-name: vitrine-auftauchen;
    }

  }

  @keyframes strich {
    from {
      transform: scaleX(0);
    }

    to {
      transform: scaleX(1);
    }
  }

  @keyframes vitrine-auftauchen {
    from {
      opacity: 0;
      transform: translateY(38px) rotateX(10deg) scale(0.96);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes auftauchen {
    from {
      opacity: 0;
      transform: translateY(26px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes schweben {
    from {
      transform: translateY(18px);
    }

    to {
      transform: translateY(-18px);
    }
  }

  @keyframes schweben-tief {
    from {
      transform: translateY(32px);
    }

    to {
      transform: translateY(-32px);
    }
  }

  @keyframes kopf-linie {
    from {
      opacity: 0;
    }
  }
}

/* =========================================================== Seitenwechsel
 *
 * Der Weg von der Startseite zum Impressum blendet, statt zu springen. Das
 * kostet keine Zeile JavaScript: der Browser haelt die alte Seite als Bild
 * fest, bis die neue steht. Wo er das nicht kennt, wechselt die Seite wie
 * immer, ohne Fehler und ohne Wartezeit.
 */

@view-transition {
  navigation: auto;
}

/* Ohne Bewegungswunsch bleibt es beim reinen Blenden des Browsers, nur kuerzer. */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.26s;
  animation-timing-function: var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: seite-hinaus 0.2s var(--ease-out) both;
  }

  ::view-transition-new(root) {
    animation: seite-herein 0.34s var(--ease-out) both;
  }

  @keyframes seite-hinaus {
    to {
      opacity: 0;
    }
  }

  @keyframes seite-herein {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
  }
}
