/* =========================================================
   Ratgeber "Unfallschaden am Auto" – Pillar Page + Content Cluster
   ========================================================= */

.rg-section {
    padding: 100px 0;
    scroll-margin-top: 100px;
    position: relative;
}

.rg-wrap {
    width: 80%;
    margin-left: 10%;
}

.rg-white { background: #fff; }
.rg-gray  { background: #f3f5f6; }
.rg-red   { background: #e84431; }
.rg-blue  { background: #074b60; }

.rg-section *, .rg-section *::before, .rg-section *::after {
    box-sizing: border-box;
}

/* ---------- Typografie ---------- */
.rg-section p {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 15px;
}

.rg-section h2 {
    font-size: 30px;
    line-height: 38px;
    margin-bottom: 20px;
}

.rg-section h3 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.rg-section p a {
    color: #e84431;
    font-weight: 500;
    text-decoration: underline;
}

.rg-red p, .rg-red h1, .rg-red h2, .rg-red h3, .rg-red li, .rg-red span, .rg-red p a,
.rg-blue p, .rg-blue h1, .rg-blue h2, .rg-blue h3, .rg-blue li, .rg-blue span, .rg-blue p a {
    color: #fff;
}

.rg-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e84431;
    margin-bottom: 15px;
}

.rg-red .rg-eyebrow, .rg-blue .rg-eyebrow { color: #fff; opacity: .85; }

.rg-center { text-align: center; }
.rg-narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---------- Grids ---------- */
.rg-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.rg-grid-2.rg-top { align-items: start; }

.rg-grid-3, .rg-grid-4 {
    display: grid;
    gap: 30px;
}

.rg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.rg-grid-4 { grid-template-columns: repeat(4, 1fr); }

.rg-mt { margin-top: 50px; }

/* ---------- Hero ---------- */
.rg-hero { padding: 120px 0; }

.rg-hero h1 {
    font-size: 40px;
    line-height: 48px;
    font-weight: 600;
    margin-bottom: 25px;
}

.rg-hero h1 span {
    display: block;
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
    margin-top: 10px;
}

.rg-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255,255,255,.6);
    padding: 6px 16px;
    margin-bottom: 30px;
    transition: .3s;
}

.rg-back:hover { background: #fff; color: #e84431; }
.rg-back svg { width: 16px; height: 16px; }

.rg-photo {
    position: relative;
}

.rg-photo img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

.rg-photo::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 25px;
    right: -25px;
    bottom: -25px;
    background: #074b60;
}

.rg-blue .rg-photo::before, .rg-photo.rg-photo-red::before { background: #e84431; }

.rg-badge {
    position: absolute;
    z-index: 2;
    left: -30px;
    bottom: -45px;
    background: #fff;
    padding: 18px 24px;
    display: flex;
    gap: 22px;
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
}

.rg-badge div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #074b60;
}

.rg-badge img {
    width: 38px;
    height: 38px;
    background: #e84431;
    border-radius: 50%;
    padding: 4px;
}

/* Inhaltsverzeichnis im Hero */
.rg-toc {
    background: #fff;
    padding: 35px 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

.rg-toc .rg-eyebrow { color: #e84431; opacity: 1; }

.rg-toc ol { counter-reset: toc; }

.rg-toc li {
    list-style: none;
    counter-increment: toc;
    border-bottom: 1px solid #e6e9ea;
}

.rg-toc li:last-child { border-bottom: 0; }

.rg-toc a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    color: #074b60;
    font-weight: 600;
    font-size: 16px;
    transition: .3s;
}

.rg-toc a::before {
    content: counter(toc);
    flex: 0 0 34px;
    height: 34px;
    border-radius: 50%;
    background: #e84431;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.rg-toc a:hover { color: #e84431; }

/* Icon-Panel im Hero (Gutachten / Kostenvoranschlag) */
.rg-iconpanel {
    background: #074b60;
    padding: 50px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

.rg-iconpanel > img {
    width: 130px;
    height: 130px;
    margin-bottom: 20px;
}

/* ---------- Icons ---------- */
.rg-ico {
    width: 28px;
    height: 28px;
    flex: none;
}

.rg-ico-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e84431;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex: none;
}

.rg-ico-circle img { width: 44px; height: 44px; }

.rg-blue .rg-ico-circle.rg-inv { background: #fff; color: #e84431; }
.rg-red .rg-ico-circle { background: #074b60; color: #fff; }

/* ---------- Buttons ---------- */
.rg-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.rg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #074b60;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: .3s;
    cursor: pointer;
}

.rg-btn svg { width: 20px; height: 20px; }
.rg-btn:hover { background: #e84431; }

.rg-red .rg-btn { background: #fff; color: #e84431; }
.rg-red .rg-btn:hover { background: #074b60; color: #fff; }
.rg-red .rg-btn.rg-ghost, .rg-blue .rg-btn.rg-ghost { background: transparent; border: 2px solid #fff; color: #fff; padding: 12px 26px; }
.rg-red .rg-btn.rg-ghost:hover, .rg-blue .rg-btn.rg-ghost:hover { background: #fff; color: #e84431; }
.rg-blue .rg-btn { background: #e84431; }
.rg-blue .rg-btn:hover { background: #fff; color: #074b60; }

/* ---------- Karten ---------- */
.rg-card {
    background: #fff;
    padding: 35px 30px;
    box-shadow: 0 12px 35px rgba(7,75,96,.10);
    border-top: 4px solid #e84431;
    height: 100%;
}

.rg-card h3 { color: #074b60; }

.rg-grid-2 > .rg-card { height: auto; }

.rg-card-link {
    display: block;
    transition: .3s;
}

.rg-card-link:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(7,75,96,.18); }

.rg-card-link .rg-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e84431;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 10px;
}

.rg-card-link .rg-more svg { width: 18px; height: 18px; transition: .3s; }
.rg-card-link:hover .rg-more svg { transform: translateX(5px); }

/* Themen-Kacheln, die in den Hero ragen */
.rg-tiles { padding-bottom: 60px; }
.rg-tiles + .rg-section { padding-top: 40px; }
.rg-tiles .rg-card .rg-card-title { font-size: 17px; line-height: 24px; }

/* Karten auf dunklem Grund */
.rg-blue .rg-card, .rg-red .rg-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.25);
    border-top: 4px solid #fff;
    box-shadow: none;
}

.rg-blue .rg-card h3, .rg-red .rg-card h3 { color: #fff; }

.rg-factor {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
}

.rg-factor .rg-ico-circle { margin-bottom: 0; width: 54px; height: 54px; }
.rg-factor p { margin: 0; font-weight: 500; font-size: 16px; line-height: 23px; }

/* ---------- Listen ---------- */
.rg-check { margin: 10px 0 20px; }

.rg-check li {
    list-style: none;
    position: relative;
    padding: 0 0 0 38px;
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 24px;
    color: #4c4c4c;
}

.rg-check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e84431 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.rg-blue .rg-check li, .rg-red .rg-check li { color: #fff; }
.rg-red .rg-check li::before { background-color: #074b60; }

.rg-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }

.rg-chips li {
    list-style: none;
    background: #eaf1f3;
    color: #074b60;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-left: 3px solid #e84431;
}

.rg-blue .rg-chips li, .rg-red .rg-chips li { background: rgba(255,255,255,.12); color: #fff; border-left-color: #fff; }

/* Nummerierte Checkliste in Kacheln */
.rg-numlist {
    counter-reset: num;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.rg-numlist li {
    list-style: none;
    counter-increment: num;
    background: #fff;
    padding: 22px 22px 22px 80px;
    position: relative;
    font-size: 16px;
    line-height: 24px;
    color: #074b60;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(7,75,96,.08);
    min-height: 90px;
    display: flex;
    align-items: center;
}

.rg-numlist li::before {
    content: counter(num, decimal-leading-zero);
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    font-weight: 700;
    color: #e84431;
}

/* ---------- Zitat / Hervorhebung ---------- */
.rg-quote {
    position: relative;
    padding: 40px 40px 30px 40px;
    background: #fff;
    border-left: 8px solid #e84431;
}

.rg-quote::before {
    content: "\201E";
    position: absolute;
    top: -40px;
    right: 25px;
    font-size: 140px;
    line-height: 1;
    font-weight: 700;
    color: #e84431;
    opacity: .2;
}

.rg-quote p {
    font-size: 22px !important;
    line-height: 32px !important;
    font-weight: 500;
    color: #074b60 !important;
    margin: 0;
}

.rg-callout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fdecea;
    border-left: 6px solid #e84431;
    padding: 25px 28px;
    margin-top: 20px;
}

.rg-callout .rg-ico { color: #e84431; width: 34px; height: 34px; }
.rg-callout p { margin: 0; color: #4c4c4c; }

.rg-fact {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    background: #074b60;
    padding: 18px 26px;
    margin-top: 10px;
}

.rg-fact b { font-size: 40px; line-height: 1; color: #fff; font-weight: 700; }
.rg-fact span { color: #fff; font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* ---------- Schritte im Zickzack-Layout ---------- */
.rg-stepsec { padding: 90px 0; }

.rg-zz {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 80px;
    align-items: center;
}

.rg-zz.rg-rev .rg-zz-text { order: 2; }

.rg-zz-text { max-width: 640px; }
.rg-zz.rg-rev .rg-zz-text { justify-self: end; }
.rg-zz-text h2 { color: #074b60; }

.rg-step-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.rg-step-head .rg-ico-circle { margin: 0; }
.rg-step-head > div { display: flex; flex-direction: column; }

.rg-step-num {
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    color: #e84431;
}

.rg-step-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #074b60;
    margin-top: 4px;
}

.rg-aside {
    background: #074b60;
    padding: 40px;
    box-shadow: 0 20px 45px rgba(7,75,96,.25);
}

.rg-section .rg-aside p, .rg-section .rg-aside p.rg-card-title, .rg-aside .rg-check li { color: #fff; }
.rg-aside .rg-fact { background: #e84431; margin: 0 0 25px; }

/* ---------- Vergleich ---------- */
.rg-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: stretch;
    margin: 40px 0;
}

.rg-compare .rg-card { text-align: left; }
.rg-compare .rg-card:last-child { border-top-color: #074b60; }
.rg-compare .rg-card:last-child .rg-ico-circle { background: #074b60; }

.rg-vs {
    align-self: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #e84431;
    color: #e84431;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

/* Stufen (Smart Repair → Lackierung → Karosserie) */
.rg-stages { counter-reset: stage; }
.rg-stages .rg-card { position: relative; padding-top: 50px; }

.rg-stages .rg-card::after {
    counter-increment: stage;
    content: counter(stage);
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 60px;
    line-height: 1;
    font-weight: 700;
    color: #e84431;
    opacity: .15;
}

.rg-scale {
    height: 8px;
    margin: 0 0 40px;
    background: linear-gradient(90deg, #f6b3aa, #e84431 50%, #074b60);
    position: relative;
}

.rg-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: -30px;
    margin-bottom: 40px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #074b60;
}

/* ---------- CTA-Band ---------- */
.rg-cta { padding: 80px 0; }

.rg-cta-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
}

.rg-cta .rg-btns { justify-content: flex-end; margin-top: 0; }

.rg-cta-icon {
    display: flex;
    align-items: center;
    gap: 25px;
}

.rg-cta-icon .rg-ico-circle { width: 80px; height: 80px; margin: 0; }
.rg-cta-icon .rg-ico-circle .rg-ico { width: 38px; height: 38px; }
.rg-cta h2 { margin-bottom: 10px; }

/* ---------- Ratgeber-Karten ---------- */
.rg-related h2 { color: #e84431; }
.rg-related .rg-card { text-align: left; }
.rg-related .rg-card .rg-card-title { font-size: 18px; line-height: 26px; }
.rg-related .rg-card.rg-active { border-top-color: #074b60; background: #eaf1f3; box-shadow: none; }
.rg-related .rg-card.rg-active .rg-ico-circle { background: #074b60; }
.rg-related .rg-card.rg-active .rg-more { color: #074b60; }
.rg-related .rg-btns { justify-content: center; margin-top: 50px; }

/* ---------- Responsive ---------- */
@media screen and (max-width: 1250px) {
    .rg-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .rg-numlist { grid-template-columns: repeat(2, 1fr); }
    .rg-badge { left: 20px; right: 20px; flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
}

@media screen and (max-width: 980px) {
    .rg-section { padding: 70px 0; }
    .rg-hero { padding: 80px 0; }
    .rg-wrap { width: 88%; margin-left: 6%; }
    .rg-grid-2, .rg-grid-3, .rg-cta-inner, .rg-zz { grid-template-columns: 1fr; gap: 40px; }
    .rg-zz.rg-rev .rg-zz-text { order: 0; }
    .rg-zz-text { max-width: none; }
    .rg-stepsec { padding: 60px 0; }
    .rg-zz .rg-photo { margin-right: 25px; }
    .rg-grid-2 .rg-photo { order: -1; margin-right: 25px; }
    .rg-hero .rg-grid-2 .rg-photo, .rg-hero .rg-grid-2 .rg-iconpanel, .rg-hero .rg-grid-2 .rg-toc { order: 0; }
    .rg-compare { grid-template-columns: 1fr; }
    .rg-vs { justify-self: center; }
    .rg-cta .rg-btns { justify-content: flex-start; }
    .rg-hero h1 { font-size: 30px; line-height: 38px; }
    .rg-hero h1 span { font-size: 20px; line-height: 28px; }
    .rg-section h2 { font-size: 24px; line-height: 32px; }
    .rg-badge { position: relative; left: 0; right: auto; bottom: 0; margin-top: 40px; flex-wrap: wrap; }
}

@media screen and (max-width: 640px) {
    .rg-grid-4, .rg-numlist { grid-template-columns: 1fr; }
    .rg-toc, .rg-iconpanel { padding: 30px 25px; }
    .rg-quote p { font-size: 19px !important; line-height: 28px !important; }
    .rg-scale-labels { font-size: 11px; }
    .rg-cta-icon { flex-direction: column; align-items: flex-start; gap: 20px; }
}

.rg-red strong, .rg-blue strong { color: #fff; font-weight: 700; }

/* Kartentitel und CTA-Titel ohne Überschriften-Tag */
.rg-section p.rg-card-title {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    color: #074b60;
    margin-bottom: 12px;
}

.rg-section p.rg-cta-title {
    font-size: 30px;
    line-height: 38px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
}

@media screen and (max-width: 980px) {
    .rg-section p.rg-cta-title { font-size: 24px; line-height: 32px; }
}
