/* Selbst gehostete Schriften (ersetzt Google Fonts). Latin + Latin-Ext. */
@font-face{
  font-family:'Libre Franklin';
  font-style:normal;
  font-weight:300;
  font-display:swap;
  src:url(../fonts/libre-franklin-300-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:'Libre Franklin';
  font-style:normal;
  font-weight:300;
  font-display:swap;
  src:url(../fonts/libre-franklin-300-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;
}
@font-face{
  font-family:'Libre Franklin';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url(../fonts/libre-franklin-400-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:'Libre Franklin';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url(../fonts/libre-franklin-400-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;
}
@font-face{
  font-family:'Libre Franklin';
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url(../fonts/libre-franklin-600-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:'Libre Franklin';
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url(../fonts/libre-franklin-600-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;
}
@font-face{
  font-family:'Libre Franklin';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url(../fonts/libre-franklin-700-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:'Libre Franklin';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url(../fonts/libre-franklin-700-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;
}
@font-face{
  font-family:'Libre Franklin';
  font-style:normal;
  font-weight:800;
  font-display:swap;
  src:url(../fonts/libre-franklin-800-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:'Libre Franklin';
  font-style:normal;
  font-weight:800;
  font-display:swap;
  src:url(../fonts/libre-franklin-800-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;
}

/* =====================================================================
   neway data AG - Prototype Startseite
   Corporate design: Neway, manual 08/2025 v1.0.
   Libre Franklin and the manual's digital HEX palette.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Flaechen (aus neway dunkelblau #002950, fuer Dark abgedunkelt) */
  --bg:            #000000;
  --bg-1:          #002950;
  --surface:       #002950;
  --surface-2:     #004177;
  --surface-3:     #004177;

  /* Linien / Raster */
  --line:          rgba(156, 158, 158, 0.14);
  --line-2:        rgba(156, 158, 158, 0.24);
  --line-hud:      rgba(0, 103, 159, 0.38);

  /* Text (WCAG AA auf --bg geprueft) */
  --text:          #ffffff;   /* ~15:1  */
  --text-dim:      #c4c5c5;   /* ~7.6:1 */
  --text-mute:     #9c9e9e;   /* dekorativ / Mono-Labels, ~5.4:1 */

  /* Marke */
  --accent:        #f07800;   /* neway orange - Akzent, seitenweit gesperrt */
  --accent-hi:     #f07800;
  --accent-ink:    #000000;   /* Text auf orange Flaeche */
  --hud:           #00679f;   /* neway hellblau, aufgehellt - nur Linien/Telemetrie */
  --hud-soft:      rgba(0, 103, 159, 0.16);
  --good:          #009851;   /* neway gruen, aufgehellt - nur Status */

  /* Radius (eine Skala: Buttons pill, Flaechen 4px, Inputs 4px) */
  --r-flat:        4px;
  --r-pill:        999px;

  /* Raster */
  --container:     1280px;
  --gutter:        clamp(1.25rem, 4vw, 2.5rem);
  --section-y:     clamp(4rem, 7vw, 7rem);

  /* Typo */
  --font-sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Libre Franklin", system-ui, sans-serif;
  /* Corporate typeface for every text hierarchy. */
  --font-display: "Libre Franklin", system-ui, sans-serif;

  --step-h1: clamp(2.05rem, 1.1rem + 4.2vw, 5rem);
  --step-h2: clamp(1.95rem, 1.4rem + 2.4vw, 3.1rem);
  --step-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --step-body: 1.0625rem;
  --step-sm: 0.9rem;
  --step-label: 0.72rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Heller Darstellungsmodus. Die Wahl wird in assets/js/theme.js gespeichert. */
html[data-theme="light"] {
  color-scheme: light;
  --bg:            #f7f9fa;
  --bg-1:          #eaf1f5;
  --surface:       #ffffff;
  --surface-2:     #e2edf3;
  --surface-3:     #d5e5ee;
  --line:          rgba(0, 41, 80, 0.13);
  --line-2:        rgba(0, 41, 80, 0.24);
  --line-hud:      rgba(0, 103, 159, 0.38);
  --text:          #002950;
  --text-dim:      #36546c;
  --text-mute:     #647b8d;
  --hud:           #00679f;
  --hud-soft:      rgba(0, 103, 159, 0.1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
a, button, input, textarea, select, summary, label, [role="button"] { touch-action: manipulation; }
/* Sticky-Header nicht ueber angesprungene Ziele legen */
section[id], #main, #top, [id]:target { scroll-margin-top: 96px; }
@media (max-width: 1240px) { section[id], #main, #top, [id]:target { scroll-margin-top: 80px; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}
main, section, .container { max-width: 100%; }
img, svg, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 3. Layout-Primitive ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--bg-1); }
.section__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 { margin-bottom: 1rem; }

/* Mono-Label / Sektionsindex */
.klabel {
  font-family: var(--font-mono);
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hud);
}
.kindex {
  font-family: var(--font-mono);
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-mute);
}
.section__head .klabel { display: block; margin-bottom: 1rem; }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  overflow-wrap: break-word;
  /* keine Auto-Silbentrennung in Ueberschriften ("Vi-deo") - nur an
     ausdruecklichen &shy; / Bindestrichen trennen */
  hyphens: manual;
}
h2 {
  font-size: var(--step-h2);
  font-family: var(--font-display);

  font-weight: 700;
  letter-spacing: -0.015em;
}
h3 { font-size: var(--step-h3); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
p { color: var(--text-dim); max-width: 66ch; overflow-wrap: break-word; }
.lead { font-size: 1.15rem; color: var(--text); font-weight: 300; }

/* ---------- 4. Buttons ---------- */
.btn {
  --pad-y: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--pad-y) 1.5rem;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: var(--accent-hi); }
.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--hud); color: var(--hud); }
.btn__arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- 5. HUD-Rahmen (Signature-Systemelement) ---------- */
.hud-frame {
  position: fixed;
  inset: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right))
         max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  z-index: 40;
  pointer-events: none;
  border: 1px solid var(--line-hud);
  opacity: 0.5;
}
.hud-frame span {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--hud);
}
.hud-frame span:nth-child(1) { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud-frame span:nth-child(2) { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.hud-frame span:nth-child(3) { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.hud-frame span:nth-child(4) { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hud-frame::after { /* Mitten-Tick oben */
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  width: 46px; height: 5px;
  transform: translateX(-50%);
  border: 1px solid var(--hud);
  border-top: 0;
}
@media (max-width: 640px) { .hud-frame { inset: 6px; } .hud-frame::after { width: 30px; } }

/* ---------- 6. Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s, border-color 0.3s;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
  transition: height 0.3s var(--ease);
}
.site-header[data-shrunk="true"] .nav { height: 56px; }
.nav__brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.nav__brand img { width: auto; }
.nav__brand .brand-word { height: 30px; }
.nav__brand .brand-icon { height: 30px; display: none; }
.site-header[data-shrunk="true"] .nav__brand .brand-word { height: 26px; }
.nav__links {
  display: flex;
  gap: clamp(0.85rem, 1.7vw, 1.7rem);
  margin-left: auto;
  font-size: 0.95rem;
}
.nav__links a {
  color: var(--text-dim);
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.2s;
  font-weight: 400;
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }

/* Nav-Dropdown (z. B. Über uns -> Team). Zweigeteilt: .nav__grouplabel ist ein
   echter Link auf den Abschnitt selbst, .nav__groupchev nur der Aufklapp-Toggle
   fuers Untermenue - so taucht der Abschnittsname nicht doppelt auf (einmal als
   Navpunkt, einmal wieder als erster Menuepunkt). */
.nav__group { position: relative; display: flex; align-items: center; }
.nav__grouprow { display: inline-flex; align-items: center; gap: 0.1rem; }
.nav__grouplabel {
  color: var(--text-dim); font: inherit; font-weight: 400; white-space: nowrap;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.nav__groupchev {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.3rem 0.25rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav__grouplabel:hover,
.nav__groupchev:hover,
.nav__group:hover .nav__grouplabel,
.nav__group:hover .nav__groupchev,
.nav__group:focus-within .nav__grouplabel,
.nav__group:focus-within .nav__groupchev { color: var(--text); }
.nav__chev { width: 10px; height: 7px; flex-shrink: 0; transition: transform 0.2s var(--ease); }
.nav__group:hover .nav__chev,
.nav__groupchev[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: 100%; left: -0.65rem;
  margin-top: 0.4rem; min-width: 11rem;
  display: grid; gap: 0.1rem; padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line-hud);
  border-radius: var(--r-flat);
  box-shadow: 0 18px 40px rgba(4, 7, 11, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
  z-index: 60;
}
.nav__group:hover .nav__menu,
.nav__group:focus-within .nav__menu,
.nav__group:has(.nav__groupchev[aria-expanded="true"]) .nav__menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.nav__menu a {
  display: block; padding: 0.5rem 0.7rem; border-radius: 3px;
  color: var(--text-dim); font-size: 0.92rem; white-space: nowrap;
}
.nav__menu a::after { display: none; }
.nav__menu a:hover { background: var(--hud-soft); color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .nav__chev, .nav__menu { transition: none; }
}

.nav__actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.theme-toggle {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--text-dim);
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--text); background: var(--surface-2); border-color: var(--hud); }
.theme-toggle svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-toggle__moon { display: none; }
html[data-theme="light"] .theme-toggle__sun { display: none; }
html[data-theme="light"] .theme-toggle__moon { display: block; }
.lang-toggle {
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.lang-toggle button {
  padding: 0.35rem 0.6rem;
  color: var(--text-mute);
  transition: background-color 0.2s, color 0.2s;
}
.lang-toggle button:hover { color: var(--text); background: var(--surface-2); }
.lang-toggle button[aria-pressed="true"] {
  background: var(--surface-3);
  color: var(--text);
}
.nav__cta { display: inline-flex; }
.nav__cta[data-scroll-cta="hidden"] { visibility: hidden; pointer-events: none; }
.nav__burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: "";
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav__burger span::before { transform: translateY(-6px); }
.nav__burger span::after { transform: translateY(6px); position: relative; }
body[data-menu="open"] .nav__burger span { background: transparent; }
body[data-menu="open"] .nav__burger span::before { transform: rotate(45deg); }
body[data-menu="open"] .nav__burger span::after { transform: rotate(-45deg); }

@media (max-width: 1240px) {
  .nav__brand .brand-word { display: none; }
  .nav__brand .brand-icon { display: block; height: 34px; }
  .site-header[data-shrunk="true"] .nav__brand .brand-icon { height: 30px; }
  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
    padding: var(--gutter);
    overscroll-behavior: contain;
    visibility: hidden;
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
    font-size: 1.15rem;
  }
  body[data-menu="open"] .nav__links {
    visibility: visible;
    transform: translateY(0);
    transition: transform 0.35s var(--ease);
  }
  .nav__links a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  /* Dropdown im Off-Canvas-Menue: aufklappbare Zeile */
  .nav__group { flex-direction: column; align-items: stretch; }
  .nav__grouprow {
    border-bottom: 1px solid var(--line);
    justify-content: space-between; width: 100%;
  }
  .nav__grouplabel { padding: 0.95rem 0; font-size: inherit; flex: 1; }
  .nav__groupchev { padding: 0.95rem 0.2rem 0.95rem 1rem; }
  .nav__chev { width: 13px; height: 9px; }
  .nav__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent;
    margin: 0; padding: 0; min-width: 0;
    display: none;
  }
  .nav__group[data-open] .nav__menu { display: grid; }
  .nav__group[data-open] .nav__chev { transform: rotate(180deg); }
  .nav__menu a {
    padding: 0.85rem 0 0.85rem 1.1rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
}

/* Das weisse Marken-SVG wird auf hellen Flaechen in Neway-Dunkelblau gezeigt. */
html[data-theme="light"] .nav__brand img,
html[data-theme="light"] .footer__brand img {
  filter: brightness(0) saturate(100%) invert(14%) sepia(37%) saturate(2007%) hue-rotate(173deg) brightness(87%) contrast(105%);
}

/* ---------- 7. Hero (Aerial + Jet + HUD-Lock, angelehnt an die Referenz) ---------- */
.hero {
  position: relative;
  min-height: clamp(640px, 100dvh, 960px);
  display: grid;
  grid-template-columns: min(100%, 48rem);
  justify-content: center;
  align-content: center;
  overflow: hidden;
  padding: clamp(6rem, 13vh, 8.5rem) var(--gutter) clamp(3rem, 8vh, 4.5rem);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

/* --- Hintergrund: Himmel + Bergketten (Parallax) + HUD-Canvas --- */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 68% at 50% 4%, rgba(96,158,208,0.4), transparent 62%),
    linear-gradient(180deg, #163049 0%, #0d1e30 40%, #08111d 74%, #050b13 100%);
}
.hero__ridges {
  position: absolute; left: -6%; right: -6%; bottom: 0;
  width: 112%; height: 74%;
}
.hero__ridges g { transform-box: view-box; will-change: transform; }
.hero__r1 { fill: #0c2032; }
.hero__r2 { fill: #123249; opacity: 0.82; }
.hero__r3 { fill: #1c4360; opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .hero__r3 { animation: ridge 26s ease-in-out infinite alternate; }
  .hero__r2 { animation: ridge 40s ease-in-out infinite alternate-reverse; }
  .hero__r1 { animation: ridge 60s ease-in-out infinite alternate; }
}
@keyframes ridge { from { transform: translateX(-1.6%); } to { transform: translateX(1.6%); } }
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Hero = Vektor/HUD (Himmel + Bergketten + Canvas-Szene + SVG-Jet + Reticle).
   Der fruehere Remotion-MP4-Layer wurde entfernt; die Vektor-Hero ist die
   sichtbare Variante. Das Remotion-Projekt liegt weiter unter hero-video/. */

.hero__bg::after { /* Lesbarkeits-Scrim: Mitte + unten */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(64% 58% at 50% 54%, rgba(5,10,18,0.84) 0%, rgba(5,10,18,0.42) 54%, transparent 100%),
    linear-gradient(180deg, rgba(5,10,18,0.5) 0%, transparent 24%, rgba(5,10,18,0.55) 72%, rgba(5,10,18,0.92) 100%);
}

/* --- Eckmarken (+) --- */
.hero__x {
  position: absolute; z-index: 3;
  font-family: var(--font-mono); font-size: 1.15rem; line-height: 1;
  color: var(--hud);
}
.hero__x.tl { top: 16px; left: 18px; }
.hero__x.tr { top: 16px; right: 18px; }
.hero__x.bl { bottom: 16px; left: 18px; }
.hero__x.br { bottom: 16px; right: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__x { animation: xblink 4s ease-in-out infinite; }
  .hero__x.tr { animation-delay: 0.5s; }
  .hero__x.bl { animation-delay: 1s; }
  .hero__x.br { animation-delay: 1.5s; }
}
@keyframes xblink { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.85; } }

/* --- Jet: gross, zentral-rechts, diagonal (lesbar, nicht nur Andeutung) --- */
.hero__jetwrap {
  position: absolute; z-index: 1;
  left: 59%; top: 35%;
  width: clamp(240px, 31vw, 430px);
  transform: translate(-50%, -50%) translate3d(var(--px, 0px), var(--py, 0px), 0);
  opacity: 1;
  pointer-events: none;
}
.hero__jet { transform: rotate(-19deg); transform-origin: center; will-change: transform; }
.hero__jet svg {
  width: 100%; height: auto; display: block; overflow: visible;
  filter: drop-shadow(0 26px 64px rgba(0,0,0,0.6)) drop-shadow(0 0 40px rgba(130,185,235,0.18));
}
.hero__jet-bob { transform-origin: center; }
.hero__ab { transform-box: fill-box; transform-origin: center; }
.hero__trail { transform-box: fill-box; transform-origin: 50% 0%; opacity: 0.34; }
@media (prefers-reduced-motion: no-preference) {
  .hero__jet { animation: jet-bank 12s ease-in-out infinite; }
  .hero__jet-bob { animation: jet-hover 6.5s ease-in-out infinite alternate; }
  .hero__ab { animation: ab-pulse 0.4s ease-in-out infinite alternate; }
  .hero__trail { animation: trail-flicker 0.9s ease-in-out infinite alternate; }
}
@keyframes trail-flicker { from { opacity: 0.24; transform: scaleX(0.92); } to { opacity: 0.42; transform: scaleX(1.06); } }
@keyframes jet-bank {
  0%, 100% { transform: translate(0, 0) rotate(-19deg) scaleX(1); }
  15% { transform: translate(-3%, 0) rotate(-23deg) scaleX(0.83); }
  30% { transform: translate(-7%, 1%) rotate(-28deg) scaleX(0.94); }
  45% { transform: translate(-3%, 2%) rotate(-22deg) scaleX(1); }
  65% { transform: translate(4%, 1%) rotate(-12deg) scaleX(0.83); }
  80% { transform: translate(7%, 0) rotate(-9deg) scaleX(0.94); }
}
@keyframes jet-hover { from { transform: translate(-1.6%, 0%); } to { transform: translate(1.6%, 3%); } }
@keyframes ab-pulse { from { opacity: 0.4; transform: scaleY(0.7); } to { opacity: 0.95; transform: scaleY(1.15); } }
@media (prefers-reduced-motion: reduce) {
  .hero__jet { transform: rotate(-19deg); animation: none; }
  .hero__ab { opacity: 0.6; }
  .hero__trail { opacity: 0.28; }
}

/* Technische Flugzeugkonturen passend zur Linienwelt des Fighterjets. */
.hero__aircraft-outline {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  color: #cbdcea;
  opacity: 0.52;
}
.hero__aircraft-outline > svg { width: 100%; height: auto; display: block; }
.hero__aircraft-outline :is(path, ellipse) { fill: none; stroke: currentColor; stroke-width: 1.15; vector-effect: non-scaling-stroke; }
.hero__aircraft-outline .detail { opacity: 0.58; }
.hero__aircraft-outline :is(path.detail, ellipse.detail, .detail path, .detail ellipse) { stroke-width: 0.65; }
.hero__da42-outline { --da42-cycle: 32s; left: 3%; top: 0; bottom: 0; width: min(37vw, 560px); }
.hero__da42-outline > svg { position: absolute; top: 21%; z-index: 1; transform-origin: 50% 46%; }
.hero__runway { position: absolute; object-fit: cover; object-position: center bottom; left: 50%; top: 50%; width: 200%; max-width: none; bottom: 0; height: 50%; transform: translateX(-50%); opacity: 0; filter: opacity(0.45); pointer-events: none; mask-image: linear-gradient(to bottom, #000 75%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%); }
.hero__da42-outline::after {
  content: "";
  position: absolute; left: 22%; bottom: 34.8%; width: 56%; height: 3px;
  border-radius: 50%; background: currentColor; filter: blur(1px); opacity: 0;
}
.hero__h145-outline { --heli-cycle: 46s; --heli-lift: clamp(65px, 9vw, 110px); right: 17%; bottom: 2%; width: min(33vw, 500px); }
.hero__h145-outline > svg { position: relative; z-index: 1; transform-origin: 37% 96%; overflow: visible; }
.hero__tail-registration { fill: currentColor; stroke: none; font: 400 26px Consolas, "SFMono-Regular", Menlo, monospace; letter-spacing: 2px; }
/* The shadow stays on the ground while the airframe descends onto its skids. */
.hero__h145-outline::after {
  content: "";
  position: absolute;
  left: 15%; bottom: 2.5%; width: 46%; height: 2%;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.25;
  filter: blur(1px);
  transform-origin: center;
}
.hero__h145-outline[data-transit="true"]::after { visibility: hidden; }
.hero__helipad { position: absolute; left: -40%; bottom: -31%; width: 156%; height: 84%; opacity: 0; filter: opacity(0.45); }
.hero__aircraft-outline .hero__helipad-h { stroke-width: 3; }
.hero__aircraft-outline .hero__helipad-surface { fill: currentColor; fill-opacity: 0.18; stroke: none; }
.hero__helipad svg { display: block; width: 100%; height: 100%; }
.hero__h145-outline[data-transit="true"] .hero__helipad { visibility: hidden; }
.hero__heli-scenery { position: absolute; left: -40%; bottom: 0; width: 156%; height: 190%; opacity: 0; pointer-events: none; }
.hero__heli-scenery svg { width: 100%; height: 100%; display: block; }
.hero__aircraft-outline .hero__heli-scenery path { stroke-width: 1.65; }
.hero__aircraft-outline .hero__heli-scenery .detail { stroke-width: 1.1; }
.hero__scenery-mountains { opacity: 0.75; }
.hero__aircraft-outline .hero__windsock-stripe { fill: #e98835; fill-opacity: 0.7; stroke: none; }
.hero__h145-outline[data-transit="true"] .hero__heli-scenery { visibility: hidden; }
.hero__rotor-spin { transform-box: fill-box; transform-origin: center; }
.hero__landing-gear { transform-box: fill-box; transform-origin: center; }
.hero__gear-left { --gear-stowed: rotate(-102deg); }
.hero__gear-right { --gear-stowed: rotate(102deg); }
.hero__gear-nose { --gear-stowed: scaleY(0.04); }
.hero__hoist-rig { opacity: 0; }
.hero__door-opening { opacity: 0; }
.hero__aircraft-outline .hero__door-mask { fill: #000; stroke: none; }
.hero__hoist-swing,
.hero__medic-body { transform-box: fill-box; transform-origin: center; }
.hero__hoist-cable { transform-box: fill-box; transform-origin: center top; }
.hero__aircraft-outline .hero__hoist-cable path { stroke-width: 0.8; }
@media (prefers-reduced-motion: no-preference) {
  .hero__da42-outline > svg { animation: da42-flight-cycle var(--da42-cycle) ease-in-out infinite; }
  .hero__da42-outline::after { animation: da42-ground-shadow var(--da42-cycle) ease-in-out infinite; }
  .hero__h145-outline > svg { animation: h145-land-takeoff var(--heli-cycle) ease-in-out infinite; }
  .hero__h145-outline::after { animation: h145-ground-shadow var(--heli-cycle) ease-in-out infinite; }
  .hero__propeller { animation: aircraft-rotor-turn 1.5s linear infinite reverse; }
  .hero__main-rotor,
  .hero__tail-rotor { animation: aircraft-rotor-turn 8s linear infinite reverse; }
  .hero__landing-gear { animation: da42-gear-cycle var(--da42-cycle) ease-in-out infinite; }
  .hero__hoist-rig { animation: h145-hoist-visible var(--heli-cycle) linear infinite; }
  .hero__sliding-door { animation: h145-door-slide var(--heli-cycle) ease-in-out infinite; }
  .hero__door-opening { animation: h145-door-opening var(--heli-cycle) linear infinite; }
  .hero__hoist-cable { animation: h145-hoist-cable var(--heli-cycle) ease-in-out infinite; }
  .hero__hoist-medic { animation: h145-hoist-medic var(--heli-cycle) ease-in-out infinite; }
  .hero__hoist-swing { animation: h145-pendulum 3.2s ease-in-out infinite alternate; }
  .hero__medic-body { animation: h145-medic-balance 3.2s ease-in-out infinite alternate; }
}
/* Gear is locked down before final approach and stays down until after liftoff. */
@keyframes da42-gear-cycle {
  0%, 18%, 78%, 100% { transform: var(--gear-stowed); opacity: 0; }
  28%, 66% { transform: none; opacity: 1; }
}
@keyframes aircraft-rotor-turn { to { transform: rotate(360deg); } }
@keyframes da42-flight-cycle {
  0%, 100% { top: 21%; transform: translate(-6px, 0) rotate(-12deg); }
  9% { top: 21%; transform: translate(6px, -6px) rotate(8deg); }
  18% { top: 21%; transform: translate(0, 0) rotate(0deg); }
  /* A shorter approach with a long deceleration into the level touchdown. */
  28% { top: 21%; transform: translate(0, 0) rotate(0deg); animation-timing-function: cubic-bezier(0.32, 0, 0.25, 1); }
  44%, 54% { top: 66%; transform: translate(0, -100%) rotate(0deg); }
  66% { top: 38%; transform: translate(0, -50%) rotate(0deg); }
  78% { top: 21%; transform: translate(0, 0) rotate(0deg); }
  89% { top: 21%; transform: translate(6px, -6px) rotate(10deg); }
}
@keyframes da42-ground-shadow {
  0%, 28%, 78%, 100% { opacity: 0; transform: scaleX(1.35); }
  44%, 54% { opacity: 0.25; transform: scaleX(1); }
  66% { opacity: 0.06; transform: scaleX(1.2); }
}
/* Hover level during the rescue; retrieve the medic before the quick descent. */
@keyframes h145-land-takeoff {
  0%, 100% { transform: translate(10px, calc(-1 * var(--heli-lift))) rotate(-1.5deg); }
  6%, 54% { transform: translate(0, calc(-1 * var(--heli-lift))) rotate(0deg); }
  64%, 75% { transform: translate(0, 0) rotate(0deg); }
  83% { transform: translate(0, calc(-0.35 * var(--heli-lift))) rotate(0deg); }
  94% { transform: translate(-8px, calc(-1 * var(--heli-lift))) rotate(1deg); }
}
@keyframes h145-ground-shadow {
  0%, 100% { opacity: 0.08; transform: translateX(10px) scale(1.3); }
  6%, 54% { opacity: 0.08; transform: translateX(0) scale(1.3); }
  64%, 75% { opacity: 0.25; transform: translateX(0) scale(1); }
  83% { opacity: 0.18; transform: translateX(0) scale(1.1); }
  94% { opacity: 0.08; transform: translateX(-8px) scale(1.3); }
}
@keyframes h145-hoist-visible {
  0%, 8%, 50%, 100% { opacity: 0; }
  10%, 48% { opacity: 1; }
}
@keyframes h145-door-slide {
  0%, 2%, 54%, 100% { transform: translateX(0); }
  7%, 50% { transform: translateX(-129px); }
}
@keyframes h145-door-opening {
  0%, 2%, 54%, 100% { opacity: 0; }
  7%, 50% { opacity: 1; }
}
/* The cable endpoint and medic attachment move together, inside one swinging rig. */
@keyframes h145-hoist-cable {
  0%, 10%, 48%, 100% { transform: scaleY(1); }
  26%, 32% { transform: scaleY(1.8888888889); }
}
@keyframes h145-hoist-medic {
  0%, 10%, 48%, 100% { transform: translateY(0); }
  26%, 32% { transform: translateY(160px); }
}
@keyframes h145-pendulum {
  from { transform: rotate(-7deg); }
  to { transform: rotate(7deg); }
}
@keyframes h145-medic-balance {
  from { transform: rotate(3deg); }
  to { transform: rotate(-3deg); }
}

/* --- HUD-Lock ueber dem Jet --- */
.hero__lock {
  position: absolute; z-index: 2;
  left: 66%; top: 27%;
  width: clamp(150px, 19vw, 250px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) translate3d(var(--lx, 0px), var(--ly, 0px), 0);
  pointer-events: none;
}
.hero__lock svg { width: 100%; height: 100%; overflow: visible; }
.hero__lock .ring { fill: none; stroke: rgba(240,120,0,0.8); stroke-width: 1.4; }
.hero__lock .tick { stroke: rgba(240,120,0,0.7); stroke-width: 1.6; }
.hero__lock .cross { stroke: rgba(240,120,0,0.9); stroke-width: 1.2; }
.hero__lock .rot { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__lock .rot { animation: lock-rot 16s linear infinite; }
  .hero__lock { animation: lock-drift 7s ease-in-out infinite alternate; }
  /* einmalige "Lock-on"-Erfassung beim Laden: Reticle rastet auf den Jet ein */
  .hero__lock svg { animation: lock-acquire 0.95s var(--ease) 0.2s both; }
  .hero__lock-b { animation: lock-acquire-b 0.95s var(--ease) 0.2s both, lock-pulse 2s ease-in-out 1.15s infinite; }
}
@keyframes lock-rot { to { transform: rotate(360deg); } }
@keyframes lock-acquire {
  0% { opacity: 0; transform: scale(1.8); }
  60% { opacity: 1; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes lock-acquire-b { from { opacity: 0; } to { opacity: 1; } }
@keyframes lock-drift { from { transform: translate(-53%, -47%); } to { transform: translate(-47%, -53%); } }
.hero__lock-b { position: absolute; width: 20px; height: 20px; border: 2px solid rgba(240,120,0,0.95); }
.hero__lock-b.tl { top: 6%; left: 6%; border-right: 0; border-bottom: 0; }
.hero__lock-b.tr { top: 6%; right: 6%; border-left: 0; border-bottom: 0; }
.hero__lock-b.bl { bottom: 6%; left: 6%; border-right: 0; border-top: 0; }
.hero__lock-b.br { bottom: 6%; right: 6%; border-left: 0; border-top: 0; }
/* Puls-Animation der Klammern: siehe Block oben (nach der Lock-on-Erfassung) */
@keyframes lock-pulse { 0%, 100% { opacity: 0.45; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1); } }
.hero__lock-tag {
  position: absolute; left: 50%; top: -12%;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
@media (prefers-reduced-motion: no-preference) { .hero__lock-tag { animation: xblink 1.3s steps(1) infinite; } }

/* --- Inhalt (zentriert) --- */
.hero__inner {
  position: relative; z-index: 4;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  width: 100%; max-width: 100%; min-width: 0;
}
.hero__logo {
  width: clamp(210px, 32vw, 340px);
  height: auto;
  margin-bottom: 1.3rem;
  filter: drop-shadow(0 2px 26px rgba(5, 10, 18, 0.78));
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 1.2vw, 0.72rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hud);
  margin-bottom: 1.1rem;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  width: clamp(16px, 4vw, 30px);
  height: 1px;
  background: var(--line-hud);
}
.hero__inner h1 {
  font-size: clamp(2rem, 1rem + 3.6vw, 3.7rem);
  line-height: 1.04;
  text-wrap: balance;
  hyphens: manual;
  overflow-wrap: normal;
  max-width: min(18ch, 100%);
  text-shadow: 0 2px 34px rgba(5,10,18,0.7);
}
.hero__inner h1 .accent { color: var(--accent); }
.hero__sub {
  margin-top: 1.4rem;
  max-width: min(56ch, 100%);
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 1.3vw, 0.86rem);
  line-height: 1.7; color: var(--text-dim);
  text-shadow: 0 1px 12px rgba(5,10,18,0.95);
}
.hero__cta {
  margin-top: clamp(1.8rem, 5vh, 2.6rem);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}

/* Pause/Play fuer die Hero-Animation (>5s Autoplay) */
.hero__anim-toggle {
  position: absolute;
  left: 50%; bottom: clamp(0.9rem, 2.6vh, 1.4rem);
  transform: translateX(-50%);
  z-index: 5;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-flat);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--hud);
  transition: color 0.2s, border-color 0.2s;
}
.hero__anim-toggle:hover { color: var(--text); border-color: var(--hud); }
.hero__anim-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.hero__anim-toggle .i-pause { display: block; }
.hero__anim-toggle .i-play { display: none; }
.hero[data-anim="paused"] .hero__anim-toggle .i-pause { display: none; }
.hero[data-anim="paused"] .hero__anim-toggle .i-play { display: block; }
.hero[data-anim="paused"] .hero__jet,
.hero[data-anim="paused"] .hero__aircraft-outline,
.hero[data-anim="paused"] .hero__rotor-spin,
.hero[data-anim="paused"] .hero__landing-gear,
.hero[data-anim="paused"] .hero__da42-outline > svg,
.hero[data-anim="paused"] .hero__da42-outline::after,
.hero[data-anim="paused"] .hero__h145-outline > svg,
.hero[data-anim="paused"] .hero__h145-outline::after,
.hero[data-anim="paused"] .hero__hoist-rig,
.hero[data-anim="paused"] .hero__sliding-door,
.hero[data-anim="paused"] .hero__door-opening,
.hero[data-anim="paused"] .hero__hoist-cable,
.hero[data-anim="paused"] .hero__hoist-medic,
.hero[data-anim="paused"] .hero__hoist-swing,
.hero[data-anim="paused"] .hero__medic-body,
.hero[data-anim="paused"] .hero__jet-bob,
.hero[data-anim="paused"] .hero__ab,
.hero[data-anim="paused"] .hero__lock,
.hero[data-anim="paused"] .hero__lock .rot,
.hero[data-anim="paused"] .hero__lock-b,
.hero[data-anim="paused"] .hero__lock-tag,
.hero[data-anim="paused"] .hero__x,
.hero[data-anim="paused"] .hero__r1,
.hero[data-anim="paused"] .hero__r2,
.hero[data-anim="paused"] .hero__r3 { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hero__anim-toggle { display: none; } }

/* Die Startbuehne bleibt auch im hellen Modus kontrastreich, wirkt aber wie
   heller Himmel statt wie eine Nachtansicht. */
html[data-theme="light"] .hero__sky {
  background:
    radial-gradient(130% 68% at 50% 4%, rgba(255,255,255,0.95), transparent 62%),
    linear-gradient(180deg, #c9deeb 0%, #dceaf2 42%, #edf4f7 74%, #f7f9fa 100%);
}
html[data-theme="light"] .hero__r1 { fill: #c1d3dd; }
html[data-theme="light"] .hero__r2 { fill: #a9c4d3; opacity: 0.72; }
html[data-theme="light"] .hero__r3 { fill: #8db2c7; opacity: 0.42; }
html[data-theme="light"] .hero__bg::after {
  background:
    radial-gradient(66% 60% at 50% 54%, rgba(247,249,250,0.88) 0%, rgba(247,249,250,0.52) 54%, transparent 100%),
    linear-gradient(180deg, rgba(247,249,250,0.28) 0%, transparent 28%, rgba(247,249,250,0.55) 74%, rgba(247,249,250,0.94) 100%);
}
html[data-theme="light"] .hero__jet { opacity: 1; }
html[data-theme="light"] .hero__aircraft-outline { color: #3b4f61; opacity: 0.62; }
html[data-theme="light"] .hero__aircraft-outline > svg :is(path, ellipse) { stroke-width: 1.6; }
html[data-theme="light"] .hero__aircraft-outline > svg :is(path.detail, ellipse.detail, .detail path, .detail ellipse) { stroke-width: 1.05; }
html[data-theme="light"] .hero__aircraft-outline > svg .detail { opacity: 0.72; }
html[data-theme="light"] .hero__aircraft-outline .hero__hoist-cable path { stroke-width: 1.15; }
html[data-theme="light"] .hero__jet svg { filter: drop-shadow(0 22px 42px rgba(0,41,80,0.22)); }
html[data-theme="light"] .hero__inner h1 { text-shadow: 0 2px 28px rgba(255,255,255,0.95); }
html[data-theme="light"] .hero__sub { text-shadow: 0 1px 10px rgba(255,255,255,0.95); }
html[data-theme="light"] .hero__lock-tag { text-shadow: 0 1px 6px rgba(255,255,255,0.9); }

@media (max-width: 900px) {
  .hero {
    align-content: end;
    min-height: clamp(600px, 94dvh, 820px);
    padding-top: clamp(5rem, 16vh, 7rem);
    padding-bottom: clamp(3rem, 7vh, 4rem);
  }
  .hero__jetwrap { left: 58%; top: 38%; width: min(62vw, 310px); }
  .hero__da42-outline { left: 4%; width: min(58vw, 430px); }
  .hero__h145-outline { --heli-lift: 64px; right: 14%; top: 36%; bottom: auto; width: min(48vw, 350px); }
  .hero__lock { left: 58%; top: 30%; width: min(48vw, 240px); }
  .hero__inner { max-width: none; }
  .hero__inner h1 { font-size: clamp(2rem, 7vw, 3rem); max-width: 100%; }
  .hero__anim-toggle { left: auto; right: var(--gutter); top: calc(72px + 0.8rem); bottom: auto; transform: none; }
}
@media (max-width: 560px) {
  .hero__da42-outline { width: 64vw; }
  .hero__h145-outline { width: 56vw; }
}
@media (max-width: 480px) {
  .hero__inner h1 { word-break: normal; }
  .hero__x { font-size: 0.9rem; }
  .hero__x.tl, .hero__x.tr { top: 10px; }
  .hero__x.bl, .hero__x.br { bottom: 10px; }
  .hero__jetwrap { top: 36%; width: min(74vw, 290px); }
  .hero__lock { top: 30%; width: min(56vw, 215px); }
}

/* Shared central stage above the headline for all three aircraft. */
.hero { row-gap: 1.5rem; }
.hero__aircraft-stage {
  position: relative;
  top: calc(-1 * clamp(24px, 4vw, 48px));
  width: 100%;
  height: clamp(260px, 32vw, 360px);
  /* Let banked departures reach the hero edges; retain the floor above the text. */
  overflow: visible;
  clip-path: inset(-100vh -100vw 0);
  z-index: 1;
  pointer-events: none;
}
.hero__aircraft-lane {
  position: absolute;
  inset: 0;
  transform-origin: 50% 35%;
}
.hero__radar-space { position: absolute; left: 0; bottom: 0; height: 80px; width: 100%; pointer-events: none; }
@media (max-width: 700px) {
  .hero { align-content: start; min-height: 0; padding-top: 1rem; }
  .hero__aircraft-stage { top: 0; height: 380px; }
  .hero__aircraft-lane { top: 120px; }
  .hero__radar-space { top: 0; bottom: auto; height: 120px; }
  .hero__aircraft-stage > .hero__lock { margin-top: 66px; }
  .hero__aircraft-stage > .hero__engine-lock { margin-top: 0; }
}
.hero__aircraft-stage .hero__jetwrap { left: 50%; top: 45%; width: clamp(130px, 15vw, 165px); }
.hero__aircraft-stage .hero__lock { left: 50%; top: 40%; width: clamp(120px, 15vw, 170px); }
.hero__aircraft-stage .hero__da42-outline {
  left: 50%; top: 0; bottom: 0; width: min(90%, 560px);
  transform: translateX(-50%);
}
.hero__aircraft-stage .hero__h145-outline {
  --heli-lift: clamp(64px, 10vw, 100px);
  left: 50%; right: auto; top: auto; bottom: 6%; width: min(90%, 500px);
  transform: translateX(-50%);
}

/* Inactive aircraft stay hidden, including while their flight pose resets. */
html[data-hero-aircraft="jet"] .hero__aircraft-stage .hero__jetwrap,
html[data-hero-aircraft="da42"] .hero__aircraft-stage .hero__da42-outline,
html[data-hero-aircraft="h145"] .hero__aircraft-stage .hero__h145-outline { z-index: 2; }
html[data-hero-aircraft="jet"] .hero__aircraft-stage .hero__aircraft-outline,
html[data-hero-aircraft="da42"] .hero__aircraft-stage .hero__h145-outline,
html[data-hero-aircraft="h145"] .hero__aircraft-stage .hero__da42-outline {
  visibility: hidden;
}
html[data-hero-aircraft="da42"] .hero__aircraft-stage .hero__jetwrap,
html[data-hero-aircraft="h145"] .hero__aircraft-stage .hero__jetwrap {
  visibility: hidden;
}
html[data-hero-aircraft="da42"] .hero__aircraft-stage .hero__lock,
html[data-hero-aircraft="h145"] .hero__aircraft-stage .hero__lock {
  visibility: hidden;
}

/* ---------- 8. Trust-Leiste ---------- */
.trust { padding-block: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.trust__row { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 3rem; }
.trust__label { flex-shrink: 0; }
.trust__partners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.8rem; width: 100%; order: 2; }
.trust__partners a {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 128px;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid #dce3e8;
  border-radius: var(--r-flat);
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}
.trust__partners img { display: block; width: 100%; max-width: 180px; height: 80px; object-fit: contain; }
.trust__partners a:hover { border-color: var(--accent); }
.trust__partners a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.trust__stats {
  order: 1;
  margin-left: auto;
  display: flex;
  gap: 1.4rem 2rem;
  flex-wrap: wrap;
}
@media (max-width: 1000px) { .trust__partners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .trust__stats { margin-left: 0; width: 100%; }
  .trust__partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.trust__stat { display: flex; flex-direction: column; }
.trust__stat b { font-family: var(--font-mono); font-size: 1.1rem; color: var(--text); font-weight: 700; }
.trust__stat small { font-size: 0.7rem; color: var(--text-mute); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- 9. Leistungen ---------- */
.capabilities__layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.capabilities__aside {
  position: sticky; top: 96px; align-self: start;
  display: flex; flex-direction: column;
}
.capabilities__aside h2 { margin-bottom: 1.2rem; }
.capabilities__aside p { margin-bottom: 0; }
.capabilities__img {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--r-flat);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
.capabilities__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.85); }
.capabilities__img::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,41,80,0.32); mix-blend-mode: multiply;
}
.cap-list { border-top: 1px solid var(--line-2); }
.cap {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.2rem;
  padding: 1.6rem 0 1.6rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s;
}
/* --- linke Akzentkante: zeichnet sich beim Reveal ein (fuellt die
       lange Liste mit Rhythmus, statt "laeuft an der Sticky-Box vorbei") --- */
.cap::before {
  content: ""; position: absolute; left: 0; top: 1.6rem; bottom: 1.6rem;
  width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
}
@media (prefers-reduced-motion: no-preference) {
  .cap.reveal::before { transition: transform 0.5s var(--ease) 0.08s; }
  .cap.reveal.is-in::before { transform: scaleY(1); }
  .cap-list .cap:nth-child(2).is-in::before { transition-delay: 0.14s; }
  .cap-list .cap:nth-child(3).is-in::before { transition-delay: 0.2s; }
  .cap-list .cap:nth-child(4).is-in::before { transition-delay: 0.26s; }
  .cap-list .cap:nth-child(5).is-in::before { transition-delay: 0.32s; }
  .cap-list .cap:nth-child(6).is-in::before { transition-delay: 0.38s; }
}
@media (prefers-reduced-motion: reduce) {
  .cap::before { transform: scaleY(1); opacity: 0.5; }
}
.cap:hover { background: linear-gradient(90deg, var(--hud-soft), transparent 70%); }
.cap:hover::before { background: var(--accent-hi); }
.cap__no { font-family: var(--font-mono); font-size: 0.8rem; color: var(--hud); padding-top: 0.2rem; }
.cap h3 { margin-bottom: 0.5rem; }
.cap p { font-size: var(--step-sm); max-width: 52ch; }

@media (max-width: 820px) {
  .capabilities__layout { grid-template-columns: 1fr; }
  .capabilities__aside { position: static; }
  .capabilities__img { aspect-ratio: 4 / 3; max-width: 460px; flex: 0 0 auto; }
}

/* ---------- 10. Karriere ---------- */
.careers { background: var(--bg-1); border-block: 1px solid var(--line); }
.careers__top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: 3rem;
}
.careers__top p { margin-top: 1.2rem; }
.roles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-flat); overflow: hidden; }
.role {
  background: var(--surface);
  padding: 1.5rem clamp(1.2rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
  transition: background-color 0.2s;
}
.role:hover { background: var(--surface-2); }
.role h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.role__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line-2);
  padding: 0.28rem 0.6rem;
  border-radius: var(--r-pill);
}
.role__link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hud);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.role:hover .role__link { color: var(--accent); }
.careers__foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.careers__foot p { font-size: var(--step-sm); }
.careers__foot a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-hud);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.careers__foot a:hover { color: var(--accent); text-decoration-color: var(--accent); }
@media (max-width: 820px) {
  .careers__top { grid-template-columns: 1fr; align-items: start; }
  .role { grid-template-columns: 1fr; }
}

/* ---------- 11. Simulation & Training ---------- */
.milsim__layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

/* --- Cyclic-Stick-Ansicht (links) --- */
.stickview {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-hud);
  border-radius: var(--r-flat);
  background: var(--bg-1);
  overflow: hidden;
}
.stickview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hud);
}
.stickview__toggle {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-flat);
  color: var(--hud);
  transition: color 0.2s, border-color 0.2s;
}
.stickview__toggle[hidden] { display: none; }
.stickview__toggle:hover { color: var(--text); border-color: var(--hud); }
.stickview__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stickview__toggle svg { width: 11px; height: 11px; fill: currentColor; display: block; }
.stickview__toggle .i-play { display: none; }
.stickview__toggle[aria-pressed="true"] .i-pause { display: none; }
.stickview__toggle[aria-pressed="true"] .i-play { display: block; }

.stickview__stage {
  position: relative;
  aspect-ratio: 5 / 4;
  background: #eeeeec;
  box-shadow: inset 0 0 0 1px rgba(4, 7, 11, 0.12), inset 0 22px 60px rgba(4, 7, 11, 0.08);
}
.stickview__media {
  position: absolute;
  inset: 0;
}
.stickview__media[hidden] { display: none; }
.stickview__media img,
.stickview__video,
.stickview__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.stickview__video { background: transparent; }
.stickview__media--contain img { object-fit: contain; }
.stickview__caption {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--text-mute);
  text-align: center;
}

/* --- Schema (Baugruppe 04) --- */
.stickview__media--schema { background: #eeeeec; }
.stickview__media--schema svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.schema__tl,
.schema__br {
  position: absolute;
  font-family: var(--font-mono);
  color: rgba(12, 24, 36, 0.5);
}
.schema__tl {
  left: 16px; top: 14px;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
}
.schema__br {
  right: 16px; bottom: 14px;
  font-size: 9.5px; letter-spacing: 0.06em;
  color: rgba(12, 24, 36, 0.4);
}
@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes flowSlow { to { stroke-dashoffset: -60; } }
@keyframes pulseDot { 0%, 100% { opacity: 0.25; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.schema__led {
  animation: pulseDot 1.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.schema__ping {
  animation: pulseDot 1.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@supports not (offset-path: path("M0 0")) {
  .stickview__media--schema circle[style*="offset-path"] { display: none; }
}
.stickview[data-anim="paused"] .stickview__media--schema *,
.stickview[data-anim="paused"] .schema__led,
.stickview[data-anim="paused"] .schema__ping { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .stickview__video { display: none; }
  .stickview__toggle { display: none; }
  .stickview__media--schema [style*="animation"],
  .stickview__media--schema circle[style*="offset-path"],
  .schema__led,
  .schema__ping { animation: none !important; }
  .stickview__media--schema circle[style*="offset-path"] { display: none; }
}

/* --- Detailkarte (rechts) --- */
.simcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-flat);
  background: var(--surface);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.stickpick {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.stickpick__btn {
  flex: 1;
  padding: 0.5rem 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-flat);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.stickpick__btn:hover { color: var(--text); border-color: var(--hud); }
.stickpick__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stickpick__btn.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}
.simcard__idx { font-family: var(--font-mono); font-size: 0.68rem; color: var(--hud); letter-spacing: 0.16em; }
.simcard h3 { margin: 0.55rem 0 0.9rem; }
.simcard p { font-size: var(--step-sm); }
.simcard [data-detail]:not([hidden]) { animation: sim-fade 0.32s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .simcard [data-detail]:not([hidden]) { animation: none; }
}
@keyframes sim-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.simcard__specs {
  margin: 1.6rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
}
.simcard__specs div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.simcard__specs dt { color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.simcard__specs dd { color: var(--text); text-align: right; margin-left: auto; }
.simcard__cert {
  margin-top: 1.4rem;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--good);
  border: 1px solid color-mix(in srgb, var(--good) 40%, transparent);
  padding: 0.32rem 0.7rem;
  border-radius: var(--r-pill);
}
.milsim__note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-mute);
  max-width: 88ch;
  border-left: 2px solid var(--line-hud);
  padding-left: 1rem;
}
.milsim__cta { margin-top: 1.6rem; }
@media (max-width: 860px) {
  .milsim__layout { grid-template-columns: 1fr; }
  .stickview__stage { aspect-ratio: 4 / 3; }
}
@media (max-width: 460px) {
  .stickpick { flex-wrap: wrap; }
  .stickpick__btn { flex: 1 1 40%; }
}

/* ---------- 12. Produkte / Shop ---------- */
.products__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-flat);
  overflow: hidden;
}
.product {
  background: var(--surface);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background-color 0.25s;
  position: relative;
}
.product:hover { background: var(--surface-2); }
.product--4 { grid-column: span 4; }
.product--3 { grid-column: span 3; }
.product--2 { grid-column: span 2; }
.product--wide { grid-column: span 6; flex-direction: row; align-items: center; }
.product__media {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-flat);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product__media { max-height: 260px; }
.product--4 .product__media { aspect-ratio: 21 / 9; }
.product--wide .product__media { width: 300px; flex-shrink: 0; aspect-ratio: 4 / 3; max-height: none; }
.product__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* CD-Vorgabe "Farbueberlagerung": Bildwelt an Dark-Theme angleichen */
  filter: saturate(0.85) brightness(0.9) contrast(1.05);
}
.product__media::after { /* dunkelblau multipliziert, siehe CD Kap. 10 */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 41, 80, 0.3);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.product__media--empty::after { display: none; }
.product__media--art { background: var(--bg-1); }
.product__media--art::after { display: none; }
.product__media--art svg { width: 100%; height: 100%; display: block; }
.product:hover .product__media img { filter: saturate(1) brightness(1) contrast(1); }
.product__media--empty {
  place-content: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, rgba(126,162,190,0.05) 10px 11px),
    var(--bg-1);
}
.product__body { display: flex; flex-direction: column; gap: 0.5rem; }
.product h3 { font-size: 1.1rem; }
.product p { font-size: var(--step-sm); max-width: 44ch; }
.product__meta {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hud);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.product:hover .product__meta { color: var(--accent); }
.products__foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.products__foot p { font-size: var(--step-sm); }
@media (max-width: 900px) {
  .products__grid { grid-template-columns: 1fr 1fr; }
  .product--4, .product--3, .product--2, .product--wide { grid-column: span 1; }
  .product--wide { flex-direction: column; align-items: stretch; }
  .product--wide .product__media { width: 100%; }
}
@media (max-width: 560px) {
  .products__grid { grid-template-columns: 1fr; }
}

