/* =============================================
   LN FRAMEWORK — LEWIN NINCK
   Base Stylesheet
   ============================================= */

:root {
  --bg:        #F4F2ED;
  --surface:   #E6E2DA;
  --border:    rgba(26, 24, 21, 0.14);
  --text:      #1A1815;
  --muted:     rgba(26, 24, 21, 0.55);
  --accent:    #1A1815;
  --highlight: #1A1815;
  --white:     #FFFFFF;

  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body:    'Montserrat', 'Helvetica Neue', Helvetica, sans-serif;

  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-expo:  cubic-bezier(0.95, 0.05, 0.795, 0.035);

  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video {
  display: block;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--highlight); color: var(--bg); }

:focus-visible {
  outline: 1px solid rgba(26, 24, 21, 0.6);
  outline-offset: 3px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(26, 24, 21, 0.2); border-radius: 2px; }


/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease,
              transform 0.45s var(--ease-out-expo), opacity 0.45s ease;
}

.header.scrolled {
  background: rgba(244, 242, 237, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* Startseite: Header oben ausgeblendet — erscheint erst beim Scrollen
   (kein „Farbswitch“ mehr über dem Hero-Video) */
.is-home .header:not(.scrolled) {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.logo {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
}

.logo__img {
  height: 36px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.3s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--highlight);
  transition: width 0.3s var(--ease-out-expo);
}

.nav__link:hover,
.nav__link.active { color: var(--highlight); }

.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
  padding: 4px;
  background: none;
  border: none;
}

.burger__line {
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: transform 0.35s var(--ease-out-expo), opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.burger.open .burger__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open .burger__line:nth-child(2) { opacity: 0; width: 0; }
.burger.open .burger__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(28, 3, 3, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav.open { opacity: 1; pointer-events: all; }

.mobile-nav .nav__link {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.mobile-nav .nav__link:hover { color: var(--highlight); }
.mobile-nav .nav__link::after { display: none; }


/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 40px 80px;
  background: #F4F2ED;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 72% 38%, rgba(26, 24, 21, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 12% 78%, rgba(227, 166, 166, 0.05) 0%, transparent 55%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.06) 16%,
    transparent 30%,
    transparent 75%,
    rgba(244, 242, 237, 0.3) 86%,
    rgba(244, 242, 237, 0.75) 95%,
    #F4F2ED 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 960px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  opacity: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.03em;
  color: var(--highlight);
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__title-word {
  display: inline-block;
  transform: translateY(110%);
}

.hero__sub {
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.8;
  opacity: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 40px; right: 64px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
}

.hero__scroll-line {
  width: 40px; height: 1px;
  background: var(--muted);
}

.hero__scroll-text {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Nahtloser Farbübergang Hero → Seite */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent 0%, rgba(244, 242, 237, 0.5) 60%, #F4F2ED 90%);
  z-index: 2;
  pointer-events: none;
}


/* =============================================
   PREVIEWS (Home)
   ============================================= */

/* Section header: label + link side by side */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 32px 40px 20px;
  border-top: 1px solid rgba(26, 24, 21, 0.12);
}

.section-header .video-group__title,
.section-header .photo-group__title {
  padding: 0;
  border-top: none;
}

/* =============================================
   HOME VIDEO GRID
   ============================================= */
.home-videos__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  align-items: flex-start;
}

.home-vid {
  position: relative;
  flex: none;
  height: 75vh;
  width: calc(75vh * 16 / 9);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
}

.home-vid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-vid__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px 24px;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.72) 100%);
  transition: opacity 0.35s ease;
  z-index: 1;
}

.home-vid:hover .home-vid__overlay { opacity: 0; }

.home-vid__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--text);
}

.home-vid__meta {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Video */
.preview-video {
  padding: 0 40px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.preview-video__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}

.preview-video__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 24, 21, 0.03), transparent);
  z-index: 1;
  pointer-events: none;
}

.preview-video__media img,
.preview-video__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.8s var(--ease-out-expo);
}

.preview-video__media:hover img,
.preview-video__media:hover video { transform: scale(1); }

.preview__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview__index {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.preview__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.92;
  color: var(--highlight);
  overflow: hidden;
}

.preview__title-inner {
  display: block;
  transform: translateY(100%);
}

