/* Kleß Allround Service — one film of photos, scrolled. */
@font-face { font-family: "Kanit"; font-style: italic; font-weight: 800; font-display: block; src: url("../assets/fonts/kanit-800-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Kanit"; font-weight: 600; font-display: swap; src: url("../assets/fonts/kanit-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../assets/fonts/barlow-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Kaushan Script"; font-weight: 400; font-display: block; src: url("../assets/fonts/kaushanscript-400-latin.woff2") format("woff2"); }

:root {
  --ink: #0b1220;
  --blue: #2f6fea;
  --blue-hi: #5b93ff;
  --paper: #f4f7fc;
  --muted: rgba(244, 247, 252, 0.72);
  --glass: rgba(14, 24, 44, 0.5);
  --line: rgba(244, 247, 252, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(16px, 3.6vw, 52px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 17px/1.55 "Barlow", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
p, h1, h2, ul, dl, dd { margin: 0; padding: 0; }
.scroll { height: 900vh; }

/* ---- Stage ---- */
.stage { position: fixed; inset: 0; overflow: hidden; }
#film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 18, 32, .82) 0%, rgba(11, 18, 32, .45) 38%, rgba(11, 18, 32, 0) 62%),
              linear-gradient(180deg, rgba(11, 18, 32, .7) 0%, rgba(11, 18, 32, 0) 22%, rgba(11, 18, 32, 0) 70%, rgba(11, 18, 32, .75) 100%); }
.progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(244, 247, 252, .08); z-index: 3; }
.progress i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--blue); }

/* ---- Header ---- */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad); }
.logo img { width: clamp(120px, 12vw, 176px); height: auto; display: block; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .5)); }
.pill { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font: 600 14px/1 "Barlow", sans-serif; }
.pill a { padding: 10px 14px; color: var(--muted); border-radius: 999px; transition: color .25s; }
.pill a:hover { color: var(--paper); }
.pill .pill__cta { background: var(--blue); color: #fff; padding: 10px 18px; box-shadow: 0 4px 18px rgba(47, 111, 234, .45); }

/* ---- Scenes ---- */
.scene { position: absolute; left: var(--pad); top: 50%; transform: translateY(-46%); width: min(920px, 100vw - 2 * var(--pad)); z-index: 2;
  display: flex; flex-direction: column; gap: 18px; pointer-events: none; }
.scene.is-on { pointer-events: auto; }
.scene > * { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.3s var(--ease), filter 1s var(--ease); }
.scene.is-on > * { opacity: 1; transform: none; filter: none; }
.scene.is-on > :nth-child(2) { transition-delay: .08s; } .scene.is-on > :nth-child(3) { transition-delay: .16s; }
.scene.is-on > :nth-child(4) { transition-delay: .24s; } .scene.is-on > :nth-child(5) { transition-delay: .32s; } .scene.is-on > :nth-child(6) { transition-delay: .4s; }
.kicker { display: flex; align-items: center; gap: 12px; font: 600 12px/1.3 "Barlow", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--blue-hi); }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.headline { font: italic 800 clamp(40px, 6vw, 84px)/.92 "Kanit", sans-serif; text-transform: uppercase; letter-spacing: -.005em; text-shadow: 0 6px 34px rgba(0, 0, 0, .45); }
.script { font: 400 clamp(24px, 2.6vw, 38px)/1.15 "Kaushan Script", cursive; color: var(--blue-hi); transform: rotate(-2deg); transform-origin: left; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.scene.is-on .script { transform: rotate(-2deg); }
.lead { max-width: 520px; color: #dfe6f2; font-size: clamp(16px, 1.25vw, 18px); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.note { max-width: 520px; color: var(--muted); font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn { display: inline-block; padding: 15px 26px; background: var(--blue); color: #fff; font: italic 800 15px/1 "Kanit", sans-serif; text-transform: uppercase; letter-spacing: .02em;
  transform: skewX(-10deg); box-shadow: 0 8px 28px rgba(47, 111, 234, .45); transition: background .25s; }
.btn:hover { background: var(--blue-hi); }
.btn--ghost { background: rgba(14, 24, 44, .4); border: 1px solid var(--line); box-shadow: none; font: 600 15px/1 "Barlow", sans-serif; text-transform: none; transform: none; border-radius: 999px; padding: 14px 22px; }
.cards { list-style: none; display: grid; gap: 12px; margin-top: 4px; max-width: 560px; }
.cards li { display: grid; gap: 4px; padding: 18px 22px 18px 72px; position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.cards li::before { content: ""; position: absolute; left: 20px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border: 1.5px solid var(--blue-hi); border-radius: 9px;
  background: radial-gradient(circle, var(--blue-hi) 0 3px, transparent 4px); }
.cards b { font: italic 800 18px/1.15 "Kanit", sans-serif; text-transform: uppercase; }
.cards span { color: var(--muted); font-size: 15px; }
.contact { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 16px; }
.contact dt { font-weight: 600; } .contact dd { color: #dfe6f2; }

/* ---- Hint, dots ---- */
.hint { position: absolute; right: var(--pad); bottom: 26px; z-index: 2; font: 600 12px/1 "Barlow", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); transition: opacity .5s; }
.hint::after { content: ""; display: block; width: 1px; height: 38px; margin: 10px auto 0; background: linear-gradient(var(--blue-hi), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.dots { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dots li { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(244, 247, 252, .5); transition: background .4s, transform .4s, border-color .4s; }
.dots li.is-on { background: var(--blue); border-color: var(--blue); transform: scale(1.35); box-shadow: 0 0 10px var(--blue); }

/* ---- Preloader ---- */
.pre { position: fixed; inset: 0; z-index: 10; display: grid; place-content: center; justify-items: center; gap: 26px; background: var(--ink); transition: opacity 1s var(--ease), visibility 0s linear 1s; }
.pre.is-done { opacity: 0; visibility: hidden; }
.pre__logo { width: min(340px, 70vw); height: auto; animation: rise 1.2s var(--ease) both; }
.pre__bar { width: min(280px, 60vw); height: 2px; background: rgba(244, 247, 252, .12); overflow: hidden; border-radius: 2px; }
.pre__bar i { display: block; height: 100%; background: var(--blue); width: 0; box-shadow: 0 0 10px var(--blue); transition: width .3s; }
.pre__count { font: 600 12px/1 "Barlow", sans-serif; letter-spacing: .3em; color: var(--muted); font-variant-numeric: tabular-nums; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.97); } }

@media (max-width: 760px) {
  .pill a:not(.pill__cta) { display: none; }
  .shade { background: linear-gradient(180deg, rgba(11, 18, 32, .7) 0%, rgba(11, 18, 32, .15) 30%, rgba(11, 18, 32, .55) 60%, rgba(11, 18, 32, .92) 100%); }
  .scene { top: auto; bottom: 28px; transform: none; gap: 14px; }
  .cards li { padding: 14px 16px 14px 60px; } .cards li::before { left: 14px; width: 30px; height: 30px; margin-top: -15px; }
  .cards b { font-size: 15px; } .dots, .hint { display: none; }
  .kicker { font-size: 11px; letter-spacing: .12em; align-items: flex-start; } .kicker::before { width: 18px; margin-top: .6em; }
}
@media (prefers-reduced-motion: reduce) { .scene > * { transition-duration: 1ms; filter: none; } .hint::after { animation: none; } }
/* ?rec (recordings made frame by frame): film.js moves these itself, on the recording's clock */
.rec .scene > *, .rec .pre, .rec .pre__logo, .rec .pre__bar i, .rec .dots li, .rec .hint { transition: none !important; animation: none !important; }
.rec .hint::after { animation: none; transform: scaleY(1); }

/* ---- Rechtliches (Impressum, Datenschutz, Wechsel zur einfachen Ansicht) ---- */
.legal { position: absolute; left: var(--pad); bottom: 14px; z-index: 4; display: flex; gap: 18px; font: 600 12px/1 "Barlow", sans-serif; letter-spacing: .04em; color: var(--muted); }
.legal a { opacity: .75; transition: opacity .2s, color .2s; padding: 6px 0; }
.legal a:hover, .legal a:focus-visible { opacity: 1; color: var(--paper); }

/* ---- Anfrage-Formular (letzte Szene) ---- */
.scene--contact { width: min(1120px, 100vw - 2 * var(--pad) - 36px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); column-gap: clamp(28px, 4vw, 64px); row-gap: 14px; align-items: start; }
.scene--contact > :not(.kform) { grid-column: 1; }
.scene--contact .kform { grid-column: 2; grid-row: 1 / span 6; align-self: center; }
.kform { display: grid; gap: 10px; padding: 20px 22px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(10, 18, 34, .62);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 14px; }
.kform fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.kform legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.kform .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kform .chip { position: relative; }
.kform .chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kform .chip span { display: block; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12.5px; line-height: 1.2; transition: background .2s, border-color .2s, color .2s; }
.kform .chip:hover span { border-color: rgba(244, 247, 252, .4); }
.kform .chip input:focus-visible + span { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
.kform .chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.kform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kform label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; }
.kform input[type=text], .kform textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(244, 247, 252, .07); color: var(--paper); font: 400 14px/1.3 "Barlow", sans-serif; }
.kform textarea { resize: vertical; min-height: 54px; }
.kform input[type=text]:focus, .kform textarea:focus { outline: 2px solid var(--blue-hi); outline-offset: 1px; background: rgba(244, 247, 252, .1); }
.kform ::placeholder { color: rgba(244, 247, 252, .42); }
.ferr { color: #ffb4b4; font-size: 13px; }
.btn--send { width: 100%; border: 0; cursor: pointer; transform: none; border-radius: 10px; padding: 14px 18px; }
.fhint { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.fhint a { text-decoration: underline; }
@media (max-height: 760px) { .scene--contact { row-gap: 8px; } .scene--contact .lead { font-size: 15px; } .kform { padding: 14px 18px 14px; gap: 8px; } .kform textarea { min-height: 44px; } }
@media (max-width: 980px) { .scene--contact { grid-template-columns: 1fr; } .scene--contact .kform { grid-column: 1; grid-row: auto; } }
