/* =========================================================================
   ratgeber.css
   =========================================================================
   Ergänzt die globale styles.css für den Ratgeber-Bereich.
   Stil: minimal, ruhig, textbasiert – keine News-Cards, keine Bilder,
   keine Badges. Klare Hierarchie: Themenüberschrift → Featured-Eintrag →
   vertiefende Einträge.
   ========================================================================= */

/* ---- 1. Ratgeber-Übersicht: Container ---------------------------------- */

.ratgeber-overview {
    max-width: 50rem;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ratgeber-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin: 1.5rem 0 2.5rem;
    padding: 1rem 1.25rem;
    background-color: #f8fafc;
    border-left: 4px solid #7e22ce;
    border-radius: 0 0.375rem 0.375rem 0;
}

/* ---- 2. Themenbereich --------------------------------------------------- */

.ratgeber-topic {
    margin: 2.5rem 0 1.5rem;
}

.ratgeber-topic:first-of-type {
    margin-top: 0.5rem;
}

.ratgeber-topic-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9d5ff;
}

/* ---- 3. Featured-Artikel (dezent hervorgehoben) ------------------------- */

.ratgeber-featured {
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    background-color: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 0.5rem;
}

.ratgeber-featured-title {
    margin: 0 0 0.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.35;
}

.ratgeber-featured-title a {
    color: #0f172a;
    text-decoration: none;
}

.ratgeber-featured-title a:hover {
    color: #7e22ce;
    text-decoration: underline;
}

.ratgeber-featured-teaser {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #475569;
    margin: 0.5rem 0 0.75rem;
}

.ratgeber-featured-cta {
    display: inline-block;
    color: #7e22ce;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
}

.ratgeber-featured-cta:hover {
    text-decoration: underline;
}

/* ---- 4. Vertiefende Artikel (kompakte Liste) ---------------------------- */

.ratgeber-articles {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ratgeber-article {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.ratgeber-article:last-child {
    border-bottom: none;
}

.ratgeber-article-title {
    margin: 0 0 0.25rem;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
}

.ratgeber-article-title a {
    color: #1e293b;
    text-decoration: none;
}

.ratgeber-article-title a:hover {
    color: #7e22ce;
    text-decoration: underline;
}

.ratgeber-article-teaser {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #64748b;
}

.ratgeber-article-cta {
    display: inline-block;
    margin-top: 0.25rem;
    color: #7e22ce;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.ratgeber-article-cta:hover {
    text-decoration: underline;
}

/* ---- 5. Artikelseite: Container ---------------------------------------- */

.ratgeber-article-page {
    max-width: 50rem;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ratgeber-article-page .breadcrumb {
    margin-top: 0.5rem;
}

.ratgeber-article-body {
    margin-top: 1.5rem;
}

.ratgeber-article-body h2 {
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 2px solid #f3e8ff;
    padding-bottom: 0.5rem;
}

.ratgeber-article-body h3 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #334155;
}

.ratgeber-article-body h4 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #334155;
}

.ratgeber-article-body p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #334155;
    margin: 0 0 1rem;
}

.ratgeber-article-body ul,
.ratgeber-article-body ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.ratgeber-article-body li {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #334155;
}

.ratgeber-article-body ul li::marker {
    color: #7e22ce;
}

.ratgeber-article-body a {
    color: #7e22ce;
    text-decoration: underline;
}

.ratgeber-article-body a:hover {
    color: #581c87;
}

.ratgeber-article-body blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 4px solid #7e22ce;
    color: #475569;
    background-color: #f8fafc;
    border-radius: 0 0.375rem 0.375rem 0;
}

.ratgeber-article-body blockquote p {
    margin: 0;
}

.ratgeber-article-body blockquote p + p {
    margin-top: 0.75rem;
}

.ratgeber-article-body hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

.ratgeber-article-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875em;
    background-color: #f1f5f9;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    color: #0f172a;
}

.ratgeber-article-body pre {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f1f5f9;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.ratgeber-article-body pre code {
    background: none;
    padding: 0;
}

.ratgeber-article-body strong {
    color: #0f172a;
    font-weight: 700;
}

/* ---- 6. Tabellen (responsive) ------------------------------------------ */

.ratgeber-article-body .table-wrap {
    margin: 1.25rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ratgeber-article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #334155;
    min-width: 30rem;
}

.ratgeber-article-body table thead {
    background-color: #faf5ff;
}

.ratgeber-article-body table th {
    padding: 0.75rem 0.875rem;
    text-align: left;
    font-weight: 700;
    color: #581c87;
    border-bottom: 2px solid #e9d5ff;
}

.ratgeber-article-body table td {
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid #e2e8f0;
}

.ratgeber-article-body table tbody tr:last-child td {
    border-bottom: none;
}

.ratgeber-article-body table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* ---- 7. Inhaltsverzeichnis --------------------------------------------- */

.ratgeber-toc {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.5rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.ratgeber-toc-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.ratgeber-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc;
}

.ratgeber-toc-list li {
    margin-bottom: 0.4rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.ratgeber-toc-list li a {
    color: #475569;
    text-decoration: none;
}

.ratgeber-toc-list li a:hover {
    color: #7e22ce;
    text-decoration: underline;
}

.ratgeber-toc-list li.ratgeber-toc-sub {
    padding-left: 1.25rem;
    font-size: 0.875rem;
}

.ratgeber-toc-list li.ratgeber-toc-sub::before {
    content: "›";
    color: #c4b5fd;
    margin-right: 0.4rem;
}

/* ---- 8. Weiterführende Beiträge (Artikelende) -------------------------- */

.ratgeber-further-reading {
    margin: 2.5rem 0 0;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-top: 2px solid #e9d5ff;
    border-radius: 0.5rem;
}

.ratgeber-further-reading-title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
}

.ratgeber-further-reading-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ratgeber-further-reading-list li {
    margin-bottom: 0.5rem;
}

.ratgeber-further-reading-list a {
    color: #7e22ce;
    font-weight: 500;
    text-decoration: none;
}

.ratgeber-further-reading-list a:hover {
    text-decoration: underline;
}

/* ---- 9. Responsive ----------------------------------------------------- */

@media (max-width: 640px) {
    .ratgeber-overview,
    .ratgeber-article-page {
        max-width: 100%;
        margin: 0;
        padding: 1.5rem 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    .ratgeber-topic-title {
        font-size: 1.375rem;
    }

    .ratgeber-featured {
        padding: 1.25rem 1rem;
    }

    .ratgeber-featured-title {
        font-size: 1.25rem;
    }

    .ratgeber-toc {
        padding: 1rem 1.125rem;
    }

    .ratgeber-article-body h2 {
        font-size: 1.25rem;
    }

    .ratgeber-article-body h3 {
        font-size: 1.125rem;
    }

    .ratgeber-article-body table {
        min-width: 20rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .ratgeber-overview,
    .ratgeber-article-page {
        margin: 1.5rem auto;
        padding: 2.25rem 1.75rem;
    }
}