/* MONKEY MEDIA – statische Website · CI: monochrom, Montserrat (Ersatz für Gotham), harte Kanten */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  --mm-black: #000000;
  --mm-white: #ffffff;
  --mm-ink-900: #111111;
  --mm-graphite-700: #333333;
  --mm-steel-500: #777777;
  --mm-silver-300: #cccccc;
  --mm-fog-100: #f2f2f2;
  --font: "Montserrat", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--mm-black); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mm-white);
  color: var(--mm-graphite-700);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mm-black); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--mm-white); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--mm-white); color: var(--mm-black);
  padding: 10px 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Kopf */
.site-header {
  background: var(--mm-black); color: var(--mm-white);
  height: var(--header-h); transition: height .35s ease;
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: auto; height: 52px; }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 12px 0; border-bottom: 1px solid transparent;
}
.nav a { position: relative; border-bottom: 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Hero mit Showreel */
.hero {
  position: relative; background: var(--mm-black); color: var(--mm-white);
  height: calc(100svh - var(--header-h)); min-height: 520px; max-height: 1000px;
  overflow: hidden;
}
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  /* Abdunklung nur hinter dem Text, rechts bleibt das Video fast im Original */
  background: linear-gradient(to right, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .3) 35%, rgba(0, 0, 0, 0) 65%);
}
.hero__content {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(32px, 8vh, 88px);
}
.hero__title { display: inline-block; margin-bottom: 32px; }
.hero h1 {
  margin: 0; color: var(--mm-white);
  font-weight: 800; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(34px, 7vw, 96px); line-height: 1.02;
}
/* Leistungszeile: exakt so breit wie „HAUTE COUTURE“, links und rechts bündig */
.hero__services {
  display: flex; justify-content: space-between; align-items: center;
  margin: 18px 0 0; padding: 0 .02em 0 .06em;
  font-size: clamp(10px, 1.05vw, 15px); font-weight: 600; line-height: 1;
  letter-spacing: .2em; text-transform: uppercase;
}
.hero__services span { margin-right: -.2em; }
.hero__services span + span::before { content: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font: 600 14px/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid currentColor; border-radius: 0; cursor: pointer;
}
.btn--light { background: var(--mm-white); color: var(--mm-black); border-color: var(--mm-white); }
.btn--light:hover { background: transparent; color: var(--mm-white); }
.btn--ghost { background: transparent; color: var(--mm-white); }
.btn--ghost:hover { background: var(--mm-white); color: var(--mm-black); }
.btn--dark { background: var(--mm-black); color: var(--mm-white); border-color: var(--mm-black); }
.btn--dark:hover { background: var(--mm-white); color: var(--mm-black); }

/* Inhalt */
.section { padding: clamp(56px, 10vw, 120px) 0; }
.section--fog { background: var(--mm-fog-100); }
.section--dark { background: var(--mm-black); color: var(--mm-silver-300); }
h1 { overflow-wrap: break-word; hyphens: manual; }
h2, h3 { overflow-wrap: break-word; hyphens: auto; }
h2 {
  margin: 0 0 24px; color: var(--mm-black);
  font-weight: 800; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(26px, 3.6vw, 42px); line-height: 1.1;
}
.section--dark h2 { color: var(--mm-white); }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.55; max-width: 46ch; color: var(--mm-graphite-700); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 48px; }
.service { border-top: 2px solid var(--mm-black); padding-top: 20px; }
.service h3 {
  margin: 0 0 10px; color: var(--mm-black); font-size: 18px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.service p { margin: 0; }

.contact-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.contact-strip p { margin: 0; font-size: 18px; }
.contact-strip p a { color: var(--mm-white); }

/* Textseiten */
.page { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px); }
.page h1 {
  margin: 0 0 32px; color: var(--mm-black);
  font-weight: 800; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(30px, 5vw, 56px); line-height: 1.05;
}
.prose { max-width: 72ch; }
.prose h2 { font-size: 20px; letter-spacing: .04em; margin: 40px 0 12px; }
.prose h3 { font-size: 16px; color: var(--mm-black); margin: 24px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose address { font-style: normal; margin-bottom: 14px; }

/* Formular */
.form { display: grid; gap: 20px; max-width: 720px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--mm-black); }
.field .req { color: var(--mm-steel-500); }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.5 var(--font); color: var(--mm-black);
  background: var(--mm-white); border: 1px solid var(--mm-silver-300); border-radius: 0;
  padding: 12px 14px; min-height: 48px;
}
.field input:focus, .field textarea:focus { border-color: var(--mm-black); outline: 1px solid var(--mm-black); outline-offset: 0; }
.field textarea { min-height: 180px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--mm-steel-500); margin: 0; }
.contact-direct { margin: 0 0 40px; font-size: 18px; }
.contact-direct a { color: var(--mm-black); font-weight: 600; }
.notice { border-left: 3px solid var(--mm-black); padding: 12px 16px; background: var(--mm-fog-100); margin-bottom: 28px; }

