/*
 * Ratgeber im Design E3: Übersicht (/ratgeber) und alle Artikel unter templates/landingpage/ratgeber/.
 * Gemeinsame Bausteine (Hero-Kachel, Fließtext .sw-text, FAQ, Abschluss) stehen in design_neu.css.
 */

/* Karten in der Übersicht und unter „Weitere Artikel“ */
.rg_uebersicht {
    padding-top: 72px;
}
.rg_karten {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.rg_karte {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border: 1px solid var(--sw-linie);
    border-radius: var(--sw-radius-karte);
    background: #FFFFFF;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.rg_karte:hover {
    border-color: var(--sw-gruen);
    box-shadow: var(--sw-schatten-karte);
    transform: translateY(-2px);
}
.rg_karte_icon {
    color: var(--sw-gruen);
}
.rg_karte_icon .sw-icon {
    width: 26px;
    height: 26px;
}
.rg_karte h2,
.rg_karte h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -0.015em;
}
.rg_karte p {
    flex: 1;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--sw-text-2);
}
.rg_karte_mehr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--sw-gruen);
}
.rg_karte_mehr .sw-icon {
    width: 16px;
    height: 16px;
}
.rg_weitere {
    padding-bottom: var(--sw-abstand);
}
.rg_weitere .rg_karten {
    margin-top: 40px;
}

/* Kopf eines Artikels */
.rg_info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.rg_info .sw-icon {
    width: 17px;
    height: 17px;
    color: var(--sw-gruen-hell);
}

/* Artikel */
.rg_aufbau {
    padding-top: 72px;
}
.rg_artikel {
    margin: 0 auto;
}
.rg_artikel h2 {
    margin-top: 56px;
    scroll-margin-top: 88px;
}
.rg_einleitung {
    font-size: 20px;
    line-height: 1.6;
    color: var(--sw-text);
}
.rg_inhalt {
    margin: 32px 0 8px;
    padding: 22px 26px;
    border-radius: var(--sw-radius-karte);
    background: var(--sw-flaeche);
}
.rg_inhalt > p {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sw-text-3);
}
.rg_inhalt ol {
    margin: 0;
}
.rg_inhalt li {
    margin-bottom: 4px;
}

/* Tabellen */
.rg_tabelle_wrapper {
    overflow-x: auto;
    margin: 0 0 20px;
    border: 1px solid var(--sw-linie);
    border-radius: var(--sw-radius-karte);
}
.rg_gut {
    font-weight: 700;
    color: var(--sw-gruen);
}

/* Listen mit Haken oder Kreuzen */
.rg_checkliste {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}
.rg_checkliste li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.rg_checkliste .sw-icon {
    width: 24px;
    height: 24px;
    margin-top: 2px;
    padding: 5px;
    border-radius: 50%;
    background: var(--sw-gruen-flaeche);
    color: var(--sw-gruen);
    stroke-width: 3;
}
.rg_checkliste--fehler .sw-icon {
    background: var(--sw-flaeche);
    color: var(--sw-text-3);
}

/* Nummerierte Schritte */
.rg_schritte {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    counter-reset: rg-schritt;
}
.rg_schritte li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 44px;
    counter-increment: rg-schritt;
}
.rg_schritte li::before {
    content: counter(rg-schritt);
    position: absolute;
    left: 0;
    top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sw-gruen);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}

/* Hinweiskästen */
.rg_kasten {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 8px 0 24px;
    padding: 22px 24px;
    border-radius: var(--sw-radius-karte);
    background: var(--sw-gruen-flaeche);
    color: var(--sw-text);
}
.rg_kasten > .sw-icon {
    width: 24px;
    height: 24px;
    color: var(--sw-gruen);
}
.rg_kasten p {
    margin: 4px 0 0;
}
.rg_kasten--achtung {
    background: #FFFFFF;
    border: 1px solid var(--sw-linie);
}
.rg_kasten--achtung > .sw-icon {
    color: var(--sw-text);
}

/* Vorlagen zum Kopieren */
.rg_vorlage {
    margin: 8px 0 24px;
    padding: 24px 26px;
    border: 1px dashed #C3CAD5;
    border-radius: var(--sw-radius-karte);
    background: var(--sw-flaeche);
}
.rg_vorlage_titel {
    font-size: 13px;
    font-weight: 700;
    color: var(--sw-gruen);
}
.rg_vorlage p:last-child {
    margin-bottom: 0;
}

/* Formel im Fließtext */
.rg_formel {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--sw-flaeche);
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.9em;
    color: var(--sw-text);
}

/* FAQ im Artikel */
.rg_faq {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;
}
.rg_faq summary {
    color: var(--sw-text);
}
