:root {
  --bavarian: #238fd6;
  --dark: #5c707d;
  --gray: #bcbaba;
}

@font-face {
  font-family: titillium;
  src: url("/assets/fonts/TitilliumWeb-Light.ttf");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: titillium;
  src: url("/assets/fonts/TitilliumWeb-Regular.ttf");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: titillium;
  src: url("/assets/fonts/TitilliumWeb-SemiBold.ttf");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: titillium;
  src: url("/assets/fonts/TitilliumWeb-Bold.ttf");
  font-weight: 700;
  font-display: swap;
}

body {
  position: relative;
  font-family: titillium, sans-serif;
  font-size: 18px;
  line-height: 1.6em;
  letter-spacing: 0;

  max-width: 1800px;
  margin: 0 auto;
}

h2 {
  font-family: titillium;
  font-weight: 700;
  font-style: Bold;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0%;

  text-transform: uppercase;
  color: var(--bavarian);
}

a {
  color: var(--bavarian);
}

.block {
  list-style-type: none;
  border-top: solid 1px black;
  border-bottom: solid 1px black;
  margin: 10px 0;
}

.block-container {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.block-content {
  order: 2;
  margin: 24px 0;
  padding: 0 20px;

  word-wrap: break-word;
  word-break: break-word;
}

.block-link-subtle {
  text-decoration: none;
  color: initial;
}

.block-img {
  order: 1;
  position: relative;
  width: 50%;
  overflow: hidden;
}

.block-img-right {
  order: 3;
}

.block-img img {
  position: absolute;
  width: 100%;
  object-fit: cover;
  height: 100%;
}

.image-shape-left {
  height: 100%;
  aspect-ratio: 1;
  position: absolute;
  background: linear-gradient(280deg, #fff 15%, transparent 0%), transparent;
  z-index: 1;
  right: 0;
}

.image-shape-right {
  height: 100%;
  aspect-ratio: 1;
  position: absolute;
  background: linear-gradient(280deg, transparent 85%, #fff 0%), transparent;
  z-index: 1;
}

.dark,
.dark h2,
.dark a {
  color: #fff;
  background-color: var(--dark);
}

.dark > .block-img > .image-shape-left,
.dark > .block-img > .image-shape-right {
  background: linear-gradient(280deg, var(--dark) 15%, transparent 0%),
    transparent;
}

@media (max-width: 470px) {
  .block {
    margin: 40px 0;
  }

  .block-container {
    flex-direction: column;
    gap: 0;
  }

  .block-content {
    width: auto !important;
    padding: 0 20px !important;
    margin: 0;

    font-weight: 300;
  }

  .block-img {
    width: 100% !important;
    height: 240px;
  }

  .block-img-right {
    order: 1;
  }
}

.header-container {
  display: flex;
}

.logo-container {
  display: flex;
  align-content: center;
  width: 100%;
  transition: width 0.5s;
}

.logo-container a {
  display: flex;
}

.logo {
  display: flex;
  margin: 40px 0 40px 40px;
}

.header-logo {
  min-width: 200px;
}

.divider-container {
  display: flex;
  margin: 0 40px;
}

header {
  width: 100%;
  z-index: 100;
  position: sticky;
  top: 0;

  background-color: #fff;
  border-bottom: solid 1px black;
}

nav {
  flex-grow: 1;
  flex-shrink: 0;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;

  align-items: center;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  grid-column-gap: 0;
  grid-row-gap: 8px;
}

nav ul li a {
  text-decoration: none;
}

nav ul li h2 {
  margin: 10px;
}

.small-width-nav {
  display: none;
  width: 100%;
}

.small-width-nav nav {
  margin: 24px 10px;
}

.full-width-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
}

@media (max-width: 1100px) {
  .logo-container.collapsed {
    width: 60%;
  }

  .logo {
    margin: 0 0 0 40px;
  }

  .header-logo {
    min-width: initial;
    max-width: 200px;
  }

  .divider-container svg {
    width: 100%;
    height: 100%;
  }

  .divider-container {
    margin: 0 0 0 40px;
  }

  .full-width-nav {
    display: none;
  }

  .small-width-nav {
    display: block;
  }

  .small-width-nav h2 {
    font-size: 20px;
  }

  .header-container {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .small-width-nav {
    display: block;
  }
  .full-width-nav {
    display: none;
  }
  nav ul {
    grid-template-columns: repeat(2, 1fr);
    grid-row-gap: 0;
  }
}

@media (max-width: 320px) {
  .small-width-nav {
    display: block;
  }
  .full-width-nav {
    display: none;
  }
  nav ul {
    grid-template-columns: repeat(1, 1fr);
  }
}

footer .footer-divider {
  height: 1px;
  width: 100%;
  margin-bottom: 5px;
  background-color: var(--gray);
}

footer .footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  grid-column-gap: 8px;
  grid-row-gap: 8px;

  padding: 10px 40px;

  background-color: var(--gray);
  color: #fff;
}

footer .footer-container a {
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}

footer *::selection {
  background: #5c707d40;
  color: #ffffff;
}
footer *::-moz-selection {
  background: #5c707d40;
  color: #ffffff;
}
footer *::-webkit-selection {
  background: #5c707d40;
  color: #ffffff;
}

@media (max-width: 920px) {
  footer .footer-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 620px) {
  footer .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  #contact-info {
    grid-column: span 2;
  }
}

@media (max-width: 400px) {
  footer .footer-container {
    grid-template-columns: repeat(1, 1fr);
  }
  #contact-info {
    grid-column: span 1;
  }
}

