/* Heidenheim.info 0.2.3 — canonical start-page grid components.
 * Loaded after historical styles, replaces the old service and event grid geometry.
 * Do not add new size overrides to home-legacy.css or layout-01400.css.
 */
body.home .hi-home-modern-section--quick .hi-home-service-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;
  gap: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  box-sizing: border-box !important;
}
body.home .hi-home-modern-section--quick .hi-home-service-grid > a {
  display: flex !important;
  position: relative !important;
  grid-column: auto !important;
  grid-row: auto !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px 7px !important;
  min-height: 86px !important;
  box-sizing: border-box !important;
  transform: none;
  flex: none !important;
  overflow: hidden !important;
  scroll-snap-align: none !important;
  text-align: center !important;
}
body.home .hi-home-modern-section--quick .hi-home-service-grid > a:focus-visible {
  outline: 3px solid #087f76 !important;
  outline-offset: 2px !important;
}
body.home .hi-home-modern-section--events .hi-home-event-showcase:not(.hi-home-event-showcase--ad-carousel),
body.home .hi-home-section--events .hi-home-event-showcase:not(.hi-home-event-showcase--ad-carousel) {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  gap: 14px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}
body.home .hi-home-event-showcase:not(.hi-home-event-showcase--ad-carousel) > .hi-home-event-showcase__card {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  grid-column: auto !important;
  grid-row: auto !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
body.home .hi-home-event-showcase:not(.hi-home-event-showcase--ad-carousel) > .hi-home-event-showcase__card > .hi-home-event-showcase__visual {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  flex: 0 0 125px !important;
  width: 100% !important;
  height: 125px !important;
  min-height: 125px !important;
  max-height: 125px !important;
  overflow: hidden !important;
}
body.home .hi-home-event-showcase:not(.hi-home-event-showcase--ad-carousel) > .hi-home-event-showcase__card > .hi-home-event-showcase__body {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
  min-height: 106px !important;
  max-height: none !important;
  box-sizing: border-box !important;
  padding: 11px 12px 14px !important;
  overflow: visible !important;
}
body.home .hi-home-event-showcase:not(.hi-home-event-showcase--ad-carousel) .hi-home-event-showcase__body h3 {
  max-height: none !important;
  overflow-wrap: anywhere !important;
}
@media (max-width: 980px) {
  body.home .hi-home-modern-section--quick .hi-home-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body.home .hi-home-event-showcase:not(.hi-home-event-showcase--ad-carousel) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 620px) {
  body.home .hi-home-modern-section--quick .hi-home-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  body.home .hi-home-event-showcase:not(.hi-home-event-showcase--ad-carousel) { grid-template-columns: minmax(0, 1fr) !important; }
}
