@font-face {
  font-family: "Lato";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Lato-Regular.woff2");
}
@font-face {
  font-family: "Lato";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Lato-Black.woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/DMSerifDisplay-Regular.woff2");
}

:root {
  --black: #000;
  --red: #D84840;
  --red-light: #ffeaea;
  --blue: #2E5BFF;
  --blue-light: #eaf0ff;
  --white: #FFF;
  --gray: #b8b8b8;
  --dark-gray: #6e6e6e;
  --corner-radius: 2px;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--black);
  background: var(--black);
}

h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
}

h1 {
  font-size: 3rem;
  margin: 0;
  padding: 0;
}

h2 {
  font-size: 2rem;
  margin: 0;
  padding: 1rem 0;
}

p {
  margin: 1rem 0;
  padding: 0;
  font-size: 1.125rem;
  line-height: 1.5rem;
}

header {
  position: sticky;
  top: 0;
  display: block;
  background: var(--black);
  padding: 0 3rem;
  z-index: 1;
}

body.home header {
  background: none;
  transition: background-color 0.5s ease-in-out;
}
body.home header.opaque {
  background: var(--black);
}

body.admin-bar header {
  top: 2rem;
}

body.home {
  background: url('/wp-content/themes/kuchlmayr/assets/images/lines.png'), var(--black);
  background-repeat: no-repeat;
  background-size: 100%;
}

main {
  background: var(--white);
  padding: 1rem 3rem 3rem 3rem;
}

body.home main {
  background: none;
  color: var(--white);
  padding: 0 3rem;
}
body.home a:link, body.home a:visited {
  color: var(--white);
}

main.article {
  background: var(--white);
  padding: 2rem 3rem;
  color: var(--black);
}
main.archive {
  padding: 2rem 3rem;
}

a:link, a:visited {
  color: var(--black);
  text-decoration: underline;
}

section.heading {
  padding: 0rem 3rem;
  background: var(--black);
  color: var(--white);
}

section.heading h1 {
  line-height: 3.25rem;
}

section.heading h1.bottom-space {
  margin-bottom: 1rem;
}

.wrapper {
  max-width: 1600px;
  margin: 0 auto;
}

main.article .wrapper {
  max-width: 960px;
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  z-index: 100;
}

a.logo-container:link, a.logo-container:visited {
  text-decoration: none;
}

.logo-container .logo-text {
  color: var(--white);
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.125rem; /* 100% */
  text-transform: uppercase;
  display: inline-block;
  margin: 1rem 0;
}

.article-header div:last-child {
  background-position: 50% 0%;
  background-repeat: no-repeat;
  background-size: cover;
}

.article-header div:first-child {
  margin: 1rem 0;
}

footer {
  padding: 2rem 3rem;
  background: var(--black);
  font-size: .75rem;
  color: var(--gray);
}

body.home footer {
  background: none;
}

footer .footer-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

footer .footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer .footer-nav ul li {
  padding: .2rem 0;
}

footer .footer-nav ul li a:link, footer .footer-nav ul li a:visited {
  color: var(--white);
  font-size: 1.125rem;
}

footer .footer-nav .col {
  flex: 1 1 0px;
}

footer .logo-container {
  padding-bottom: 1rem;
}

.navi {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.navi > li {
  margin: 0 1rem;
  overflow: hidden;
}

.navi > li:last-child {
  margin: 0 0 0 1rem;
}

.navi li a:link, .navi li a:visited {
  color: var(--black);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  text-transform: uppercase;
  display: inline-block;
  text-decoration: none;
  color: var(--white);
}

.nav-button-container {
  display: none;
  height: 40px;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#nav-toggle {
  display: none;
}

.nav-button, .nav-button::before, .nav-button::after {
  display: block;
  background-color: var(--white);
  position: absolute;
  height: 2px;
  width: 30px;
  transition: .25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 1px;
}

.nav-button::before {
  content: '';
  margin-top: -8px;
}

.nav-button::after {
  content: '';
  margin-top: 8px;
}

#nav-toggle:checked + .nav-button-container .nav-button::before {
  margin-top: 0px;
  transform: rotate(45deg);
}

