/*
Theme Name: Hof Fischer
Template: Divi
Version: 1.0.5
*/

:root {
  --hof-red: #bc1719;
  --hof-ink: #242424;
  --hof-width: 1165px;
}

body {
  color: var(--hof-ink);
  font: 16px/1.65 "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#main-header .container, #top-header .container, #main-footer .container,
#main-content .hof-section .et_pb_row {
  width: 92%;
  max-width: var(--hof-width);
}

#top-header { background: #f8f8f8; }
#top-header .container { text-align: right; }
#top-header #et-info { float: none; color: #444; }
#top-header a { color: inherit; }
#main-header { box-shadow: none; }
#main-header #logo { width: min(365px, 55vw); height: auto; max-height: 85%; object-fit: contain; }
#top-menu a { color: #414141; }
#top-menu li.current-menu-item > a, #top-menu a:hover, .mobile_menu_bar::before { color: var(--hof-red); }
#top-menu .current-menu-item > a::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--hof-red);
}

#main-content .hof-section { padding: 0 0 34px; }
#main-content .hof-hero { padding-top: 32px; padding-bottom: 38px; }
#main-content .hof-section .et_pb_row { padding: 0; margin-inline: auto; }
.hof-hero .et_pb_image_wrap, .hof-hero img { width: 100%; }
.hof-hero img { display: block; height: auto; }
#main-content .hof-home-hero .et_pb_row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  padding: clamp(16px, 2.5vw, 30px);
  background: #f8f5f2;
  border-radius: 8px;
}
#main-content .hof-visit-details .et_pb_row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
#main-content :is(.hof-home-hero, .hof-visit-details) .et_pb_column { width: 100%; margin: 0; }
:is(.hof-home-hero, .hof-visit-details) .et_pb_row::after { display: none; }
.hof-visit-map .et_pb_button_module_wrapper { margin-bottom: 24px; }
.hof-home-hero img { border-radius: 4px; }
.hof-visit .hof-visit-hours { padding: 8px 0 10px; }
.hof-visit .hof-visit-address { padding-bottom: 18px; }
.hof-visit .hof-visit-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.hof-visit .hof-visit-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 650;
}
.hof-visit a.hof-route {
  padding: 8px 16px;
  border-radius: 4px;
  color: #fff;
  background: var(--hof-red);
  text-decoration: none;
}
.hof-visit a.hof-route:hover { background: #951517; }
#anfahrt { scroll-margin-top: 20px; }
.hof-copy h1, .hof-copy h2, .hof-copy h3, .hof-copy a { color: var(--hof-red); }
.hof-copy h1 { font-size: clamp(25px, 3vw, 34px); font-weight: 650; }
.hof-copy h2 { font-size: clamp(21px, 2.5vw, 27px); }
.hof-copy h3 { font-size: 20px; }
.hof-copy a { text-decoration: underline; text-underline-offset: 0.15em; }
.hof-legal .et_pb_text_inner { max-width: 78ch; }
.hof-section .et_pb_button { color: var(--hof-red); }
.hof-section .et_pb_button:hover { background: #f9eded; }
.hof-gallery .et_pb_gallery_items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px; }
.hof-gallery .et_pb_gallery_items .et_pb_gallery_item { width: 100% !important; margin: 0 !important; }
.hof-gallery .et_pb_gallery_image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hof-contact .et_pb_contact p input, .hof-contact .et_pb_contact p textarea { font-size: 16px; }
.hof-contact .et_pb_contact_submit { color: var(--hof-red); }

#main-footer { background: #545454; }
#main-footer a, #main-footer .footer-widget, #main-footer .footer-widget h4 { color: #fff; }
#main-footer a { text-decoration: underline; }
#footer-widgets { padding: 38px 0 22px; }
#footer-widgets .footer-widget { margin-bottom: 20px; }
#et-footer-nav, #footer-bottom { background: #f8f8f8; }
#et-footer-nav a, #footer-info { color: #3a3a3a; }
#footer-info { float: none; }

:where(a, button, input, textarea, [role="button"]):focus-visible {
  outline: 3px solid var(--hof-red);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  #main-content .hof-hero { padding-top: 18px; padding-bottom: 26px; }
  #main-content :is(.hof-home-hero, .hof-visit-details) .et_pb_row { grid-template-columns: minmax(0, 1fr); }
  .hof-gallery .et_pb_gallery_items { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  #top-header #et-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
}
