/* ════════════════════════════════════════════════════════════════
   Hendrik Heidsiek — Visitenkarte
   Drei Ebenen hinter einem Segment im Kopf: Profil (hell, sachlich),
   Off-Grid (dunkel, redaktionell) und Apps (dunkel, sachlich).
════════════════════════════════════════════════════════════════ */

:root {
  --bg:            #fafaf9;
  --ink:           #0a0a0a;
  --ink-muted:     #6b6b6b;
  --ink-faint:     #b0b0b0;
  --rule:          #e8e8e5;
  --accent:        #0284c7;
  --accent-hover:  #0369a1;

  /* Off-Grid-Palette */
  --og-bg:         #0e1419;
  --og-ink:        #e8dfd0;
  --og-ink-bright: #f1eadc;
  --og-accent:     #ff7a3d;

  --font-sans:     'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-serif:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --grid-max:      1200px;
  --header-h:      56px;
  --space-xs:      0.5rem;
  --space-s:       1rem;
  --space-m:       2rem;
  --space-l:       4rem;
  --space-xl:      3rem;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

/* Sichtbar nur für Screenreader — bis jemand hintabbt. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
body:not([data-layer="profil"]) :focus-visible { outline-color: var(--og-accent); }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--space-m);
}

/* ─── HEADER ─────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.4s ease, border-color 0.4s ease;
}

/* Drei benannte Bereiche statt Flex: unter 640 px rutscht das Segment in
   eine eigene Zeile, ohne dass das Markup eine Zwischenebene braucht. */
.header-inner {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--space-m);
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "mark lang nav";
  align-items: center;
  gap: 12px;
}

.wordmark { grid-area: mark; }
#lang-toggle { grid-area: lang; }
.layer-nav { grid-area: nav; }

.wordmark {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.4s ease;
}


/* ─── EBENEN-SEGMENT ─────────────────────────────────────── */
.layer-nav {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.layer-nav button {
  background: none;
  border: none;
  border-right: 1px solid var(--rule);
  padding: 7px 12px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.layer-nav button:last-child { border-right: none; }
.layer-nav button:hover { color: var(--accent); }
.layer-nav button[aria-current] { background: var(--ink); color: var(--bg); }

/* ─── SPRACHSCHALTER ─────────────────────────────────────── */
#lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}
#lang-toggle:hover { border-color: var(--accent); }

#lang-toggle .lang-opt {
  padding: 6px 11px;
  color: var(--ink-muted);
  transition: background 0.2s, color 0.2s;
}
#lang-toggle .lang-opt.active {
  background: var(--ink);
  color: var(--bg);
}

/* ─── EBENEN-WECHSEL ─────────────────────────────────────── */
/* visibility (nicht nur opacity) nimmt die verblasste Ebene aus der
   Tab-Reihenfolge — sonst tabbt man durch unsichtbare Links. */
#site-content {
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

body:not([data-layer="profil"]) #site-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s 0.5s;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--rule);
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-m);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 800px;
  text-wrap: pretty;
}

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

.hero-sub {
  margin-top: var(--space-m);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 560px;
}

/* ─── FEHLERSEITE ────────────────────────────────────────── */
/* Die 404 hat keinen fixierten Kopf, deshalb ohne dessen Höhe. */
.hero--error { border-bottom: none; padding-top: var(--space-xl); }
.hero--error .hero-sub + .hero-sub { margin-top: var(--space-s); }
.error-actions { margin-top: var(--space-m); }

/* ─── ABSCHNITTE ─────────────────────────────────────────── */
section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--rule);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-l);
}

/* ─── OPERATING PRINCIPLES ───────────────────────────────── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-l);
}

.principle {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0 var(--space-s);
  align-items: start;
}

.principle-num {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  padding-top: 0.2em;
  font-feature-settings: 'tnum';
}

.principle-title {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.principle-body {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-muted);
  grid-column: 2;
}

/* ─── CORE DOMAINS ───────────────────────────────────────── */
section.section-domains { padding-bottom: var(--space-m); }

.domain-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-m);
  padding: var(--space-m) 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.domain-row:first-child { border-top: 1px solid var(--rule); }
.domain-row:last-child { border-bottom: none; padding-bottom: 0; }

