/* movid GmbH — eigene Website (Nachbau der Wix-Seite, Stand 2026-10) */
@import url("../fonts/fonts.css");

:root {
  --bg: #0f0f0f;
  --bg-2: #181818;
  --bg-3: #222;
  --text: #fff;
  --muted: #a8a8a8;
  --line: #333;
  --accent: #ff5900;
  --accent-soft: #ffac80;
  --head: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --head-h: 96px;
  --logo-h: 72px;
}
@media (max-width: 760px) { :root { --head-h: 76px; --logo-h: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 17px/1.7 var(--body);
}
img, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.1;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: .06em; }
h1 strong, h2 strong { font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.kicker {
  font: 500 .85rem/1 var(--head);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: #000; padding: 8px 12px; }

/* ---------- Kopfzeile ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s;
}
.site-head.solid, .site-head.always-solid { background: rgba(15,15,15,.94); backdrop-filter: blur(8px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); }
.site-head .logo { display: block; }
.site-head .logo img { height: var(--logo-h); width: auto; transform-origin: 0 0; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav a {
  color: var(--text);
  font: 400 .95rem/1 var(--head);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--text); }
.nav a.tff { color: var(--accent); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); font-size: 1.8rem; cursor: pointer; padding: 4px 8px; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: var(--head-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(15,15,15,.98);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Logo-Intro (nur Startseite, einmal pro Sitzung) ---------- */
html.intro body::before {
  content: ""; position: fixed; inset: 0; z-index: 49;
  background: var(--bg);
  transition: opacity 1s ease .2s;
}
html.intro.intro-go body::before { opacity: 0; }
html.intro .vid.full > .wrap { opacity: 0; transform: translateY(18px); }
html.intro-done .vid.full > .wrap { transition: opacity .8s, transform .8s; }
html.intro .site-head .nav, html.intro .menu-btn { opacity: 0; }
html.intro-done .site-head .nav, html.intro-done .menu-btn { transition: opacity .6s; }

/* ---------- Videoflächen ---------- */
.vid {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  background: #000 center/cover no-repeat;
}
.vid > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.vid::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 45%, rgba(15,15,15,.9) 100%);
}
.vid > .wrap { position: relative; z-index: 2; width: 100%; }

/* Raster-Optik über allen Videos (Stärke hier einstellen) */
.vid {
  --grid-size: 4px;                 /* Abstand der Rasterlinien */
  --grid-line: rgba(0,0,0,.42);     /* Deckkraft der Linien */
}
.vid::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px var(--grid-size)),
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px var(--grid-size));
}
/* oberstes Video heller */
.vid.full::after {
  background:
    linear-gradient(270deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.12) 55%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 70%, rgba(15,15,15,.85) 100%);
}
.vid.full h1, .vid.full .lead, .vid.full .kicker { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
/* Bienen-Video (Für Sie unterwegs): deutlich heller */
.vid.bright > video { filter: brightness(1.2) saturate(1.08); }
.vid.bright::after {
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 75%, rgba(15,15,15,.6) 100%);
}
.vid.bright h2, .vid.bright .kicker { text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.vid.bright .service { background: rgba(15,15,15,.8); }
/* Harvester (Slogan): etwas weniger hell als die Biene */
.vid.slogan.bright > video { filter: brightness(1.05); }
.vid.slogan.bright::after {
  background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.2) 50%, rgba(15,15,15,.7) 100%);
}

/* Hero-Text rechts, damit links das Video frei bleibt */
@media (min-width: 761px) {
  .vid.full > .wrap { text-align: right; }
  .vid.full .lead { margin-left: auto; }
  .vid.full .btns { justify-content: flex-end; }
}
@media (max-width: 760px) {
  .vid.full::after { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.2) 40%, rgba(15,15,15,.85) 100%); }
}
.vid.full { min-height: min(100vh, 980px); min-height: min(100svh, 980px); padding: calc(var(--head-h) + 44px) 0 80px; }
.vid.band { min-height: min(70vh, 760px); padding: 100px 0; }
.vid.page-top { min-height: min(52vh, 540px); padding: 140px 0 60px; align-items: end; }
.vid .lead { max-width: 640px; font-size: 1.12rem; color: #e8e8e8; }
.vid-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  background: rgba(0,0,0,.5); color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  width: 40px; height: 40px; cursor: pointer; font-size: .9rem;
}
.vid-toggle:hover { border-color: var(--accent); }

