/* NABOFIX-VERSION-MARKER: ratgeber-r4-2026-09-30 */
/* Ratgeber: gemeinsame Stile für ratgeber.html und alle ratgeber-*.html.
   Baut auf style.css auf (Farben, Schriften, .legal-page). */

.ratgeber-seite { max-width: 760px; margin: 0 auto; padding: 56px 48px 80px; }

.ratgeber-seite .page-label {
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--green); margin-bottom: 12px;
}
.ratgeber-seite .page-label a { color: inherit; text-decoration: none; }
.ratgeber-seite .page-label a:hover { text-decoration: underline; }

.ratgeber-seite h1 {
  font-family: 'Epilogue', sans-serif; font-size: 40px; font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.1; color: var(--black); margin-bottom: 14px;
}
.ratgeber-seite .einleitung {
  font-size: 18px; font-weight: 300; line-height: 1.6; color: #444; margin-bottom: 18px;
}
.ratgeber-seite .artikel-info {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: 13px; color: var(--gray);
  padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 32px;
}

/* Bilder */
.ratgeber-seite figure { margin: 0 0 32px; }
.ratgeber-seite figure img {
  display: block; width: 100%; height: auto;
  border-radius: 14px; background: var(--green-pale);
}
.ratgeber-seite figcaption { font-size: 13px; color: var(--gray); line-height: 1.5; margin-top: 10px; }

/* Fließtext */
.ratgeber-seite h2 {
  font-family: 'Epilogue', sans-serif; font-size: 24px; font-weight: 700;
  letter-spacing: -0.5px; line-height: 1.25; color: var(--black); margin: 44px 0 14px;
}
.ratgeber-seite h3 {
  font-family: 'Epilogue', sans-serif; font-size: 17px; font-weight: 700;
  color: var(--black); margin: 28px 0 8px;
}
.ratgeber-seite p, .ratgeber-seite li { font-size: 16px; color: #3a3a3a; line-height: 1.75; }
.ratgeber-seite p { margin-bottom: 14px; }
.ratgeber-seite ul, .ratgeber-seite ol { margin: 6px 0 18px 22px; }
.ratgeber-seite li { margin-bottom: 6px; }
.ratgeber-seite a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.ratgeber-seite a:hover { color: var(--green-light); }

/* Tabelle "Auf einen Blick" */
.tabelle-rahmen { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--border); border-radius: 12px; }
.ratgeber-seite table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.ratgeber-seite th {
  text-align: left; font-weight: 600; font-size: 13px; color: var(--gray);
  background: var(--gray-light); padding: 12px 16px;
}
.ratgeber-seite td { padding: 12px 16px; border-top: 1px solid var(--border); color: #3a3a3a; vertical-align: top; line-height: 1.5; }
.zustaendig {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.zustaendig-hilfe { background: var(--green-pale); color: var(--green); }
.zustaendig-betrieb { background: #111; color: #fff; }
.zustaendig-beides { background: #fff1e6; color: #c2410c; }

/* Hinweis- und Aktionskästen */
.hinweis-kasten {
  background: var(--gray-light); border-radius: 12px; padding: 18px 22px; margin: 8px 0 24px;
}
.hinweis-kasten p:last-child { margin-bottom: 0; }

.aktion-kasten {
  background: var(--green-pale); border: 1.5px solid var(--green);
  border-radius: 14px; padding: 26px 26px 24px; margin: 44px 0 20px;
}
.aktion-kasten h2 { margin: 0 0 8px; font-size: 22px; }
.aktion-kasten p { margin-bottom: 18px; }
.aktion-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.ratgeber-seite .knopf {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
  padding: 12px 22px; border-radius: 10px; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.ratgeber-seite .knopf-orange { background: #f97316; color: #fff; }
.ratgeber-seite .knopf-orange:hover { background: #ea580c; color: #fff; }
.ratgeber-seite .knopf-rand { background: #fff; color: var(--black); border: 1.5px solid var(--black); }
.ratgeber-seite .knopf-rand:hover { background: var(--black); color: #fff; }

.ratgeber-seite .hinweis-klein {
  font-size: 13px; color: var(--gray); line-height: 1.6;
  border-top: 1px solid var(--border); padding-top: 18px; margin-top: 36px;
}

/* Übersicht ratgeber.html */
.beitrag-liste { list-style: none; margin: 8px 0 0 !important; padding: 0; }
.beitrag-liste > li { margin: 0 0 28px; }
.beitrag {
  display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start;
  text-decoration: none !important; color: inherit !important;
}
.beitrag img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--green-pale); }
.beitrag-rubrik { font-size: 12.5px; font-weight: 600; color: var(--green); margin-bottom: 6px; }
.beitrag-titel {
  font-family: 'Epilogue', sans-serif; font-size: 20px; font-weight: 700;
  letter-spacing: -0.3px; line-height: 1.3; color: var(--black); margin-bottom: 8px;
}
.beitrag:hover .beitrag-titel { color: var(--green); }
.beitrag-text { font-size: 15px !important; color: #555 !important; line-height: 1.6 !important; margin-bottom: 6px !important; }
.beitrag-info { font-size: 13px; color: var(--gray); }

@media (max-width: 700px) {
  .ratgeber-seite { padding: 36px 20px 60px; }
  .ratgeber-seite h1 { font-size: 30px; letter-spacing: -1px; }
  .ratgeber-seite .einleitung { font-size: 17px; }
  .ratgeber-seite h2 { font-size: 21px; margin-top: 36px; }
  .beitrag { grid-template-columns: 1fr; gap: 12px; }
  .aktion-kasten { padding: 22px 18px; }
  .ratgeber-seite .knopf { flex: 1 1 100%; }
}

/* Inhaltsverzeichnis im Artikel (r2) */
.inhalt-kasten { background: var(--gray-light); border-radius: 12px; padding: 18px 22px 12px; margin: 8px 0 12px; }
.inhalt-titel { font-family: 'Epilogue', sans-serif; font-size: 16px; font-weight: 700; color: var(--black); margin-bottom: 8px; }
.inhalt-kasten ul { list-style: none; margin: 0 !important; padding: 0; }
.inhalt-kasten li { margin: 0 0 6px; font-size: 15px; }
.inhalt-kasten a { text-decoration: none; }
.inhalt-kasten a:hover { text-decoration: underline; }
.ratgeber-seite h2[id] { scroll-margin-top: 84px; }

/* r3: Tabelle auf dem Handy als Liste statt seitlich verschiebbar */
@media (max-width: 560px) {
  .ratgeber-seite table { min-width: 0; }
  .ratgeber-seite thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .ratgeber-seite table, .ratgeber-seite tbody, .ratgeber-seite tr, .ratgeber-seite td { display: block; }
  .ratgeber-seite tr { border-top: 1px solid var(--border); padding: 12px 16px; }
  .ratgeber-seite tbody tr:first-child { border-top: 0; }
  .ratgeber-seite td { border-top: 0; padding: 0; }
  .ratgeber-seite td:first-child { font-weight: 600; color: var(--black); margin-bottom: 6px; }
  .ratgeber-seite td:nth-child(2), .ratgeber-seite td:nth-child(3) { display: inline-block; vertical-align: middle; }
  .ratgeber-seite td:nth-child(2) { margin-right: 8px; }
  .ratgeber-seite td:nth-child(3) { font-size: 14px; color: var(--gray); }
}

/* r4: Kategorienamen in der Tabelle sind Links in die Suche */
.ratgeber-seite td a { font-weight: 500; }
@media (max-width: 560px) {
  .ratgeber-seite td:nth-child(3) a { color: var(--green); }
}
