/* ============================================================
   aspect3 — Redesign 2026
   Konzept: Swiss International Style, neu interpretiert.
   Warmes Papier, Tiefschwarz, Schweizer Rot. Grosse Typografie,
   ruhige Flächen, präzises Raster.
   ============================================================ */

:root {
  --paper: #f4f1ea;
  --paper-soft: #ece8df;
  --ink: #15130f;
  --ink-soft: #2a2722;
  --red: #e8442e;
  --red-deep: #c93420;
  --muted: #6f6a60;
  --muted-dark: #a8a294;
  --line: rgba(21, 19, 15, 0.14);
  --line-dark: rgba(244, 241, 234, 0.16);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 22px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
ul[role="list"] { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--red); color: var(--paper); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Feines Korn über allem – gibt dem Papier Haptik */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.accent { color: var(--red); }
.accent-text { color: var(--red); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(244, 241, 234, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-three {
  color: var(--red);
  font-weight: 900;
  transform: translateY(-0.18em);
  display: inline-block;
  font-size: 0.78em;
  margin-left: 0.06em;
}
.brand-dot {
  width: 7px; height: 7px;
  background: var(--ink);
  border-radius: 50%;
  margin-left: 0.35rem;
  align-self: center;
}

.main-nav { display: flex; align-items: center; gap: 2.25rem; }
.main-nav ul {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  padding: 0;
}
.main-nav ul a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.35rem 0;
  color: var(--ink);
}
.nav-num {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--red);
  vertical-align: super;
  margin-right: 0.3rem;
  letter-spacing: 0.05em;
}
.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right 0.3s var(--ease-out);
}
.main-nav ul a:hover::after,
.main-nav ul a.is-active::after { right: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--red); border-color: var(--red); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.nav-cta { padding: 0.6rem 1.4rem; }

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 48px; height: 48px;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  padding: 0 11px;
}
.nav-toggle-line {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ============================================================
   Liniennetz — fixe Stations-Navigation (Desktop)
   ============================================================ */
.line-rail {
  position: fixed;
  left: clamp(0.8rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: none;
}
.rail-track {
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}
.line-rail.on-dark .rail-track { background: var(--line-dark); }
.rail-train {
  position: absolute;
  left: 2.5px;
  top: 0;
  width: 11px;
  height: 18px;
  border-radius: 6px;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(232, 68, 46, 0.25);
  transition: top 0.5s var(--ease-out);
}
.line-rail ul {
  display: flex;
  flex-direction: column;
  gap: 2.1rem;
  position: relative;
}
.line-rail a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.rail-dot {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--muted);
  margin-left: 1px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.rail-dot--end { border-radius: 3px; }
.rail-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out), color 0.3s;
  white-space: nowrap;
}
.line-rail.on-dark .rail-dot { background: var(--ink); border-color: var(--muted-dark); }
.line-rail.on-dark .rail-label { color: var(--muted-dark); }
.line-rail a:hover .rail-label,
.line-rail a:focus-visible .rail-label,
.line-rail a.is-here .rail-label { opacity: 1; transform: none; }
.line-rail a.is-here .rail-dot {
  border-color: var(--red);
  background: var(--red);
  transform: scale(1.2);
}
.line-rail a.is-here .rail-label { color: var(--red); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 3rem) 0 0;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-giant-3 {
  position: absolute;
  right: -4vw;
  top: 50%;
  transform: translateY(-54%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22rem, 58vw, 64rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(21, 19, 15, 0.16);
  user-select: none;
}
.hero-ring {
  position: absolute;
  left: -120px;
  bottom: 8%;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1.5px dashed rgba(232, 68, 46, 0.4);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.hero-main { display: flex; flex-direction: column; justify-content: center; }

/* ---------- Schweizer Bahnhofsuhr ---------- */
.hero-clock-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  justify-self: center;
}
.station-clock {
  width: clamp(200px, 24vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  box-shadow:
    0 30px 70px rgba(21, 19, 15, 0.18),
    0 4px 14px rgba(21, 19, 15, 0.1);
}
.station-clock svg {
  width: 100%;
  height: 100%;
}
.clock-face {
  fill: #fcfaf5;
  stroke: var(--ink);
  stroke-width: 5;
}
.clock-ticks rect { fill: var(--ink); }
.clock-hand-hour, .clock-hand-minute { fill: var(--ink); }
.clock-hand-second { stroke: var(--red); stroke-width: 3.4; stroke-linecap: round; }
.clock-hand-second-tip { fill: var(--red); }
.clock-center { fill: var(--ink); }
.hero-clock-caption {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}
.eyebrow-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 68, 46, 0.45); }
  50% { box-shadow: 0 0 0 9px rgba(232, 68, 46, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 6.2vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.hero-line { display: block; }
.hero-title .serif {
  font-size: 1.04em;
  letter-spacing: 0;
  margin-right: 0.04em;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-bottom: clamp(2rem, 6vh, 4rem);
}
.hero-sub {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 30ch;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  padding: 8px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.scroll-cue-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.scroll-cue-track {
  display: block;
  width: 26px; height: 44px;
  border: 1.5px solid var(--muted);
  border-radius: 999px;
  position: relative;
}
.scroll-cue-thumb {
  position: absolute;
  left: 50%; top: 7px;
  width: 4px; height: 9px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--red);
  animation: cue 2s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: clip;
  white-space: nowrap;
  user-select: none;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  will-change: transform;
  animation: marquee 38s linear infinite;
}
.marquee[data-direction="right"] .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.hero-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0;
  background: var(--paper);
  position: relative;
}
.hero-marquee .marquee-track {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.m-sep { color: var(--red); font-size: 0.85em; }

/* ============================================================
   Sektionen, gemeinsam
   ============================================================ */
section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-head { max-width: 880px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.4rem;
  color: var(--muted);
}
.section-dark .section-tag { color: var(--muted-dark); }
.tag-num {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.4rem;
  border: 1.5px solid var(--red);
  color: var(--red);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: 1.4rem;
}
.section-title .serif { font-size: 1.05em; }
.section-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--muted);
  max-width: 62ch;
}
.section-dark .section-lead { color: var(--muted-dark); }

