/* ============ Tokens ============ */
:root {
  --bg: #0b0b0b;
  --bg-2: #141414;
  --fg: #f2efe9;
  --muted: #8d8a85;
  --line: rgba(242, 239, 233, .14);
  --red: #e3001b;
  --red-2: #a5001f;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.eyebrow {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.h2 {
  font-size: clamp(40px, 7vw, 112px); line-height: .95; font-weight: 500; letter-spacing: -.04em;
}
.h2 em { color: var(--red); letter-spacing: -.02em; }

/* split text */
.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.char { display: inline-block; will-change: transform; }
.char.sp { width: .26em; }

/* ============ Grain ============ */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-5%); } 60% { transform: translate(-6%,-2%); } 80% { transform: translate(5%,4%); }
}

/* ============ Loader ============ */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.loader__panel { position: absolute; inset: 0; background: var(--bg); }
.loader__inner { position: relative; display: grid; justify-items: center; gap: 24px; }
.loader__logo { width: 88px; height: 88px; border-radius: 50%; }
.loader__count {
  font-size: clamp(64px, 14vw, 180px); font-weight: 800; letter-spacing: -.06em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.loader__bar { width: 160px; height: 2px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

/* ============ Cursor ============ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--fg); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s;
}
.cursor__label { font-size: 12px; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s; letter-spacing: .02em; }
.cursor.is-hover { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--red); mix-blend-mode: normal; }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: transform .6s var(--ease), background .4s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: rgba(11,11,11,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.02em; font-size: 17px; }
.nav__brand img { width: 40px; height: 40px; border-radius: 50%; transition: transform .8s var(--ease); }
.nav__brand:hover img { transform: rotate(-360deg); }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav__links a:not(.nav__cta) { position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 10px 20px; border-radius: 99px; background: var(--fg); color: var(--bg); font-weight: 500; display: inline-block; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--fg); transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--red);
  display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
}
.menu a { font-size: clamp(48px, 14vw, 96px); font-weight: 600; letter-spacing: -.05em; line-height: 1.05; }
.menu.is-open { clip-path: inset(0 0 0 0); }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}

/* ============ Hero ============ */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; overflow: hidden; clip-path: inset(12% 12% 12% 12% round 24px); will-change: clip-path; }
.hero__img { width: 100%; height: 115%; object-fit: cover; transform: scale(1.3); will-change: transform; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.6) 100%); pointer-events: none; }
.hero__content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(24px, 4vw, 48px); pointer-events: none;
}
.hero__content a { pointer-events: auto; }
.hero__kicker { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(227,0,27,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(227,0,27,0); } 100% { box-shadow: 0 0 0 0 rgba(227,0,27,0); } }
.hero__title {
  font-size: clamp(64px, 17vw, 300px); line-height: .82; font-weight: 800; letter-spacing: -.065em;
  margin-left: -.04em;
}
.line--serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.03em; color: var(--red); }
.hero__title .line { padding-bottom: .3em; margin-bottom: -.3em; } /* Platz für die Unterlänge vom g */
.hero__title .line--serif { padding-left: .9em; margin-top: -.26em; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 24px; }
.hero__lead { font-size: clamp(16px, 1.6vw, 22px); max-width: 26ch; color: rgba(242,239,233,.85); }
.scroll-hint { display: flex; align-items: center; gap: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.scroll-hint i { width: 1px; height: 48px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0; background: var(--fg); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* ============ Statement ============ */
.statement { padding: clamp(120px, 18vw, 240px) var(--gutter); display: grid; grid-template-columns: 1fr 3fr; gap: 32px; }
.statement__text { font-size: clamp(28px, 4.2vw, 64px); line-height: 1.1; letter-spacing: -.03em; font-weight: 500; }
.statement__text .w { opacity: .14; transition: none; }
@media (max-width: 760px) { .statement { grid-template-columns: 1fr; } }

/* ============ Expand ============ */
.expand { position: relative; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.expand__frame { width: 34vw; height: 46vh; overflow: hidden; border-radius: 20px; will-change: width, height; }
.expand__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); cursor: zoom-in; }
.expand__caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4vw, 48px);
  display: flex; justify-content: space-between; font-size: 14px; color: var(--fg); mix-blend-mode: difference;
}
@media (max-width: 760px) { .expand__frame { width: 64vw; height: 40vh; } }

