/* ============================================
   VIDEO EDITOR PORTFOLIO — Design System
   Theme: cinematic dark (default) + light mode
   Accent pairing: orange / teal (classic grading look)
   ============================================ */

:root {
  --bg: #0a0a0c;
  --bg-elevated: #131317;
  --surface: #17171c;
  --surface-hover: #1e1e24;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f1ec;
  --text-dim: #a3a1ab;
  --text-faint: #6b6974;
  --accent: #ff5a2e;
  --accent-soft: rgba(255, 90, 46, 0.14);
  --accent-2: #2de8c6;
  --accent-2-soft: rgba(45, 232, 198, 0.14);
  --shadow: rgba(0, 0, 0, 0.5);
  --grain-opacity: 0.05;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --maxw: 1200px;
  --nav-h: 76px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f4ef;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-hover: #efece4;
  --border: rgba(10, 10, 12, 0.08);
  --text: #14141a;
  --text-dim: #5b5966;
  --text-faint: #8d8b96;
  --accent: #e8491f;
  --accent-soft: rgba(232, 73, 31, 0.1);
  --accent-2: #0e9b85;
  --accent-2-soft: rgba(14, 155, 133, 0.1);
  --shadow: rgba(20, 20, 20, 0.12);
  --grain-opacity: 0.03;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
}

.loader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: loaderbar 0.9s ease forwards;
}

@keyframes loaderbar {
  to { width: 100%; }
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.4s ease;
}

.site-nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo .dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.theme-toggle {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: transform 0.3s cubic-bezier(.65,0,.35,1);
}

:root[data-theme="light"] .theme-toggle .knob {
  transform: translateX(20px);
}

.nav-right .nav-cta {
  display: none;
}

@media (min-width: 981px) {
  .nav-right .nav-cta {
    display: inline-flex;
  }
}

.burger {
  display: none;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0c;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px var(--accent-soft);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}

.hero-glow.two {
  top: auto;
  bottom: -30%;
  right: auto;
  left: -15%;
  background: radial-gradient(circle, var(--accent-2-soft), transparent 70%);
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(42px, 6.5vw, 84px);
  margin-top: 22px;
  margin-bottom: 22px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p.lead {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text);
}

.hero-stats div span {
  font-size: 13px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  z-index: 2;
}

.scroll-cue .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--text-faint), transparent);
  animation: scrolldown 1.8s ease-in-out infinite;
}

@keyframes scrolldown {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- Section basics ---------- */
section {
  position: relative;
  padding: 120px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 16px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 16.5px;
  margin-top: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(.2,.65,.3,1), transform 0.8s cubic-bezier(.2,.65,.3,1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.alt-bg {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Services / highlight cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--surface-hover);
}

.card .num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.card h3 {
  font-size: 20px;
  margin: 18px 0 10px;
}

.card p {
  color: var(--text-dim);
  font-size: 15px;
}

.work-item {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.65,.3,1);
}

.work-item:hover img {
  transform: scale(1.08);
}

.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.78), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.work-item:hover .work-overlay {
  opacity: 1;
}

.work-overlay .tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.work-overlay h4 {
  font-size: 17px;
  color: #fff;
}

.play-dot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10,10,12,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(4px);
}

/* ---------- Marquee ---------- */
.marquee-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
  background: var(--bg-elevated);
}

.marquee {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
  width: max-content;
}

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

.marquee span {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 16px;
}

.marquee span::after {
  content: "✦";
  color: var(--accent);
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 120px 0;
}

.cta-band h2 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 20px;
}

.cta-band p {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 36px;
}

.cta-band .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-top p {
  color: var(--text-dim);
  max-width: 320px;
  margin-top: 14px;
  font-size: 15px;
}

.footer-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 14.5px;
  color: var(--text-dim);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}

.socials {
  display: flex;
  gap: 16px;
}

/* ---------- Page header (sub-pages) ---------- */
.page-header {
  padding: 180px 0 80px;
}

/* ---------- Cut line (dashed divider + scissors, "abgeschnitten") ---------- */
.cut-line {
  position: relative;
  border-top: 2px dashed var(--border);
  transition: transform 0.65s cubic-bezier(.55,0,.85,.4), opacity 0.55s ease 0.1s;
}

/* Wenn kein page-header davor sitzt (siehe ueber-mich.html), braucht die
   cut-line selbst Abstand zur fixierten Nav, sonst klebt sie direkt darunter. */
.cut-line--top {
  margin-top: calc(var(--nav-h) + 60px);
}

.cut-line.is-cut {
  transform: translateY(160px) rotate(7deg);
  opacity: 0;
  pointer-events: none;
}

.cut-progress {
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  pointer-events: none;
}

