/* Herzenshilfe Pflege-Tools */
.hhpt {
	--hh-orange: #EF8A22;
	--hh-orange-dark: #C96E10;
	--hh-teal: #3E8A92;
	--hh-teal-soft: #EAF4F5;
	--hh-text: #1d1d1b;
	--hh-muted: #5b5b57;
	--hh-line: #dedcd6;
	--hh-bg: #faf9f6;
	--hh-card: #ffffff;
	--hh-err: #b3261e;
	--hh-ok: #1e7a45;
	--hh-radius: 12px;
	color: var(--hh-text);
	font-size: 17px;
	line-height: 1.55;
	max-width: 820px;
	margin: 0 auto;
}
.hhpt *, .hhpt *::before, .hhpt *::after { box-sizing: border-box; }
.hhpt [hidden] { display: none !important; }

/* Kopf */
.hhpt-head { margin-bottom: 20px; }
.hhpt .hhpt-head__title, .hhpt .hhpt-mod__title { font-size: clamp(1.45rem, 3.4vw, 1.9rem); line-height: 1.2; margin: 0 0 10px; color: var(--hh-text); }
.hhpt-head__text { margin: 0; color: var(--hh-text); }

/* Buttons */
.hhpt .hhpt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--hh-orange); color: #fff; border: 2px solid var(--hh-orange);
	border-radius: 999px; padding: 12px 24px; font-size: 1rem; font-weight: 700;
	line-height: 1.2; cursor: pointer; text-decoration: none; text-align: center;
	transition: background .15s, border-color .15s, transform .1s;
}
.hhpt .hhpt-btn:hover { background: var(--hh-orange-dark); border-color: var(--hh-orange-dark); color: #fff; }
.hhpt .hhpt-btn:active { transform: translateY(1px); }
.hhpt .hhpt-btn:focus-visible { outline: 3px solid var(--hh-teal); outline-offset: 2px; }
.hhpt .hhpt-btn[disabled] { opacity: .6; cursor: wait; }
.hhpt .hhpt-btn--big { padding: 15px 30px; font-size: 1.08rem; }
.hhpt .hhpt-btn--ghost { background: transparent; color: var(--hh-text); border-color: var(--hh-line); }
.hhpt .hhpt-btn--ghost:hover { background: var(--hh-bg); color: var(--hh-text); border-color: var(--hh-muted); }
.hhpt .hhpt-btn--link { background: none; border: 0; color: var(--hh-teal); padding: 12px 8px; text-decoration: underline; }
.hhpt .hhpt-btn--link:hover { background: none; color: var(--hh-text); }

/* Hinweise */
.hhpt-note, .hhpt-alert {
	border-radius: var(--hh-radius); padding: 14px 18px; margin: 16px 0; font-size: .97rem;
}
.hhpt-note { background: var(--hh-teal-soft); border-left: 4px solid var(--hh-teal); }
.hhpt-alert { background: #FFF3E6; border-left: 4px solid var(--hh-orange); }
.hhpt-small { font-size: .86rem; color: var(--hh-muted); margin: 8px 0 0; }
.hhpt-disclaimer { font-size: .82rem; color: var(--hh-muted); margin-top: 22px; }

/* ---------------- Rechner ---------------- */
.hhpt-r { background: var(--hh-card); border: 1px solid var(--hh-line); border-radius: 18px; padding: clamp(18px, 4vw, 34px); }
.hhpt-features { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 16px; }
.hhpt-features li { position: relative; padding-left: 28px; }
.hhpt-features li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--hh-teal); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2L4.6 10l1.4-1.4 2.8 2.8 5.2-5.2 1.4 1.4-6.6 6.6z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2L4.6 10l1.4-1.4 2.8 2.8 5.2-5.2 1.4 1.4-6.6 6.6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.hhpt-start .hhpt-btn { margin-top: 8px; }

.hhpt-r__progress { margin-bottom: 22px; }
.hhpt-r__progress-text { display: flex; justify-content: space-between; font-size: .88rem; color: var(--hh-muted); margin-bottom: 6px; font-weight: 600; }
.hhpt-r__bar { height: 8px; background: #efede8; border-radius: 99px; overflow: hidden; }
.hhpt-r__bar span { display: block; height: 100%; background: var(--hh-orange); border-radius: 99px; transition: width .35s ease; }

.hhpt-mod__kicker { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; color: var(--hh-teal); margin: 0 0 4px; }
.hhpt-mod__intro { margin: 0 0 18px; }

.hhpt-q { border: 0; margin: 0; padding: 16px 0; border-top: 1px solid var(--hh-line); min-width: 0; }
.hhpt-q legend { font-weight: 700; padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.hhpt-q legend + * { clear: both; }
.hhpt-q__nr { display: inline-block; min-width: 2.4em; font-size: .78rem; font-weight: 700; color: var(--hh-teal); background: var(--hh-teal-soft); border-radius: 6px; padding: 1px 6px; margin-right: 4px; text-align: center; vertical-align: 1px; }
.hhpt-q__hint { margin: 0 0 8px; font-size: .9rem; color: var(--hh-muted); clear: both; }
.hhpt-q__opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; clear: both; padding-top: 6px; }

.hhpt-opt { position: relative; display: flex; cursor: pointer; margin: 0; }
.hhpt-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hhpt-opt span {
	flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px;
	border: 2px solid var(--hh-line); border-radius: 10px; padding: 10px 12px;
	font-size: .92rem; line-height: 1.3; background: #fff; transition: border-color .12s, background .12s;
}
.hhpt-opt span small { font-weight: 400; color: var(--hh-muted); font-size: .88rem; line-height: 1.45; }
.hhpt-opt:hover span { border-color: #c4c0b6; }
.hhpt-opt input:checked + span { border-color: var(--hh-orange); background: #FFF6EC; }
.hhpt-opt input:focus-visible + span { outline: 3px solid var(--hh-teal); outline-offset: 2px; }

.hhpt-box { background: var(--hh-bg); border: 1px solid var(--hh-line); border-radius: var(--hh-radius); padding: 16px 18px; margin: 18px 0; }
.hhpt-box--soft { background: var(--hh-teal-soft); border-color: transparent; }
.hhpt-box__title { font-weight: 700; margin: 0 0 10px; }
.hhpt-box .hhpt-q { padding: 12px 0; }

.hhpt-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 8px 0; font-weight: 400; }
.hhpt-check input { width: 20px; height: 20px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--hh-orange); }
.hhpt-dep { padding-left: 30px; }

.hhpt-freq { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hh-line); }
.hhpt-box .hhpt-freq:first-of-type { border-top: 0; }
.hhpt-freq__label { flex: 1; font-weight: 600; margin: 0; }
.hhpt-freq__label small { display: block; font-weight: 400; color: var(--hh-muted); font-size: .86rem; }
.hhpt-freq__inputs { display: flex; gap: 6px; flex: 0 0 auto; }
.hhpt .hhpt-freq__inputs input { width: 72px; }
.hhpt .hhpt-freq__inputs select { width: 132px; }

.hhpt-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hh-line); flex-wrap: wrap; }

