/* Fraqment Film – fraqment.com
   Layout: Vollformat-Slider oben, darunter Raster aller Filme (2 Spalten, bis 700 px eine).
   Hell/dunkel folgt der Systemeinstellung. Schriften selbst gehostet (SIL OFL). */

/* ---------- Schriften ---------- */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/anton-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/anton-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }

/* ---------- Farben und Schrift ---------- */
:root {
  --bg: #FFFFFF;
  --fg: #0A0A0B;
  --muted: #55534E;
  --rule: #C9C7C1;
  --gold: #C9A55A;          /* Akzent (Alternative Silber #C4C7CC) */
  --gold-text: #7E6328;     /* Gold als lesbare Schriftfarbe auf Weiß */
  --stage: #0A0A0B;         /* Hintergrund hinter Filmen, immer dunkel */
  --on-stage: #FFFFFF;
  --f-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 2.4vw, 36px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0A0A0B; --fg: #FFFFFF; --muted: #A9A7A1; --rule: #3A3A3D; --gold-text: #C9A55A; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0A0A0B; --fg: #FFFFFF; --muted: #A9A7A1; --rule: #3A3A3D; --gold-text: #C9A55A; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-ui); font-size: 17px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--fg); color: var(--bg); text-decoration: none; font-family: var(--f-display); text-transform: uppercase; }
.skip:focus { top: 8px; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1 0 auto; }
.todo { text-decoration: underline dashed var(--gold); text-underline-offset: 4px; }

/* ---------- Kopf ---------- */
.site-header { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
  padding: 18px max(var(--gutter), env(safe-area-inset-right, 0px)) 18px max(var(--gutter), env(safe-area-inset-left, 0px)); }
.site-header.over-hero { position: absolute; top: 0; left: 0; right: 0; color: var(--on-stage); }
.logo { display: flex; align-items: center; gap: 24px; min-height: 112px; text-decoration: none; }
.logo-mark { width: 104px; height: 104px; flex: none; fill: currentColor; }
.logo-rule { align-self: stretch; width: 1px; background: currentColor; }
.logo-word { display: flex; flex-direction: column; font-family: var(--f-ui); font-size: 26px; line-height: 1.25; }
.logo-word b { font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-family: var(--f-display); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .01em; }
.nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.site-header:not(.over-hero) .nav a[aria-current="page"] { color: var(--gold-text); }
.burger { display: none; width: 48px; height: 48px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 6px; height: 6px; background: currentColor; }

.menu { margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; padding: 18px var(--gutter);
  background: var(--stage); color: var(--on-stage); }
.menu[open] { display: flex; flex-direction: column; }
.menu::backdrop { background: var(--stage); }
.menu-close { align-self: flex-end; width: 48px; height: 48px; padding: 12px; border: 0; background: transparent; cursor: pointer; }
.menu-close svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 2.2; fill: none; }
.menu nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  font-family: var(--f-display); font-size: clamp(3.4rem, 18vw, 6rem); line-height: 1; text-transform: uppercase; }
.menu nav a { text-decoration: none; }

/* ---------- Slider ---------- */
.hero { position: relative; overflow: hidden; min-height: clamp(560px, 60vw, 960px); background: var(--stage); color: var(--on-stage);
  display: flex; flex-direction: column; justify-content: flex-end; }
