/*
 * Heidenheim.info – globale Suchergebnis-Seite 0.1.209
 * Breiter Hero, kompakte 15er-Kacheln, klare Pagination und synchronisierte Suchkarte.
 */
:root{
  --hi209-axis:1320px;
  --hi209-hero:1720px;
  --hi209-gutter:32px;
  --hi209-line:#d8e3e6;
  --hi209-navy:#123148;
  --hi209-petrol:#0b7a75;
  --hi209-muted:#5d6f78;
}
body.search main.hi-search-shell{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding-top:0!important;
  box-sizing:border-box!important;
}
/* Breiter Such-Hero: deutlich breiter als die Ergebnisachse, ohne Full-Bleed-Zwang. */
body.search main.hi-search-shell>.hi-search-hero{
  position:relative!important;
  width:min(var(--hi209-hero),calc(100vw - 48px))!important;
  max-width:none!important;
  min-height:250px!important;
  margin:24px auto 30px!important;
  padding:clamp(34px,5vw,66px)!important;
  display:flex!important;
  align-items:flex-end!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:24px!important;
  background:
    linear-gradient(90deg,rgba(7,30,45,.92) 0%,rgba(8,72,73,.78) 60%,rgba(7,30,45,.42) 100%),
    url('../images/home/hero-schloss-hellenstein-nebel.webp') center 52%/cover no-repeat!important;
  box-shadow:0 8px 26px rgba(18,49,72,.09)!important;
  color:#fff!important;
  font-size:clamp(2.2rem,4.4vw,4rem)!important;
  line-height:1.01!important;
  letter-spacing:-.045em!important;
  text-shadow:0 2px 14px rgba(0,0,0,.22)!important;
}
body.search .hi-search-content{
  width:min(var(--hi209-axis),calc(100vw - 2 * var(--hi209-gutter)))!important;
  max-width:var(--hi209-axis)!important;
  margin:0 auto!important;
  padding:0!important;
  box-sizing:border-box!important;
}
body.search .hi-search-content>.wp-block-search{
  width:100%!important;
  max-width:none!important;
  margin:0 0 12px!important;
}
body.search .hi-search-content>.wp-block-shortcode,
body.search .hi-search-content>.wp-block-query{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}
body.search .hi-search-result-count{margin:10px 0 14px!important;font-size:.82rem!important;color:var(--hi209-muted)!important}

/* Karte gehört zur aktuellen Ergebnisseite und sitzt unter den Kacheln. */
body.search .hi-search-map{
  width:100%!important;
  margin:18px 0 22px!important;
  padding:16px!important;
  box-sizing:border-box!important;
  border:1px solid var(--hi209-line)!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 5px 18px rgba(18,49,72,.055)!important;
  overflow:hidden!important;
}
body.search .hi-search-map>h2{margin:0 0 3px!important;color:var(--hi209-navy)!important;font-size:1.22rem!important}
body.search .hi-search-map>p{margin:0 0 12px!important;font-size:.8rem!important;color:var(--hi209-muted)!important}
body.search .hi-search-map .hi-map-overview,
body.search .hi-search-map .hi-portal-map,
body.search .hi-search-map .leaflet-container{width:100%!important;max-width:100%!important;border-radius:14px!important}

/* Maximal 15 Treffer kommen aus der Main Query; Darstellung als kompakte CI-Kacheln. */
body.search .hi-search-query>.wp-block-post-template{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
body.search .hi-search-query>.wp-block-post-template>li{
  min-width:0!important;
  margin:0!important;
}
body.search .hi-search-result{
  position:relative!important;
  cursor:pointer!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  min-height:158px!important;
  height:100%!important;
  padding:15px 16px 14px!important;
  box-sizing:border-box!important;
  border:1px solid var(--hi209-line)!important;
  border-top:4px solid var(--hi209-petrol)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 5px 16px rgba(18,49,72,.05)!important;
}
body.search .hi-search-result:hover{border-color:#bed4d3!important;box-shadow:0 9px 24px rgba(18,49,72,.09)!important;transform:translateY(-1px)!important}
body.search .hi-search-result__type{
  display:inline-flex!important;
  margin:0 0 8px!important;
  padding:4px 8px!important;
  border-radius:999px!important;
  background:#edf5f3!important;
  color:#35605c!important;
  font-size:.66rem!important;
  font-weight:850!important;
  line-height:1.15!important;
  letter-spacing:.02em!important;
  text-transform:uppercase!important;
}
body.search .hi-search-result .wp-block-post-title,
body.search .hi-search-result .wp-block-post-title.has-large-font-size{
  margin:0 0 7px!important;
  color:var(--hi209-navy)!important;
  font-size:1rem!important;
  line-height:1.22!important;
  letter-spacing:-.012em!important;
}
body.search .hi-search-result .wp-block-post-title a{color:inherit!important;text-decoration:none!important}
/* Die Titelverlinkung spannt sich unsichtbar ueber die komplette Karte.
   Damit ist die gesamte Ergebniskachel klickbar, ohne zusaetzliches JS. */
body.search .hi-search-result .wp-block-post-title a::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  border-radius:inherit!important;
}
body.search .hi-search-result:focus-within{
  outline:3px solid rgba(11,122,117,.28)!important;
  outline-offset:2px!important;
}
body.search .hi-search-result .wp-block-post-excerpt{margin:auto 0 0!important;width:100%!important;color:var(--hi209-muted)!important}
body.search .hi-search-result .wp-block-post-excerpt__excerpt{
  display:-webkit-box!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  margin:0 0 7px!important;
  font-size:.75rem!important;
  line-height:1.38!important;
}
body.search .hi-search-result .wp-block-post-excerpt__more-text{margin:0!important}
body.search .hi-search-result .wp-block-post-excerpt__more-link{
  color:var(--hi209-petrol)!important;
  font-size:.74rem!important;
  font-weight:800!important;
  text-decoration:none!important;
}

/* Nur Zurück / Weiter, keine Zahlenleiste. */
body.search .hi-search-pagination{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  margin:22px 0 8px!important;
}
body.search .hi-search-pagination a{
  display:inline-flex!important;
  align-items:center!important;
  min-height:42px!important;
  padding:9px 14px!important;
  border:1px solid #cbdcda!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--hi209-petrol)!important;
  font-weight:850!important;
  text-decoration:none!important;
}
body.search .hi-search-pagination .wp-block-query-pagination-next{margin-left:auto!important}

@media(max-width:1050px){
  body.search .hi-search-query>.wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
  :root{--hi209-gutter:14px}
  body.search main.hi-search-shell>.hi-search-hero{
    width:calc(100vw - 20px)!important;
    min-height:185px!important;
    margin:10px auto 18px!important;
    padding:24px 18px!important;
    border-radius:18px!important;
    font-size:clamp(1.7rem,9vw,2.45rem)!important;
  }
  body.search .hi-search-query>.wp-block-post-template{grid-template-columns:1fr!important;gap:10px!important}
  body.search .hi-search-result{min-height:0!important;padding:13px 14px!important}
  body.search .hi-search-map{padding:10px!important;margin:14px 0 18px!important}
}