/* Reveal-Animation (JS setzt .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Manifest
   ============================================================ */
.manifest { position: relative; }
.manifest-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 24ch;
  text-wrap: balance;
  margin-bottom: 1.6rem;
}
.manifest-sub {
  color: var(--muted-dark);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 56ch;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 1.8rem 1.5rem 0 0; }
.stat + .stat { border-left: 1px solid var(--line-dark); padding-left: 1.5rem; }
.stat dd {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.stat dd .count { font-variant-numeric: tabular-nums; }
.stat dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-dark);
  margin-bottom: 0.7rem;
  font-weight: 600;
}

/* ============================================================
   Abfahrtstafel — Hommage an den ÖV-Schwerpunkt
   ============================================================ */
.board {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  background: #0c0b09;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem);
  font-family: "Space Grotesk", ui-monospace, monospace;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--red);
  margin-bottom: 0.4rem;
}
.board-title {
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.board-station {
  display: inline-block;
  margin-left: 0.6rem;
  font-size: 0.78em;
  font-weight: 500;
  color: var(--muted-dark);
  text-transform: none;
  letter-spacing: 0.02em;
}
.board-clock {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--red);
  letter-spacing: 0.08em;
}
.board-rows { list-style: none; padding: 0; }
.board-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(0.8rem, 2.5vw, 1.6rem);
  padding: 0.9rem 0;
  border-bottom: 1px dashed rgba(244, 241, 234, 0.18);
  font-size: clamp(0.92rem, 1.6vw, 1.08rem);
}
.board-row:last-child { border-bottom: none; }
.board-line {
  display: grid;
  place-items: center;
  width: 2.2em; height: 2.2em;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.95em;
}
.board-line--ic {
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-style: italic;
}
.board-dest {
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-track {
  color: var(--muted-dark);
  font-size: 0.9em;
  white-space: nowrap;
}
.board-status {
  color: #6fcf8f;
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
}
.board-row--ic .board-status { color: var(--red); }

/* ============================================================
   Streckenlinie — Scroll-Fortschritt im Header
   ============================================================ */
.route-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  pointer-events: none;
}
.route-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  position: relative;
}
.route-progress-train {
  position: absolute;
  right: -5px;
  top: 50%;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--paper);
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px var(--red);
  opacity: 0;
  transition: opacity 0.3s;
}
.route-progress-bar.is-moving .route-progress-train { opacity: 1; }

/* ============================================================
   Die 3 aspects — gestapelte Sticky-Karten
   ============================================================ */
