/* ============================================================
   Variante 4 · Image Hero
   Vollformatiges Stockbild als Background mit Brand-Tint-Overlay
   Text-Hierarchie ueber dem Bild, Geist als Display
   ============================================================ */

.hero-4 {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  font-family: 'Geist', system-ui, sans-serif;
  color: var(--color-bg-light);
  /* KEIN isolation: isolate -> Drucker im body kann zwischen
     Logo (z=4) und Container (z=100) stacken */

  /* Echtes Logo-Gruen (Pixel direkt aus dem Logo-PNG extrahiert) */
  --v4-green: #024802;
}

/* Hintergrundbild — entsaettigt + leicht aufgehellt, kein Grayscale.
   Parallax-Y wird per JS aus der Scroll-Position gesetzt (subtiler Tiefeneffekt). */
.hero-4__bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg, url('../img/p_31336881_nozzle.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  filter: saturate(0.35) brightness(0.95) contrast(0.95);
  transform: scale(1.08) translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

/* Brand-Tint via mix-blend-mode (multiply) */
.hero-4__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--v4-green);
  mix-blend-mode: multiply;
  opacity: 0.55;
  pointer-events: none;
}

/* Lesbarkeits-Mask im linken Bereich */
.hero-4__readmask {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(105deg, rgba(0, 14, 8, 0.78) 0%, rgba(0, 14, 8, 0.55) 35%, rgba(0, 14, 8, 0.15) 60%, transparent 78%);
  pointer-events: none;
}

/* Subtile Korn-Struktur */
.hero-4__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-4__nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-md) var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4; /* vor Hero-BG-Layers (0-3), hinter Drucker (50) */
}

.hero-4__logo {
  height: var(--logo-h-large);
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.6));
}

.hero-4__badge {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(243, 245, 248, 0.3);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-bg-light);
}

.hero-4__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--v4-green);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(2, 72, 2, 0.9);
  animation: pulse4 2.4s ease-in-out infinite;
}

.hero-4__container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  position: relative;
  z-index: 100; /* vor Drucker (z=50), vor Logo (z=4) */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: end;
}

.hero-4__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 640px;
}

.hero-4__eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-bg-light);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  opacity: 0;
  animation: fadeUp4 0.7s ease-out 0.2s forwards;
}

.hero-4__eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--v4-green);
}

.hero-4__title {
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: var(--fs-display-xl);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--color-bg-light);
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.55);
}

.hero-4__title-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp4 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-4__title-line:nth-of-type(1) { animation-delay: 0.35s; }
.hero-4__title-line:nth-of-type(2) {
  animation-delay: 0.55s;
  font-weight: 600;
  color: var(--color-bg-light);
  position: relative;
  display: inline-block;
  isolation: isolate;
}

/* Print-Marker [data-print="highlight"] -> jetzt in printer.css (universell). */

.hero-4__subline {
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: rgba(243, 245, 248, 0.88);
  max-width: 50ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: fadeUp4 0.8s ease-out 0.75s forwards;
}

.hero-4__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  opacity: 0;
  animation: fadeUp4 0.8s ease-out 0.95s forwards;
}

.hero-4__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 1rem 1.6rem;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  background: var(--v4-green);
  color: var(--color-white);
  border-radius: 2px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-4__cta:hover {
  background: var(--v4-green);
  filter: brightness(0.85);
  transform: translateY(-2px);
}

