/* ═══════════════════════════════════════════════════════════
   Showroom — Premium-Portfolio
   Fonts: Fraunces (Display) · Inter (Text)
   Lokal eingebunden (DSGVO) — keine Verbindung zu Google.
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/fraunces-v38-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/fraunces-v38-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/fraunces-v38-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/fraunces-v38-latin-500italic.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/fraunces-v38-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/fraunces-v38-latin-600italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-v20-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-v20-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-v20-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-v20-latin-700.woff2") format("woff2");
}

:root {
  --paper: #faf8f3;
  --paper-soft: #f3efe7;
  --ink: #14161a;
  --ink-soft: #4b5058;
  --ink-faint: #8b8f96;
  --line: rgba(20, 22, 26, 0.1);
  --accent: #b4552d;
  --accent-soft: rgba(180, 85, 45, 0.09);
  --dark: #14161a;
  --dark-soft: #1d2026;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 80px -20px rgba(20, 22, 26, 0.28);
  --shadow-md: 0 18px 50px -18px rgba(20, 22, 26, 0.22);
  --shadow-sm: 0 8px 24px -10px rgba(20, 22, 26, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

em {
  font-style: italic;
  font-family: var(--font-display);
}

/* ── Scroll-Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn--primary:hover { box-shadow: var(--shadow-md); }

.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--outline { border: 1px solid rgba(250, 248, 243, 0.35); color: var(--paper); }
.btn--outline:hover { border-color: var(--paper); }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(250, 248, 243, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.nav__name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav__name em {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
  font-family: var(--font-text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__links a { text-decoration: none; color: var(--ink-soft); transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }

.nav__cta {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper) !important;
  transition: opacity 0.2s;
}
.nav__cta:hover { opacity: 0.85; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) 0 clamp(3rem, 7vh, 5rem);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 70%;
  background:
    radial-gradient(ellipse 55% 65% at 30% 100%, rgba(180, 85, 45, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 60% at 75% 100%, rgba(60, 90, 130, 0.12), transparent 60%);
  pointer-events: none;
}

.hero__inner { position: relative; max-width: 880px; }

.hero__eyebrow,
.section-head__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}

.hero__underline {
  position: relative;
  white-space: nowrap;
}
.hero__underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.14em;
  background: var(--accent);
  opacity: 0.35;
  border-radius: 999px;
}

.hero__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 2.2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3.5rem; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.hero__stats dt {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
}
.hero__stats dd { font-size: 0.88rem; color: var(--ink-faint); }

/* ── Marquee ───────────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 0.9rem;
  background: var(--paper-soft);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee__track i { color: var(--accent); font-style: normal; font-size: 0.75rem; }

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

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

/* ── Sections ──────────────────────────────────────────────── */
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.section-head__sub { color: var(--ink-soft); font-size: 1.02rem; }

.projects { padding: clamp(4rem, 9vh, 7rem) 0; }

/* ── Filter ────────────────────────────────────────────────── */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3.5rem;
}

.filter__btn {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter__btn:hover { border-color: var(--ink); color: var(--ink); }
.filter__btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.filter__btn span {
  margin-left: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.55;
}

/* ── Projekt-Showcase ──────────────────────────────────────── */
.projects__list {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 8vh, 6rem);
}

.project {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 7fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.project:nth-child(even) { grid-template-columns: 7fr minmax(300px, 5fr); }
.project:nth-child(even) .project__info { order: 2; }
.project:nth-child(even) .project__viewer { order: 1; }

.project.is-hidden { display: none; }
.project.is-entering { opacity: 0; transform: translateY(16px); }

/* Info-Spalte */
.project__info { position: sticky; top: 96px; }

.project__index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}

.project__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.project__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.project__desc { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.4rem; }

.project__highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
  font-size: 0.92rem;
}
.project__highlights li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  color: var(--ink-soft);
}
.project__highlights li::before {
  content: "✦";
  color: var(--accent);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.8rem;
}
.project__tag {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: gap 0.25s ease, color 0.25s ease;
}
.project__link:hover { gap: 0.85rem; color: var(--accent); }

/* Viewer-Spalte */
.project__viewer { min-width: 0; }

.device-switch {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem;
  margin-bottom: 1.3rem;
}

.device-switch button {
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.42rem 1.05rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s ease;
}
.device-switch button.is-active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}