.cut-line .scissors {
  position: absolute;
  left: 32px;
  top: 0;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
  transition: left 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease, color 0.25s ease;
}

.cut-line .scissors:hover {
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.cut-line .scissors.dragging {
  cursor: grabbing;
  color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
  transition: box-shadow 0.25s ease, color 0.25s ease;
}

.cut-line .scissors svg {
  width: 15px;
  height: 15px;
  display: block;
}

@media (max-width: 620px) {
  .cut-line .scissors { left: 20px; }
}

.page-header .eyebrow {
  margin-bottom: 18px;
}

.page-header h1 {
  font-size: clamp(36px, 5.5vw, 64px);
}

.page-header p {
  color: var(--text-dim);
  max-width: 600px;
  margin-top: 20px;
  font-size: 17px;
}

/* ---------- Filters ---------- */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13.5px;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--text-faint);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0c;
}

/* ---------- Full video/print grids ---------- */
.full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.full-grid .work-item {
  aspect-ratio: 16/10;
}

.full-grid[data-type="print"] .work-item {
  aspect-ratio: 4/5;
}

.grid-item-hidden {
  display: none !important;
}

.tag-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.about-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text p {
  color: var(--text-dim);
  font-size: 16.5px;
  margin-bottom: 20px;
}

.about-text h3 {
  margin-top: 40px;
  margin-bottom: 18px;
  font-size: 22px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tool-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: var(--font-display);
  text-align: center;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.tool-chip:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.timeline {
  margin-top: 16px;
  border-left: 1px solid var(--border);
  padding-left: 28px;
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-item .year {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.timeline-item h4 {
  font-size: 17px;
  margin: 4px 0 4px;
}

.timeline-item p {
  color: var(--text-dim);
  font-size: 14.5px;
}

.timeline-item h4 a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.25s ease;
}

.timeline-item h4 a:hover {
  text-decoration-color: var(--accent-2);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-hover);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-note {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 14px;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-row:last-child {
  border-bottom: none;
}

.contact-info-row .ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-row span {
  display: block;
  font-size: 12.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-info-row strong {
  font-size: 15.5px;
  font-weight: 500;
}

.form-success {
  display: none;
  background: var(--accent-2-soft);
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14.5px;
  margin-bottom: 20px;
}

.form-success.show {
  display: block;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(5,5,6,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 40px;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 1120px;
}

.lightbox-body {
  display: flex;
  align-items: stretch;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.lightbox-media-wrap {
  position: relative;
  flex: 1 1 60%;
  min-width: 0;
  aspect-ratio: 16/9;
  background: #000;
}

.lightbox-media-wrap.is-image {
  aspect-ratio: auto;
  height: 70vh;
}

.lightbox-media-wrap.is-flipbook {
  aspect-ratio: auto;
  height: 72vh;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flipbook {
  width: 100%;
  height: 100%;
}

.flipbook canvas {
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.6);
}

/* ---------- Trifold (Wickelfalz-Animation) ---------- */
.lightbox-media-wrap.is-trifold {
  aspect-ratio: auto;
  height: 72vh;
  background: var(--bg-elevated);
}

/* .trifold-stage sitzt innerhalb von #lightboxMedia, nicht direkt im
   Wrap - das Zentrieren muss daher auf dem inneren Element greifen. */
.lightbox-media-wrap.is-trifold .lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.trifold-stage {
  position: relative;
  /* --trifold-ratio kommt dynamisch aus script.js (echtes Bild-Seitenverhältnis);
     1.41 ist nur der Fallback, bevor das Bild geladen ist. width UND height
     bleiben beide auto, begrenzt durch max-width/max-height - so verhält sich
     die Box wie object-fit:contain (skaliert passend ins verfügbare Feld,
     ohne eine feste Höhe zu erzwingen, die die Panels stauchen würde). */
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 100%;
  aspect-ratio: var(--trifold-ratio, 1.41) / 1;
  perspective: 2400px;
  cursor: default;
}

.trifold-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(.65,0,.35,1);
}

.trifold-flipper.is-flipping {
  transform: rotateY(180deg);
}

.trifold {
  position: relative;
  width: 33.333%;
  height: 100%;
  transform-style: preserve-3d;
  /* Im geschlossenen Zustand mittig im Stage-Bereich zentriert (um exakt
     eine Panel-Breite nach rechts verschoben); beim Aufklappen rutscht es
     an die linke Position, wo die aufgeklappte Breite den Stage-Bereich
     exakt ausfüllt. */
  transform: translateX(100%);
  transition: transform 0.9s cubic-bezier(.65,0,.35,1);
}

.trifold.is-open {
  transform: translateX(0%);
}

.trifold-panel {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  transform-origin: 0% 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  box-shadow: 0 0 22px rgba(0,0,0,0.4);
  transition: transform 0.9s cubic-bezier(.65,0,.35,1);
  transform: rotateY(-180deg);
  background: #111;
}

/* Panel 3 landet im geschlossenen Zustand exakt über Panel 1 (zwei
   gegenläufige 180°-Drehungen heben sich auf) - der kleine Z-Versatz
   verhindert Z-Fighting/Durchscheinen der beiden Ebenen kurz nach dem
   Öffnen-Klick, wenn sie fast exakt übereinander liegen. */
.trifold-panel.panel-3 {
  transform: rotateY(-180deg) translateZ(4px);
}

.trifold-panel img {
  object-fit: cover !important;
  background: none !important;
  transition: none;
}

.trifold-panel.panel-1 {
  position: relative;
  left: 0;
  transform: none;
  transition: none;
  box-shadow: none;
}

.trifold.is-open .trifold-panel {
  transform: rotateY(0deg);
}

.trifold-toggle {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0a0a0c;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.trifold-toggle:hover {
  transform: translateX(-50%) translateY(-2px);
}

.lightbox-media,
.lightbox-media img,
.lightbox-media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* Schneidet den Mausrad-Zoom von Trifold/Flipbook sauber ab, statt über das
   Info-Panel hinaus zu ragen (siehe attachWheelZoom in script.js). */
.lightbox-media {
  overflow: hidden;
}

.lightbox-media img {
  object-fit: contain;
  background: #000;
}

/* Zoom-Button: Klick vergrößert das Bild, danach per Klicken+Ziehen
   verschiebbar (pannen). */
.lightbox-media img {
  cursor: zoom-in;
  transition: transform 0.3s ease;
  transform-origin: center center;
  touch-action: none;
}

/* Überschreibt den Klick-Zoom-Cursor von oben - Trifold-Panels haben keinen
   Klick-Zoom, sondern Mausrad-Zoom auf der ganzen Bühne (attachWheelZoom in
   script.js), daher Cursor von der Stage erben statt eine Lupe zu zeigen. */
.trifold-panel img {
  cursor: inherit;
}

.lightbox-media img.is-zoomed {
  cursor: grab;
}

.img-zoom-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10,10,12,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  backdrop-filter: blur(3px);
  transition: background 0.25s ease, color 0.25s ease;
}

.img-zoom-btn svg {
  width: 19px;
  height: 19px;
}

.img-zoom-btn:hover {
  background: var(--accent);
}

.img-zoom-btn.active {
  background: var(--accent);
  color: #0a0a0c;
}

.lightbox-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 5;
}

.lightbox-video-preview {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  margin: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
  display: block;
  overflow: hidden;
}

.lightbox-video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.lightbox-video-preview:hover img {
  transform: scale(1.03);
  filter: brightness(0.75);
}

.lightbox-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(10,10,12,0.55);
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.lightbox-video-preview:hover .lightbox-play-btn {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.08);
}

.lightbox-panel {
  flex: 0 0 320px;
  max-width: 36%;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.lightbox-category {
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin: 10px 0 12px;
  line-height: 1.3;
}

.lightbox-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.lightbox-flip-cta:empty {
  display: none;
}

.lightbox-flip-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #0a0a0c;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  margin-bottom: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lightbox-flip-btn::after {
  content: "→";
  font-size: 15px;
}

.lightbox-flip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -8px var(--accent-soft);
}

.lightbox-year-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lightbox-year-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.lightbox-year {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-dim);
}

.lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.lightbox-close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.lightbox-close:hover {
  background: var(--accent);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10,10,12,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
  z-index: 10;
  backdrop-filter: blur(3px);
}

.lightbox-nav:hover {
  background: var(--accent);
}

.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

.lightbox.has-gallery .lightbox-nav {
  display: flex;
}

@media (max-width: 860px) {
  .lightbox-body {
    flex-direction: column;
    max-height: 88vh;
    overflow-y: auto;
  }
  .lightbox-media-wrap {
    flex: none;
    aspect-ratio: 16/9;
  }
  .lightbox-media-wrap.is-image {
    height: 50vh;
  }
  .lightbox-media-wrap.is-flipbook {
    height: 50vh;
  }
  .lightbox-media-wrap.is-trifold {
    height: 50vh;
  }
  .lightbox-panel {
    flex: none;
    max-width: 100%;
    overflow-y: visible;
  }
}

@media (max-width: 900px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------- Mobile nav ---------- */
.mobile-panel {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 850;
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(.2,.8,.3,1), opacity 0.3s ease;
  pointer-events: none;
}

.mobile-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-panel a {
  font-family: var(--font-display);
  font-size: 30px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .full-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
  .contact-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .wrap, .nav-inner { padding: 0 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .full-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .page-header { padding: 150px 0 60px; }
}