.aspect-stack {
  display: grid;
  gap: 1.6rem;
}
.aspect-card {
  position: sticky;
  top: calc(var(--header-h) + 1.2rem);
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) 2.2fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(21, 19, 15, 0.07);
}
.aspect-card--paper { background: var(--paper-soft); }
.aspect-card--red {
  background: var(--red);
  color: var(--paper);
  border-color: transparent;
  top: calc(var(--header-h) + 2.8rem);
}
.aspect-card--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
  top: calc(var(--header-h) + 4.4rem);
}
.aspect-side {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
}
.aspect-linie {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  opacity: 0.85;
}
.aspect-card--paper .aspect-linie { color: var(--red); }
.aspect-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 12vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  /* currentColor wäre hier transparent – Outline-Farbe explizit setzen */
  -webkit-text-stroke: 2px var(--paper);
  opacity: 0.85;
}
.aspect-card--paper .aspect-num { -webkit-text-stroke-color: var(--red); }
.aspect-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.aspect-body h3 .serif { font-size: 1.07em; }
.aspect-body p { max-width: 64ch; margin-bottom: 1rem; }
.aspect-card--paper .aspect-body p { color: var(--ink-soft); }
.aspect-card--red .aspect-body p { color: rgba(244, 241, 234, 0.92); }
.aspect-card--ink .aspect-body p { color: var(--muted-dark); }

.aspect-chips {
  list-style: none;
  padding: 0.4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.aspect-chips li {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  opacity: 0.9;
}

/* ============================================================
   Team
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(244, 241, 234, 0.045);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.35s var(--ease-out), background 0.35s, border-color 0.35s;
}
.team-card:hover {
  transform: translateY(-6px);
  background: rgba(244, 241, 234, 0.08);
  border-color: rgba(232, 68, 46, 0.55);
}
/* Porträts: Rot-Duotone, beim Hover kommt die Originalfarbe zurück */
.team-photo {
  position: relative;
  margin: -1.8rem -1.8rem 1.2rem;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--ink-soft);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(1) hue-rotate(-28deg) saturate(3.4) contrast(0.96) brightness(0.92);
  transform: scale(1.02);
  transition: filter 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.team-card:hover .team-photo img,
.team-card:focus-within .team-photo img {
  filter: none;
  transform: scale(1.06);
}
.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 19, 15, 0) 62%, rgba(21, 19, 15, 0.55) 100%);
  pointer-events: none;
}
.team-photo .team-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 1;
}
/* Bewusst zurückhaltend: mattes Glas statt rotem Signal */
.team-badge {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(244, 241, 234, 0.72);
  background: rgba(21, 19, 15, 0.45);
  border: 1px solid rgba(244, 241, 234, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}
.team-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}
.team-role {
  color: var(--muted-dark);
  font-size: 0.95rem;
  font-weight: 500;
}
.team-card blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.5;
  color: rgba(244, 241, 234, 0.85);
  padding: 0.8rem 0 1.1rem;
  flex: 1;
}
.team-links {
  display: flex;
  gap: 1.4rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 1rem;
}
.team-links a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--paper);
  position: relative;
}
.team-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.team-links a:hover::after { transform: scaleX(1); }

/* ============================================================
   Expertennetzwerk als lebendiger Liniennetzplan
   Die Stationen treiben per Physik-Simulation (JS), die Linien
   sind atmende Kurven. Hier: Aufbau-, Wellen- und Glow-Styles.
   ============================================================ */
