/* ================================================================
   HOME — Startseite (Foto-Hero, Chips, Magazin-Grid, Panels)
   Geladen nur von home.njk.
   ================================================================ */

.home .site-main {
  max-width: 1080px;
  margin: 0 auto;
}

/* ── Hero ─────────────────────────────────────────────────────── */

.home .home-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}

.home .home-hero__bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.home .home-hero__inhalt {
  position: relative;
  z-index: 1;
  width: min(620px, 92%);
  text-align: left;
  padding: 3rem 0;
  justify-self: start;
  margin-left: clamp(1rem, 5vw, 4rem);
}

/* Abdunkelung für Textkontrast */
.home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 16, 12, 0.55) 0%,
              rgba(20, 16, 12, 0.35) 55%, rgba(20, 16, 12, 0.15) 100%);
  z-index: 1;
}

.home .home-hero__inhalt { z-index: 2; }

.home .home-hero__title {
  color: #FFFFFF;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.6rem;
  border: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.home .home-hero__sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0 0 1.75rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.home .home-hero__attribution {
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 2;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Suchleiste im Hero */
.home .hero-suche {
  position: relative;
  text-align: left;
}

.home .hero-suche__input {
  width: 100%;
  padding: 1rem 3.2rem 1rem 1.4rem;
  font-size: 1.05rem;
  font-family: inherit;
  border: none;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--color-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.home .hero-suche__input:focus {
  outline: 3px solid var(--color-accent);
}

.home .hero-suche__icon {
  position: absolute;
  right: 1.2rem;
  top: 0.85rem;
  font-size: 1.25rem;
  pointer-events: none;
}

.home .hero-suche__liste {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0.4rem;
  position: absolute;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  max-height: 320px;
  overflow-y: auto;
}

.home .hero-suche__treffer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.home .hero-suche__treffer:hover,
.home .hero-suche__treffer:focus-visible {
  background: var(--color-bg);
}

.home .hero-suche__badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-accent-text);
  background: #EBF1DC;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.home .hero-suche__titel {
  font-weight: 600;
  font-size: 0.98rem;
}

/* ── Tier-Chips ───────────────────────────────────────────────── */

.home .home-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 3rem;
}

.home .home-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(44, 42, 40, 0.07);
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text);
  transition: transform var(--transition-quick), box-shadow var(--transition-quick);
}

.home .home-chip:hover,
.home .home-chip:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(44, 42, 40, 0.12);
}

.home .home-chip__emoji {
  font-size: 1.25rem;
}

.home .home-chip--alle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
}

/* ── Sektions-Kopf ────────────────────────────────────────────── */

.home .home-section-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.home .home-section-kopf h2 {
  margin: 0;
  border: none;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
}

.home .home-section-kopf__mehr {
  font-weight: 600;
  white-space: nowrap;
}

/* ── Magazin-Karten ───────────────────────────────────────────── */

.home .home-magazin {
  margin-bottom: 3rem;
}

.home .home-magazin__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.home .home-karte {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition-quick), box-shadow var(--transition-quick);
}

.home .home-karte:hover,
.home .home-karte:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(44, 42, 40, 0.13);
}

.home .home-karte__kopf {
  display: grid;
  place-items: center;
  font-size: 3rem;
  padding: 1.6rem 0;
}

.home .home-karte--1 .home-karte__kopf { background: linear-gradient(135deg, #FCEAE6, #F8D5CC); }
.home .home-karte--2 .home-karte__kopf { background: linear-gradient(135deg, #EBF1DC, #D8ECC9); }
.home .home-karte--3 .home-karte__kopf { background: linear-gradient(135deg, #E4F1F6, #CFE6EF); }

.home .home-karte__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.3rem 1.3rem;
}

.home .home-karte__meta {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.home .home-karte__titel {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
}

.home .home-karte__text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ── Promo-Panels ─────────────────────────────────────────────── */

.home .home-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.home .home-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 20px;
  padding: 1.75rem 1.9rem;
}

.home .home-panel--kinder { background: #F3F0DC; border: 2px solid #C9C27A; }
.home .home-panel--chat   { background: #EBF1DC; border: 2px solid #ADBF7E; }

.home .home-panel h2 {
  margin: 0 0 0.5rem;
  border: none;
  font-size: 1.35rem;
}

.home .home-panel p {
  margin: 0 0 1.1rem;
  line-height: 1.55;
  color: var(--color-text);
}

.home .home-panel__cta {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--color-primary);
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-quick);
}

.home .home-panel__cta:hover,
.home .home-panel__cta:focus-visible {
  transform: translateY(-2px);
}

.home .home-panel__illu {
  font-size: 3.2rem;
  line-height: 1.1;
  flex-shrink: 0;
}

/* ── Video der Woche ──────────────────────────────────────────── */

.home .home-video {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.75rem;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.home .home-video__media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #000;
  display: block;
}

.home .home-video__kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 0.4rem;
}

.home .home-video__text h2 {
  margin: 0 0 0.5rem;
  border: none;
  font-size: 1.4rem;
}

.home .home-video__text p {
  margin: 0 0 0.6rem;
  line-height: 1.55;
  color: var(--color-text);
}

.home .home-video__attribution {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ── Hinweis ──────────────────────────────────────────────────── */

.home .home-hinweis {
  text-align: center;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  max-width: 46em;
  margin: 0 auto 1rem;
}

/* ── Responsive & Motion ──────────────────────────────────────── */

@media (max-width: 760px) {
  .home .home-hero { min-height: 360px; }
  .home .home-video { grid-template-columns: 1fr; }
  .home .home-panel { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .home .home-chip:hover,
  .home .home-karte:hover,
  .home .home-panel__cta:hover {
    transform: none;
  }
}
