/* Konzept 07 — „Nachtlinie" (die Linie aus Licht)
   Nachttinte als Grund, die eine Linie in Licht gezeichnet, Gold nur für
   Markenzeichen, Qualifikation und Siegel. Dunkle Galeriewand, keine Mystik. */

:root {
  --night: #10131A;          /* the ground: night ink */
  --night-deep: #0B0D12;     /* the deepest corners */
  --panel: #181C24;          /* lifted surfaces */
  --light: #F2EDE2;          /* display type, the line */
  --body: #B3B9C2;           /* body copy — 9.4:1 on --night */
  --dilute: #8B9099;         /* labels, meta — 5.8:1 on --night */
  --gold: #B99A5B;           /* 6.9:1 on --night; brand, ZPP, credentials, seal */
  --hairline: rgba(178, 190, 208, .155);
  --hairline-soft: rgba(178, 190, 208, .09);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --serif: "EB Garamond", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

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

html { scroll-behavior: smooth; background: var(--night); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--night);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(185, 154, 91, .28); color: var(--light); }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- fixed layers ---------- */

.mottle {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: .9;
}
#ink {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 1;
  pointer-events: none;
}
.grain {
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none;
  opacity: .38;
}
.vignette {
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 92% 74% at 50% 34%, rgba(126, 152, 190, .055), transparent 62%),
    radial-gradient(ellipse 128% 108% at 50% 46%, transparent 52%, rgba(4, 5, 8, .72) 100%);
}
main, footer { position: relative; z-index: 3; }

/* ---------- das Marken-Intro: der Ring aus Licht ---------- */
/* Der Ladevorgang IST das Logo. Die Auflage trägt denselben Nachtgrund wie die
   Seite, damit die Freigabe ein Auflösen ist und kein Schnitt. Der Kreis selbst
   wird auf `#intro-ring` gezeichnet, in derselben Lichttusche wie die Linie. */

.intro-bg {
  position: fixed; inset: 0; z-index: 40;
  background: var(--night);
  transition: opacity .78s var(--ease);
}
.intro-bg > * { position: absolute; inset: 0; pointer-events: none; }
.intro-mottle { opacity: .9; }
.intro-grain { opacity: .38; }
.intro-vig {
  background:
    radial-gradient(ellipse 92% 74% at 50% 34%, rgba(126, 152, 190, .055), transparent 62%),
    radial-gradient(ellipse 128% 108% at 50% 46%, transparent 52%, rgba(4, 5, 8, .72) 100%);
}
.intro-ring {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 41;
  pointer-events: none;
}
.intro-lock {
  position: fixed; inset: 0; z-index: 42;
  display: grid;
  place-items: center;
  padding: 0 clamp(1.3rem, 5vw, 3.4rem);
  pointer-events: none;
  transition: opacity .42s var(--ease);
}
/* der Kreis bekommt seinen Platz im Satz, die Schrift steht daneben wie im
   Logo. `.intro-slot` bleibt leer, sie ist nur das vermessene Feld für den
   Canvas-Ring. */
.intro-row {
  --ring: clamp(134px, 19.5vmin, 212px);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 2.1rem);
}
.intro-slot { width: var(--ring); height: var(--ring); flex: 0 0 auto; }
.intro-word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: calc(var(--ring) * .55);
  line-height: 1;
  white-space: nowrap;
  color: var(--light);
  letter-spacing: .07em;
  opacity: 0;
  transform: translateY(13px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), letter-spacing 1.2s var(--ease);
}
.intro-word.in { opacity: 1; transform: none; letter-spacing: .035em; }
.intro-bg.gone, .intro-lock.gone { opacity: 0; }

/* Übersprungen: die Freigabe bleibt eine Freigabe, nur kürzer. */
body.intro-skip .intro-bg,
body.intro-skip .intro-lock { transition-duration: .2s; }
body.intro-skip [data-appear],
body.intro-skip .readout,
body.intro-skip .rail { transition-duration: .18s; }

