/* Hannomark Rückruf: Formular, mobile Leiste und Landingpages
   Farben bei Bedarf hier anpassen (z. B. an das Logo). */
:root {
	--hm-accent: #1f4e79;
	--hm-accent-dark: #163a5a;
	--hm-accent-soft: #e8f0f7;
	--hm-ok: #1a7f37;
	--hm-ok-soft: #e6f4ea;
	--hm-err: #b32d2e;
	--hm-err-soft: #fbeaea;
	--hm-text: #1d2327;
	--hm-muted: #5f6b76;
	--hm-line: #d5dbe1;
	--hm-bg: #ffffff;
	--hm-bg-soft: #f5f7f9;
	--hm-radius: 12px;
}

/* ---------- Formular ---------- */
.hmrr-box {
	max-width: 560px;
	margin: 0 auto 2rem;
	padding: 20px 16px;
	background: var(--hm-bg);
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius);
	box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
	color: var(--hm-text);
	scroll-margin-top: 90px;
	box-sizing: border-box;
}
.hmrr-box *, .hmrr-box *::before, .hmrr-box *::after { box-sizing: border-box; }
.hmrr-title { margin: 0 0 .25rem; font-size: 1.5rem; line-height: 1.25; }
.hmrr-lead { margin: 0 0 1rem; color: var(--hm-muted); }

.hmrr fieldset.hmrr-step { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.hmrr legend { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.1rem; margin-bottom: .75rem; padding: 0; }
.hmrr-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; border-radius: 50%;
	background: var(--hm-accent); color: #fff; font-size: .9rem; flex: none;
}
.hmrr-hint { margin: .4rem 0 0; font-size: .875rem; color: var(--hm-muted); }
.hmrr-label { display: block; font-weight: 600; margin: .75rem 0 .35rem; }

.hmrr-input {
	display: block; width: 100%; min-height: 50px; padding: 12px 14px;
	font-size: 16px; line-height: 1.3; color: var(--hm-text);
	background: #fff; border: 1.5px solid var(--hm-line); border-radius: 10px;
	-webkit-appearance: none; appearance: none;
}
.hmrr-input:focus { outline: none; border-color: var(--hm-accent); box-shadow: 0 0 0 3px var(--hm-accent-soft); }
.hmrr-input--plz { max-width: 180px; font-size: 20px; letter-spacing: .12em; }
textarea.hmrr-input { min-height: 90px; resize: vertical; }

/* Themenkarten */
.hmrr-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hmrr-topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hmrr-topic__card {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	min-height: 104px; padding: 12px; text-align: center; font-weight: 600;
	border: 2px solid var(--hm-line); border-radius: var(--hm-radius); background: #fff;
	cursor: pointer; transition: border-color .15s, background .15s; user-select: none;
}
.hmrr-topic__card svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--hm-accent); }
.hmrr-topic input:checked + .hmrr-topic__card { border-color: var(--hm-accent); background: var(--hm-accent-soft); }
.hmrr-topic input:checked + .hmrr-topic__card::after { content: "\2713"; font-size: .9rem; color: var(--hm-accent); }
.hmrr-topic input:focus-visible + .hmrr-topic__card { box-shadow: 0 0 0 3px var(--hm-accent-soft); }

/* Zähler */
.hmrr-stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hm-bg-soft); }
.hmrr-stepper label { font-weight: 600; }
.hmrr-stepper__ctrl { display: flex; align-items: center; gap: 6px; }
.hmrr-stepper__btn {
	width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--hm-line);
	background: #fff; color: var(--hm-accent); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0;
}
.hmrr-stepper__btn:active { background: var(--hm-accent-soft); }
.hmrr-stepper input {
	width: 56px; height: 48px; text-align: center; font-size: 20px; font-weight: 700;
	border: 0; background: transparent; color: var(--hm-text); -moz-appearance: textfield;
}
.hmrr-stepper input::-webkit-outer-spin-button,
.hmrr-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Chips */
.hmrr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hmrr-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hmrr-chip span {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
	border: 1.5px solid var(--hm-line); border-radius: 999px; cursor: pointer; background: #fff;
}
.hmrr-chip input:checked + span { border-color: var(--hm-accent); background: var(--hm-accent-soft); color: var(--hm-accent-dark); font-weight: 600; }
.hmrr-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--hm-accent-soft); }

