/* SEO-Seiten (/suchmaschinenoptimierung/, /en/seo-services/): Zusammenspiel Text und Grafik.
   Gesetzt von fix-2026-10-03-seo-design.py. Farben aus dem bestehenden Schema
   (Beige-Flächen, Rot #c61b1d als Akzent), keine neuen Schriften. */

/* Text links, Grafik rechts; Grafik nie größer als der Text, den sie begleitet */
.egw-pair {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem;
  align-items: start;
  margin: 0 0 2.5rem 0;
}
.egw-pair--center { align-items: center; }
.egw-pair > * { grid-column: auto !important; min-width: 0; margin-bottom: 0 !important; }
.egw-pair-fig { position: sticky; top: 7rem; }
.egw-pair--center .egw-pair-fig { position: static; }
.egw-pair-fig img,
.egw-pair-fig picture img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-inline: auto;
  border-radius: 1rem;
}
/* Zeilen, in denen Elements Text und Grafik nebeneinander setzt: vertikal mittig, Grafik begrenzt */
.egw-split { align-items: center; }
.egw-split-fig img { max-width: 360px; margin-inline: auto; border-radius: 1rem; height: auto !important; aspect-ratio: 1 / 1 !important; object-fit: contain !important; }
.egw-split-fig picture, .egw-split-fig .transform-gpu { aspect-ratio: auto !important; height: auto !important; }
.egw-full { grid-column: 1 / -1 !important; }
.egw-full > .relative { max-width: 48rem; justify-self: start !important; margin-left: 0 !important; }

/* Kennzahlen im Praxisbeispiel */
.egw-kpi { margin: 2rem 0 2.5rem; }
.egw-kpi table { width: 100%; border-collapse: separate; border-spacing: 0; background: #faf7f0; border: 1px solid #e3dbc8; border-radius: 1rem; }
.egw-kpi caption { caption-side: top; text-align: left; font-weight: 600; padding: 0 0 0.75rem 0; }
.egw-kpi th, .egw-kpi td { padding: 0.9rem 1rem; text-align: right; border-bottom: 1px solid #e3dbc8; font-variant-numeric: tabular-nums; }
.egw-kpi thead th { font-size: 0.875rem; font-weight: 600; background: #f3ecdd; }
.egw-kpi thead th:first-child { border-top-left-radius: 1rem; }
.egw-kpi thead th:last-child { border-top-right-radius: 1rem; }
.egw-kpi th:first-child { text-align: left; }
.egw-kpi tbody td { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.egw-kpi tbody tr:last-child > * { border-bottom: 0; }
.egw-kpi-note { margin: 1rem 0 0 0; padding: 0.75rem 1rem; border-left: 3px solid #c61b1d; background: #faf7f0; border-radius: 0 0.5rem 0.5rem 0; }

/* Vorher/Nachher im Praxisbeispiel */
.egw-compare { display: grid; gap: 1.5rem; margin: 2rem 0 2.5rem; }
.egw-compare h4 { font-weight: 600; font-size: 1.0625rem; margin: 0 0 0.5rem 0; }
.egw-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.egw-before, .egw-after { margin: 0; padding: 1rem 1.25rem; border-radius: 0.75rem; border: 1px solid #e3dbc8; }
.egw-before { background: #fff; }
.egw-after { background: #faf7f0; border-left: 4px solid #c61b1d; }
.egw-tag { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.35rem; }
.egw-before p, .egw-after p { margin: 0; }
.egw-after strong { font-weight: 700; }

/* Ablauf der Zusammenarbeit als nummerierte Schritte */
.egw-steps { list-style: none !important; counter-reset: egwstep; display: grid !important; grid-template-columns: 1fr 1fr; gap: 1rem !important; margin: 1rem 0 0 0 !important; padding: 0 !important; }
.egw-steps > li { counter-increment: egwstep; position: relative; padding: 1.25rem 1.25rem 1.25rem 4.25rem !important; background: #faf7f0; border: 1px solid #e3dbc8; border-radius: 1rem; }
.egw-steps > li::before { content: counter(egwstep); position: absolute; left: 1.25rem; top: 1.15rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #c61b1d; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.egw-steps > li:last-child:nth-child(odd) { grid-column: 1 / -1; }

@media (max-width: 1023.98px) {
  .egw-pair { grid-template-columns: 1fr; gap: 1.5rem; }
  .egw-pair-fig { position: static; }
  .egw-pair-fig img { max-width: 320px; }
}
@media (max-width: 767.98px) {
  .egw-compare-grid, .egw-steps { grid-template-columns: 1fr; }
  .egw-kpi th, .egw-kpi td { padding: 0.7rem 0.6rem; }
  .egw-kpi tbody td { font-size: 1.25rem; }
  .egw-pair-fig img, .egw-split-fig img { max-width: 260px; }
}
@media (max-width: 479.98px) {
  .egw-kpi th, .egw-kpi td { padding: 0.6rem 0.4rem; }
  .egw-kpi thead th { font-size: 0.75rem; hyphens: auto; word-break: normal; overflow-wrap: normal; }
  .egw-kpi tbody td { font-size: 1.125rem; }
  .egw-kpi tbody th { font-size: 0.8125rem; }
}
