/* ---------- Hero (Film-Loop) ---------- */
.hero {
  position: relative; background: var(--night) url(../video/hero-poster.jpg) center / cover; color: var(--white); overflow: hidden;
  min-height: min(100svh, 1100px); display: grid; align-items: end; isolation: isolate;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: translate3d(var(--vx, 0px), var(--vy, 0px), 0) scale(var(--vs, 1.06)); will-change: transform;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 22, 40, .5) 0%, rgba(12, 22, 40, 0) 60%), linear-gradient(180deg, rgba(12, 22, 40, .62) 0%, rgba(12, 22, 40, .08) 28%, rgba(12, 22, 40, .25) 55%, rgba(12, 22, 40, .9) 100%);
}
.hero__frame { inset: clamp(10px, 1.3vw, 20px); z-index: 1; animation: frameIn 1.4s var(--ease) .2s both; }
.hero__content { position: relative; z-index: 2; display: grid; gap: clamp(18px, 3vw, 40px); padding: 0 0 clamp(18px, 2vw, 30px); min-width: 0; }
.hero__row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
  padding-left: max(calc(var(--gutter) + 12px), env(safe-area-inset-left, 0px)); padding-right: max(calc(var(--gutter) + 12px), env(safe-area-inset-right, 0px));
  animation: fadeIn 1s ease .9s both;
}
.hero__intro { max-width: 560px; min-width: 0; }
.hero__lead { margin: 0 0 26px; font: italic 400 clamp(1.25rem, 2vw, 1.6rem)/1.35 var(--f-serif); color: rgba(255, 255, 255, .92); text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero__play {
  display: inline-flex; align-items: center; gap: 12px; background: transparent; color: var(--white); border: 2px solid var(--white);
  padding: 9px 14px 8px 38px; font: 600 .72rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; position: relative; transition: background .3s, color .3s;
}
.hero__play::before { content: ""; position: absolute; left: 14px; top: 50%; margin-top: -6px; border-left: 11px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hero__play:hover { background: var(--white); color: var(--ink); }
.hero__dur { opacity: .6; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.hero__pause { width: 36px; height: 36px; border: 2px solid rgba(255, 255, 255, .6); background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.hero__pause i { width: 3px; height: 12px; background: var(--white); }
.hero__pause[aria-pressed="true"] i:first-child { width: 0; height: 0; background: none; border-left: 11px solid var(--white); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.hero__pause[aria-pressed="true"] i:last-child { display: none; }
.hero__word {
  margin: 0; font: 700 18.4vw/.78 var(--f-display); letter-spacing: -.012em; white-space: nowrap; text-align: center;
  transform: translate3d(var(--wx, 0px), var(--wy, 0px), 0); margin-bottom: -.035em;
}
.hero__line { display: inline-flex; overflow: hidden; padding-top: .05em; }
.hero__line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero__line > span:nth-child(1) { animation-delay: .30s; } .hero__line > span:nth-child(2) { animation-delay: .34s; }
.hero__line > span:nth-child(3) { animation-delay: .38s; } .hero__line > span:nth-child(4) { animation-delay: .42s; }
.hero__line > span:nth-child(5) { animation-delay: .46s; } .hero__line > span:nth-child(6) { animation-delay: .50s; }
.hero__line > span:nth-child(8) { animation-delay: .58s; } .hero__line > span:nth-child(9) { animation-delay: .62s; }
.hero__line > span:nth-child(10) { animation-delay: .66s; } .hero__line > span:nth-child(11) { animation-delay: .70s; }
.hero__line > span:nth-child(12) { animation-delay: .74s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes frameIn { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 760px) {
  .hero { min-height: 100svh; }
  .hero__ctrl .label { display: none; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
}

/* ---------- Film-Dialog ---------- */
.film {
  position: fixed; inset: 0; z-index: 85; background: rgba(8, 13, 24, .97); color: var(--white); display: grid; place-content: center; gap: 18px;
  padding: calc(70px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  animation: fadeIn .3s both;
}
.film__box { position: relative; width: min(1200px, 92vw, calc((100svh - 190px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.film__box img, .film__box iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.film__gate { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 20px; background: rgba(8, 13, 24, .45); }
.film__gate p { margin: 0; max-width: 46ch; font-size: .85rem; color: rgba(255, 255, 255, .85); }
.film__gate a { color: var(--white); }
.film__cap { margin: 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.film__cap em { font: italic 400 1.05rem/1.3 var(--f-serif); opacity: .85; }
.tile--film::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: rgba(255, 255, 255, .92) no-repeat 54% 50% / 26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='%23111'/%3E%3C/svg%3E");
  transition: transform .5s var(--ease);
}
.tile--film:hover::after { transform: scale(1.12); }

/* ---------- Intro ---------- */
.intro { padding-block: clamp(80px, 11vw, 150px); }
.intro__text { margin: 0; max-width: 20ch; font: 700 clamp(2.2rem, 5vw, 4.6rem)/1 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.facts { list-style: none; padding: 0; margin: clamp(48px, 7vw, 90px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.facts li { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; }
.facts strong { font: 700 1.6rem/1 var(--f-display); text-transform: uppercase; }
.facts span { color: var(--grey); max-width: 32ch; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Arbeiten ---------- */
.work { padding-bottom: clamp(80px, 10vw, 150px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 2px solid var(--ink); background: transparent; padding: 11px 16px 10px;
  font: 600 .75rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; transition: background .25s, color .25s;
}
.chip sup { font-size: .6rem; letter-spacing: 0; margin-left: 2px; }
.chip:hover { background: var(--paper-2); }
.chip.is-on { background: var(--ink); color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(8px, 1.2vw, 16px); }
.tile { position: relative; padding: 0; border: 0; background: var(--paper-2); overflow: hidden; aspect-ratio: 2 / 3; cursor: none; text-align: left; }
.tile.is-big { grid-column: span 2; grid-row: span 2; }
.tile.is-wide { grid-column: span 2; aspect-ratio: auto; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.tile .frame { opacity: 0; transform: scale(1.04); transition: opacity .4s, transform .6s var(--ease); }
.tile .label { position: absolute; left: 7%; bottom: 6%; transform: translateY(12px); opacity: 0; transition: .45s var(--ease); font-size: .62rem; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile:hover .frame, .tile:focus-visible .frame { opacity: 1; transform: none; }
.tile:hover .label, .tile:focus-visible .label { transform: none; opacity: 1; }
@media (hover: none) { .tile { cursor: pointer; } .tile .label { opacity: 1; transform: none; } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile.is-wide { aspect-ratio: 4 / 3; } }

/* ---------- Leistungen ---------- */
.services { padding-block: clamp(80px, 10vw, 150px); position: relative; }
.slist { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.srow {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: baseline;
  border-top: 2px solid var(--ink); padding: 30px 0; transition: padding .5s var(--ease), background .4s;
}
.srow__title { margin: 0; font: 700 clamp(2rem, 4vw, 3.6rem)/.92 var(--f-display); text-transform: uppercase; transition: transform .5s var(--ease); }
.srow__text { margin: 0; color: #3c3b38; max-width: 46ch; }
@media (hover: hover) { .srow:hover .srow__title { transform: translateX(18px); } }
.srow__float {
  position: fixed; left: 0; top: 0; width: 220px; aspect-ratio: 2 / 3; object-fit: cover; z-index: 60; pointer-events: none;
  border: 8px solid var(--white); box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
  opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--r, 0deg)) scale(.9); transition: opacity .3s, transform .5s var(--ease);
}
.srow__float.on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--r, 0deg)) scale(1); }
@media (max-width: 760px) { .srow { grid-template-columns: 1fr; gap: 10px; } .srow__float { display: none; } }

/* ---------- Ablauf ---------- */
.steps { padding-block: clamp(70px, 9vw, 120px); }
.steps__title { margin: 0 0 32px; font: 600 .78rem/1 var(--f-body); letter-spacing: .28em; text-transform: uppercase; color: var(--grey); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps__list li { border-top: 2px solid var(--ink); padding-top: 18px; min-width: 0; }
.steps__list span { font: 700 3.2rem/1 var(--f-display); color: var(--night); font-variant-numeric: tabular-nums; }
.steps__list h3 { margin: 12px 0 8px; font: 700 1.5rem/1 var(--f-display); text-transform: uppercase; }
.steps__list p { margin: 0; color: var(--grey); }
@media (max-width: 900px) { .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps__list { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(60px, 8vw, 130px); }
.faq__list { border-bottom: 2px solid var(--ink); }
.faq details { border-top: 2px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 26px 0; font: 700 clamp(1.5rem, 3vw, 2.4rem)/1 var(--f-display); text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 2.2rem/1 var(--f-body); transition: transform .4s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 28px; max-width: 62ch; color: #3c3b38; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.foot { background: var(--night-2); color: var(--white); padding-block: clamp(60px, 8vw, 110px) calc(30px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.foot__big { margin: 0 0 56px; font: 700 clamp(3.4rem, 17.6vw, 22rem)/.8 var(--f-display); white-space: nowrap; letter-spacing: -.01em; }
.foot__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line-light); padding-top: 30px; }
.foot__row p { margin: 0; line-height: 1.8; }
.foot__row a { text-decoration: none; border-bottom: 1px solid var(--line-light); }
.foot__row a:hover { border-color: var(--white); }
.foot__mail { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; overflow-wrap: anywhere; }
.copy { background: var(--white); color: var(--ink); border: 0; padding: 6px 10px 5px; font: 600 .65rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; }
.foot__small { margin: 50px 0 0; font-size: .8rem; opacity: .5; }
@media (max-width: 760px) { .foot__row { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 85; background: rgba(8, 13, 24, .97); color: var(--white);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: calc(64px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  animation: fadeIn .3s both;
}
.lb__fig { margin: 0; display: grid; justify-items: center; gap: 16px; min-width: 0; }
.lb__fig img { max-height: calc(100svh - 190px); width: auto; max-width: 100%; animation: fadeIn .4s both; touch-action: pan-y; }
.lb__fig figcaption { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.lb__fig em { font: italic 400 1.1rem/1.3 var(--f-serif); opacity: .85; }
.lb__nav { background: none; border: 2px solid var(--line-light); color: var(--white); width: 54px; height: 54px; font-size: 1.3rem; transition: background .3s, color .3s; }
.lb__nav:hover { background: var(--white); color: var(--ink); }
.lb__close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); background: var(--white); color: var(--ink); border: 0; padding: 12px 16px 11px; font: 600 .72rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; }
@media (max-width: 760px) { .lightbox { grid-template-columns: 1fr 1fr; } .lb__fig { grid-column: 1 / -1; grid-row: 1; } .lb__prev { justify-self: start; } .lb__next { justify-self: end; } }