.hmrr-more { margin-top: 1rem; }
.hmrr-more summary { cursor: pointer; color: var(--hm-accent); font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* PLZ-Status und Fehler */
.hmrr-plzstatus { margin: .5rem 0 0; font-size: .95rem; min-height: 1.2em; }
.hmrr-plzstatus.is-ok { color: var(--hm-ok); }
.hmrr-plzstatus.is-out { color: var(--hm-err); }
.hmrr-plzstatus.is-wait { color: var(--hm-muted); }
.hmrr-error { margin: .4rem 0 0; color: var(--hm-err); font-size: .9rem; font-weight: 600; }
.hmrr-error:empty { display: none; }
.has-error .hmrr-input, .has-error .hmrr-topic__card { border-color: var(--hm-err); }
.hmrr-alert { padding: 12px 14px; margin-bottom: 1rem; border-radius: 10px; background: var(--hm-err-soft); color: var(--hm-err); font-weight: 600; }

/* Absenden */
.hmrr-submit {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%; min-height: 56px; padding: 14px 20px; border: 0; border-radius: var(--hm-radius);
	background: var(--hm-accent); color: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer;
}
.hmrr-submit svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hmrr-submit:hover { background: var(--hm-accent-dark); }
.hmrr-submit[disabled] { opacity: .65; cursor: wait; }
.hmrr-privacy { margin: .75rem 0 0; font-size: .8rem; color: var(--hm-muted); text-align: center; }
.hmrr-call { margin: 1rem 0 0; text-align: center; font-size: .95rem; }
.hmrr-call a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--hm-accent); text-decoration: none; white-space: nowrap; }
.hmrr-call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Honeypot unsichtbar */
.hmrr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Danke */
.hmrr-done { text-align: center; padding: 1.5rem .5rem; }
.hmrr-done:focus { outline: none; }
.hmrr-done__icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: var(--hm-ok-soft); color: var(--hm-ok); align-items: center; justify-content: center; }
.hmrr-done__icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hmrr-done__title { font-size: 1.4rem; font-weight: 700; margin: .75rem 0 .25rem; }

@media (min-width: 600px) {
	.hmrr-box { padding: 28px; }
}

/* ---------- Mobile Leiste ---------- */
.hmrr-cta {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
	display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .97); border-top: 1px solid var(--hm-line);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
}
.hmrr-cta a {
	display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
	border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 1rem;
}
.hmrr-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hmrr-cta__call { border: 1.5px solid var(--hm-accent); color: var(--hm-accent) !important; background: #fff; }
.hmrr-cta__cb { background: var(--hm-accent); color: #fff !important; }
body:has(.hmrr-cta) { padding-bottom: 76px; }
@media (min-width: 900px) {
	.hmrr-cta { display: none; }
	body:has(.hmrr-cta) { padding-bottom: 0; }
}

/* ---------- Landingpages ---------- */
.hm-lp { color: var(--hm-text); line-height: 1.6; }
.hm-lp *, .hm-lp *::before, .hm-lp *::after { box-sizing: border-box; }
.hm-lp img { max-width: 100%; height: auto; display: block; border-radius: var(--hm-radius); }
.hm-lp section { margin: 0 0 2.5rem; }
.hm-lp h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.2; margin: 0 0 .75rem; }
.hm-lp h2 { font-size: clamp(1.3rem, 4vw, 1.75rem); line-height: 1.25; margin: 0 0 .75rem; }
.hm-lp h3 { font-size: 1.1rem; margin: 0 0 .35rem; }

.hm-lp-hero { display: grid; gap: 20px; align-items: center; }
.hm-lp-hero__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.hm-lp-kicker { display: inline-block; margin-bottom: .5rem; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-accent); }
.hm-lp-lead { font-size: 1.1rem; color: var(--hm-muted); margin: 0 0 1.25rem; }
.hm-lp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hm-lp-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
	border-radius: 10px; font-weight: 700; text-decoration: none !important;
	background: var(--hm-accent); color: #fff !important; border: 1.5px solid var(--hm-accent);
}
.hm-lp-btn--ghost { background: #fff; color: var(--hm-accent) !important; }
.hm-lp-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 1rem 0 0; padding: 0; list-style: none; font-size: .95rem; color: var(--hm-muted); }
.hm-lp-trust li::before { content: "\2713"; color: var(--hm-ok); font-weight: 700; margin-right: 6px; }

.hm-lp-grid { display: grid; gap: 14px; }
.hm-lp-card { padding: 18px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); background: var(--hm-bg); }
.hm-lp-card p { margin: 0; color: var(--hm-muted); }
.hm-lp-card--img { padding: 0; overflow: hidden; }
.hm-lp-card--img img { border-radius: 0; aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.hm-lp-card--img div { padding: 14px 18px 18px; }

.hm-lp-steps { counter-reset: hmstep; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hm-lp-steps li { counter-increment: hmstep; position: relative; padding: 14px 16px 14px 60px; background: var(--hm-bg-soft); border-radius: var(--hm-radius); }
.hm-lp-steps li::before {
	content: counter(hmstep); position: absolute; left: 16px; top: 14px;
	width: 30px; height: 30px; border-radius: 50%; background: var(--hm-accent); color: #fff;
	display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.hm-lp-steps p { margin: 0; color: var(--hm-muted); }

.hm-lp-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hm-lp-gallery img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; border-radius: 8px; }

.hm-lp-faq details { border-bottom: 1px solid var(--hm-line); padding: 4px 0; }
.hm-lp-faq summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; }
.hm-lp-faq details p { margin: 0 0 1rem; color: var(--hm-muted); }

.hm-lp-band { padding: 22px 18px; border-radius: var(--hm-radius); background: var(--hm-accent-soft); }
.hm-lp-band p { margin: 0 0 1rem; }

@media (min-width: 700px) {
	.hm-lp-grid--2 { grid-template-columns: 1fr 1fr; }
	.hm-lp-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.hm-lp-gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
	.hm-lp-hero { grid-template-columns: 1.1fr 1fr; gap: 36px; }
}
