/* RR global e-com GmbH – style.css
   Weiß, Grau, ein Lila. Typografie als einziges lautes Element.
   Bewegung: CSS Scroll-driven Animations, Fallback per assets/main.js (Klasse .no-sda). */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(assets/fonts/archivo-variable-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: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(assets/fonts/archivo-variable-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: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/caveat-variable-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: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/caveat-variable-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;
}

:root {
  --bg: #ffffff;
  --surface: #f4f4f6;
  --line: #e4e4e9;
  --muted: #7a7a85;
  --text: #141418;
  --accent: #6c3bea;
  --accent-dark: #4b25ae;
  --tint: #f0ebfd;

  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: 6vw;
  --wm-size: clamp(3.6rem, 16vw, 15rem);

  /* werden von main.js gemessen: Weg des Hero-Namens in die Navigation */
  --wm-dx: 0px;
  --wm-dy: -70vh;
  --wm-s: 0.12;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  timeline-scope: --hero, --kontakt;
}

picture { display: contents; }
img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--tint); color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Display-Typografie ---------- */
.display,
.wordmark,
.num,
.intl-title,
.marquee-track,
.panel h3,
.vita h2 {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: 64px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  --a: nav-invert;
  --tl: --kontakt;
  --rng: entry 70% entry 100%;
}
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.nav nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.nav nav a {
  position: relative;
  padding: 0.35rem 0;
}
.nav nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 220ms var(--ease-out);
}
.nav nav a:hover::after,
.nav nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.nav-brand {
  font-stretch: 125%;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
  --a: fade-in;
  --tl: --hero;
  --rng: contain 88% contain 100%;
}

/* ---------- Hero ---------- */
.hero {
  height: 200vh;
  height: 200dvh;
  view-timeline-name: --hero;
  view-timeline-axis: block;
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) 7vh;
}
.wordmark {
  position: relative;
  margin: 0;
  font-size: var(--wm-size);
  transform-origin: 0 0;
  --a: wm-shrink;
  --tl: --hero;
  --rng: contain 0% contain 100%;
}
.wm-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.wm-line.rr { --a: drift-left; --tl: --hero; --rng: contain 0% contain 100%; }
.wm-line.gl { --a: drift-right; --tl: --hero; --rng: contain 0% contain 100%; }
.wm-word {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.9s var(--ease-out) 0.1s forwards;
}
.wm-line.gl .wm-word { animation-delay: 0.22s; }
.wm-script {
  position: absolute;
  left: 2.85em; /* em bezieht sich auf die eigene Schriftgröße (0.62em der Wortmarke) */
  top: -0.14em;
  z-index: 1;
  font-family: var(--script);
  font-weight: 700;
  font-size: 0.62em;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  rotate: -5deg;
  clip-path: inset(-0.2em 100% -0.2em 0);
  animation: write 1s var(--ease-in-out) 0.85s forwards;
}
.wm-gmbh {
  display: block;
  margin-top: 0.22em;
  font-size: clamp(0.72rem, 0.09em, 1rem);
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0.32em;
  line-height: 1;
  opacity: 0;
  animation: fade-in 0.6s var(--ease-out) 1.5s forwards;
}

/* ---------- Fokus-Statement ---------- */
.statement {
  background: var(--surface);
  padding: clamp(6rem, 18vh, 12rem) var(--gutter);
  view-timeline-name: --stmt;
}
.statement-text {
  margin: 0;
  max-width: 92vw;
  font-family: var(--sans);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.9rem, 5.4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--muted);
  background-image: linear-gradient(100deg, var(--text) 0 40%, var(--muted) 60% 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  --a: sweep;
  --tl: --stmt;
  --rng: cover 18% cover 62%;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .statement-text { color: transparent; }
}

/* ---------- Schwerpunkte: Sticky-Stack ---------- */
.stack {
  position: relative;
  timeline-scope: --p1, --p2, --p3, --p4;
}
.panel {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 4vw;
  padding: 14vh var(--gutter) 8vh;
  background: var(--bg);
  transform-origin: 50% 0;
  overflow: hidden;
}
.panel.p2, .panel.p4 { background: var(--surface); }
.panel.p1 { view-timeline-name: --p1; --a: shrink; --tl: --p2; --rng: entry 0% entry 100%; }
.panel.p2 { view-timeline-name: --p2; --a: shrink; --tl: --p3; --rng: entry 0% entry 100%; }
.panel.p3 { view-timeline-name: --p3; --a: shrink; --tl: --p4; --rng: entry 0% entry 100%; }
.panel.p4 { view-timeline-name: --p4; }

.dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  --a: dim-in;
  --tl: --p2;
  --rng: entry 0% entry 100%;
}
.panel.p2 .dim { background: var(--surface); --tl: --p3; }
.panel.p3 .dim { --tl: --p4; }
.panel-side,
.panel-body { min-width: 0; }
.panel-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}
.num {
  font-size: clamp(5rem, 15vw, 14rem);
  color: var(--line);
  margin-left: -0.04em;
}
.panel.p2 .num, .panel.p4 .num { color: #fff; }
.note {
  align-self: flex-start;
  font-family: var(--script);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  line-height: 1;
  color: var(--accent);
  rotate: -3deg;
  margin-bottom: 0.5rem;
}
.panel-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.panel h3 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.6rem, 3.3vw, 3rem);
  font-stretch: 115%;
  line-height: 0.95;
  hyphens: manual;
  overflow-wrap: anywhere;
}
.panel p {
  margin: 0;
  max-width: 48ch;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}
.panel img {
  margin-top: auto;
  width: 100%;
  max-height: 36vh;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.panel picture + *, .panel p + picture { margin-top: 2rem; }

/* ---------- International ---------- */
.intl {
  padding: clamp(6rem, 16vh, 11rem) 0 0;
}
.intl-mask {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: min(78vh, 60vw);
  min-height: 300px;
  view-timeline-name: --intl;
}
.intl-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  --a: zoom;
  --tl: --intl;
  --rng: cover 0% cover 100%;
}
.intl-title {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  color: #000;
  mix-blend-mode: screen;
  font-size: clamp(2.2rem, 8.6vw, 10rem);
  line-height: 0.88;
}
.intl-text {
  margin: clamp(2.5rem, 6vh, 4rem) var(--gutter) 0;
  max-width: 44ch;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}
.marquee {
  margin-top: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  font-size: clamp(2rem, 6vw, 6rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
  animation: marquee 48s linear infinite;
}
.marquee-track span { padding-right: 1.2em; white-space: nowrap; }
.marquee-track span:nth-child(3n)  { color: var(--accent); -webkit-text-stroke: 0; }

/* ---------- Vita ---------- */
.vita {
  padding: clamp(6rem, 16vh, 11rem) var(--gutter) clamp(6rem, 16vh, 11rem);
}
.vita h2 {
  margin: 0 0 clamp(3rem, 8vh, 6rem);
  font-size: clamp(2.2rem, 6vw, 5.5rem);
}
.person {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(2rem, 5vh, 3.5rem) 0;
  border-top: 1px solid var(--line);
}
.person:last-child { border-bottom: 1px solid var(--line); }
.portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  display: grid;
  place-items: center;
  --a: reveal-up;
  --tl: view();
  --rng: entry 0% entry 80%;
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: grayscale(1) contrast(1.04);
}
.initials {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 8rem);
  letter-spacing: -0.05em;
  color: var(--line);
}
.person-text h3 {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-stretch: 118%;
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1;
}
.role {
  margin: 0 0 1.5rem;
  font-family: var(--script);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1;
  color: var(--accent);
}
.person-text p:not(.role) {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}
.person-text p:not(.role) + p { margin-top: 1rem; }