.slider-container {
  position: relative;
}

.slider {
  width: 100%;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.slider li {
  position: absolute;
  width: 100%;
  height: 100%;
}

.slide {
  position: relative;
  height: 100%;
}

.slide-container {
  height: 100%;
}

.slide-img {
  height: 100%;
}

.slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content-container {
  position: absolute;
  max-width: 500px;
  top: 0;
  left: 0;
  padding: 20px 0 50px 0;
  margin: 0 min(80px, 5%);
}

.slide-content {
  width: 100%;
}

.slide-content h2 {
  color: #fff;
  filter: drop-shadow(0px 4px 4px #00000040);
}

.slide-content .slide-card {
  background-color: #ffffffbb;
  font-weight: 300;
  padding: 4px 24px;
  box-shadow: 2px 3px 8px 0px #00000040;
}

@keyframes slide-in-1 {
  0% {
    left: 0;
  }
  30% {
    left: 0;
  }
  33% {
    left: -100%;
    z-index: -1;
  }
  96% {
    left: 100%;
    z-index: -1;
  }
  100% {
    left: 0%;
  }
}

@keyframes slide-in-2 {
  0% {
    left: 100%;
  }
  30% {
    left: 100%;
  }
  33% {
    left: 0%;
  }
  63% {
    left: 0%;
  }
  66% {
    left: -100%;
  }
  100% {
    left: -100%;
  }
}

@keyframes slide-in-3 {
  0% {
    left: 100%;
  }
  63% {
    left: 100%;
  }
  66% {
    left: 0%;
  }
  96% {
    left: 0%;
  }
  100% {
    left: -100%;
  }
}

#slide-1 {
  animation: slide-in-1 12s infinite;
}
#slide-2 {
  left: 100%;
  animation: slide-in-2 12s infinite;
}
#slide-3 {
  left: 100%;
  animation: slide-in-3 12s infinite;
}

.slider-button {
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.slider-buttons {
  position: absolute;
  bottom: 10px;
  width: 100%;

  display: none;
  justify-content: center;
}

.slider-container:hover .slider-buttons {
  display: flex;
}

@media only screen and (max-width: 768px) {
  .slider-buttons {
    display: flex;
  }
}

.spacer {
  visibility: hidden;
}
.spacer .slide-content-container {
  position: relative;
  padding: 40px 0 50px 0;
}

.imprint-container {
  margin: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.imprint-content {
  min-width: 300px;
  flex: 1;
}