.network {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
  /* Bühne für die dezente 3D-Neigung der Karte */
  perspective: 1200px;
}
.network-map {
  position: relative;
  /* Höhe kommt vom Grid-Stretch (= Panelhöhe); eine eigene aspect-ratio
     würde die Breite über die Spalte hinaus treiben und das Panel überlappen */
  min-width: 0;
  min-height: 460px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 68, 46, 0.09), transparent 45%),
    radial-gradient(circle at 78% 78%, rgba(232, 68, 46, 0.05), transparent 42%),
    repeating-linear-gradient(0deg, rgba(244, 241, 234, 0.028) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(244, 241, 234, 0.028) 0 1px, transparent 1px 26px),
    rgba(244, 241, 234, 0.02);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.4);
  will-change: transform;
}
.network-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: visible;
}
.net-edge {
  fill: none;
  stroke: rgba(244, 241, 234, 0.17);
  stroke-width: 1.5;
  transition: stroke 0.4s;
}
.net-edge.is-active {
  stroke: var(--red);
  stroke-width: 2;
  stroke-dasharray: 1.6 1.15;
  animation: edge-flow 0.85s linear infinite;
  filter: drop-shadow(0 0 5px rgba(232, 68, 46, 0.6));
}
@keyframes edge-flow {
  to { stroke-dashoffset: -2.75; }
}
.net-ring {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.5;
  pointer-events: none;
}
.network-hint {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-dark);
  pointer-events: none;
}
.net-pulse {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ff6e57;
  translate: -50% -50%;
  pointer-events: none;
  box-shadow: 0 0 12px 2px rgba(232, 68, 46, 0.85);
}
.net-node {
  position: absolute;
  width: 60px;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(244, 241, 234, 0.35);
  background: var(--ink);
  cursor: pointer;
  translate: -50% -50%;
  /* Startzustand vor dem Aufbau; .is-in blendet gestaffelt ein */
  opacity: 0;
  scale: 0.2;
  transition:
    opacity 0.7s var(--ease-out), scale 0.7s var(--ease-out),
    border-color 0.3s, box-shadow 0.3s;
}
.net-node--gf { width: 74px; }
.net-node.is-in { opacity: 1; scale: 1; }
/* Rotierender Markierungsring der aktiven Station */
.net-node::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1.5px dashed transparent;
  pointer-events: none;
  transition: border-color 0.3s;
}
.net-node img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1) sepia(1) hue-rotate(-28deg) saturate(3) contrast(0.95) brightness(0.9);
  transition: filter 0.4s;
}
/* Direkte Nachbarn der aktiven Station */
.net-node.is-link { border-color: rgba(232, 68, 46, 0.55); }
.net-node:hover, .net-node.is-here {
  border-color: var(--red);
  box-shadow: 0 0 0 5px rgba(232, 68, 46, 0.22), 0 0 26px rgba(232, 68, 46, 0.35);
  scale: 1.12;
  z-index: 3;
}
.net-node.is-here::after {
  border-color: rgba(232, 68, 46, 0.85);
  animation: ring-spin 14s linear infinite;
}
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}
.net-node.is-here img, .net-node:hover img { filter: none; }
/* Netz-Welle: Lichtimpuls läuft per BFS-Verzögerung durch die Stationen */
.net-node.is-wave {
  animation: node-wave 0.8s var(--ease-out) var(--wave-delay, 0ms) both;
}
@keyframes node-wave {
  0% { box-shadow: 0 0 0 0 rgba(232, 68, 46, 0.75); }
  100% { box-shadow: 0 0 0 26px rgba(232, 68, 46, 0); }
}
.net-node-name {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  translate: -50%;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: rgba(21, 19, 15, 0.85);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.net-node:hover .net-node-name,
.net-node.is-here .net-node-name { opacity: 1; }

.network-detail {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(244, 241, 234, 0.045);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.network-detail-photo {
  position: relative;
  margin: -1.8rem -1.8rem 1.2rem;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
/* Das grosse Porträt zeigt immer die echten Farben */
.network-detail-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.network-detail-photo .team-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
}
.network-detail h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.network-detail-role {
  color: var(--muted-dark);
  font-size: 0.95rem;
  font-weight: 500;
  /* Platz für zwei Zeilen reservieren, damit das Panel nie springt */
  min-height: 3.1rem;
}
.network-detail blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: rgba(244, 241, 234, 0.85);
  padding: 0.8rem 0 1.1rem;
  flex: 1;
  /* Platz für das längste Zitat reservieren */
  min-height: 10.2rem;
}
.network-detail-links {
  display: flex;
  gap: 1.4rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 1rem;
}
.network-detail-links a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--paper);
  position: relative;
}
.network-detail-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.network-detail-links a:hover::after { transform: scaleX(1); }
/* Panel-Inhalt tritt bei jedem Stationswechsel gestaffelt auf */
.network-detail > * { animation: detail-in 0.45s var(--ease-out) backwards; }
.network-detail > *:nth-child(2) { animation-delay: 60ms; }
.network-detail > *:nth-child(3) { animation-delay: 120ms; }
.network-detail > *:nth-child(4) { animation-delay: 180ms; }
.network-detail > *:nth-child(5) { animation-delay: 240ms; }
@keyframes detail-in {
  from { opacity: 0; translate: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .net-node { opacity: 1; scale: 1; transition: border-color 0.3s, box-shadow 0.3s; }
  .net-node.is-here::after { animation: none; }
  .net-edge.is-active { animation: none; stroke-dasharray: none; }
  .network-detail > * { animation: none; }
}

/* ============================================================
   Werkzeuge als Anzeigetafel-Ticker
   Nur ein Ausschnitt ist sichtbar und läuft langsam durch;
   Hover pausiert, die Infozeile darunter zeigt die Beschreibung.
   ============================================================ */
.tool-ticker {
  position: relative;
  max-height: 318px;
  overflow: hidden;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.tool-ticker.is-static {
  overflow-y: auto;
  -webkit-mask-image: none;
  mask-image: none;
  scrollbar-width: thin;
}
.tool-list {
  list-style: none;
  padding: 0;
  will-change: transform;
}
.tool-row { border-bottom: 1px solid var(--line); }
.tool-row:last-child { border-bottom: none; }
.tool-row a {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.6vw, 1.2rem);
  padding: 0.66rem clamp(0.4rem, 1.5vw, 1rem);
  text-decoration: none;
  color: var(--ink);
}
.tool-badge {
  display: grid;
  place-items: center;
  width: 1.7rem; height: 1.7rem;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  transition: background 0.25s, color 0.25s;
}
.tool-row a:hover .tool-badge { background: var(--red); color: var(--paper); }
.tool-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), color 0.25s;
}
.tool-row a:hover .tool-name { color: var(--red); transform: translateX(6px); }
.tool-leader {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  margin: 0 0.3rem;
  min-width: 1.2rem;
}
.tool-domain {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s;
}
.tool-row a:hover .tool-domain { color: var(--ink); }