.domain-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.domain-body {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ─── CONNECT ────────────────────────────────────────────── */
.connect-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.connect-text {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 56ch;
  text-wrap: pretty;
}
.connect-text strong { color: var(--ink); font-weight: 500; }

.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.connect-link:hover { background: var(--ink); color: var(--bg); }

.connect-link-arrow { font-size: 0.9rem; transition: transform 0.2s; }
.connect-link:hover .connect-link-arrow { transform: translateX(3px); }

/* ─── ÜBERGANG ZUR OFF-GRID-EBENE ────────────────────────── */
/* Kein zweiter Rahmenbutton unter dem von Connect: zwei gleich große
   Schaltflächen untereinander lesen sich als zwei gleichrangige
   Handlungsaufforderungen, und der Kontakt verliert dabei. Stattdessen
   ein großes Wort mit Pfeil, links im Satzspiegel — die Geste für
   "nächstes Kapitel", nicht für "auch noch klicken".

   Rechtsbündig, weil der Pfeil nach rechts zeigt: links im Satzspiegel
   deutet er ins Leere, am rechten Rand aus der Seite heraus. Damit
   steht er außerdem auf einer Kante mit dem LinkedIn-Button darüber.

   Die Linie läuft über die volle Breite wie jede andere Trennlinie,
   die Klickfläche endet aber hinter dem Pfeil. Deshalb der Rahmen als
   eigenes Element: sonst leuchtet der Link auf, wenn der Zeiger einen
   halben Bildschirm daneben steht. */
.doorway {
  display: flex;
  justify-content: flex-end;
  padding: var(--space-l) 0;
  border-bottom: 1px solid var(--rule);
}

.doorway-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: clamp(1rem, 2vw, 1.5rem);
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

/* Die Bahn des Kometen. Sie wird von site.js beim Ankommen am Seitenende
   eingehängt und nach einer Runde wieder entfernt — hier steht nur, wie
   sie liegt und aussieht, nicht wie lange. */
.doorway-komet {
  position: absolute;
  /* Ein <svg> ist ein ersetztes Element: Mit inset und width:auto bleibt
     es auf seiner Eigengröße von 300x150 stehen, statt den Kasten zu
     füllen. Deshalb Höhe und Breite ausdrücklich rechnen. */
  top: -0.7rem;
  left: -1.15rem;
  width: calc(100% + 2.3rem);
  height: calc(100% + 1.4rem);
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: var(--og-accent);
  stroke-linecap: round;
}

.doorway-word {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}

.doorway-arrow {
  font-size: clamp(1.15rem, 3vw, 1.75rem);
  line-height: 1;
  color: var(--ink-muted);
  transition: color 0.2s, transform 0.2s;
}

.doorway-link:hover,
.doorway-link:hover .doorway-arrow { color: var(--og-accent); }
.doorway-link:hover .doorway-arrow { transform: translateX(6px); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer { padding: var(--space-m) 0; }

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

.footer-copy,
.footer-status,
.footer-legal {
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.footer-status { display: flex; align-items: center; gap: 6px; }

.footer-legal {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: color 0.2s;
}
.footer-legal:hover { color: var(--ink-muted); }

.footer-noscript {
  margin-top: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.footer-noscript h2 {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.footer-noscript address { font-style: normal; line-height: 1.7; }

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* ─── IMPRESSUM ──────────────────────────────────────────── */
#impressum-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-m);
  background: color-mix(in srgb, #000 35%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
#impressum-modal.visible { display: flex; opacity: 1; }

.impressum-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 2 * var(--space-m));
  overflow-y: auto;
  padding: var(--space-l) var(--space-m);
  position: relative;
}

.impressum-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-m);
}

.impressum-card h2 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-s);
  letter-spacing: 0.01em;
}

.impressum-card address {
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-muted);
}

.impressum-card address a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.impressum-card address a:hover { color: var(--accent); }

.impressum-block + .impressum-block {
  margin-top: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid var(--rule);
}

.impressum-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 6px 10px;
  transition: color 0.2s;
}
.impressum-close:hover { color: var(--ink); }

/* ════════════════════════════════════════════════════════════════
   OFF-GRID
   Ein anderer Ort: tiefdunkel, ganzflächige Fotografie, Serifen.
════════════════════════════════════════════════════════════════ */

/* Beide dunklen Ebenen starten auf display:none — so lädt der Profil-Besuch
   kein einziges Bild. js/site.js hängt sie beim ersten Ansteuern ein. */
#off-grid-content,
#apps-content {
  display: none;
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  background: var(--og-bg);
  color: var(--og-ink);
}

body.ready-offgrid #off-grid-content { display: block; }
body.ready-apps #apps-content { display: block; }

body[data-layer="offgrid"] #off-grid-content,
body[data-layer="apps"] #apps-content {
  opacity: 1;
  pointer-events: auto;
}

