/* Lesespalte und Tabellen. Farben, Radien und Abstände aus style.css (Karten, process-step, Preistabelle). */

.ratgeber-prose {
    max-width: 42rem;
}

.ratgeber-prose p,
.ratgeber-prose li {
    line-height: 1.6;
}

.ratgeber-prose h2 {
    margin-top: 28px;
}

.ratgeber-prose h2:first-child {
    margin-top: 0;
}

.ratgeber-prose h3 {
    margin: 18px 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #001633;
}

.ratgeber-prose .steps-list {
    margin: 0 0 14px;
}

.ratgeber-prose .process-step {
    margin: 0 0 14px;
}

.hero-image-photo.hero-image-photo--diagram {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: var(--hero-ratio, 18 / 11);
    border: 1px solid #e0e4f0;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

.hero-image-photo.hero-image-photo--diagram img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ratgeber-figure {
    margin: 0 0 14px;
}

.ratgeber-figure picture {
    display: block;
}

@media (max-width: 640px) {
    .hero-image-photo.hero-image-photo--diagram[style*="--hero-narrow"] {
        aspect-ratio: var(--hero-narrow);
    }

    .ratgeber-figure[style*="--figure-narrow"] img {
        aspect-ratio: var(--figure-narrow);
    }
}

.ratgeber-figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e4f0;
    border-radius: 16px;
    background: #ffffff;
}

.ratgeber-figure figcaption {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #4d5a72;
}

.ratgeber-table-wrap {
    overflow-x: auto;
    margin: 0 0 14px;
}

.ratgeber-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e0e4f0;
    border-radius: 16px;
}

.ratgeber-table th,
.ratgeber-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #edf0f7;
    font-size: 15px;
    color: #4d5a72;
    vertical-align: top;
}

.ratgeber-table th {
    background: #f8fafc;
    color: #001633;
    font-weight: 700;
}

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