.preview__desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.8;
  opacity: 0;
}

.preview__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--highlight);
  opacity: 0;
  transition: gap 0.3s var(--ease-out-expo);
}

.preview__link:hover { gap: 20px; }

.preview__link-arrow {
  width: 32px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s var(--ease-out-expo);
  flex-shrink: 0;
}

.preview__link-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%) translateX(-1px) rotate(45deg);
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
}

.preview__link:hover .preview__link-arrow { width: 48px; }

/* Photo */
.preview-photo { padding: 0 0 120px; overflow: hidden; }

.preview-photo__header {
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.preview-photo__grid {
  display: flex;
  gap: 3px;
  padding: 0 40px;
}

.preview-photo__item {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}

.preview-photo__item:nth-child(1) { flex: 2; aspect-ratio: 4/5; }
.preview-photo__item:nth-child(2) { flex: 1.2; aspect-ratio: 3/4; margin-top: 60px; }
.preview-photo__item:nth-child(3) { flex: 1.6; aspect-ratio: 4/3; margin-top: -40px; }

.preview-photo__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 0.9s var(--ease-out-expo);
}

.preview-photo__item:hover img { transform: scale(1); }

/* About */
.preview-about {
  padding: 80px 40px 120px;
  position: relative;
  overflow: hidden;
}

.preview-about__blur {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 24, 21, 0.04) 0%, transparent 70%);
  top: 50%; left: 65%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(80px);
}

.preview-about__inner {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.preview-about__quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--highlight);
  margin: 24px 0 36px;
  /* isolation prevents blurred child layers from bleeding outside */
  isolation: isolate;
}

/* BUG FIX: inline-block + will-change prevents top-left blur artifact */
.preview-about__quote .blur-word {
  display: inline-block;
  filter: blur(8px);
  will-change: filter;
  transition: filter 0.7s var(--ease-out-expo);
  cursor: default;
}

.preview-about__quote .blur-word:hover { filter: blur(0px); }

/* Contact CTA */
.preview-contact {
  padding: 80px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.preview-contact__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.92;
  color: var(--highlight);
  overflow: hidden;
}

.preview-contact__title-inner { display: block; transform: translateY(100%); }

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--highlight);
  transition: border-color 0.3s ease, background 0.3s ease, gap 0.3s var(--ease-out-expo), color 0.3s ease;
  white-space: nowrap;
}

.contact-cta:hover {
  border-color: var(--highlight);
  background: var(--highlight);
  color: var(--bg);
  gap: 22px;
}

.contact-cta:hover .preview__link-arrow { background: var(--bg); }
.contact-cta:hover .preview__link-arrow::after { border-color: var(--bg); }


/* =============================================
   MARQUEE
   ============================================= */
.marquee {
  overflow: hidden;
  padding: 44px 0;
  border-top: 1px solid var(--border);
  user-select: none;
}

.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee-scroll 38s linear infinite;
}

.marquee__text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26, 24, 21, 0.28);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 56px 40px;
  border-top: 1px solid var(--border);
}

.footer__mark {
  display: block;
  width: max-content;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26, 24, 21, 0.3);
  transition: color 0.5s ease;
}

.footer__mark:hover { color: var(--highlight); }

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer__links { display: flex; gap: 24px; }

.footer__link {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer__link:hover { color: var(--highlight); }


/* =============================================
   INNER PAGES
   ============================================= */
.page-hero {
  min-height: 55svh;
  padding: calc(var(--header-h) + 60px) 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.page-hero__blur {
  position: absolute;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(26, 24, 21, 0.05) 0%, transparent 70%);
  top: 30%; right: -100px;
  filter: blur(80px);
  pointer-events: none;
}

.page-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  opacity: 0;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.92;
  color: var(--highlight);
}

/* BUG FIX: overflow per Zeile, nicht auf dem h1 */
.page-hero__title-line {
  display: block;
  overflow: hidden;
}

.page-hero__title-word {
  display: inline-block;
  transform: translateY(110%);
}

.page-content { padding: 80px 40px; }


/* =============================================
   VIDEO PAGE
   ============================================= */

.video-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.video-item__inner {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
}

.video-item__inner img,
.video-item__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.video-item:hover .video-item__inner img,
.video-item:hover .video-item__preview { transform: scale(1.03); }