/* ---------- Neway Flight Ops ---------- */
.flightops {
  border-block: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--hud) 10%, var(--bg-1)) 0%, var(--bg-1) 72%);
}
.flightops__head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.flightops__head h2 { margin-top: 1rem; }
.flightops__head p { max-width: 58ch; font-size: var(--step-body); }
.flightops__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  margin: 0;
  list-style: none;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.flightops__services li {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 1rem 1.2rem 1rem 2.8rem;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
}
.flightops__services li::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent);
  transform: rotate(45deg);
}
.flightops__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
}
.flightops__foot p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }
@media (max-width: 760px) {
  .flightops__head, .flightops__services { grid-template-columns: 1fr; }
}

/* ---------- 13. Ueber uns ---------- */
.about__layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.about__body p + p { margin-top: 1.1rem; }
.about__body .lead { margin-bottom: 1.4rem; }
.factsheet {
  border: 1px solid var(--line);
  border-radius: var(--r-flat);
  background: var(--surface);
  padding: clamp(1.4rem, 3vw, 2rem);
  align-self: start;
  display: grid;
  gap: 1.3rem;
}
.factsheet div { display: grid; gap: 0.3rem; }
.factsheet dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.factsheet dd { font-size: 0.92rem; color: var(--text); }
.factsheet dd a { color: var(--hud); }
.factsheet a:hover { color: var(--accent); }
.factsheet dd a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 820px) { .about__layout { grid-template-columns: 1fr; } }

