/*!
 * ROSE HausWart – Styles
 * (c) 2026 ROSE IT Management UG (haftungsbeschränkt) – https://itrose.de
 * Proprietäre Software, alle Rechte vorbehalten. Siehe LICENSE.txt.
 */
.rhw {
	--rhw-primary: #1d3557;
	--rhw-accent: #c9a227;
	--rhw-text: #1f2933;
	--rhw-muted: #5f6b7a;
	--rhw-line: #dde3ea;
	--rhw-bg: #ffffff;
	--rhw-soft: #f4f6f9;
	--rhw-pos: #1e7a4c;
	--rhw-neg: #b23b3b;
	--rhw-radius: 14px;
	--rhw-on-accent: #ffffff;
	--rhw-on-primary: #ffffff;
	--rhw-ink: #1d3557;
	--rhw-on-ink: #ffffff;
	--rhw-accent-ink: #1d3557;
	color: var(--rhw-text);
	background: var(--rhw-bg);
	border: 1px solid var(--rhw-line);
	border-radius: calc(var(--rhw-radius) + 4px);
	box-shadow: 0 10px 40px rgba(16, 32, 60, .08);
	padding: clamp(18px, 4vw, 40px);
	max-width: 880px;
	margin-inline: auto;
	line-height: 1.5;
	font-size: 16px;
}
.rhw *, .rhw *::before, .rhw *::after { box-sizing: border-box; }
.rhw [hidden] { display: none !important; }

/* Fortschritt */
.rhw-progress { margin-bottom: 28px; }
.rhw-progress__bar { height: 6px; background: var(--rhw-soft); border-radius: 99px; overflow: hidden; }
.rhw-progress__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rhw-ink), var(--rhw-accent)); border-radius: inherit; transition: width .4s ease; }
.rhw-progress__labels { display: flex; justify-content: space-between; list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; color: var(--rhw-muted); }
.rhw-tile__in svg { color: var(--rhw-accent-ink); }
.rhw-progress__labels li { margin: 0; }
.rhw-progress__labels .is-done { color: var(--rhw-ink); }
.rhw-progress__labels .is-current { color: var(--rhw-ink); font-weight: 700; }

.rhw-h { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.25; margin: 0 0 20px; color: var(--rhw-ink); }
.rhw-step.is-active { animation: rhw-in .35s ease; }
@keyframes rhw-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Objektart-Kacheln */
.rhw-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rhw-tile { position: relative; cursor: pointer; margin: 0; }
.rhw-tile input { position: absolute; opacity: 0; inset: 0; }
.rhw-tile__in { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 12px; border: 2px solid var(--rhw-line); border-radius: var(--rhw-radius); color: var(--rhw-ink); font-weight: 600; font-size: 15px; transition: border-color .2s, background .2s, transform .2s; height: 100%; }
.rhw-tile:hover .rhw-tile__in { border-color: var(--rhw-accent); transform: translateY(-2px); }
.rhw-tile input:checked + .rhw-tile__in { border-color: var(--rhw-ink); background: color-mix(in srgb, var(--rhw-ink) 7%, white); }
.rhw-tile input:focus-visible + .rhw-tile__in { outline: 3px solid var(--rhw-accent); outline-offset: 2px; }

/* Felder */
.rhw-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 18px; }
.rhw-col-3 { grid-column: span 3; } .rhw-col-4 { grid-column: span 4; } .rhw-col-6 { grid-column: span 6; } .rhw-col-8 { grid-column: span 8; } .rhw-col-12 { grid-column: span 12; }
.rhw-field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
fieldset.rhw-field { border: 0; padding: 0; }
.rhw-field > label, .rhw-field legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 2px; }
.rhw-opt { font-weight: 400; color: var(--rhw-muted); }
.rhw-field small { color: var(--rhw-muted); font-size: 12.5px; }
.rhw input:not([type=radio]):not([type=checkbox]), .rhw select, .rhw textarea {
	width: 100%; font: inherit; color: inherit; background: #fff;
	border: 1.5px solid var(--rhw-line); border-radius: 10px; padding: 11px 13px; min-height: 46px;
	transition: border-color .2s, box-shadow .2s;
}
.rhw input:focus, .rhw select:focus, .rhw textarea:focus { outline: none; border-color: var(--rhw-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rhw-ink) 18%, transparent); }
.rhw .is-invalid { border-color: var(--rhw-neg) !important; }