.video-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(30, 3, 3, 0.78) 0%, transparent 55%);
  display: flex;
  align-items: center;
  padding: 60px;
  gap: 28px;
}

.video-item__play {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(26, 24, 21, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.video-item:hover .video-item__play {
  background: rgba(26, 24, 21, 0.12);
  border-color: var(--highlight);
  transform: scale(1.1);
}

.video-item__play svg {
  width: 16px; height: 16px;
  fill: var(--highlight);
  margin-left: 3px;
}

.video-item__meta { flex: 1; }

.video-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--highlight);
  margin-bottom: 8px;
}

.video-item__info {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}


/* =============================================
   PHOTO PAGE
   ============================================= */
.photo-group {
  margin-bottom: 80px;
}

.photo-group__title {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 32px 40px 20px;
  border-top: 1px solid rgba(26, 24, 21, 0.12);
}

/* Untergruppen-Überschrift (eine Ebene unter der Kategorie) */
.photo-subgroup__title,
.video-subgroup__title {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
  padding: 8px 40px 14px;
}

/* 4-Spalten-Masonry: CSS-Multicolumn, jedes Bild behält sein echtes
   Seitenverhältnis (img height:auto) — Höhen variieren, kein Beschnitt.
   Responsiv 4 → 3 → 2 → 1 Spalten. */
.photo-masonry {
  column-count: 4;
  column-gap: 3px;
}

.photo-masonry__item {
  break-inside: avoid;
  margin-bottom: 3px;
  overflow: hidden;
  position: relative;
  background: var(--surface);
  cursor: pointer;
  width: 100%;
}

.photo-masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease-out-expo);
}

/* Optionaler fester Ausschnitt (über CMS gesetzt) — sonst Originalformat */
.photo-masonry__item[style*="--aspect"] { aspect-ratio: var(--aspect); }
.photo-masonry__item[style*="--aspect"] img {
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}

.photo-masonry__item:hover img { transform: scale(1.04); }

@media (max-width: 1100px) { .photo-masonry { column-count: 3; } }
@media (max-width: 700px)  { .photo-masonry { column-count: 2; } }
@media (max-width: 460px)  { .photo-masonry { column-count: 1; } }

/* =============================================
   PHOTO LIGHTBOX
   ============================================= */
.photo-lb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 0, 0, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.photo-lb.is-open {
  opacity: 1;
  pointer-events: auto;
}

.photo-lb__img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.18s ease;
  user-select: none;
}

.photo-lb__btn {
  position: absolute;
  background: none;
  border: 1px solid rgba(26, 24, 21, 0.2);
  color: var(--highlight);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  font-family: var(--font-body);
}

.photo-lb__btn:hover {
  background: rgba(26, 24, 21, 0.08);
  border-color: var(--highlight);
}

.photo-lb__close {
  top: 32px;
  right: 40px;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  border-radius: 50%;
}

.photo-lb__prev,
.photo-lb__next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
}

.photo-lb__prev { left: 32px; }
.photo-lb__next { right: 32px; }

.photo-lb__counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===== LIGHTBOX — Pfeiltasten-Hinweis + verzögerter „Weiter"-Glow ===== */
.photo-lb__hint,
.video-lb__hint {
  position: absolute;
  bottom: 28px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.photo-lb.is-open .photo-lb__hint,
.video-lb.is-open .video-lb__hint { opacity: 0.7; }

.photo-lb__hint kbd,
.video-lb__hint kbd {
  font-family: var(--font-body);
  font-size: 0.62rem;
  line-height: 1;
  padding: 3px 6px;
  border: 1px solid rgba(26, 24, 21, 0.3);
  border-radius: 3px;
  color: var(--highlight);
}

/* Nach 3 s Inaktivität: „Weiter"-Button leuchtet sanft pulsierend auf */
@keyframes lb-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 24, 21, 0); border-color: rgba(26, 24, 21, 0.2); }
  50%      { box-shadow: 0 0 18px 2px rgba(26, 24, 21, 0.45); border-color: var(--highlight); }
}
.photo-lb__next.glow,
.video-lb__nav--next.glow {
  animation: lb-glow 1.8s var(--ease-out-expo) infinite;
  color: var(--highlight);
}