body:not([data-layer="profil"]) header {
  background: rgba(14, 20, 25, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body:not([data-layer="profil"]) .wordmark { color: var(--og-ink); }

/* ─── OFF-GRID-TAB: FÜLLUNG NACH SCROLL-FORTSCHRITT ──────── */
/* Nur auf der Profil-Ebene. Die Füllung ist ein Pseudo-Element hinter
   dem Text — der Text selbst darf nicht eingepackt werden, weil
   applyLang() textContent auf den Knopf schreibt und ein <span> dabei
   verlorenginge.

   isolation: isolate macht den Knopf zum eigenen Stapelkontext, damit
   z-index: -1 unter dem Text, aber über dem Knopfhintergrund liegt und
   nicht hinter die Navigationsleiste rutscht. */
body[data-layer="profil"] .layer-nav button[data-layer="offgrid"] {
  position: relative;
  isolation: isolate;
}

body[data-layer="profil"] .layer-nav button[data-layer="offgrid"]::before {
  content: '';
  position: absolute;
  /* Einen Pixel nach links über die Trennlinie hinaus: Die border-right
     des Nachbarknopfs steht in --rule und wäre sonst als heller Strich
     zwischen Schwarz und Orange sichtbar. .layer-nav schneidet aussen ab. */
  inset: 0 0 0 -1px;
  z-index: -1;
  background: var(--og-accent);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Nur transform und color — kein Layout, kein Reflow. */
@keyframes og-tab-fuellung {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Der Textwechsel ist ein Sprung, kein Verlauf: Zwischentöne wären auf
   halb gefülltem Orange schlechter lesbar als beide Endzustände. */
@keyframes og-tab-text {
  0%, 59%   { color: var(--ink-muted); }
  60%, 100% { color: var(--og-bg); }
}

@supports (animation-timeline: scroll()) {
  body[data-layer="profil"] .layer-nav button[data-layer="offgrid"]::before {
    animation: og-tab-fuellung linear both;
    animation-timeline: scroll(root block);
  }
  body[data-layer="profil"] .layer-nav button[data-layer="offgrid"] {
    animation: og-tab-text linear both;
    animation-timeline: scroll(root block);
  }
}

/* Ohne Unterstützung für Scroll-Zeitachsen und bei reduzierter Bewegung
   setzt ein Beobachter in site.js diese Klasse, sobald der
   Connect-Block sichtbar wird. animation: none hebt eine eventuell
   laufende Animation auf, damit die feste Angabe greift. */
body.profil-ende[data-layer="profil"] .layer-nav button[data-layer="offgrid"]::before {
  animation: none;
  transform: scaleX(1);
}
body.profil-ende[data-layer="profil"] .layer-nav button[data-layer="offgrid"] {
  animation: none;
  color: var(--og-bg);
}

body:not([data-layer="profil"]) .layer-nav { border-color: rgba(255, 255, 255, 0.18); }
body:not([data-layer="profil"]) .layer-nav button {
  color: rgba(232, 223, 208, 0.6);
  border-right-color: rgba(255, 255, 255, 0.18);
}
body:not([data-layer="profil"]) .layer-nav button:hover { color: var(--og-accent); }
body:not([data-layer="profil"]) .layer-nav button[aria-current] {
  background: var(--og-accent);
  color: var(--og-bg);
}

body:not([data-layer="profil"]) #lang-toggle { border-color: rgba(255, 255, 255, 0.18); }
body:not([data-layer="profil"]) #lang-toggle:hover { border-color: var(--og-accent); }
body:not([data-layer="profil"]) #lang-toggle .lang-opt { color: rgba(232, 223, 208, 0.55); }
body:not([data-layer="profil"]) #lang-toggle .lang-opt.active {
  background: var(--og-accent);
  color: var(--og-bg);
}

/* ─── OFF-GRID: BÜHNE ────────────────────────────────────── */
.og-hero {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 600px;
  max-height: 1100px;
  overflow: hidden;
  background: #000;
}

.og-hero picture { display: contents; }

.og-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) saturate(0.92);
}

.og-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,20,25,0.20) 0%, rgba(14,20,25,0.05) 35%, rgba(14,20,25,0.75) 100%),
    linear-gradient(90deg, rgba(14,20,25,0.40) 0%, rgba(14,20,25,0) 55%);
}

.og-hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}

.og-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--og-accent);
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.og-tag::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--og-accent);
}

.og-hero-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 16ch;
  text-wrap: balance;
}
.og-hero-title em {
  font-style: normal;
  font-weight: 400;
  color: var(--og-accent);
}

