/* ============================================================
   SOLID ESTATE — Basis: Fonts, Reset, Fluid-System, Utilities
   (Jetlag-System; Änderungen: Mono-Font, kein Custom-Cursor, Formularreset,
   Silbentrennung für deutsche Komposita)
   ============================================================ */

/* Display + UI: Raleway Variable 100–900, latin + latin-ext (lokal, kein CDN). */
@font-face {
  font-family: "Raleway";
  src: url("../assets/fonts/Raleway-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Raleway";
  src: url("../assets/fonts/Raleway-Variable-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}
/* Instrumente: IBM Plex Mono (SIL OFL 1.1), latin-Subset deckt ÄÖÜß ab. */
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  background: var(--color-dark);   /* nur beim Overscroll sichtbar */
  scrollbar-gutter: stable;
}
/* Ohne Lenis (Touch-Geraete) uebernimmt der Browser die Anker-Sprünge */
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}

body {
  background: var(--color-light);
  color: var(--color-dark);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--size-font);
  line-height: var(--lh-body);
  text-transform: uppercase;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; text-transform: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; text-transform: none; color: inherit; }

/* ---- Anti-Flicker mit Notausgang ----
   Verstecken NUR wenn JS da ist (js/head.js setzt html.js vor dem ersten Paint).
   main.js setzt html.is-ready als Erstes; bleibt das aus (langsames Netz, Fehler),
   blendet die Failsafe-Animation nach 3 s alles ein. Eine laufende CSS-Animation
   schlaegt Inline-Styles — deshalb wirkt sie auch bei halb gelaufenem GSAP. */
html.js .page-content { opacity: 0; visibility: hidden; }
html.js:not(.is-ready) :is(.page-content, .navbar, .menu-button, .hero_bottom_inner) {
  animation: jl-failsafe 0s linear 3s forwards;
}
html.js:not(.is-ready) .page-transition { animation: jl-failsafe-wipe 0s linear 3s forwards; }
html:not(.js) .page-transition { display: none; }   /* ohne JS faehrt nichts hoch: Overlay gar nicht erst zeigen */
@keyframes jl-failsafe { to { opacity: 1; visibility: visible; transform: none; } }
@keyframes jl-failsafe-wipe { to { transform: translateY(-100%); visibility: hidden; } }

/* ---- Instrumente bleiben Monospace ----
   Tafeln, Codes, Kennzahlen-Labels und Spec-Zeilen brauchen feste
   Zeichenbreite — der Kontrast zur Raleway-Stimme ist gewollt. */
.board_head, .board_flight, .board_loc, .board_date, .board_time, .board_status,
.board_gate, .board_desc, .board_use,
.card_count, .menu_link_gate, .nav_link_gate, .nav_lang, .menu_lang, .home-events_idx, .nextup_row,
.stat_label, .stat_note,
.pipeline_idx, .factline,
.groundops_title, .specs, .pointlist_idx, .proj_card_idx,
.legal_label, .page-hero_meta_item span:first-child,
.venn_label, .ring_label, .contact_note {
  font-family: var(--font-mono);
  font-weight: 400;
}

/* ---- Typografie ---- */
h1, h2, .display {
  font-family: var(--font-display);
  font-stretch: var(--font-display-stretch);
  font-weight: 900;
  line-height: var(--lh-heading);
  letter-spacing: .01em;
  font-feature-settings: "lnum" 1;
  text-transform: uppercase;
  hyphens: manual;   /* deutsche Komposita brechen nur an &shy; */
}
/* EINE Headline-Größe für Seiten- und Sektionstitel (auch Claims).
   <p> setzt keine eigene Größe — es erbt vom .text-body-Wrapper (keine em-Verkettung). */
h1, h2 { font-size: var(--text-headline); }
/* Subhead-Rolle (h3-Äquivalent): Blocktitel unter einem h2, Stimme der Tafelzeilen (Raleway 900, Versalien, 1.5em / mobil 1.25em) */
h3, .subhead { font-family: var(--font-display); font-stretch: var(--font-display-stretch); font-weight: 900; font-size: var(--text-subhead); line-height: var(--lh-heading); letter-spacing: .01em; font-feature-settings: "lnum" 1; text-transform: uppercase; hyphens: manual; }

.text-tag { font-size: var(--text-tag); }
.text-bold { font-weight: 700; }
.text-dim { opacity: var(--opacity-muted); }
.text-right { text-align: right; }
.text-brand { color: var(--color-brand); }
.text-signal { color: var(--color-signal); }
.text-caution { color: var(--color-caution); }