/* Reduced-Motion: kein Pulsieren, aber statischer Hinweis bleibt sichtbar */
@media (prefers-reduced-motion: reduce) {
  .photo-lb__next.glow,
  .video-lb__nav--next.glow {
    animation: none;
    color: var(--highlight);
    border-color: var(--highlight);
    box-shadow: 0 0 14px 1px rgba(26, 24, 21, 0.4);
  }
}

/* „(optional)"-Zusatz an Formular-Labels */
.form-field__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0.8;
}


/* =============================================
   ABOUT PAGE
   ============================================= */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-portrait {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface);
}

.about-portrait__images {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
}

.about-portrait__images img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Mehrere Portrait-Fotos → automatische Collage statt einzelnem Bild */
.about-portrait[data-count="2"] .about-portrait__images {
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.about-portrait[data-count="3"] .about-portrait__images {
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}
.about-portrait[data-count="3"] .about-portrait__images img:first-child { grid-row: 1 / 3; }

.about-portrait[data-count="4plus"] .about-portrait__images {
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 4px;
}

.about-portrait__blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 50%);
  pointer-events: none;
}

.about-text { padding-top: 20px; }

.about-text__label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.about-text__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.95;
  color: var(--highlight);
  margin-bottom: 32px;
}

.about-text__body {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 20px;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.about-skill-tag {
  border: 1px solid rgba(26, 24, 21, 0.18);
  padding: 7px 15px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.about-skill-tag:hover {
  border-color: rgba(26, 24, 21, 0.5);
  color: var(--highlight);
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info__label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.contact-info__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.95;
  color: var(--highlight);
  margin-bottom: 32px;
}

.contact-info__text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 48px;
}

.contact-links { display: flex; flex-direction: column; gap: 16px; }

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.3s ease, gap 0.3s var(--ease-out-expo);
}

.contact-link-item:hover { color: var(--highlight); gap: 20px; }

.contact-link-item__icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(26, 24, 21, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s ease;
}

.contact-link-item:hover .contact-link-item__icon { border-color: rgba(26, 24, 21, 0.45); }

.contact-form { display: flex; flex-direction: column; gap: 28px; }

.form-field { display: flex; flex-direction: column; gap: 10px; }

.form-field label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26, 24, 21, 0.2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s ease;
  resize: none;
}

.form-field input:focus,
.form-field textarea:focus { border-color: rgba(26, 24, 21, 0.55); }

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(26, 24, 21, 0.18); }

.form-field textarea { min-height: 120px; }

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(26, 24, 21, 0.3);
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--highlight);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, gap 0.3s var(--ease-out-expo), color 0.3s ease;
  align-self: flex-start;
}

.form-submit:hover {
  border-color: var(--highlight);
  background: var(--highlight);
  color: var(--bg);
  gap: 22px;
}

.form-submit:hover .preview__link-arrow { background: var(--bg); }
.form-submit:hover .preview__link-arrow::after { border-color: var(--bg); }


/* =============================================
   PREVIEW GRID (Startseite — Quer/Hoch/Cinescope, willkürlich)
   ============================================= */

.preview-grid-container {
  padding: 0;
}

.preview-grid {
  column-count: 4;
  column-gap: 6px;
  padding: 6px 6px 80px;
}

/* 4-Spalten-Masonry: jede Kachel behält ihr Format (aspect-ratio je
   data-format), Höhen variieren. Shuffle (JS) sorgt für den lebendigen Mix. */
.preview-grid__item {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 6px;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface) center/cover no-repeat;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.4s ease;
  will-change: transform;
}

.preview-grid__item[data-format="portrait"]  { aspect-ratio: 9 / 16; }
.preview-grid__item[data-format="landscape"] { aspect-ratio: 16 / 9; }
.preview-grid__item[data-format="cinescope"] { aspect-ratio: 2.39; }

.preview-grid__item:hover {
  filter: brightness(1.08);
}
.preview-grid__item:hover::after {
  opacity: 1;
}

/* Projekt-Label oben links — im Theme-Stil (Gold auf dunklem Glas) */
.preview-grid__item::before {
  content: attr(data-label);
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--highlight);
  background: rgba(28, 3, 3, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(26, 24, 21, 0.22);
  border-radius: 2px;
  pointer-events: none;
}

