/* =========================================================
   Tinus Klauser, Redesign-Entwurf
   Regeln: apple-design (Tracking/Leading je Größe, Feedback
   beim Drücken, Glas-Navigation mit Scroll-Kante, drei
   Accessibility-Signale) + design-taste-frontend.
   Radius-System: Flächen und Bilder 20px, Buttons Pille.
   ========================================================= */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Farben: kaltes Near-Black + ein Akzent (Stahlblau) */
  --ink: #0A0E15;
  --ink-2: #111722;
  --ink-3: #18202D;
  --ice: #E7ECF3;
  --text-2: #AAB4C3;     /* Fließtext, ca. 9:1 auf --ink */
  --text-3: #7D8898;     /* Kleintext, ca. 5:1 auf --ink */
  --accent: #8FACD0;
  --accent-strong: #567AA5;
  --line: rgb(210 222 238 / 0.10);
  --line-strong: rgb(210 222 238 / 0.20);

  /* Abstands-Skala (rem, skaliert mit der Schriftgröße) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  --radius: 1.25rem;
  --nav-h: 4rem;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Kurven: ease-out für Enter, gespiegelt für Exit */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--s-5));
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.6;
  letter-spacing: 0;             /* Fließtext: 0 */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: max(1rem, env(safe-area-inset-left));
}
@media (min-width: 48rem) { .wrap { padding-inline: var(--s-6); } }

.skip {
  position: absolute; left: var(--s-4); top: -10rem; z-index: 100;
  background: var(--ice); color: var(--ink);
  padding: var(--s-2) var(--s-4); border-radius: 999px; text-decoration: none;
}
.skip:focus { top: var(--s-4); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Typo-Skala: Tracking und Leading je Stufe ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.display-under {
  display: block;
  margin-top: var(--s-3);
  font-size: 0.72em;
  line-height: 1.1;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.015em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.eyebrow, .tile-kind, .tl-year {
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.08em;         /* Kleintext: leicht positiv */
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 34ch;
}
.muted { color: var(--text-2); }

/* ---------- Buttons: Feedback beim Drücken (Apple §1) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 3rem;
  padding: 0 var(--s-5);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;       /* kein 300ms Tap-Delay */
  transition: transform 100ms ease-out, background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 2.5rem; padding: 0 var(--s-4); font-size: 0.875rem; }
.btn-primary { background: var(--ice); color: var(--ink); }
.btn-ghost { color: var(--ice); border-color: var(--line-strong); }
.arw { font-family: var(--font-display); transition: transform 200ms var(--ease-out); }
@media (hover: hover) {
  .btn-primary:hover { background: #fff; }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
  .btn:hover .arw { transform: translateX(3px); }
}

/* ---------- Navigation: Glas, Inhalt scrollt darunter ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  padding-top: env(safe-area-inset-top);
  transition: background-color 300ms var(--ease-out);
}
.nav::before {                        /* Glas-Material */
  content: "";
  position: absolute; inset: 0;
  background: rgb(10 14 21 / 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
  z-index: -1;
}
.nav::after {                         /* weiche Scroll-Kante statt 1px-Linie */
  content: "";
  position: absolute; left: 0; right: 0; top: 100%;
  height: 1.5rem;
  background: linear-gradient(rgb(10 14 21 / 0.55), rgb(10 14 21 / 0));
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}
.nav.is-scrolled::before,
.nav.is-scrolled::after { opacity: 1; }
.nav-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.nav-row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.nav-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
.nav-links { display: none; gap: var(--s-5); }
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: color 200ms var(--ease-out);
}
@media (hover: hover) { .nav-links a:hover { color: var(--ice); } }
@media (min-width: 48rem) { .nav-links { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-h) + var(--s-6));
  padding-bottom: var(--s-7);
  background: radial-gradient(120% 80% at 90% 0%, rgb(86 122 165 / 0.16), rgb(86 122 165 / 0) 55%);
}
.hero-grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: var(--s-5); }
.hero-copy .lead { margin-top: var(--s-5); }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-3);
  box-shadow: 0 2rem 4rem -1.5rem rgb(0 4 12 / 0.7);
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 72%;
}
@media (min-width: 60rem) {
  .hero {
    min-height: min(100dvh, 56rem);
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-h) + var(--s-5));
  }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-8); }
  .hero-media { aspect-ratio: 4 / 5; max-height: 44rem; }
}

/* Hero-Einstieg: sofort sichtbar ohne JS, sanfter Einstieg mit */
@keyframes rise {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 700ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .hero-media { animation: fade 900ms var(--ease-out) 100ms both; }
}