/* Optisches Leading-Trim */
:is(h1, h2, .display) { display: flow-root; }
:is(h1, h2, .display)::before { content: ""; display: table; margin-bottom: calc(-.5lh + .38em); }
:is(h1, h2, .display)::after  { content: ""; display: table; margin-bottom: calc(-.5lh + .37em); }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--size-container); margin-inline: auto; }
/* max(): auf Geraeten mit Notch im Querformat weicht der Inhalt der Kamera aus */
.padding-global {
  width: 100%; position: relative;
  padding-inline: max(var(--padding-global), env(safe-area-inset-left, 0px)) max(var(--padding-global), env(safe-area-inset-right, 0px));
}
.padding-section { width: 100%; padding-block: var(--padding-section); }
/* Konvention: Folgesektion GLEICHER Hintergrundfarbe bekommt is-top-0
   (ein gemeinsamer Zwischenraum); nach einem Farbwechsel volles Padding. */
.padding-section.is-top-0 { padding-top: 0; }
.padding-section.is-tight { padding-block: 6em; }
/* Erste Sektion unter der fixen Nav: reduzierter Kopfabstand. */
.padding-section.is-top-compact { padding-top: 7em; }

.grid { display: grid; grid-auto-columns: 1fr; gap: var(--space-md); }
.grid.is-2 { grid-template-columns: 1fr 1fr; }
.grid.is-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid.is-top { align-items: start; }
@media (max-width: 767px) {
  .grid.is-2, .grid.is-3 { grid-template-columns: 1fr; row-gap: 2rem; }
}

/* Sektionskopf: Tag links, Text-Link rechts, eine Mittellinie. */
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-md);
}

.flex-col { display: flex; flex-direction: column; gap: var(--space-sm); }
.flex-col.is-gap-md { gap: var(--space-md); }
.flex-col.is-gap-lg { gap: var(--space-lg); }
.flex-col.is-gap-xl { gap: var(--space-xl); }
.flex-col.is-start { align-items: flex-start; }

/* Fließtext: die eine Copy-Größe, Uppercase-Grundschrift zurücknehmen + einheitliche Zeilenlänge (26em). */
.text-body { font-size: var(--text-copy); text-transform: none; max-width: 26em; line-height: 1.2; font-weight: 400; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 8 4 4; }
.text-body p + p { margin-top: var(--space-md); }
/* Leitsatz über einer Kernpunkte-Liste: linksbündig, keine Trennung, kein Blocksatz. */
.text-lead { text-align: left; hyphens: manual; -webkit-hyphens: manual; font-weight: 500; }
/* Blocksatz ist LAYOUT, kein Effekt — deshalb CSS statt Inline-Style aus reveal.js.
   Erst ab Tablet: auf 390 px reisst Blocksatz mit deutschen Komposita Loecher. */
@media (min-width: 768px) {
  [data-reveal]:not(.text-lead) :is(p, li, blockquote),
  p[data-reveal], li[data-reveal], blockquote[data-reveal] { text-align: justify; }
  .text-lead p, .text-lead li { text-align: left; }
}
.max-w-text { max-width: 26em; }
.text-body.is-full { max-width: none; }   /* Einleitung über die volle Rasterbreite (Investorenportal) */
/* Zentrierte Inhalts-Spur — exakt die Breite der Tafeln. */
.rail { width: 100%; max-width: 76rem; margin-inline: auto; }
/* Headline über einem Copy-Block: rechte Kante fluchtet mit dem 26em-Copy-Maß. */
.max-w-heading { max-width: 9.75em; }
@media (max-width: 991px) { .max-w-heading { max-width: 13em; } }
.flex-col.is-center-block { width: 100%; max-width: 29.25em; margin-inline: auto; }
@media (max-width: 991px) { .flex-col.is-center-block { max-width: 26em; } }
/* Breite Variante für Claim-Blöcke: die 3em-Headline (z. B. „Lösungsorientiert.") braucht mehr als das Copy-Maß, Copy bleibt über .text-body bei 26em. */
.flex-col.is-center-block.is-wide { max-width: 36em; }
.mt-lg { margin-top: var(--space-lg); }
.mt-auto { margin-top: auto; }
.mb-lg { margin-bottom: var(--space-lg); }

