/* =========================================================
   Fabian Spryng – Design-System & Styles
   Alle Farben, Schriften und Abstände stehen oben als Variablen.
   Wer etwas global ändern will, ändert es nur hier.
   ========================================================= */

/* ---------- Schriften (lokal, keine Google-Server) ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Variablen ---------- */
:root {
  /* Farben */
  /* Markenfarben "Kalter Morgen + Roheisen-Akzent":
     kühl in der Fläche, warm im Detail */
  --c-bg: #0C1116;              /* Basis / Hintergrund */
  --c-surface: #151E25;         /* Karten (zwischen Basis und Flächen-Ton) */
  --c-surface-line: #223039;    /* Flächen / Linien */
  --c-text: #E9EBEA;            /* Text / Hell */
  --c-muted: #7C8B94;           /* Sekundärtext */
  --c-accent: #B4522A;          /* Roheisen: Buttons, Highlights */
  --c-accent-light: #D06A3C;    /* Akzent auf dunklem Grund, Hover */
  --c-glow: rgba(180, 82, 42, 0.28);
  --c-shade: rgba(12, 17, 22, 0.6);
  --c-button: var(--c-accent);
  --c-button-hover: #C55E33;

  /* Schriften */
  --f-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Schriftgrößen (passen sich der Bildschirmbreite an) */
  --fs-hero: clamp(3.4rem, 10vw, 13rem);
  --fs-display: clamp(3rem, 10vw, 9rem);
  --fs-headline: clamp(2rem, 5vw, 4.25rem);
  --fs-card: clamp(2.2rem, 4.6vw, 4.5rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --fs-small: 0.8125rem;

  /* Abstände */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: clamp(2rem, 4vw, 3.5rem);
  --space-xl: clamp(4rem, 9vw, 8rem);
  --space-xxl: clamp(6rem, 14vw, 12rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 1240px;

  /* Formen & Bewegung */
  --radius-card: clamp(1.75rem, 3.5vw, 3rem);
  --radius-img: clamp(1rem, 2vw, 1.75rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Stapel-Karten */
  --stack-top: clamp(1.5rem, 5vh, 3rem);
  --stack-height: min(62vh, 640px);
  --wide: min(94vw, 1800px);   /* Breite für Karten & großes Bild */
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--c-bg);
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* "clip" statt "hidden", damit die Stapel-Karten funktionieren */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-serif); font-weight: 400; line-height: 1.05; margin: 0; }
p { margin: 0; }
em { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--c-accent); color: var(--c-text); padding: 0.6rem 1rem; border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--c-accent-light); outline-offset: 4px; }

/* Kleine Unterzeile in Kapitälchen-Optik */
.eyebrow {
  font-family: var(--f-serif);
  font-size: clamp(1.1rem, 2.2vw, 2rem);
  font-variant-caps: small-caps;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--c-muted);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: sticky;          /* bleibt stehen, Inhalt schiebt sich drüber */
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__media, .hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__media img {
  transform: scale(calc(1 + var(--hero-p, 0) * 0.08));
  will-change: transform;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,17,22,0.45) 0%, rgba(12,17,22,0) 30%, rgba(12,17,22,0) 55%, rgba(12,17,22,0.75) 100%),
    rgba(12, 17, 22, calc(var(--hero-p, 0) * 0.6));
}
.nav {
  position: absolute; top: 0; right: 0;
  display: flex; align-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter);
  font-family: var(--f-serif);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nav a + a::before { content: "·"; display: inline-block; margin-inline: clamp(0.7rem, 2vw, 1.6rem); }
.nav a { text-decoration: none; opacity: 0.85; transition: opacity 0.3s; }
.nav a:hover { opacity: 1; }