@media (max-width: 900px) {
  .intro-row {
    flex-direction: column;
    gap: clamp(1.1rem, 3.4vw, 1.7rem);
    --ring: clamp(108px, 30vw, 148px);
  }
  .intro-word { font-size: clamp(1.8rem, 8.4vw, 2.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .intro-bg, .intro-lock, .intro-word { transition: none; }
  .intro-word { opacity: 1; transform: none; letter-spacing: .035em; }
}

/* ---------- appear choreography ---------- */

[data-appear] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.15s var(--ease), transform 1.15s var(--ease);
}
[data-appear].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-appear] { opacity: 1; transform: none; transition: none; }
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem clamp(1.3rem, 4vw, 3.2rem) 1.5rem;
  background: linear-gradient(to bottom, rgba(16, 19, 26, .94) 34%, rgba(16, 19, 26, .72) 68%, rgba(16, 19, 26, 0));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: .035em;
  color: var(--light);
  text-decoration: none;
  padding: .5rem 0;
}
.brand-mark {
  width: 7px; height: 7px;
  background: var(--gold);
  display: inline-block;
  flex: 0 0 auto;
}
.nav-links { display: flex; gap: 2.1rem; }
.nav-links a, .nav-cta {
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dilute);
  text-decoration: none;
  padding: .9rem 0;
  transition: color .4s var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--light); }
.nav-cta {
  color: var(--light);
  border-bottom: 1px solid var(--hairline);
  transition: border-color .4s var(--ease);
}
.nav-cta:hover, .nav-cta:focus-visible { border-color: var(--light); }

/* ---------- margin rail + section readout (observatory precision) ---------- */

.rail {
  position: fixed;
  right: .95rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(139, 144, 153, .6);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.rail.in { opacity: 1; }
.readout {
  position: fixed;
  left: clamp(1.3rem, 4vw, 3.2rem);
  bottom: 1.5rem;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: .85rem;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(139, 144, 153, .78);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.readout.in { opacity: 1; }
.readout-bar {
  width: 62px; height: 1px;
  background: rgba(178, 190, 208, .16);
  display: block;
  position: relative;
}
.readout-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--gold);
  display: block;
  transition: width .5s var(--ease);
}
.readout-name { color: rgba(178, 185, 194, .8); }

/* ---------- shared type ---------- */

.label {
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dilute);
  margin-bottom: 1.7rem;
}
.label.gold { color: var(--gold); }
.label.centered { text-align: center; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--light);
  letter-spacing: -.008em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  line-height: 1.1;
}
h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.06rem;
  line-height: 1.4;
  letter-spacing: .002em;
  color: var(--light);
  margin-bottom: .5rem;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.3rem, 5vw, 3.4rem);
}

.text-link {
  color: var(--light);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 237, 226, .32);
  padding-bottom: .12em;
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.text-link:hover, .text-link:focus-visible { border-color: var(--gold); color: var(--gold); }

.more { margin-top: 2.6rem; font-size: .93rem; }

.section-intro {
  max-width: 32em;
  margin-top: 1.5rem;
}

.sec-head { max-width: 30em; }

/* ---------- 01 hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0 7rem;
  position: relative;
}
.hero-wrap { width: 100%; }
.hero .label { margin-bottom: 2.6rem; }
.hero h1 {
  font-size: clamp(2.85rem, 7.3vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -.017em;
  width: fit-content;
  max-width: 100%;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--light);
}
.hero-below {
  margin-top: clamp(3.4rem, 8vh, 6.2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21.5rem);
  gap: clamp(2.4rem, 6vw, 5.5rem);
  align-items: end;
}
.lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.85vw, 1.45rem);
  line-height: 1.56;
  color: #C7CCD4;
  max-width: 30em;
}
.hero-meta dl {
  border-top: 1px solid var(--hairline-soft);
}
.hero-meta dl > div {
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  gap: .8rem;
  padding: .72rem 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.hero-meta dt {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dilute);
  padding-top: .28rem;
}
.hero-meta dd { font-size: .82rem; line-height: 1.5; color: var(--body); }
.hero-ctas {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}
.btn-ghost {
  display: inline-block;
  padding: .95rem 1.85rem;
  border: 1px solid rgba(242, 237, 226, .38);
  color: var(--light);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .015em;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--light);
  background: rgba(242, 237, 226, .07);
}
.link-quiet {
  color: var(--dilute);
  font-size: .875rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: .5rem 0;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.link-quiet:hover, .link-quiet:focus-visible { color: var(--light); border-color: var(--hairline); }

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  right: clamp(1.3rem, 5vw, 3.4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(139, 144, 153, .75);
}
.hint-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(178, 190, 208, .5), transparent);
  animation: hint 3.6s var(--ease) infinite;
  transform-origin: top;
}
@keyframes hint {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  75% { transform: scaleY(1); opacity: 0; }
  100% { transform: scaleY(0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hint-line { animation: none; opacity: .6; } }

/* ---------- 02 methode ---------- */