/* Fuß */
.site-footer { background: var(--mm-black); color: var(--mm-silver-300); padding: 48px 0 32px; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer strong { color: var(--mm-white); font-weight: 600; }
.site-footer a { color: var(--mm-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--mm-graphite-700); padding-top: 20px; color: var(--mm-steel-500); }

@media (max-width: 760px) {
  .hero__services {
    display: grid; grid-template-columns: auto auto auto; justify-content: space-between;
    row-gap: 10px; font-size: 11px; letter-spacing: .16em;
  }
  .hero__services span:nth-child(3n) { justify-self: end; margin-right: -.16em; }
  .hero::after { background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .3) 35%, rgba(0, 0, 0, 0) 65%); }
  :root { --header-h: 64px; }
  .brand img { height: 36px; }
  .nav a { font-size: 12px; letter-spacing: .1em; }
  .grid-3 { grid-template-columns: 1fr; margin-top: 32px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .nav { gap: 14px; }
  .brand img { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ---------- Dezente Bewegung ---------- */
.site-header.is-compact { height: 56px; }
.site-header .brand img { transition: height .35s ease; }
.site-header.is-compact .brand img { height: 38px; }

/* Links im Text und im Fuß: Unterstreichung läuft von links ein */
.site-footer a, .contact-direct a, .prose a:not(.btn), .contact-strip p a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size .35s ease;
}
.contact-direct a, .prose a:not(.btn), .contact-strip p a { background-size: 100% 1px; }
.site-footer a:hover { background-size: 100% 1px; }
.contact-direct a:hover, .prose a:not(.btn):hover, .contact-strip p a:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Einstieg im Hero */
@keyframes mm-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1, .hero__services, .hero__actions { animation: mm-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 { animation-delay: .15s; }
.hero__services { animation-delay: .45s; }
.hero__actions { animation-delay: .7s; }
/* Text wartet, bis das Logo im Showreel verschwindet (Steuerung in main.js) */
.hero-wait .hero h1, .hero-wait .hero__services, .hero-wait .hero__actions { animation-play-state: paused; }

/* Kacheln beim Scrollen */
.reveal-on [data-reveal] .service { opacity: 0; transform: translateY(16px); border-top-color: transparent; position: relative;
  transition: opacity .7s ease, transform .7s ease; }
.reveal-on [data-reveal] .service::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--mm-black);
  transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.reveal-on [data-reveal].is-visible .service { opacity: 1; transform: none; }
.reveal-on [data-reveal].is-visible .service::before { transform: scaleX(1); }
.reveal-on [data-reveal] .service:nth-child(2) { transition-delay: .08s; }
.reveal-on [data-reveal] .service:nth-child(2)::before { transition-delay: .08s; }
.reveal-on [data-reveal] .service:nth-child(3) { transition-delay: .16s; }
.reveal-on [data-reveal] .service:nth-child(3)::before { transition-delay: .16s; }
.reveal-on [data-reveal] .service:nth-child(4) { transition-delay: .24s; }
.reveal-on [data-reveal] .service:nth-child(4)::before { transition-delay: .24s; }
.reveal-on [data-reveal] .service:nth-child(5) { transition-delay: .32s; }
.reveal-on [data-reveal] .service:nth-child(5)::before { transition-delay: .32s; }
.reveal-on [data-reveal] .service:nth-child(6) { transition-delay: .40s; }
.reveal-on [data-reveal] .service:nth-child(6)::before { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero__services, .hero__actions { animation: none; }
  .reveal-on [data-reveal] .service { opacity: 1; transform: none; border-top-color: var(--mm-black); transition: none; }
  .reveal-on [data-reveal] .service::before { display: none; }
  .site-header, .site-header .brand img { transition: none; }
}

/* ---------- Übergänge ---------- */
/* Sprung zu „Leistungen“: Abstand für die feste Kopfzeile */
#leistungen { scroll-margin-top: 56px; }

/* Seitenwechsel: weiche Überblendung, Kopfzeile bleibt stehen (Chrome, Edge, Safari 18.2+) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: mm-fade-out .25s ease both; }
::view-transition-new(root) { animation: mm-fade-in .45s ease .1s both; }
@keyframes mm-fade-out { to { opacity: 0; } }
@keyframes mm-fade-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
}
