/* ============================================================
   GE — STARTSEITE (Homepage)
   Baut auf styles.css (Brand-Tokens) auf, im Styleguide-Look:
   schwarz, kinoreif, Barlow Condensed, Warn-Chevron.
   ============================================================ */

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-power: cubic-bezier(0.7, 0, 0.2, 1);
}

body { background: var(--c-bg-deep, #0A0A0B); }

/* ============ NAV (Startseite — dunkel/kinoreif) ============ */
.home .nav {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s, backdrop-filter .4s;
}
.home .nav-inner { height: 104px; transition: height .4s var(--ease-out); }
.home .nav-logo img { height: 60px; width: auto; transition: height .4s var(--ease-out); }
.home .nav-links { gap: 30px; font-weight: 600; font-size: 13.5px; letter-spacing: .12em; }
.home .nav-links a { color: rgba(255,255,255,.82); padding: 6px 0; }
.home .nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--c-primary); transition: right .28s var(--ease-out);
}
.home .nav-links a:hover { color: #fff; }
.home .nav-links a:hover::after { right: 0; }

/* scrolled state — verdichtet zu dunkler Leiste */
.home .nav.scrolled {
  background: rgba(10,10,11,.82);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: rgba(255,255,255,.1);
}
.home .nav.scrolled .nav-inner { height: 80px; }
.home .nav.scrolled .nav-logo img { height: 48px; }

/* gelbe Chevron-Kante an der gescrollten Leiste */
.home .nav.scrolled::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: repeating-linear-gradient(135deg, var(--c-primary) 0 14px, #000 14px 28px);
  background-size: 39.6px 100%; opacity: .9;
}

@media (max-width: 900px) {
  .home .nav-cta .btn { padding: 12px 18px; font-size: 13px; }
}

/* ---------- progress + nav already from styles.css; tweak for dark home ---------- */
.home-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--c-primary); z-index: 200; width: 0; }

/* ============ HERO ============ */
/* Die Fläche trägt das Markenmuster (.brand-fill-hero aus styles.css) —
   deshalb hier bewusst KEINE eigene background-Regel, die es überschreiben
   würde. Die Höhe hängt nicht mehr an einem Bild: 100vh mit min-height. */
.hv {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  /* Unten folgt das gelbe USP-Band — eine gelbe Kante ginge darin unter. */
  border-bottom: 0;
}

/* ---- Motive im Hintergrund ----
   Liegen unter allem anderen (Raster 0-1, Abdunklung 2, Text 3, Rahmen 4).
   Ohne gepflegtes Motiv gibt es diese Ebenen gar nicht — dann bleibt das
   Markenmuster von .brand-fill-hero stehen. */
.hv-media { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hv-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 9s ease-out;
}
.hv-slide.on { opacity: 1; transform: scale(1); }

/* Abdunklung über dem Motiv — ohne sie steht weiße Schrift auf hellem Himmel.
   Oben stärker (die Navigation liegt transparent darüber), unten stärker
   (Faktenzeile), in der Mitte offen, damit das Motiv sichtbar bleibt. */
.hv-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 32%, rgba(0,0,0,.35) 62%, rgba(0,0,0,.82) 100%),
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 62%);
}

@media (prefers-reduced-motion: reduce) {
  .hv-slide { transition: opacity .4s ease; transform: none; }
  .hv-slide.on { transform: none; }
}