.method { padding: 22vh 0 15vh; }
/* the headline is cut out of the light: it only arrives once the swell is
   behind it, so it is dark from the start, with a soft luminous rim. */
.knockout {
  font-size: clamp(2.3rem, 5.1vw, 4.6rem);
  line-height: 1.06;
  display: inline-block;
  padding: .2em .12em;
  color: #0C0F15;
  text-shadow: 0 0 34px rgba(246, 241, 229, .55), 0 0 10px rgba(246, 241, 229, .5);
}
.method-cols {
  margin-top: clamp(3.4rem, 7vw, 5.6rem);
  margin-left: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  max-width: 860px;
}
.method-cols p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.2em;
  line-height: .8;
  float: left;
  padding: .07em .13em 0 0;
  color: var(--light);
}
.method .more { margin-left: auto; max-width: 860px; }

/* ---------- 03 kurse ---------- */

.courses { padding: 6vh 0 11vh; }
.cards {
  margin-top: clamp(3rem, 6vw, 4.6rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.8rem, 3.6vw, 3.4rem);
}
.card {
  border-top: 1px solid var(--hairline);
  padding-top: 1.7rem;
}
/* the three cards arrive together, a beat apart, so the section always
   holds as a finished still frame */
.card:nth-child(2) { transition-delay: .13s; }
.card:nth-child(3) { transition-delay: .26s; }
@media (prefers-reduced-motion: reduce) { .card { transition-delay: 0s !important; } }
.card-num {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .22em;
  color: var(--dilute);
  display: block;
  margin-bottom: 2.1rem;
}
.card p { font-size: .93rem; margin-bottom: 1.6rem; }
.card .text-link { font-size: .875rem; }

/* ---------- 04 zpp ---------- */

.zpp { padding: 4vh 0 10vh; }
.zpp-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 9vw, 8rem);
  align-items: start;
}
.zpp-head { position: sticky; top: 24vh; }
.zpp-steps { list-style: none; }
.zpp-step {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 1.1rem;
  padding: 1.55rem 0;
  border-top: 1px solid var(--hairline-soft);
}
.zpp-step:last-child { border-bottom: 1px solid var(--hairline-soft); }
.step-num {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .2em;
  color: var(--dilute);
  padding-top: .42rem;
}
.zpp-step p { font-size: .93rem; }
.disclaimer {
  margin-top: 2.8rem;
  font-size: .78rem;
  line-height: 1.78;
  color: var(--dilute);
  max-width: 40em;
}

/* ---------- 05 ensō ---------- */

.enso {
  padding: 9vh 0 7vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.enso .label { margin-bottom: 0; }
.enso-wrap {
  width: min(600px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 3.4rem auto 0;
}
.enso-statement {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.9vw, 2.3rem);
  line-height: 1.52;
  text-align: center;
  color: var(--light);
  max-width: 78%;
}

/* ---------- 06 lehrer ---------- */

.about { padding: 7vh 0 11vh; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}
.about-text { max-width: 34em; margin-top: 2rem; }
.about-quote {
  margin-top: 3rem;
  padding-left: 1.7rem;
  border-left: 1px solid rgba(242, 237, 226, .4);
}
.about-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.28rem, 2vw, 1.6rem);
  line-height: 1.44;
  color: var(--light);
}
.about-creds {
  background: linear-gradient(170deg, rgba(24, 28, 36, .92), rgba(24, 28, 36, .52));
  border: 1px solid var(--hairline-soft);
  padding: clamp(1.6rem, 2.6vw, 2.3rem);
}
.about-creds .label { margin-bottom: 1.3rem; }
.about-creds ol { list-style: none; }
.about-creds li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: .5rem;
  padding: .95rem 0;
  border-top: 1px solid var(--hairline-soft);
  font-size: .875rem;
  line-height: 1.55;
}
.cred-num {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .18em;
  color: var(--gold);
  padding-top: .25rem;
}