/* --- Team --- */
.about__layout .team { grid-column: 1 / -1; margin-top: clamp(2.6rem, 6vw, 4.5rem); }
.team .klabel { display: block; }
.team__title { margin: 0.9rem 0 1.8rem; }
.team__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-flat);
  overflow: hidden;
}
.team-card {
  background: var(--surface);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.team-card__body { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.team-card__name { font-size: 1.05rem; margin: 0; letter-spacing: -0.01em; }
.team-card__role {
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--hud);
  margin: 0.1rem 0 0.3rem;
}
.team-card__bio { font-size: var(--step-sm); color: var(--text-dim); margin: 0; max-width: none; }
.team-card__link {
  margin-top: auto; align-self: flex-start;
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-flat);
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s;
}
.team-card__link:hover { color: var(--accent); border-color: var(--accent); }
.team-card__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.team-card__link svg { width: 16px; height: 16px; fill: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  /* nur Transform-Versatz (kein eigenes opacity-Gate) - faellt die
     Einblendung aus, bleiben die Karten trotzdem sichtbar */
  .team-card { transform: translateY(12px); transition: transform 0.5s var(--ease); }
  .team.is-in .team-card { transform: none; }
  .team.is-in .team-card:nth-child(2) { transition-delay: 0.09s; }
  .team.is-in .team-card:nth-child(3) { transition-delay: 0.18s; }
  .team.is-in .team-card:nth-child(4) { transition-delay: 0.27s; }
}
@media (max-width: 900px) { .team__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team__grid { grid-template-columns: 1fr; } }

