/* home.css — nur der Hero der Startseite.
   Alle wiederverwendbaren Abschnittsbausteine liegen in components.css. */

/* ─── HERO: bleibt in beiden Themes dunkel (WebGL-Canvas darunter) ─────────── */
[data-theme="light"] #hero {
  --text-primary:  #E8E4DC;
  --text-secondary:#8A8580;
  --text-muted:    #4A4845;
  color: #E8E4DC;
}

#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Vignette sichert die Textlesbarkeit über jeder Rauchfarbe */
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(10,10,11,0.86) 0%, rgba(10,10,11,0.66) 48%, rgba(10,10,11,0.42) 75%, rgba(10,10,11,0.6) 100%),
    linear-gradient(to bottom, rgba(10,10,11,0.5) 0%, transparent 35%, transparent 60%, rgba(10,10,11,0.7) 100%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 137, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 137, 42, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.25) 70%, transparent 100%);
  pointer-events: none;
}

/* ─── HERO-INHALT ──────────────────────────────────────────────────────────── */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(7rem, 14vh, 9rem) clamp(1.5rem, 5vw, 2.5rem) clamp(3.5rem, 8vh, 5rem);
}

.hero-eyebrow {
  margin-bottom: 1.75rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 4.1rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 24ch;
  margin-bottom: 1.6rem;
  padding-bottom: 0.1em;
}

.hero-headline em {
  color: var(--accent-hot);
  font-style: italic;
}

.hero-intro {
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  line-height: 1.75;
  color: #D8D3CA;
  max-width: 56ch;
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-meta {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

/* ─── BILDSLOT (siehe Kommentar in src/index.njk) ──────────────────────────── */
.hero-photo { display: none; }

@media (min-width: 1200px) {
  #hero:has(.hero-photo) .hero-inner {
    display: grid;
    grid-template-columns: 1fr 34%;
    gap: 4rem;
    align-items: center;
  }
  #hero:has(.hero-photo) .hero-photo {
    display: block;
    position: relative;
    z-index: 1;
  }
  .hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: grayscale(0.25) contrast(1.05);
    border: 1px solid var(--accent-border);
  }
}
