/* ============================================================
   KIK-S — Startseite (nur /index.html)
   Baut auf tokens.css / layout.css / site.css auf.
   Vernetzungs-Motiv (Stadtwerke → eine IT) als visuelle Klammer:
   Hero-Hintergrund + Leistungs-Icons (+ Wissen-Teaser).
   Alle Farben/Abstände aus Tokens, nichts hardcoded.
   ============================================================ */

/* ---------- Hero: blaue Vollfläche ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-inverse);
  color: var(--text-on-inverse);
  padding-block: var(--space-9);
}
.home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.home-hero h1 {
  color: var(--neutral-0);
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);  /* passt auf Desktop in eine Zeile */
  max-width: none;
  margin: 0 0 var(--space-5);
}
.home-hero h1 .hl { color: var(--color-accent); }
.home-hero__sub {
  color: var(--blue-100);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  max-width: 54ch;
  margin: 0;
}
/* ---------- Sektionen: gestrafft, abwechselnde Flächen ---------- */
.home-section { padding-block: var(--space-8); }
.home-section--card   { background: var(--surface-card); }
.home-section--sunken { background: var(--surface-sunken); }
.home-wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

/* ---------- Section-Kopf (Eyebrow + Überschrift + Lead) ---------- */
.home-section-head { margin-bottom: var(--space-5); }
.home-section-head h2 {
  font-size: var(--fs-lg);
  margin: var(--space-1) 0 0;
}
.home-section-head--center {
  text-align: center;
  max-width: 54ch;
  margin-inline: auto;
  margin-bottom: var(--space-7);
}
.home-section-head--center .eyebrow::before,
.home-section-head--center .eyebrow::after {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: var(--color-accent); border-radius: 2px;
  vertical-align: middle; margin: 0 var(--space-3) 0.15em;
}
.home-section-lead {
  color: var(--text-secondary);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  margin: 0;
}
.home-section-head--center .home-section-lead { margin-top: var(--space-3); }
/* Brücke/Lead so breit wie die Karten darunter */
.home-section-lead--wide { max-width: none; margin-bottom: var(--space-7); }

/* ---------- Philosophie / Vorteile ---------- */
.phil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 760px) { .phil-grid { grid-template-columns: 1fr; gap: var(--space-5); } }
.phil-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.phil-item__icon { color: var(--color-accent); flex: none; line-height: 0; }
.phil-item__icon svg { width: 34px; height: 34px; display: block; }
.phil-item__label {
  display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted);
  margin-bottom: var(--space-1);
}
.phil-item__body p {
  margin: 0; max-width: none;
  color: var(--text-heading); font-weight: var(--fw-medium); line-height: var(--lh-snug);
}

/* ---------- Leistungskarten: 2×2 mit Icons ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (max-width: 680px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--surface-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.svc-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.svc-card__icon { color: var(--color-primary); line-height: 0; }
.svc-card__icon svg { width: 30px; height: 30px; display: block; }
.svc-card h3 { margin: 0; color: var(--text-heading); font-size: var(--fs-md); }
.svc-card p {
  margin: 0; max-width: none;
  color: var(--text-secondary); font-size: var(--fs-base);
}
.svc-card__more {
  margin-top: auto; padding-top: var(--space-2);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--color-primary);
}
.svc-card:hover .svc-card__more { color: var(--color-primary-hover); }

.svc-action { margin-top: var(--space-6); }

/* ---------- Wissen-Teaser ---------- */
.home-wissen__head { margin-bottom: var(--space-6); }
.home-wissen__head h2 {
  margin: 0;
  scroll-margin-top: 5rem;     /* nicht unter Sticky-Header klemmen */
}
.home-wissen__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
  gap: var(--space-5);
}

.home-wissen__action { margin-top: var(--space-5); }

/* ---------- Mobile / schmale Displays ---------- */
@media (max-width: 600px) {
  .home-hero { padding-block: var(--space-7); }
  .home-hero h1 { margin-bottom: var(--space-4); }
  .home-hero__sub { font-size: var(--fs-base); }

  .home-section { padding-block: var(--space-7); }
  .home-section-head h2 { font-size: var(--fs-lg); }
  .home-section-head--center .home-section-lead { font-size: var(--fs-base); }
  .home-wrap { padding-inline: var(--space-4); }
}

/* ---------- Reduced Motion: Motiv statisch, keine Hover-Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .svc-card { transition: border-color var(--dur) var(--ease); }
  .svc-card:hover { transform: none; }
}