.hero__title {
  position: relative;
  /* Name im unteren Drittel: liegt über dem dunklen Bildbereich statt über dem Gesicht */
  align-self: end;
  margin-bottom: calc(clamp(1.5rem, 4vh, 3rem) + clamp(5.5rem, 12vh, 9rem));
  font-size: var(--fs-hero);
  /* silbriger Verlauf, durch den das Foto leicht durchscheint */
  background: linear-gradient(180deg, rgba(233,235,234,0.96) 0%, rgba(205,216,223,0.8) 60%, rgba(160,178,189,0.62) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  line-height: 0.95;
  transform: translateY(calc(var(--hero-p, 0) * -12vh));
  opacity: calc(1 - var(--hero-p, 0) * 1.2);
}
.hero__arrow {
  position: absolute; bottom: clamp(1.5rem, 4vh, 3rem);
  width: 44px; height: 22px; color: var(--c-text);
  animation: arrow 2.2s var(--ease) infinite;
}
@keyframes arrow {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* =========================================================
   INHALT (schiebt sich über das Hero-Bild)
   ========================================================= */
.content {
  position: relative;
  z-index: 1;
  background: var(--c-bg);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  box-shadow: 0 -30px 60px rgba(0,0,0,0.5);
}
.section { padding-block: var(--space-xl); }

/* ---------- Über mich ---------- */
.about { padding-top: var(--space-xl); }
.about__text { text-align: center; }
.lead {
  font-size: var(--fs-lead);
  color: var(--c-muted);
  max-width: 50rem;
  margin: var(--space-m) auto 0;
  text-align: justify;
  hyphens: auto;
}
.about__wrap { width: var(--wide); margin-inline: auto; }
.about__image {
  margin: var(--space-xl) 0 0;
  border-radius: var(--radius-img);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--c-surface-line),
    0 30px 120px 10px var(--c-glow);
}
.about__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Übergang: Strich + Unterzeile + große Headline ---------- */
.intro {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 0 var(--gutter) var(--space-xl);
}
.intro__line {
  width: 3px;
  height: clamp(8rem, 28vh, 20rem);
  background: var(--c-text);
  transform-origin: top;
  transform: scaleY(var(--line-p, 1));
  margin-bottom: var(--space-xl);
}
.intro .eyebrow { opacity: calc(var(--line-p, 1) * 2 - 1); }
.display {
  font-size: var(--fs-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: var(--space-s);
  opacity: calc(var(--line-p, 1) * 2 - 0.8);
  transform: translateY(calc((1 - var(--line-p, 1)) * 40px));
}

/* =========================================================
   STAPEL-KARTEN (Sticky Stack)
   Jede Karte bleibt an derselben Stelle "kleben".
   Die nächste schiebt sich darüber, bis sie exakt deckungsgleich liegt.
   ========================================================= */
.stack { width: var(--wide); margin-inline: auto; padding-bottom: 6vh; }
.stack-card {
  position: sticky;
  top: var(--stack-top);
  height: var(--stack-height);
  margin-bottom: 10vh;
  background: var(--c-surface);
  border: 1px solid var(--c-surface-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  isolation: isolate;
  /* --cover wird per JavaScript gesetzt: 0 = frei, 1 = komplett verdeckt */
  transform: scale(calc(1 - var(--cover, 0) * 0.05));
  transform-origin: 50% 0;
  box-shadow: 0 -20px 50px rgba(0,0,0,0.45);
}
.stack-card:last-child { margin-bottom: 0; }
.stack-card::after { /* abdunkeln, wenn verdeckt */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--c-bg);
  opacity: calc(var(--cover, 0) * 0.55);
  border-radius: inherit;
}
.stack-card__text {
  padding: clamp(1.75rem, 5vw, 6rem);
  position: relative; z-index: 1;
}
.stack-card__kicker {
  font-size: var(--fs-small); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--c-accent);
}
.stack-card h3 { font-size: var(--fs-card); text-transform: uppercase; margin: var(--space-s) 0 var(--space-m); }
.stack-card__text p:last-child { color: var(--c-muted); font-size: var(--fs-lead); text-align: justify; hyphens: auto; max-width: 40rem; }

/* Journey: zwei schräge Fotos rechts, am Kartenrand abgeschnitten */
.journey-card { grid-template-columns: 56% 44%; }
.journey-card__photos { position: relative; height: 100%; }
/* Zwei Fotos wie beim Vorbild: hinten oben rechts, vorne unten links, nur an einer Ecke überlappend.
   --in (0 bis 1) kommt per JavaScript: Beim Hochschieben der Karte gleiten die Fotos leicht nach links ins Bild. */
.journey-card__photos img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius-img);
  box-shadow: 0 30px 60px rgba(0,0,0,0.55);
  will-change: transform;
}
.journey-card__photos img:first-child {
  z-index: 1; width: 56%; aspect-ratio: 4 / 5; right: -4%; top: -3%;
  transform: translateX(calc((1 - var(--in, 1)) * 22%)) rotate(-8deg);
}
.journey-card__photos img:last-child {
  z-index: 2; width: 64%; aspect-ratio: 4 / 3; left: 0; bottom: -6%;
  transform: translateX(calc((1 - var(--in, 1)) * 34%)) rotate(-8deg);
}