/* ---------- 13b. News ---------- */
.news__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-flat);
  overflow: hidden;
}
.news-feature {
  background: var(--surface);
  display: flex; flex-direction: column;
  color: inherit;
  transition: background-color 0.2s var(--ease);
}
.news-feature:hover { background: var(--surface-2); }
.news-feature:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.news-feature__media { aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: var(--bg-1); }
.news-feature__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.9) contrast(1.05); }
.news-feature__media::after { content: ""; position: absolute; inset: 0; background: rgba(0,41,80,0.28); mix-blend-mode: multiply; }
.news-feature:hover .news-feature__media img { filter: none; }
.news-feature__body { padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.news-feature__eyebrow {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-mute);
}
.news-feature__body h3 { font-size: 1.2rem; margin: 0; }
.news-feature__body p { font-size: var(--step-sm); color: var(--text-dim); margin: 0; max-width: 54ch; }
.news-feature__cta {
  margin-top: auto; padding-top: 0.4rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--hud);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.news-feature:hover .news-feature__cta { color: var(--accent); }
.news-list { list-style: none; margin: 0; padding: 0; background: var(--surface); display: flex; flex-direction: column; }
.news-item {
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.news-item:target { background: var(--surface-2); outline: 2px solid var(--accent); outline-offset: -2px; }
.news-item:last-child { border-bottom: 0; }
.news-item__date {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.news-item h3 { font-size: 1rem; margin: 0; }
.news-item p { font-size: var(--step-sm); color: var(--text-dim); margin: 0; }
.news-item__link {
  margin-top: 0.3rem; font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.06em; color: var(--hud);
}
.news-item__link:hover { color: var(--accent); }
@media (max-width: 820px) { .news__grid { grid-template-columns: 1fr; } }

/* ---------- 14. Kontakt ---------- */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.field { display: grid; gap: 0.5rem; margin-bottom: 1.3rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input, .field textarea {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-flat);
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field textarea:focus { border-color: var(--hud); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--hud);
}
.field textarea { resize: vertical; min-height: 120px; }
.field__err {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--accent-hi);
  min-height: 1em;
}
.field--invalid input, .field--invalid textarea { border-color: var(--accent-hi); }

/* Anhaenge / Dropzone */
.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 88px;
  border: 1px dashed var(--line-hud);
  border-radius: var(--r-flat);
  background: var(--bg-1);
  transition: border-color 0.2s, background-color 0.2s;
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.dropzone__cue {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--text-mute);
  text-align: center;
  pointer-events: none;
}
.dropzone:hover { border-color: var(--hud); }
.dropzone:focus-within {
  border-color: var(--hud);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.dropzone[data-drag="over"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-1));
}
.field--invalid .dropzone { border-color: var(--accent-hi); }
.dropzone__hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--text-mute);
}
.filelist { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.filelist:empty { display: none; }
.filechip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.55rem 0.5rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-flat);
  background: var(--bg-1);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.filechip__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.filechip__size {
  flex-shrink: 0;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}