/* ---------- 07 abschluss ---------- */

.closing {
  padding: 15vh clamp(1.3rem, 5vw, 3.4rem) 17vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.closing h2 { font-size: clamp(2.2rem, 4.5vw, 3.9rem); max-width: 15em; }
.closing-text { max-width: 33em; margin-top: 1.7rem; }
.cta-row {
  margin-top: 3.2rem;
  display: flex;
  align-items: center;
  gap: clamp(3rem, 7vw, 5.5rem);
}
.btn-primary {
  display: inline-block;
  background: var(--light);
  color: var(--night);
  text-decoration: none;
  padding: 1.1rem 2.4rem;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .015em;
  box-shadow: 0 0 44px rgba(242, 237, 226, .14);
  transition: box-shadow .45s var(--ease), background .45s var(--ease);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: #fff;
  box-shadow: 0 0 62px rgba(242, 237, 226, .26);
}
.closing-alt { margin-top: 2.6rem; font-size: .86rem; color: var(--dilute); }

.seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  opacity: 0;
  transform: scale(.92) rotate(-5deg);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.seal.in { opacity: 1; transform: rotate(-2.5deg); }
@media (prefers-reduced-motion: reduce) { .seal { opacity: 1; transform: rotate(-2.5deg); transition: none; } }
.seal svg { width: 72px; height: 72px; display: block; }
.seal-glyph {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif SC", serif;
  font-size: 30px;
  fill: #10131A;
  text-anchor: middle;
}
.seal-caption {
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--dilute);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--hairline-soft);
  padding: 3.4rem clamp(1.3rem, 5vw, 3.4rem) 4rem;
  text-align: center;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .035em;
  color: var(--light);
}
.foot-line { margin-top: .5rem; font-size: .78rem; color: var(--dilute); }
.foot-links { margin-top: 1.6rem; display: flex; justify-content: center; gap: 2rem; }
.foot-links a {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dilute);
  text-decoration: none;
  padding: .7rem 0;
  transition: color .4s var(--ease);
}
.foot-links a:hover, .foot-links a:focus-visible { color: var(--light); }
.foot-note {
  margin-top: 1.8rem;
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .18em;
  color: rgba(139, 144, 153, .62);
}

/* ---------- tablet ---------- */

@media (max-width: 1080px) {
  .rail { display: none; }
  .hero-below { grid-template-columns: 1fr; align-items: start; }
  .hero-meta { max-width: 26rem; }
  .zpp-grid { grid-template-columns: 1fr; gap: 3.2rem; }
  .zpp-head { position: static; }
  .about-grid { grid-template-columns: 1fr; gap: 3.2rem; }
  .about-creds { max-width: 34rem; }
}

/* ---------- mobile ---------- */

@media (max-width: 779px) {
  body { font-size: .975rem; }
  .nav { padding: 1.1rem 1.2rem; }
  .nav-links { display: none; }
  .readout { display: none; }

  .hero { padding: 7rem 0 6rem; }
  .hero h1 { max-width: 100%; }
  .hero-below { margin-top: 4.6rem; }
  .scroll-hint { display: none; }

  .method { padding: 16vh 0 11vh; }
  .method-cols { grid-template-columns: 1fr; gap: 1.4rem; }

  .courses { padding: 6vh 0 11vh; }
  .cards { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 1.9rem 0 2rem; }
  .card:last-child { border-bottom: 1px solid var(--hairline); }
  .card-num { margin-bottom: 1rem; }

  .zpp { padding: 4vh 0 11vh; }
  .zpp .wrap { padding-left: 2.7rem; }
  .zpp-step { grid-template-columns: 2.6rem 1fr; gap: .8rem; }

  .enso { padding: 7vh 0 6vh; }
  .enso-statement { max-width: 84%; }

  .about { padding: 5vh 0 11vh; }
  .about .wrap { padding-right: 2.6rem; }

  .closing { padding: 12vh 1.3rem 13vh; }
  .cta-row { flex-direction: column; gap: 3rem; }
}