/* Coaching-Schritte: Grafik abwechselnd links/rechts */
.stack-card strong { color: var(--c-text); font-weight: 600; }
/* Grafiken: weiße Strichzeichnungen auf Schwarz, verschmelzen mit der Karte */
.step-card__graphic { padding: clamp(1.25rem, 4vw, 4rem); height: 100%; display: grid; place-items: center; }
.step-card__graphic img {
  width: 100%; max-width: 460px; max-height: 100%;
  object-fit: contain;
  mix-blend-mode: lighten;
}
.step-card--reverse .stack-card__text { order: 2; }

/* ---------- Testimonials (Videos mit Klick-zum-Laden) ---------- */
.video-grid {
  max-width: 1440px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.video {
  margin: 0;
  padding: clamp(0.6rem, 1.2vw, 1.1rem);
  border: 1px solid var(--c-surface-line);
  border-radius: clamp(1.25rem, 2vw, 1.75rem);
}
.video__trigger, .video iframe {
  position: relative; display: block;
  width: 100%; aspect-ratio: 16 / 9;
  border: 0; padding: 0;
  border-radius: clamp(0.75rem, 1.2vw, 1.1rem);
  overflow: hidden;
  background: var(--c-surface);
}
.video__trigger { cursor: pointer; color: var(--c-text); }
.video__trigger img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.4s;
  opacity: 0.85;
}
.video__trigger:hover img { transform: scale(1.04); opacity: 1; }
.video__play {
  position: absolute; left: 50%; top: 50%;
  width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: var(--c-shade);
  border: 1px solid rgba(233,235,234,0.6);
  backdrop-filter: blur(6px);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.video__play::after {
  content: ""; position: absolute; left: 27px; top: 22px;
  border-style: solid; border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent var(--c-text);
}
.video__trigger:hover .video__play { background: var(--c-accent); transform: scale(1.08); }
.video figcaption { margin-top: 0.85rem; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; text-align: center; }
.video__name { font-family: var(--f-serif); font-variant-caps: small-caps; font-size: 1.2rem; letter-spacing: 0.04em; color: var(--c-text); }
.video__line { font-size: 0.9rem; color: var(--c-muted); }
.video-note {
  margin-top: var(--space-l);
  font-size: var(--fs-small);
  color: var(--c-muted);
  text-align: center;
  max-width: 44rem;
}

/* ---------- Abschluss / Call-to-Action ---------- */
.cta { padding-bottom: var(--space-xxl); }
.cta .display { line-height: 1.05; font-size: clamp(2.6rem, 7vw, 7.5rem); }
.cta__action { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); }
.button {
  display: inline-block;
  padding: 1.05rem 3rem;
  border-radius: 0.6rem;
  background: var(--c-button);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.6rem);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.button:hover {
  background: var(--c-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--c-glow);
}
.cta__hint { font-size: var(--fs-small); color: var(--c-muted); letter-spacing: 0.08em; }

/* ---------- Footer ---------- */
.footer { padding: var(--space-l) clamp(1.25rem, 4vw, 4rem) clamp(2rem, 4vw, 3.5rem); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-m); }
.footer__name { font-family: var(--f-sans); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 500; letter-spacing: -0.01em; }
.footer__right { display: flex; align-items: center; gap: var(--space-l); }
.footer__social { display: flex; align-items: center; gap: var(--space-m); }
.footer__icon { display: inline-flex; width: 30px; height: 30px; color: var(--c-text); transition: color 0.3s; }
.footer__icon:hover { color: var(--c-accent-light); }
.footer__links { display: flex; gap: var(--space-m); font-size: 0.9rem; }
.footer__links a { color: var(--c-muted); text-decoration: none; }
.footer__links a:hover { color: var(--c-text); }

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Video (VSL) direkt nach dem Startbild */
.vsl { padding-top: var(--space-xl); }
.display--vsl { font-size: clamp(2.2rem, 5.5vw, 5.2rem); line-height: 1.05; max-width: 18ch; text-wrap: balance; }
.vsl__wrap { width: min(var(--wide), 1200px); margin-inline: auto; }
.video--feature { padding: clamp(0.5rem, 1vw, 0.9rem); box-shadow: 0 30px 120px 10px var(--c-glow); }
.video--feature .video__play { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.video--feature .video__play::after { left: 35px; top: 29px; border-width: 15px 0 15px 24px; }
.vsl__cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); margin-top: var(--space-l); }

/* Claim unter dem Namen */
.hero__claim {
  position: absolute;
  bottom: calc(clamp(1.5rem, 4vh, 3rem) + 48px);
  left: var(--gutter); right: var(--gutter);
  text-align: center;
  font-family: var(--f-serif);
  font-variant-caps: small-caps;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.06em;
  color: rgba(233, 235, 234, 0.85);
  opacity: calc(1 - var(--hero-p, 0) * 2);
}

