/* HI Theme 0.2.14 – consolidated homepage components.
 * Correct template semantics, responsive cards, readable metadata.
 * Loaded once at priority 10000 after all legacy sheets.
 */
html body.home .hi-home-destination-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;width:100%!important;overflow:visible!important}
html body.home .hi-home-destination-grid>.hi-home-destination-card{display:flex!important;min-width:0!important;width:100%!important;height:auto!important;margin:0!important;transform:none!important}
html body.home .hi-home-destination-grid>.hi-home-destination-card .hi-home-destination-card__body{height:auto!important;min-height:100px!important;padding:14px!important;display:flex!important;flex-direction:column!important}
html body.home .hi-home-destination-grid>.hi-home-destination-card h3{font-size:15px!important;line-height:1.28!important}
@media(max-width:980px){html body.home .hi-home-destination-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:781px){
 html body.home{overflow-x:clip}
 html body.home .wp-block-navigation__responsive-container-open{min-width:44px!important;min-height:44px!important;align-items:center!important;justify-content:center!important}
 html body.home .hi-home-hero__inner{max-width:100%!important;box-sizing:border-box!important;padding-inline:12px!important}
 html body.home .hi-home-hero__copy h1{font-size:clamp(25px,7vw,35px)!important;line-height:1.08!important}
 html body.home .hi-home-hero__search{width:100%!important;min-height:46px!important;box-sizing:border-box!important}
 html body.home .hi-home-hero__search input{min-width:0!important;font-size:14px!important}
 html body.home .hi-home-hero__search button{min-height:40px!important;flex-shrink:0!important}
 html body.home #hi-today-0162>.hi-ui-today-card.is-text-only,html body.home #hi-today-0162>.hi-ui-today-card:not(:has(img)){height:auto!important;min-height:104px!important}
 html body.home #hi-today-0162>.hi-ui-today-card:not(:has(img)) .hi-ui-today-card__visual{display:none!important}
 html body.home #hi-today-0162>.hi-ui-today-card:not(:has(img)) .hi-ui-today-card__body{min-height:104px!important;height:auto!important;padding:14px!important}
 /* Existing PHP creates is-text-only without visual element. Override old 2-column grid. */
 html body.home.home .hi-home-event-showcase:not(.hi-home-event-showcase--ad-carousel)>.hi-home-event-showcase__card.is-text-only{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto!important;min-height:104px!important;height:auto!important}
 html body.home.home .hi-home-event-showcase:not(.hi-home-event-showcase--ad-carousel)>.hi-home-event-showcase__card.is-text-only>.hi-home-event-showcase__body{grid-column:1/-1!important;grid-row:1!important;width:100%!important;height:auto!important;min-height:104px!important;padding:12px 14px 12px 70px!important;box-sizing:border-box!important;background:transparent!important}
 html body.home.home .hi-home-event-showcase:not(.hi-home-event-showcase--ad-carousel)>.hi-home-event-showcase__card.is-text-only>.hi-home-event-showcase__date{z-index:3!important;top:12px!important;left:12px!important}
 html body.home.home .hi-home-event-showcase .hi-home-event-showcase__body h3{font-size:15px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
 html body.home.home .hi-home-event-showcase .hi-home-event-showcase__body p{font-size:13px!important;line-height:1.4!important}
 html body.home .hi-home-destination-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html body.home .hi-home-destination-grid>.hi-home-destination-card:nth-child(n){display:flex!important;min-width:0!important}
 html body.home .hi-home-destination-grid>.hi-home-destination-card .hi-home-destination-card__body{min-height:112px!important;height:auto!important;padding:12px!important}
 html body.home .hi-home-destination-grid>.hi-home-destination-card h3{font-size:14px!important;overflow-wrap:anywhere!important}
 html body.home .hi-home-modern-section--discover .hi-home-destination-grid .hi-home-destination-card__more{font-size:12px!important}
 html body.home :is(.hi-home-new-card,.hi-home-new-entry-card){height:auto!important;min-height:100px!important;padding:13px 14px!important}
 html body.home :is(.hi-site-footer,footer.wp-block-template-part) :is(a,p,li){font-size:13px!important;line-height:1.5!important}
}
@media(prefers-reduced-motion:reduce){html body.home .hi-home-destination-grid *{animation:none!important;scroll-behavior:auto!important}}

/* 0.2.14 – single source of truth for homepage responsive components. */
body.home .hi-home-hero__location,body.home .hi-home-hero .hi-hero-credit{display:none!important;}
@media (max-width:781px){
 html body.home .hi-home-modern-section--discover .hi-home-destination-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:10px!important;min-height:0!important;}
 html body.home .hi-home-modern-section--discover .hi-home-destination-grid>.hi-home-destination-card{width:auto!important;max-width:none!important;min-height:110px!important;height:auto!important;margin:0!important;flex-basis:auto!important;overflow:hidden!important;}
 html body.home .hi-home-modern-section--discover .hi-home-destination-card__body{min-height:105px!important;padding:12px!important;}
 html body.home .hi-home-event-showcase>.hi-home-event-showcase__card{position:relative!important;min-height:104px!important;}
 html body.home .hi-home-event-showcase>.hi-home-event-showcase__card.is-text-only .hi-home-event-showcase__body{display:block!important;padding:14px 14px 12px 72px!important;min-height:104px!important;}
 html body.home .hi-home-event-showcase>.hi-home-event-showcase__card .hi-home-event-showcase__date{position:absolute!important;top:14px!important;left:12px!important;right:auto!important;bottom:auto!important;width:45px!important;height:auto!important;z-index:6!important;margin:0!important;}
 html body.home .hi-site-footer .hi-footer-brand-logo{display:block!important;margin:0 0 12px!important;}
 html body.home .hi-site-footer .hi-footer-brand-logo img{display:block!important;width:156px!important;max-width:75vw!important;height:auto!important;}
}