.rhw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rhw-chip { position: relative; cursor: pointer; margin: 0; }
.rhw-chip input { position: absolute; opacity: 0; }
.rhw-chip span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--rhw-line); border-radius: 99px; font-size: 14px; transition: all .2s; }
.rhw-chip:hover span { border-color: var(--rhw-accent); }
.rhw-chip input:checked + span { background: var(--rhw-ink); border-color: var(--rhw-ink); color: var(--rhw-on-ink); }
.rhw-chip input:focus-visible + span { outline: 3px solid var(--rhw-accent); outline-offset: 2px; }
.rhw-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; margin-bottom: 8px; cursor: pointer; }
.rhw-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--rhw-ink); }
.rhw-check > span { flex: 1; min-width: 0; line-height: 1.5; }
.rhw-check a { color: var(--rhw-ink); text-decoration: underline; font-weight: 600; }
.rhw-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Navigation */
.rhw-note { margin: 18px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--rhw-soft); color: var(--rhw-muted); font-size: 13.5px; }
.rhw-note strong { color: var(--rhw-text); }
.rhw-error { background: color-mix(in srgb, var(--rhw-neg) 9%, white); color: var(--rhw-neg); border-radius: 10px; padding: 10px 14px; margin: 20px 0 0; font-size: 14px; }
.rhw-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.rhw-nav [data-rhw-next], .rhw-nav [data-rhw-submit] { margin-left: auto; }
.rhw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; padding: 13px 26px; border-radius: 10px; border: 2px solid var(--rhw-ink); background: var(--rhw-ink); color: var(--rhw-on-ink); cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; }
.rhw-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16, 32, 60, .18); color: var(--rhw-on-ink); }
.rhw-btn:focus-visible { outline: 3px solid var(--rhw-accent); outline-offset: 2px; }
.rhw-btn--ghost { background: transparent; color: var(--rhw-ink); }
.rhw-btn--ghost:hover { color: var(--rhw-ink); background: var(--rhw-soft); }
.rhw .rhw-btn--accent, .rhw .rhw-btn--accent:visited { background: var(--rhw-accent); border-color: var(--rhw-accent); color: var(--rhw-on-accent) !important; }
.rhw .rhw-btn--accent:hover, .rhw .rhw-btn--accent:focus { color: var(--rhw-on-accent) !important; filter: brightness(1.06); }

/* Laden */
.rhw-loading { text-align: center; padding: 30px 0; }
.rhw-spinner { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; border: 5px solid var(--rhw-soft); border-top-color: var(--rhw-ink); border-right-color: var(--rhw-accent); animation: rhw-spin 1s linear infinite; }
@keyframes rhw-spin { to { transform: rotate(360deg); } }
.rhw-loading__title { font-size: 20px; font-weight: 700; color: var(--rhw-ink); margin: 0 0 16px; }
.rhw-loading__steps { list-style: none; padding: 0; margin: 0 auto; max-width: 360px; text-align: left; }
.rhw-loading__steps li { padding: 7px 0 7px 30px; position: relative; color: var(--rhw-muted); transition: color .3s; }
.rhw-loading__steps li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--rhw-line); }
.rhw-loading__steps li.is-active { color: var(--rhw-text); font-weight: 600; }
.rhw-loading__steps li.is-active::before { border-color: var(--rhw-accent); background: var(--rhw-accent); animation: rhw-pulse 1s ease infinite alternate; }
.rhw-loading__steps li.is-done { color: var(--rhw-ink); }
.rhw-loading__steps li.is-done::before { border-color: var(--rhw-ink); background: var(--rhw-ink); }
@keyframes rhw-pulse { to { opacity: .35; } }