/* Sanfter Schatten am unteren Rand für Lesbarkeit (falls je Text rein soll) */
.preview-grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.35) 100%);
  opacity: 0.6;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

@media (max-width: 1100px) { .preview-grid { column-count: 3; } }
@media (max-width: 700px)  { .preview-grid { column-count: 2; } }
@media (max-width: 600px)  { .preview-grid { column-gap: 4px; padding: 4px 4px 60px; } }
@media (max-width: 460px)  { .preview-grid { column-count: 1; } }


/* =============================================
   VIDEO GROUPS + GRID (video.html)
   ============================================= */

.video-grid-container {
  padding-top: 0;
}

.video-group {
  margin-bottom: 80px;
}

.video-group__title {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 32px 40px 20px;
  border-top: 1px solid rgba(26, 24, 21, 0.12);
}

.video-grid {
  column-count: 4;
  column-gap: 3px;
  padding: 3px;
}

/* 4-Spalten-Masonry: Querformat 16:9, Hochformat 9:16 — Format bleibt
   original, Höhen variieren. Responsiv 4 → 3 → 2 → 1 Spalten. */
.video-grid__item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 3px;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}

.video-grid__item--portrait { aspect-ratio: 9 / 16; }

/* Optionaler fester Ausschnitt (über CMS gesetzt) — sonst Original/Format */
.video-grid__item[style*="--aspect"] { aspect-ratio: var(--aspect); }
.video-grid__item[style*="--aspect"] video { object-position: var(--focus, 50% 50%); }

@media (max-width: 1100px) { .video-grid { column-count: 3; } }
@media (max-width: 700px)  { .video-grid { column-count: 2; } }
@media (max-width: 460px)  { .video-grid { column-count: 1; } }

.video-grid__item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-grid__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px 24px 24px;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.72) 100%);
  transition: opacity 0.35s ease;
  z-index: 1;
}

.video-grid__item:hover .video-grid__overlay { opacity: 0; }

.video-grid__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--text);
}

/* =============================================
   VIDEO LIGHTBOX
   ============================================= */

.video-lb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 0, 0, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-lb.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-lb__inner {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--highlight);
  max-height: 85vh;
}

.video-lb__video {
  display: block;
  max-width: 68vw;
  max-height: 85vh;
  object-fit: contain;
  background: #000;
}

.video-lb__info {
  width: 260px;
  flex-shrink: 0;
  border-left: 1px solid var(--highlight);
  padding: 40px 36px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.video-lb__num {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.video-lb__title {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.92;
  color: var(--highlight);
}

.video-lb__meta {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.video-lb__desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(26, 24, 21, 0.42);
  margin-top: 4px;
}

.video-lb__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(26, 24, 21, 0.2);
  border-radius: 50%;
  color: var(--highlight);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.video-lb__close:hover {
  background: rgba(26, 24, 21, 0.08);
  border-color: var(--highlight);
}

.video-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid rgba(26, 24, 21, 0.2);
  color: var(--highlight);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: border-color 0.2s, background 0.2s;
}

.video-lb__nav:hover {
  background: rgba(26, 24, 21, 0.08);
  border-color: var(--highlight);
}

.video-lb__nav--prev { left: 20px; }
.video-lb__nav--next { right: 20px; }

.video-lb__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}


/* =============================================
   FILMRAND — vertikaler Edge-Print am linken Rand
   (wie Randsignierung auf 35mm-Filmmaterial)
   ============================================= */
body::before {
  content: 'LN FRAMEWORK · LEWIN NINCK · AUTOMOTIVE FILM & FOTO ▪ LN FRAMEWORK · LEWIN NINCK · AUTOMOTIVE FILM & FOTO ▪ LN FRAMEWORK · LEWIN NINCK · AUTOMOTIVE FILM & FOTO ▪ LN FRAMEWORK · LEWIN NINCK · AUTOMOTIVE FILM & FOTO ▪';
  position: fixed;
  top: 0; bottom: 0;
  left: 13px;
  z-index: 40;
  overflow: hidden;
  writing-mode: vertical-rl;
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(26, 24, 21, 0.26);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1100px) {
  body::before { display: none; }
}