/* Ergebnis */
.hhpt-res__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.hhpt-res__card { border-radius: 16px; padding: 20px; text-align: center; border: 2px solid var(--hh-line); background: #fff; }
.hhpt-res__card--now { border-color: var(--hh-orange); background: #FFF8F0; }
.hhpt-res__card--future { border-color: var(--hh-teal); background: var(--hh-teal-soft); }
.hhpt-res__label { font-weight: 700; margin: 0; }
.hhpt-res__sub { font-size: .85rem; color: var(--hh-muted); margin: 2px 0 8px; }
.hhpt-res__pg { font-size: 3.6rem; font-weight: 800; line-height: 1; margin: 6px 0 2px; }
.hhpt-res__pgtext { font-weight: 700; margin: 0 0 8px; }
.hhpt-res__pts { margin: 0; font-size: .95rem; }

.hhpt-details { margin: 18px 0; border: 1px solid var(--hh-line); border-radius: var(--hh-radius); padding: 0 16px; }
.hhpt-details summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.hhpt-table-wrap { overflow-x: auto; }
.hhpt-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0 0 8px; }
.hhpt-table th, .hhpt-table td { padding: 8px 6px; border-bottom: 1px solid var(--hh-line); text-align: right; vertical-align: top; }
.hhpt-table th:first-child, .hhpt-table td:first-child { text-align: left; }
.hhpt-table tr.is-diff td:last-child { color: var(--hh-err); font-weight: 700; }
.hhpt-table__sum td { font-weight: 800; border-bottom: 0; }
.hhpt-details > .hhpt-small { margin-bottom: 14px; }

.hhpt-leist { margin: 20px 0; }
.hhpt-leist__col { background: var(--hh-bg); border-radius: var(--hh-radius); padding: 14px 16px; }
.hhpt-leist__list { list-style: none; margin: 8px 0 0; padding: 0; font-size: .93rem; }
.hhpt-leist__list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--hh-line); }
.hhpt-leist__list li strong { white-space: nowrap; }

.hhpt-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 0; }

/* ---------------- Formulare ---------------- */
.hhpt-form { background: var(--hh-card); border: 1px solid var(--hh-line); border-radius: 18px; padding: clamp(18px, 4vw, 34px); }
.hhpt-form__section { border: 0; margin: 0 0 8px; padding: 0 0 18px; min-width: 0; }
.hhpt-form__section + .hhpt-form__section { border-top: 1px solid var(--hh-line); padding-top: 18px; }
.hhpt .hhpt-form__legend { font-size: 1.15rem; font-weight: 700; padding: 0; margin: 0 0 12px; float: left; width: 100%; color: var(--hh-text); }
.hhpt-grid { clear: both; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 16px; }
.hhpt-field { grid-column: span 6; min-width: 0; }
.hhpt-field--half { grid-column: span 3; }
.hhpt-field--third { grid-column: span 2; }
.hhpt-field--twothird { grid-column: span 4; }
.hhpt-field__label { display: block; font-weight: 600; margin: 0 0 5px; font-size: .95rem; padding: 0; }
.hhpt-req { color: var(--hh-orange-dark); }
.hhpt-field__help { font-size: .84rem; color: var(--hh-muted); margin: 5px 0 0; }