/* Die drei Konstanten */
.constants {
  list-style: none;
  margin-block: var(--space-xl) 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
  text-align: center;
}
.constants li { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding-top: var(--space-m); border-top: 1px solid var(--c-surface-line); }
.constants__value { font-family: var(--f-serif); font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; }
.constants__label { font-family: var(--f-serif); font-variant-caps: small-caps; font-size: clamp(1.1rem, 1.8vw, 1.5rem); color: var(--c-text); letter-spacing: 0.04em; }
.constants__note { color: var(--c-muted); font-size: 0.95rem; }

/* =========================================================
   UNTERSEITEN (Impressum, Datenschutz …)
   ========================================================= */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-m);
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter);
  font-family: var(--f-serif); text-transform: uppercase;
}
.topbar a { text-decoration: none; }
.topbar__brand { font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: 0.04em; }
.topbar__nav { display: flex; font-size: clamp(0.85rem, 1.3vw, 1.15rem); }
.topbar__nav a { opacity: 0.85; }
.topbar__nav a:hover { opacity: 1; }
.topbar__nav a + a::before { content: "·"; display: inline-block; margin-inline: clamp(0.5rem, 1.5vw, 1.2rem); }

.legal { max-width: 52rem; padding-block: var(--space-xl) var(--space-xxl); }
.legal .display { font-size: clamp(2.6rem, 8vw, 6rem); margin-bottom: var(--space-l); }
.legal h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); margin: var(--space-l) 0 var(--space-s); }
.legal p, .legal li { color: #C4CBCE; }
.legal p + p { margin-top: var(--space-s); }
.legal ul { padding-left: 1.2rem; margin: var(--space-s) 0; }
.legal a { color: var(--c-accent-light); }
.legal__meta { font-size: var(--fs-small); color: var(--c-muted) !important; }
.legal mark { background: rgba(180, 82, 42, 0.28); color: var(--c-accent-light); padding: 0 0.2em; border-radius: 0.2em; }
.draft-note {
  border: 1px solid var(--c-accent);
  background: rgba(180, 82, 42, 0.08);
  border-radius: 1rem;
  padding: var(--space-m);
  margin-bottom: var(--space-l);
  color: var(--c-text);
}
.draft-note strong { color: var(--c-accent-light); display: block; margin-bottom: 0.3rem; }
@media (max-width: 700px) {
  .topbar { flex-direction: column; }
}

/* =========================================================
   HANDY & TABLET
   ========================================================= */
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  :root {
    --stack-top: 1rem;
    --stack-height: min(calc(100svh - 2rem), 780px);
  }
  .hero__title { font-size: 18vw; }
  .display { font-size: 13vw; }
  .display--long { font-size: 9.5vw; }
  .display--vsl { font-size: 8.6vw; }
  .cta .display { font-size: 12vw; }
  .hero__title span { display: block; }
  .constants { grid-template-columns: 1fr; gap: var(--space-m); }
  .nav { left: 0; justify-content: center; font-size: 0.8rem; }

  .stack-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
  }
  /* Journey: Text oben, Fotos unten (am Rand abgeschnitten) */
  .journey-card { grid-template-columns: 1fr; }
  .journey-card__photos img:first-child { width: 54%; right: -2%; top: 0; }
  /* unteres Foto direkt unter das obere gerückt: keine große Lücke, nichts unten abgeschnitten */
  .journey-card__photos img:last-child { width: 64%; left: 6%; top: 46vw; bottom: auto; }
}
@media (max-width: 700px) and (max-height: 720px) {
  .journey-card__photos img:first-child { width: 44%; }
  .journey-card__photos img:last-child { width: 52%; top: 26vw; left: 2%; }
  .stack-card__text p:last-child, .lead { font-size: var(--fs-body); text-align: left; }
  .nav { font-size: 0.95rem; }
  .nav a + a::before { margin-inline: 0.6rem; }

  /* Schritte: Grafik oben, Text unten */
  .step-card { grid-template-rows: auto 1fr; }
  .step-card .step-card__graphic { order: 1; height: auto; padding-bottom: 0; }
  .step-card .stack-card__text { order: 2; padding-top: var(--space-m); }
  .step-card__graphic img { max-height: 34svh; }

  .video-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__right { flex-direction: column-reverse; gap: var(--space-m); }
}

/* Weniger Bewegung, wenn im Betriebssystem so eingestellt */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
