/* ============================================================
   PAGE-SERVICES.CSS (MODERN & EINHEITLICH)
   ------------------------------------------------------------
   Spezifische Stile für die Leistungs-Seite.
   Fokus: ruhige Typografie, klare Abstände, dezente Flächen,
   hochwertige Karten und saubere Hover-/Focus-States.
============================================================ */

:root {
  --services-max-width: 980px;
  --services-padding-x: 1.25rem;

  --services-hero-padding-top: 4.25rem;
  --services-hero-padding-bottom: 3.25rem;

  --services-title-size: clamp(2.1rem, 3.2vw, 3rem);
  --services-lead-size: clamp(1.02rem, 1.1vw, 1.15rem);

  --services-grid-gap: 1.25rem;
  --services-card-radius: 18px;
  --services-border: var(--border-color);

  --services-surface: color-mix(in srgb, var(--background) 96%, #000 4%);
  --services-surface-2: color-mix(in srgb, var(--background) 92%, #000 8%);
}

/* 1) Hero
   ------------------------------------------------------------ */
.page-hero {
  background: var(--background);
  padding: var(--services-hero-padding-top) var(--services-padding-x) var(--services-hero-padding-bottom);
  text-align: center;
}

.page-hero h1 {
  font-size: var(--services-title-size);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 auto 1rem;
  color: var(--foreground);
  max-width: 820px;
}

.page-hero p {
  font-size: var(--services-lead-size);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}

/* 2) Grid Layout
   ------------------------------------------------------------ */
.services-section {
  background: var(--background);
  padding: 0 var(--services-padding-x) 5rem;
}

.service-grid {
  max-width: var(--services-max-width);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr;
  gap: var(--services-grid-gap);
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* 3) Service Card
   ------------------------------------------------------------ */
.service-card {
  background: var(--services-surface);
  border: 1px solid var(--services-border);
  border-radius: var(--services-card-radius);
  padding: 1.6rem;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 10px 30px rgba(0, 0, 0, 0.06);

  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 18px 42px rgba(0, 0, 0, 0.10);
  border-color: color-mix(in srgb, var(--services-border) 70%, #000 30%);
}

.service-card:focus-within {
  border-color: color-mix(in srgb, var(--services-border) 70%, #000 30%);
}

.service-card h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--foreground);

  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.service-card h2 .icon-wrapper {
  background-color: color-mix(in srgb, var(--accent) 88%, #000 12%);
  color: var(--btn-text);

  width: 46px;
  height: 46px;
  border-radius: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  border: 1px solid color-mix(in srgb, var(--accent) 70%, #000 30%);
}

.service-card h2 .icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  gap: 0.75rem;

  color: var(--text-secondary);
  line-height: 1.65;
}

.service-card ul li {
  position: relative;
  padding-left: 1.75rem;
  margin: 0;
}

.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
}

/* 4) CTA Button
   ------------------------------------------------------------ */
.service-card .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  margin-top: 0.5rem;
  padding: 0.8rem 1.15rem;
  border-radius: 12px;

  background-color: var(--accent);
  color: var(--btn-text);
  text-decoration: none;

  font-weight: 650;
  letter-spacing: -0.01em;

  border: 1px solid color-mix(in srgb, var(--accent) 70%, #000 30%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);

  align-self: flex-start;
  margin-top: auto; /* Button nach unten */

  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.service-card .cta-button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-card .cta-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.service-card .cta-button:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}

/* 5) Responsive
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  :root {
    --services-padding-x: 1rem;
    --services-hero-padding-top: 3.75rem;
    --services-hero-padding-bottom: 3rem;
    --services-grid-gap: 1rem;
  }

  .service-card {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card .cta-button {
    transition: none;
  }

  .service-card:hover {
    transform: none;
  }

  .service-card .cta-button:hover,
  .service-card .cta-button:active {
    transform: none;
  }
}