/* ---------- Stats ---------- */
.stats { padding-block: var(--s-6) var(--s-8); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6) var(--s-5);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column-reverse; gap: var(--s-2); }
.stat dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat dt { font-size: 0.875rem; line-height: 1.4; color: var(--text-3); letter-spacing: 0.01em; }
@media (min-width: 48rem) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Geschichte ---------- */
.story { padding-block: var(--s-8) var(--s-9); }
.story-grid { display: grid; gap: var(--s-7); }
.story-text { max-width: 38rem; }
.story-text .h2 { margin-bottom: var(--s-6); }
.story-text p:not(.story-note) { color: var(--text-2); font-size: 1.125rem; line-height: 1.65; }
.story-text p + p { margin-top: var(--s-4); }
.story-note {
  margin-top: var(--s-6) !important;
  padding-left: var(--s-4);
  border-left: 2px solid var(--accent-strong);
  color: var(--ice);
  font-weight: 500;
}
.pull p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--accent);
  text-wrap: balance;
}
@media (min-width: 60rem) {
  .story-grid { grid-template-columns: 1.2fr 0.8fr; gap: var(--s-8); align-items: start; }
  .pull { position: sticky; top: calc(var(--nav-h) + var(--s-7)); margin-top: var(--s-10); }
}

/* ---------- Stationen ---------- */
.stations {
  padding-block: var(--s-9);
  background: var(--ink-2);
}
.stations-grid { display: grid; gap: var(--s-6); }
.stations-head .muted { margin-top: var(--s-3); max-width: 22ch; }
.timeline { position: relative; }
.tl {
  position: relative;
  padding: 0 0 var(--s-7) var(--s-6);
  border-left: 1px solid var(--line-strong);
}
.tl:last-child { padding-bottom: 0; border-left-color: transparent; }
.tl::before {                         /* Markierung auf der Zeitachse */
  content: "";
  position: absolute; left: -0.3125rem; top: 0.25rem;
  width: 0.5625rem; height: 0.5625rem;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid var(--accent);
}
.tl-now::before { background: var(--accent); }
.tl .h3 { margin-top: var(--s-2); }
.tl-metric { margin-top: var(--s-3); color: var(--text-2); font-size: 0.9375rem; }
.tl-metric strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ice);
}
.tl > p:last-of-type { margin-top: var(--s-3); color: var(--text-2); max-width: 36rem; }
.tl-media {
  margin-top: var(--s-5);
  max-width: 26rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
  aspect-ratio: 4 / 3;
}
.tl-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.tl-media-shot { aspect-ratio: auto; max-width: 30rem; box-shadow: inset 0 0 0 1px var(--line); }
.tl-media-shot img { height: auto; }
.tl-media figcaption {
  padding: var(--s-3) var(--s-4);
  font-size: 0.875rem;
  line-height: 1.45;
  letter-spacing: 0.005em;
  color: var(--text-2);
  background: var(--ink-3);
}
.tl-media figcaption strong { color: var(--ice); font-weight: 600; }
@media (min-width: 60rem) {
  .stations-grid { grid-template-columns: 0.7fr 1.3fr; gap: var(--s-8); }
  .stations-head { position: sticky; top: calc(var(--nav-h) + var(--s-7)); align-self: start; }
}

/* ---------- Mythos-Band ---------- */
.band {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(34rem, 90vh, 50rem);
  padding-block: var(--s-9);
  overflow: hidden;
}
.band-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 36% 35%;
}
.band::before {                        /* Scrim für Lesbarkeit */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--ink) 0%, rgb(10 14 21 / 0) 22%),
    linear-gradient(0deg, var(--ink) 0%, rgb(10 14 21 / 0.82) 38%, rgb(10 14 21 / 0.15) 75%);
}
.band-copy { max-width: 72rem; }
.band-title { max-width: 18ch; }
.band-copy p { margin-top: var(--s-5); max-width: 34rem; color: var(--text-2); font-size: 1.125rem; }
@media (min-width: 60rem) {
  .band::before {
    background:
      linear-gradient(180deg, var(--ink) 0%, rgb(10 14 21 / 0) 20%, rgb(10 14 21 / 0) 80%, var(--ink) 100%),
      linear-gradient(270deg, rgb(10 14 21 / 0.92) 0%, rgb(10 14 21 / 0.7) 42%, rgb(10 14 21 / 0) 70%);
  }
  .band { align-items: center; }
  .band-copy { display: flex; flex-direction: column; align-items: flex-end; }
  .band-copy > * { width: min(100%, 30rem); }
  .band-title { max-width: none; }
}

/* ---------- Projekte (Bento) ---------- */
.work { padding-block: var(--s-9); }
.work-sub { margin-top: var(--s-3); margin-bottom: var(--s-7); }
.bento { display: grid; gap: var(--s-4); }
.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  padding: var(--s-6);
  background: var(--ink-2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
}
.tile p { color: var(--text-2); }
.tile-kind { margin-bottom: var(--s-2); }
.tile-title { font-size: 1.625rem; letter-spacing: -0.015em; margin-bottom: var(--s-3); }

