/*
 * section-header/style.css
 * ──────────────────────────
 * Hero-Bereich, Bild-Karussell, Hero-Stats, Seiten-Hero (Subseiten).
 * Erfordert: core-theme/style.css, core-layout/style.css
 */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) - 40px);
  display: grid; grid-template-rows: 1fr auto; overflow: hidden;
}

/* ── Carousel ── */
.hero-carousel { position: absolute; inset: 0; overflow: hidden; }
.hero-carousel-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center 42%;
  opacity: 0; transition: opacity 1.2s ease; transform: scale(1.06); will-change: transform, opacity;
}
.hero-carousel-slide.is-active { opacity: 1; }
.hero-carousel::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(10,22,12,0.65) 0%, rgba(10,22,12,0.30) 55%, rgba(10,22,12,0.58) 100%);
  pointer-events: none;
}
.hero-carousel-nav { position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-carousel-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.35); border: 1.5px solid rgba(255,255,255,0.55); cursor: pointer; padding: 0; transition: background 0.35s, transform 0.35s; }
.hero-carousel-dot.is-active { background: white; transform: scale(1.35); }
.hero-carousel-dot:hover:not(.is-active) { background: rgba(255,255,255,0.6); }

/* ── Hero Content ── */
.hero-content-wrap { display: flex; align-items: center; padding: 80px 0 60px; position: relative; z-index: 2; }
.hero-content { max-width: 780px; }
.hero-content .eyebrow { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.88); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(6px); }
.hero-content .eyebrow::before { background: #8fde9f; }
.hero h1 { margin: 24px 0 22px; font-size: clamp(3rem, 6.5vw, 5.8rem); font-weight: 800; line-height: 0.96; letter-spacing: -0.035em; color: #fff; }
.hero h1 em { font-style: italic; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; color: var(--sprout); }
.hero-lead { font-size: clamp(1rem, 1.8vw, 1.125rem); color: rgba(255,255,255,0.8); max-width: 60ch; line-height: 1.72; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── Hero Stats ── */
.hero-stats { position: relative; z-index: 3; background: rgba(255,255,255,0.94); backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,0.4); }
.hero-stats-inner { display: flex; }
.hero-stat { flex: 1; padding: 22px 32px; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: none; }
.hero-stat strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--verdant); line-height: 1; letter-spacing: -0.04em; }
.hero-stat span { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--muted); font-weight: 500; }

/* ── Page Hero (Subseiten) ── */
.page-hero { padding: 48px 0 0; }
.hero-panel { background: var(--surface); border: 1px solid rgba(255,255,255,0.85); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.page-hero-inner { padding: 52px 64px; text-align: center; }
.page-hero-inner .eyebrow { margin-bottom: 14px; }
.page-hero-inner h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; color: var(--forest); margin-bottom: 14px; letter-spacing: -0.03em; }
.page-hero-inner h1 em { font-style: italic; font-family: 'Playfair Display', Georgia, serif; color: var(--meadow); }
.page-hero-inner p { font-size: 1.0625rem; color: var(--muted); max-width: 60ch; margin-inline: auto; line-height: 1.7; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-stats-inner { flex-wrap: wrap; }
  .hero-stat { flex: 1 1 120px; border-bottom: 1px solid var(--line); }
  .hero-stat:last-child { border-right: none; border-bottom: none; }
  .page-hero-inner { padding: 36px 28px; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero-content-wrap { padding: 60px 0 50px; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); letter-spacing: -0.03em; }
  .hero-lead { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats-inner { flex-direction: column; }
  .hero-stat { padding: 14px 16px; flex: none; border-right: none; border-bottom: 1px solid var(--line); }
  .hero-stat:last-child { border-bottom: none; }
  .hero-stat strong { font-size: 1.75rem; }
  .page-hero-inner { padding: 32px 20px; }
  .cta-band { padding: 48px 0; }
}
