/* ============================================================
   A bis Z Pflege Hamburg — Shared Components (von allen Seiten geladen)
   Extrahiert aus home.css, damit Unterseiten dieselben
   Sektions-, FAQ-, Service- und CTA-Komponenten nutzen können.
   Lade-Reihenfolge: tokens.css → shared.css → home.css|page.css
   ============================================================ */

/* ---------- Sektions-Rhythmus ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head > .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--text-muted); }

/* ---------- Reveal-Animation (Basis für Form-Steps u. a.) ---------- */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Service-Cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.services-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.service {
  display: flex; flex-direction: column;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s var(--ease);
  min-height: 260px;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.service:hover .s-icon { background: var(--primary); color: var(--text-on-primary); }
.s-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.service h3 { margin-bottom: 10px; font-size: 22px; }
.service p { font-size: 15px; color: var(--text-muted); flex: 1; }
.service .more {
  margin-top: 18px;
  color: var(--primary);
  font-size: 14.5px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.service .more .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.service:hover .more .arrow { transform: translateX(4px); }

/* ---------- FAQ (Sidebar-Layout + Liste) ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.faq-side { position: sticky; top: 120px; }
.faq-side h2 { margin: 14px 0 14px; }
.faq-side p { color: var(--text-muted); margin-bottom: 24px; font-size: 15.5px; }
.faq-side-card {
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex; align-items: center; gap: 14px;
}
.faq-side-card .ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary); color: var(--text-on-primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.faq-side-card b { font-size: 14.5px; font-weight: 600; display: block; }
.faq-side-card small { font-size: 13px; color: var(--text-muted); }

.faq-list { display: flex; flex-direction: column; }
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--primary); }
.faq-toggle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
details[open] .faq-toggle { background: var(--primary); color: var(--text-on-primary); transform: rotate(45deg); }
.faq-answer {
  /* Height wird per JS animiert — hier kein max-height-Hack mehr. */
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
details[open] .faq-answer { opacity: 1; margin-top: 12px; }
.faq-answer p { font-size: 15.5px; line-height: 1.7; color: var(--text-muted); max-width: 640px; }

/* ---------- Final CTA (dunkles Panel) ----------
   Basis: einspaltig für Unterseiten. Die Startseite
   überschreibt in home.css auf zweispaltig mit Visual. */
.final-cta {
  padding: 120px 0;
}
.final-cta-inner {
  background: linear-gradient(135deg, #3C3228 0%, #2B2420 100%);
  border-radius: var(--radius-xl);
  padding: 80px;
  position: relative;
  overflow: hidden;
}
.final-cta-inner::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 95, 91, 0.6), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
/* Mobile: filter:blur(50px) ist teuerster Paint pro Scroll-Frame — entfernen */
@media (max-width: 1024px) {
  .final-cta-inner::before {
    filter: none;
    opacity: 0.35;
    background: radial-gradient(circle, rgba(31, 95, 91, 0.5), transparent 65%);
  }
}
.final-cta-inner > * { position: relative; z-index: 1; }
.final-cta-inner h2 { color: var(--text-on-primary); margin: 16px 0 20px; }
.final-cta-inner h2 .accent-serif { color: #4BAEB2; }
.final-cta-inner p { color: #BCB1A5; font-size: 17px; margin-bottom: 32px; }
.final-cta-inner .eyebrow { color: #4BAEB2; }
.final-cta-inner .eyebrow::before { background: #4BAEB2; }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Glow-Pulse auf Primary-CTA im Final-Block — subtile Breath-Animation zieht Auge zur Haupt-Conversion */
.final-cta-actions .btn-primary {
  position: relative;
  animation: final-cta-breath 2.8s ease-in-out infinite;
}
@keyframes final-cta-breath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 246, 236, 0.35), 0 12px 26px rgba(15, 50, 48, 0.3); }
  50%      { box-shadow: 0 0 0 12px rgba(251, 246, 236, 0),    0 12px 26px rgba(15, 50, 48, 0.3); }
}
@media (prefers-reduced-motion: reduce) {
  .final-cta-actions .btn-primary { animation: none; }
}
@media (max-width: 1024px) {
  .final-cta-actions .btn-primary { animation: none !important; }
}
.final-cta-inner .btn-phone {
  background: transparent;
  color: var(--text-on-primary);
  border: 1.5px solid rgba(251, 246, 236, 0.4);
}
.final-cta-inner .btn-phone:hover {
  background: var(--text-on-primary);
  color: var(--text);
}

/* ---------- Aktiver Nav-Punkt (Dropdown-Button-Variante) ---------- */
.nav-menu > li > button.active { color: var(--primary); }

/* ---------- Screenreader-only Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .section { padding: 70px 0; }
  .services-grid, .services-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; gap: 48px; }
  .faq-side { position: static; }
  .final-cta-inner { padding: 48px 32px; }
}
@media (max-width: 640px) {
  .services-grid, .services-grid.cols-4 { grid-template-columns: 1fr; }
  .service { padding: 28px 24px; }
  .section-head { text-align: left; }
  .faq-side-card { padding: 18px; }
  .final-cta-inner { padding: 40px 24px; }
  .final-cta-actions { flex-wrap: wrap; }
  .final-cta-actions .btn { flex: 1 1 100%; justify-content: center; }
}