.hhpt input[type=text], .hhpt input[type=email], .hhpt input[type=tel], .hhpt input[type=date], .hhpt input[type=number], .hhpt select, .hhpt textarea {
	width: 100%; min-height: 48px; padding: 10px 12px; font-size: 1rem; line-height: 1.3; color: var(--hh-text);
	background: #fff; border: 2px solid var(--hh-line); border-radius: 10px; box-shadow: none; margin: 0; font-family: inherit;
}
.hhpt textarea { min-height: 110px; resize: vertical; }
.hhpt input:focus, .hhpt select:focus, .hhpt textarea:focus { outline: none; border-color: var(--hh-teal); box-shadow: 0 0 0 3px rgba(62, 138, 146, .2); }
.hhpt input:disabled, .hhpt select:disabled { background: #f2f1ed; color: var(--hh-muted); }

.hhpt-radio { border: 0; padding: 0; margin: 0; min-width: 0; }
.hhpt-radio legend { float: left; width: 100%; }
.hhpt-radio legend + * { clear: both; }
.hhpt-radio .hhpt-opt { margin-bottom: 8px; }
.hhpt-radio--inline { display: flex; flex-wrap: wrap; gap: 8px; }
.hhpt-radio--inline legend { flex-basis: 100%; }
.hhpt-radio--inline .hhpt-opt { flex: 1 1 180px; margin: 0; }
.hhpt-radio--cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hhpt-radio--cards legend { grid-column: 1 / -1; }
.hhpt-radio--cards .hhpt-opt { margin: 0; }
.hhpt-radio--cards .hhpt-opt span { justify-content: flex-start; padding: 14px 16px; font-size: 1rem; }

.hhpt-field--error input, .hhpt-field--error select, .hhpt-field--error textarea, .hhpt-field--error .hhpt-opt span { border-color: var(--hh-err); }
.hhpt-field__err { color: var(--hh-err); font-size: .88rem; font-weight: 600; margin: 6px 0 0; }

.hhpt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hhpt-form__req { margin: 0 0 12px; }
.hhpt-form__actions { margin-top: 8px; }
.hhpt-form__msg { margin-top: 16px; padding: 16px 18px; border-radius: var(--hh-radius); }
.hhpt-form__msg--ok { background: #E8F5EC; border-left: 4px solid var(--hh-ok); }
.hhpt-form__msg--err { background: #FCEBEA; border-left: 4px solid var(--hh-err); }

.hhpt-ergebnis { background: var(--hh-teal-soft); border-radius: var(--hh-radius); padding: 14px 18px; margin-bottom: 20px; }
.hhpt-ergebnis__text { margin: 0; }

.hhpt-steps { list-style: none; counter-reset: s; padding: 0; margin: 20px 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hhpt-steps li { counter-increment: s; background: var(--hh-bg); border-radius: var(--hh-radius); padding: 14px 16px 14px 56px; position: relative; }
.hhpt-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--hh-orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hhpt-steps strong { display: block; }
.hhpt-steps span { font-size: .9rem; color: var(--hh-muted); }

/* Mobil */
@media (max-width: 720px) {
	.hhpt { font-size: 16px; }
	.hhpt-q__opts { grid-template-columns: 1fr 1fr; }
	.hhpt-res__grid, .hhpt-radio--cards, .hhpt-steps { grid-template-columns: 1fr; }
	.hhpt-field--half, .hhpt-field--third, .hhpt-field--twothird { grid-column: span 6; }
	.hhpt-freq { flex-direction: column; align-items: stretch; }
	.hhpt-freq__inputs input { flex: 0 0 80px; }
	.hhpt-freq__inputs select { flex: 1; width: auto; }
	.hhpt-nav .hhpt-btn, .hhpt-cta .hhpt-btn--big, .hhpt-form__actions .hhpt-btn { width: 100%; }
	.hhpt-nav { flex-direction: column-reverse; }
}
@media (max-width: 400px) {
	.hhpt-q__opts { grid-template-columns: 1fr; }
}

/* ---------------- Interessenten im Rechner ---------------- */
.hhpt-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hhpt-lead { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--hh-line); }
.hhpt-lead__intro { margin: 0 0 18px; }
.hhpt-lead .hhpt-form { border: 0; padding: 0; background: transparent; }
.hhpt-lead .hhpt-form__legend { font-size: 1.05rem; }
.hhpt-badge { display: inline-block; align-self: flex-start; font-style: normal; font-weight: 700; font-size: .84rem; color: var(--hh-orange-dark); background: #FFF1E2; border-radius: 99px; padding: 2px 10px; margin: 2px 0 2px; }
.hhpt .hhpt-radio--cards .hhpt-opt--check span { padding-right: 48px; position: relative; justify-content: flex-start; }
.hhpt-opt--check span::after {
	content: ""; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px;
	border: 2px solid #c4c0b6; border-radius: 6px; background: #fff center/14px no-repeat;
}
.hhpt-opt--check input:checked + span::after {
	border-color: var(--hh-orange); background-color: var(--hh-orange);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E");
}
