/* Theme – nachgebaut nach dem Adobe-Portfolio-Design von matthias-schoening.com
   Farben und Schriften kommen aus content/site.json (werden als :root-Variablen eingefügt). */

@font-face { font-family: "DM Mono"; font-weight: 300; font-style: normal; font-display: swap; src: url(fonts/dm-mono-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/dm-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/dm-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 300; font-style: italic; font-display: swap; src: url(fonts/dm-mono-latin-300-italic.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/dm-mono-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-style: italic; font-display: swap; src: url(fonts/dm-mono-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 300; font-display: swap; src: url(fonts/dm-mono-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-weight: 400; font-display: swap; src: url(fonts/dm-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-weight: 500; font-display: swap; src: url(fonts/dm-mono-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo Black"; font-weight: 400; font-display: swap; src: url(fonts/archivo-black-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo Black"; font-weight: 400; font-display: swap; src: url(fonts/archivo-black-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #222;
  --text: #fff;
  --accent: #FFE800;
  --muted: #9E9E9E;
  --font-head: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "DM Mono", ui-monospace, monospace;
  --gap: 5px;
  --side: 5%;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
b, strong { font-weight: var(--w-bold, 500); }
.light { font-weight: var(--w-light, 300); }
.head-font { font-family: var(--font-head); font-weight: var(--w-head, 400); font-stretch: var(--head-stretch, normal); }

/* Hintergrundvideo (z. B. Grain) */
.bg-video { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); pointer-events: none; transform: translateZ(0); contain: strict; }
.bg-video video { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.bg-video::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--bg-dim, 0); }
body.has-bg-video { background: transparent; }

/* ---------------------------------------------------------------- Kopfzeile */
.site-header {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; height: 160px; padding: 0 var(--side) 10px;
  position: relative; z-index: 3;
}
.site-header nav { justify-self: start; }
.nav-item { display: inline-block; padding-right: 20px; }
.nav-item a {
  font-size: 14px; line-height: 19px; text-transform: uppercase; text-decoration: none; color: var(--text);
}
.nav-item a:hover, .nav-item a.active { color: var(--accent); }
.logo { flex: 1; text-align: center; }
.logo a { display: inline-block; position: relative; }
.logo img { max-height: 150px; width: auto; margin: 0 auto; }
.logo .logo-hover { display: none; }
.logo a:hover .logo-normal.has-hover { display: none; }
.logo a:hover .logo-hover { display: block; }
.logo-text { font-family: var(--font-head); font-weight: var(--w-head, 400); font-stretch: var(--head-stretch, normal); font-size: calc(35px * var(--head-scale, 1)); line-height: 1; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.social { text-align: right; justify-self: end; white-space: nowrap; }
.social ul { list-style: none; margin: 0; padding: 0; font-size: 0; }
.social li { display: inline-block; padding-left: 10px; }
.social a { display: block; }
.social svg { width: 30px; height: 30px; fill: var(--text); }
.social a:hover svg { fill: var(--accent); }

.hamburger { display: none; position: absolute; right: var(--side); top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 20px 0 20px 20px; cursor: pointer; }
.hamburger i { display: block; width: 24px; height: 2px; margin-bottom: 4px; background: var(--text); }
.hamburger i:last-child { margin-bottom: 0; }
.mobile-nav { display: none; }

/* ---------------------------------------------------------------- Inhalt */
.site-content { margin: 0 4%; }
.page-heading { font-family: var(--font-head); font-size: calc(25px * var(--head-scale, 1)); line-height: 1.2; text-transform: var(--head-case, uppercase); letter-spacing: var(--head-track, 0); margin: 0 0 30px; font-weight: var(--w-head, 400); font-stretch: var(--head-stretch, normal); }
.modules { max-width: 1440px; margin: 0 auto; }
.module { margin: 0 auto var(--mod-gap, 20px); }
.module[data-size] { max-width: var(--size); }

/* Text */
.t p { margin: 0; }
.t .title { font-family: var(--font-head); font-weight: var(--w-head, 400); font-stretch: var(--head-stretch, normal); font-size: calc(25px * var(--head-scale, 1)); line-height: 1.25; text-transform: var(--head-case, uppercase); letter-spacing: var(--head-track, 0); margin-bottom: 6px; }
.t .heading { font-family: var(--font-head); font-weight: var(--w-head, 400); font-stretch: var(--head-stretch, normal); font-size: calc(20px * var(--head-scale, 1)); line-height: 1.3; text-transform: var(--head-case, uppercase); letter-spacing: var(--head-track, 0); margin-bottom: 4px; }
.t .text { font-size: calc(15px * var(--body-scale, 1)); line-height: 1.55; }
.t .small { font-size: calc(10px * var(--body-scale, 1)); line-height: 1.5; }
.t a { color: var(--accent); text-decoration: none; }
.t a:hover { text-decoration: underline; }

/* Bildergalerie: Reihen mit gleicher Höhe */
.gallery { display: flex; flex-direction: column; gap: var(--gap); }
.gallery-row { display: flex; gap: var(--gap); }
.gallery-item { position: relative; display: block; cursor: zoom-in; overflow: hidden; background: rgba(255,255,255,.03); }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Einzelbild */
.image-module img { width: 100%; height: auto; cursor: zoom-in; }

/* Video */
.video { max-width: 1280px; }
.video-wrap { position: relative; width: 100%; height: 0; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videofile video { width: 100%; height: auto; background: #000; }
.video-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: #111 center / cover no-repeat; color: var(--text); border: 0; cursor: pointer; font: inherit; font-size: 13px; text-align: center; padding: 20px; }
.video-consent::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.video-consent > * { position: relative; }
.video-consent .play { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--text); display: grid; place-items: center; }
.video-consent .play::after { content: ""; border-left: 18px solid var(--text); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.video-consent:hover .play { border-color: var(--accent); }
.video-consent:hover .play::after { border-left-color: var(--accent); }
.video-consent small { opacity: .8; max-width: 420px; }

/* Spalten */
.columns { display: flex; gap: 30px; }
.columns.valign-center { align-items: center; }
.columns.valign-bottom { align-items: flex-end; }
.columns > .col { min-width: 0; }
.columns .module:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- Projekt-Kacheln */
.project-covers { display: flex; flex-wrap: wrap; gap: var(--gap); }
.project-cover { display: block; position: relative; width: calc(50% - var(--gap) / 2); text-decoration: none; }
.cover-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; transform: translateZ(0); }
.cover-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .2s ease; }
.cover-image::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .2s ease; }
.project-cover:hover .cover-image img { filter: grayscale(100%); }
.project-cover:hover .cover-image::after { opacity: .5; }
.cover-details { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8%; text-align: center; opacity: 0; transition: opacity .15s ease; z-index: 1; }
.project-cover:hover .cover-details, .project-cover:focus-visible .cover-details { opacity: 1; }
.cover-title { font-family: var(--font-head); font-weight: var(--w-head, 400); font-stretch: var(--head-stretch, normal); font-size: calc(24px * var(--head-scale, 1)); line-height: 1.17; color: var(--accent); text-transform: var(--head-case, uppercase); letter-spacing: var(--head-track, 0); padding-bottom: 3px; }
.cover-sub { font-size: 16px; line-height: 20px; color: #fff; padding-top: 5px; }

/* ---------------------------------------------------------------- Fußzeile */
.site-footer { text-align: center; font-size: 12px; line-height: 20px; color: var(--muted); padding: 50px var(--side) 102px; }
.site-footer a { color: var(--muted); }
.back-to-top { position: fixed; right: 70px; bottom: 25px; width: 42px; height: 42px; border-radius: 4.2px; z-index: 3;
  background: rgba(38,38,38,.25); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: rgba(255,255,255,.2); }
.back-to-top svg { width: 19px; height: 19px; fill: #fff; opacity: .5; }

/* ---------------------------------------------------------------- Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 10; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 300 34px/1 var(--font-body); cursor: pointer; padding: 20px; opacity: .7; }
.lightbox button:hover { opacity: 1; color: var(--accent); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------- Mobil */
@media (max-width: 932px) {
  .site-header { display: flex; height: auto; padding: 30px var(--side); }
  .site-header nav, .site-header .social { display: none; }
  .logo { text-align: left; }
  .logo img { max-height: 60px; }
  .hamburger { display: block; }
  .site-content { margin: 0; }
  .site-footer { padding: 24px var(--side) 40px; }
  .back-to-top { display: none; }
  .cover-title { font-size: calc(18px * var(--head-scale, 1)); }
  .cover-sub { font-size: 14px; line-height: 18px; }
  .mobile-nav { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column;
    align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
  .nav-open .mobile-nav { opacity: 1; visibility: visible; transition: opacity .2s; }
  .nav-open { overflow: hidden; }
  .mobile-nav .nav-item { display: block; padding: 0 0 30px; text-align: center; }
  .mobile-nav .nav-item { padding-bottom: 22px; }
  .mobile-nav .nav-item a { font-family: var(--font-body); font-weight: 400; font-stretch: normal; font-size: 17px; line-height: 24px; letter-spacing: .02em; }
  /* Hintergrundvideo (Grain) auch hinter dem offenen Menü */
  .has-bg-video .mobile-nav { background: transparent; }
  .has-bg-video .site-header, .has-bg-video .site-content, .has-bg-video .site-footer { transition: opacity .2s; }
  .has-bg-video.nav-open .site-header, .has-bg-video.nav-open .site-content, .has-bg-video.nav-open .site-footer { opacity: 0; pointer-events: none; }
  .mobile-nav .social { width: auto; text-align: center; margin-top: 20px; }
  .mobile-nav .social svg { width: 42px; height: 42px; }
  .mobile-nav .close { position: absolute; top: 24px; right: var(--side); background: none; border: 0; color: var(--text); font: 300 36px/1 var(--font-body); cursor: pointer; }
  .site-content { padding: 0 var(--side); }
  .project-covers { margin: 0 calc(-1 * var(--side)); }
}
@media (max-width: 540px) {
  .project-cover { width: 100%; }
  .cover-title { font-size: calc(17px * var(--head-scale, 1)); }
  .columns { flex-direction: column; gap: 20px; align-items: stretch !important; }
  .columns .t p[style*="right"] { text-align: left !important; }
  .gallery-row { flex-wrap: wrap; }
  .gallery-row .gallery-item { flex-basis: 100% !important; }
  .module.t[data-size] { max-width: 100%; }
  .module.image-module[data-size] { max-width: min(100%, calc(var(--size) * 1.6)); }
  .t .title { font-size: calc(21px * var(--head-scale, 1)); }
}

/* Touch-Geräte (Handy/Tablet): Titel + Untertitel immer sichtbar */
@media (hover: none), (max-width: 540px) {
  .covers-overlay .cover-details { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.15)); border-radius: 10px; }
  .covers-below .project-cover .cover-details { position: static; opacity: 1; padding: 8px 2px 14px; align-items: flex-start; text-align: left; }
  .covers-below .cover-title { font-size: calc(15px * var(--head-scale, 1)); }
  .covers-below .cover-sub { padding-top: 2px; font-size: 13px; }
}

/* ---------------------------------------------------------------- Credits */
.credits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; }
.credits-grid.one { grid-template-columns: 1fr; }
.credits-sec { margin-bottom: 28px; }
.credits-sec:last-child { margin-bottom: 0; }
.credits-title { font-family: var(--font-head); font-weight: var(--w-head, 400); font-stretch: var(--head-stretch, normal); font-size: calc(20px * var(--head-scale, 1)); line-height: 1.3;
  text-transform: var(--head-case, uppercase); letter-spacing: var(--head-track, 0); margin: 0 0 4px; }
.credits p { margin: 0; font-size: calc(15px * var(--body-scale, 1)); line-height: 1.55; }
.credits-sec.kind-text p { font-weight: var(--w-bold, 500); }
.credits-note { margin-top: 24px !important; opacity: .8; font-style: italic; }
.credits-note.note-mobile { display: none; }
@media (max-width: 540px) {
  .credits-note.note-desktop { display: none; }
  .credits-note.note-mobile { display: block; margin-top: 30px !important; }
}
.credits-col.right { text-align: left; }
.fest { list-style: none; margin: 0; padding: 0; font-size: calc(15px * var(--body-scale, 1)); line-height: 1.55; }
.fest li { margin: 0; }
.fest .fy { font-weight: var(--w-bold, 500); }
.fest .fy::after, .fest b::after { content: " | "; font-weight: var(--w-light, 300); opacity: .6; }
.fest b { font-weight: var(--w-bold, 500); }
.fest .ff { font-weight: var(--w-light, 300); }
.fest a { color: var(--accent); text-decoration: none; }
.awards-list .fest { columns: 2; column-gap: 60px; }
.awards-list .fest li { break-inside: avoid; margin-bottom: 4px; }

/* Download */
.download-btn { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--text); color: var(--text); text-decoration: none;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.download-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------------- Projekt-Navigation */
.project-nav { display: flex; justify-content: space-between; gap: 20px; margin: 70px 0 10px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.15); }
.pn-item { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text); max-width: 48%; }
.pn-item.next { flex-direction: row-reverse; text-align: right; margin-left: auto; }
.pn-thumb { width: 150px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; flex: none; background: rgba(255,255,255,.05); }
.pn-thumb img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s, transform .4s; }
.pn-item:hover .pn-thumb img { filter: grayscale(100%); transform: scale(1.04); }
.pn-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin-bottom: 4px; }
.pn-title { display: block; font-family: var(--font-head); font-weight: var(--w-head, 400); font-stretch: var(--head-stretch, normal); font-size: calc(20px * var(--head-scale, 1));
  text-transform: var(--head-case, uppercase); letter-spacing: var(--head-track, 0); line-height: 1.15; color: var(--accent); }

/* ---------------------------------------------------------------- Showreel-Loop oben */
.hero { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 10px; margin-bottom: var(--gap); background: #000; }
.hero video, .hero .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero-hover video { opacity: 0; transition: opacity .35s ease; }
.hero-hover.playing video { opacity: 1; }
.hero-hover .hero-poster { transition: transform .6s ease; }
.hero-hover:hover .hero-poster { transform: scale(1.02); }
.hero-label { position: absolute; left: 24px; bottom: 20px; display: flex; align-items: center; gap: 10px; color: #fff; text-transform: uppercase;
  font-size: 13px; letter-spacing: .08em; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero-play { width: 34px; height: 34px; border: 1.5px solid #fff; border-radius: 50%; display: grid; place-items: center; }
.hero-play::after { content: ""; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
a.hero:hover .hero-label { color: var(--accent); }
a.hero:hover .hero-play { border-color: var(--accent); }
a.hero:hover .hero-play::after { border-left-color: var(--accent); }

/* ---------------------------------------------------------------- Bewegte Kacheln */
.project-cover.has-video .cover-image { background: #000; isolation: isolate; }
.cover-video { position: absolute; top: -1px; left: -1px; width: calc(100% + 2px); height: calc(100% + 2px); object-fit: cover; max-width: none; border-radius: inherit; opacity: 0; transition: opacity .35s ease; }
.project-cover.playing .cover-video { opacity: 1; }
.project-cover.playing .cover-image img { opacity: 0; transition: opacity .2s ease .35s; }
.project-cover.has-video:hover .cover-image img { filter: none; }
.project-cover.has-video:hover .cover-image::after { opacity: .3; }
.cover-lock { position: absolute; top: 12px; right: 14px; font-size: 14px; z-index: 2; opacity: .85; }

/* ---------------------------------------------------------------- Sprache */
.lang-switch { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; text-transform: uppercase; margin-right: 18px; vertical-align: middle; }
.lang-switch a { color: var(--text); text-decoration: none; opacity: .7; }
.lang-switch a:hover { color: var(--accent); opacity: 1; }
.lang-switch .active { color: var(--accent); }
.lang-switch i { font-style: normal; opacity: .4; }
.social .lang-switch + ul { display: inline-block; vertical-align: middle; }

/* ---------------------------------------------------------------- Passwortschutz */
.locked { min-height: 40vh; display: grid; place-items: center; }
.lock-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; max-width: 420px; text-align: center; }
.lock-form p { width: 100%; margin: 0 0 6px; }
.lock-form input { flex: 1; min-width: 180px; padding: 11px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.3);
  color: var(--text); font: inherit; outline: none; }
.lock-form input:focus { border-color: var(--accent); }
.lock-form button { padding: 11px 20px; border-radius: 999px; border: 0; background: var(--accent); color: #111; font: inherit; cursor: pointer; text-transform: uppercase; }
.lock-error { color: #ff8a80; }

@media (max-width: 932px) {
  .mobile-nav .lang-switch { margin: 10px 0 0; font-size: 18px; }
  .pn-thumb { width: 96px; }
}
@media (max-width: 540px) {
  .credits-grid { grid-template-columns: 1fr; }
  .credits-col.right { text-align: left; }
  .awards-list .fest { columns: 1; }
  .project-nav { flex-direction: column; }
  .pn-item, .pn-item.next { max-width: 100%; }
  .hero { aspect-ratio: 16 / 9 !important; }
  .hero-label { left: 14px; bottom: 12px; }
}

/* ---------------------------------------------------------------- Layout-Einstellungen (Projekte) */
.type-project.ptitle-center .t .title { text-align: center; }
.type-project.ptext-center .t .text { text-align: center; }
.type-project .module.credits { margin-top: var(--credits-gap, 60px); }

/* Showreel-Kachel: Titel + Untertitel mittig beim Darüberfahren (wie Projektkacheln) */
.hero .hero-details { position: absolute; inset: 0; z-index: 2; }
.hero::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .2s ease; z-index: 1; pointer-events: none; }
.hero:hover::after, .hero:focus-visible::after { opacity: .35; }
.hero:hover .hero-details, .hero:focus-visible .hero-details { opacity: 1; }
@media (hover: none), (max-width: 540px) {
  .hero .hero-details { opacity: 1; }
  .hero::after { opacity: .25; }
}

/* Festival-Laurels */
.laurels { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 34px; margin: 0 0 40px; }
.laurel { height: var(--laurel-h, 80px); width: auto; max-width: 260px; object-fit: contain; }
.laurel-white .laurel { filter: brightness(0) invert(1); }
.laurel-mask { display: block; width: auto; background: var(--accent); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
@media (max-width: 540px) { .laurel { height: calc(var(--laurel-h, 80px) * .75); } .laurels { gap: 16px 22px; } }

/* ---------------------------------------------------------------- Einblenden beim Scrollen */
.fx-reveal .reveal { opacity: 0; transform: translateY(56px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.16,.84,.3,1); }
.fx-reveal .reveal.soon { will-change: transform, opacity; }
.fx-reveal .reveal.in { opacity: 1; transform: none; }
.fx-reveal .project-covers .reveal:nth-child(2n), .fx-reveal .gallery-row .reveal:nth-child(2n) { transition-delay: .12s; }

/* Titelbild oben auf Projektseiten (Ziel des Übergangs von der Kachel) */
.project-hero { aspect-ratio: 2.39 / 1; overflow: hidden; border-radius: 10px; margin: 0 0 30px; background: rgba(255,255,255,.03); }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 540px) { .project-hero { aspect-ratio: 16 / 9; margin-bottom: 20px; } }

/* ---------------------------------------------------------------- Eigener Cursor */
.fx-cur { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; }
.fx-cur span { position: absolute; left: 0; top: 0; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--accent); color: #111;
  display: grid; place-items: center; font: 500 12px/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em;
  transform: scale(0); opacity: 0; transition: transform .25s cubic-bezier(.2,.8,.2,1.2), opacity .2s ease; }
.fx-cur.on span { transform: scale(1); opacity: 1; }
.fx-cur-target, .fx-cur-target * { cursor: none; }

/* ---------------------------------------------------------------- Showreel-Overlay */
.reel-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.94); display: grid; place-items: center; opacity: 0; transition: opacity .25s ease; }
.reel-overlay.open { opacity: 1; }
.reel-box { position: relative; width: min(92vw, calc(86vh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.reel-box iframe, .reel-box .video-consent { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font: 300 40px/1 var(--font-body); cursor: pointer; opacity: .75; }
.reel-close:hover { opacity: 1; color: var(--accent); }

/* Lightbox: technische Angaben */
.lb-info { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.75); padding: 0 60px; }
@media (prefers-reduced-motion: reduce) { .fx-reveal .reveal { opacity: 1; transform: none; transition: none; } }

/* Stills schützen (kein Ziehen, kein „Bild sichern“ per langem Drücken auf dem iPhone) */
img, video { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* Showreel-Kachel auf Handy/Tablet: randlos wie die Projektkacheln, 16:9 */
@media (max-width: 932px) {
  .hero { margin: 0 calc(-1 * var(--side)) var(--gap); width: auto; aspect-ratio: 16 / 9 !important; }
}

/* ---------------------------------------------------------------- Ausrichtung pro Baustein (links / mittig / rechts) */
body .modules .module.align-left, body .modules .module.align-left p:not([style*="text-align"]), body .modules .module.align-left .credits-col, body .modules .module.align-left .fest { text-align: left; }
body .modules .module.align-center, body .modules .module.align-center p:not([style*="text-align"]), body .modules .module.align-center .credits-col, body .modules .module.align-center .fest { text-align: center; }
body .modules .module.align-right, body .modules .module.align-right p:not([style*="text-align"]), body .modules .module.align-right .credits-col, body .modules .module.align-right .fest { text-align: right; }
.module.align-left .laurels { justify-content: flex-start; }
.module.align-right .laurels { justify-content: flex-end; }
/* Bild, Video, Galerie mit reduzierter Breite: an den Rand rücken */
.module.align-left[data-size], .module.video.align-left, .module.videofile.align-left { margin-left: 0; }
.module.align-right[data-size], .module.video.align-right, .module.videofile.align-right { margin-right: 0; }
.module.image-module.align-left img { margin-right: auto; }
.module.image-module.align-right img { margin-left: auto; }
.module.image-module.align-center img { margin: 0 auto; }
/* Download-Knopf, Video-Titel usw. folgen text-align */
.module.download { text-align: inherit; }
@media (max-width: 540px) {
  .module.align-right, .module.align-right p:not([style*="text-align"]) { text-align: right; }
}

/* Weiches Scrollen (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Mauszeiger in Akzentfarbe (Größe wie der normale Zeiger) */
@media (hover: hover) and (pointer: fine) {
  body.cursor-accent, body.cursor-accent .lightbox, body.cursor-accent .reel-overlay { cursor: var(--cur-arrow), auto; }
  body.cursor-accent a, body.cursor-accent button, body.cursor-accent [data-lightbox], body.cursor-accent label, body.cursor-accent .video-consent { cursor: var(--cur-hand), pointer; }
  body.cursor-accent input[type=password], body.cursor-accent input[type=text] { cursor: text; }
}

/* Rechtstexte (Impressum, Datenschutz): ruhiger, gut lesbar */
.page-dsgvo .modules, .page-imprint .modules { max-width: 860px; }
.page-dsgvo .t .heading, .page-imprint .t .heading { font-size: calc(15px * var(--head-scale, 1)); margin: 34px 0 8px; }
.page-dsgvo .t .text, .page-imprint .t .text { margin: 0 0 12px; line-height: 1.65; }

/* „Neu“-Markierung auf Projektkacheln */
.cover-new { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--accent); color: #111; font-family: var(--font-body); font-size: 11px; line-height: 1;
  font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px 5px; border-radius: 999px; pointer-events: none; }
@media (max-width: 540px) { .cover-new { top: 10px; left: 10px; font-size: 10px; padding: 5px 8px 4px; } }