.tile-vv { padding: 0; display: grid; background: var(--ink-3); }
.tile-vv img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 55% 45%;
}
.tile-vv .tile-body { padding: var(--s-6); }
.tile-vv .btn { margin-top: var(--s-5); }
.facts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.facts li {
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  padding: var(--s-1) var(--s-3);
  border-radius: 999px;
  background: rgb(143 172 208 / 0.12);
  color: var(--ice);
}
.tile-quote {
  margin-top: var(--s-5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ice) !important;
}

.tile-mythos {
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(86 122 165 / 0.35), rgb(86 122 165 / 0) 60%),
    var(--ink-2);
}
.vlogs { margin-top: var(--s-5); display: grid; }
.vlogs a {
  display: flex; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-3) 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ice);
  transition: color 200ms var(--ease-out);
}
.vlogs li + li a { border-top: 1px solid var(--line); }
.vlogs .arw { color: var(--accent); }
.vlogs a:active { opacity: 0.7; transition: opacity 100ms ease-out; }
@media (hover: hover) {
  .vlogs a:hover { color: var(--accent); }
  .vlogs a:hover .arw { transform: translateX(3px); }
}

.tile-music {
  background:
    repeating-linear-gradient(90deg, rgb(143 172 208 / 0.05) 0 1px, transparent 1px 1.25rem),
    var(--ink-2);
}

@media (min-width: 60rem) {
  .bento { grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; gap: var(--s-5); }
  .tile-vv { grid-row: span 2; grid-template-rows: auto 1fr; }
  .tile-vv img { aspect-ratio: 16 / 9; }
  .tile { padding: var(--s-7); }
  .tile-vv { padding: 0; }
  .tile-vv .tile-body { padding: var(--s-7); }
}

/* ---------- Abschluss: drei Wege ---------- */
.close { padding-block: var(--s-9); border-top: 1px solid var(--line); }
.close .h2 { max-width: 18ch; margin-bottom: var(--s-7); }
.routes { display: grid; gap: var(--s-3); }
.route {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-1) var(--s-5);
  align-items: center;
  padding: var(--s-5) var(--s-6);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 100ms ease-out, background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.route:active { transform: scale(0.985); }
.route-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.route-desc { grid-column: 1; font-size: 0.9375rem; color: var(--text-2); }
.route-arw {
  grid-column: 2; grid-row: 1 / span 2;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--accent);
  transition: transform 200ms var(--ease-out);
}
.route-primary { background: var(--ice); color: var(--ink); box-shadow: none; }
.route-primary .route-desc { color: #3C4656; }
.route-primary .route-arw { color: var(--ink); }
@media (hover: hover) {
  .route:hover { box-shadow: inset 0 0 0 1px var(--accent); }
  .route-primary:hover { background: #fff; box-shadow: none; }
  .route:hover .route-arw { transform: translateX(4px); }
}

/* ---------- Footer ---------- */
.foot { padding-block: var(--s-7) var(--s-8); border-top: 1px solid var(--line); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-5); align-items: flex-end; }
.foot-mark { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.foot-social { display: flex; gap: var(--s-5); margin-top: var(--s-3); }
.foot-social a, .foot-meta a { color: var(--text-2); text-decoration: none; }
.foot-social a { font-size: 0.875rem; }
.foot-meta { font-size: 0.8125rem; line-height: 1.7; color: var(--text-3); letter-spacing: 0.01em; }
.foot-meta a { border-bottom: 1px solid var(--line-strong); }
@media (hover: hover) { .foot-social a:hover, .foot-meta a:hover { color: var(--ice); } }
@media (min-width: 48rem) { .foot-meta { text-align: right; } }

/* ---------- Scroll-Reveal: nur mit JS, Inhalt ohne JS sichtbar ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Drei Accessibility-Signale (Apple §14) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Cross-Fade statt Bewegung */
  .js .reveal { opacity: 0; transition: opacity 200ms ease; }
  .js .reveal.in { opacity: 1; }
  .btn:active, .route:active { transform: none; opacity: 0.8; }
  .arw, .route-arw { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav::before { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav::after { display: none; }
}
@media (prefers-contrast: more) {
  :root {
    --text-2: #D5DCE6;
    --text-3: #B8C1CE;
    --line: rgb(210 222 238 / 0.35);
    --line-strong: rgb(210 222 238 / 0.6);
  }
  .nav::before { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.is-scrolled { box-shadow: 0 1px 0 var(--line-strong); }
  .tile, .route { box-shadow: inset 0 0 0 1px var(--line-strong); }
  .btn-ghost { border-color: var(--ice); }
}
