/* Kopfzeile, Türen und Szenen der Startseite; die Türform gilt auch auf den Unterseiten. Gehört zu fahrt.js und ruhe.js. */

/* Kopfzeile: oben nur Logo und Kontakt-Knopf */
html.np nav > ul { display: none !important; }
html.np nav { grid-template-columns: 1fr auto !important; }
@media (max-width: 1023px) {
  html.np nav { padding: 0 16px !important; }
  html.np nav .cta { height: 44px !important; }
}
@media (max-width: 400px) {
  html.np nav .cta { padding: 0 12px !important; gap: 8px !important; }
}

/* Imprint · Privacy: klein und leise in der Ecke, immer erreichbar */
.np-recht {
  position: fixed; z-index: 22; right: var(--gut); bottom: 0; margin: 0;
  display: flex; align-items: center; gap: 9px;
  font: 400 12px/1 var(--sans); letter-spacing: .01em; color: var(--ink-2);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s;
}
html.np-kopf .np-recht { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
html.np-fuss .np-recht { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.np-recht a { padding: 11px 0; color: inherit; text-decoration: none; text-shadow: var(--hof); transition: color .3s; }
.np-recht a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: from-font; }
.np-recht a:focus-visible { outline: 1px solid rgba(236,234,228,.7); outline-offset: -6px; color: var(--ink); }
.np-recht i { font-style: normal; opacity: .6; }
@media (max-width: 1023px) { .np-recht { right: 16px; } }
@media (max-width: 759px) {
  .np-recht { bottom: env(safe-area-inset-bottom, 0px); }
  .np-recht a { padding: 17px 0 15px; }
}

/* Fahrt durch den Film: Texte der Zwischenkapitel schweigen, der helle Staub am Autor wird leicht abgedunkelt */
#np-dunkel { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; }
html.np-flug main > section:not(.np-ziel):not(.np-quelle),
html.np-flug:not(.np-autor) .bk-foto,
html.np-flug:not(.np-autor) #reiseFoto,
html.np-flug #hinweis { visibility: hidden !important; }

/* ---------- Türen: eine Form für die ganze Seite ----------
   Die Tür trägt als eigenes Element: Rolle --type-title (auf der Startseite Serif, 22–27 px), normale Schreibweise, Linie darunter, Pfeil.
   Kein Rahmen, keine Fläche: sie bleibt ein Verweis, kein zweiter Knopf neben „Start a conversation“. */
html.np .mehr, html.bk-orte .mehr {
  gap: 14px; padding: 6px 0 8px; margin-top: 26px;
  font: var(--type-title); letter-spacing: var(--track-title); text-transform: none; text-shadow: var(--hof);
}
/* Eine Größe überall: 22 px am Rechner, 19 px am Handy (eigene Größe, einen Schritt unter --type-title) */
html.np .mehr, html.bk-orte .mehr { font-size: clamp(19px, 1.5vw, 22px); }
html.np .mehr .pf, html.bk-orte .mehr .pf { font: 400 .78em/1 var(--sans); }
html.np .mehr::after, html.bk-orte .mehr::after { right: calc(.82em + 14px); background: rgba(236,234,228,.5); }
html.np #sz5 .mehr, html.np .bk-seite-autor .mehr { margin-top: 20px; }
/* Initiativen: die Karten darunter hängen an den Wesen der Welt und dürfen nicht wandern (der Platz der Tür bleibt 49 px hoch) */
html.np #sz8 .mehr, html.np .bk-seite-initiativen .mehr { margin-top: 12px; margin-bottom: calc(23px - 1.2em); }

/* ---------- Szenen Methode und Fall: jeder Halt nach demselben Bauplan. Gehört zu ruhe.js. ----------
   Jeder Halt: Name (--type-label) · großer Satz (--type-display, immer zwei Zeilen) · eine Zeile in Serif · Tür.
   Erster Halt: Kapitelname als Beschriftung, Kapitelüberschrift (h2) als großer Satz, ein Halbsatz als Zeile.
   Name und Satz stehen in beiden Kapiteln am selben Ort. Die Maße --bp-live, --bp-h, --bp-o setzt ruhe.js in ganzen Pixeln. */
html.ruhe:not(.ohne-gl) {
  --bp-l: clamp(24px, 6.5vw, 110px);
  --bp-b: calc(var(--size-display) * 9.7);
  --bp-name: 36px;
  --bp-satz: calc(var(--size-display) * 2.08);
  --bp-live: 82px;
  --bp-zeile: calc(20px + var(--bp-live));
  --bp-h: calc(var(--bp-name) + var(--bp-satz) + var(--bp-zeile) + 76px);
  --bp-o: calc(50% - var(--bp-h) / 2);
}
html.ruhe:not(.ohne-gl) .mth .nr,
html.ruhe:not(.ohne-gl) .mth .einl,
html.ruhe:not(.ohne-gl) .mth .leiste,
html.ruhe:not(.ohne-gl) .mth .schichten,
html.ruhe:not(.ohne-gl) .fl .vorz,
html.ruhe:not(.ohne-gl) .fl .lead {
  position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; opacity: 1 !important;
}
html.ruhe:not(.ohne-gl) .mth .launch .nr,
html.ruhe:not(.ohne-gl) .mth .launch .nm { display: none; }

html.ruhe:not(.ohne-gl) .mth .spalte { left: var(--bp-l); top: var(--bp-o); width: var(--bp-b); height: 0; }
html.ruhe:not(.ohne-gl) .fl .spalte { left: var(--bp-l); top: var(--bp-o); width: var(--bp-b); height: var(--bp-h); transform: none; }
html.ruhe:not(.ohne-gl) .fl .halte { position: absolute; left: 0; top: 0; width: 100%; height: 0; margin: 0; }
html.ruhe:not(.ohne-gl) .mth .stufe,
html.ruhe:not(.ohne-gl) .fl .stufe { left: 0; top: 0; width: 100%; }
html.ruhe:not(.ohne-gl) .mth .stufe { transform: none; }

/* Name der Stufe. Launch Moment hat dieselbe Form: der Name ist die Beschriftung, der Satz darunter der große Satz. */
html.ruhe:not(.ohne-gl) .mth .nm,
html.ruhe:not(.ohne-gl) .fl .nm,
html.ruhe:not(.ohne-gl) .mth .launch .satz {
  height: 14px; margin: 0 0 22px; font: var(--type-label); font-style: normal; letter-spacing: var(--track-label); text-transform: uppercase;
  white-space: nowrap; color: var(--ink-2); text-shadow: var(--hof);
}
html.ruhe:not(.ohne-gl) .mth .satz,
html.ruhe:not(.ohne-gl) .fl .satz,
html.ruhe:not(.ohne-gl) .mth .launch .live {
  position: static; width: auto; max-width: 8.8em; margin: 0; font: var(--type-display); letter-spacing: var(--track-display);
  color: var(--ink); text-wrap: balance; text-shadow: var(--hof);
}
/* Die Zeile unter dem großen Satz: Serif 21 px in voller Tinte, wie der zweite Satz der übrigen Kapitel */
html.ruhe:not(.ohne-gl) .mth .stufe:not(.launch) .live {
  position: static; width: auto; max-width: min(100%, 26em); margin: 16px 0 0; font: 400 21px/1.38 var(--font-serif); letter-spacing: -.003em;
  color: var(--ink); text-wrap: pretty; text-shadow: var(--hof);
}
/* Launch Moment: die Beschriftung in derselben Tinte wie an den anderen Halten */
html.ruhe:not(.ohne-gl) .mth .launch .satz { color: rgba(236,234,228,.86); }
/* Erster Halt: die Kapitelüberschrift ist länger als die Sätze der Stufen. Sie darf die ganze Spalte nutzen, damit sie in zwei Zeilen bleibt. */
html.ruhe:not(.ohne-gl) .mth .stufe[data-k="0"] .satz,
html.ruhe:not(.ohne-gl) .fl .stufe[data-k="0"] .satz { max-width: 100%; text-wrap: balance; }
/* Tür: an jedem Halt eines Kapitels an derselben Stelle, unter der Zeile */
html.ruhe:not(.ohne-gl) body .mth .fuss { display: block !important; left: var(--bp-l); right: auto; bottom: auto; top: calc(var(--bp-o) + var(--bp-name) + var(--bp-satz) + var(--bp-zeile)); }
html.ruhe:not(.ohne-gl) .fl .mehr { position: absolute; left: 0; top: calc(var(--bp-name) + var(--bp-satz) + var(--bp-zeile)); }
html.ruhe:not(.ohne-gl) .mth .fuss .mehr,
html.ruhe:not(.ohne-gl) .fl .mehr { margin-top: 26px; white-space: nowrap; }
@media (max-width: 759px) {
  html.ruhe:not(.ohne-gl) { --bp-b: calc(100vw - 48px); --bp-o: calc(100% - var(--bp-h) - 64px - env(safe-area-inset-bottom, 0px)); }
  html.ruhe:not(.ohne-gl) .mth .spalte, html.ruhe:not(.ohne-gl) .fl .spalte { right: auto; bottom: auto; }
  html.ruhe:not(.ohne-gl) .mth .stufe:not(.launch) .live { font-size: 19px; margin-top: 12px; }
  html.ruhe:not(.ohne-gl) .mth .fuss .mehr, html.ruhe:not(.ohne-gl) .fl .mehr { margin-top: 18px; }
}

/* Fall: dieselbe Zeile wie in der Methode. In der Fassung ohne WebGL bleibt sie unsichtbar. */
.fl .stufe .live { display: none; }
html.ruhe:not(.ohne-gl) .fl .stufe .live {
  display: block; position: static; width: auto; max-width: min(100%, 26em); margin: 16px 0 0; font: 400 21px/1.38 var(--font-serif); letter-spacing: -.003em;
  color: var(--ink); text-wrap: pretty; text-shadow: var(--hof);
}
@media (max-width: 759px) { html.ruhe:not(.ohne-gl) .fl .stufe .live { font-size: 19px; margin-top: 12px; } }

/* Zweite Tür am Author-Halt (zum Team): hauptseite.js blendet nur die erste Tür ein; die zweite folgt ihr über deren Zustand. */
html.np :is(#sz5, .bk-seite-autor) .mehr + .mehr { margin-top: 2px; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
html.np :is(#sz5, .bk-seite-autor) .mehr[style*="opacity: 1"] + .mehr { opacity: 1; pointer-events: auto; }

/* Logo-Link nur so breit wie das Logo: sonst füllt er die Spalte und macht die leere Kopfzeile zum Link nach Hause. */
html.np nav .marke, html.np #nav .marke { justify-self: start; }