.filechip__x {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-flat);
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s;
}
.filechip__x:hover { color: var(--accent-hi); border-color: var(--accent-hi); }
.filechip__x svg { width: 11px; height: 11px; display: block; }
.form__status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-flat);
  border: 1px solid var(--line-2);
  margin-bottom: 1.2rem;
  display: none;
}
.form__status[data-state="ok"] { display: block; color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.form__status[data-state="err"] { display: block; color: var(--accent-hi); border-color: color-mix(in srgb, var(--accent-hi) 40%, transparent); }
.form__status[data-state="pending"] { display: block; color: var(--text-dim); }

/* Honeypot: fuer Menschen unsichtbar, fuer Bots ausfuellbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Einwilligung (DSG/DSGVO) */
.field--consent { margin-bottom: 1.4rem; }
.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 0.65rem; align-items: start;
  font-family: var(--font-sans) !important;
  font-size: 0.82rem !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--text-dim) !important;
  line-height: 1.5;
  cursor: pointer;
}
.consent input {
  width: 1.1rem; height: 1.1rem; margin-top: 0.15rem;
  accent-color: var(--accent);
  border-radius: 0;
}
.consent a { color: var(--accent); text-underline-offset: 2px; }
.field--consent.field--invalid .consent { color: var(--accent-hi) !important; }
.field--consent.field--invalid .consent input { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.contact__direct { display: grid; gap: 1.6rem; align-content: start; }
.contact__direct .factsheet { gap: 1.1rem; }
.contact__note { font-size: 0.78rem; color: var(--text-mute); border-left: 2px solid var(--line-hud); padding-left: 1rem; }
@media (max-width: 820px) { .contact__layout { grid-template-columns: 1fr; } }

/* ---------- 15. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2.5rem;
}
.footer__brand img { height: 22px; margin-bottom: 1rem; }
.footer__brand p { font-size: 0.82rem; max-width: 34ch; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer__col a { display: block; font-size: 0.85rem; color: var(--text-dim); padding: 0.35rem 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }
.footer__bar {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}
.footer__export { max-width: 100%; margin-top: 1rem; font-size: 0.66rem; color: var(--text-mute); font-family: var(--font-mono); line-height: 1.7; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- 16. Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover .btn__arrow, .btn:active { transform: none; }
}

/* ---------- 11b. Projekte / Weltkarte ---------- */
.projects { border-block: 1px solid var(--line); background: var(--bg-1); overflow: hidden; }
.projects__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 4vw, 2.6rem);
}
.projects__side {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.4rem;
  align-items: flex-start;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
}
.projects__regions { display: flex; flex-wrap: wrap; gap: 0.6rem; flex: 1 1 240px; margin: 0; align-content: flex-start; }
.projects__regions .tag {
  border-color: var(--line-hud);
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.projects__regions .tag:hover { border-color: var(--accent); color: var(--accent); }
.projects__regions .tag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.projects__regions .tag[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.projects__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  flex: 2 1 380px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-flat);
  overflow: hidden;
}
.projects__stats div { background: var(--bg-1); padding: 0.9rem 0.9rem; }
.projects__stats b { display: block; font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--text); }
.projects__stats small { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
.projects__note { flex-basis: 100%; margin: 0; font-size: 0.8rem; color: var(--text-mute); border-left: 2px solid var(--line-hud); padding-left: 1rem; max-width: 70ch; }

/* --- Selected European markets --- */
.worldmap {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  aspect-ratio: 5 / 3;
  border: 1px solid var(--line-hud);
  border-radius: var(--r-flat);
  overflow: hidden;
  background: radial-gradient(100% 120% at 50% 30%, rgba(0, 103, 159, 0.16), transparent 70%), var(--bg-1);
}
.country-map { display: block; width: 100%; height: 100%; }
.country-map__grid path { fill: none; stroke: rgba(156, 158, 158, 0.1); stroke-width: 1; }
.country-map__shape {
  fill: rgba(0, 103, 159, 0.28);
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.2s var(--ease), opacity 0.2s var(--ease), filter 0.2s var(--ease);
}
.country-map__shape:hover,
.country-map__shape:focus-visible,
.country-map__shape.is-active { fill: var(--accent); outline: none; filter: drop-shadow(0 0 8px rgba(240, 120, 0, 0.45)); }
.country-map__shape.is-dim,
.country-map__label.is-dim { opacity: 0.25; }
.country-map__label { pointer-events: none; transition: opacity 0.2s var(--ease); }
.country-map__label circle { fill: var(--bg); stroke: var(--line-hud); stroke-width: 1.5; }
.country-map__label text { fill: var(--text); font: 700 14px var(--font-sans); letter-spacing: 0.08em; }
.country-map__label.is-active circle { fill: var(--accent); stroke: var(--accent); }
.country-map__label.is-active text { fill: var(--accent-ink); }
.country-map__home circle:not(.country-map__pulse) { fill: var(--accent); }
.country-map__home text { fill: var(--text); font: 600 12px var(--font-sans); }
.country-map__pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0.5; }
.worldmap__readout {
  position: absolute;
  left: 12px;
  bottom: 10px;
  margin: 0;
  padding: 0.25rem 0.6rem;
  background: rgba(0, 0, 0, 0.8);
  font: 600 0.75rem var(--font-sans);
  letter-spacing: 0.05em;
  color: var(--text);
  pointer-events: none;
}
.worldmap__readout:empty { display: none; }
html[data-theme="light"] .worldmap__readout { background: rgba(255, 255, 255, 0.92); }