/* ---------- Kontakt ---------- */
.kontakt {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20vh var(--gutter) 2rem;
  background: var(--accent-dark);
  color: #fff;
  view-timeline-name: --kontakt;
}
.kontakt-script {
  margin: 0 0 clamp(2rem, 6vh, 4rem);
  font-family: var(--script);
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 15rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  transform-origin: 0 100%;
  --a: grow-in;
  --tl: --kontakt;
  --rng: entry 15% entry 90%;
}
.kontakt-lines p {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 500;
}
.kontakt-lines p + p { color: rgba(255, 255, 255, 0.72); }
.footer {
  margin-top: clamp(4rem, 12vh, 8rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.footer nav { display: flex; gap: 1.5rem; }
.footer a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 140ms var(--ease-out);
}
.footer a:hover { text-decoration-color: transparent; }
.footer p { margin: 0; opacity: 0.8; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.kontakt-lines a {
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 140ms var(--ease-out);
}
.kontakt-lines a:hover { text-decoration-color: transparent; }
.subpage .nav-brand { opacity: 1; }
.legal {
  max-width: 72ch;
  padding: clamp(7rem, 18vh, 11rem) var(--gutter) clamp(4rem, 10vh, 7rem);
}
.legal h1 {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  hyphens: manual;
}
.legal-intro {
  margin: 0 0 3rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted);
}
.legal h2 {
  margin: 2.5rem 0 0.6rem;
  font-family: var(--sans);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.legal p, .legal address, .legal li { font-size: 1rem; line-height: 1.6; }
.legal p { margin: 0 0 0.9rem; }
.legal address { font-style: normal; margin: 0 0 0.9rem; }
.legal ul { margin: 0 0 0.9rem; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.3rem; }
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 140ms var(--ease-out);
}
.legal a:hover { color: var(--accent-dark); }
.legal-stand { color: var(--muted); margin-top: 2rem; }
.footer-sub {
  margin: 0 var(--gutter);
  padding-bottom: 2rem;
  border-top-color: var(--line);
  color: var(--text);
}
.footer-sub a { color: var(--text); }
.footer-sub p { opacity: 1; color: var(--muted); }

/* ---------- Keyframes ---------- */
@keyframes rise   { to { transform: none; } }
@keyframes write  { to { clip-path: inset(-0.2em -0.1em -0.2em 0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes wm-shrink {
  0%   { transform: none; opacity: 1; }
  78%  { opacity: 1; }
  100% { transform: translate(var(--wm-dx), var(--wm-dy)) scale(var(--wm-s)); opacity: 0; }
}
@keyframes drift-left  { 0% { transform: none; } 55% { transform: translateX(-3vw); } 100% { transform: none; } }
@keyframes drift-right { 0% { transform: none; } 55% { transform: translateX(3vw); }  100% { transform: none; } }

@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }

@keyframes shrink {
  to { transform: scale(0.94) translateY(-3vh); }
}
@keyframes dim-in { from { opacity: 0; } to { opacity: 0.72; } }
@keyframes zoom { from { transform: scale(1.22); } to { transform: scale(1); } }
@keyframes reveal-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes grow-in { from { transform: scale(0.6) translateY(10%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nav-invert { to { color: #fff; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Scroll-Antrieb ----------
   Browser mit Scroll-driven Animations: Timeline und Bereich aus den Variablen.
   Andere Browser: main.js setzt .no-sda und fährt die Animationen über animation-delay. */
@supports (animation-timeline: view()) {
  [data-scroll] {
    animation-name: var(--a);
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: var(--tl);
    animation-range: var(--rng);
  }
}
.no-sda [data-scroll] {
  animation-name: var(--a);
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-play-state: paused;
  animation-delay: 0s;
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero-sticky { position: static; }
  .wm-word { transform: none; }
  .wm-script { clip-path: none; }
  .wm-gmbh { opacity: 1; }
  .statement-text { background-position: 0 0; }
  .panel { position: relative; height: auto; min-height: 0; padding-top: 10vh; }
}

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .nav { height: 56px; }
  .nav nav { gap: 0.9rem; }
  .nav nav a { font-size: 0.82rem; }
  .nav-brand { font-size: 0.95rem; }
  .hero-sticky { padding-bottom: 9vh; }
  .panel {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 1.25rem;
    padding: 12vh var(--gutter) 6vh;
  }
  .panel-side { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 1rem; }
  .num { font-size: 4.5rem; }
  .note { align-self: auto; font-size: 1.4rem; margin: 0; }
  .panel img { max-height: 28vh; }
  .intl-mask { height: 56vh; }
  .intl-title { font-size: 9vw; }
  .person { grid-template-columns: 1fr; gap: 1.5rem; }
  .portrait { max-width: 62%; }
  .kontakt { padding-top: 30vh; }
  .footer { flex-direction: column; align-items: flex-start; }
}