/* ---- Tag-Chip (das Grundmodul) ---- */
.tag { display: inline-flex; align-items: center; gap: var(--space-2xs); white-space: nowrap; }
.tag_dot { width: var(--tag-dot); height: var(--tag-dot); background: currentColor; flex: none; }
.tag_dot.is-brand { background: var(--color-brand); }
.tag_dot.is-signal { background: var(--color-signal); }
.tag_text { font-size: var(--text-tag); }
.tag.is-grey { color: var(--color-grey); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; justify-content: center; align-items: center;
  gap: var(--space-2xs); white-space: nowrap; position: relative;
  padding: var(--padding-button); border-radius: var(--radius-small);
  /* kein CSS-Hover — Feedback kommt aus dem Split-Flap-Scramble */
}
.btn_text { font-size: var(--text-tag); line-height: 1; }
.btn_icon { width: .5em; height: .5em; flex: none; }
.btn.is-primary { background: var(--color-brand); color: var(--color-light); border: var(--border-brand); }
.btn.is-dark { background: var(--color-dark); color: var(--color-light); border: var(--border-dark); }
.btn.is-outline { background: transparent; color: var(--color-dark); border: var(--border-dark); }
.btn.is-link { padding: 0; border: 0; background: none; border-radius: 0; color: inherit; }
.btn.is-outline-light { background: transparent; color: var(--color-light); border: 1px solid var(--color-light); }
.btn.is-light { background: var(--color-light); color: var(--color-dark); border: 1px solid var(--color-light); }
.btn.is-disabled { opacity: var(--opacity-muted); pointer-events: none; }

/* ---- Eckwinkel-Marker (Leitmotiv) ---- */
.corner { position: absolute; width: var(--marker-size); height: var(--marker-size); pointer-events: none; }
.corner.is-tl { top: 0; left: 0; border-top: 1px solid currentColor; border-left: 1px solid currentColor; }
.corner.is-tr { top: 0; right: 0; border-top: 1px solid currentColor; border-right: 1px solid currentColor; }
.corner.is-bl { bottom: 0; left: 0; border-bottom: 1px solid currentColor; border-left: 1px solid currentColor; }
.corner.is-br { bottom: 0; right: 0; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; }

/* ---- Sektions-Varianten ---- */
.section-dark { background: var(--color-dark); color: var(--color-light); }
.section-dark .tag_dot { background: currentColor; }
.section-dark .tag_dot.is-brand { background: var(--color-brand-light); }
.section-dark .btn.is-outline { color: var(--color-light); border-color: var(--color-light); }
.section-dark .text-brand { color: var(--color-brand-light); }
.section-dark .text-signal { color: var(--color-signal-light); }

/* ---- Utilities ---- */
.is-overflow-hidden { overflow: hidden; }
.blend-difference { color: var(--color-light); mix-blend-mode: difference; }
.isolate { isolation: isolate; }
@media (max-width: 767px) {
  .hide-mobile { display: none; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Sprungmarke: nur mit Tastatur sichtbar, liegt ueber dem Wipe */
.skip-link {
  position: fixed; top: 0; left: 0; z-index: calc(var(--z-wipe) + 1);
  transform: translateY(-200%);
  background: var(--color-dark); color: var(--color-light);
  padding: var(--space-sm) var(--space-md); font-size: var(--text-tag);
  border-bottom-right-radius: var(--radius-small);
}
.skip-link:focus-visible { transform: translateY(0); }
#inhalt:focus { outline: none; }   /* Sprungziel selbst bekommt keinen Rahmen */

.divider { width: 100%; height: 1px; background: var(--color-border); }
.section-dark .divider { background: var(--color-light-20); }

/* Fokus sichtbar */
:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }

/* ---- Umbruch auf schmalen Displays ----
   Lange Wortungetueme (URLs und Mailadressen in den Rechtstexten, Komposita)
   duerfen notfalls brechen, statt die Zeile zu sprengen. */
body { overflow-wrap: break-word; }
/* pretty verhindert Schusterjungen am Absatzende, balance verteilt kurze
   Headlines gleichmaessig auf ihre Zeilen — beides nur dort, wo die Zeile kurz ist. */
@media (max-width: 991px) {
  .text-body p, .legal_text p, .pointlist_text, .board_desc, .pipeline_text, .ring_text { text-wrap: pretty; }
}
@media (max-width: 767px) {
  h1, h2, h3, .subhead, .board_dest, .stat_value, .page-hero_title { text-wrap: balance; }
}
/* Die deutschen Seiten trennen Komposita gezielt mit &shy;; die englischen haben
   keine Trennstellen — unter 480 px darf der Browser dort selbst trennen. */
@media (max-width: 479px) {
  :lang(en) :is(h1, h2, h3, .subhead) { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
}

/* Reduced Motion: harte Abschaltung aller CSS-Transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