/* Projekt-Fallstudien */
.projects__cases-title {
  margin: clamp(2.5rem, 6vw, 4rem) 0 1.4rem;
  font-size: 1.2rem;
}
.projects__cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-flat);
  overflow: hidden;
}
/* Bei ungerader Kachelzahl bleibt sonst eine leere Zelle rechts -> letzte
   Kachel spannt dann die volle Breite statt halb leer zu bleiben. */
.projects__cases .case:last-child:nth-child(odd) { grid-column: 1 / -1; }
.case {
  position: relative;
  background: var(--surface);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
/* Ganze Kachel klickbar: unsichtbarer Link ueber der Karte */
.case__link { position: static; color: inherit; }
.case__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.case:hover { background: var(--surface-2); }
.case:has(.case__link:hover) { transform: translateY(-2px); }
.case:has(.case__link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.case:hover .case__link, .case .case__link:focus-visible { color: var(--accent); }
.case__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Sekundaerlinks (z. B. Datenblatt) muessen ueber dem Overlay klickbar bleiben */
.case > .case__doc { position: relative; z-index: 2; }
.case__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-flat);
  overflow: hidden;
  background: var(--bg-1);
}
.case__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.9) contrast(1.05); }
.case__media::after { content: ""; position: absolute; inset: 0; background: rgba(0,41,80,0.3); mix-blend-mode: multiply; }
.case__media--empty {
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-mute);
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, rgba(126,162,190,0.05) 10px 11px),
    var(--bg-1);
}
.case__media--empty::after { display: none; }
.case__media--contain {
  /* Hochformatiges Objektfoto (z. B. Magnetic Switch): leicht hochformatige Box,
     damit das Teil nicht als schmaler Streifen erscheint, ohne die Kachel zu
     stark gegenueber den anderen zu strecken */
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 78% at 50% 24%, rgba(126,162,190,0.09), transparent 68%),
    var(--bg-1);
}
.case__media--contain::after { display: none; }
.case__media--contain img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.9rem 0;
  filter: none;
}
.case__doc {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hud);
  transition: color 0.2s;
}
.case__doc:hover { color: var(--accent); }
.case h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.case p { font-size: var(--step-sm); }
.case .tag { align-self: flex-start; border-color: var(--line-hud); color: var(--text); }

/* ---------- Slideshow (Produkt- / Projekt-Medien) ---------- */
.slides { position: relative; width: 100%; height: 100%; }
.slides__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.slides__img:first-child { opacity: 1; }
.slides__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.slides__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(233, 238, 243, 0.35);
  box-shadow: 0 0 0 1px rgba(4, 7, 11, 0.35);
}
.slides__dot:first-child { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .slides__img { animation: slidefade 13s ease-in-out infinite; }
  .slides__img:nth-child(2) { animation-delay: -6.5s; }
  .slides__dot { animation: slidedot 13s step-end infinite; }
  .slides__dot:nth-child(2) { animation-delay: -6.5s; }
  .slides:hover .slides__img,
  .slides:hover .slides__dot,
  .slides:focus-within .slides__img,
  .slides:focus-within .slides__dot { animation-play-state: paused; }
}
@keyframes slidefade {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes slidedot {
  0%, 46% { background: var(--accent); }
  50%, 100% { background: rgba(233, 238, 243, 0.35); }
}

@media (max-width: 860px) {
  .projects__cases { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .worldmap { aspect-ratio: 3 / 2; }
  .projects__stats { flex-basis: 100%; }
}

/* ---------- 11c. Medien / YouTube ---------- */
.media { border-block: 1px solid var(--line); }
.media__head { max-width: 62ch; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.media__head h2 { margin: 1rem 0; }
.media__head .klabel { display: block; }
.media__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 980px;
  margin-inline: auto;
  border: 1px solid var(--line-hud);
  border-radius: var(--r-flat);
  overflow: hidden;
  background: var(--bg-1);
}
.media__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media__poster { position: absolute; inset: 0; width: 100%; cursor: pointer; display: block; padding: 0; background: none; }
.media__poster img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.7); }
.media__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(4,7,11,0.15), rgba(4,7,11,0.6));
}
.media__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 999px;
  background: var(--accent);
  display: grid;
  place-items: center;
  transition: transform 0.18s var(--ease), background-color 0.2s;
}
.media__poster:hover .media__play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent-hi); }
.media__play::before {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent var(--accent-ink);
  margin-left: 4px;
}
.media__tag {
  position: absolute; left: 14px; top: 12px; z-index: 3;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--hud);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.media__corner { position: absolute; width: 12px; height: 12px; border: 1px solid var(--hud); z-index: 3; }
.media__corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.media__corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.media__foot {
  max-width: 980px;
  margin: 1.2rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: baseline;
  justify-content: space-between;
}
.media__now { font-size: var(--step-sm); color: var(--text-dim); max-width: 62ch; }
.media__now b { display: block; color: var(--text); font-weight: 600; margin: 0.15rem 0; }
.media__now #yt-date { display: block; font-size: 0.8rem; color: var(--text-mute); }
.media__now .media__label {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-mute);
}
@media (max-width: 560px) { .media__play { width: 60px; height: 60px; } }

/* ---------- 16b. Phone-Haertung ---------- */
@media (max-width: 480px) {
  :root { --step-h2: 1.5rem; }
  h1, h2, h3 { word-break: normal; overflow-wrap: anywhere; }
  .btn { --pad-y: 0.8rem; padding-inline: 1.2rem; font-size: 0.74rem; }
  .nav { gap: 1rem; }
  .trust__partners span { font-size: 0.88rem; }
}

/* ---------- 16c. Rechtstexte ---------- */
.legal { padding-block: clamp(3rem, 7vw, 6rem); }
.legal__wrap { max-width: 760px; margin-inline: auto; }

/* Rechtstexte DE/EN: Erstauswahl per <head>-Inline-Script (Klasse .lc-en),
   damit es keinen Flash gibt. Ohne JS bleibt Deutsch sichtbar. */
[data-lc="en"] { display: none; }
.lc-en [data-lc="de"] { display: none; }
.lc-en [data-lc="en"] { display: revert; }
.legal__back {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--hud); display: inline-flex; gap: 0.4rem;
  margin-bottom: 2.5rem;
}
.legal__back:hover { color: var(--accent); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.6rem; }
.legal__meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-mute); letter-spacing: 0.08em; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2.5rem 0 0.8rem; }
.legal h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; color: var(--text); }
.legal p, .legal li { color: var(--text-dim); font-size: 0.98rem; }
.legal p + p { margin-top: 0.9rem; }
.legal ul { margin: 0.8rem 0 0.8rem 1.2rem; list-style: disc; display: grid; gap: 0.4rem; }
.legal a { color: var(--hud); }
.legal a:hover { color: var(--accent); }
.legal__box {
  border: 1px solid var(--line-hud);
  border-radius: var(--r-flat);
  background: var(--surface);
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
  font-size: 0.88rem;
}
.legal address { font-style: normal; line-height: 1.7; }

/* ---------- 16c. Social-Icons (Footer) ---------- */
.footer__social { display: flex; gap: 0.55rem; margin-top: 1.3rem; }
.footer__social a {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line-hud);
  border-radius: var(--r-flat);
  color: var(--text-dim);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.footer__social a:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.footer__social a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.footer__social svg { width: 18px; height: 18px; display: block; fill: currentColor; }
.footer__bar .footer__social { margin-top: 0; }

/* ---------- 16d. Case Studies ---------- */
.casestudy .legal__meta { margin-bottom: 1.4rem; }
.casestudy__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.casestudy__tags .tag { border-color: var(--line-hud); color: var(--text); }
.casestudy .lead {
  font-size: 1.12rem; line-height: 1.6; color: var(--text);
  margin-bottom: 2rem;
}
.cs-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-flat);
  overflow: hidden;
  margin: 2rem 0 2.4rem;
}
@media (max-width: 560px) { .cs-facts { grid-template-columns: repeat(2, 1fr); } }
.cs-facts > div { background: var(--bg-1); padding: 1rem 1.1rem; }
.cs-facts dt {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 0.35rem;
}
.cs-facts dd { margin: 0; font-size: 0.9rem; color: var(--text); }
.casestudy h2 { font-size: 1.3rem; margin: 2.6rem 0 0.8rem; }
.cs-figure { margin: 2.2rem 0; }
.cs-figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--r-flat);
  background: var(--bg-1);
}
/* Hochformatiges Objekt-Foto: mittig, begrenzte Hoehe, kein Zwangs-Seitenverhaeltnis */
.cs-figure--contain img {
  width: auto; max-width: 100%;
  max-height: 460px;
  margin-inline: auto;
  padding: 0.5rem 0;
  background: transparent;
  border: 0;
}
.cs-figure figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.5;
  letter-spacing: 0.02em; color: var(--text-dim);
}
/* Hochformatiger App-Screenshot: mittig, hoehenbegrenzt */
.cs-figure--shot img {
  width: auto; max-width: 100%;
  max-height: 620px;
  margin-inline: auto;
}
/* Bildergalerie / Slideshow + Lightbox (Case Studies) */
.gallery {
  margin: 2.2rem 0;
  border: 1px solid var(--line);
  border-radius: var(--r-flat);
  background: var(--bg-1);
  overflow: hidden;
}
.gallery__stage { position: relative; }
.gallery__slide { margin: 0; }
.gallery__slide img {
  width: 100%; height: auto; display: block;
  max-height: 66vh; object-fit: contain;
  background: var(--bg-1);
  filter: saturate(0.95) brightness(0.97);
}
/* Alle Slides liegen in EINER Grid-Zelle uebereinander: die Buehne ist damit
   immer so hoch wie der hoechste Slide und wackelt beim Durchklicken nicht,
   auch wenn die Bilder unterschiedliche Seitenverhaeltnisse haben. So bleiben
   die Pfeile (top: 50 %) und der Mauszeiger an derselben Stelle. */
.gallery--ready .gallery__stage { display: grid; align-items: center; }
.gallery--ready .gallery__stage > .gallery__slide { grid-area: 1 / 1; width: 100%; }
.gallery__slide figcaption {
  padding: 0.85rem clamp(0.9rem, 3vw, 1.4rem);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.5;
  letter-spacing: 0.02em; color: var(--text-dim);
}
/* Ohne JS: alle Slides untereinander, keine Steuerung */
.gallery:not(.gallery--ready) .gallery__slide + .gallery__slide { border-top: 1px solid var(--line); }
/* Inaktive Slides bleiben im Layout (visibility statt display), damit die
   Buehne ihre Hoehe behaelt; nur der aktive Slide ist sichtbar. */
.gallery--ready .gallery__slide { visibility: hidden; }
.gallery--ready .gallery__slide.is-active { visibility: visible; }
.gallery--ready .gallery__slide img { cursor: zoom-in; }
/* Bildtext wandert in ein eigenes Element unter der Buehne, damit er nicht
   mit Pfeilen/Punkten im Bild kollidiert; das Original-figcaption bleibt nur
   fuer den No-JS-Fall sichtbar. */
.gallery--ready .gallery__slide figcaption { display: none; }
.gallery__caption {
  display: none;
  margin: 0;
  padding: 0.85rem clamp(0.9rem, 3vw, 1.4rem);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.5;
  letter-spacing: 0.02em; color: var(--text-dim);
}
.gallery--ready .gallery__caption { display: block; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-hud); border-radius: var(--r-flat);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  color: var(--text); transition: color 0.15s, border-color 0.15s;
}
.gallery__nav:hover { color: var(--accent); border-color: var(--accent); }
.gallery__nav svg { width: 18px; height: 18px; }
.gallery__nav--prev { left: 0.7rem; }
.gallery__nav--next { right: 0.7rem; }
.gallery__count {
  position: absolute; top: 0.7rem; right: 0.9rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em;
  color: var(--text-mute);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  padding: 0.15rem 0.4rem; border-radius: 3px;
}
.gallery__dots {
  display: none;
  justify-content: center; gap: 0.45rem;
  padding: 0.75rem 0;
}
.gallery--ready .gallery__dots { display: flex; }
.gallery__dot {
  width: 7px; height: 7px; border-radius: 999px;
  border: 1px solid var(--line-hud); background: transparent;
  transition: background-color 0.15s, transform 0.15s;
}
.gallery__dot[aria-current="true"] { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }
.gallery--single .gallery__nav, .gallery--single .gallery__dots, .gallery--single .gallery__count { display: none; }