/* chevron frame — snap in fast, then march */
.hv-chev {
  position: absolute; left: 0; right: 0; z-index: 4; height: 18px;
  background: repeating-linear-gradient(135deg, var(--c-primary) 0 26px, #000 26px 52px);
  background-size: 73.5px 100%;
  transform: scaleY(0);
  animation: hv-chev-snap .45s var(--ease-power) forwards, hv-march 2.6s linear .45s infinite;
}
/* Nur oben: unten grenzt der Hero direkt an das gelbe USP-Band. */
.hv-chev.top { top: 0; transform-origin: top; }

@keyframes hv-chev-snap { to { transform: scaleY(1); } }
@keyframes hv-march { from { background-position: 0 0; } to { background-position: 73.5px 0; } }

/* BÄM flash overlay — fired by JS on every word slam (dezent) */
.hv-flash {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 80% at 18% 50%, rgba(250,223,0,.3), rgba(250,223,0,0) 55%);
  mix-blend-mode: screen;
}
.hv-flash.fire { animation: hv-flash .38s ease-out; }
@keyframes hv-flash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- caption track (timed Einblendungen, ~10s loop) ---------- */
.hv-stage {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: center;
  /* feste Reserve oben (Nav) + unten (Meta-Zeile), zentriert dazwischen */
  padding: clamp(120px, 16vh, 168px) var(--gutter) clamp(96px, 13vh, 132px);
  max-width: var(--container); margin: 0 auto; left: 0; right: 0;
  will-change: transform;
}
.hv-stage.shake { animation: hv-shake .4s cubic-bezier(.36,.07,.19,.97); }
@keyframes hv-shake {
  0%,100% { transform: translate(0,0); }
  15% { transform: translate(-7px, 3px); }
  30% { transform: translate(6px, -4px); }
  45% { transform: translate(-5px, 2px); }
  60% { transform: translate(4px, 3px); }
  75% { transform: translate(-3px, -2px); }
}
.hv-kicker {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(12px,1.3vw,15px);
  letter-spacing: .32em; text-transform: uppercase; color: var(--c-primary);
  display: flex; align-items: center; gap: 14px; margin-bottom: clamp(16px, 2.6vh, 26px);
  opacity: 0; transform: translateY(16px); animation: hv-rise .9s var(--ease-out) .4s forwards;
}
.hv-kicker::before { content: ""; width: 38px; height: 4px; background: var(--c-primary); }

