/* betterhomes Wertermittlung – Frontend. Alle Klassen mit Präfix hw-, damit das Theme nicht stört. */
.hw-wrap, .hw-wrap *, .hw-wrap *::before, .hw-wrap *::after { box-sizing: border-box; }
:root { --hw-brand: #dc0878; --hw-dark: #262626; }
.hw-wrap {
	--hw-text: #212121;
	--hw-muted: #5f585e;
	--hw-tint: #faf6f8;
	--hw-border: #eadfe6;
	--hw-danger: #b42318;
	--hw-ok: #166534;
	--hw-radius: 14px;
	--hw-shadow: 0 10px 30px rgba(40, 20, 32, 0.08);
	color: var(--hw-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	-webkit-text-size-adjust: 100%;
}
.hw-wrap img { max-width: 100%; height: auto; display: block; }
.hw-wrap h1, .hw-wrap h2, .hw-wrap h3 { color: var(--hw-dark, #262626); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
.hw-wrap h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.hw-wrap h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.hw-wrap h3 { font-size: 1.15rem; }
.hw-wrap p { margin: 0 0 1em; }
.hw-wrap a { color: inherit; }
.hw-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.hw-narrow { max-width: 760px; }
.hw-center { text-align: center; }
.hw-muted { color: var(--hw-muted); }
.hw-small { font-size: 0.9rem; color: var(--hw-muted); }
.hw-section { padding: 56px 0; }
.hw-section-tint { background: var(--hw-tint); }
.hw-section-dark { background: var(--hw-dark, #262626); color: #f5f5f5; }
.hw-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--hw-brand, #dc0878); margin-bottom: .6rem; }
.hw-intro { color: var(--hw-muted); margin-bottom: 1.4rem; }

/* Buttons */
.hw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 50px; padding: 14px 26px; border-radius: 10px; border: 2px solid transparent;
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
	transition: background-color .2s ease, transform .05s ease, box-shadow .2s ease;
}
.hw-btn:active { transform: translateY(1px); }
.hw-btn:focus-visible, .hw-wrap a:focus-visible, .hw-wrap input:focus-visible, .hw-wrap select:focus-visible, .hw-wrap textarea:focus-visible {
	outline: 3px solid rgba(220, 8, 120, .55); outline-offset: 2px;
}
.hw-btn-primary { background: var(--hw-brand, #dc0878); color: #fff; }
.hw-btn-primary:hover { filter: brightness(.96); }
.hw-btn-primary:disabled { opacity: .6; cursor: progress; }
.hw-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.hw-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.hw-btn-ghost-dark { background: #fff; color: var(--hw-dark, #262626); border-color: var(--hw-dark, #262626); }
.hw-btn-block { width: 100%; margin-top: 8px; }
.hw-link { background: none; border: 0; padding: 0; color: var(--hw-dark, #262626); text-decoration: underline; font: inherit; cursor: pointer; }

/* Kopfzeile */
.hw-topbar { background: #fff; border-bottom: 1px solid var(--hw-border); }
.hw-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.hw-brand img { height: 72px; width: auto; }
.hw-brand-text { font-weight: 800; font-size: 1.2rem; color: var(--hw-dark, #262626); }
.hw-phone { font-weight: 700; text-decoration: none; color: var(--hw-dark, #262626); white-space: nowrap; padding: 10px 14px; border: 2px solid var(--hw-brand, #dc0878); border-radius: 10px; }
.hw-phone:hover { background: var(--hw-brand, #dc0878); }

/* Hero */
.hw-hero { position: relative; background: var(--hw-dark, #262626) center / cover no-repeat; color: #fff; padding: 64px 0 56px; }
.hw-hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(28, 22, 27, .92) 0%, rgba(28, 22, 27, .72) 55%, rgba(28, 22, 27, .45) 100%); }
.hw-hero-inner { position: relative; }
.hw-hero h1 { color: #fff; }
.hw-hero .hw-kicker { color: var(--hw-brand, #dc0878); }
.hw-lead { font-size: 1.12rem; max-width: 640px; color: #f7f1f5; }
.hw-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 26px; }
.hw-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
.hw-checks li { position: relative; padding-left: 30px; color: #f7f1f5; }
.hw-checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--hw-brand, #dc0878); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; }

/* Schritte */
.hw-steps { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 8px; }
.hw-step-card { background: #fff; border: 1px solid var(--hw-border); border-radius: var(--hw-radius); padding: 22px; box-shadow: var(--hw-shadow); }
.hw-step-card p { color: var(--hw-muted); margin: 0; }
.hw-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hw-brand, #dc0878); color: #fff; font-weight: 800; font-size: .95rem; flex: 0 0 30px; margin-right: 8px; vertical-align: middle; }

/* Karten & Formular */
.hw-card { background: #fff; border: 1px solid var(--hw-border); border-radius: var(--hw-radius); padding: 28px; box-shadow: var(--hw-shadow); }
.hw-form-card { padding: 22px; }
.hw-form fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.hw-form legend { font-size: 1.15rem; font-weight: 700; padding: 0; margin-bottom: 14px; display: flex; align-items: center; color: var(--hw-dark, #262626); }
.hw-field { margin-bottom: 14px; min-width: 0; }
.hw-field[hidden] { display: none !important; }
.hw-field > label:first-child, .hw-field label:not(.hw-check) { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--hw-text); }
.hw-form input[type="text"], .hw-form input[type="email"], .hw-form input[type="tel"], .hw-form select, .hw-form textarea {
	display: block; width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; /* 16px verhindert Zoom auf iOS */
	color: var(--hw-text); background: #fff; border: 1px solid #b7adb5; border-radius: 10px; font-family: inherit;
	appearance: auto;
}
.hw-form textarea { min-height: 96px; resize: vertical; }
.hw-form input[aria-invalid="true"], .hw-form select[aria-invalid="true"], .hw-form textarea[aria-invalid="true"] { border-color: var(--hw-danger); background: #fff8f7; }
.hw-error { color: var(--hw-danger); font-size: .88rem; margin: 6px 0 0; font-weight: 600; }
.hw-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.hw-typ-badge { background: var(--hw-tint); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.hw-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hw-check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; cursor: pointer; font-weight: 400 !important; }
.hw-check input { width: 22px; height: 22px; min-width: 22px; margin-top: 3px; accent-color: var(--hw-brand, #dc0878); }
.hw-alert { border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; font-weight: 600; background: #fff1f0; color: #7a1b13; border: 1px solid #f2b8b5; }
.hw-alert[hidden], .hw-error[hidden], .hw-result[hidden] { display: none !important; }
.hw-alert.hw-ok { background: #ecfdf3; color: var(--hw-ok); border-color: #a6e9c0; }

/* Ergebnis */
.hw-result { outline: none; }
.hw-result h2 { margin-bottom: .2em; }
.hw-result-sub { color: var(--hw-muted); margin-bottom: 18px; }
.hw-result-main { background: var(--hw-tint); border: 2px solid var(--hw-brand, #dc0878); border-radius: var(--hw-radius); padding: 22px; margin-bottom: 18px; }
.hw-result-label { font-weight: 700; color: var(--hw-muted); margin-bottom: 4px; }
.hw-result-value { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; line-height: 1.1; color: var(--hw-dark, #262626); margin: 0 0 8px; }
.hw-result-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
.hw-mini { background: #fff; border: 1px solid var(--hw-border); border-radius: 10px; padding: 14px; }
.hw-mini span { display: block; font-size: .85rem; color: var(--hw-muted); }
.hw-mini strong { font-size: 1.15rem; }
.hw-bars { list-style: none; padding: 0; margin: 0 0 18px; }
.hw-bars li { margin-bottom: 12px; }
.hw-bar-head { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; margin-bottom: 4px; flex-wrap: wrap; }
.hw-bar { height: 10px; background: #f0e9ee; border-radius: 99px; overflow: hidden; }
.hw-bar i { display: block; height: 100%; background: var(--hw-brand, #dc0878); border-radius: 99px; }
.hw-notes { color: var(--hw-muted); font-size: .92rem; padding-left: 18px; margin: 0 0 18px; }
.hw-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 16px; }
.hw-cta-row .hw-btn { flex: 1 1 220px; }
.hw-disclaimer { font-size: .88rem; color: var(--hw-muted); border-top: 1px solid var(--hw-border); padding-top: 12px; }

/* Ansprechpartner */
.hw-contact-card { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--hw-border); border-radius: var(--hw-radius); padding: 26px; box-shadow: var(--hw-shadow); }
.hw-avatar { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; background: var(--hw-brand, #dc0878); display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; color: #fff; margin: 0 auto; border: 4px solid var(--hw-brand, #dc0878); }
.hw-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hw-contact-text p { margin-bottom: .6em; }

/* Stats, Stimmen, FAQ */
.hw-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: center; }
.hw-stat strong { display: block; font-size: 2rem; color: var(--hw-brand, #dc0878); }
.hw-quotes { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 0; }
.hw-quotes figure { margin: 0; }
.hw-quotes blockquote { margin: 0 0 12px; font-size: 1.02rem; }
.hw-quotes figcaption { color: var(--hw-muted); font-weight: 600; }
.hw-faq { background: #fff; border: 1px solid var(--hw-border); border-radius: 12px; margin-bottom: 10px; }
.hw-faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; }
.hw-faq summary::-webkit-details-marker { display: none; }
.hw-faq summary::after { content: "+"; float: right; font-size: 1.3rem; line-height: 1; color: var(--hw-dark, #262626); }
.hw-faq[open] summary::after { content: "–"; }
.hw-faq p { padding: 0 18px 16px; color: var(--hw-muted); margin: 0; }
.hw-legal-note { text-align: center; font-size: .9rem; color: var(--hw-muted); padding: 22px 16px 0; margin: 0; }

/* Fußzeile */
.hw-footer { background: var(--hw-dark, #262626); color: #d8d0d6; padding: 40px 0; margin-top: 40px; font-size: .95rem; }
.hw-footer a { color: #fff; }
.hw-footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.hw-footer p { margin: 0 0 .6em; }

/* Ab Tablet */
@media (min-width: 640px) {
	.hw-grid { grid-template-columns: 1fr 1fr; }
	.hw-steps { grid-template-columns: repeat(3, 1fr); }
	.hw-result-grid { grid-template-columns: 1fr 1fr; }
	.hw-stats { grid-template-columns: repeat(4, 1fr); }
	.hw-quotes { grid-template-columns: repeat(2, 1fr); }
	.hw-contact-card { grid-template-columns: 180px 1fr; }
	.hw-avatar { width: 160px; height: 160px; margin: 0; }
	.hw-form-card { padding: 30px; }
	.hw-checks { grid-template-columns: 1fr 1fr; }
	.hw-footer-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Ab Desktop */
@media (min-width: 960px) {
	.hw-hero { padding: 96px 0 84px; }
	.hw-section { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
	.hw-btn { transition: none; }
}

/* betterhomes: Logo im Fußbereich auf weißer Fläche; Kopfzeile auf dem Handy */
.hw-footer-logo { display: inline-block; background: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.hw-footer-logo img { width: 200px; height: auto; }
.hw-phone-short { display: none; }
@media (max-width: 479px) {
	.hw-brand img { height: 60px; width: auto; }
	.hw-phone { padding: 8px 12px; }
	.hw-phone-num { display: none; }
	.hw-phone-short { display: inline; }
	.hw-hero { padding: 48px 0 44px; }
	.hw-section { padding: 44px 0; }
}
/* Kicker auf dem dunklen Titelbild heller, damit er lesbar bleibt */
.hw-hero .hw-kicker { color: #ffa3d4; }
