/* ============================================================
   SECTION 4: DREI ANALYSE-KARTEN
   ============================================================ */

.analysen {
  background-color: var(--background-primary);
  padding-bottom: 120px; /* Oben: Opening übernimmt */
}

/* ── Block 1: Story-Opening ── */
.analysen-opening {
  max-width: 880px;
  padding-top: 120px;
  padding-bottom: 80px;
}

.opening-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

.opening-headline {
  font-size: var(--font-section-headline); /* clamp(1.75rem, 3.5vw, 2.5rem) — konsistent mit allen anderen Sections */
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.opening-subline {
  font-size: clamp(1.125rem, 1.75vw, 1.375rem); /* 18px → 22px */
  font-weight: 400;
  line-height: 1.5;
  color: #5A5A5A;
}

/* ── Grid ── */
.analysen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 0;
  align-items: start;
}

/* ── Einzelne Karte ── */
.analyse-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 32px 48px 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  /* Subgrid: 9 Inhaltszonen werden mit dem Parent-Grid koordiniert */
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 9;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.analyse-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* ── Zone 1: Visual ── */
.analyse-card-visual {
  height: 228px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  margin-bottom: 16px;
}

.analyse-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: contrast(1.06) brightness(1.01);
}

/* ── Zone 2: Eyebrow ── */
.analyse-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

/* ── Zone 3: Title ── */
.analyse-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* ── Zone 4: Sub-Title ── */
.analyse-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
  color: #5A5A5A;
  margin-bottom: 24px;
}

/* ── Zone 5: Beschreibung ── */
.analyse-desc {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 32px;
}

/* ── Zone 6: Tag-Liste ── */
.analyse-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-self: start;
}

.analyse-tag {
  background-color: rgba(147, 39, 195, 0.07);
  border: 1px solid rgba(147, 39, 195, 0.16);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6B1591;
  white-space: nowrap;
}

/* ── Zone 7: Hinweis-Text ── */
.analyse-hint {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #7A7A7A;
  margin-bottom: 32px;
}

/* ── Zone 8: CTA-Link ── */
.analyse-cta {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-primary);
  text-decoration: none;
  padding-top: 20px;
  margin-bottom: 16px;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  align-self: start;
}

.analyse-cta:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* ── Zone 9: Trust-Anker ── */
.analyse-trust {
  border-top: 1px solid #E5E5E5;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: end;
}

.analyse-trust--text-only {
  display: block;
}

.analyse-trust-logo {
  height: 72px;
  width: auto;
  opacity: 0.82;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.analyse-trust-logo--biomes {
  height: 22px;
}

.analyse-trust-logo:hover {
  opacity: 1;
}

.analyse-trust-text {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: #7A7A7A;
}

/* ============================================================
   RESPONSIVE — Subgrid deaktivieren unter 1024px (einspaltiges Layout)
   ============================================================ */

@media (max-width: 1023px) {
  .analysen {
    padding-bottom: 80px;
  }

  .analysen-opening {
    padding-top: 80px;
    padding-bottom: 56px;
  }

  .analysen-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Subgrid macht bei einer Spalte keinen Sinn — zurück zu normalem Block */
  .analyse-card {
    display: block;
    grid-row: auto;
  }

  .analyse-trust {
    margin-top: 32px;
  }
}

@media (max-width: 767px) {
  .analyse-card {
    padding: 32px;
  }

  .analyse-card-visual {
    height: 168px;
    padding: 12px 8px;
    margin-bottom: 20px;
  }

  .analyse-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  .analyse-card {
    padding: 20px;
  }

  .analyse-card-visual {
    height: 144px;
  }

  .analyse-title {
    font-size: 1.375rem;
  }

  .analyse-subtitle {
    font-size: 1rem;
  }
}