/* Ergebnis */
.rhw-result { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; outline: none; }
.rhw-result.is-in { opacity: 1; transform: none; }
.rhw-res__head { text-align: center; margin-bottom: 26px; }
.rhw-res__kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; color: var(--rhw-muted); margin: 0 0 6px; }
.rhw-res__mid { font-size: clamp(36px, 7vw, 56px); line-height: 1.1; font-weight: 800; color: var(--rhw-ink); margin: 0; font-variant-numeric: tabular-nums; }
.rhw-res__sub { color: var(--rhw-muted); margin: 8px 0 0; font-size: 15px; }
.rhw-badge { display: inline-block; font-size: 12.5px; padding: 2px 10px; border-radius: 99px; background: var(--rhw-soft); color: var(--rhw-text); }
.rhw-badge--hoch { background: color-mix(in srgb, var(--rhw-pos) 12%, white); color: var(--rhw-pos); }
.rhw-badge--niedrig { background: color-mix(in srgb, var(--rhw-accent) 18%, white); color: #7a5d00; }

.rhw-range { background: var(--rhw-soft); border-radius: var(--rhw-radius); padding: 26px 22px 18px; margin-bottom: 18px; }
.rhw-range__track { position: relative; height: 12px; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--rhw-ink) 35%, white), var(--rhw-ink) 50%, color-mix(in srgb, var(--rhw-ink) 35%, white)); }
.rhw-range__marker { position: absolute; top: 50%; width: 26px; height: 26px; margin-left: -13px; transform: translateY(-50%); border-radius: 50%; background: var(--rhw-accent); border: 4px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.rhw-range__labels { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 16px; font-variant-numeric: tabular-nums; }
.rhw-range__labels small { display: block; color: var(--rhw-muted); font-size: 12.5px; }
.rhw-range__labels strong { font-size: clamp(15px, 2.2vw, 19px); color: var(--rhw-ink); }
.rhw-range__c { text-align: center; } .rhw-range__r { text-align: right; }

.rhw-card { border: 1px solid var(--rhw-line); border-radius: var(--rhw-radius); padding: 18px 20px; margin-bottom: 14px; }
.rhw-card h4 { margin: 0 0 8px; font-size: 16px; color: var(--rhw-ink); }
.rhw-card p { margin: 0 0 6px; } .rhw-card p:last-child { margin: 0; }
.rhw-card--accent { border-left: 4px solid var(--rhw-accent); background: color-mix(in srgb, var(--rhw-accent) 6%, white); }
.rhw-muted { color: var(--rhw-muted); font-size: 14.5px; }
.rhw-flist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rhw-f { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.rhw-f__i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--rhw-muted); font-size: 15px; line-height: 1; }
.rhw-f--positiv .rhw-f__i { background: var(--rhw-pos); }
.rhw-f--negativ .rhw-f__i { background: var(--rhw-neg); }

.rhw-cta { text-align: center; background: var(--rhw-primary); color: var(--rhw-on-primary); border-radius: var(--rhw-radius); padding: 26px 22px; margin: 22px 0 14px; }
.rhw-cta p { margin: 0 auto 16px; max-width: 560px; }
.rhw-cta .rhw-btn { margin: 4px; }
.rhw-cta p { color: var(--rhw-on-primary); }
.rhw-cta .rhw-btn--ghost { color: var(--rhw-on-primary); border-color: currentColor; opacity: .9; }
.rhw-cta .rhw-btn--ghost:hover { background: rgba(127, 127, 127, .12); color: var(--rhw-on-primary); opacity: 1; }
.rhw-disclaimer { font-size: 12.5px; color: var(--rhw-muted); margin: 0; }

