/* =====================================================================
   Raumgast – Vermieterbereich (livewire/host/*)
   Baut auf rg-ui.css auf; alle Klassen mit Präfix rg-h-.
   ===================================================================== */

/* ---------------------------------------------------------------- Kleinteile */
.rg-h-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rg-h-muted { color: var(--rg-muted); }
.rg-h-faint { color: var(--rg-faint); }
.rg-h-sub { color: var(--rg-muted); font-size: .85rem; line-height: 1.35; }
.rg-h-strong { font-weight: 600; color: var(--rg-ink); }
.rg-h-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Initialen-Avatar mit fünf ruhigen Tönen */
.rg-h-avatar {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .82rem; letter-spacing: .01em;
    background: var(--rg-primary-soft); color: #2d3db3;
}
.rg-h-avatar.lg { width: 52px; height: 52px; border-radius: 16px; font-size: 1.05rem; }
.rg-h-avatar.t1 { background: var(--rg-mint-soft); color: #087453; }
.rg-h-avatar.t2 { background: var(--rg-amber-soft); color: #8f4c04; }
.rg-h-avatar.t3 { background: var(--rg-sky-soft); color: #036596; }
.rg-h-avatar.t4 { background: #f3ecfd; color: #6b34c4; }

/* Datumsblock (Monat + Tag) */
.rg-h-date {
    width: 48px; flex-shrink: 0; text-align: center; border-radius: 12px; overflow: hidden;
    background: #fff; border: 1px solid var(--rg-line); line-height: 1;
}
.rg-h-date .m { display: block; background: var(--rg-surface); color: var(--rg-muted); font-size: .68rem; font-weight: 700; padding: .3rem 0 .25rem; border-bottom: 1px solid var(--rg-line); }
.rg-h-date .d { display: block; font-family: var(--sp-font-display); font-weight: 700; font-size: 1.15rem; padding: .35rem 0 .4rem; color: var(--rg-ink); font-variant-numeric: tabular-nums; }

/* Kartenkopf mit Titel + Link */
.rg-h-card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.15rem 1.35rem .35rem; }
.rg-h-card-head h2 { font-family: var(--sp-font-display); font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; margin: 0; display: flex; align-items: center; gap: .5rem; }
.rg-h-card-head .count { font-family: var(--sp-font-body); font-size: .78rem; font-weight: 700; color: var(--rg-muted); background: var(--rg-well); border-radius: 999px; padding: .15rem .55rem; }
.rg-h-card-head .count.hot { background: var(--rg-amber-soft); color: #8f4c04; }
.rg-h-card-head a.more { font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rg-h-card-head a.more:hover { text-decoration: underline; }

/* Zeilen-Listen in Karten */
.rg-h-list { padding: .35rem .6rem .6rem; }
.rg-h-row {
    display: flex; align-items: center; gap: .9rem; padding: .7rem .75rem; border-radius: 14px;
    color: inherit; text-decoration: none; transition: background-color .12s;
}
a.rg-h-row:hover { background: var(--rg-surface); color: inherit; }
a.rg-h-row:focus-visible { outline: 2px solid var(--rg-primary); outline-offset: 1px; }
.rg-h-row + .rg-h-row { box-shadow: 0 -1px 0 var(--rg-line); }
a.rg-h-row:hover + .rg-h-row, .rg-h-row:has(+ a.rg-h-row:hover) { box-shadow: none; }
.rg-h-row .main { flex: 1; min-width: 0; }
.rg-h-row .title { font-weight: 600; color: var(--rg-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-h-row .end { flex-shrink: 0; text-align: right; }
.rg-h-row .chev { color: var(--rg-faint); flex-shrink: 0; }
.rg-h-quiet { padding: 1rem 1.35rem 1.4rem; color: var(--rg-muted); display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.rg-h-quiet i { width: 34px; height: 34px; border-radius: 10px; background: var(--rg-well); color: var(--rg-faint); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------------------------------------------------------------- Übersicht */
.rg-h-setup { padding: 1.25rem 1.35rem; }
.rg-h-setup-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1rem; }
.rg-h-setup-head .progress { width: 180px; height: .5rem; --bs-progress-bar-bg: var(--rg-mint); }
.rg-h-setup-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.rg-h-setup-step {
    display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px;
    border: 1px solid var(--rg-line); background: #fff; text-decoration: none; color: inherit; transition: border-color .15s, background .15s;
}
.rg-h-setup-step:hover { border-color: var(--rg-primary); background: var(--rg-primary-soft); color: inherit; }
.rg-h-setup-step .mark {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--rg-line-strong); color: var(--rg-muted); font-weight: 700; font-size: .8rem; background: #fff;
}
.rg-h-setup-step.done { background: var(--rg-surface); border-color: transparent; }
.rg-h-setup-step.done .mark { background: var(--rg-mint); border-color: var(--rg-mint); color: #fff; }
.rg-h-setup-step.done .t { color: var(--rg-muted); text-decoration: line-through; text-decoration-color: var(--rg-line-strong); }
@media (max-width: 767.98px) { .rg-h-setup-steps { grid-template-columns: 1fr; } }
.rg-h-setup-step .t { font-weight: 600; display: block; line-height: 1.3; }
.rg-h-setup-step .s { font-size: .82rem; color: var(--rg-muted); display: block; margin-top: .15rem; line-height: 1.35; }

/* Einnahmen – dunkle Karte, das eine kräftige Element der Übersicht */
.rg-h-earn {
    background: var(--rg-ink); color: #c9cee0; border-radius: var(--rg-r-lg); padding: 1.35rem 1.4rem 1.2rem;
    box-shadow: var(--rg-shadow-lg); height: 100%; display: flex; flex-direction: column;
}
.rg-h-earn h2 { color: #fff; font-family: var(--sp-font-display); font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; margin: 0; }
.rg-h-earn .lead-num { font-family: var(--sp-font-display); color: #fff; font-size: 2.1rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: .9rem; }
.rg-h-earn .hint { color: #8b92a8; font-size: .85rem; }
.rg-h-bars { display: flex; align-items: flex-end; gap: .6rem; height: 190px; margin-top: auto; padding-top: 1.25rem; }
.rg-h-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; text-align: center; min-width: 0; }
.rg-h-bar .v { font-size: .72rem; color: #aab1c7; margin-bottom: .35rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rg-h-bar .bar-col { border-radius: 8px 8px 3px 3px; background: rgba(154, 166, 255, .28); min-height: 4px; }
.rg-h-bar.is-current .bar-col { background: linear-gradient(180deg, #9aa6ff, #3b4fd8); }
.rg-h-bar.is-current .v { color: #fff; font-weight: 600; }
.rg-h-bar .l { font-size: .8rem; margin-top: .5rem; color: #8b92a8; }
.rg-h-bar.is-current .l { color: #fff; font-weight: 600; }
.rg-h-earn .foot { border-top: 1px solid rgba(255,255,255,.1); margin-top: 1rem; padding-top: .85rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.rg-h-earn .foot strong { color: #fff; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Kalender */
.rg-h-monthnav { display: inline-flex; align-items: center; gap: .25rem; background: #fff; border: 1px solid var(--rg-line-strong); border-radius: 12px; padding: 3px; }
.rg-h-monthnav .btn { --bs-btn-padding-x: .55rem; --bs-btn-padding-y: .3rem; border: 0; border-radius: 9px; }
.rg-h-monthnav .label { font-family: var(--sp-font-display); font-weight: 700; min-width: 9.5rem; text-align: center; font-size: 1rem; letter-spacing: -.01em; }
.rg-h-legend { display: flex; flex-wrap: wrap; gap: .4rem; }
.rg-h-legend span { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--rg-line); border-radius: 999px; padding: .25rem .7rem .25rem .55rem; font-size: .82rem; font-weight: 500; color: var(--rg-ink-2); }
.rg-h-legend span::before { content: ""; width: .65rem; height: .65rem; border-radius: 4px; background: var(--c); }

.rg-h-cal { overflow: hidden; }
.rg-h-cal-week, .rg-h-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.rg-h-cal-week { background: var(--rg-surface); border-bottom: 1px solid var(--rg-line); }
.rg-h-cal-week div { padding: .6rem .75rem; font-size: .8rem; font-weight: 600; color: var(--rg-muted); }
.rg-h-cal-week div:nth-child(n+6) { color: var(--rg-faint); }
.rg-h-cal-cell {
    min-height: 118px; padding: .45rem .4rem .5rem; border-right: 1px solid var(--rg-line); border-bottom: 1px solid var(--rg-line);
    min-width: 0; display: flex; flex-direction: column; gap: 3px; background: #fff;
}
.rg-h-cal-cell:nth-child(7n) { border-right: 0; }
.rg-h-cal-grid > .rg-h-cal-cell:nth-last-child(-n+7) { border-bottom: 0; }
.rg-h-cal-cell.is-weekend { background: #fbfcfe; }
.rg-h-cal-cell.is-out { background: repeating-linear-gradient(135deg, #fafbfd 0 6px, #f5f7fb 6px 12px); }
.rg-h-cal-cell.is-out .n { color: var(--rg-faint); }
.rg-h-cal-cell .n {
    align-self: flex-start; font-size: .85rem; font-weight: 600; color: var(--rg-ink-2); font-variant-numeric: tabular-nums;
    min-width: 1.75rem; height: 1.75rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; margin: 0 0 2px .1rem;
}
.rg-h-cal-cell.is-today { background: #f7f8ff; box-shadow: inset 0 0 0 2px rgba(var(--rg-primary-rgb), .35); }
.rg-h-cal-cell.is-today .n { background: var(--rg-primary); color: #fff; box-shadow: 0 4px 10px -4px rgba(var(--rg-primary-rgb), .8); }
.rg-h-ev {
    --c: #64748b; --bg: #eef0f5; --fg: #3d4458;
    display: block; font-size: .75rem; font-weight: 600; line-height: 1.25; padding: .22rem .45rem; border-radius: 6px;
    background: var(--bg); color: var(--fg); box-shadow: inset 3px 0 0 var(--c);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; transition: filter .12s;
}
a.rg-h-ev:hover { filter: brightness(.96); color: var(--fg); }
a.rg-h-ev:focus-visible { outline: 2px solid var(--rg-primary); outline-offset: 1px; }
.rg-h-ev .t { font-variant-numeric: tabular-nums; opacity: .8; margin-right: .2rem; }
.rg-h-ev.is-cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -.4rem; box-shadow: none; padding-left: .85rem; }
.rg-h-ev.is-cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: -.4rem; }
.rg-h-ev.confirmed { --c: #10b981; --bg: #dcf5ea; --fg: #065f46; }
.rg-h-ev.awaiting_payment { --c: #0ea5e9; --bg: #ddf1fb; --fg: #075985; }
.rg-h-ev.pending_request { --c: #f59e0b; --bg: #fdf0d8; --fg: #854d0e; }
.rg-h-ev.completed { --c: #94a3b8; --bg: #eef0f5; --fg: #475569; }
.rg-h-ev.blocked { --c: #e11d48; --fg: #9f1239; background: repeating-linear-gradient(135deg, #fde7ec 0 5px, #fbd5de 5px 10px); }
.rg-h-agenda .rg-h-row { align-items: flex-start; }
.rg-h-dot { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; background: var(--c, #94a3b8); flex-shrink: 0; }

@media (max-width: 767.98px) {
    .rg-h-cal-week div { padding: .45rem 0; text-align: center; font-size: .72rem; }
    .rg-h-cal-cell { min-height: 58px; padding: .3rem .15rem; align-items: center; gap: 2px; }
    .rg-h-cal-cell .n { margin: 0; font-size: .8rem; min-width: 1.6rem; height: 1.6rem; align-self: center; }
    .rg-h-ev { font-size: 0; padding: 0; height: 5px; width: 100%; border-radius: 3px; background: var(--c); box-shadow: none; }
    .rg-h-ev.blocked { background: var(--c); }
    .rg-h-ev.is-cont-l, .rg-h-ev.is-cont-r { margin: 0; padding: 0; }
    .rg-h-ev .t { display: none; }
}

/* ---------------------------------------------------------------- Filterleisten & Segmente */
.rg-h-filter { padding: .9rem; display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(160px, 1fr)) auto; gap: .6rem; align-items: center; }
.rg-h-filter .form-control, .rg-h-filter .form-select { min-height: 46px; }
@media (max-width: 1199.98px) { .rg-h-filter { grid-template-columns: 1fr 1fr; } .rg-h-filter > :first-child { grid-column: 1 / -1; } .rg-h-filter > .rg-h-seg { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .rg-h-filter { grid-template-columns: 1fr; } }
.rg-h-seg { display: inline-flex; gap: 2px; padding: 4px; background: var(--rg-well); border-radius: 14px; }
.rg-h-seg label { margin: 0; padding: .45rem .85rem; border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--rg-muted); cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; flex: 1; text-align: center; }
.rg-h-seg label:hover { color: var(--rg-ink); }
.rg-h-seg input { position: absolute; opacity: 0; pointer-events: none; }
.rg-h-seg input:checked + label { background: #fff; color: var(--rg-ink); box-shadow: 0 1px 2px rgba(20, 26, 51, .08), 0 2px 8px -2px rgba(20, 26, 51, .10); }
.rg-h-seg input:focus-visible + label { outline: 2px solid var(--rg-primary); outline-offset: 1px; }

/* Tabellen im Vermieterbereich */
.rg-h-table td { vertical-align: middle; }
.rg-h-table .cell { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.rg-h-table .l1 { font-weight: 600; color: var(--rg-ink); line-height: 1.3; }
.rg-h-table .l2 { color: var(--rg-muted); font-size: .84rem; line-height: 1.35; margin-top: .1rem; }
.rg-h-table tr.is-link { cursor: pointer; }
.rg-h-table tr.is-link td:last-child .chev { color: var(--rg-faint); transition: transform .15s, color .15s; }
.rg-h-table tr.is-link:hover td:last-child .chev { color: var(--rg-primary); transform: translateX(2px); }
.rg-h-table tfoot td { background: var(--rg-surface); border-top: 1px solid var(--rg-line); border-bottom: 0; font-weight: 600; }
.rg-h-thumb { width: 64px; height: 48px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--rg-well); display: inline-flex; align-items: center; justify-content: center; color: var(--rg-faint); }
.rg-h-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rg-h-paid { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.rg-h-paid .progress { width: 72px; height: .3rem; --bs-progress-bar-bg: var(--rg-mint); }
.rg-h-tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 500; color: var(--rg-ink-2); white-space: nowrap; }
.rg-h-tag i { color: var(--rg-faint); }
.rg-h-actions { display: inline-flex; gap: .3rem; justify-content: flex-end; }
.rg-h-actions .btn { --bs-btn-border-color: var(--rg-line); --bs-btn-hover-border-color: var(--rg-line-strong); }

/* ---------------------------------------------------------------- Buchungsdetail */
.rg-h-status {
    --tone: var(--rg-primary); --tone-soft: var(--rg-primary-soft);
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; padding: 1.15rem 1.35rem; margin-bottom: 1.5rem;
    border-radius: var(--rg-r-lg); background: #fff; border: 1px solid var(--rg-line); box-shadow: var(--rg-shadow);
    border-left: 5px solid var(--tone);
}
.rg-h-status.success { --tone: var(--rg-mint); --tone-soft: var(--rg-mint-soft); }
.rg-h-status.warning { --tone: #f59e0b; --tone-soft: var(--rg-amber-soft); }
.rg-h-status.info { --tone: var(--rg-sky); --tone-soft: var(--rg-sky-soft); }
.rg-h-status.danger { --tone: var(--rg-red); --tone-soft: var(--rg-red-soft); }
.rg-h-status.secondary { --tone: #94a3b8; --tone-soft: #eef0f5; }
.rg-h-status .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--tone-soft); color: var(--tone); display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.rg-h-status .txt { flex: 1 1 280px; min-width: 0; }
.rg-h-status .txt strong { font-family: var(--sp-font-display); font-size: 1.15rem; letter-spacing: -.015em; display: block; }
.rg-h-status .txt span { color: var(--rg-muted); font-size: .92rem; }
.rg-h-status .acts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
.rg-h-status.is-request { background: linear-gradient(180deg, #fffaf1, #fff); }
.rg-h-decide { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; padding-top: 1rem; border-top: 1px dashed #f1d6a6; }
.rg-h-decide .input-group { flex: 1 1 320px; max-width: 520px; }
.rg-h-quote { margin: 0; padding: .7rem 1rem; border-radius: 12px; background: #fff; border: 1px solid #f5e1bd; color: var(--rg-ink-2); font-size: .92rem; flex: 1 1 100%; }
.rg-h-quote i { color: #d99a2b; margin-right: .35rem; }

.rg-h-facts { display: flex; flex-wrap: wrap; gap: .4rem; }
.rg-h-facts span { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .65rem; border-radius: 999px; background: #fff; border: 1px solid var(--rg-line); font-size: .84rem; font-weight: 500; color: var(--rg-ink-2); }
.rg-h-facts i { color: var(--rg-faint); }

/* Beleg / Kassenzettel */
.rg-h-receipt { position: relative; background: #fff; border: 1px solid var(--rg-line); border-radius: var(--rg-r-lg) var(--rg-r-lg) 0 0; box-shadow: var(--rg-shadow); padding: 1.35rem 1.35rem 1.6rem; margin-bottom: 1.75rem; }
.rg-h-receipt::after {
    content: ""; position: absolute; left: -1px; right: -1px; bottom: -10px; height: 10px;
    background: radial-gradient(circle at 8px -2px, transparent 7px, #fff 7.5px) 0 0 / 16px 10px repeat-x;
    filter: drop-shadow(0 1px 0 var(--rg-line));
}
.rg-h-receipt h2 { font-family: var(--sp-font-display); font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; margin: 0; }
.rg-h-receipt .meta { color: var(--rg-muted); font-size: .82rem; }
.rg-h-receipt .line { display: flex; justify-content: space-between; gap: 1rem; padding: .32rem 0; font-size: .94rem; }
.rg-h-receipt .line > :last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rg-h-receipt .rule { border: 0; border-top: 1.5px dashed var(--rg-line-strong); margin: .65rem 0; opacity: 1; }
.rg-h-receipt .total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .2rem 0; }
.rg-h-receipt .total span:first-child { font-weight: 700; }
.rg-h-receipt .total span:last-child { font-family: var(--sp-font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rg-h-receipt .line.open { font-weight: 700; color: #8f4c04; background: var(--rg-amber-soft); margin: .35rem -.6rem 0; padding: .45rem .6rem; border-radius: 10px; }
.rg-h-receipt .line.ok { color: #087453; }
.rg-h-receipt .note { font-size: .84rem; color: var(--rg-muted); display: flex; gap: .45rem; align-items: flex-start; margin-top: .5rem; }

/* Verlauf */
.rg-h-timeline { list-style: none; margin: 0; padding: 0 0 0 .2rem; }
.rg-h-timeline li { position: relative; padding: 0 0 1rem 1.7rem; }
.rg-h-timeline li:last-child { padding-bottom: 0; }
.rg-h-timeline li::before { content: ""; position: absolute; left: .38rem; top: 1.2rem; bottom: -.1rem; width: 2px; background: var(--rg-line); }
.rg-h-timeline li:last-child::before { display: none; }
.rg-h-timeline .pt { position: absolute; left: 0; top: .28rem; width: .9rem; height: .9rem; border-radius: 50%; background: #fff; border: 3px solid var(--c, var(--rg-primary)); }
.rg-h-timeline .what { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.rg-h-timeline .when { color: var(--rg-muted); font-size: .82rem; font-variant-numeric: tabular-nums; }

/* Nachrichten-Partial im Vermieterbereich etwas aufräumen */
.rg-h-messages .card-body > div[style*="max-height"] { background: var(--rg-surface); border-radius: 14px; padding: .9rem; }
.rg-h-messages .bg-surface { background: #fff !important; border: 1px solid var(--rg-line); }
.rg-h-messages .rounded-3 { border-radius: 14px !important; }

.rg-h-danger { border-color: #f7d0d7; }
.rg-h-danger .rg-section-title { color: #9d1329; }

/* Sternauswahl */
.rg-h-starpick { display: inline-flex; gap: .15rem; }
.rg-h-starpick .btn { --bs-btn-padding-x: .2rem; --bs-btn-padding-y: 0; font-size: 1.5rem; color: #f59e0b; text-decoration: none; }
.rg-h-starpick .btn:hover { transform: scale(1.12); text-decoration: none; }

/* ---------------------------------------------------------------- Lange Formulare: Abschnittsnavigation */
.rg-h-formnav { position: sticky; top: 1.5rem; }
.rg-h-formnav nav { display: flex; flex-direction: column; gap: 2px; }
.rg-h-formnav nav a {
    display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border-radius: 11px; color: var(--rg-muted);
    font-weight: 600; font-size: .92rem; text-decoration: none; transition: background .12s, color .12s;
}
.rg-h-formnav nav a i { width: 1.15rem; text-align: center; color: var(--rg-faint); }
.rg-h-formnav nav a:hover { background: #fff; color: var(--rg-ink); }
.rg-h-formnav nav a.active { background: #fff; color: var(--rg-ink); box-shadow: var(--rg-shadow); }
.rg-h-formnav nav a.active i { color: var(--rg-primary); }
.rg-h-formnav .missing { margin-top: 1rem; padding: .9rem 1rem; border-radius: 14px; background: var(--rg-amber-soft); color: #7a4103; font-size: .85rem; }
.rg-h-formnav .missing strong { display: block; margin-bottom: .3rem; }
.rg-h-formnav .missing ul { margin: 0; padding-left: 1.1rem; }
@media (max-width: 991.98px) {
    .rg-h-formnav { position: static; margin-bottom: .5rem; }
    .rg-h-formnav nav { flex-direction: row; overflow-x: auto; gap: .35rem; padding-bottom: .25rem; scrollbar-width: none; }
    .rg-h-formnav nav a { white-space: nowrap; background: #fff; border: 1px solid var(--rg-line); padding: .4rem .75rem; font-size: .85rem; }
}
.rg-h-section { scroll-margin-top: 1.5rem; }
.rg-h-section > .card-body { padding: 1.6rem; }
@media (max-width: 575.98px) { .rg-h-section > .card-body { padding: 1.15rem; } }
.rg-h-section-head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.35rem; }
.rg-h-section-head .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--rg-primary-soft); color: var(--rg-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.rg-h-section-head .rg-section-hint { margin-bottom: 0; }
.rg-h-sub-label { font-weight: 700; font-size: .95rem; margin: 0 0 .65rem; }
.rg-h-divider { border-top: 1px solid var(--rg-line); margin: 1.5rem 0; }
.rg-h-opt { color: var(--rg-faint); font-weight: 500; }

/* Speicherleiste */
.rg-h-savebar {
    position: sticky; bottom: 1rem; z-index: 20; margin-top: 1.5rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem;
    padding: .8rem .9rem .8rem 1.25rem; border-radius: 18px; background: rgba(20, 26, 51, .96); color: #c9cee0;
    box-shadow: 0 18px 40px -16px rgba(20, 26, 51, .55); backdrop-filter: blur(8px);
}
.rg-h-savebar .msg { font-size: .9rem; display: flex; align-items: center; gap: .5rem; min-width: 0; }
.rg-h-savebar .msg.err { color: #ffb4c0; }
.rg-h-savebar .btn-primary { --bs-btn-bg: #fff; --bs-btn-color: var(--rg-ink); --bs-btn-border-color: #fff; --bs-btn-hover-bg: #e9ecff; --bs-btn-hover-color: var(--rg-ink); --bs-btn-hover-border-color: #e9ecff; --bs-btn-active-bg: #dfe3ff; --bs-btn-active-color: var(--rg-ink); --bs-btn-disabled-bg: #fff; --bs-btn-disabled-color: var(--rg-ink); box-shadow: none; }

/* Auswahlkarten (Radio) */
.rg-h-choice { position: relative; display: flex; gap: .85rem; padding: 1rem 1.1rem; border-radius: 16px; border: 1.5px solid var(--rg-line); background: #fff; cursor: pointer; height: 100%; transition: border-color .15s, background .15s, box-shadow .15s; margin: 0; }
.rg-h-choice:hover { border-color: var(--rg-line-strong); }
.rg-h-choice .form-check-input { margin: .15rem 0 0; flex-shrink: 0; }
.rg-h-choice .ttl { font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.rg-h-choice .dsc { display: block; color: var(--rg-muted); font-size: .88rem; margin-top: .15rem; font-weight: 400; }
.rg-h-choice:has(:checked) { border-color: var(--rg-primary); background: var(--rg-primary-soft); box-shadow: 0 0 0 3px rgba(var(--rg-primary-rgb), .1); }
.rg-h-choice:has(:focus-visible) { box-shadow: 0 0 0 4px rgba(var(--rg-primary-rgb), .2); }

/* Wochentag-Chips */
.rg-h-days { display: flex; flex-wrap: wrap; gap: .35rem; }
.rg-h-days .btn { --bs-btn-padding-x: 0; width: 2.75rem; --bs-btn-padding-y: .45rem; --bs-btn-font-size: .88rem; }
.rg-h-days .btn-check:focus-visible + .btn { box-shadow: 0 0 0 3px rgba(var(--rg-primary-rgb), .3); }

/* Ausstattungs-Kacheln */
.rg-h-amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.rg-h-amenity { position: relative; margin: 0; }
.rg-h-amenity input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.rg-h-amenity label {
    display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border-radius: 12px; cursor: pointer; height: 100%;
    background: var(--rg-well); border: 1.5px solid transparent; font-weight: 500; font-size: .92rem; transition: background .12s, border-color .12s;
}
.rg-h-amenity label:hover { background: var(--rg-well-hover); }
.rg-h-amenity label i.bi:first-child { width: 30px; height: 30px; border-radius: 9px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--rg-muted); flex-shrink: 0; }
.rg-h-amenity label .ok { margin-left: auto; color: var(--rg-primary); opacity: 0; transition: opacity .12s; }
.rg-h-amenity input:checked + label { background: var(--rg-primary-soft); border-color: rgba(var(--rg-primary-rgb), .45); color: #23309a; }
.rg-h-amenity input:checked + label i.bi:first-child { color: var(--rg-primary); }
.rg-h-amenity input:checked + label .ok { opacity: 1; }
.rg-h-amenity input:focus-visible + label { box-shadow: 0 0 0 3px rgba(var(--rg-primary-rgb), .3); }

/* Öffnungszeiten */
.rg-h-hours { border: 1px solid var(--rg-line); border-radius: 16px; overflow: hidden; max-width: 640px; }
.rg-h-hours-row { display: grid; grid-template-columns: 7.5rem 1fr auto; align-items: center; gap: .75rem; padding: .6rem .9rem; }
.rg-h-hours-row + .rg-h-hours-row { border-top: 1px solid var(--rg-line); }
.rg-h-hours-row.is-closed { background: var(--rg-surface); }
.rg-h-hours-row .day { font-weight: 600; }
.rg-h-hours-row .times { display: flex; align-items: center; gap: .4rem; }
.rg-h-hours-row .times .form-control { width: 84px; text-align: center; font-variant-numeric: tabular-nums; }
.rg-h-hours-row .closed-note { color: var(--rg-faint); font-size: .88rem; }
@media (max-width: 575.98px) {
    .rg-h-hours-row { grid-template-columns: 1fr auto; }
    .rg-h-hours-row .times, .rg-h-hours-row .closed-note { grid-column: 1 / -1; }
}

/* Bildergalerie */
.rg-h-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; margin-top: 1rem; }
.rg-h-photo { position: relative; border-radius: 14px; overflow: hidden; background: var(--rg-well); aspect-ratio: 4 / 3; border: 1px solid var(--rg-line); }
.rg-h-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-h-photo.is-cover { box-shadow: 0 0 0 3px var(--rg-primary); border-color: transparent; }
.rg-h-photo .top { position: absolute; top: .45rem; left: .45rem; right: .45rem; display: flex; justify-content: space-between; gap: .3rem; }
.rg-h-photo .pill { background: rgba(255,255,255,.94); color: var(--rg-ink); border-radius: 999px; font-size: .74rem; font-weight: 700; padding: .2rem .55rem; border: 0; box-shadow: 0 2px 6px rgba(20,26,51,.15); }
.rg-h-photo .pill.cover { background: var(--rg-primary); color: #fff; }
.rg-h-photo button.pill:hover { background: #fff; color: var(--rg-primary); }
.rg-h-photo .bar { position: absolute; left: .45rem; right: .45rem; bottom: .45rem; display: flex; justify-content: flex-end; gap: .3rem; }
.rg-h-photo .bar .btn { --bs-btn-bg: rgba(255,255,255,.94); --bs-btn-border-color: transparent; --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: transparent; width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 2px 6px rgba(20,26,51,.15); }
.rg-h-photo .bar .btn-outline-danger { --bs-btn-color: var(--rg-red); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--rg-red); }
.rg-h-photo .idx { position: absolute; left: .55rem; bottom: .55rem; color: #fff; font-weight: 700; font-size: .8rem; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.rg-h-upload { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.rg-h-upload .bi-cloud-arrow-up { font-size: 1.9rem; color: var(--rg-primary); }
.rg-h-upload input[type=file] { max-width: 420px; background: #fff; }

/* ---------------------------------------------------------------- Preisregeln */
.rg-h-rule { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; }
.rg-h-rule + .rg-h-rule { border-top: 1px solid var(--rg-line); }
.rg-h-rule.is-off { background: var(--rg-surface); }
.rg-h-rule.is-off .rg-h-rule-main, .rg-h-rule.is-off .rg-h-effect { opacity: .55; }
.rg-h-rule.is-editing { background: var(--rg-primary-soft); }
.rg-h-rule .ico { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--rg-well); color: var(--rg-ink-2); font-size: 1.05rem; flex-shrink: 0; }
.rg-h-rule-main { flex: 1; min-width: 0; }
.rg-h-rule-main .nm { font-weight: 700; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.rg-h-conds { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.rg-h-conds span { font-size: .78rem; font-weight: 600; color: var(--rg-ink-2); background: var(--rg-well); border-radius: 7px; padding: .15rem .45rem; font-variant-numeric: tabular-nums; }
.rg-h-effect { font-family: var(--sp-font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; padding: .3rem .7rem; border-radius: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: center; }
.rg-h-effect.up { background: var(--rg-amber-soft); color: #8f4c04; }
.rg-h-effect.down { background: var(--rg-mint-soft); color: #087453; }
.rg-h-effect.set { background: var(--rg-primary-soft); color: #2d3db3; }
.rg-h-effect small { display: block; font-family: var(--sp-font-body); font-weight: 500; font-size: .7rem; opacity: .8; letter-spacing: 0; }
@media (max-width: 575.98px) {
    .rg-h-rule { flex-wrap: wrap; }
    .rg-h-rule-main { flex-basis: calc(100% - 56px); }
    .rg-h-rule .rg-h-effect { margin-left: 56px; }
    .rg-h-rule .rg-h-actions { margin-left: auto; }
}

/* Preisrechner als Beleg – das kräftige Element der Preisseite */
.rg-h-calc { background: var(--rg-ink); border-radius: var(--rg-r-lg); padding: 1.35rem; color: #c9cee0; box-shadow: var(--rg-shadow-lg); }
.rg-h-calc h2 { color: #fff; font-family: var(--sp-font-display); font-weight: 700; font-size: 1.12rem; margin: 0; letter-spacing: -.015em; }
.rg-h-calc .lbl { font-size: .8rem; font-weight: 600; color: #9ba3bb; margin-bottom: .3rem; display: block; }
.rg-h-calc .form-control { background: rgba(255,255,255,.08); color: #fff; color-scheme: dark; border-color: transparent; min-height: 46px; }
.rg-h-calc .form-control:hover { background: rgba(255,255,255,.12); }
.rg-h-calc .form-control:focus { background: rgba(255,255,255,.14); border-color: #9aa6ff; box-shadow: 0 0 0 4px rgba(154, 166, 255, .2); }
.rg-h-calc .paper {
    position: relative; margin-top: 1.1rem; background: #fffdf8; color: var(--rg-ink); border-radius: 12px 12px 0 0; padding: 1.1rem 1.15rem 1.35rem;
    font-variant-numeric: tabular-nums; box-shadow: 0 10px 24px -14px rgba(0,0,0,.6);
}
.rg-h-calc .paper::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px;
    background: radial-gradient(circle at 7px 10px, transparent 6px, #fffdf8 6.5px) 0 0 / 14px 10px repeat-x;
}
.rg-h-calc .paper .hd { display: flex; justify-content: space-between; font-size: .76rem; color: var(--rg-muted); font-weight: 600; padding-bottom: .55rem; border-bottom: 1.5px dashed #d9d4c7; margin-bottom: .45rem; }
.rg-h-calc .paper .line { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding: .25rem 0; }
.rg-h-calc .paper .line span:last-child { white-space: nowrap; }
.rg-h-calc .paper .tot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px dashed #d9d4c7; margin-top: .5rem; padding-top: .65rem; font-weight: 700; }
.rg-h-calc .paper .tot span:last-child { font-family: var(--sp-font-display); font-size: 1.55rem; letter-spacing: -.03em; }
.rg-h-calc .paper .empty { color: var(--rg-muted); font-size: .9rem; text-align: center; padding: 1rem 0 .5rem; }

/* ---------------------------------------------------------------- Sperrzeiten */
.rg-h-block { display: flex; align-items: center; gap: 1rem; padding: .95rem 1.15rem; }
.rg-h-block + .rg-h-block { border-top: 1px solid var(--rg-line); }
.rg-h-block .range { display: flex; align-items: center; gap: .5rem; }
.rg-h-block .range .bi-arrow-right { color: var(--rg-faint); }
.rg-h-block.is-now { background: linear-gradient(90deg, var(--rg-red-soft), #fff 70%); }
.rg-h-stripe { width: 6px; align-self: stretch; border-radius: 6px; background: repeating-linear-gradient(135deg, #f43f5e 0 4px, #fda4af 4px 8px); flex-shrink: 0; }

/* ---------------------------------------------------------------- Zahlungsanbieter */
.rg-h-provider { display: flex; flex-direction: column; height: 100%; }
.rg-h-provider .top { display: flex; align-items: flex-start; gap: 1rem; padding: 1.35rem 1.35rem 0; }
.rg-h-plogo { width: 52px; height: 52px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; flex-shrink: 0; box-shadow: 0 8px 18px -10px rgba(20,26,51,.6); }
.rg-h-plogo.stripe { background: #635bff; }
.rg-h-plogo.paypal { background: #003087; }
.rg-h-provider .name { font-family: var(--sp-font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; margin: 0; }
.rg-h-provider .desc { color: var(--rg-muted); font-size: .9rem; margin: .2rem 0 0; }
.rg-h-provider .body { padding: 1.1rem 1.35rem 1.25rem; flex: 1; }
.rg-h-provider .foot { border-top: 1px solid var(--rg-line); background: var(--rg-surface); padding: .85rem 1.35rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; border-radius: 0 0 calc(var(--rg-r-lg) - 1px) calc(var(--rg-r-lg) - 1px); }
.rg-h-provider .foot form { margin: 0; }
.rg-h-provider.is-off .rg-h-plogo { filter: grayscale(1); opacity: .45; }
.rg-h-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.rg-h-checks li { display: flex; align-items: center; gap: .55rem; padding: .6rem .75rem; border-radius: 12px; background: var(--rg-surface); font-size: .9rem; font-weight: 500; }
.rg-h-checks li i { font-size: 1.05rem; }
.rg-h-checks .yes i { color: var(--rg-mint); }
.rg-h-checks .no i { color: var(--rg-red); }
.rg-h-checks .neutral i { color: var(--rg-faint); }
@media (max-width: 575.98px) { .rg-h-checks { grid-template-columns: 1fr; } }
.rg-h-statuspill { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: #eef0f5; color: #4a5168; white-space: nowrap; }
.rg-h-statuspill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.rg-h-statuspill.live { background: var(--rg-mint-soft); color: #087453; }
.rg-h-statuspill.live::before { box-shadow: 0 0 0 3px rgba(16, 185, 129, .25); }

/* ---------------------------------------------------------------- Bewertungen */
.rg-h-review .card-body { padding: 1.35rem; }
.rg-h-review .head { display: flex; gap: .9rem; align-items: flex-start; }
.rg-h-review .who { flex: 1; min-width: 0; }
.rg-h-review .who strong { font-size: 1rem; }
.rg-h-review .stars-lg { font-size: 1.05rem; letter-spacing: .05em; white-space: nowrap; }
.rg-h-review .stars-lg i { color: #f59e0b; }
.rg-h-review .stars-lg i.bi-star { color: #e2c48a; }
.rg-h-review .body { margin: 1rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--rg-ink-2); }
.rg-h-reply { margin-top: 1rem; padding: .9rem 1rem; border-radius: 14px; background: var(--rg-surface); border-left: 3px solid var(--rg-primary); }
.rg-h-reply .lbl { font-size: .82rem; font-weight: 700; color: var(--rg-primary); margin-bottom: .2rem; display: flex; align-items: center; gap: .4rem; }
.rg-h-replyform { margin-top: 1rem; display: flex; gap: .6rem; align-items: flex-start; }
.rg-h-replyform .btn { flex-shrink: 0; }
@media (max-width: 575.98px) { .rg-h-replyform { flex-direction: column; align-items: stretch; } }
.rg-h-review .foot { display: flex; justify-content: flex-end; margin-top: .75rem; }
.rg-h-review .foot .btn-link { color: var(--rg-faint); font-weight: 500; font-size: .85rem; }
.rg-h-review .foot .btn-link:hover { color: var(--rg-red); }

/* ---------------------------------------------------------------- Vermieterprofil: Rechnungsvorschau */
.rg-h-invoice { background: #fff; border-radius: 6px; padding: 1.4rem 1.4rem 1.2rem; box-shadow: 0 1px 2px rgba(20,26,51,.06), 0 18px 36px -18px rgba(20,26,51,.35); border: 1px solid var(--rg-line); font-size: .8rem; color: var(--rg-ink-2); position: relative; }
.rg-h-invoice::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--rg-ink); border-radius: 6px 6px 0 0; }
.rg-h-invoice .sender { font-size: .68rem; color: var(--rg-faint); border-bottom: 1px solid var(--rg-line); padding-bottom: .3rem; margin-bottom: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-h-invoice .ttl { font-family: var(--sp-font-display); font-weight: 700; font-size: 1.05rem; color: var(--rg-ink); }
.rg-h-invoice .no { font-variant-numeric: tabular-nums; font-weight: 600; }
.rg-h-invoice .ph { height: .45rem; border-radius: 4px; background: var(--rg-well); margin: .35rem 0; }
.rg-h-invoice .foot { border-top: 1px solid var(--rg-line); margin-top: 1rem; padding-top: .5rem; font-size: .68rem; color: var(--rg-muted); white-space: pre-line; min-height: 2.2rem; }
.rg-h-invoice .vat { display: inline-block; margin-top: .6rem; font-size: .7rem; padding: .15rem .45rem; border-radius: 6px; background: var(--rg-amber-soft); color: #8f4c04; }
.rg-h-preview-wrap { background: repeating-linear-gradient(135deg, #eef1f8 0 10px, #e9edf6 10px 20px); border-radius: var(--rg-r-lg); padding: 1.5rem; }

/* ---------------------------------------------------------------- Onboarding */
.rg-h-onb { background: var(--rg-surface); border-bottom: 1px solid var(--rg-line); }
.rg-h-onb h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -.035em; line-height: 1.05; }
.rg-h-onb h1 em { font-style: normal; color: var(--rg-primary); }
.rg-h-steps { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-direction: column; gap: 0; }
.rg-h-steps li { display: flex; gap: 1rem; position: relative; padding-bottom: 1.4rem; }
.rg-h-steps li:last-child { padding-bottom: 0; }
.rg-h-steps li::before { content: ""; position: absolute; left: 19px; top: 42px; bottom: 4px; width: 2px; background: var(--rg-line-strong); }
.rg-h-steps li:last-child::before { display: none; }
.rg-h-steps .num { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-family: var(--sp-font-display); font-weight: 700; background: #fff; border: 2px solid var(--rg-line-strong); color: var(--rg-muted); }
.rg-h-steps li.is-now .num { background: var(--rg-primary); border-color: var(--rg-primary); color: #fff; box-shadow: 0 0 0 6px rgba(var(--rg-primary-rgb), .14); }
.rg-h-steps .t { font-weight: 700; font-size: 1.02rem; display: block; padding-top: .45rem; }
.rg-h-steps .s { color: var(--rg-muted); font-size: .92rem; display: block; margin-top: .1rem; }
.rg-h-perks { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 2rem; }
.rg-h-perks div { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--rg-ink-2); }
.rg-h-perks i { color: var(--rg-mint); font-size: 1.05rem; margin-top: .05rem; }
@media (max-width: 575.98px) { .rg-h-perks { grid-template-columns: 1fr; } }
.rg-h-onb-card { border-radius: 24px; box-shadow: var(--rg-shadow-lg); }
.rg-h-onb-card .card-body { padding: 2rem; }
@media (max-width: 575.98px) { .rg-h-onb-card .card-body { padding: 1.35rem; } }
.rg-h-stepper-mini { display: flex; gap: .35rem; margin-bottom: 1rem; }
.rg-h-stepper-mini span { height: 5px; flex: 1; border-radius: 5px; background: var(--rg-well); }
.rg-h-stepper-mini span.on { background: var(--rg-primary); }
.rg-h-company { padding: 1rem; border-radius: 14px; background: var(--rg-surface); }

@media (prefers-reduced-motion: reduce) {
    .rg-h-row, .rg-h-ev, .rg-h-choice, .rg-h-amenity label, .rg-h-setup-step { transition: none; }
}
.rg-h-table > thead > tr > th { position: relative; }
.rg-h-decide > .btn, .rg-h-decide .input-group > .btn { min-height: 52px; padding-left: 1.4rem; padding-right: 1.4rem; }
