/* LG Lohr theme styles — adapted from the previous Contao site's design */

:root {
  --lg-red: #981000;
  --lg-red-hover: #6e0c00;
  --lg-text: #151515;
  --lg-border: #dbdbdb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: var(--lg-text);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

a {
  color: var(--lg-red);
  text-decoration: none;
}

a:hover {
  color: var(--lg-red-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.wrapper {
  padding: 0 20px;
}

.constrain {
  margin: 0 auto;
}

.constrain--max {
  max-width: 1400px;
}

/* Header */

.site-header {
  background-color: #fff;
  padding: 30px 0;
}

.site-header .constrain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header__logo {
  display: block;
  width: 200px;
  height: auto;
}

.site-header__logo img {
  display: block;
  width: 100%;
  height: auto;
}

@media screen and (min-width: 721px) {
  .site-header__logo {
    width: 280px;
  }
}

.site-header__burger {
  width: 30px;
  height: 30px;
  border: none;
  background-color: transparent;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.site-header__burger:before,
.site-header__burger:after {
  content: "";
  width: 20px;
  height: 2px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -1px;
  background-color: var(--lg-text);
  box-shadow: 0 -6px 0 0 var(--lg-text), 0 6px 0 0 var(--lg-text);
}

.site-header__burger:before {
  box-shadow: none;
  display: none;
}

body.nav-open .site-header__burger:after {
  box-shadow: none;
  transform: rotate(45deg);
}

body.nav-open .site-header__burger:before {
  display: block;
  transform: rotate(-45deg);
}

@media screen and (min-width: 1024px) {
  .site-header__burger {
    display: none;
  }
}

/* Primary nav */

.nav-primary ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: none;
  flex-direction: column;
  align-items: center;
}

body.nav-open .nav-primary ul {
  display: flex;
}

@media screen and (min-width: 1024px) {
  .nav-primary ul {
    display: flex;
    flex-direction: row;
    margin: 0;
  }
}

.nav-primary ul li {
  margin-top: 10px;
}

@media screen and (min-width: 1024px) {
  .nav-primary ul li {
    margin-top: 0;
    margin-left: 2px;
  }
}

.nav-primary ul li a {
  display: inline-block;
  color: var(--lg-text);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 19px;
}

.nav-primary ul li a:hover,
.nav-primary ul li.current-menu-item > a,
.nav-primary ul li.current_page_item > a {
  background-color: var(--lg-red);
  color: #fff;
}

/* Hero */

.hero {
  width: 100%;
  display: block;
}

.hero img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top;
}

@media screen and (min-width: 721px) {
  .hero img {
    height: 350px;
  }
}

@media screen and (min-width: 1200px) {
  .hero img {
    height: 400px;
  }
}

.hero-welcome {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.4;
  padding: 40px 0 0;
}

/* Main content */

.main {
  padding: 40px 0;
}

.main h1 {
  margin-top: 0;
}

.main strong {
  font-weight: 900;
}

.main table {
  width: 100%;
  border: 1px solid var(--lg-border);
  border-collapse: collapse;
}

.main table th,
.main table td {
  padding: 8px 12px;
  text-align: left;
  border: 1px solid var(--lg-border);
}

.main .wp-block-image,
.main figure.image_container {
  display: block;
  border: 1px solid var(--lg-border);
  border-radius: 5px;
  overflow: hidden;
  margin: 0 0 20px;
  position: relative;
}

.main .wp-block-image img {
  display: block;
  width: 100%;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media screen and (min-width: 481px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-grid figure {
  margin: 0;
  border: 1px solid var(--lg-border);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* Downloads */

.main ul.wp-block-file-list,
.main .file-downloads {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.main .file-downloads li {
  margin-bottom: 8px;
}

.wp-block-file__button {
  background-color: var(--lg-red);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-block;
}

.wp-block-file__button:hover {
  background-color: var(--lg-red-hover);
  color: #fff;
}

/* News / blog list */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--lg-border);
}

.post-list h2 {
  margin: 0 0 8px;
}

.post-meta {
  color: #6b6b6b;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Footer */

.site-footer {
  background-color: var(--lg-red);
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .constrain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media screen and (min-width: 721px) {
  .site-footer .constrain {
    flex-direction: row;
    justify-content: space-between;
  }
}

.nav-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}