.hero-4__cta--ghost {
  background: rgba(243, 245, 248, 0.08);
  color: var(--color-bg-light);
  border: 1px solid rgba(243, 245, 248, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-4__cta--ghost:hover {
  background: rgba(243, 245, 248, 0.18);
  border-color: var(--color-bg-light);
}

.hero-4__arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.hero-4__cta:hover .hero-4__arrow {
  transform: translateX(4px);
}

/* Rechte Spalte: Spec-Card mit Glasmorphism */
.hero-4__spec-card {
  background: rgba(15, 25, 20, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(243, 245, 248, 0.15);
  padding: var(--space-md) var(--space-lg);
  margin-left: auto;
  max-width: 360px;
  opacity: 0;
  animation: fadeUp4 1s ease-out 1.0s forwards;
}

.hero-4__spec-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 245, 248, 0.55);
  display: block;
  margin-bottom: var(--space-2xs);
}

.hero-4__spec-headline {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--color-bg-light);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-4__spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.hero-4__spec-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Geist Mono', monospace;
  font-size: 0.8125rem;
  padding: var(--space-2xs) 0;
  border-bottom: 1px solid rgba(243, 245, 248, 0.08);
  color: rgba(243, 245, 248, 0.85);
}

.hero-4__spec-row:last-child { border-bottom: 0; }

.hero-4__spec-row span:first-child {
  color: rgba(243, 245, 248, 0.5);
  letter-spacing: 0.05em;
}

/* Footer mit Bildnachweis */
.hero-4__footer {
  position: absolute;
  bottom: var(--space-md);
  right: var(--container-pad);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 245, 248, 0.5);
  z-index: 2;
}

.hero-4__credit {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

@keyframes fadeUp4 {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse4 {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@media (max-width: 920px) {
  .hero-4__container { grid-template-columns: 1fr; gap: var(--space-lg); align-items: start; }
  .hero-4__spec-card { margin-left: 0; max-width: none; }
  .hero-4__footer { display: none; }
}

@media (max-width: 880px) {
  .hero-4 {
    /* Auf Mobile keine forcierte 100vh — Address-Bar Toggle-Probleme vermeiden */
    min-height: auto;
    padding-top: clamp(5rem, 14vh, 7rem);
    padding-bottom: clamp(4rem, 8vh, 6rem);
  }
  .hero-4__container {
    gap: var(--space-md);
  }
  .hero-4__main {
    gap: var(--space-sm);
  }
  .hero-4__title {
    font-size: clamp(2.25rem, 1.5rem + 5vw, 3.25rem);
    line-height: 1.05;
  }
  .hero-4__subline {
    font-size: 1rem;
    line-height: 1.5;
  }
  .hero-4__cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }
  .hero-4__cta {
    justify-content: center;
    padding: 0.95rem 1.4rem;
    width: 100%;
  }
  /* Spec-Card schlanker, ohne Glas-Blur (zu teuer) */
  .hero-4__spec-card {
    padding: var(--space-md);
    background: rgba(15, 25, 20, 0.65);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin-top: var(--space-sm);
  }
  .hero-4__spec-headline {
    font-size: 1.2rem;
  }
  /* Read-Mask weniger aggressiv damit Spec-Card lesbar bleibt */
  .hero-4__readmask {
    background: linear-gradient(180deg, rgba(0, 14, 8, 0.78) 0%, rgba(0, 14, 8, 0.55) 50%, rgba(0, 14, 8, 0.65) 100%);
  }
}

@media (max-width: 540px) {
  .hero-4__badge { display: none; }
  .hero-4__eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
  }
}

/* ---------- Scroll-Hint (Mausrad-Icon mit Punkt) ---------- */

.hero-4__scroll-hint {
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 2.5rem);
  left: var(--container-pad);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  z-index: 5;
  color: rgba(243, 245, 248, 0.6);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.hero-4__scroll-hint:hover {
  color: var(--color-bg-light);
  transform: translateY(2px);
}

.hero-4__scroll-hint-mouse {
  display: block;
  width: 22px;
  height: 36px;
  border: 1.5px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.hero-4__scroll-hint-dot {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  background: currentColor;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-hint-dot 1.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.hero-4__scroll-hint-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@keyframes scroll-hint-dot {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  60%  { transform: translate(-50%, 14px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-4__scroll-hint-dot { animation: none; }
}

@media (max-width: 540px) {
  .hero-4__scroll-hint { display: none; }
}