/* Die Kennzahlen standen früher im Bühnenbild. Sie sitzen jetzt in der
   Seitenspalte, wo unter Koordinate und Höhenschnitt ohnehin Platz frei
   war — und wo sie neben dem Fließtext stehen, auf den sie sich beziehen. */
.og-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.18em;
  color: rgba(232, 223, 208, 0.55);
}

.og-facts strong {
  display: block;
  margin-top: 5px;
  color: var(--og-ink);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ─── OFF-GRID: FLIESSTEXT ───────────────────────────────── */
.og-editorial {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 9rem) clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.og-editorial-side {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 223, 208, 0.55);
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.og-topo {
  width: 100%;
  max-width: 180px;
  height: auto;
  opacity: 0.55;
}
.og-topo .ring { fill: none; stroke: var(--og-accent); stroke-width: 0.6; }
.og-topo .ring-faint { fill: none; stroke: rgba(232, 223, 208, 0.35); stroke-width: 0.4; }
.og-topo .peak { fill: var(--og-accent); }
.og-topo .label {
  font-family: var(--font-sans);
  font-size: 4px;
  fill: rgba(232, 223, 208, 0.55);
  letter-spacing: 0.15em;
}

.og-prose p {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.5;
  color: var(--og-ink-bright);
  text-wrap: pretty;
}
.og-prose p + p { margin-top: 1.2em; }

.og-prose .lede::first-letter {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 4em;
  float: left;
  line-height: 0.9;
  padding: 0.05em 0.15em 0 0;
  color: var(--og-accent);
  font-weight: 400;
}

/* ─── OFF-GRID: BILDSTRECKE ──────────────────────────────── */
.og-spread {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(4rem, 10vw, 8rem);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(80px, auto);
  gap: 14px;
}

.og-frame {
  position: relative;
  overflow: hidden;
  background: #1a2128;
}

.og-frame picture { display: contents; }

.og-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.og-frame:hover img { transform: scale(1.04); }

.og-frame .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 3rem 18px 14px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
  /* Kräftiger als nötig wirkt: die hellen Wüstenfotos schlucken sonst
     die Bildunterschrift komplett. */
  background: linear-gradient(180deg, rgba(14,20,25,0) 0%, rgba(14,20,25,0.55) 45%, rgba(14,20,25,0.94) 100%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.og-frame .caption span {
  display: block;
  color: var(--og-accent);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  margin-bottom: 5px;
}

.og-frame--canyon   { grid-column: 1 / span 7;  grid-row: span 6; min-height: 480px; }
.og-frame--mojave   { grid-column: 8 / span 5;  grid-row: span 4; min-height: 320px; }
.og-frame--nitrox   { grid-column: 8 / span 5;  grid-row: span 2; min-height: 200px; }
.og-frame--pct      { grid-column: 1 / span 4;  grid-row: span 4; min-height: 380px; }
.og-frame--aqueduct { grid-column: 5 / span 8;  grid-row: span 4; min-height: 380px; }
.og-frame--gravel   { grid-column: 1 / span 4;  grid-row: span 4; min-height: 360px; }
.og-frame--kitesurf { grid-column: 5 / span 4;  grid-row: span 4; min-height: 360px; }

.og-frame--quote {
  grid-column: 9 / span 4;
  grid-row: span 4;
  min-height: 360px;
  background: var(--og-bg);
  display: flex;
  align-items: center;
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
}
.og-frame--quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1.35;
  color: var(--og-ink-bright);
  max-width: 22ch;
  text-wrap: pretty;
}
.og-frame--quote blockquote::before {
  content: '\201C';
  display: block;
  font-size: 4rem;
  color: var(--og-accent);
  line-height: 0.5;
  margin-bottom: 0.5rem;
}

/* ─── OFF-GRID: ABSPANN ──────────────────────────────────── */
.og-foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.og-foot-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(241, 234, 220, 0.7);
  max-width: 50ch;
}

.og-back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--og-bg);
  background: var(--og-accent);
  border: none;
  padding: 16px 28px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.og-back:hover { background: #ff8c52; transform: translateX(-3px); }
.og-back-arrow { display: inline-block; transition: transform 0.2s; }
.og-back:hover .og-back-arrow { transform: translateX(-3px); }

/* ════════════════════════════════════════════════════════════════
   APPS
   Gleicher dunkler Grund wie Off-Grid, aber sachlich statt erzählend:
   Icon, Name, zwei Sätze, Ziel. Keine Screenshots — die stehen im Store.
════════════════════════════════════════════════════════════════ */

.apps-inner {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem))
           clamp(1.5rem, 5vw, 4rem)
           clamp(3rem, 8vw, 6rem);
}