#nav-toggle:checked + .nav-button-container .nav-button {
  background: var(--black);
}

#nav-toggle:checked + .nav-button-container .nav-button::after {
  margin-top: 0px;
  transform: rotate(-45deg);
}

.teaser-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  column-gap: 2rem;
  row-gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.teaser-list-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background-color: var(--black);
  color: var(--white);
  text-decoration: none;
}

.teaser-list-item > a:link, .teaser-list-item > a:visited {
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  color: var(--white);
}

.teaser {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.teaser > div {
  padding: 1rem;
  flex: 1 1 0px;
}

.teaser > div:last-child {
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: cover;
}

.teaser h2 {
  padding: 0;
  line-height: 1.1;
}

span.topmark {
  color: var(--red);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

span.article-topmark {
  color: var(--red);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.teaser div > p {
  margin: 1rem 0 0 0;
}

.aside {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.aside.has-image {
  min-height: 16rem;
}

.aside > div {
  flex: 1 1 0px;
}

.block {
  margin-top: 2rem;
}

a.button:link, a.button:visited, input[type="submit"], button {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 1rem 2rem;
  text-align: center;
  transition: background-color 0.25s ease-in-out;
  border-radius: var(--corner-radius);
  font-size: 1rem;
  font-family: inherit;
  border: 0px;
  text-decoration: underline;
  cursor: pointer;
  font-weight: normal;
}

a.button.close:link, a.button.close:visited, ul.inline-list.taxonomy li a.button.close:link, ul.inline-list.taxonomy li a.button.close:visited{
  border: 2px solid var(--white);
  border-radius: 50%;
  width: 1.15rem;
  height: 1.15rem;
  position: relative;
  background: var(--black);
  vertical-align: top;
}
a.button.close:link::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  width: 2px;
  height: 1rem;
  background-color: var(--white);
  transform: translate(-50%, -50%) rotate(45deg);
}
a.button.close:link::after {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  width: 2px;
  height: 1rem;
  background-color: var(--white);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.content {
  font-size: 1.125rem;
}

ul.inline-list {
  list-style: none;
  padding: 0;
  font-size: 1.125rem;
}
ul.inline-list li {
  display: inline;
}
ul.inline-list li a:link, ul.inline-list a:visited {
  padding: .25rem;
  text-decoration: none;
  display: inline-block;
  border-radius: var(--corner-radius);
  margin: .15rem .05rem;
}
ul.inline-list.taxonomy li a:link, ul.inline-list.taxonomy li a:visited {
  color: var(--white);
  background: var(--red);
}
ul.inline-list.taxonomy li a:link.active, ul.inline-list.taxonomy li a:visited.active {
  background: var(--white);
  color: var(--red);
}
ul.inline-list.pagination {
  text-align: center;
  margin: 2rem 0 0 0;
}
ul.inline-list.pagination li a:link, ul.inline-list.pagination li a:visited {
  background-color: var(--black);
  color: var(--white);
  min-width: 1.5rem;
}
ul.inline-list.pagination li a:link.active, ul.inline-list.pagination li a:visited.active {
  background-color: var(--red);
}

/* HERO */
.hero {
  padding: 1rem 0 3rem 0;
}
.hero-wrapper {
  width: 50%;
  max-width: 820px;
}
.hero {
  font-family: 'DM Serif Display', serif;
  min-height: 50vh;
}

.hero h1 {
  padding-top: 2rem;
  font-size: 3rem;
  line-height: 3.25rem;
}
.hero p {
  font-size: 2rem;
  line-height: 2.25rem;
}
/* END HERO */

@media screen and (max-width: 1024px) {x
  .teaser {
    flex-direction: column-reverse;
  }
  .teaser > div:last-child {
    min-height: 12rem;
    background-position: center;
    background-size: 100%;
  }
}

@media screen and (max-width: 1100px) {
  .teaser-list {
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: auto;
  }
  .teaser-list-item {
    background-color: var(--black);
    color: var(--white);
    border: 0;
  }
  .teaser-list-item > a:link, .teaser-list-item > a:visited {
    color: var(--white);
  }
  .teaser {
    flex-direction: column-reverse;
  }
  .teaser > div:last-child {
    min-height: 20rem;
    background-position: center;
    background-size: 100%;
  }
  .teaser > div {
    padding: 1rem;
  }
  body.home {
    background-size: 100% 50%;
    background-position: 0 60px;
  }
  header, body.home main {
    padding: 0 1.5rem;
  }
  main {
    padding: 1.5rem;
  }
  footer {
    padding: 1.5rem;
  }
  footer .footer-nav {
    flex-direction: column;
  }

  body.admin-bar header {
    top: 0;
  }
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  p {
    font-size: 1.125rem;
    line-height: 1.5rem;
  }
  .content {
    font-size: 1.123rem;
    line-height: 1.5rem;
  }
  main.article, main.archive {
    padding: 1.5rem;
  }
  main.article .wrapper {
    padding: 0;
  }
  main.article .wrapper .content :first-child {
    margin-top: 0;
  }
  section.heading {
    padding: 0;
  }
  section.heading h1 {
    line-height: 2.5rem;
  }
  section.heading h1.bottom-space {
    margin-bottom: .75rem;
  }
  .navi {
    position: fixed;
    top: 4.25rem;
    left: 0;
    bottom: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    background: var(--white);
  }
  #nav-toggle ~ .navi {
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease-in-out;
  }
  #nav-toggle:checked ~ .navi {
    opacity: 1;
    visibility: visible;
    transition: all 0.25s ease-in-out;
  }
  .navi li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .navi > li:last-child {
    margin: 0;
  }
  .navi li a:link, .navi li a:visited {
    padding: 1rem;
    font-size: 1.5rem;
    color: var(--black);
    width: 100%;
    text-align: center;
  }
  .nav-button-container {
    display: flex;
    z-index: 100;
  }
  .article-header div:first-child {
    margin: 1rem 1rem 1rem 1.5rem;
  }
  .article-header div.imagecontainer {
    min-height: 16rem;
  }
  .aside {
    flex-direction: column;
  }
  
  .hero {
    padding: 1rem 0 1.5rem 0;
  }

  .hero-wrapper {
    width: 100%;
  }
}

@media screen and (max-width: 920px) {
  .teaser > div:last-child {
    min-height: 12rem;
  }
}

@media screen and (max-width: 440px) {
  body.home {
    background: url('/wp-content/themes/kuchlmayr/assets/images/lines-m.png'), var(--black);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: 0 60px;
  }
  .teaser > div:last-child {
    background-size: 150%;
  }
}

/* START WP ELEMENT HELPERS */
.center-video {
  max-width: 320px;
  margin: 0 auto;
}

.rounded-borders-5 img, .rounded-borders-5 video {
  border-radius: 5px;
}

.wp-block-gallery.has-nested-images figcaption {
  font-size: 1rem;
  color: var(--dark-gray);
}
figure.wp-block-gallery.has-nested-images figure.wp-block-image figcaption.wp-element-caption {
  font-size: .825rem;
  color: var(--dark-gray);
}

/* END WP ELEMENT HELPERS */

.message-box {
  padding: 1rem;
  background: var(--blue-light);
  color: var(--blue);
  border-top: 1px solid var(--blue);
  border-radius: 0 0 var(--corner-radius) var(--corner-radius);
  margin-bottom: 1rem;
}
.message-box.error {
  background: var(--red-light);
  color: var(--red);
  border-top: 1px solid var(--red);
}
.message-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.message-box ul li {
  margin: .25rem 0;
}
.message-box strong.message-h1 {
  padding-bottom: .5rem;
  display: inline-block;
}