/* =====================================================================
   Raumgast – Marktplatz (Suche, Inserat, Kategorien, Anbieter, Rechtstexte)
   Präfix: rg-mk-   ·   baut auf rg-ui.css + raumgast.css auf
   ===================================================================== */

/* ---------------------------------------------------------------- Suchleiste (Hero + Suchseite) */
.sp-search { padding: 1rem 1rem 1.1rem; border-radius: 22px; }
.sp-search .form-label { font-size: .8rem; font-weight: 600; color: var(--rg-muted); margin-bottom: .3rem; padding-left: .2rem; }
.sp-search .form-control, .sp-search .form-select { min-height: 50px; }
.sp-search input[type="time"].form-control, .sp-search input[type="date"].form-control { padding-left: .8rem; padding-right: .6rem; }
.sp-search input[type="number"].form-control { padding-right: .5rem; }

/* Segment-Umschalter Stundenweise / Übernachtung */
.rg-mk-seg { display: inline-flex; gap: 2px; padding: 4px; background: var(--rg-well); border-radius: 14px; }
.rg-mk-seg-btn {
    display: inline-flex; align-items: center; gap: .45rem; border: 0; background: transparent; color: var(--rg-muted);
    font-weight: 600; font-size: .92rem; padding: .45rem .95rem; border-radius: 10px; transition: background .15s, color .15s, box-shadow .15s;
}
.rg-mk-seg-btn:hover { color: var(--rg-ink); }
.rg-mk-seg-btn.is-active { background: #fff; color: var(--rg-ink); box-shadow: 0 1px 2px rgba(20,26,51,.08), 0 2px 8px -2px rgba(20,26,51,.12); }
.rg-mk-seg-btn.is-active i { color: var(--rg-primary); }
.rg-mk-seg-btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(var(--rg-primary-rgb), .3); }