/* 0.2.17: definitive homepage corrections; scoped to active HTML elements. */
@media (min-width: 782px) {
 body.home .hi-home-hero .hi-home-hero__slides .hi-home-hero__slide {
  background-image:url('../../images/home/hero-haertsfeldsee.webp')!important;
  background-position:center 52%!important;background-size:cover!important;
 }
 body.home .hi-home-hero .hi-home-hero__slides .hi-home-hero__slide img {opacity:1!important;visibility:visible!important;display:block!important;}
}
/* Old legacy media rule hides the fourth card; it is not a data limit. */
@media (max-width: 781px) {
 html body.home.home .hi-home-modern-section--discover .hi-home-destination-grid {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important;}
 html body.home.home .hi-home-modern-section--discover .hi-home-destination-grid > .hi-content-card:nth-child(n+4) {display:flex!important;visibility:visible!important;opacity:1!important;min-width:0!important;}
 html body.home.home .hi-home-event-showcase:not(.hi-home-event-showcase--ad-carousel) > article.hi-home-event-showcase__card.is-text-only {
  display:grid!important;position:relative!important;grid-template-columns:58px minmax(0,1fr)!important;
  grid-template-rows:minmax(80px,auto)!important;gap:0!important;min-height:80px!important;height:auto!important;
  align-items:center!important;
 }
 html body.home.home .hi-home-event-showcase:not(.hi-home-event-showcase--ad-carousel) > article.hi-home-event-showcase__card.is-text-only > time.hi-home-event-showcase__date {
  display:flex!important;position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  grid-column:1!important;grid-row:1!important;place-self:center!important;
  width:42px!important;min-width:42px!important;height:auto!important;margin:0!important;transform:none!important;z-index:1!important;
 }
 html body.home.home .hi-home-event-showcase:not(.hi-home-event-showcase--ad-carousel) > article.hi-home-event-showcase__card.is-text-only > div.hi-home-event-showcase__body {
  position:relative!important;grid-column:2!important;grid-row:1!important;min-width:0!important;
  width:auto!important;min-height:0!important;height:auto!important;margin:0!important;
  padding:10px 12px 10px 2px!important;box-sizing:border-box!important;
 }
}
/* Footer branding fallback for site-editor footer template overrides lacking the image block. */
body .hi-site-footer .wp-block-columns > .wp-block-column:first-child {position:relative!important;}
body .hi-site-footer .wp-block-columns > .wp-block-column:first-child::before {
 content:'';display:block;width:156px;height:65px;margin:0 0 10px;
 background-image:url('../../images/logo-heidenheim-info.png');background-repeat:no-repeat;
 background-size:contain;background-position:left center;
}
body .hi-site-footer .wp-block-columns > .wp-block-column:first-child .hi-footer-brand-logo {display:none!important;}