/* caption lines: each line SLAMS in (scale overshoot + blur snap) */
.hv-caption {
  position: relative;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  line-height: .8; letter-spacing: -.03em;
  /* skaliert mit Breite UND Höhe — bleibt auf flachen Laptops im Rahmen */
  font-size: clamp(56px, min(13vw, 21vh), 232px);
  min-height: 1.12em;
}
.hv-line {
  position: absolute; left: 0; top: 0;
  opacity: 0; transform-origin: left center;
  white-space: nowrap;
}
.hv-line.on { animation: hv-slam .5s cubic-bezier(.2,.9,.25,1) forwards; }
@keyframes hv-slam {
  0%   { opacity: 0; transform: scale(1.14); filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
.hv-line .y { color: var(--c-primary); }
.hv-line .outline { color: transparent; -webkit-text-stroke: 2px #fff; }

.hv-sub {
  margin-top: clamp(16px, 2.8vh, 30px); max-width: 46ch;
  font-size: clamp(16px,1.5vw,21px); color: rgba(255,255,255,.82);
  opacity: 0; transform: translateY(16px); animation: hv-rise .9s var(--ease-out) 1.1s forwards;
  position: relative; min-height: 1.5em;
}
.hv-subline {
  display: block; position: absolute; left: 0; top: 0; right: 0;
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.hv-subline.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hv-subline { transition: none; }
}
.hv-cta { margin-top: clamp(20px, 3.2vh, 36px); display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; transform: translateY(16px); animation: hv-rise .9s var(--ease-out) 1.35s forwards; }
@keyframes hv-rise { to { opacity: 1; transform: none; } }

/* Hinweis auf den Beitrag, aus dem das gerade sichtbare Motiv stammt.
   Bewusst zurückhaltend: er steht neben dem Hauptknopf und darf ihm nicht die
   Aufmerksamkeit nehmen. [hidden] greift, sobald ein Motiv ohne Beitrag läuft —
   deshalb das display:none, das die Flex-Ausrichtung sonst überschriebe. */
.hv-post {
  margin-top: clamp(14px, 2.2vh, 22px);
  display: inline-flex; align-items: center; gap: 10px;
  max-width: min(520px, 90vw);
  color: rgba(255,255,255,.72); text-decoration: none;
  font-size: 14px; line-height: 1.35;
  border-left: 2px solid var(--c-primary); padding-left: 12px;
  transition: color .25s ease;
}
.hv-post[hidden] { display: none; }
.hv-post:hover, .hv-post:focus-visible { color: #fff; }
.hv-post .hv-post-label {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--c-primary);
  white-space: nowrap;
}
.hv-post .hv-post-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-post .arrow { width: 16px; flex: 0 0 auto; transition: transform .25s ease; }
.hv-post:hover .arrow { transform: translateX(4px); }
@media (max-width: 560px) {
  .hv-post .hv-post-label { display: none; }
}

/* bottom meta row */
.hv-meta {
  position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: 30px;
  display: flex; align-items: flex-end; justify-content: flex-end;
}
.hv-tag { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hv-tag b { color: var(--c-primary); }

/* Faktenzeile: steht links in derselben Leiste, die Meta-Zeile bleibt rechts.
   margin-right:auto statt space-between — so sitzt die Meta-Zeile auch dann
   rechts, wenn es gar keine Fakten gibt. */
.hv-facts {
  margin: 0 auto 0 0;
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 4px clamp(22px, 3.4vw, 54px);
}
.hv-facts > div { min-width: 0; }
.hv-facts dd {
  margin: 0;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(26px, 3vw, 44px); line-height: 1;
  font-variant-numeric: tabular-nums; color: #fff;
}
.hv-facts dd .u { color: var(--c-primary); font-size: .52em; vertical-align: super; margin-left: 2px; }
.hv-facts dt {
  margin-top: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.58);
}

/* Schmal: die Meta-Zeile würde neben den Fakten zerdrückt — sie tritt zurück. */
@media (max-width: 700px) {
  .hv-meta { flex-wrap: wrap; gap: 12px; }
  .hv-facts { gap: 4px 20px; }
  .hv-facts dd { font-size: clamp(22px, 7vw, 30px); }
  .hv-facts:not(:only-child) + .hv-tag { display: none; }
}

@media (max-width: 760px) {
  .hv-meta { left: 20px; right: 20px; }
}
/* Hero-Headline auf schmalen Viewports verkleinern, damit die längste
   Zeile ("Aus Leidenschaft.") einzeilig sichtbar bleibt (nicht abgeschnitten). */
@media (max-width: 560px) {
  .hv-caption { font-size: clamp(30px, 10.5vw, 60px); }
}
@media (max-width: 380px) {
  .hv-caption { font-size: clamp(26px, 9.2vw, 44px); }
}
@media (prefers-reduced-motion: reduce) {
  .hv-chev, .hv-stage.shake, .hv-flash.fire { animation: none; }
  .hv-chev { transform: scaleY(1); }
  .hv-line { opacity: 0; }
  .hv-line.on { animation: none; opacity: 1; }
}

/* ============ SECTION SHELL (dark home) ============ */
.home section { position: relative; }
.home .sec { padding: clamp(90px, 12vw, 168px) 0; }
.home .sec.light { background: #fff; color: var(--c-text); }
.home .sec.ink { background: #0A0A0B; color: #fff; }
.home .sec.graphite { background: #151719; color: #fff; }

/* Einblendungen beim Scrollen.

   Die unsichtbare Startstellung hängt an der Klasse `js` am <html>, die ein
   Inline-Skript im Kopf setzt (Base.astro). Vorher stand sie unbedingt hier,
   und sichtbar wurde ein Abschnitt allein durch `.in` aus homepage.js —
   gemessen am 01.10.2026 trug im ausgelieferten HTML kein einziges `.reveal`
   diese Klasse. Mit abgeschaltetem oder geblocktem JavaScript blieb damit
   unter dem Hero nichts übrig, auf /karriere.html samt Bewerbungsformular.
   Jetzt ist sichtbar der Vorgabefall und die Bewegung die Zugabe. */
.js .reveal { opacity: 0; transform: translateY(38px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ MANIFEST / claim statement ============ */
.manifest { text-align: left; }
.manifest .eyebrow { color: var(--c-primary); }
.manifest .eyebrow::before { background: var(--c-primary); }
.manifest h2 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 7vw, 116px); line-height: .9; letter-spacing: -.02em;
  margin: 26px 0 0;
}
.manifest h2 .y { color: var(--c-primary); }
.manifest h2 .o { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.manifest p { margin: 30px 0 0; max-width: 62ch; font-size: clamp(17px,1.5vw,20px); color: rgba(255,255,255,.7); }

/* ============ LEISTUNGEN (verbs) ============ */
.lz-grid { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.lz {
  grid-column: span 4; padding: 40px 30px; position: relative;
  border-bottom: 1px solid rgba(255,255,255,.12); border-right: 1px solid rgba(255,255,255,.12);
  transition: background .3s; min-height: 300px; display: flex; flex-direction: column;
}
.lz:hover { background: var(--c-primary); color: #000; }
.lz:hover .lz-n, .lz:hover p { color: rgba(0,0,0,.7); }
.lz:hover .lz-arrow { background: #000; color: var(--c-primary); }
.lz-n { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--c-primary); }
.lz h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(26px,2.6vw,38px); line-height: .92; margin: 14px 0 0; }
.lz p { margin: 12px 0 0; color: rgba(255,255,255,.6); font-size: 14.5px; flex: 1; }
.lz-arrow { margin-top: 22px; width: 42px; height: 42px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; transition: transform .3s, background .3s; }
.lz:hover .lz-arrow { transform: translateX(4px); }
@media (max-width: 900px) { .lz { grid-column: span 6; } }
@media (max-width: 560px) { .lz { grid-column: span 12; } }

/* ============ COUNT STRIP ============ */
.count-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.count { padding: 8px 24px 0; border-right: 1px solid rgba(255,255,255,.12); }
.count:last-child { border-right: none; }
.count .v { font-family: var(--font-display); font-weight: 900; font-size: clamp(48px,6vw,92px); line-height: 1; letter-spacing: -.01em; }
.count .v .u { color: var(--c-primary); font-size: .5em; vertical-align: super; margin-left: 2px; }
.count .l { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 10px; }
@media (max-width: 760px) { .count-strip { grid-template-columns: 1fr 1fr; } .count { border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 24px; } }

/* ============ BRANCHEN ribbon ============ */
.branch-ribbon { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.branch-ribbon span { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(15px,1.6vw,20px); padding: 10px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 3px; color: rgba(255,255,255,.65); transition: all .25s; }
.branch-ribbon span:hover { background: var(--c-primary); color: #000; border-color: var(--c-primary); }

/* ============ CTA band ============ */
.home-cta { background: var(--c-primary); color: #000; }
.home-cta .row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.home-cta h2 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(34px,5vw,80px); line-height: .86; letter-spacing: -.02em; margin: 0; }
@media (max-width: 760px) { .home-cta .row { grid-template-columns: 1fr; gap: 24px; } }

/* dark footer reuse from styles.css .foot */

/* ============ USP BANNER (Raupenkran-Flotte) ============ */
.usp {
  position: relative;
  background: var(--c-primary);
  color: #000;
  overflow: hidden;
}
/* Die Bandhöhe entsteht allein aus Schrift + Polsterung. Sie ist bewusst
   knapp gehalten: etwas mehr als der Schriftsatz, damit Rand bleibt, aber
   kein Block, der eine eigene Sektion vortäuscht. */
.usp .usp-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(14px, 1.6vw, 22px) 0;
}
.usp h2 {
  margin: 0; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, 4.6vw, 72px); line-height: .9; letter-spacing: -.02em;
}
.usp h2 .stroke { color: var(--c-primary); -webkit-text-stroke: 2px #000; }
.usp .cta {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase; color: #000; text-decoration: none;
  border-bottom: 3px solid #000; padding-bottom: 4px; transition: gap .25s;
}
.usp .cta:hover { gap: 16px; }
.usp .cta svg { width: 20px; height: 13px; }
/* ghost watermark hook */
.usp .ghost {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 900; font-size: 18vw; line-height: 1;
  color: rgba(0,0,0,.06); pointer-events: none; user-select: none; white-space: nowrap;
}
@media (max-width: 880px) {
  .usp .usp-inner { grid-template-columns: 1fr; gap: 14px; padding: 18px 0; }
  .usp .cta { justify-self: start; }
}


/* ============ NEUES AUS DEM BETRIEB (Startseite) ============
   Drei Blogkarten mit echtem Link. Die Karte selbst kommt aus site.css. */
.neues-kopf {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.neues-kopf h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: .9;
  letter-spacing: -.02em;
  margin: 14px 0 0;
  color: #fff;
}
.neues-kopf h2 .y { color: var(--c-primary); }
.neues-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .neues-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .neues-grid { grid-template-columns: 1fr; } }