.rg-mk-sf-grid { display: grid; gap: .65rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.rg-mk-sf-q, .rg-mk-sf-when { grid-column: 1 / -1; }
.rg-mk-sf-when { display: grid; gap: .65rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
.rg-mk-sf-when.is-overnight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rg-mk-sf-go .btn { width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 14px; }
@media (max-width: 575.98px) {
    .rg-mk-sf-when.is-hourly { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rg-mk-sf-when.is-hourly > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
    .rg-mk-sf-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .rg-mk-sf-q, .rg-mk-sf-cat, .rg-mk-sf-ort { grid-column: span 2; }
    .rg-mk-sf-when { grid-column: span 4; }
    .rg-mk-sf-p, .rg-mk-sf-go { grid-column: span 1; }
}
@media (min-width: 1200px) {
    .rg-mk-sf-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .95fr) minmax(0, 2.5fr) minmax(0, .65fr) auto; }
    .rg-mk-sf-q, .rg-mk-sf-cat, .rg-mk-sf-ort, .rg-mk-sf-when, .rg-mk-sf-p, .rg-mk-sf-go { grid-column: auto; }
    .rg-mk-sf-go .btn { padding-inline: 1.4rem; }
}

/* ---------------------------------------------------------------- Inseratskarte */
.rg-mk-card { position: relative; display: flex; flex-direction: column; }
.rg-mk-card-media {
    position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--rg-well);
    box-shadow: inset 0 0 0 1px rgba(20,26,51,.05);
}
.rg-mk-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.rg-mk-card:hover .rg-mk-card-media img { transform: scale(1.045); }
.rg-mk-card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--rg-faint); font-size: 2.5rem; background: var(--rg-surface); }
.rg-mk-card-chips { position: absolute; left: .7rem; bottom: .7rem; right: 3.5rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.rg-mk-chip {
    display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; padding: .28rem .6rem; border-radius: 999px;
    background: rgba(255,255,255,.94); color: var(--rg-ink); box-shadow: 0 2px 8px rgba(20,26,51,.12);
}
.rg-mk-chip.is-instant { background: var(--rg-ink); color: #fff; }
.rg-mk-chip.is-instant i { color: #5eead4; }
.rg-mk-fav {
    position: absolute; top: .7rem; right: .7rem; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
    background: rgba(255,255,255,.95); color: var(--rg-ink); box-shadow: 0 4px 14px rgba(20,26,51,.18);
    transition: transform .15s ease, color .15s;
}
.rg-mk-fav:hover { transform: scale(1.08); color: var(--rg-red); }
.rg-mk-fav:active { transform: scale(.94); }
.rg-mk-fav.is-on { color: var(--rg-red); }
.rg-mk-fav:focus-visible { outline: 3px solid rgba(var(--rg-primary-rgb), .45); outline-offset: 2px; }
.rg-mk-card-body { padding: .8rem .15rem 0; }
.rg-mk-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.rg-mk-card-title { font-family: var(--sp-font-body); font-size: 1rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; margin: 0; min-width: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rg-mk-card-title a { color: var(--rg-ink); text-decoration: none; }
.rg-mk-card-title a:focus-visible { outline: 0; }
.rg-mk-card:has(.rg-mk-card-title a:focus-visible) .rg-mk-card-media { outline: 3px solid rgba(var(--rg-primary-rgb), .5); outline-offset: 3px; }
.rg-mk-card-meta { display: flex; align-items: center; gap: .35rem; color: var(--rg-muted); font-size: .88rem; margin-top: .2rem; white-space: nowrap; overflow: hidden; }
.rg-mk-card-price { margin-top: .4rem; font-variant-numeric: tabular-nums; }
.rg-mk-card-price strong { font-weight: 700; font-size: 1.02rem; }
.rg-mk-card-price span { color: var(--rg-muted); font-size: .88rem; }
.stars { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Suchseite */
.rg-mk-searchband { background: var(--rg-surface); border-bottom: 1px solid var(--rg-line); padding: 1.25rem 0; }
.rg-mk-searchband .sp-search { box-shadow: var(--rg-shadow); border: 1px solid var(--rg-line); }
.rg-mk-search-body { padding-top: 2rem; padding-bottom: 1rem; }

.rg-mk-filter-toggle { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; }
.rg-mk-filter-count { background: var(--rg-primary); color: #fff; font-size: .75rem; border-radius: 999px; padding: .05rem .5rem; }
.rg-mk-filters { padding: .25rem 0 0; }
@media (min-width: 992px) {
    .rg-mk-filters { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; padding-right: .5rem; scrollbar-width: thin; }
}
@media (max-width: 991.98px) {
    .rg-mk-filters { margin-top: .75rem; background: #fff; border: 1px solid var(--rg-line); border-radius: var(--rg-r-lg); padding: 1rem 1.1rem; box-shadow: var(--rg-shadow); }
}
.rg-mk-filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.rg-mk-filters-head h2 { font-size: 1.2rem; margin: 0; }
.rg-mk-fgroup { border: 0; margin: 0; padding: 1.05rem 0; border-top: 1px solid var(--rg-line); min-width: 0; }
.rg-mk-fgroup legend, .rg-mk-fgroup > .form-label { float: left; width: 100%; line-height: 1.3; font-size: .9rem; font-weight: 700; color: var(--rg-ink); margin-bottom: .6rem; padding: 0; }
.rg-mk-fgroup > legend + * { clear: both; }
.rg-mk-fgroup:first-of-type { border-top: 0; padding-top: .5rem; }
.rg-mk-fgroup .form-check-label { font-weight: 600; font-size: .95rem; }
.rg-mk-fhint { color: var(--rg-muted); font-size: .82rem; margin: .3rem 0 0 3.4em; }
.rg-mk-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.rg-mk-chips .btn { --bs-btn-padding-y: .38rem; --bs-btn-padding-x: .8rem; font-size: .86rem; display: inline-flex; align-items: center; gap: .35rem; }
.rg-mk-chips .btn i { opacity: .7; }
.rg-mk-chips .btn-check:checked + .btn i { opacity: 1; }
.rg-mk-chips .btn-check:focus-visible + .btn { box-shadow: 0 0 0 3px rgba(var(--rg-primary-rgb), .35); }
.rg-mk-star { color: #f59e0b; }
.btn-check:checked + .btn .rg-mk-star { color: #fcd34d; }
.rg-mk-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .4rem; }
.rg-mk-range-dash { color: var(--rg-faint); }

.rg-mk-results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.rg-mk-results-head h1 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; margin: 0; }
.rg-mk-results-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .5rem; color: var(--rg-muted); }
.rg-mk-count { font-variant-numeric: tabular-nums; font-weight: 500; }
.rg-mk-sort { display: flex; align-items: center; gap: .25rem; background: var(--rg-well); border-radius: 12px; padding-left: .85rem; }
.rg-mk-sort label { display: inline-flex; align-items: center; gap: .4rem; color: var(--rg-muted); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.rg-mk-sort .form-select { background-color: transparent; font-weight: 600; width: auto; min-height: 42px; border-radius: 12px; }
.rg-mk-sort .form-select:focus { background-color: #fff; }
.rg-mk-loading { display: flex; align-items: center; gap: .5rem; color: var(--rg-muted); font-size: .9rem; margin-bottom: 1rem; }
.rg-mk-empty { border: 2px dashed var(--rg-line-strong); border-radius: 24px; background: var(--rg-surface); }
@media (max-width: 575.98px) {
    .rg-mk-sort label span { display: none; }
    .rg-mk-results-head { align-items: flex-start; }
}

/* ---------------------------------------------------------------- Inseratsseite */
.rg-mk-listing { padding-top: 1.5rem; padding-bottom: 1rem; }
.rg-mk-crumbs { font-size: .88rem; margin: .5rem 0 .9rem; }
.rg-mk-crumbs .breadcrumb { --bs-breadcrumb-divider-color: var(--rg-faint); --bs-breadcrumb-item-padding-x: .45rem; }
.rg-mk-crumbs a { color: var(--rg-muted); text-decoration: none; font-weight: 500; }
.rg-mk-crumbs a:hover { color: var(--rg-primary); text-decoration: underline; }

.rg-mk-titleblock { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 1.5rem; margin-bottom: 1.4rem; }
.rg-mk-titleblock h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; margin: 0 0 .7rem; max-width: 22ch; }
.rg-mk-facts { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem; color: var(--rg-ink-2); font-size: .95rem; }
.rg-mk-facts > span:not(.badge), .rg-mk-facts > .stars { display: inline-flex; align-items: center; gap: .4rem; }
.rg-mk-facts i { color: var(--rg-muted); }
.rg-mk-facts .stars i { color: #f59e0b; }
.rg-mk-instant { color: #087453; font-weight: 600; }
.rg-mk-facts .rg-mk-instant i { color: var(--rg-mint); }
.rg-mk-save { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; }
.rg-mk-save.is-on i { color: var(--rg-red); }

/* Galerie: großes Titelbild + bis zu vier kleinere */
.rg-mk-gallery { position: relative; display: grid; gap: 8px; height: clamp(300px, 34vw, 500px); border-radius: 24px; overflow: hidden; margin-bottom: 2.5rem; background: var(--rg-surface); }
.rg-mk-gallery[data-count="1"] { grid-template-columns: 1fr; }
.rg-mk-gallery[data-count="2"] { grid-template-columns: 1.8fr 1fr; }
.rg-mk-gallery[data-count="3"] { grid-template-columns: 1.8fr 1fr; grid-template-rows: 1fr 1fr; }
.rg-mk-gallery[data-count="4"] { grid-template-columns: 1.8fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.rg-mk-gallery[data-count="4"] > .rg-mk-gallery-item:nth-child(4) { grid-column: 2 / span 2; }
.rg-mk-gallery[data-count="5"] { grid-template-columns: 1.8fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.rg-mk-gallery[data-count="3"] > .rg-mk-gallery-item:first-child,
.rg-mk-gallery[data-count="4"] > .rg-mk-gallery-item:first-child,
.rg-mk-gallery[data-count="5"] > .rg-mk-gallery-item:first-child { grid-row: span 2; }
.rg-mk-gallery.is-empty { display: block; }
.rg-mk-gallery-item { position: relative; display: block; padding: 0; border: 0; background: var(--rg-well); overflow: hidden; cursor: zoom-in; min-height: 0; }
.rg-mk-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s; }
.rg-mk-gallery-item:hover img { transform: scale(1.03); filter: brightness(.94); }
.rg-mk-gallery-item:focus-visible { outline: 0; box-shadow: inset 0 0 0 4px rgba(var(--rg-primary-rgb), .8); }
.rg-mk-gallery-all {
    position: absolute; right: 1rem; bottom: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: .45rem;
    border: 0; border-radius: 12px; padding: .55rem .95rem; background: #fff; color: var(--rg-ink); font-weight: 600; font-size: .9rem;
    box-shadow: 0 6px 20px rgba(20,26,51,.22);
}
.rg-mk-gallery-all:hover { background: var(--rg-well); }
@media (max-width: 767.98px) {
    .rg-mk-gallery { display: flex; height: auto; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; margin-inline: 0; scrollbar-width: none; background: transparent; }
    .rg-mk-gallery::-webkit-scrollbar { display: none; }
    .rg-mk-gallery-item { flex: 0 0 88%; aspect-ratio: 4 / 3; border-radius: 18px; scroll-snap-align: start; }
    .rg-mk-gallery[data-count="1"] .rg-mk-gallery-item { flex-basis: 100%; }
    .rg-mk-gallery-all { display: none; }
    .rg-mk-gallery.is-empty { aspect-ratio: 4 / 3; position: relative; }
}

.rg-mk-lightbox .modal-content { background: var(--rg-ink); color: #fff; overflow: hidden; }
.rg-mk-lightbox .modal-header { border-color: rgba(255,255,255,.1); }
.rg-mk-lightbox .modal-title { font-size: 1.05rem; }
.rg-mk-lightbox .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .8; }
.rg-mk-lightbox .carousel-item img { object-fit: contain; background: #0b1020; }
.rg-mk-cnav { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--rg-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.rg-mk-lightbox .carousel-control-prev, .rg-mk-lightbox .carousel-control-next { opacity: 1; width: 12%; }

/* Inhaltsabschnitte */
.rg-mk-section { padding: 2rem 0; border-top: 1px solid var(--rg-line); }
.rg-mk-section.pt-0 { border-top: 0; }
.rg-mk-h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.025em; margin: 0 0 1.1rem; }
.rg-mk-h2-stars { font-family: var(--sp-font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.rg-mk-lead { font-family: var(--sp-font-display); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.4; color: var(--rg-ink); margin-bottom: 1rem; max-width: 40ch; }
.rg-mk-prose { white-space: pre-line; font-size: 1.02rem; line-height: 1.7; color: var(--rg-ink-2); max-width: 68ch; }

.rg-mk-amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem 1.25rem; }
.rg-mk-amenities li { display: flex; align-items: center; gap: .75rem; font-weight: 500; }
.rg-mk-amenity-icon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--rg-primary-soft); color: var(--rg-primary); font-size: 1.15rem; }

.rg-mk-facts-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.15rem; }
.rg-mk-facts-list > li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: .9rem; align-items: start; }
.rg-mk-facts-list > li > i { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--rg-surface); color: var(--rg-ink-2); font-size: 1.1rem; border: 1px solid var(--rg-line); }
.rg-mk-facts-list strong { display: block; font-weight: 700; }
.rg-mk-facts-list span { color: var(--rg-muted); }
.rg-mk-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(118px, 100%), 1fr)); gap: .4rem; margin-top: .5rem; max-width: 560px; font-variant-numeric: tabular-nums; font-size: .9rem; }
.rg-mk-hours > div { background: var(--rg-surface); border-radius: 10px; padding: .4rem .65rem; color: var(--rg-ink-2); }
.rg-mk-hours > div span { display: inline-block; width: 1.9em; color: var(--rg-ink); font-weight: 700; }
.rg-mk-hours > div.is-closed { color: var(--rg-faint); background: transparent; border: 1px dashed var(--rg-line-strong); }

.rg-mk-location { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--rg-surface); border: 1px solid var(--rg-line); }
.rg-mk-location-pin { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--rg-primary); font-size: 1.3rem; box-shadow: 0 0 0 6px rgba(var(--rg-primary-rgb), .08); }

.rg-mk-host { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.rg-mk-host-avatar, .rg-mk-hosthero-avatar {
    width: 56px; height: 56px; border-radius: 18px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: var(--rg-ink); color: #fff; font-family: var(--sp-font-display); font-weight: 700; font-size: 1.4rem;
}
.rg-mk-host-name { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }

.rg-mk-reviews { display: grid; gap: 0; }
.rg-mk-review { padding: 1.2rem 0; border-bottom: 1px solid var(--rg-line); }
.rg-mk-review:first-child { padding-top: 0; }
.rg-mk-review header { display: flex; align-items: center; gap: .8rem; }
.rg-mk-review p { margin: .7rem 0 0; line-height: 1.6; }
.rg-mk-review.is-boxed { border: 1px solid var(--rg-line); border-radius: 18px; padding: 1.15rem 1.25rem; background: #fff; box-shadow: var(--rg-shadow); }
.rg-mk-review-avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--rg-primary-soft); color: var(--rg-primary); font-weight: 700; }
.rg-mk-reply { margin-top: .75rem; padding: .75rem .95rem; border-radius: 12px; background: var(--rg-surface); border-left: 3px solid var(--rg-primary); font-size: .92rem; }
.rg-mk-report-link { --bs-btn-color: var(--rg-muted); padding: 0; margin-top: .5rem; font-weight: 500; font-size: .85rem; }
.rg-mk-noreviews { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--rg-surface); color: var(--rg-muted); }
.rg-mk-noreviews i { font-size: 1.5rem; color: var(--rg-primary); }
.rg-mk-report { margin: .5rem 0 2rem; font-size: .92rem; max-width: 480px; }
.rg-mk-report summary { color: var(--rg-muted); cursor: pointer; font-weight: 500; display: inline-block; }
.rg-mk-report summary:hover { color: var(--rg-ink); }

/* Buchungskarte: der kräftigste Punkt der Seite */
.rg-mk-book {
    position: sticky; top: 88px; background: #fff; border: 1px solid var(--rg-line); border-radius: 24px; padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(20,26,51,.04), 0 30px 60px -28px rgba(20,26,51,.32);
}
.rg-mk-book-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.25rem; }
.rg-mk-book-amount { font-family: var(--sp-font-display); font-size: 2rem; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1; }
.rg-mk-book-tag { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; background: var(--rg-mint-soft); color: #087453; }
.rg-mk-book-fields { display: grid; gap: .9rem; }
.rg-mk-book .form-label { font-size: .85rem; margin-bottom: .35rem; }
.rg-mk-slots { font-size: .85rem; }
.rg-mk-slots-label { display: block; color: var(--rg-muted); font-weight: 600; margin-bottom: .35rem; }
.rg-mk-slots-list { display: flex; flex-wrap: wrap; gap: .3rem; font-variant-numeric: tabular-nums; }
.rg-mk-slots-list span { padding: .15rem .5rem; border-radius: 8px; background: var(--rg-mint-soft); color: #075e44; font-weight: 600; font-size: .8rem; }
.rg-mk-slots-list span.is-more { background: transparent; color: var(--rg-muted); }
.rg-mk-quote { margin-top: 1.1rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--rg-surface); font-size: .92rem; font-variant-numeric: tabular-nums; }
.rg-mk-quote-row { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.rg-mk-quote-row > :last-child { white-space: nowrap; }
.rg-mk-quote-total { display: flex; justify-content: space-between; gap: 1rem; margin-top: .55rem; padding-top: .7rem; border-top: 1px dashed var(--rg-line-strong); font-weight: 700; font-size: 1.1rem; }
.rg-mk-quote-note { color: var(--rg-muted); font-size: .82rem; }
.rg-mk-quote-due { margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--rg-line); color: var(--rg-ink-2); }
.rg-mk-book-cta { min-height: 56px; font-size: 1.05rem; }
.rg-mk-book-foot { color: var(--rg-muted); font-size: .85rem; text-align: center; margin: .75rem 0 0; }

.rg-mk-mobilebar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--rg-line); box-shadow: 0 -8px 24px -12px rgba(20,26,51,.2); font-variant-numeric: tabular-nums;
}
.rg-mk-mobilebar strong { font-size: 1.1rem; }
@media (max-width: 991.98px) {
    .rg-mk-book { position: static; }
    body:has(.rg-mk-mobilebar) .rg-footer { padding-bottom: 6rem; }
    #buchen { scroll-margin-top: 80px; }
}

