/* henricreates v1 — dunkel, Geist, eine Akzentfarbe */
:root {
  --bg: #0c0c0c;
  --surface: #161616;
  --line: #232323;
  --ink: #f2f2f2;
  --soft: #bdbdbd;
  --mute: #8c8c8c;
  --dim: #5e5e5e;
  --accent: #4d5dff;
  --ghost: #333333;
  --text: #b3b3b3;
  --accent-hover: #6b78ff;
  --serif: "Source Serif 4", Georgia, serif;
  --gutter: clamp(20px, 5.55vw, 80px);
  --max: 1440px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 "Geist", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--accent); color: #fff; border-radius: 999px; font-size: 14px; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.page-hero__actions { margin-top: 36px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mute);
}
.eyebrow { margin-bottom: 20px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 12, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 600; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.nav { display: flex; gap: 36px; }
.nav__link {
  font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--mute); transition: color .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.burger { display: none; width: 28px; height: 20px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span:first-child { top: 5px; } .burger span:last-child { bottom: 5px; }
.mobile-nav { display: none; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px;
  border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: transform .3s var(--ease), background .2s, border-color .2s;
}
.btn--light { background: var(--ink); color: var(--bg); }
.btn--light:hover { background: #fff; transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--ghost); }
.btn--ghost:hover { border-color: #555; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 5.5vw, 80px); padding-bottom: clamp(40px, 4.5vw, 64px); }
.reel-section { padding-bottom: 0; }
.hero__title {
  font-weight: 500; font-size: clamp(44px, 5.6vw, 80px); line-height: .98; letter-spacing: -.03em;
  max-width: 1100px; margin-bottom: 24px;
}
.hero__sub { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.45; color: var(--mute); max-width: 520px; margin-bottom: 28px; }

/* ---------- Showreel ---------- */
.reel { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.reel__video { width: 100%; height: 100%; object-fit: cover; }
.reel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, .5));
}
.reel__label { position: absolute; right: 28px; bottom: 26px; z-index: 2; color: #d0d0d0; }
.sound {
  position: absolute; left: 24px; bottom: 20px; z-index: 2;
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: rgba(20, 20, 20, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #e6e6e6; font-size: 11px;
  transition: background .2s;
}
.sound:hover { background: rgba(40, 40, 40, .75); }
.sound[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* ---------- Kunden-Logoband (wie Live-Seite) ----------
   Läuft endlos per requestAnimationFrame (js/main.js), nicht per CSS-Animation: die wurde teils angehalten/neu gestartet.
   Abstand über padding am Element, nicht über gap, sonst springt die Schleife. */
.clients { padding-top: clamp(64px, 6vw, 88px); padding-bottom: clamp(72px, 7vw, 104px); border-top: 1px solid var(--line); }
.clients--home { border-top: 0; padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(88px, 9vw, 136px); }
.clients__label {
  font-size: 14.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  color: #818588; text-align: center; margin: 0 auto clamp(24px, 3vw, 36px);
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 10%, #000 24%, #000 76%, rgba(0, 0, 0, .35) 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 10%, #000 24%, #000 76%, rgba(0, 0, 0, .35) 90%, transparent 100%);
}
.marquee__move { display: flex; width: max-content; will-change: transform; }
.marquee__track { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee__item {
  flex: none; display: flex; align-items: center; justify-content: center;
  height: clamp(72px, 8vw, 110px); padding: 0 clamp(40px, 4.25vw, 76px);
}
.marquee__item img {
  width: auto; height: auto; max-height: 46%; max-width: clamp(96px, 10.5vw, 145px);
  object-fit: contain; filter: brightness(0) invert(1); opacity: .85;
}
.marquee__item img[src*="0uxGgq"], .marquee__item img[src*="adobe"], .marquee__item img[src*="airalo"], .marquee__item img[src*="giessen"] { max-height: 58%; }
.marquee__item img[src*="saily"] { max-height: 52%; border-radius: 18%; filter: grayscale(1) contrast(1.1); }
.marquee__item img[src*="giessen"] { filter: grayscale(1) brightness(1.5); }

/* ---------- Projekte ---------- */
.work { padding-bottom: clamp(88px, 8vw, 120px); scroll-margin-top: 96px; border-top: 1px solid var(--line); padding-top: clamp(72px, 7vw, 104px); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.work__title { font-weight: 500; font-size: clamp(26px, 2.2vw, 32px); letter-spacing: -.02em; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 24px; }
.card { display: block; }
.card__media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--surface);
}
.card__media img, .card__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), opacity .4s;
}
.card__media video { opacity: 0; }
.card.is-playing .card__media video { opacity: 1; }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.02); }
.card__media::after {
  content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .4s;
}
.card:hover .card__media::after { opacity: .12; }
.card__caption { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 16px; }
.card__title { font-size: 17px; color: #e6e6e6; transition: color .2s; }
.card:hover .card__title { color: var(--ink); }
.card__meta { font-size: 11px; white-space: nowrap; }
.work__more { display: flex; justify-content: center; margin-top: 64px; }
.work--page { padding-top: clamp(64px, 7vw, 104px); }
.work__intro { margin-bottom: clamp(48px, 5vw, 72px); }
.work__h1 { font-weight: 500; font-size: clamp(44px, 5.5vw, 80px); line-height: 1; letter-spacing: -.03em; margin-bottom: 20px; }

/* ---------- CTA ---------- */
.cta { border-top: 1px solid var(--line); padding: clamp(104px, 11vw, 160px) 0; scroll-margin-top: 72px; }
.cta__title {
  font-weight: 500; font-size: clamp(40px, 5.55vw, 80px); line-height: 1; letter-spacing: -.03em; margin-bottom: 40px;
}
.cta__row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.mail { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; color: var(--soft); transition: color .2s; }
.mail svg { width: 16px; height: 16px; opacity: .7; }
.mail__text { border-bottom: 1px solid #333; padding-bottom: 2px; transition: border-color .2s; }
.mail:hover { color: var(--ink); }
.mail:hover .mail__text { border-color: var(--ink); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.footer__copy { font-size: 13px; color: var(--dim); }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a { font-size: 13px; color: var(--mute); transition: color .2s; }
.footer__links a:hover { color: var(--ink); }

/* ---------- Case Study: Video groß oben, darunter Verzeichnis links + Inhalt rechts ---------- */
.case { padding-top: 32px; }
.case__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.back { color: var(--soft); transition: color .2s; }
.back:hover { color: var(--ink); }
.case__meta { font-size: 11px; }
.case__title { font-weight: 500; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.03em; max-width: 1000px; margin-bottom: clamp(28px, 3vw, 44px); }
.player { background: #000; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.case__body { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: clamp(48px, 7vw, 120px); padding-top: clamp(64px, 6vw, 96px); }
.case__side { position: relative; }
.toc { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 1px solid var(--line); }
.toc a { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 15px; color: var(--dim); transition: color .25s; }
.toc a::before { content: ""; position: absolute; left: -17px; top: 8px; bottom: 8px; width: 1px; background: var(--accent); transform: scaleY(0); transition: transform .35s var(--ease); }
.toc a:hover { color: var(--soft); }
.toc a.is-active { color: var(--ink); }
.toc a.is-active::before { transform: scaleY(1); }
.toc__n { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--dim); }
.toc a.is-active .toc__n { color: var(--accent); }

.case__main { min-width: 0; max-width: 900px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.fact__k { font-size: 11px; color: var(--dim); margin-bottom: 8px; }
.fact__v { font-size: 15px; line-height: 1.45; color: var(--soft); }

/* Kapitel: Nummer, Frage als Überschrift, Antwort groß */
.chapter { padding-bottom: clamp(56px, 5.5vw, 88px); scroll-margin-top: 112px; }
.chapter__n { font-size: 11px; color: var(--accent); margin-bottom: 14px; }
.chapter__h { font-weight: 500; font-size: 22px; letter-spacing: -.01em; color: var(--ink); margin-bottom: 14px; }
.chapter__text { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; color: #cfcfcf; max-width: 720px; }
.chapter__quote {
  margin: 0; padding-left: clamp(20px, 2vw, 32px); border-left: 2px solid var(--accent);
  font-weight: 500; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.35; letter-spacing: -.01em; color: var(--ink); max-width: 760px;
}
.chapter__text + .chapter__text { margin-top: 1em; }
.case__fig { margin: 22px 0 0; }
.case__fig + .case__fig { margin-top: 12px; }
.case__fig .still { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.case__fig--two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Roter Faden unter dem Titel */
.case__lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--soft); max-width: 760px; margin: calc(-1 * clamp(12px, 1.4vw, 22px)) 0 clamp(28px, 3vw, 44px); }

/* Key design moments */
.moment { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.moment:last-child { padding-bottom: 0; }
.chapter__h + .moment { margin-top: 10px; }
.moment__n { font-size: 11px; color: var(--dim); margin-bottom: 10px; }
.moment__h { font-weight: 500; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -.01em; color: var(--ink); margin-bottom: 10px; }

/* Weitere Projekte (wie Live-Seite) */
.others { border-top: 1px solid var(--line); padding: clamp(56px, 5vw, 80px) 0 clamp(88px, 8vw, 120px); }
.others .eyebrow { margin-bottom: 32px; }
.others__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.other { display: block; }
.other__media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); margin-bottom: 18px; }
.other__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.other:hover .other__media img { transform: scale(1.03); }
.other__cat { font-size: 15px; color: var(--mute); margin-bottom: 4px; }
.other__title { font-size: 21px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); margin-bottom: 14px; }
.other__cta { font-size: 15px; color: var(--mute); transition: color .2s; }
.other:hover .other__cta { color: var(--ink); }

/* ---------- Seitenkopf wie auf der Live-Seite (About, Contact) ---------- */
.page-hero { padding-top: clamp(90px, 10vw, 144px); padding-bottom: clamp(36px, 4vw, 54px); }
.page-hero--center { text-align: center; }
.page-hero__title { font-weight: 500; font-size: clamp(44px, 5.6vw, 80px); letter-spacing: -.03em; line-height: .98; max-width: 900px; }
.page-hero--center .page-hero__title { margin-inline: auto; }
.page-hero__tagline { font-size: clamp(18px, 1.5vw, 22.5px); color: var(--mute); margin-top: 18px; }
.hl-accent { font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -.02em; font-size: 1.05em; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- About ---------- */
.about-bio { padding-top: clamp(45px, 5vw, 72px); padding-bottom: clamp(72px, 8vw, 126px); }
.about-bio__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(45px, 5vw, 90px); align-items: start; }
.about-bio__text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.about-bio__text p { font-size: 18px; line-height: 1.8; color: var(--text); max-width: 64ch; }
.about-bio__cta { margin-top: 18px; }
.about-bio__img-wrap { overflow: hidden; background: var(--surface); aspect-ratio: 1 / 1; }
.about-bio__img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%; }

/* ---------- Kontakt ---------- */
.contact-content { padding-top: clamp(45px, 5vw, 72px); padding-bottom: clamp(72px, 8vw, 126px); }
.contact-form { display: flex; flex-direction: column; gap: 36px; width: 100%; max-width: 960px; margin-inline: auto; padding-top: clamp(18px, 2vw, 36px); }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 27px 31px; }
.cf { display: flex; flex-direction: column; gap: 9px; }
.cf--full { grid-column: 1 / -1; }
.cf__label { font-size: 16px; font-weight: 500; color: var(--soft); letter-spacing: -.01em; }
.cf__input {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font-family: inherit; font-size: 16px; line-height: 1.4; padding: 15px 18px;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.cf__input:hover { border-color: #3a3a3a; }
.cf__input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77, 93, 255, .18); }
.cf__input::placeholder { color: #818588; }
textarea.cf__input { resize: vertical; min-height: 150px; }
select.cf__input { cursor: pointer; padding-right: 47px; }
select.cf__input:invalid { color: #818588; }
select.cf__input option { color: #111; background: #fff; }
.cf__select { position: relative; display: block; }
.cf__select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid #818588; border-bottom: 1.5px solid #818588; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.cf.is-invalid .cf__input { border-color: #e05a5a; }
.datepick { position: relative; }
.datepick__input { cursor: pointer; padding-right: 50px; }
.datepick__btn { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; color: #818588; display: grid; place-content: center; border-radius: 6px; }
.datepick__btn svg { width: 16px; height: 16px; }
.datepick__btn:hover { color: #fff; }
.datepick__pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: 300px; padding: 14px; background: #1b1b1b; border: 1px solid #383838; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.datepick__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.datepick__title { font-size: 17px; font-weight: 500; color: #fff; }
.datepick__nav { width: 30px; height: 30px; border-radius: 8px; color: var(--text); display: grid; place-content: center; font-size: 18px; }
.datepick__nav:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.datepick__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.datepick__wd { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #818588; text-align: center; padding: 4px 0 6px; }
.datepick__day { height: 34px; border-radius: 8px; font-size: 15.5px; color: var(--text); display: grid; place-content: center; }
.datepick__day:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.datepick__day--muted { color: #818588; opacity: .45; }
.datepick__day--today { box-shadow: inset 0 0 0 1px #383838; }
.datepick__day--selected, .datepick__day--selected:hover { background: var(--accent); color: #fff; }
.datepick__day:disabled { opacity: .25; cursor: default; background: none; }
.contact-form__consent { display: flex; align-items: center; gap: 13px; font-size: 14.5px; color: #818588; cursor: pointer; }
.contact-form__consent input { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; flex: none; margin: 0; border: 1px solid #383838; border-radius: 3px; background: transparent; cursor: pointer; display: grid; place-content: center; }
.contact-form__consent input::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--accent); transform: scale(0); transition: transform .15s ease; }
.contact-form__consent input:checked::before { transform: scale(1); }
.contact-form__consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #2c2c2c; }
.contact-form__consent.is-invalid, .contact-form__consent.is-invalid a { color: #e05a5a; }
.contact-form__consent.is-invalid input { border-color: #e05a5a; }
.contact-form__submit { align-self: stretch; justify-content: center; height: 58px; }
.contact-form.is-sending .contact-form__submit { opacity: .5; pointer-events: none; }
.form__status { text-align: center; font-size: 16px; color: var(--mute); min-height: 1em; }
.form__status.is-ok { color: #4fc27f; }
.form__status.is-error { color: #e05a5a; }

/* ---------- Impressum / Datenschutz ---------- */
.legal { max-width: 900px; padding-top: 80px; padding-bottom: 140px; color: var(--text); line-height: 1.65; }
.legal h1 { color: var(--ink); font-weight: 500; font-size: clamp(32px, 3.3vw, 48px); letter-spacing: -.02em; margin-bottom: 40px; }
.legal h2, .legal h3 { color: var(--ink); font-weight: 500; font-size: 20px; margin: 40px 0 12px; }
.legal p, .legal li { margin-bottom: 12px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal section, .legal .container { padding: 0; max-width: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Tablet / Handy ---------- */
@media (max-width: 1100px) {
  .case__body { grid-template-columns: 1fr; }
  .case__side { display: none; }
  .about-bio__grid { grid-template-columns: 1fr; gap: 36px; }
  .about-bio__img-wrap { max-width: 520px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .hero__title br, .cta__title br { display: none; }
  .burger { display: block; }
  .header.is-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .header.is-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav {
    display: flex; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 28px;
    max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .3s;
  }
  .header.is-open .mobile-nav { max-height: 300px; opacity: 1; }
  .mobile-nav a { font-size: 28px; font-weight: 500; letter-spacing: -.02em; padding: 4px 0; }
  .grid { grid-template-columns: 1fr; gap: 40px; }
  .card__caption { flex-direction: column; gap: 6px; }

  .reel__label { right: 16px; bottom: 16px; }
  .sound { left: 12px; bottom: 12px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .case__fig--two { grid-template-columns: 1fr; }
  .others__grid { grid-template-columns: 1fr; gap: 48px; }
  .case__top .case__meta { display: none; }
  .contact-form__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
.legal .legal { padding: 0; max-width: none; }
.legal__updated { font-size: 13px; color: var(--dim); margin: -28px 0 40px; }