.hero-media, .hero-media > *, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media > * { object-fit: cover; }
.slide-still { opacity: 0; transition: opacity .9s ease; }
.slide-still.is-active { opacity: 1; }
.hero-video { opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero-video.is-visible { opacity: 1; }
.hero-shade { background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.5) 100%); }
.hero-foot { position: relative; display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 32px); padding: var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.hero-play { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.hero-text { min-width: 0; display: flex; flex-direction: column; gap: clamp(8px, 1.2vw, 18px); font-family: var(--f-display); text-transform: uppercase; }
.hero-client { font-size: clamp(3.2rem, 15vw, 15.5rem); line-height: .9; overflow-wrap: anywhere; }
.hero-title { font-size: clamp(1.15rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: .01em; }
.hero-text.swap { animation: textin .5s ease both; }
@keyframes textin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.play-dot { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; transition: transform .25s ease, opacity .2s ease; }
.play-dot svg { width: 32%; height: 32%; margin-left: 6%; fill: #0A0A0B; }
.play-dot.big { width: clamp(56px, 6.4vw, 96px); height: clamp(56px, 6.4vw, 96px); }
.hero-play:hover .play-dot { transform: scale(1.12); }

.hero-bars { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.bars { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: clamp(4px, .6vw, 10px); height: 44px; }
.bar { flex: 1 1 0; min-width: 0; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; display: flex; align-items: flex-end; cursor: pointer; }
.bar-track { position: relative; display: block; width: 100%; height: 5px; overflow: hidden; background: rgba(255,255,255,.38); transition: height .2s ease; }
.bar:hover .bar-track { height: 10px; }
.bar-fill { position: absolute; inset: 0; background: var(--on-stage); transform: scaleX(0); transform-origin: left center; }
.bar.done .bar-fill { transform: scaleX(1); }
.bar.active .bar-fill { background: var(--gold); animation: fill var(--slide-dur, 7s) linear forwards; }
.hero.paused .bar.active .bar-fill { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.counter { flex: none; font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* ---------- Raster ---------- */
.films { padding: clamp(20px, 2.4vw, 36px) max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px)); scroll-margin-top: 0; }
.grid { list-style: none; margin: 0; padding: clamp(16px, 2.4vw, 36px) 0; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.card { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0; padding: 0; border: 0; background: #161618; color: var(--on-stage); text-align: left; cursor: pointer; overflow: hidden; }
.card img, .card-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-shade { background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.1) 55%, rgba(0,0,0,.05) 100%); }
.card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 60% at 100% 0%, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 100%); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.card-credits { position: absolute; z-index: 1; top: clamp(10px, 1.4vw, 20px); right: clamp(12px, 1.6vw, 24px); max-width: 80%;
  display: flex; flex-direction: column; align-items: flex-end; text-align: right;
  font-family: var(--f-serif); font-size: clamp(1rem, 1.35vw, 1.3rem); line-height: 1.25;
  text-shadow: 0 1px 14px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease; }
.card-text { position: absolute; left: clamp(12px, 1.6vw, 24px); right: 84px; bottom: clamp(12px, 1.6vw, 24px); display: flex; flex-direction: column; gap: 6px; font-family: var(--f-display); text-transform: uppercase; }
.card-client { font-size: clamp(2rem, 5vw, 5rem); line-height: .9; overflow-wrap: anywhere; transition: color .2s ease; }
.card-title { font-size: clamp(1rem, 1.4vw, 1.3rem); line-height: 1.1; letter-spacing: .01em; }
.card .play-dot { position: absolute; right: clamp(12px, 1.6vw, 24px); bottom: clamp(12px, 1.6vw, 24px); opacity: 0; }
.card:hover::after, .card:focus-visible::after,
.card:hover .card-credits, .card:focus-visible .card-credits,
.card:hover .play-dot, .card:focus-visible .play-dot { opacity: 1; transform: none; }
.card:hover .card-client, .card:focus-visible .card-client { color: var(--gold); }
.card:focus-visible { outline-offset: -3px; }

/* ---------- Player ---------- */
.player { margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; overflow-y: auto;
  background: var(--bg); color: var(--fg); padding: clamp(12px, 2vw, 28px) var(--gutter); }
.player[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.player::backdrop { background: var(--bg); }
.player-inner { width: min(100%, calc((100dvh - 230px) * 16 / 9)); min-width: min(100%, 320px); display: flex; flex-direction: column; }
.player-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 8px; }
.player-title { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 16px; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; }
.p-client { font-size: clamp(2rem, 5vw, 4.4rem); line-height: .92; }
.p-title { font-size: clamp(1.05rem, 1.8vw, 1.5rem); letter-spacing: .01em; }
.player-close { flex: none; width: 48px; height: 48px; padding: 15px; border: 0; background: var(--fg); cursor: pointer; }
.player-close svg { width: 100%; height: 100%; stroke: var(--bg); stroke-width: 2.4; fill: none; }
.vwrap { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vwrap video { width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.vwrap.ui-hidden video { cursor: none; }
.vui { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; display: flex; align-items: center; gap: 4px; color: #FFF;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0)); transition: opacity .2s ease; }
.vwrap.ui-hidden .vui { opacity: 0; pointer-events: none; }
.vui button { flex: none; width: 44px; height: 44px; margin: 0; padding: 13px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vui svg { width: 100%; height: 100%; fill: #FFF; }
.vui .v-mute svg .wave, .vui .v-mute svg .cross, .vui .v-fs svg { fill: none; stroke: #FFF; stroke-width: 2; }
.vui .v-mute svg .cross, .vui .v-mute.is-muted svg .wave { display: none; }
.vui .v-mute.is-muted svg .cross { display: inline; }
.vui .i-play, .vui .v-play.is-paused .i-pause { display: none; }
.vui .v-play.is-paused .i-play { display: inline; }
.vui :focus-visible { outline: 2px solid #FFF; outline-offset: -2px; }
.v-seek { flex: 1; min-width: 0; height: 44px; margin: 0 6px; accent-color: var(--gold); cursor: pointer; }
.v-time { flex: none; min-width: 3.4em; font-family: var(--f-ui); font-size: .8rem; font-variant-numeric: tabular-nums; }
.v-error { position: absolute; inset: auto 0 50% 0; margin: 0; text-align: center; color: #FFF; font-family: var(--f-ui); }
.credits { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.credits-toggle { align-self: flex-start; min-height: 48px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 1.1rem; letter-spacing: .02em; text-transform: uppercase; }
.credits dl { margin: 0; padding: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px clamp(16px, 3vw, 40px);
  font-family: var(--f-serif); font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.2; }
.credits dl[hidden] { display: none; }
.credits dl div { display: flex; flex-direction: column; }
.credits dt { color: var(--muted); }
.credits dd { margin: 0; }

/* ---------- Fuß ---------- */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 28px; color: var(--muted);
  padding: 14px max(var(--gutter), env(safe-area-inset-right, 0px)) 20px max(var(--gutter), env(safe-area-inset-left, 0px));
  font-family: var(--f-ui); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.site-footer a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

/* ---------- Unterseiten ---------- */
.sub { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 88px);
  padding: clamp(24px, 4vw, 56px) max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(48px, 6vw, 96px) max(var(--gutter), env(safe-area-inset-left, 0px)); }
.display { margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; line-height: .88; text-wrap: balance; }
.display.xl { font-size: clamp(3rem, 12.4vw, 13.4rem); line-height: .96; }
.display.md { font-size: clamp(1.4rem, 3vw, 2.6rem); line-height: 1; letter-spacing: .01em; }
.dot { color: var(--gold); }
.label { margin: 0; font-family: var(--f-ui); font-weight: 400; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lead { margin: 0; font-family: var(--f-serif); font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.12; text-wrap: pretty; }
.prose { max-width: 40rem; font-family: var(--f-serif); font-size: 1.3rem; line-height: 1.4; text-wrap: pretty; }
.prose p { margin: 0 0 .8em; }
.split { display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 5vw, 80px); align-items: flex-start; }
.split > * { flex: 1 1 340px; min-width: 0; }
.split > .wide { flex: 3 1 420px; }
.figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #161618; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.block { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--fg); padding-top: 16px; }
.services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .35em; font-family: var(--f-display); font-size: clamp(1.9rem, 6vw, 6rem); line-height: .98; text-transform: uppercase; }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.rows li:first-child { border-top: 1px solid var(--rule); }
.rows .big { font-family: var(--f-display); font-size: clamp(1.6rem, 3.4vw, 3rem); text-transform: uppercase; }
.rows .small { font-family: var(--f-serif); font-size: 1.25rem; color: var(--muted); }
.next { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; text-decoration: none; }
.next .display { font-size: clamp(2.6rem, 9vw, 9rem); line-height: .9; color: var(--gold-text); }
.next svg { width: clamp(40px, 5vw, 72px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .25s ease; }
.next:hover svg { transform: translateX(8px); }
.mail-big { font-family: var(--f-display); font-size: clamp(2.2rem, 11vw, 12rem); line-height: .9; text-transform: uppercase; color: var(--gold-text); text-decoration: none; overflow-wrap: anywhere; }
.mail-big:hover { color: var(--fg); }
.facts { display: flex; flex-wrap: wrap; gap: 24px clamp(32px, 7vw, 112px); border-top: 1px solid var(--fg); padding-top: 20px; }
.facts > div { display: flex; flex-direction: column; gap: 6px; }
.facts .val { margin: 0;  font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.15; letter-spacing: .01em; text-transform: uppercase; text-decoration: none; }
.legal { max-width: 46rem; font-family: var(--f-ui); font-size: 1rem; line-height: 1.6; }
.legal h1 { margin-bottom: 24px; }
.legal h2 { margin: 2.2em 0 .5em; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1.1; }
.legal p, .legal ul { margin: 0 0 1em; }
.contact { display: flex; flex-direction: column; gap: 10px; }
.mail-wrap { margin: 0; }
.legal .note { padding: 14px 16px; border: 1px dashed var(--gold); font-size: .95rem; }

/* ---------- Bis 700 px ---------- */
@media (max-width: 700px) {
  .nav { display: none; }
  .burger { display: flex; }
  .logo { gap: 19px; min-height: 90px; }
  .logo-mark { width: 83px; height: 83px; }
  .logo-word { font-size: 21px; }
  .site-header { padding-top: 14px; padding-bottom: 14px; }
  .films { padding-left: 0; padding-right: 0; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .player { padding-left: 0; padding-right: 0; }
  .player-head, .credits { padding-left: 16px; padding-right: 16px; }
  .card-text { right: 76px; }
  .site-footer nav { gap: 0 20px; }
}
@media (hover: none) {
  .card .play-dot { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .bar.active .bar-fill { animation: none; transform: scaleX(1); }
}