/* --- NavPad-Sektion (Startseite) --- */
.navpad-sec__gallery { max-width: 440px; margin: 2.2rem auto 0; }
.navpad-sec__gallery .gallery__slide img { max-height: 560px; }
.navpad-sec__links { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem auto 0; max-width: 440px; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 7, 11, 0.95);
  backdrop-filter: blur(3px);
}
html[data-theme="light"] .lightbox {
  --text: #ffffff;
  --text-dim: #c4c5c5;
  --text-mute: #9c9e9e;
  --line-hud: rgba(0, 160, 220, 0.48);
}
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; min-width: 0; }
.lightbox__fig img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  border: 1px solid var(--line-hud); border-radius: var(--r-flat);
}
.lightbox__fig figcaption {
  font-family: var(--font-mono); font-size: 0.92rem; line-height: 1.5;
  letter-spacing: 0.01em; color: var(--text); text-align: center; max-width: 60ch;
}
.lightbox__nav {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid var(--line-hud); border-radius: var(--r-flat);
  background: transparent; color: var(--text);
  transition: color 0.15s, border-color 0.15s;
}
.lightbox__nav:hover { color: var(--accent); border-color: var(--accent); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close {
  position: absolute; top: clamp(0.8rem, 3vw, 1.6rem); right: clamp(0.8rem, 3vw, 1.6rem);
  width: 40px; height: 40px; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center;
  border: 1px solid var(--line-hud); border-radius: var(--r-flat);
  background: transparent; color: var(--text);
}
.lightbox__close:hover { color: var(--accent); border-color: var(--accent); }
.lightbox__count {
  position: absolute; top: clamp(0.9rem, 3vw, 1.7rem); left: clamp(0.9rem, 3vw, 1.7rem);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--text-mute);
}
@media (max-width: 620px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: clamp(1rem, 5vw, 2rem); }
  .lightbox__nav--prev { left: 28%; }
  .lightbox__nav--next { right: 28%; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery__dot { transition: none; }
  .lightbox { backdrop-filter: none; }
}
.cs-inlinelink { margin: 0.6rem 0 0; font-size: 0.86rem; }
.cs-inlinelink a { color: var(--hud); }
.cs-inlinelink a:hover { color: var(--accent); }
.cs-btnlink { margin: 1rem 0 0; }

/* Vergleichstabelle (NavPad OG) */
.cs-inlinelink + .cmp-wrap, h2 + .cmp-wrap { margin-top: 1.2rem; }
.cmp-wrap {
  margin: 1.6rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-flat);
}
.cmp {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.cmp th, .cmp td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.cmp thead th {
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-mute);
  background: var(--bg-1);
  position: sticky; top: 0;
}
.cmp tbody th {
  font-weight: 600;
  color: var(--text);
  width: 12rem;
  white-space: nowrap;
}
.cmp td:nth-child(2) {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-left: 2px solid var(--accent);
}
.cmp td:nth-child(3) { color: var(--text-dim); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp-y { color: var(--good); font-weight: 700; margin-right: 0.3rem; }
.cmp-p { color: var(--accent-hi); font-weight: 700; margin-right: 0.3rem; }
.cmp-n { color: var(--text-mute); }
@media (max-width: 560px) {
  .cmp { font-size: 0.78rem; }
  .cmp th, .cmp td { padding: 0.6rem 0.8rem; }
  .cmp tbody th { width: auto; white-space: normal; }
}
/* Datenblatt-/Handbuch-Link als Button mit Icon */
.cs-docbtn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin: 0.4rem 0 0;
}
.cs-docbtn svg { width: 18px; height: 18px; flex-shrink: 0; }
/* Buttons in Rechtstext-/Case-Study-Kontext: Link-Farbregel der .legal-Seite darf
   die Button-Tinte nicht ueberschreiben */
.legal .btn--primary, .legal .btn--primary:hover { color: var(--accent-ink); }
.legal .btn--ghost { color: var(--text); }
.legal .btn--ghost:hover { color: var(--hud); }
.cs-specs { margin: 1.4rem 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-flat); overflow: hidden; }
.cs-specs > div { background: var(--bg-1); display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 1.1rem; }
.cs-specs dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--text-mute); text-transform: uppercase; }
.cs-specs dd { margin: 0; font-size: 0.88rem; color: var(--text); text-align: right; }
.cs-cta {
  margin: 2.8rem 0 1rem;
  padding: 1.6rem;
  border: 1px solid var(--line-hud);
  border-radius: var(--r-flat);
  background: var(--bg-1);
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
}
.cs-cta p { margin: 0; font-size: 0.95rem; color: var(--text); max-width: 42ch; }

/* ---------- Kontakt-Dialog (Projektseiten) ---------- */
.cmodal {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  max-height: calc(100dvh - 2rem);
  border: 1px solid var(--line-hud);
  border-radius: var(--r-flat);
  background: var(--surface);
  color: var(--text);
  padding: 0;
  max-width: 520px;
  width: calc(100vw - 2rem);
  overflow: auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.cmodal:not([open]) { display: none; }
.cmodal::backdrop { background: rgba(4, 7, 11, 0.72); }
.cmodal__form {
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: clamp(1.4rem, 4vw, 2rem);
  position: relative;
}
.cmodal__x {
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 32px; height: 32px; font-size: 1.4rem; line-height: 1;
  color: var(--text-mute); border-radius: var(--r-flat);
  display: grid; place-items: center;
}
.cmodal__x:hover { color: var(--text); background: var(--surface-2); }
.cmodal__x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cmodal__title {
  font-family: var(--font-display);  font-weight: 700;
  font-size: 1.3rem; letter-spacing: -0.015em; padding-right: 2rem;
}
.cmodal__lead { margin: 0; font-size: 0.86rem; color: var(--text-dim); }
.cmodal__ref {
  display: flex; gap: 0.6rem; align-items: baseline;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-hud); border-radius: var(--r-flat);
  background: var(--bg-1);
}
.cmodal__ref > span {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-mute);
}
.cmodal__ref > b { color: var(--accent); font-weight: 700; font-size: 0.88rem; }
.cmodal__form label {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-mute);
}
.cmodal__form input,
.cmodal__form textarea {
  font: 400 0.95rem/1.5 var(--font-sans);
  letter-spacing: normal; text-transform: none;
  color: var(--text); background: var(--bg-1);
  border: 1px solid var(--line-hud); border-radius: var(--r-flat);
  padding: 0.6rem 0.75rem; width: 100%;
}
.cmodal__form input:focus-visible,
.cmodal__form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cmodal__form textarea { resize: vertical; min-height: 90px; }
.cmodal__form input::placeholder,
.cmodal__form textarea::placeholder { color: var(--text-mute); }
.cmodal__files { display: flex; flex-direction: column; gap: 0.45rem; }
.cmodal__flabel {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.cmodal .dropzone { min-height: 68px; background: var(--bg-1); }
.cmodal .dropzone__cue { padding: 0.7rem 0.9rem; font-size: 0.68rem; }
.cmodal .filelist { margin-top: 0.15rem; }
.cmodal__consent {
  display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start;
  font-size: 0.8rem; color: var(--text-dim); line-height: 1.45; cursor: pointer;
}
.cmodal__consent input { width: 1.05rem; height: 1.05rem; margin-top: 0.1rem; accent-color: var(--accent); }
.cmodal__consent a { color: var(--accent); text-underline-offset: 2px; }
.cmodal__status { margin: 0; font-size: 0.8rem; min-height: 1.1em; }
.cmodal__status[data-state="err"] { color: #ff6b57; }
.cmodal__status[data-state="ok"] { color: var(--good); }
.cmodal__status[data-state="pending"] { color: var(--text-dim); }
.cmodal__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: flex-end; margin-top: 0.2rem; }
.cmodal__actions .btn[disabled] { opacity: 0.55; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .cmodal[open] { animation: cmodal-in 0.22s var(--ease); }
  .cmodal[open]::backdrop { animation: cmodal-bg 0.22s var(--ease); }
}
@keyframes cmodal-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes cmodal-bg { from { opacity: 0; } }

/* ---------- 17. Utility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: 12px;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; border-radius: var(--r-flat); z-index: 100;
  font-family: var(--font-mono); font-size: 0.75rem;
  transform: translateY(calc(-100% - 24px));
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* =====================================================================
   18. Aufwertungen 2026-08-31 (Artefakt "Neway Website Aufwertung")
   Alle Bewegungen compositor-freundlich + per prefers-reduced-motion aus.
   ===================================================================== */

/* --- 08: Bildwelt-Angleich fuer Case-Study-Fotos --- */
.cs-figure img { filter: saturate(0.9) brightness(0.94) contrast(1.04); }
.cs-figure--contain img { filter: none; }

/* --- 10: Freisteller technisch rahmen (Massskala) --- */
.cs-figure--contain { position: relative; }
.cs-scale {
  position: absolute; top: 0.5rem; bottom: 0.5rem; right: 2px;
  width: 34px;
  pointer-events: none;
  font-family: var(--font-mono);
}
.cs-scale::before, .cs-scale::after {
  content: ""; position: absolute; right: 12px; width: 8px;
  border-top: 1px solid var(--line-2);
}
.cs-scale::before { top: 6%; }
.cs-scale::after { bottom: 6%; }
.cs-scale i {
  position: absolute; right: 16px; top: 6%; bottom: 6%;
  border-right: 1px solid var(--line-2);
}
.cs-scale b {
  position: absolute; right: 21px; top: 50%;
  transform: translateY(-50%) rotate(-90deg); transform-origin: right center;
  font-size: 0.56rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-mute); white-space: nowrap;
}
@media (max-width: 620px) { .cs-scale { display: none; } }

/* --- 06: Sektions-Rail 00-07 --- */
.section-rail {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 0.5rem 0;
}
.section-rail a {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em;
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.section-rail a::before {
  content: ""; width: 14px; height: 1px; background: currentColor;
  transition: width 0.2s var(--ease), background-color 0.2s var(--ease);
}
.section-rail a .rail__label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  opacity: 0;
  transition: max-width 0.25s var(--ease), opacity 0.2s var(--ease);
}
.section-rail a:hover, .section-rail a:focus-visible { color: var(--text); outline: none; }
/* Label bleibt ausgeklappt, solange die Maus irgendwo in der Leiste ist (nicht nur
   exakt ueber einem Link) - sonst klappt es beim Wandern zwischen zwei Zeilen
   kurz zu und wieder auf, das erschwert die Bedienung. */