.slogan { text-align: center; }
.slogan h2 { font-size: clamp(2.4rem, 8vw, 6.4rem); line-height: 1; }
.slogan h2 span { display: block; }
.slogan h2 .small { font-size: .45em; letter-spacing: .4em; color: var(--accent); margin: .2em 0; }

/* ---------- Knöpfe ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-block;
  font: 500 .9rem/1 var(--head);
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #000;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn.ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.6); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: var(--muted); }

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.gallery button {
  padding: 0; border: 0; background: #000; cursor: zoom-in;
  aspect-ratio: 16 / 10; overflow: hidden;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; opacity: .92; }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.04); opacity: 1; }
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh;
}
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; height: auto; }
.lightbox p { color: var(--muted); text-align: center; margin: 10px 0 0; font-size: .9rem; }
.lightbox .close {
  position: fixed; top: 14px; right: 18px;
  background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer;
}

/* Leistungen */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.service {
  background: rgba(15,15,15,.72);
  border-top: 2px solid var(--accent);
  padding: 28px 22px;
  text-align: center;
}
.service img { width: 64px; height: 64px; margin: 0 auto 16px; filter: invert(1); }
.service p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .services { grid-template-columns: 1fr; } }

.statement { max-width: 820px; margin: 0 auto; text-align: center; font-size: 1.2rem; }

/* Tools for Film */
.tff-head { display: flex; gap: 24px; align-items: center; margin-bottom: 40px; }
.tff-head img { width: 84px; height: 84px; border-radius: 18px; flex: none; }
.tff-head h2 { margin-bottom: .2em; }
.tff-head p { color: var(--muted); margin: 0; max-width: 720px; }
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.app {
  display: flex; flex-direction: column;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color .2s, transform .2s;
}
.app:hover { border-color: var(--app, var(--accent)); color: var(--text); transform: translateY(-3px); }
.app img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; width: 100%; }
.app .txt { padding: 18px 20px 22px; }
.app .tag { font: 500 .72rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--app, var(--accent)); }
.app h3 { margin: .5em 0 .3em; text-transform: none; font-size: 1.35rem; letter-spacing: .02em; }
.app p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 520px) { .tff-head { flex-direction: column; align-items: flex-start; } }

/* Über uns / Kontakt */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.split img { width: 100%; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.partner { display: flex; gap: 22px; align-items: center; margin-top: 36px; padding: 22px; background: var(--bg-2); border-left: 2px solid var(--accent); }
.partner img { width: 96px; height: auto; flex: none; }
.partner p { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--bg-2); padding: 28px; border-top: 2px solid var(--accent); }
.card h3 { margin-bottom: .8em; }
.card p { margin: 0; color: #ddd; }
.card a { word-break: break-word; }
.map-link { display: inline-block; margin-top: 12px; font-size: .9rem; }

/* Rechtstexte */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; font-weight: 500; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal p, .legal li { color: #ddd; }
.legal .note { border-left: 2px solid var(--accent); padding: 10px 16px; background: var(--bg-2); color: var(--muted); font-size: .9rem; }

/* ---------- Fußzeile ---------- */
.site-foot { background: #0a0a0a; border-top: 1px solid var(--line); padding: 60px 0 30px; font-size: .92rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid h4 { font: 500 .8rem/1 var(--head); letter-spacing: .24em; text-transform: uppercase; color: var(--text); margin: 0 0 14px; }
.foot-grid p { margin: 0 0 .6em; }
.foot-grid a { color: var(--muted); }
.foot-grid a:hover { color: var(--accent); }
.foot-logo { width: 130px; margin-bottom: 14px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; font-size: .82rem; letter-spacing: .08em; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img, .app { transition: none; }
}

/* Sprachumschalter DE/EN */
.nav a.lang { font-size: .8rem; letter-spacing: .14em; border: 1px solid rgba(255,255,255,.4); padding: 6px 9px; }
.nav a.lang:hover { border-color: var(--accent); }

/* Parallax & Einblenden (Steuerung in site.js) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.vid > video { will-change: transform; }
