/* Marketing mit Jule – Ratgeber (Übersicht und Artikel)
   Baut auf leistung.css auf (Farben, Brotkrümelpfad, Buttons, FAQ, Footer). */

/* Footer bleibt auch bei kurzen Seiten unten am Fensterrand */
.ratgeber-seite { min-height: 100vh; display: flex; flex-direction: column; }
.ratgeber-seite > main { flex: 1; }

/* ===== KOPFBEREICH (Übersicht und Artikel) ===== */
.ratgeber-kopf { background: var(--green); color: var(--cream); padding: 2.5rem 5% 3.5rem; }
.ratgeber-kopf .inner { max-width: 760px; margin: 0 auto; }
.ratgeber-kopf--breit .inner { max-width: 1100px; }
.ratgeber-kopf .hero-kicker { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-light); margin-bottom: 0.6rem; }
.ratgeber-kopf h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--gold); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.ratgeber-kopf .lead { font-size: 1.1rem; max-width: 640px; }

/* Autorin und Datum unter der Überschrift */
.artikel-meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; font-size: 0.9rem; }
.artikel-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.artikel-meta span { opacity: 0.9; }
.artikel-meta strong { color: var(--gold-light); font-weight: 600; }

/* ===== ARTIKEL ===== */
.artikel { padding: 3.5rem 5% 4rem; }
.artikel-text { max-width: 720px; margin: 0 auto; font-size: 1.05rem; }
.artikel-text > p,
.artikel-text > ul,
.artikel-text > ol { margin-bottom: 1.15rem; }
.artikel-text h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); color: var(--green); line-height: 1.3; margin: 3rem 0 0.9rem; }
.artikel-text h3 { font-size: 1.15rem; color: var(--green); margin: 2rem 0 0.5rem; }
.artikel-text ul, .artikel-text ol { padding-left: 1.3rem; }
.artikel-text li { margin-bottom: 0.4rem; }
.artikel-text li::marker { color: var(--gold); font-weight: 700; }
.artikel-text a { color: var(--green); text-decoration-color: var(--gold); text-underline-offset: 3px; font-weight: 500; }
.artikel-text a:hover { color: var(--gold); }

/* Kurzantwort ganz oben */
.kurzantwort { background: var(--cream); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; padding: 1.4rem 1.6rem; margin-bottom: 2rem; }
.kurzantwort p { margin: 0; }
.kurzantwort .box-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.4rem; }

/* Inhaltsverzeichnis */
.inhalt { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.4rem; margin-bottom: 2rem; }
.inhalt summary { cursor: pointer; font-weight: 600; color: var(--green); list-style: none; display: flex; justify-content: space-between; }
.inhalt summary::-webkit-details-marker { display: none; }
.inhalt summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.inhalt[open] summary::after { content: '–'; }
.inhalt ol { margin: 0.8rem 0 0.2rem; padding-left: 1.3rem; }
.inhalt li { margin-bottom: 0.25rem; font-size: 0.97rem; }
.inhalt a { font-weight: 400; text-decoration: none; }
.inhalt a:hover { text-decoration: underline; }

/* Tipp-Kasten mitten im Text */
.tipp { background: var(--gray-light); border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.tipp p { margin: 0; }
.tipp .box-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.3rem; }

/* Vergleichstabelle */
.vergleich { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.5rem 0 2rem; font-size: 0.95rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.vergleich th, .vergleich td { text-align: left; padding: 0.85rem 1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.vergleich thead th { background: var(--green); color: var(--cream); font-weight: 600; font-size: 0.88rem; }
.vergleich tbody th { color: var(--green); font-weight: 600; }
.vergleich tbody tr:last-child th, .vergleich tbody tr:last-child td { border-bottom: none; }
.vergleich tbody tr:nth-child(even) { background: var(--gray-light); }

/* Ruhiger Hinweis auf die passende Leistung */
.artikel-cta { background: var(--green); color: var(--cream); border-radius: 16px; padding: 2rem; margin: 3rem 0 2.5rem; }
.artikel-cta h2 { color: var(--gold); margin: 0 0 0.6rem; font-size: 1.4rem; }
.artikel-cta p { margin-bottom: 1.4rem; }
.artikel-cta .cta-buttons { justify-content: flex-start; }
.artikel-cta .termin-alternativ { color: var(--cream); font-size: 0.95rem; align-self: center; }

/* Autorinnen-Box */
.autorin { display: flex; gap: 1.25rem; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2.5rem; }
.autorin img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); flex-shrink: 0; }
.autorin strong { display: block; color: var(--green); font-size: 1.05rem; }
.autorin p { color: var(--gray); font-size: 0.95rem; margin: 0.2rem 0 0; }

/* Häufige Fragen im Artikel */
.artikel-text .faq-liste { margin-bottom: 1rem; }
.artikel-text .faq-liste summary { font-size: 1rem; }

/* ===== ÜBERSICHT ===== */
.ratgeber-liste { padding: 3.5rem 5% 5rem; }
.ratgeber-liste .inner { max-width: 1100px; margin: 0 auto; }

.filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter[hidden] { display: none; }
.filter button { font: inherit; font-size: 0.9rem; font-weight: 500; background: #fff; color: var(--green); border: 1.5px solid var(--line); border-radius: 999px; padding: 0.45rem 1.05rem; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.filter button:hover { border-color: var(--gold); }
.filter button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }

.ratgeber-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ratgeber-karte { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; text-decoration: none; color: var(--black); transition: transform 0.2s, box-shadow 0.2s; }
.ratgeber-karte:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,64,59,0.1); }
.ratgeber-karte[hidden] { display: none; }
.ratgeber-karte .kategorie { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 0.5rem; }
.ratgeber-karte h2 { font-size: 1.15rem; color: var(--green); line-height: 1.35; margin-bottom: 0.5rem; }
.ratgeber-karte p { color: var(--gray); font-size: 0.93rem; flex-grow: 1; }
.ratgeber-karte em { font-style: normal; color: var(--gold); font-weight: 600; font-size: 0.9rem; margin-top: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .ratgeber-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .artikel { padding: 2.5rem 5% 3rem; }
  .artikel-text { font-size: 1rem; }
  .ratgeber-grid { grid-template-columns: 1fr; }
  .artikel-cta { padding: 1.6rem; }
  .artikel-cta .cta-buttons .btn { width: 100%; text-align: center; }
  .autorin { flex-direction: column; gap: 0.9rem; }

  /* Tabelle auf dem Handy als gestapelte Karten */
  .vergleich, .vergleich tbody, .vergleich tr, .vergleich th, .vergleich td { display: block; }
  .vergleich { border: none; border-radius: 0; }
  .vergleich thead { display: none; }
  .vergleich tbody tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 1rem; padding: 0.4rem 0; background: #fff; }
  .vergleich tbody tr:nth-child(even) { background: #fff; }
  .vergleich tbody th { font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .vergleich tbody tr:last-child th { border-bottom: 1px solid var(--line); }
  .vergleich td { border-bottom: none; padding: 0.45rem 1rem; }
  .vergleich td::before { content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
}
