/* HM Hundehaftpflicht Anfrage 1.0.1 – styles strictly scoped to the shortcode. */
.hm-hh {
  --hm-hh-green: #005e52;
  --hm-hh-hover: #00a075;
  --hm-hh-orange: #e56b20;
  --hm-hh-ink: #222222;
  --hm-hh-muted: #626c67;
  --hm-hh-border: #d8e4df;
  --hm-hh-pale: #edf6f2;
  --hm-hh-focus: #d5eee5;
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  color: var(--hm-hh-ink);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  container-type: inline-size;
}
.hm-hh, .hm-hh *, .hm-hh *::before, .hm-hh *::after { box-sizing: border-box; }
.hm-hh [hidden] { display: none !important; }
.hm-hh button, .hm-hh input, .hm-hh select {
  font-family: inherit;
  font-size: inherit;
}
.hm-hh button { cursor: pointer; }
.hm-hh .hm-hh-shell {
  width: 100%;
  max-width: none;
  min-width: 0;
  background: #fff;
  border: 1px solid #e0e8e4;
  border-radius: 20px;
  box-shadow: 0 12px 38px rgba(0,58,45,.075);
  overflow: visible;
}
.hm-hh .hm-hh-brand {
  text-align: center;
  padding: 18px 18px 16px;
  border-bottom: 1px solid #edf0ef;
}
.hm-hh .hm-hh-logo {
  display: block;
  width: 136px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 10px;
  border-radius: 7px;
}
.hm-hh .hm-hh-brand-title {
  margin: 0 0 4px;
  color: var(--hm-hh-green);
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}
.hm-hh .hm-hh-brand p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--hm-hh-ink); }
.hm-hh .hm-hh-main { width: 100%; min-width: 0; padding: 19px 23px 25px; }
.hm-hh .hm-hh-progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; color: var(--hm-hh-ink); font-size: 1rem;
}
.hm-hh .hm-hh-progress-head strong { font-size: 1rem; color: var(--hm-hh-ink); }
.hm-hh .hm-hh-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 8px 0 20px; }
.hm-hh .hm-hh-progress span { display: block; height: 5px; background: #e1e9e5; border-radius: 8px; }
.hm-hh .hm-hh-progress span.hm-hh-progress-active { background: var(--hm-hh-green); }
.hm-hh h3 {
  margin: 0 0 15px;
  color: var(--hm-hh-green);
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
}
.hm-hh .hm-hh-intro {
  border: 1px solid #cfe3d9; background: #f0f8f4;
  border-radius: 12px; padding: 12px 14px; margin: 0 0 18px;
}
.hm-hh .hm-hh-intro strong { display: block; font-size: 1rem; color: var(--hm-hh-green); margin-bottom: 4px; }
.hm-hh .hm-hh-intro p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--hm-hh-ink); }
.hm-hh .hm-hh-field { margin: 0 0 15px; position: relative; }
.hm-hh .hm-hh-field > label, .hm-hh .hm-hh-field legend {
  display: block; margin: 0 0 7px; padding: 0;
  color: var(--hm-hh-ink); font-size: 1rem; font-weight: 600; line-height: 1.5;
}
.hm-hh .hm-hh-fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 16px; }
.hm-hh .hm-hh-required { color: #b54429; }
.hm-hh .hm-hh-input, .hm-hh .hm-hh-select {
  display: block; width: 100%; max-width: 100%;
  border: 1px solid #cbd9d2; border-radius: 10px;
  padding: 10px 13px; min-height: 45px; height: auto;
  background: #fff; color: var(--hm-hh-ink);
  font-size: 1rem; font-weight: 400; box-shadow: none;
}
.hm-hh .hm-hh-input::placeholder { color: #81928a; opacity: 1; }
.hm-hh .hm-hh-input:focus, .hm-hh .hm-hh-select:focus {
  outline: none; border-color: var(--hm-hh-green);
  box-shadow: 0 0 0 3px var(--hm-hh-focus);
}
.hm-hh .hm-hh-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hm-hh .hm-hh-segment button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 0; min-height: 43px; padding: 8px 10px;
  border: 1px solid var(--hm-hh-border);
  border-radius: 2rem; background: #fff; color: var(--hm-hh-ink);
  font-size: 1rem; font-weight: 700; line-height: 1.3;
  transition: background .15s, border .15s, color .15s;
}
.hm-hh .hm-hh-segment button[aria-pressed="true"] {
  background: var(--hm-hh-green); border-color: var(--hm-hh-green); color: #fff;
}
.hm-hh .hm-hh-segment button:hover {
  background: var(--hm-hh-hover); border-color: var(--hm-hh-hover); color: #fff;
}
.hm-hh .hm-hh-animal-choice { min-height: 66px !important; }
.hm-hh .hm-hh-animal-choice img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; flex: none; }
.hm-hh .hm-hh-animal-choice span { font-size: 1rem; font-weight: 700; }
.hm-hh button:focus-visible, .hm-hh input:focus-visible, .hm-hh select:focus-visible {
  outline: 3px solid #a0ddd0; outline-offset: 2px;
}
.hm-hh .hm-hh-mix-switch {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 1rem; margin: 1px 0 12px;
  cursor: pointer; color: var(--hm-hh-green); font-weight: 600;
}
.hm-hh .hm-hh-mix-switch input, .hm-hh .hm-hh-channel input,
.hm-hh .hm-hh-privacy input, .hm-hh .hm-hh-radio-tile input {
  accent-color: var(--hm-hh-green); width: 18px; height: 18px; margin: 0; flex: none;
}
.hm-hh .hm-hh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.hm-hh .hm-hh-radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hm-hh .hm-hh-radio-tile {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--hm-hh-border); border-radius: 10px;
  padding: 10px 11px; min-height: 44px; cursor: pointer;
  font-weight: 600; font-size: 1rem;
}
.hm-hh .hm-hh-radio-tile:has(input:checked) { background: var(--hm-hh-pale); border-color: var(--hm-hh-green); }
/* Compact rows, with space between the input circle, copy and recommendation pill. */
.hm-hh .hm-hh-fieldset .hm-hh-channel {
  display: grid; grid-template-columns: 24px minmax(0,1fr); column-gap: 18px;
  align-items: center; min-height: 29px; padding: 2px 0;
  margin: 0 0 7px; border: 0; background: transparent; cursor: pointer;
}
.hm-hh .hm-hh-channel-text {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  gap: 5px 17px; font-size: 1rem; line-height: 1.45;
  font-weight: 600; color: var(--hm-hh-ink);
}
.hm-hh .hm-hh-channel input { display: block; align-self: center; justify-self: start; margin: 0; }
.hm-hh .hm-hh-pill {
  display: inline-block; font-size: 1rem; line-height: 1;
  padding: 6px 10px; background: var(--hm-hh-orange); color: #fff;
  font-weight: 700; border-radius: 100px; white-space: nowrap;
}
.hm-hh .hm-hh-optin-note {
  font-size: 1rem; line-height: 1.5; color: var(--hm-hh-ink); margin: 7px 0 11px;
}
.hm-hh .hm-hh-whatsapp-note {
  border-left: 3px solid var(--hm-hh-green); background: #f1f8f4;
  padding: 10px 12px; margin: 0 0 14px;
  font-size: 1rem; border-radius: 0 9px 9px 0;
}
.hm-hh .hm-hh-whatsapp-note strong { display: block; color: var(--hm-hh-green); margin: 0 0 4px; }
.hm-hh .hm-hh-whatsapp-note p { margin: 0; font-size: 1rem; color: var(--hm-hh-ink); }
.hm-hh .hm-hh-privacy {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 1rem; line-height: 1.5;
  margin: 12px 0 15px; color: var(--hm-hh-ink); cursor: pointer;
}
.hm-hh .hm-hh-privacy input { margin-top: 4px; }
.hm-hh a { color: var(--hm-hh-green); text-decoration: underline; text-underline-offset: 2px; }
/* Explicitly beat Elementor's generic button color in editor and frontend. */
.hm-hh .hm-hh-cta, .hm-hh .hm-hh-cta:focus {
  display: block; width: 100%; min-height: 48px;
  padding: 12px 15px;
  border: 0 !important; border-radius: 2rem !important;
  background: #005e52 !important; color: #fff !important;
  font-size: 1rem; font-weight: 700; line-height: 1.4;
  transition: background .15s;
}
.hm-hh .hm-hh-cta:hover, .hm-hh .hm-hh-cta:focus:hover {
  background: #00a075 !important; color: #fff !important;
}
.hm-hh .hm-hh-back {
  display: block; margin: 11px auto 0; padding: 7px 15px;
  background: transparent; border: 0; border-radius: 8px;
  color: var(--hm-hh-green); font-size: 1rem; font-weight: 600; cursor: pointer;
}
.hm-hh .hm-hh-back:hover { color: var(--hm-hh-hover); }
.hm-hh .hm-hh-feedback {
  margin: 0 0 14px; padding: 10px 12px;
  border: 1px solid #e8cbbd; border-radius: 9px;
  background: #fff4ee; color: #853b24; font-size: 1rem;
}
.hm-hh .hm-hh-feedback.hm-hh-feedback-success { background: #f0f8f4; border-color: #c1dfd0; color: #215d47; }
.hm-hh .hm-hh-breed-list {
  position: absolute; z-index: 1000; left: 0; right: 0; top: 100%;
  max-height: 232px; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid #bacfc6;
  box-shadow: 0 8px 22px rgba(0,46,34,.18);
  border-radius: 0 0 10px 10px; scrollbar-width: auto;
}
.hm-hh .hm-hh-breed-option {
  display: block; width: 100%; padding: 11px 13px;
  border: 0; border-bottom: 1px solid #edf3ef;
  background: #fff; text-align: left;
  font-size: 1rem; color: var(--hm-hh-ink);
}
.hm-hh .hm-hh-breed-option:hover, .hm-hh .hm-hh-breed-option[aria-selected="true"] { background: #eaf6f0; }
.hm-hh .hm-hh-breed-wrap small { display: block; color: var(--hm-hh-ink); font-size: 1rem; margin-top: 5px; }
/* Responsive decisions based on the Elementor container width, not only viewport. */
@container (max-width: 520px) {
  .hm-hh .hm-hh-shell { border-radius: 16px; }
  .hm-hh .hm-hh-brand { padding: 14px 9px 13px; }
  .hm-hh .hm-hh-logo { width: 128px; }
  .hm-hh .hm-hh-main { padding: 17px 14px 20px; }
  .hm-hh .hm-hh-two { grid-template-columns: 1fr; gap: 0; }
  .hm-hh .hm-hh-animal-choice { gap: 8px; min-height: 60px !important; }
  .hm-hh .hm-hh-animal-choice img { width: 38px; height: 38px; }
  .hm-hh .hm-hh-channel { column-gap: 14px; }
}
/* Viewport fallback for browsers lacking container query support. */
@supports not (container-type: inline-size) {
  @media (max-width: 520px) {
    .hm-hh .hm-hh-two { grid-template-columns: 1fr; gap: 0; }
    .hm-hh .hm-hh-main { padding: 17px 14px 20px; }
  }
}

/* Hundehaftpflicht: optionaler Giftkoeder-Schutz (ohne Icon). */
.hm-hh .hm-hh-gift-option{display:flex;align-items:flex-start;gap:14px;cursor:pointer;margin:13px 0 2px;color:var(--hm-hh-ink);font-size:1rem;font-weight:500;line-height:1.5}
.hm-hh .hm-hh-gift-option input{flex:0 0 18px;width:18px;height:18px;margin:4px 0 0;accent-color:var(--hm-hh-green)}
.hm-hh .hm-hh-breed-list{max-height:280px}
.hm-hh .hm-hh-age-hint{color:var(--hm-hh-muted);font-size:1rem;line-height:1.5;margin:6px 0 0}
.hm-hh .hm-hh-brand-title{font-size:1.5rem}
/* 0.1.1: Vorschadenabfrage im bestehenden kompakten HM-Design. */
.hm-hh .hm-hh-claims { margin-top: 6px; }
.hm-hh .hm-hh-claim-choices { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 30px; }
.hm-hh .hm-hh-claim-choice { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; font-size: 1rem; color: var(--hm-hh-ink); font-weight: 400; }
.hm-hh .hm-hh-claim-choice input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--hm-hh-green); }
.hm-hh .hm-hh-claims-help { font-size: 1rem; line-height: 1.5; color: var(--hm-hh-ink); margin: 10px 0 12px; }
.hm-hh .hm-hh-claims-count { margin: 0; }
.hm-hh .hm-hh-claims-decline { border-left: 3px solid #c35b29; background: #fff3ec; padding: 11px 13px; color: #823e25; border-radius: 0 9px 9px 0; margin: 12px 0 0; font-size: 1rem; line-height: 1.5; }
.hm-hh .hm-hh-cta:disabled, .hm-hh .hm-hh-cta:disabled:hover { opacity: .55; cursor: not-allowed; background: #005e52 !important; }


/* 0.1.4: customer confirmation, matching the HM Service-Card form. */
.hm-hh .hm-hh-pending {
  min-height: 175px; padding: 36px 14px 40px; text-align: center;
}
.hm-hh .hm-hh-pending h3 {
  font-family: "Bricolage Grotesque", sans-serif !important;
  margin: 0 auto 12px; max-width: 690px; color: #00A075 !important;
  font-size: 1.4rem !important; line-height: 1.4 !important;
}
.hm-hh .hm-hh-pending p {
  font-family: "Bricolage Grotesque", sans-serif !important;
  margin: 0 auto; max-width: 690px; color: #222222 !important;
  font-size: 1rem !important; font-weight: 400; line-height: 1.6;
}
.hm-hh .hm-hh-confirmation { padding: 25px 12px 36px; text-align: center; }
.hm-hh .hm-hh-confirmation-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: #edf6f2; border: 2px solid #00A075;
  color: #00A075; font-size: 1.8rem; font-weight: 700; margin-bottom: 18px;
}
.hm-hh .hm-hh-confirmation h3 {
  font-family: "Bricolage Grotesque", sans-serif !important;
  color: #00A075 !important; text-align: center; margin: 0 auto 15px;
  max-width: 660px; font-size: 1.4rem !important; line-height: 1.4 !important;
  font-weight: 700;
}
.hm-hh .hm-hh-confirmation h3:focus { outline: none; }
.hm-hh .hm-hh-confirmation p {
  font-family: "Bricolage Grotesque", sans-serif !important;
  max-width: 660px; margin: 0 auto 13px; color: #222222 !important;
  font-size: 1rem !important; font-weight: 400; line-height: 1.6;
  overflow-wrap: break-word;
}
@container (max-width: 520px) {
  .hm-hh .hm-hh-confirmation { padding: 18px 5px 26px; }
  .hm-hh .hm-hh-confirmation h3 { font-size: 1.4rem !important; }
}


/* 2026-10: HM Tierfreunde 1.0.6 reference – accessible, isolated success dialog. */
.hm-hh-result-popup, .hm-hh-result-popup *, .hm-hh-result-popup *::before, .hm-hh-result-popup *::after { box-sizing:border-box; }
.hm-hh-result-popup {
  position:fixed!important; inset:0!important; z-index:2147483000!important;
  display:flex!important; align-items:center!important; justify-content:center!important;
  padding:20px!important; background:rgba(13,40,34,.55)!important;
  font-family:'Bricolage Grotesque',Arial,sans-serif!important; color:#222!important;
  font-size:16px!important; line-height:1.5!important; isolation:isolate;
}
.hm-hh-result-popup-card {
  width:min(100%,490px)!important; min-width:0!important; max-height:min(88vh,740px);
  overflow-y:auto; padding:clamp(24px,4vw,38px)!important;
  background:#fff!important; border:1px solid #d8e7dd!important;
  border-radius:23px!important; box-shadow:0 22px 70px rgba(0,34,24,.25)!important;
  text-align:center!important; outline:none!important;
}
.hm-hh-result-popup-check {
  display:flex!important; align-items:center!important; justify-content:center!important;
  width:80px!important; height:80px!important; margin:0 auto 22px!important;
  color:#009d76!important; border-radius:50%!important; background:#e3f5ed!important;
}
.hm-hh-result-popup-card h3 {
  font-family:inherit!important; color:#005e52!important; font-size:clamp(23px,4vw,28px)!important;
  line-height:1.24!important; font-weight:700!important; margin:0 0 18px!important;
  text-transform:none!important; letter-spacing:normal!important;
}
.hm-hh-result-popup-card p {
  font-family:inherit!important; font-size:16px!important; line-height:1.56!important;
  font-weight:400!important; color:#33473c!important; margin:0 0 14px!important;
  text-transform:none!important; letter-spacing:normal!important; overflow-wrap:anywhere;
}
.hm-hh-result-popup-close {
  display:block!important; width:100%!important; min-height:51px!important;
  margin:25px 0 0!important; padding:12px 20px!important;
  border:1px solid #005e52!important; border-radius:999px!important;
  background:#005e52!important; color:#fff!important;
  font-family:inherit!important; font-size:16px!important; font-weight:700!important;
  line-height:1.5!important; cursor:pointer!important; text-transform:none!important;
}
.hm-hh-result-popup-close:hover { background:#00a075!important; border-color:#00a075!important; }
.hm-hh-result-popup-close:focus-visible { outline:3px solid #8dd1bd!important; outline-offset:3px!important; }
@media (max-width:580px) {
  .hm-hh-result-popup {padding:13px!important;}
  .hm-hh-result-popup-card {border-radius:18px!important;}
}
