.ah-finder{border:1px solid #e3e6ea;border-radius:18px;padding:clamp(20px,3vw,34px);background:#fff;box-shadow:0 14px 35px rgba(16,24,40,.08);max-width:1180px;margin:0 auto}.ah-finder__head h2{margin:0 0 8px;font-size:clamp(24px,3vw,36px);line-height:1.15}.ah-finder__head p{margin:0 0 22px;color:#667085}.ah-finder__form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end}.ah-finder__form label{font-weight:700;font-size:14px;color:#344054}.ah-finder__form input,.ah-finder__form select{display:block;width:100%;margin-top:6px;border:1px solid #d0d5dd;border-radius:10px;padding:12px 13px;font:inherit;background:#fff}.ah-finder__form button,.ah-btn{border:0;border-radius:10px;padding:13px 18px;background:#111827;color:#fff;font-weight:700;text-decoration:none;cursor:pointer;text-align:center}.ah-finder__form.is-loading button{opacity:.65;pointer-events:none}.ah-finder__message{margin-top:16px;color:#b42318;font-weight:600}.ah-finder__layout{display:grid;grid-template-columns:minmax(300px,1fr) minmax(340px,.9fr);gap:20px;margin-top:22px;align-items:start}.ah-finder__result{display:grid;grid-template-columns:1fr;gap:16px}.ah-finder__map-wrap{position:sticky;top:24px;border:1px solid #e4e7ec;border-radius:16px;overflow:hidden;background:#fcfcfd}.ah-finder__map{height:420px;min-height:320px}.ah-finder__map-note{margin:0;padding:12px 14px;font-size:13px;color:#667085;border-top:1px solid #e4e7ec}.ah-card{display:flex;gap:18px;border:1px solid #e4e7ec;border-radius:16px;padding:18px;background:#fcfcfd}.ah-card__photo{width:92px;height:92px;border-radius:14px;object-fit:cover;flex:0 0 92px;background:#eef2f6;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:800;color:#475467}.ah-card__body{min-width:0}.ah-card h3{margin:8px 0 4px;font-size:22px}.ah-card__meta{margin:0 0 14px;color:#667085}.ah-badge{display:inline-block;border-radius:999px;background:#eef2ff;color:#3538cd;padding:5px 10px;font-size:12px;font-weight:800}.ah-card dl{display:grid;gap:8px;margin:0}.ah-card dl div{display:grid;grid-template-columns:86px 1fr;gap:10px}.ah-card dt{font-weight:800;color:#344054}.ah-card dd{margin:0;color:#475467}.ah-card a{color:inherit}.ah-card__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.ah-btn{display:inline-block;padding:10px 14px}.ah-btn--secondary{background:#f2f4f7;color:#111827}.leaflet-container{font:inherit}@media(max-width:980px){.ah-finder__layout{grid-template-columns:1fr}.ah-finder__map-wrap{position:relative;top:auto}.ah-finder__form{grid-template-columns:1fr 1fr}.ah-finder__form button{grid-column:1/-1}}@media(max-width:560px){.ah-finder__form{grid-template-columns:1fr}.ah-card{flex-direction:column}.ah-card dl div{grid-template-columns:1fr}.ah-finder__map{height:340px}}

.ah-finder__layout--single{grid-template-columns:1fr}.ah-finder__layout--single .ah-finder__result{max-width:760px}.ah-card__meta:empty{display:none}

/* v5: layout polish + modal mode */
.ah-finder{box-sizing:border-box;width:100%}.ah-finder *{box-sizing:border-box}.ah-finder__head{margin-bottom:18px}.ah-finder__form{grid-template-columns:minmax(160px,.8fr) minmax(190px,1fr) minmax(160px,.9fr) auto}.ah-finder__form button{min-height:46px;white-space:nowrap}.ah-finder__layout--single .ah-finder__result{max-width:920px}.ah-card{align-items:flex-start}.ah-card h3{margin-top:6px}.ah-card__meta{line-height:1.35}.ah-card dd{word-break:break-word}.ah-card__actions .ah-btn{line-height:1.2}.ah-finder-open{display:inline-flex;align-items:center;justify-content:center;gap:8px}.ah-finder-dialog{width:min(1040px,calc(100vw - 32px));max-height:calc(100vh - 32px);border:0;border-radius:20px;padding:0;background:transparent;overflow:visible}.ah-finder-dialog::backdrop{background:rgba(15,23,42,.62);backdrop-filter:blur(2px)}.ah-finder-dialog__inner{position:relative;max-height:calc(100vh - 32px);overflow:auto;border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(15,23,42,.35)}.ah-finder-dialog__close{position:absolute;z-index:10;right:14px;top:14px;width:40px;height:40px;border:0;border-radius:999px;background:#f2f4f7;color:#111827;font-size:28px;line-height:1;cursor:pointer}.ah-finder--modal{border:0;box-shadow:none;border-radius:20px;max-width:none;margin:0;padding:clamp(22px,3vw,36px)}.ah-finder--modal .ah-finder__head{padding-right:44px}.ah-finder--modal .ah-finder__map-wrap{position:relative;top:auto}.ah-finder-dialog .ah-finder__map{height:360px}@media(max-width:760px){.ah-finder__form{grid-template-columns:1fr}.ah-finder-dialog{width:calc(100vw - 18px);max-height:calc(100vh - 18px)}.ah-finder-dialog__inner{max-height:calc(100vh - 18px)}.ah-finder--modal{padding:20px 16px}.ah-finder-dialog .ah-finder__map{height:300px}}

/* v8: Zuständigkeitskarte */
.ah-finder--map{max-width:1280px}.ah-area-map-layout{display:grid;grid-template-columns:minmax(420px,1fr) 340px;gap:20px;align-items:start}.ah-area-map{height:620px;min-height:420px;border:1px solid #e4e7ec;border-radius:16px;overflow:hidden;background:#f8fafc}.ah-area-list{border:1px solid #e4e7ec;border-radius:16px;background:#fcfcfd;padding:18px;max-height:620px;overflow:auto}.ah-area-list h3{margin:0 0 14px;font-size:18px}.ah-area-list ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}.ah-area-list li{padding:12px;border:1px solid #eef2f6;border-radius:12px;background:#fff}.ah-area-color{display:inline-block;width:12px;height:12px;border-radius:999px;margin-right:8px;vertical-align:middle}.ah-area-map-status{margin-top:10px;color:#667085;font-size:13px}.ah-finder-dialog--map{width:min(1280px,calc(100vw - 28px))}.ah-finder-dialog--map .ah-area-map{height:min(70vh,680px)}@media(max-width:900px){.ah-area-map-layout{grid-template-columns:1fr}.ah-area-map,.ah-area-list{max-height:none}.ah-area-map{height:480px}}@media(max-width:560px){.ah-area-map{height:380px}.ah-area-list{padding:14px}}

/* v17: interaktive Kontaktkarte statt statischer Legende */
.ah-area-detail{border:1px solid #e4e7ec;border-radius:16px;background:#fcfcfd;padding:18px;max-height:620px;overflow:auto}.ah-area-detail h3{margin:0 0 14px;font-size:18px}.ah-area-detail__placeholder{margin:0;color:#667085;line-height:1.5}.ah-area-detail__reset{margin:14px 0 0;border:1px solid #d0d5dd;background:#fff;color:#111827;border-radius:10px;padding:10px 12px;font-weight:700;cursor:pointer}.ah-area-contact{display:grid;gap:14px}.ah-area-contact__locked{display:inline-flex;align-items:center;width:max-content;border-radius:999px;background:#eef2ff;color:#1d4ed8;font-size:12px;font-weight:800;padding:5px 10px}.ah-area-contact__top{display:flex;gap:12px;align-items:center}.ah-area-contact__photo{width:64px;height:64px;border-radius:14px;object-fit:cover;flex:0 0 64px;background:#eef2f6;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:800;color:#475467}.ah-area-contact__top strong{font-size:17px}.ah-area-contact__top p{margin:4px 0 0;color:#667085;font-size:13px;line-height:1.35}.ah-area-contact dl{display:grid;gap:9px;margin:0}.ah-area-contact dl div{display:grid;grid-template-columns:92px 1fr;gap:10px}.ah-area-contact dt{font-weight:800;color:#344054}.ah-area-contact dd{margin:0;color:#475467;word-break:break-word}.ah-area-contact a{color:inherit}.ah-area-detail .ah-finder__map-note{margin-top:16px;border-top:1px solid #e4e7ec;padding-top:14px}
.ah-area-plz-form{margin:0 0 16px;padding:0 0 16px;border-bottom:1px solid #e4e7ec}.ah-area-plz-form label{display:grid;gap:8px;font-weight:800;color:#344054}.ah-area-plz-form__row{display:flex;gap:8px}.ah-area-plz-form input{min-width:0;flex:1;border:1px solid #d0d5dd;border-radius:10px;padding:10px 12px;font:inherit}.ah-area-plz-form button{border:0;border-radius:10px;background:#14258a;color:#fff;font-weight:800;padding:10px 12px;cursor:pointer}.ah-area-plz-form__message{margin-top:8px;color:#667085;font-size:13px;line-height:1.4}.ah-area-plz-form__message.is-error{color:#b42318}
@media(max-width:560px){.ah-area-plz-form__row{display:grid}.ah-area-plz-form button{width:100%}}

/* v19: Routen-Buttons in der Karten-Detailkarte */
.ah-area-contact__actions{margin-top:2px}.ah-area-contact__actions .ah-btn{font-size:13px}


/* v20: stärkere Gebietsabgrenzung, prominente PLZ-Suche, aktive Region und mobile Optimierung */
.ah-area-map{box-shadow:inset 0 0 0 1px rgba(15,23,42,.04)}
.ah-area-map .leaflet-interactive{transition:fill-opacity .12s ease,stroke-width .12s ease,opacity .12s ease}
.ah-area-plz-form{background:linear-gradient(180deg,#f8fafc,#fff);border:1px solid #e4e7ec;border-radius:16px;padding:14px;margin-bottom:18px;box-shadow:0 8px 20px rgba(16,24,40,.06)}
.ah-area-plz-form label{font-size:15px}.ah-area-plz-form input{height:46px;border-color:#b9c2d0;background:#fff;font-size:18px;font-weight:800;letter-spacing:.06em}.ah-area-plz-form input:focus{outline:3px solid rgba(20,37,138,.16);border-color:#14258a}.ah-area-plz-form button{min-width:112px;height:46px;box-shadow:0 8px 18px rgba(20,37,138,.2)}
.ah-area-detail{box-shadow:0 12px 30px rgba(16,24,40,.08)}
.ah-area-contact{animation:ahAreaContactIn .12s ease-out}.ah-area-contact__locked{background:#ecfdf3;color:#027a48}.ah-area-contact__actions .ah-btn{border:1px solid transparent}.ah-area-contact__actions .ah-btn:hover{filter:brightness(.98);transform:translateY(-1px)}
@keyframes ahAreaContactIn{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(max-width:900px){.ah-area-map-layout{grid-template-columns:1fr}.ah-area-detail{order:-1;max-height:none}.ah-area-map{height:56vh;min-height:360px}.ah-finder-dialog--map .ah-area-map{height:55vh}.ah-area-contact dl div{grid-template-columns:110px 1fr}}
@media(max-width:560px){.ah-finder--map .ah-finder__head h2{font-size:24px}.ah-finder--map .ah-finder__head p{font-size:14px}.ah-area-map{height:430px;min-height:320px}.ah-area-plz-form{padding:12px}.ah-area-plz-form__row{gap:10px}.ah-area-plz-form input{font-size:17px}.ah-area-contact__top{align-items:flex-start}.ah-area-contact dl div{grid-template-columns:1fr;gap:3px}.ah-area-contact__actions .ah-btn{width:100%;text-align:center}}


/* v21: Außenkontur je Ansprechpartnergebiet + einheitliche Buttons */
.ah-area-plz-form button,
.ah-area-detail__reset,
.ah-area-contact__actions .ah-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  border:1px solid #d0d5dd;
  border-radius:10px;
  background:#fff;
  color:#111827;
  box-shadow:none;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  transition:background .12s ease,border-color .12s ease,transform .12s ease;
}
.ah-area-plz-form button:hover,
.ah-area-detail__reset:hover,
.ah-area-contact__actions .ah-btn:hover{
  background:#f9fafb;
  border-color:#98a2b3;
  filter:none;
  transform:translateY(-1px);
}
.ah-area-plz-form button{min-width:112px;height:46px;padding:10px 14px;color:#111827;background:#fff;box-shadow:none}
.ah-area-contact__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.ah-area-contact__actions .ah-btn{padding:10px 14px;font-size:13px;line-height:1.2}
.ah-area-map-status{font-size:13px}


/* v22: ruhigere Region-Interaktion, kompaktere PLZ-Eingabe, einheitliche Aktionsbuttons */
.ah-area-plz-form{
  padding:12px;
}
.ah-area-plz-form label{
  display:block;
  margin-bottom:8px;
  font-size:14px;
}
.ah-area-plz-form input{
  display:block;
  width:100%;
  max-width:220px;
  height:38px;
  font-size:15px;
  letter-spacing:.02em;
  padding:8px 11px;
  margin-bottom:10px;
}
.ah-area-plz-form button{
  width:auto;
  min-width:120px;
  height:38px;
  min-height:38px;
  padding:8px 14px;
}
.ah-area-contact__actions,
.ah-card__actions.ah-area-contact__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.ah-area-contact__actions .ah-btn,
.ah-area-detail__reset,
.ah-area-plz-form button{
  appearance:none;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:38px;
  border:1px solid #d0d5dd !important;
  border-radius:10px !important;
  background:#fff !important;
  color:#111827 !important;
  padding:8px 14px !important;
  font-size:13px;
  font-weight:800;
  line-height:1.2;
  text-decoration:none !important;
  box-shadow:none !important;
}
.ah-area-contact__actions .ah-btn:hover,
.ah-area-detail__reset:hover,
.ah-area-plz-form button:hover{
  background:#f9fafb !important;
  border-color:#98a2b3 !important;
  transform:translateY(-1px);
}
.ah-area-contact__actions .ah-btn:visited{
  color:#111827 !important;
}
.ah-area-detail__reset{
  margin-top:14px;
  width:auto;
}
@media(max-width:560px){
  .ah-area-plz-form input{max-width:none}
  .ah-area-plz-form button{width:100%}
}

/* v45: Consent-aware OpenStreetMap loading */
.ah-finder__map,
.ah-area-map{position:relative;}
.ah-map-consent{position:absolute;inset:0;z-index:500;display:flex;align-items:center;justify-content:center;padding:22px;background:linear-gradient(135deg,rgba(248,250,252,.96),rgba(239,246,255,.94));border-radius:inherit;text-align:center;}
.ah-map-consent__box{max-width:420px;border:1px solid #dbe3ef;border-radius:18px;background:#fff;padding:24px 26px;box-shadow:0 18px 45px rgba(15,23,42,.14);}
.ah-map-consent__box strong{display:block;margin:0 0 8px;font-size:20px;color:#14258a;}
.ah-map-consent__box p{margin:0 0 16px;color:#475467;line-height:1.45;}
.ah-map-consent__box small{display:block;margin-top:12px;color:#667085;line-height:1.35;}
.ah-map-consent__box .ah-btn{border:0;cursor:pointer;}
.ah-map-consent__box .ah-btn:disabled{opacity:.65;cursor:wait;}

/* v47: Segmentierte Ansprechpartner-Darstellung */
.ah-segment-badges{display:flex;flex-wrap:wrap;gap:.35rem;margin:.45rem 0 .2rem}
.ah-segment-badges span,.ah-segment-card__label{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;background:#eef2ff;color:#1e2a78;font-size:.78rem;font-weight:700;padding:.22rem .55rem;line-height:1.25}
.ah-area-contact__headline{margin:0;font-size:16px;color:#111827}
.ah-area-contact--segments{gap:12px}
.ah-segment-card{border:1px solid rgba(20,37,138,.14);border-radius:14px;background:#fff;padding:.8rem;box-shadow:0 8px 24px rgba(15,23,42,.06)}
.ah-segment-card .ah-area-contact__top{margin-top:.55rem}
.ah-segment-card dl{margin:.55rem 0 0}
.ah-segment-badges .ah-area-color{width:.55rem;height:.55rem;border-radius:999px;display:inline-block;flex:0 0 auto}