.tool-info {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
  min-height: 2.9em; /* zwei Zeilen reservieren – nichts springt */
}
.tool-info::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  align-self: center;
}
.tool-info strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   Kunden & Partner
   ============================================================ */
.clients { padding-bottom: clamp(5rem, 10vw, 8rem); }
.clients .section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.clients-marquee {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
}
.clients-marquee:last-of-type { border-bottom: 1px solid var(--line); }
.clients-marquee .marquee-track {
  gap: 3.2rem;
  padding-right: 3.2rem;
  animation-duration: 46s;
}
.clients-marquee a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.45;
  transition: opacity 0.25s, color 0.25s;
}
.clients-marquee a:hover, .clients-marquee a:focus-visible { opacity: 1; color: var(--red); }

/* ============================================================
   Werkzeuge
   ============================================================ */
.tools { background: var(--paper-soft); }

.tool-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.4rem;
}
.chip {
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.6rem 1.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.chip:hover { transform: translateY(-2px); }
.chip.is-active { background: var(--ink); color: var(--paper); }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.2rem;
}
.tool-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), opacity 0.3s, scale 0.3s;
}
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(21, 19, 15, 0.1);
}
.tool-card.is-hidden { display: none; }
.tool-cat {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red);
  border: 1.5px solid rgba(232, 68, 46, 0.5);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.4rem;
}
.tool-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}
.tool-card p { font-size: 0.95rem; color: var(--muted); flex: 1; }
.tool-card a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--red);
  align-self: flex-start;
  padding-bottom: 1px;
  transition: color 0.25s;
}
.tool-card a:hover { color: var(--red); }

/* ============================================================
   Kontakt
   ============================================================ */
