
/* Landing pages "Wir kaufen" (layout Ratgeber) */
.rg-hero {
    background: linear-gradient(115deg, rgba(1, 56, 89, .94) 0%, rgba(1, 56, 89, .82) 55%, rgba(235, 62, 74, .78) 100%), url('/fileadmin/user_upload/Slider/slider.webp') center / cover no-repeat;
    color: #fff;
    padding: 2.5rem 0 2.75rem;
}
.rg-breadcrumb { font-size: .875rem; opacity: .85; margin-bottom: 1rem; }
.rg-breadcrumb a { color: #fff; text-decoration: none; }
.rg-breadcrumb a:hover { text-decoration: underline; }
.rg-breadcrumb span[aria-hidden] { margin: 0 .35rem; }
.rg-title { color: #fff; font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.15; margin: 0 0 .75rem; }
.rg-lead { font-size: 1.15rem; max-width: 46rem; margin: 0 0 1.5rem; opacity: .95; }
.rg-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.rg-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .8rem 1.4rem; border-radius: .5rem; font-weight: 600; font-size: 1rem;
    text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.rg-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); text-decoration: none; }
.rg-btn-call { background: #fff; color: #013859; }
.rg-btn-call:hover { color: #013859; }
.rg-btn-whatsapp { background: #25d366; color: #fff; }
.rg-btn-whatsapp:hover { color: #fff; }
.rg-btn-form { background: #eb3e4a; color: #fff; }
.rg-btn-form:hover { color: #fff; }
.rg-btn-block { display: flex; width: 100%; margin-top: .6rem; }
.rg-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.rg-trust li { position: relative; padding-left: 1.6rem; font-weight: 600; }
.rg-trust li::before {
    content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
    background: #fff; color: #013859; font-size: .8rem; line-height: 1.2rem; text-align: center;
}

.rg-body { padding-top: 2rem; padding-bottom: 1rem; }
.rg-card { background: #fff; border-radius: .75rem; box-shadow: 0 2px 14px rgba(1, 56, 89, .08); padding: 1.75rem; margin-bottom: 1.5rem; }
.rg-content { font-size: 1.05rem; line-height: 1.7; }
.rg-content > .frame:first-child p:first-child { font-size: 1.15rem; }
.rg-content .frame { margin: 0; padding: 0; }
.rg-content .frame-container, .rg-content .frame-inner { padding: 0; max-width: none; }
.rg-content h2 { font-size: 1.45rem; font-weight: 700; color: #013859; margin: 2rem 0 .75rem; padding-left: .8rem; border-left: 4px solid #eb3e4a; }
.rg-content ul { list-style: none; padding-left: 0; }
.rg-content ul li { position: relative; padding-left: 1.9rem; margin-bottom: .45rem; }
.rg-content ul li::before {
    content: "✓"; position: absolute; left: 0; top: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
    background: rgba(235, 62, 74, .12); color: #eb3e4a; font-size: .8rem; font-weight: 700; line-height: 1.3rem; text-align: center;
}
.rg-content ol { list-style: none; counter-reset: rgstep; padding-left: 0; display: grid; gap: .75rem; }
.rg-content ol li {
    counter-increment: rgstep; position: relative; padding: 1rem 1rem 1rem 3.6rem;
    background: #f6f8fa; border-radius: .6rem; border: 1px solid #e6ebf0;
}
.rg-content ol li::before {
    content: counter(rgstep); position: absolute; left: 1rem; top: 1rem; width: 2rem; height: 2rem; border-radius: 50%;
    background: #013859; color: #fff; font-weight: 700; line-height: 2rem; text-align: center;
}
.rg-content details { border: 1px solid #e6ebf0; border-radius: .6rem; margin-bottom: .6rem; background: #f9fafb; }
.rg-content details summary {
    cursor: pointer; list-style: none; padding: .9rem 2.5rem .9rem 1rem; font-weight: 600; color: #013859; position: relative;
}
.rg-content details summary::-webkit-details-marker { display: none; }
.rg-content details summary::after { content: "+"; position: absolute; right: 1rem; top: .65rem; font-size: 1.4rem; color: #eb3e4a; }
.rg-content details[open] summary::after { content: "–"; }
.rg-content details p { padding: 0 1rem 1rem; margin: 0; }

.rg-sidebar { position: sticky; top: 6rem; }
.rg-contact-title { font-size: 1.1rem; font-weight: 700; color: #013859; margin: 0 0 .5rem; }
.rg-phone { display: block; font-size: 1.6rem; font-weight: 700; color: #eb3e4a; text-decoration: none; }
.rg-phone:hover { color: #eb3e4a; text-decoration: underline; }
.rg-hours { font-size: .9rem; color: #666; margin: .25rem 0 .5rem; }
.rg-more ul { list-style: none; padding: 0; margin: 0; }
.rg-more li a { display: block; padding: .55rem 0; border-bottom: 1px solid #eef1f4; color: #013859; text-decoration: none; }
.rg-more li a:hover, .rg-more li.active a { color: #eb3e4a; }
.rg-more li.active a { font-weight: 700; }
.rg-more-city { margin: .75rem 0 0; }
.rg-more-city a { color: #eb3e4a; font-weight: 600; text-decoration: none; }

.rg-form { padding: 1rem 0 3rem; scroll-margin-top: 5rem; }
.rg-form-title { font-size: 1.6rem; font-weight: 700; color: #013859; margin: 0 0 .25rem; }
.rg-form-lead { color: #555; margin-bottom: 1.25rem; }
.rg-form .frame-header { display: none; }
.rg-form .frame, .rg-form .frame-container, .rg-form .frame-inner { padding: 0; margin: 0; max-width: none; }

@media (max-width: 991.98px) {
    .rg-sidebar { position: static; }
    .rg-card { padding: 1.25rem; }
}
@media (max-width: 575.98px) {
    .rg-hero { padding: 1.75rem 0 2rem; }
    .rg-cta .rg-btn { flex: 1 1 100%; }
    .rg-lead { font-size: 1.05rem; }
}

/* City overview page (layout Uebersicht) */
.ov-search { max-width: 34rem; margin: 0 0 1.5rem; }
.ov-search input {
    width: 100%; padding: .9rem 1.1rem; border-radius: .5rem; border: 0; font-size: 1.1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.ov-search input:focus { outline: 3px solid rgba(255, 255, 255, .6); }
.ov-search-info { margin: .5rem 0 0; min-height: 1.4em; font-weight: 600; }
.ov-heading { font-size: 1.45rem; font-weight: 700; color: #013859; margin: 0 0 1rem; }
.ov-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ov-chip a {
    display: inline-block; padding: .4rem .85rem; border-radius: 2rem; background: #f3f5f8; border: 1px solid #e3e8ee;
    color: #013859; text-decoration: none; font-size: .95rem; transition: background .15s, color .15s, border-color .15s;
}
.ov-chip a:hover, .ov-chip a:focus { background: #eb3e4a; border-color: #eb3e4a; color: #fff; }
.ov-chips-featured .ov-chip a { padding: .55rem 1.1rem; font-weight: 600; background: #013859; border-color: #013859; color: #fff; }
.ov-chips-featured .ov-chip a:hover { background: #eb3e4a; border-color: #eb3e4a; }
.ov-state { border: 1px solid #e6ebf0; border-radius: .6rem; margin-bottom: .6rem; background: #fff; }
.ov-state > summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1rem 3rem 1rem 1.1rem; font-size: 1.15rem; font-weight: 700; color: #013859; position: relative;
}
.ov-state > summary::-webkit-details-marker { display: none; }
.ov-state > summary::after { content: "+"; position: absolute; right: 1.1rem; font-size: 1.5rem; color: #eb3e4a; }
.ov-state[open] > summary::after { content: "–"; }
.ov-state[open] > summary { border-bottom: 1px solid #eef1f4; }
.ov-count { font-size: .9rem; font-weight: 600; color: #6b7785; background: #f3f5f8; border-radius: 2rem; padding: .15rem .7rem; }
.ov-state-body { padding: .5rem 1.1rem 1.1rem; }
.ov-district { padding: .75rem 0; border-bottom: 1px dashed #e6ebf0; }
.ov-district:last-child { border-bottom: 0; }
.ov-district h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; color: #013859; }
.ov-district h3 a { color: #013859; text-decoration: none; }
.ov-district h3 a::after { content: " ›"; color: #eb3e4a; }
.ov-district h3 a:hover { color: #eb3e4a; }
.ov-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.ov-cta > div:first-child { flex: 1 1 26rem; }
.ov-cta p { margin-bottom: .5rem; }
.ov-cta-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.ov-cta .rg-btn-call { border: 1px solid #013859; }
.ov-special ul { display: inline; list-style: none; padding: 0; margin: 0; }
.ov-special li { display: inline; }
.ov-special li + li::before { content: " · "; color: #999; }
.ov-special a { color: #eb3e4a; }
@media (max-width: 575.98px) {
    .ov-chip a { font-size: .9rem; }
    .ov-cta-buttons .rg-btn { flex: 1 1 100%; }
}



/* Shared page design: city, district and home pages */
.rg-section { padding: 1rem 0 3rem; scroll-margin-top: 5rem; }
.rg-section .frame-type-form_formframework .frame-header { display: none; }
.rg-section .frame, .rg-section .frame-container, .rg-section .frame-inner { max-width: none; padding-left: 0; padding-right: 0; }
.rg-section .frame-type-menu_pages { margin-top: 2rem; }
.rg-section .frame-type-menu_pages ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.rg-section .frame-type-menu_pages li a {
    display: inline-block; padding: .4rem .85rem; border-radius: 2rem; background: #f3f5f8; border: 1px solid #e3e8ee;
    color: #013859; text-decoration: none; font-size: .95rem;
}
.rg-section .frame-type-menu_pages li a:hover { background: #eb3e4a; border-color: #eb3e4a; color: #fff; }
.rg-section .frame-type-menu_pages .frame-header h2, .rg-section .frame-type-menu_pages .element-header { font-size: 1.25rem; color: #013859; }
.rg-btn-outline { border: 1px solid #013859; }
.rg-cta-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.rg-cta-card > div:first-child { flex: 1 1 26rem; }

.rg-content > h2:first-child, .rg-content > .frame:first-child h2:first-child { margin-top: 0; }
.home-blog .card-title.text-truncate { white-space: normal; overflow: visible; }

/* City data block inside the content card */
.rg-content .city-data h2 { margin-top: 2.25rem; }
.rg-content .city-data h3 { font-size: 1.15rem; font-weight: 700; color: #013859; margin: 1.5rem 0 .6rem; }
.rg-content .city-data address, .rg-content .rg-office { background: #f6f8fa; border: 1px solid #e6ebf0; border-radius: .6rem; padding: 1rem 1.1rem; }
.rg-content .rg-office address { background: none; border: 0; padding: 0; }
.rg-content .rg-chips { margin-bottom: 1.25rem; }
.rg-content .rg-chips li::before { content: none; }
.rg-content .rg-chips li { padding-left: 0; margin-bottom: 0; }
.rg-table table { font-size: .95rem; }
.rg-table thead th { color: #013859; border-bottom: 2px solid #e6ebf0; }
.rg-table tbody tr:nth-child(odd) { background: #f9fafb; }

/* Home page */
.home-section { padding: 1.25rem 0; }
.home-section:first-child { padding-top: 2rem; }
.home .frame { padding-top: 0; padding-bottom: 0; }
.home .frame-container, .home .frame-inner { max-width: none; padding-left: 0; padding-right: 0; }
.home h2, .home .element-header { color: #013859; font-weight: 700; }
.home h3 { color: #013859; }
.home-intro-image img { max-width: 100%; height: auto; }
.home-service .frame-type-html .bg-white {
    border-radius: .75rem; box-shadow: 0 2px 14px rgba(1, 56, 89, .08); height: calc(100% - .5rem);
    border-top: 4px solid #eb3e4a;
}
.home-service .frame-type-html .bg-white p.mb-3 { font-size: 1.15rem; font-weight: 700; color: #013859; }
.home-service .frame-type-textpic, .home-service .frame-type-text { margin-bottom: 1rem; }
.home-text ul { padding-left: 1.2rem; }
.home-text h3 { margin-top: 1.25rem; }
.home-testimonials .rg-card { text-align: center; }
.home-blog .frame-type-news_pi1 { padding: 0; }

/* Frames inside cards: the theme collapses spacing between frames with a negative margin, which overlaps once the frame padding is removed */
.home .frame + .frame, .rg-content .frame + .frame, .rg-section .frame + .frame { margin-top: 1.25rem; }

/* Purchase form: compact labels everywhere */
.frame-type-form_formframework .form-label, .frame-type-form_formframework legend {
    font-size: 1rem; font-weight: 600; color: #013859; margin-bottom: .3rem;
}
.frame-type-form_formframework legend { float: none; width: auto; }
.frame-type-form_formframework .form-check-label { font-size: 1rem; font-weight: 400; }
.frame-type-form_formframework .form-control, .frame-type-form_formframework .form-select { border-radius: .4rem; }
.frame-type-form_formframework .btn-primary, .frame-type-form_formframework [type="submit"] { padding: .7rem 2rem; font-weight: 600; border-radius: .5rem; }

/* Contact page */
.rg-section-card .rg-section { padding: 0; }
.rg-contact-info h2, .rg-contact-info .element-header { font-size: 1.1rem; border-left: 0; padding-left: 0; margin: 0 0 .6rem; }
.rg-contact-info .table { font-size: .95rem; margin-bottom: 0; }
.rg-contact-info .table td { padding: .35rem .25rem; }
.rg-contact-info img { max-width: 100%; height: auto; border-radius: .5rem; }
.rg-contact-info .textpic { display: block; }
.rg-contact-info .textpic-item { width: 100% !important; max-width: 100%; flex: none; padding: 0; }
.rg-contact-info .textpic-gallery { margin-bottom: 1rem; }
.rg-contact-info .table-responsive { overflow: visible; }
.rg-contact-info .table { width: 100%; }
.rg-contact-info .table td:last-child { white-space: nowrap; text-align: right; }

/* Link lists ("Wir sind auch in folgenden Städten", footer): chips instead of red boxes */
.rg-section .frame-type-menu_pages li, .frame-type-menu_pages .rg-chip-reset { background: none; padding: 0; margin: 0; }
.rg-section .frame-type-menu_pages { margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid #eef1f4; }
.rg-section .frame-type-menu_pages li a { color: #013859; }
.rg-section .frame-type-menu_pages li a:hover { color: #fff; }
.nuetzliche-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.nuetzliche-links-item { background: none; padding: 0; margin: 0; }
.nuetzliche-links .nuetzliche-links-item a {
    display: inline-block; padding: .35rem .85rem; border-radius: 2rem; border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; font-size: .95rem;
}
.nuetzliche-links .nuetzliche-links-item a:hover { background: #eb3e4a; border-color: #eb3e4a; color: #fff; }
.frame-type-form_formframework [type="submit"], .frame-type-form_formframework .btn-primary { color: #fff; }
.frame-type-form_formframework [type="submit"]:hover, .frame-type-form_formframework .btn-primary:hover { color: #fff; filter: brightness(.95); }

/* Guide section */
.rg-guides { margin-top: 1rem; }
.home-guides { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
.home-guides a.home-guide { display: block; background: #fff; border-radius: 12px; padding: 1.25rem; box-shadow: 0 4px 18px rgba(1,56,89,.08); color: #013859; text-decoration: none; }
.home-guides a.home-guide:hover { box-shadow: 0 6px 24px rgba(1,56,89,.16); }
.home-guides strong { display: block; font-size: 1.1rem; margin-bottom: .4rem; }
.home-guides span { color: #52606d; font-size: .95rem; }
.home-guides em { display: block; margin-top: .6rem; color: #eb3e4a; font-style: normal; font-weight: 600; }
@media (min-width: 576px) { .home-guides { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .home-guides { grid-template-columns: repeat(4, 1fr); } }

/* Footer credit */
.footer-credit { margin: .25rem 0 0; font-size: .85rem; opacity: .8; }
.footer-credit a { color: inherit; text-decoration: underline; }
