/**
 * @file homepage.css
 * Verid — Startseite: Hero + Themen-Karten-Grid
 */

/* ─── HERO ────────────────────────────────────────────────── */

.verid-hero {
  background:
    radial-gradient(ellipse at 25% 60%, rgba(31, 60, 166, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(31, 60, 166, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #0d1733 0%, #162050 60%, #1a2860 100%);
  color: #fff;
  padding: 5rem 2rem 4.5rem;
  text-align: center;
}

.verid-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.verid-hero__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93C4FF;  /* Hellblau statt Akzentblau — Kontrast auf dunkelnavym Hintergrund */
  margin-bottom: 1.25rem;
}

.verid-hero__h1 {
  font-family: var(--verid-font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #fff;  /* Explizit weiß – verhindert Override durch globale h1-Styles */
}

.verid-hero__h1 span {
  color: #93C4FF;  /* Hellblau statt Akzentblau — Kontrast auf dunkelnavym Hintergrund */
}

.verid-hero__sub {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.verid-hero__cta {
  display: inline-flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
}

.verid-hero__btn {
  display: inline-block;
  padding: 0.75rem 1.875rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms, opacity 150ms;
  white-space: nowrap;
}

.verid-hero__btn--primary {
  background: var(--verid-color-accent);
  color: #fff;
}

.verid-hero__btn--primary:hover {
  background: var(--verid-color-accent-hover);
  color: #fff;
}

.verid-hero__btn--secondary {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.verid-hero__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Kennzahlen-Zeile */
.verid-hero__stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.verid-hero__stat-num {
  display: block;
  font-size: 1.625rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.verid-hero__stat-lbl {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.2rem;
}

/* ─── THEMEN-GRID ─────────────────────────────────────────── */

.verid-topics {
  background: var(--verid-color-bg);
  padding: 3.5rem 2rem 5rem;
}

.verid-topics__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.verid-topics__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.verid-topics__title {
  font-family: var(--verid-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  border: none;
  padding: 0;
}

.verid-topics__sub {
  font-size: 0.875rem;
  color: var(--verid-color-text-muted);
}

.verid-topics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* ─── Karte ───────────────────────────────────────────────── */

.verid-topic-card {
  background: var(--verid-color-surface);
  border: 1px solid var(--verid-color-border);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: box-shadow 150ms, transform 150ms, border-color 150ms;
}

.verid-topic-card:hover {
  box-shadow: 0 4px 20px rgba(28, 25, 22, 0.10);
  transform: translateY(-2px);
  border-color: var(--verid-color-accent);
  text-decoration: none;
}

.verid-topic-card__num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--verid-color-accent);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.verid-topic-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--verid-color-text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.verid-topic-card__bar {
  display: none; /* entfernt – war rein dekorativ */
}

.verid-topic-card__count {
  font-size: 0.8rem;
  color: var(--verid-color-text-muted);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--verid-color-border-light);
}

/* ─── Responsive ──────────────────────────────────────────── */

/* ─── Mobile (≤ 640 px) — Mockup-5-Layout ────────────────── */

@media (max-width: 640px) {
  /* Hero kompakter */
  .verid-hero {
    padding: 2.5rem 1.25rem 2.5rem;
    text-align: left;
  }

  .verid-hero__inner {
    max-width: 100%;
  }

  .verid-hero__h1 {
    font-size: 1.75rem;
  }

  .verid-hero__sub {
    font-size: 0.9375rem;
    margin-inline: 0;
  }

  .verid-hero__cta {
    justify-content: flex-start;
  }

  .verid-hero__stats {
    gap: 1.5rem;
    justify-content: flex-start;
  }

  /* Themen-Grid → vertikale Liste */
  .verid-topics {
    padding: 2rem 1.25rem 3rem;
  }

  .verid-topics__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Mobile: Karten werden zu Listenzeilen */
  .verid-topic-card {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--verid-color-border-light);
    background: transparent;
  }

  .verid-topic-card:first-child {
    border-top: 1px solid var(--verid-color-border-light);
  }

  .verid-topic-card:hover {
    box-shadow: none;
    transform: none;
    background: var(--verid-color-surface);
  }

  .verid-topic-card__num {
    min-width: 2em;
    flex-shrink: 0;
  }

  .verid-topic-card__name {
    flex: 1;
    font-size: 0.9375rem;
  }

  /* Pfeil-Indikator auf Mobile */
  .verid-topic-card::after {
    content: '›';
    font-size: 1.25rem;
    color: var(--verid-color-text-muted);
    flex-shrink: 0;
    line-height: 1;
  }

  /* Count auf Mobile verstecken */
  .verid-topic-card__count {
    display: none;
  }
}

/* ──────────────────────────────────────────────
   404-Seite
   ────────────────────────────────────────────── */
.verid-404 {
  padding-block: 3rem 5rem;
}

.verid-404__head {
  text-align: center;
  margin-bottom: 2rem;
}

.verid-404__code {
  display: block;
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--verid-color-accent);
  opacity: 0.12;
  letter-spacing: -0.04em;
  margin-bottom: -0.5rem;
}

.verid-404__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  border: none;
  padding: 0;
}

.verid-404__lead {
  font-size: 1.05rem;
  color: var(--verid-color-muted, #635F5A);
  margin: 0;
}

.verid-404__search {
  display: flex;
  max-width: 520px;
  margin: 0 auto 3rem;
  border: 1.5px solid var(--verid-color-border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.verid-404__search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: transparent;
}

.verid-404__search-btn {
  border: none;
  background: var(--verid-color-accent);
  color: #fff;
  padding: 0 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 150ms;
}

.verid-404__search-btn:hover {
  background: var(--verid-color-accent-dark, #162d8a);
}

.verid-404__topics {
  padding-inline: 0;
  padding-block: 0;
  background: transparent;
}