.apps-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.apps-title em { font-style: normal; color: var(--og-accent); }

.apps-list {
  list-style: none;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.app-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: block;
}

.app-name {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--og-ink-bright);
}

.app-desc {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(232, 223, 208, 0.65);
  margin-top: 0.45rem;
  max-width: 62ch;
  text-wrap: pretty;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.6rem;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app-platform,
.app-status { color: rgba(232, 223, 208, 0.42); }

.app-link {
  color: var(--og-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 122, 61, 0.5);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.app-link:hover { border-bottom-color: var(--og-accent); }

.apps-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.apps-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(241, 234, 220, 0.65);
}
.apps-note a {
  color: rgba(241, 234, 220, 0.65);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 122, 61, 0.6);
  transition: color 0.2s;
}
.apps-note a:hover { color: var(--og-accent); }

@media (max-width: 560px) {
  .app-row { grid-template-columns: 44px 1fr; }
  .app-icon { width: 44px; height: 44px; border-radius: 10px; }
}

/* ─── SONSTIGES ──────────────────────────────────────────── */
::selection { background: color-mix(in srgb, var(--accent) 15%, transparent); }
a { color: inherit; }

/* ─── BREAKPOINTS ────────────────────────────────────────── */
@media (max-width: 900px) {
  .og-spread { grid-template-columns: repeat(6, 1fr); }
  .og-frame--canyon   { grid-column: 1 / -1;     grid-row: span 5; min-height: 360px; }
  .og-frame--mojave   { grid-column: 1 / span 6; grid-row: span 4; min-height: 280px; }
  .og-frame--nitrox   { grid-column: 1 / span 6; grid-row: span 3; min-height: 220px; }
  .og-frame--pct      { grid-column: 1 / span 6; grid-row: span 4; min-height: 320px; }
  .og-frame--aqueduct { grid-column: 1 / span 6; grid-row: span 4; min-height: 280px; }
  .og-frame--gravel   { grid-column: 1 / span 6; grid-row: span 3; min-height: 240px; }
  .og-frame--kitesurf { grid-column: 1 / span 6; grid-row: span 5; min-height: 380px; }
  .og-frame--quote    { grid-column: 1 / -1;     grid-row: span 3; min-height: 200px; }
}

@media (max-width: 800px) {
  .og-editorial { grid-template-columns: 1fr; gap: 2rem; }
  .og-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
}

@media (max-width: 720px) {
  .principles-grid { grid-template-columns: 1fr; gap: var(--space-m); }
  .connect-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 600px) {
  .domain-row { grid-template-columns: 1fr; gap: var(--space-xs); }
  /* Auf schmalen Geräten hat der Initial keinen Platz, ohne den Absatz
     zu zerreißen. */
  .og-prose .lede::first-letter { font-size: 1em; float: none; padding: 0; }
}

/* Ab hier passen Wortmarke, Sprache und drei Segmente nicht mehr in eine
   Zeile, ohne dass die Schrift unlesbar wird. Also zwei Zeilen — der Kopf
   wird 32 px höher, dafür schrumpft nichts. --header-h zieht mit, weil
   .hero darauf rechnet. */
@media (max-width: 640px) {
  :root { --header-h: 88px; }

  .container { padding-left: 1.25rem; padding-right: 1.25rem; }

  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "mark lang"
      "nav  nav";
    padding: 8px 1.25rem;
    gap: 8px 12px;
  }

  .wordmark { font-size: 0.78rem; letter-spacing: 0.02em; }
  #lang-toggle { font-size: 0.66rem; }
  #lang-toggle .lang-opt { padding: 6px 9px; }
  .layer-nav button { flex: 1; text-align: center; padding: 8px 4px; }
}

@media (max-width: 480px) {
  :root { --space-xl: 2.25rem; --space-l: 2.5rem; }
  .hero h1 { letter-spacing: -0.02em; }
  .og-hero { min-height: 520px; }
}

/* ─── REDUZIERTE BEWEGUNG ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .og-frame:hover img { transform: none; }

  /* Die globale Regel oben kürzt nur die Dauer; bei Scroll-Zeitachsen
     wird die Dauer ignoriert. Deshalb die Animation hier ausdrücklich
     abschalten — die Füllung springt dann über .profil-ende. */
  body[data-layer="profil"] .layer-nav button[data-layer="offgrid"],
  body[data-layer="profil"] .layer-nav button[data-layer="offgrid"]::before {
    animation: none;
  }
}