@media (max-width: 640px) {
	.rhw-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.rhw-tile__in { padding: 16px 8px; font-size: 14px; hyphens: manual; }
	.rhw-grid > [class*="rhw-col-"] { grid-column: span 12; }
	.rhw-progress__labels { font-size: 11.5px; }
	.rhw-nav { flex-wrap: wrap; }
	.rhw-nav .rhw-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.rhw *, .rhw-result { animation: none !important; transition: none !important; }
}
.rhw-f__e { margin-left: auto; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rhw-f--positiv .rhw-f__e { color: var(--rhw-pos); } .rhw-f--negativ .rhw-f__e { color: var(--rhw-neg); }

/* Weiterempfehlung */
.rhw-share { border: 1px solid var(--rhw-line); border-radius: var(--rhw-radius); padding: 20px 22px; margin: 18px 0 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--rhw-ink) 5%, white), #fff 70%); }
.rhw--plain { border: 0; padding: 0; background: none; box-shadow: none; }
.rhw-share--solo { margin: 0; }
.rhw-share__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.rhw-share__badge { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--rhw-accent); color: var(--rhw-on-accent, #fff); }
.rhw-share__title { margin: 0 0 4px; font-size: 17px; line-height: 1.3; color: var(--rhw-ink); }
.rhw-share__intro { margin: 0; color: var(--rhw-muted); font-size: 14.5px; }
.rhw-share__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rhw .rhw-share__btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14.5px; font-weight: 600; padding: 10px 16px; border-radius: 99px; border: 1.5px solid var(--rhw-line); background: #fff; color: var(--rhw-ink); text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.rhw .rhw-share__btn:hover { border-color: var(--rhw-ink); transform: translateY(-1px); color: var(--rhw-ink); }
.rhw .rhw-share__btn:focus-visible { outline: 3px solid var(--rhw-accent); outline-offset: 2px; }
.rhw .rhw-share__btn--native { background: var(--rhw-ink); border-color: var(--rhw-ink); color: var(--rhw-on-ink, #fff); }
.rhw .rhw-share__btn--native:hover { color: var(--rhw-on-ink, #fff); }
.rhw .rhw-share__btn.is-done { border-color: var(--rhw-pos); color: var(--rhw-pos); }
.rhw-share__btn[hidden] { display: none !important; }
.rhw-share__note { margin: 12px 0 0; font-size: 12.5px; color: var(--rhw-muted); }
@media (max-width: 520px) { .rhw-share { padding: 16px; } .rhw-share__badge { width: 36px; height: 36px; } .rhw-share__title { font-size: 16px; } .rhw-share__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .rhw .rhw-share__btn { justify-content: center; padding: 10px 10px; font-size: 14px; white-space: nowrap; } .rhw .rhw-share__btn--native { grid-column: 1 / -1; } }

/* Hersteller-Hinweis */
.rhw-credit { margin: 10px 0 0; font-size: 11.5px; color: var(--rhw-muted); text-align: center; opacity: .8; }
.rhw .rhw-credit a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.rhw .rhw-credit a:hover { color: var(--rhw-ink); }

/* HausWart: Objektkacheln, Leistungen, Häufigkeit, Positionen */
.rhw-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rhw-lead { margin: -12px 0 16px; color: var(--rhw-muted); font-size: 14.5px; }
.rhw-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rhw-service { position: relative; cursor: pointer; margin: 0; }
.rhw-service input { position: absolute; opacity: 0; inset: 0; }
.rhw-service__in { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 14px 16px; border: 2px solid var(--rhw-line); border-radius: var(--rhw-radius); transition: border-color .2s, background .2s; }
.rhw-service__in strong { display: block; color: var(--rhw-ink); font-size: 15.5px; }
.rhw-service__in small { display: block; color: var(--rhw-muted); font-size: 13px; line-height: 1.4; margin-top: 3px; }
.rhw-service__check { flex: none; width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--rhw-line); border-radius: 6px; display: grid; place-items: center; transition: all .2s; }
.rhw-service:hover .rhw-service__in { border-color: var(--rhw-accent); }
.rhw-service input:checked + .rhw-service__in { border-color: var(--rhw-ink); background: color-mix(in srgb, var(--rhw-ink) 6%, white); }
.rhw-service input:checked + .rhw-service__in .rhw-service__check { background: var(--rhw-ink); border-color: var(--rhw-ink); }
.rhw-service input:checked + .rhw-service__in .rhw-service__check::after { content: ''; width: 6px; height: 11px; border: solid var(--rhw-on-ink); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.rhw-service input:focus-visible + .rhw-service__in { outline: 3px solid var(--rhw-accent); outline-offset: 2px; }
.rhw-hint { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--rhw-soft); color: var(--rhw-muted); font-size: 13.5px; }
.rhw-freqlist { display: grid; gap: 18px; }
.rhw-freq { border: 0; margin: 0; padding: 0 0 16px; border-bottom: 1px solid var(--rhw-line); }
.rhw-freq:last-child { border-bottom: 0; padding-bottom: 0; }
.rhw-freq legend { font-weight: 700; color: var(--rhw-ink); padding: 0; margin-bottom: 10px; }
.rhw-res__mid span { font-size: .4em; font-weight: 600; color: var(--rhw-muted); margin-left: 4px; }
.rhw-pos { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rhw-pos th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--rhw-muted); font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid var(--rhw-line); }
.rhw-pos td { padding: 10px 0; border-bottom: 1px solid var(--rhw-line); vertical-align: top; }
.rhw-pos td small { display: block; color: var(--rhw-muted); font-size: 13px; margin-top: 2px; }
.rhw-pos tfoot td { border-bottom: 0; padding-top: 12px; font-weight: 800; color: var(--rhw-ink); font-size: 17px; }
.rhw-pos tfoot td small { font-weight: 400; font-size: 12.5px; }
.rhw .rhw-num { text-align: right; white-space: nowrap; padding-left: 12px; }
@media (max-width: 640px) {
	.rhw-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rhw-services { grid-template-columns: 1fr; }
}
.rhw-range__note { margin: 14px 0 0; font-size: 13px; color: var(--rhw-muted); text-align: center; }