.contact { position: relative; overflow: clip; }
.contact::before {
  content: "3";
  position: absolute;
  right: -2vw;
  bottom: -18%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(16rem, 36vw, 38rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 241, 234, 0.1);
  pointer-events: none;
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  max-width: 16ch;
  text-wrap: balance;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.35rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
  transition: color 0.3s;
}
.contact-mail:hover { color: var(--red); }
.mail-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.contact-mail:hover .mail-arrow { transform: translateX(8px); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.contact-layout .contact-mail { margin-bottom: 0; }

/* ---------- Billett ---------- */
.ticket {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: 1.7rem 1.7rem 1.5rem 2.3rem;
  transform: rotate(-2.5deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--ease-out);
  /* Perforation an der linken Kante */
  -webkit-mask-image: radial-gradient(circle 7px at left center, transparent 6.5px, #000 7.5px);
  -webkit-mask-size: 100% 26px;
  -webkit-mask-repeat: repeat-y;
  mask-image: radial-gradient(circle 7px at left center, transparent 6.5px, #000 7.5px);
  mask-size: 100% 26px;
  mask-repeat: repeat-y;
}
.ticket:hover { transform: rotate(-1deg) translateY(-4px); }
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
}
.ticket-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.ticket-brand b { color: var(--red); }
.ticket-class {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red);
}
.ticket-route {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.ticket-arrow { color: var(--red); }
.ticket-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.2rem;
  margin-bottom: 1.4rem;
}
.ticket-meta dt {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.ticket-meta dd { font-weight: 600; font-size: 0.95rem; }
.ticket-cta {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  transition: color 0.25s;
}
.ticket-cta:hover { color: var(--red); }
.ticket-stamp {
  position: absolute;
  right: 1.1rem;
  bottom: 2.6rem;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 2.5px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1.7;
  transform: rotate(12deg);
  opacity: 0.75;
  pointer-events: none;
}
.ticket-barcode {
  display: block;
  height: 30px;
  margin-top: 1.3rem;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px, transparent 2px 5px,
    var(--ink) 5px 9px, transparent 9px 11px,
    var(--ink) 11px 12px, transparent 12px 17px
  );
  opacity: 0.85;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 2.4rem;
}
.contact-grid h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-dark);
  margin-bottom: 0.9rem;
}
.contact-grid address { font-style: normal; line-height: 1.7; }
.contact-social li + li { margin-top: 0.45rem; }
.contact-social a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s;
}
.contact-social a:hover { color: var(--red); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  border-top: 1px solid var(--line-dark);
  padding: 2.2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.footer-brand span { color: var(--red); }
.footer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.9rem;
}
.footer-line a { color: var(--paper); text-decoration: none; }
.footer-line a:hover { color: var(--red); }
.footer-sep { opacity: 0.5; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 721px) {
  .scroll-cue { display: flex; }
}
@media (min-width: 1240px) {
  .line-rail { display: block; }
}

@media (max-width: 960px) {
  .network { grid-template-columns: 1fr; }
  .network-map { width: 100%; aspect-ratio: 5 / 4; }
  .network-detail blockquote { min-height: 11.5rem; }
  .net-node { width: 50px; }
  .net-node--gf { width: 60px; }
  .network-hint { font-size: 0.62rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-clock-wrap { justify-self: start; flex-direction: row; align-items: center; }
  .station-clock { width: clamp(120px, 22vw, 170px); }
  .hero-clock-caption { writing-mode: vertical-rl; letter-spacing: 0.22em; }
  .contact-layout { grid-template-columns: 1fr; }
  .ticket { max-width: 460px; transform: rotate(-1.5deg); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-top: 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line-dark); }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .stat:nth-child(n+3) { border-bottom: none; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
  }
  body.nav-open .main-nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: var(--paper); }
  /* Mobile-Menü als Metro-Plan: Linie mit Stationen */
  .main-nav ul {
    flex-direction: column;
    gap: 1.6rem;
    position: relative;
    padding-left: 2.1rem;
  }
  .main-nav ul::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 3px;
    border-radius: 2px;
    background: var(--red);
  }
  .main-nav ul li { position: relative; }
  .main-nav ul li::before {
    content: "";
    position: absolute;
    left: -2.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--red);
  }
  .main-nav ul a {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    letter-spacing: -0.02em;
  }
  .nav-cta { padding: 0.9rem 1.8rem; font-size: 1.05rem; }

  .aspect-card { grid-template-columns: 1fr; gap: 1.2rem; }
  .aspect-side { flex-direction: row-reverse; justify-content: flex-end; align-items: center; }
  .aspect-num { font-size: clamp(4rem, 16vw, 6rem); }
  .aspect-card,
  .aspect-card--red,
  .aspect-card--ink { position: static; }
}

@media (max-width: 600px) {
  .hero-giant-3 { right: -14vw; opacity: 0.7; }
  .hero-ring { display: none; }
  .hero-eyebrow { font-size: 0.72rem; letter-spacing: 0.12em; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat dd { font-size: 2.4rem; }
  .board-track { display: none; }
  .board-station { display: block; margin-left: 0; margin-top: 0.2rem; }
  .net-node { width: 44px; }
  .net-node--gf { width: 52px; }
  .tool-idx, .tool-domain { display: none; }
  .tool-name { white-space: normal; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