/* ---------------------------------------------------------------- Kategorien & Anbieter */
.rg-mk-page { padding-top: 2.5rem; padding-bottom: 1rem; }
.rg-mk-catgroup { margin-bottom: 2.75rem; }
.rg-mk-catgroup-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.rg-mk-catgroup-head h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.45rem; font-weight: 700; letter-spacing: -.025em; margin: 0; }
.rg-mk-catgroup-head h2 > i { color: var(--rg-primary); font-size: 1.15rem; }
.rg-mk-count-pill { font-family: var(--sp-font-body); font-size: .85rem; font-weight: 700; letter-spacing: 0; background: var(--rg-well); color: var(--rg-muted); border-radius: 999px; padding: .1rem .6rem; }
.rg-mk-cat {
    display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--rg-ink); background: #fff;
    border: 1px solid var(--rg-line); border-radius: 20px; overflow: hidden; box-shadow: var(--rg-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.rg-mk-cat:hover { color: var(--rg-ink); transform: translateY(-3px); box-shadow: var(--rg-shadow-lg); border-color: var(--rg-line-strong); }
.rg-mk-cat:focus-visible { outline: 3px solid rgba(var(--rg-primary-rgb), .5); outline-offset: 3px; }
.rg-mk-cat-media { position: relative; display: block; aspect-ratio: 16 / 8; background: var(--rg-primary-soft); overflow: hidden; }
.rg-mk-cat-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-mk-cat-icon { position: absolute; left: 1rem; bottom: -20px; width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--rg-primary); font-size: 1.2rem; box-shadow: 0 6px 16px rgba(20,26,51,.16); }
.rg-mk-cat-media:not(:has(img)) .rg-mk-cat-icon { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); }
.rg-mk-cat-media { overflow: visible; }
.rg-mk-cat-text { display: flex; flex-direction: column; gap: .2rem; padding: 1.6rem 1.1rem 1.1rem; flex-grow: 1; }
.rg-mk-cat-name { font-family: var(--sp-font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.rg-mk-cat-desc { color: var(--rg-muted); font-size: .9rem; line-height: 1.45; }
.rg-mk-cat-count { margin-top: auto; padding-top: .5rem; color: var(--rg-primary); font-weight: 600; font-size: .88rem; }

.rg-mk-hosthero { background: var(--rg-surface); border-bottom: 1px solid var(--rg-line); padding: 2.75rem 0 2.25rem; }
.rg-mk-hosthero-inner { display: flex; align-items: center; gap: 1.25rem; }
.rg-mk-hosthero-avatar { width: 84px; height: 84px; border-radius: 26px; font-size: 2.2rem; background: linear-gradient(140deg, var(--rg-ink), var(--rg-primary)); box-shadow: 0 16px 32px -14px rgba(20,26,51,.55); }
.rg-mk-hosthero h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin: 0 0 .55rem; }
.rg-mk-hostbio { white-space: pre-line; max-width: 68ch; margin: 1.5rem 0 0; font-size: 1.05rem; line-height: 1.65; color: var(--rg-ink-2); }
@media (max-width: 575.98px) {
    .rg-mk-hosthero-inner { align-items: flex-start; }
    .rg-mk-hosthero-avatar { width: 60px; height: 60px; border-radius: 18px; font-size: 1.6rem; }
}

/* ---------------------------------------------------------------- Rechtstexte */
.rg-mk-legal { padding-top: 2.5rem; padding-bottom: 1rem; }
.rg-mk-legal-head { padding-bottom: 1.75rem; margin-bottom: 2rem; border-bottom: 1px solid var(--rg-line); }
.rg-mk-legal-head h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin: 0 0 .6rem; max-width: 20ch; }
.rg-mk-legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; color: var(--rg-muted); font-size: .92rem; }
.rg-mk-legal-meta a { color: var(--rg-muted); }
.rg-mk-legal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 992px) {
    .rg-mk-legal-grid.has-toc { grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; }
}
.rg-mk-toc { font-size: .9rem; }
@media (min-width: 992px) { .rg-mk-toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; } }
.rg-mk-toc-title { font-weight: 700; color: var(--rg-ink); margin-bottom: .6rem; font-size: .9rem; }
.rg-mk-toc ol { list-style: none; padding: 0 0 0 .1rem; margin: 0; border-left: 2px solid var(--rg-line); }
.rg-mk-toc a { display: block; padding: .32rem 0 .32rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--rg-muted); text-decoration: none; line-height: 1.35; }
.rg-mk-toc a:hover { color: var(--rg-ink); border-left-color: var(--rg-line-strong); }
.rg-mk-toc a.is-active { color: var(--rg-primary); border-left-color: var(--rg-primary); font-weight: 600; }
@media (max-width: 991.98px) {
    .rg-mk-toc { background: var(--rg-surface); border-radius: 16px; padding: 1rem 1.1rem; }
    .rg-mk-toc details summary { font-weight: 700; cursor: pointer; }
    .rg-mk-toc ol { margin-top: .6rem; }
}