.section-rail:hover .rail__label,
.section-rail:focus-within .rail__label { max-width: 12rem; opacity: 1; }
.section-rail a[aria-current="true"] { color: var(--accent); }
.section-rail a[aria-current="true"]::before { width: 26px; background: var(--accent); }
@media (max-width: 1240px) { .section-rail { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .section-rail a::before, .section-rail a .rail__label { transition: none; }
}

/* --- 11: Zeitstrahl "seit 2016" (Ueber uns) - vertikal, orchestrierter Reveal --- */
.about__layout .timeline { grid-column: 1 / -1; }
.timeline {
  margin-top: 2.6rem;
  padding: 0;
  list-style: none;
  position: relative;
}
/* Ruecken: waechst beim Reveal von oben nach unten */
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 15%, transparent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.85s var(--ease);
}
.timeline.is-in::before { transform: scaleY(1); }
.timeline__step {
  position: relative;
  padding: 0 0 1.7rem 2.5rem;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.timeline__step:last-child { padding-bottom: 0; }
/* Knoten: eigenes Pseudo ohne transition-delay -> Hover reagiert sofort.
   Bleibt an der Spine, weil es am .timeline__step haengt, nicht an der Reihe. */
.timeline__step::before {
  content: "";
  position: absolute;
  left: 1px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-sizing: border-box;
  transform: scale(0);
  transition: transform 0.32s var(--ease), background-color 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.timeline__step::after {    /* einmaliger Ping beim Erscheinen */
  content: "";
  position: absolute;
  left: 1px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
}
.tl-row { transition: transform 0.26s var(--ease); }
.timeline.is-in .timeline__step { opacity: 1; transform: none; }
.timeline.is-in .timeline__step::before { transform: scale(1); }
.timeline.is-in .timeline__step:nth-child(1) { transition-delay: 0.30s; }
.timeline.is-in .timeline__step:nth-child(2) { transition-delay: 0.44s; }
.timeline.is-in .timeline__step:nth-child(3) { transition-delay: 0.58s; }
.timeline.is-in .timeline__step:nth-child(4) { transition-delay: 0.72s; }
.timeline.is-in .timeline__step:nth-child(5) { transition-delay: 0.86s; }
.timeline.is-in .timeline__step:nth-child(6) { transition-delay: 1.00s; }
.timeline.is-in .timeline__step:nth-child(7) { transition-delay: 1.14s; }
.timeline.is-in .timeline__step:nth-child(8) { transition-delay: 1.28s; }
.timeline.is-in .timeline__step:nth-child(9) { transition-delay: 1.42s; }
.timeline.is-in .timeline__step:nth-child(10) { transition-delay: 1.56s; }
.timeline.is-in .timeline__step:nth-child(11) { transition-delay: 1.70s; }
.timeline.is-in .timeline__step:nth-child(12) { transition-delay: 1.84s; }

/* Hover / Fokus: Knoten fuellt sich + Ring, Reihe rueckt leicht ein, Text hellt auf.
   Unter .timeline.is-in gescoped, damit die Spezifitaet die Reveal-Regeln schlaegt. */
@media (hover: hover) {
  .timeline.is-in .timeline__step:hover .tl-row { transform: translateX(6px); }
}
.timeline.is-in .timeline__step:focus-within .tl-row { transform: translateX(6px); }
.timeline.is-in .timeline__step:hover::before,
.timeline.is-in .timeline__step:focus-within::before {
  background: var(--accent);
  transform: scale(1.22);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent);
}
.timeline.is-in .timeline__step--planned:hover::before,
.timeline.is-in .timeline__step--planned:focus-within::before { border-style: solid; }
.timeline__year, .timeline__step p { transition: color 0.22s var(--ease); }
.timeline.is-in .timeline__step:hover .timeline__year,
.timeline.is-in .timeline__step:focus-within .timeline__year { color: var(--accent-hi); }
.timeline.is-in .timeline__step:hover .tl-row p,
.timeline.is-in .timeline__step:focus-within .tl-row p { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .timeline.is-in .timeline__step::after { animation: tl-ping 1s var(--ease) 1 forwards; }
  .timeline.is-in .timeline__step:nth-child(1)::after { animation-delay: 0.42s; }
  .timeline.is-in .timeline__step:nth-child(2)::after { animation-delay: 0.56s; }
  .timeline.is-in .timeline__step:nth-child(3)::after { animation-delay: 0.70s; }
  .timeline.is-in .timeline__step:nth-child(4)::after { animation-delay: 0.84s; }
  .timeline.is-in .timeline__step:nth-child(5)::after { animation-delay: 0.98s; }
  .timeline.is-in .timeline__step:nth-child(6)::after { animation-delay: 1.12s; }
  .timeline.is-in .timeline__step:nth-child(7)::after { animation-delay: 1.26s; }
  .timeline.is-in .timeline__step:nth-child(8)::after { animation-delay: 1.40s; }
  .timeline.is-in .timeline__step:nth-child(9)::after { animation-delay: 1.54s; }
  .timeline.is-in .timeline__step:nth-child(10)::after { animation-delay: 1.68s; }
  .timeline.is-in .timeline__step:nth-child(11)::after { animation-delay: 1.82s; }
  .timeline.is-in .timeline__step:nth-child(12)::after { animation-delay: 1.96s; }
}
@keyframes tl-ping {
  from { transform: scale(1); opacity: 0.7; }
  to   { transform: scale(2.6); opacity: 0; }
}
/* letzter Knoten (2027, geplant) hohl markieren */
.timeline__step--planned .tl-row::before { border-style: dashed; }
.timeline__year {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--accent);
  margin-bottom: 0.35rem;
}
.timeline__step p { font-size: 0.9rem; color: var(--text-dim); margin: 0; max-width: 46ch; }
.timeline__link {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--hud);
  transition: color 0.2s var(--ease);
}
.timeline__link:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .timeline::before { transform: scaleY(1); transition: none; }
  .timeline__step { opacity: 1; transform: none; transition: none; }
  .tl-row { transition: none; }
  .timeline__step::before {
    transform: scale(1);
    transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  }
  .timeline.is-in .timeline__step:hover .tl-row,
  .timeline.is-in .timeline__step:focus-within .tl-row { transform: none; }
  .timeline.is-in .timeline__step:hover::before,
  .timeline.is-in .timeline__step:focus-within::before { transform: none; }
  .timeline__step::after { display: none; }
}

/* --- 05: Kennzahlen hochzaehlen --- */
.count[data-count] { font-variant-numeric: tabular-nums; }

/* --- 16: Button-Fokus, kurzer HUD-Scan (nur transform, compositor-freundlich) --- */
.btn { position: relative; overflow: hidden; }
.btn:focus-visible::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-hi) 55%, transparent), transparent);
  transform: translateX(-120%);
  animation: btn-scan 0.55s var(--ease) 1;
  pointer-events: none;
}
@keyframes btn-scan { to { transform: translateX(280%); } }
@media (prefers-reduced-motion: reduce) {
  .btn:focus-visible::after { animation: none; display: none; }
}

/* --- 17: Externe Links markieren (Inline-Textlinks, nicht Buttons/Icons) --- */
.legal a[target="_blank"]:not(.btn)::after,
.case__doc[target="_blank"]::after {
  content: "\00a0\2197";
  font-size: 0.82em;
  color: var(--text-mute);
}

/* --- 15: Footer-Standortuhr (Standort Schaanwald ist Markenbestandteil) --- */
.footer__clock {
  margin-top: 0.9rem;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.08em; color: var(--text-mute);
}

/* --- 03: Boot-Sequenz (einmal pro Session) --- */
.hud-frame span { transition: transform 0.45s var(--ease) 0.12s; transform-origin: center; }
html[data-boot] .hud-frame span { transform: scale(0); }
html[data-boot] body::after {
  content: "";
  position: fixed; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 200;
  animation: boot-sweep 0.62s var(--ease) 1 forwards;
  pointer-events: none;
}
@keyframes boot-sweep {
  from { transform: translateY(0) scaleX(0.2); opacity: 0.2; }
  40%  { opacity: 1; }
  to   { transform: translateY(102vh) scaleX(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hud-frame span { transition: none; }
  html[data-boot] .hud-frame span { transform: none; }
  html[data-boot] body::after { display: none; }
}

/* --- 13: Case-Study-Bibliothek --- */
.cslib__filter {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 1.6rem 0 2rem;
}
.cslib__filter button {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-hud);
  border-radius: var(--r-pill);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.cslib__filter button:hover { border-color: var(--accent); color: var(--accent); }
.cslib__filter button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cslib__filter button[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.cslib {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-flat);
  overflow: hidden;
}
.cslib__item {
  background: var(--surface);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  position: relative;
  transition: background-color 0.2s var(--ease);
}
.cslib__item:hover { background: var(--surface-2); }
.cslib__item[hidden] { display: none; }
.cslib__thumb {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-1);
  margin-bottom: 0.1rem;
}
.cslib__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.85) brightness(0.9) contrast(1.04);
  transition: filter 0.2s var(--ease);
}
.cslib__thumb--contain img { object-fit: contain; padding: 0.4rem; }
.cslib__item:hover .cslib__thumb img { filter: none; }
.cslib__item--soon {
  align-items: center; justify-content: center; text-align: center;
  gap: 0.5rem;
  background: var(--bg-1);
  color: var(--text-mute);
}
.cslib__item--soon p { color: var(--text-mute); font-size: var(--step-sm); margin: 0; }
.cslib__soon-mark {
  font-family: var(--font-mono); font-size: 1.6rem; line-height: 1;
  color: var(--line-hud);
}
.cslib__item .kmeta {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-mute);
  display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem;
}
.cslib__item h3 { font-size: 1.05rem; font-weight: 700; }
.cslib__item h3 a { color: inherit; }
.cslib__item h3 a::after { content: ""; position: absolute; inset: 0; }
.cslib__item:hover h3 a, .cslib__item h3 a:focus-visible { color: var(--accent); }
.cslib__item h3 a:focus-visible { outline: none; }
.cslib__item:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.cslib__item p { font-size: var(--step-sm); color: var(--text-dim); margin: 0; }
.cslib__empty { margin-top: 1.4rem; color: var(--text-dim); font-size: 0.9rem; }
.cslib__empty[hidden] { display: none; }
.cslib__reset {
  font: inherit; color: var(--hud); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.cslib__reset:hover { color: var(--accent); }

/* Case-Study Kopf/Fuss: Lesezeit + Weiter */
.cs-readtime {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-mute);
  margin-left: 0.8rem;
}
.cs-nav {
  margin-top: 2.6rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
}
.cs-nav a { color: var(--hud); }
.cs-nav a:hover { color: var(--accent); }
.projects__cases-more { margin-top: 1.6rem; }

/* Direct contact without form */
.contact__layout { grid-template-columns: 1fr; }

/* Neway corporate design: calm logo placement, no effects. */
.hero__logo { display: none; }
.nav__brand { padding-block: 8px; }
.footer__brand > img { box-sizing: content-box; }
body { font-weight: 300; }
h1, h2, h3, h4, strong, b { font-weight: 700; }

/* Universal Neway wordmark, cropped from the approved vector artwork. */
.nav__brand .brand-word, .nav__brand .brand-icon { height: 28px; width: auto; object-fit: contain; }
.footer__brand > img { height: 34px; width: auto; padding: 0; }

/* Screen-aligned engine HUD: follows the engine without inheriting its bank. */
.hero__aircraft-stage .hero__engine-lock {
  width: 82px;
  height: 82px;
  z-index: 4;
  visibility: hidden;
  animation: none;
  transform: translate(-50%, -50%);
}
.hero__engine-lock .hero__lock-tag {
  font-size: 12px;
  letter-spacing: 0.04em;
  top: -25px;
}
.hero__engine-lock svg,
.hero__engine-lock .rot,
.hero__engine-lock .hero__lock-b,
.hero__engine-lock .hero__lock-tag { animation: none; }
.hero__engine-lock .hero__lock-b { width: 14px; height: 14px; }

/* Vertical aerial landscape stays beneath the jet, independent of its banking. */
.hero__jet-terrain { position: absolute; object-fit: cover; object-position: center bottom; z-index: 0; left: 0; top: 0; width: 100%; height: 100%; max-width: none; opacity: 0; pointer-events: none; mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%); }


#rocketSmokeSoft stop { stop-color: #dce4ea; }
html[data-theme="light"] #rocketSmokeSoft stop { stop-color: #697985; }
.hero__rocket-ignition, .hero__rocket-flame { filter: drop-shadow(0 0 10px #ff9b36); }

/* Scene backgrounds span the stage; only the edge facing page content fades. */
.hero__aircraft-stage > .hero__heli-scenery { left: 0; top: 0; bottom: auto; width: 100%; height: 100%; z-index: 0; color: #a9bfd0; mask-image: linear-gradient(to bottom, #000 75%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%); }
.hero__aircraft-stage > .hero__heli-scenery path { fill: none; stroke: currentColor; stroke-width: 1.65; vector-effect: non-scaling-stroke; }
.hero__aircraft-stage > .hero__heli-scenery .detail { stroke-width: 1.1; opacity: 0.58; }
.hero__aircraft-stage > .hero__heli-scenery .hero__windsock-stripe { fill: #e98835; fill-opacity: 0.7; stroke: none; }
html[data-theme="light"] .hero__aircraft-stage > .hero__heli-scenery { color: #3b4f61; }

/* Fade scenery from transparent on all four edges without changing its proportions. */
.hero__jet-terrain,
.hero__runway,
.hero__aircraft-stage > .hero__heli-scenery {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 75%, transparent 100%), linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 75%, transparent 100%), linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