/* Bühne */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 90% 90% at 20% 0%, rgba(180, 85, 45, 0.08), transparent 55%),
    radial-gradient(ellipse 90% 90% at 90% 100%, rgba(60, 90, 130, 0.09), transparent 55%),
    var(--paper-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.project:nth-child(3n+2) .stage {
  background:
    radial-gradient(ellipse 90% 90% at 80% 0%, rgba(60, 110, 90, 0.1), transparent 55%),
    radial-gradient(ellipse 90% 90% at 10% 100%, rgba(180, 85, 45, 0.07), transparent 55%),
    var(--paper-soft);
}
.project:nth-child(3n) .stage {
  background:
    radial-gradient(ellipse 90% 90% at 50% 0%, rgba(90, 70, 140, 0.09), transparent 55%),
    radial-gradient(ellipse 90% 90% at 90% 100%, rgba(180, 85, 45, 0.08), transparent 55%),
    var(--paper-soft);
}

/* Browser-Mockup (Desktop) */
.frame {
  width: 100%;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.frame.is-swapping { opacity: 0; transform: scale(0.985); }

.frame--desktop {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #e6e2da;
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(#f2efe9, #e6e2da);
  border-bottom: 1px solid rgba(20, 22, 26, 0.08);
}
.frame__dots { display: flex; gap: 0.32rem; }
.frame__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.frame__dots i:nth-child(1) { background: #ec6a5e; }
.frame__dots i:nth-child(2) { background: #f4bf4f; }
.frame__dots i:nth-child(3) { background: #61c554; }

.frame__url {
  flex: 1;
  font-size: 0.72rem;
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 7px;
  padding: 0.25rem 0.8rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tablet & Phone Frames */
.frame--tablet,
.frame--mobile {
  border-radius: 34px;
  background: #1b1d22;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.07);
}
.frame--tablet .frame__bar,
.frame--mobile .frame__bar { display: none; }
.frame--tablet { max-width: 420px; }
.frame--mobile { max-width: 270px; border-radius: 40px; padding: 11px; position: relative; }

.frame--mobile::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 22px;
  border-radius: 999px;
  background: #1b1d22;
  z-index: 2;
}

.frame__screen {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  cursor: zoom-in;
}
.frame--tablet .frame__screen { border-radius: 22px; }
.frame--mobile .frame__screen { border-radius: 30px; }

.frame__screen img {
  width: 100%;
  aspect-ratio: 1440 / 838;
  object-fit: cover;
  object-position: top;
  transition: opacity 0.3s ease;
}
.frame--tablet .frame__screen img { aspect-ratio: 834 / 1112; }
.frame--mobile .frame__screen img { aspect-ratio: 390 / 844; }
.frame__screen img.is-fading { opacity: 0; }

.frame__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 22, 26, 0.72);
  color: #fff;
  font-size: 1rem;
  cursor: zoom-in;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.frame__screen:hover .frame__zoom { opacity: 1; }
.frame__zoom:hover { transform: scale(1.08); }

/* Thumbnails */
.thumbs {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.2rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}

.thumbs button {
  flex-shrink: 0;
  width: 108px;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.65;
}
.thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.thumbs button.is-active { border-color: var(--accent); opacity: 1; }

.thumbs img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  display: block;
}
.thumbs button[data-device="tablet"] img,
.thumbs button[data-device="mobile"] img { aspect-ratio: 16 / 10; }

.thumbs__label {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-faint);
  padding: 0.25rem 0 0.1rem;
}

/* ── Arbeitsweise ──────────────────────────────────────────── */
.process {
  background: var(--dark);
  color: var(--paper);
  padding: clamp(4rem, 10vh, 7rem) 0;
}

.section-head--light h2 { color: var(--paper); }
.section-head--light .section-head__sub { color: rgba(250, 248, 243, 0.65); }

.process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.process__steps li {
  background: var(--dark-soft);
  border: 1px solid rgba(250, 248, 243, 0.09);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.process__steps li:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 248, 243, 0.22);
}

.process__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.process__steps h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.process__steps p { font-size: 0.92rem; color: rgba(250, 248, 243, 0.68); }

/* ── CTA ───────────────────────────────────────────────────── */
.cta {
  padding: clamp(4.5rem, 11vh, 8rem) 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 110%, rgba(180, 85, 45, 0.14), transparent 65%),
    var(--paper);
}

.cta__inner { text-align: center; max-width: 700px; }

.cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 1.2rem;
}

.cta__lead { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 2.2rem; }

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}
.cta .btn--light { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.cta .btn--outline { border-color: var(--line); color: var(--ink); }
.cta .btn--outline:hover { border-color: var(--ink); }

.cta__note { font-size: 0.85rem; color: var(--ink-faint); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0; }

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--ink-faint);
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ── Rechtsseiten (Impressum / Datenschutz) ────────────────── */
.legal {
  max-width: 760px;
  padding: clamp(3rem, 8vh, 5rem) 0 clamp(3rem, 8vh, 5rem);
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 2.2rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 2.4rem 0 0.8rem;
}

.legal p,
.legal ul {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 0.9rem;
}

.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: 0.3rem; }

.legal a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.legal a:hover { color: var(--accent); }

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(12, 13, 16, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-height: 100%;
  min-width: 0;
}

/* Vergrößerte Ansicht im passenden Device-Frame */
.lightbox__frame {
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  transition: none;
}

.lightbox__frame.frame--desktop {
  width: min(1100px, calc((100vh - 12rem) * 1.6), 100%);
}
.lightbox__frame.frame--tablet {
  width: min(440px, calc((100vh - 11rem) * 0.72), 100%);
  max-width: none;
}
.lightbox__frame.frame--mobile {
  width: min(310px, calc((100vh - 11rem) * 0.44), 100%);
  max-width: none;
}

.lightbox__frame .frame__screen {
  cursor: default;
}

.lightbox__frame .frame__screen img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.lightbox__figure figcaption {
  font-size: 0.85rem;
  color: rgba(250, 248, 243, 0.7);
}

.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(250, 248, 243, 0.2);
  background: rgba(250, 248, 243, 0.06);
  color: #f5f2ec;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(250, 248, 243, 0.16); transform: scale(1.06); }

.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  font-size: 1rem;
  z-index: 2;
}

.lightbox__nav { width: 52px; height: 52px; font-size: 1.7rem; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .project,
  .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project__info { order: 1; }
  .project:nth-child(even) .project__viewer { order: 2; }
  .project__info { position: static; }
  .process__steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .hero__stats { gap: 1.4rem; }
  .hero__stats dt { font-size: 1.6rem; }
  .frame--tablet { max-width: 320px; }
  .frame--mobile { max-width: 225px; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { display: none; }
  .thumbs button { width: 88px; }
}