/* =============================================
   NOISE OVERLAY
   ============================================= */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
}


/* =============================================
   CURSOR
   ============================================= */
@media (pointer: fine) {
  .cursor { display: none; }
}


/* =============================================
   LIGHTBOX
   ============================================= */
.ln-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ln-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.ln-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 2, 2, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
}

.ln-lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 90vh;
}

.ln-lightbox__close {
  position: absolute;
  top: -28px;
  right: -48px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(26, 24, 21, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.ln-lightbox__close:hover { border-color: var(--highlight); }

.ln-lightbox__close span {
  position: absolute;
  width: 14px;
  height: 1px;
  background: var(--highlight);
}

.ln-lightbox__close span:first-child { transform: rotate(45deg); }
.ln-lightbox__close span:last-child  { transform: rotate(-45deg); }

.ln-lightbox__video {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  background: #000;
  outline: none;
}

/* Lightbox open animation */
.ln-lightbox:not(.open) .ln-lightbox__content {
  transform: scale(0.96);
  transition: transform 0.4s var(--ease-out-expo);
}

.ln-lightbox.open .ln-lightbox__content {
  transform: scale(1);
  transition: transform 0.4s var(--ease-out-expo);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .preview-video { grid-template-columns: 1fr; gap: 40px; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 60px; }
  .about-portrait { aspect-ratio: 4/3; max-width: 480px; }
}

@media (max-width: 900px) {
  .video-scene__info { padding: 28px 20px 36px; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .header { padding: 0 24px; }
  .nav { display: none; }
  .burger { display: flex; }

  .hero { padding: 0 24px 60px; }
  .hero__scroll { right: 24px; }

  .previews { padding-top: 80px; }
  .preview-video { padding: 0 24px 80px; }
  .home-videos { padding: 0 24px 80px; }
  .home-videos__grid { grid-template-columns: repeat(2, 1fr); }
  .preview-photo__header { padding: 0 24px; }
  .preview-photo__grid { flex-direction: column; padding: 0 24px; }
  .preview-photo__item { flex: 1 !important; margin-top: 0 !important; aspect-ratio: 16/10 !important; }
  .preview-about { padding: 60px 24px 80px; }
  .preview-contact { flex-direction: column; align-items: flex-start; padding: 60px 24px; }

  .page-hero { padding: calc(var(--header-h) + 40px) 24px 40px; }
  .page-content { padding: 60px 24px; }

  .video-item__overlay { padding: 24px; gap: 16px; }

  .footer { padding: 40px 24px; }
  .footer__row { flex-direction: column; gap: 16px; align-items: flex-start; margin-top: 20px; }
}


/* =============================================
   LIGHT THEME — Lesbarkeits-Overrides (Editorial Hell)
   Dunkle Flächen über Bildern bleiben dunkel, aber Text/
   Bedienelemente darauf werden hell gehalten.
   ============================================= */

/* Hero: Schrift bleibt hell über dem Bild */
.hero__title { color: #F8F6F1; }
.hero__eyebrow,
.hero__sub,
.hero__scroll-text { color: rgba(248, 246, 241, 0.78); }
.hero__scroll-line { background: rgba(248, 246, 241, 0.6); }

/* Text auf Bild-Kacheln bleibt hell (dunkler Verlauf darunter) */
.video-grid__title,
.home-vid__title { color: #F4F2ED; }
.home-vid__meta,
.video-item__info { color: rgba(244, 242, 237, 0.7); }
.video-item__title { color: #F4F2ED; }

/* Projekt-Label auf der Startseiten-Vorschau: helles Glas-Chip */
.preview-grid__item::before {
  background: rgba(244, 242, 237, 0.82);
  border-color: rgba(26, 24, 21, 0.18);
  color: #1A1815;
}

/* Lightbox: heller „Galerie"-Hintergrund, dunkle Bedienelemente bleiben sichtbar */
.photo-lb,
.video-lb { background: rgba(244, 242, 237, 0.97); }
.ln-lightbox__backdrop { background: rgba(244, 242, 237, 0.96); }

/* Mobiles Menü: helle Fläche statt dunkel; Burger-Striche dunkel */
.mobile-nav { background: rgba(244, 242, 237, 0.97); }
.burger__line { background: var(--text); }
