/* =========================================================
   PPG Ratgeber – ergänzt /styles.css der Hauptseite.
   Nutzt deren Variablen (--primary, --accent, --champagne …)
   ========================================================= */

/* Kompakterer Seitenkopf als auf Leistungsseiten */
.ratgeber-hero { height: auto; min-height: 340px; padding: 4rem 1rem; }
.ratgeber-hero .hero-content { max-width: 860px; }
.ratgeber-hero h1 { font-size: clamp(1.8rem, 3vw, 2.7rem); }


/* Artikel: Fließtext linksbündig (Hauptseite zentriert global) */
.ratgeber-article { max-width: 860px; text-align: left !important; padding-top: 2rem; }
.ratgeber-article p { text-align: left; max-width: none; }

.ratgeber-breadcrumb { font-size: .9rem; color: #6b7280; margin-bottom: 1rem; }
.ratgeber-breadcrumb a { color: var(--secondary); text-decoration: none; }

.ratgeber-prose { font-size: 1.06rem; line-height: 1.75; color: #1f2937; }
.ratgeber-prose > * + * { margin-top: 1rem; }
.ratgeber-prose h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  color: var(--primary);
  margin: 2.6rem 0 .8rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid rgba(203,161,53,.45);
}
.ratgeber-prose h3 { font-size: 1.2rem; color: var(--secondary); margin: 1.8rem 0 .4rem; }
.ratgeber-prose p { margin-bottom: 0; font-size: inherit; }
.ratgeber-prose a { color: var(--secondary); font-weight: 600; }
.ratgeber-prose strong { color: var(--dark); }
.ratgeber-prose ul, .ratgeber-prose ol { padding-left: 1.4rem; }
.ratgeber-prose li { margin: .35rem 0; }
.ratgeber-prose li::marker { color: var(--accent); font-weight: 700; }

.ratgeber-prose blockquote {
  margin: 1.8rem 0;
  padding: 1.1rem 1.4rem;
  background: var(--surface-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.table-wrap { overflow-x: auto; margin: 1.6rem 0; border-radius: 12px; border: 1px solid var(--border-soft); }
.ratgeber-prose table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: .96rem; }
.ratgeber-prose th { background: var(--primary); color: #fff; text-align: left; padding: .7rem .9rem; }
.ratgeber-prose td { padding: .65rem .9rem; border-top: 1px solid var(--border-soft); }
.ratgeber-prose tr:nth-child(even) td { background: var(--surface-soft); }

/* Teilen-Leiste */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.4rem 0; }
.share-label { font-weight: 700; color: var(--primary); margin-right: .25rem; }
.share-button {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: .45rem .95rem; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--border-soft); background: var(--surface); color: var(--dark);
}
.share-facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.share-linkedin { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.share-button:hover { filter: brightness(.93); }

.ratgeber-cta-phone { margin-top: 1rem; }
.ratgeber .cta { max-width: 1000px; margin-left: auto; margin-right: auto; }
.ratgeber .cta .ratgeber-cta-phone a { background: none; padding: 0; color: #fff; text-decoration: underline; }
.ratgeber-more { background: transparent !important; border: 0 !important; box-shadow: none !important; padding-top: 0; }

/* Übersicht */
.ratgeber-grid { margin-top: 1.5rem; text-align: left; grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); justify-content: center; }
.ratgeber-card { display: flex; flex-direction: column; gap: .5rem; padding: 0 0 1.4rem; overflow: hidden; text-decoration: none; color: inherit; }
.ratgeber-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.ratgeber-card > :not(img) { padding: 0 1.3rem; }
.ratgeber-card-category { color: var(--accent); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: .6rem; }
.ratgeber-card h3 { color: var(--primary); font-size: 1.2rem; line-height: 1.3; }
.section .ratgeber-card p { text-align: left; font-size: .95rem; margin: 0; }
.ratgeber-card-meta { color: var(--secondary); font-weight: 600; font-size: .9rem; margin-top: auto; }

@media (max-width: 768px) {
  .ratgeber-hero { min-height: 280px; padding: 3rem 1rem; }
  .ratgeber-prose { font-size: 1rem; }
}