/* ============ Series (horizontal) ============ */
.series { position: relative; }
.series__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); overflow: hidden; }
.series__head { padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.series__track { display: flex; gap: clamp(16px, 2.5vw, 40px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.card { width: clamp(240px, 28vw, 440px); flex: none; }
.card__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: var(--bg-2); cursor: zoom-in; }
a.card__media { cursor: pointer; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.2s var(--ease), filter 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; gap: 12px; }
.card__title { font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; letter-spacing: -.02em; }
.card__title span { color: var(--red); font-size: 13px; font-weight: 600; margin-right: 8px; vertical-align: super; }
.card__sub { font-size: 13px; color: var(--muted); }
.series__progress { margin: 0 var(--gutter); height: 2px; background: var(--line); }
.series__progress span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

/* ============ Kategorien ============ */
.cats { padding: clamp(100px, 14vw, 200px) var(--gutter) clamp(80px, 10vw, 160px); }
.cats__head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.cats__filter {
  position: relative; display: inline-flex; gap: 4px; padding: 5px; margin-bottom: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line); border-radius: 99px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.cats__filter::-webkit-scrollbar { display: none; }
.cats__pill-bg { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 99px; background: var(--red); z-index: 0; }
.cats__pill {
  position: relative; z-index: 1; padding: 10px 20px; border-radius: 99px; white-space: nowrap;
  font-size: 15px; font-weight: 500; color: var(--muted); transition: color .4s var(--ease);
}
.cats__pill:hover { color: var(--fg); }
.cats__pill[aria-pressed="true"] { color: #fff; }
.cats__pill sup { font-size: 10px; margin-left: 4px; opacity: .7; }

.cats__grid { display: flex; gap: clamp(16px, 2.5vw, 40px); align-items: flex-start; position: relative; }
.cats__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: clamp(16px, 2.5vw, 40px); will-change: transform; }
.cats__col:nth-child(2) { margin-top: 18vh; }
.ctile { position: relative; overflow: hidden; border-radius: 14px; background: var(--bg-2); cursor: zoom-in; }
.ctile[hidden] { display: none; }
.ctile img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.ctile:hover img { transform: scale(1.04); }
.ctile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  transform: translateY(100%); transition: transform .7s var(--ease);
}
.ctile figcaption small { font-size: 12px; color: rgba(242,239,233,.7); font-weight: 400; text-align: right; }
.ctile:hover figcaption { transform: none; }
@media (hover: none) { .ctile figcaption { transform: none; } }
@media (max-width: 900px) {
  .cats__pill { padding: 9px 16px; font-size: 14px; }
  .cats__col:nth-child(2) { margin-top: 10vh; }
}

/* ============ Marquee ============ */
.marquee { padding: clamp(60px, 10vw, 140px) 0; overflow: hidden; border-block: 1px solid var(--line); }
.marquee__inner { display: flex; width: max-content; will-change: transform; }
.marquee__inner > span {
  display: flex; align-items: center; gap: .3em; padding-right: .3em; white-space: nowrap;
  font-size: clamp(64px, 13vw, 220px); font-weight: 800; letter-spacing: -.06em; line-height: 1;
}
.marquee__inner img { height: .7em; width: .7em; border-radius: 50%; }
.marquee__inner > span::first-letter { color: inherit; }

/* ============ Contact ============ */
.contact { padding: clamp(120px, 16vw, 220px) var(--gutter) clamp(60px, 8vw, 120px); display: grid; gap: clamp(32px, 5vw, 64px); }
.contact__title { font-size: clamp(56px, 12vw, 200px); line-height: .88; font-weight: 800; letter-spacing: -.06em; }
.contact__title .line--serif { padding-left: 1em; }
.contact__mail {
  justify-self: start; display: inline-flex; align-items: center; gap: 16px;
  font-size: clamp(20px, 3vw, 40px); font-weight: 500; letter-spacing: -.02em;
  padding: .55em 1.1em; border: 1px solid var(--line); border-radius: 99px;
  position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease), border-color .5s;
  max-width: 100%;
}
.contact__mail::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.contact__mail:hover { border-color: var(--red); }
.contact__mail:hover::before { transform: none; }
@media (max-width: 480px) { .contact__mail { font-size: 17px; overflow-wrap: anywhere; } }

/* ============ Footer ============ */
.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px var(--gutter); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.footer a:hover { color: var(--fg); }

.footer__legal { display: flex; gap: 20px; }

/* ============ Impressum / Datenschutz ============ */
.legal { max-width: 820px; padding: clamp(120px, 16vw, 180px) var(--gutter) clamp(80px, 10vw, 140px); }
.legal__title { font-size: clamp(48px, 9vw, 120px); line-height: .95; font-weight: 800; letter-spacing: -.05em; margin: 12px 0 clamp(32px, 5vw, 56px); }
.legal__body { font-size: 17px; line-height: 1.7; color: rgba(242,239,233,.85); }
.legal__body h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; line-height: 1.2; color: var(--fg); margin: 2.2em 0 .6em; font-weight: 600; }
.legal__body h3 { font-size: 18px; color: var(--fg); margin: 1.6em 0 .4em; font-weight: 600; }
.legal__body p, .legal__body ul { margin-bottom: 1em; }
.legal__body ul { padding-left: 1.2em; }
.legal__body a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__body a:hover { color: var(--red); }
.legal-page .legal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.legal-page.is-ready .legal { opacity: 1; transform: none; }
.nav__links--always { display: flex !important; }

/* ============ Lightbox ============ */
.lightbox { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; visibility: hidden; }
.lightbox.is-open { visibility: visible; }
.lightbox__bg { position: absolute; inset: 0; background: rgba(8,8,8,.96); opacity: 0; }
.lightbox__fig { position: relative; display: grid; gap: 14px; justify-items: center; max-width: 92vw; }
.lightbox__img { max-width: 92vw; max-height: 82svh; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox__cap { display: flex; justify-content: space-between; width: 100%; font-size: 14px; color: var(--muted); }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 18px; background: rgba(20,20,20,.6); backdrop-filter: blur(8px);
  transition: background .3s, border-color .3s; opacity: 0;
}
.lightbox__btn:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { top: 20px; right: var(--gutter); }
.lightbox__prev { left: var(--gutter); top: 50%; translate: 0 -50%; }
.lightbox__next { right: var(--gutter); top: 50%; translate: 0 -50%; }
@media (max-width: 760px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; translate: none; }
}

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

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .grain, .dot, .scroll-hint i::after { animation: none; }
  .hero__media { clip-path: none; }
  .hero__img, .expand__frame img, .card__media img, .ctile img { transform: none; }
  .statement__text .w { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .series__pin { height: auto; padding: 120px 0; overflow-x: auto; }
}
