@import url(./fonts.css);

:root {
  --messebau: #3340e2;
  --schreinerei: #29805b;
  --about: #000000;
  --maxwidth: 1000px;
}

* {
  font-family: "Roboto", Arial, sans-serif;
}

body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
}

main {
  background-color: white;
}

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

h1 {
  font-size: 4rem;
  font-weight: 700;
}

h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-top: 1.5rem;
}

h3 {
  font-family: Merriweather, serif;
  font-weight: 400;
  font-size: 2rem;
}

p {
  font-family: Merriweather, serif;
  font-size: 1.2rem;
  line-height: 1.8rem;
  font-weight: 300;
}

.bold-paragraph {
  font-weight: 700;
}

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

button {
  background: transparent;
  border: none;
}

a {
  color: black;
}

.logo-desktop {
  position: relative;
  z-index: 1;
  object-fit: contain;
  scale: 0.3;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

.hero-video-overlay {
  opacity: 0.2;
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: white;
  pointer-events: none;
}

.arrowlist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.5rem;
}

.arrowlist.row {
  flex-direction: row;
  justify-content: space-between;
}

.arrowlist.row > * {
  display: block;
  flex: 1 1 !important;
}

.arrowlist.front > *::before {
  content: "";
  background-image: url(/assets/content/elements/link-arrow.svg);
  background-size: contain;
  margin-right: 1rem;
  height: 1rem;
  width: 1rem;
  display: inline-block;
}

.arrowlist.back > *::after {
  content: "";
  background-image: url(/assets/content/elements/link-arrow.svg);
  background-size: contain;
  margin-left: 1rem;
  height: 1rem;
  width: 1rem;
  display: inline-block;
}

#arrowlist {
  margin-left: initial;
}

header {
  position: fixed;
  display: flex;
  justify-content: space-between;
  width: calc(100% - 2rem);
  z-index: 2;
  padding: 1rem;
  font-weight: 400;
  top: 0;
  white-space: nowrap;
}

header .current {
  font-weight: 700;
}

header a:hover {
  font-weight: 700;
}

header ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1.5rem;
}

header a {
  text-decoration: none;
}

footer {
  background-color: white;
}

footer .text-columns {
  margin-bottom: 2rem;
}

footer .content-maxwidth {
  margin-top: 0;
  padding-top: 8rem;
}

footer h1 {
  margin-top: 0;
  margin-bottom: 7rem;
}

footer button {
  margin: 0 auto 1.5rem auto;
  display: block;
  aspect-ratio: 1/1;
  padding: 0;
  width: 3rem;
  cursor: pointer;
}

.footer-rechtliches {
  position: relative;
  background: black;
  color: white;
  padding: 2rem 1rem 4rem 1rem;
}

.footer-rechtliches img {
  position: absolute;
  max-width: calc(100% - 2rem);
  height: 1.5rem;
  object-fit: contain;
  object-position: 1rem;
  pointer-events: none;
}

.footer-rechtliches ul {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

.footer-rechtliches a {
  color: white;
  text-decoration: underline;
  font-weight: 700;
}

.text-columns {
  display: flex;
  gap: 1rem;
}

.text-columns *:nth-child(1) {
  flex: 1 1 40%;
}

.text-columns *:nth-child(2) {
  flex: 1 1 60%;
}

.content-maxwidth {
  max-width: var(--maxwidth);
  margin: 8rem auto 8rem auto;
  padding: 0 2rem 0 2rem;
}

.image-columns {
  display: flex;
}

.image-columns > * {
  display: flex;
  width: 50%;
  height: 70vh;
  align-items: center;
  padding: 2rem 5rem 2rem 5rem;
  background-size: cover;
  font-size: 3rem;
  font-weight: 700;
}

.image-columns *:nth-child(1) {
  justify-content: right;
}
.image-columns *:nth-child(2) {
  justify-content: left;
}

.intro {
  height: 100vh;
  position: relative;
  z-index: -1;
}

.intro button {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  translate: -50%;
  z-index: 1;
  margin-bottom: 0;
  padding: 0;
}

.intro h3 {
  position: fixed;
  width: 100%;
  font-weight: 700;
  font-size: 2rem;
  display: block;
  text-align: center;
  padding: 7rem 0 7rem 0;
  color: white;
  margin: 0;
  z-index: 1;
  top: 0;
}

.intro h3 span {
  font-family: inherit;
  display: inline-block;
  max-width: 70%;
}

.numbers {
  color: white;
  background-color: black;
  padding: 2rem 0 2rem 0;
  margin-bottom: 5rem;
}

.numbers ul {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--maxwidth);
  margin: auto;
  padding: 0 1rem 0 1rem;
}

.numbers h1 {
  margin: 0;
}

.numbers h4 {
  margin: 0;
}

.content-grid {
  margin: 12rem 0 0 0;
}

.content-grid article {
  display: grid;
  grid-template-columns: 50% 50%;
  max-height: 650px;
}

.content-grid img {
  height: 100%;
}

.content-grid-image {
  /*
  width: calc(50vw - 0.5rem);*/
  width: 50vw;
  max-width: 1000px;
  /*max-height: 700px;*/
  height: 650px;
  position: relative;
  grid-row: 1 / span 1;
}

.content-grid-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0.4;
  z-index: 1;
}

.content-grid article:nth-child(2n + 1) .content-grid-image {
  grid-column: 2 / span 1;
  justify-self: left;
}

.content-grid article:nth-child(2n) .content-grid-image {
  grid-column: 1 / span 1;
  justify-self: right;
}

.content-grid article:nth-child(2n + 1) .content-grid-text {
  padding: 4rem 3rem 4rem 0rem;
}

.content-grid article:nth-child(2n) .content-grid-text {
  padding: 4rem 1rem 1rem 5rem;
  grid-column: 2 / span 1;
}

.white-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0.5;
}

.kundinnen {
  background-color: #f4f4f4;
  margin-top: 6rem;
  padding: 1rem 0 4rem 0;
}

.kundinnen h2 {
  max-width: var(--maxwidth);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
}

.marquee {
  display: flex;
  overflow: hidden;
  gap: 3rem;
  position: relative;
  user-select: none;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;

  min-width: 100%;
  gap: 9rem;
  padding: 0 4rem 0 5rem;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 3rem));
  }
}

.scroll {
  animation: scroll 20s linear infinite;
}

.marquee img {
  object-fit: contain;
  max-height: 5rem;
  width: initial;
  height: initial;
  max-width: 100vw;
}

.slideshow {
  width: 100%;
  height: 600px;

  margin: 12rem auto 0 auto;
  padding: 0 0 5rem 0;
  overflow-x: auto;
  overflow-y: hidden;

  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  display: flex;
  align-content: flex-start;
  gap: 2rem;
  cursor: url("/assets/content/elements/arrow-right.svg"), pointer;

  position: relative;
  user-select: none;
}

.cursor-left {
  cursor: url("/assets/content/elements/arrow-left.svg"), pointer;
}

.slideshow::-webkit-scrollbar {
  display: none;
}

.slideshow figure:first-child {
  padding-left: 20%;
}

.slideshow figure:last-child {
  padding-right: 20%;
}

.slideshow figure {
  flex: 1;
  height: 100%;
  /*max-width: 90vw;*/
  margin: 0;
}

.slideshow figcaption {
  margin-top: 0.5rem;
}

.slideshow img {
  width: initial;
  height: calc(100% - 50px);
}

.slide-point-wrapper {
  position: absolute;
  bottom: 10rem;
  width: 100%;
  height: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.slide-wrapper {
  position: relative;
}

.slide-point {
  width: 0.5rem;
  height: 0.5rem;
  background: white;
  border: 2px solid white;
  border-radius: 9999px;
}

.slide-point-current {
  background: black;
}

.content-grid-text a {
  font-size: 2rem;
  white-space: nowrap;
}

a.arrow-after::after {
  content: "";
  background-image: url(/assets/content/elements/link-arrow.svg);
  background-size: contain;
  margin-left: 1rem;
  height: 1rem;
  width: 1rem;
  display: inline-block;
}

#team ul {
  display: grid;
  gap: 4rem;
  grid-template-columns: 1fr 1fr 1fr;
}

#team li {
  display: block;
  margin-bottom: 2rem;
}

#team span {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.25rem;
}

#team p {
  margin: 0;
  margin-top: 0.2rem;
  font-size: initial;
  line-height: initial;
}

#team h1 {
  font-size: 2rem;
}

#team img {
  aspect-ratio: 1/1;
  object-position: bottom;
}

.blackbox {
  aspect-ratio: 1/1;
  width: calc(100% - 2rem);
  background-color: black;
  color: white;

  position: relative;
  padding: 1rem;
}

.blackbox h1 {
  position: absolute;
  bottom: 1rem;
  margin: 0;
}

/*
.overlay {
  position: relative;
}

.overlay::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;

  background-color: white;
}*/

header nav li:nth-child(1) img:nth-child(2) {
  display: none;
}

.logo-mobile {
  display: none;
}

.about-logo-small {
  display: none;
}

.additional-whitespace {
  margin-top: 12rem;
  margin-bottom: 12rem;
}

.nav-current {
  font-weight: 700;
}

.home-navigation > a > .white-overlay {
  transition: opacity 0.3s;
  z-index: 1;
}

.home-navigation > a {
  overflow: hidden;
  color: white;
  transition: all 0.3s;
}

.home-navigation > a:hover {
  color: black;
}

.messe-overlay {
  background-color: var(--messebau);
}

.schreinerei-overlay {
  background-color: var(--schreinerei);
}

.messe-overlay,
.schreinerei-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 1;
  transition: all 0.3s;
}

.home-navigation > a:hover > .messe-overlay,
.home-navigation > a:hover > .schreinerei-overlay {
  opacity: 0;
}

.home-navigation img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  /*transition: scale 0.3s;*/
}
/*
.home-navigation > a:hover > .white-overlay {
  opacity: 0.2;
}

.home-navigation > a:hover > img {
  scale: 1.2;
}*/

.content-richtext a {
  font-weight: 700;
}

.richtext {
  padding: 1rem;
  margin-top: 4rem;
  max-width: var(--maxwidth);
  margin-left: auto;
  margin-right: auto;
}

.richtext figure {
  margin: 0;
}

.galerie {
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  width: calc(100vw - 4rem);
  height: calc(100vh - 4rem);
  overflow-y: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  background: white;
  grid-auto-rows: max-content;
}

.galerie-current {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: white;
}

.galerie-current img {
  object-fit: contain;
  object-position: 50% 50%;
  scale: 0.8;
}

.galerie-current .nextButton {
  width: 2rem;
  height: 2rem;
  background-image: url("/assets/content/elements/arrow.svg");
  transform: rotate(-90deg);
  position: fixed;
  top: 50%;
  right: 3rem;
  cursor: pointer;
  z-index: 1;
}

.galerie-current .prevButton {
  width: 2rem;
  height: 2rem;
  background-image: url("/assets/content/elements/arrow-left.svg");
  position: fixed;
  top: 50%;
  left: 3rem;
  cursor: pointer;
  z-index: 1;
}

.closeButton {
  width: 2rem;
  height: 2rem;
  background-image: url("/assets/content/elements/cross.svg");
  position: fixed;
  top: 3rem;
  left: 3rem;
  z-index: 100;
  cursor: pointer;
  outline: 6px solid white;
  background-color: white;
}

#galerielink {
  cursor: pointer;
}

.intersector {
  /* position: absolute; */
  top: 0;
  left: 0;
  width: 100%;
  height: 0px;
}

.inverted-el {
  display: none;
}

.worker-action {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all 0.3s;
}

.worker-action:hover {
  opacity: 1;
}

.nav-logo {
  width: 2rem;
}

@media screen and (min-width: 820px) {
  .inverted {
    color: white !important;
  }

  .inverted a {
    color: white !important;
  }

  .inverted .inverted-el {
    display: initial;
  }

  .inverted .base-el {
    display: none;
  }
}

@media screen and (max-width: 980px) {
  footer .text-columns div {
    display: none;
  }
}

@media screen and (max-width: 850px) {
  header a {
    font-size: 1rem !important;
  }

  .nav-logo {
    width: 1.25rem;
  }
}

@media screen and (max-width: 820px) {
  .home-navigation {
    gap: 0 !important;
  }

  .home-navigation > * {
    height: 30rem !important;
  }

  .indent {
    padding-left: 1rem !important;
  }

  #team ul {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 750px) {
  .intro.bereich {
    height: 50vh;
    margin-top: 12rem;
  }

  header a {
    font-size: 1.75rem !important;
  }

  #arrowlist {
    padding-left: 2rem !important;
  }

  .galerie {
    grid-template-columns: 1fr;
  }

  .galerie-current img {
    scale: 1;
  }

  .content-grid {
    margin: 6rem 0 0 0;
  }

  .hidden-mobile {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 2rem;
    margin-top: 2rem;
  }

  p {
    font-size: 1.2rem;
    line-height: 1.5rem;
  }

  header {
    display: block;
    background-color: white;
    overflow: hidden;
    height: 3rem;

    transition: height 0.3s ease-in-out;
  }

  header nav ul {
    display: block;
    font-size: 2rem;
    margin-top: 0;
  }

  header nav li:nth-child(1) img:nth-child(1) {
    display: none;
  }

  header .inverted-el {
    display: none;
  }

  header nav li:nth-child(1) img:nth-child(2) {
    display: block;

    height: 2rem;
    width: 100vw;
    margin: auto;
    object-fit: contain;
    margin-bottom: 2rem;
    translate: -10px 5px;
  }

  header nav li {
    margin-top: 0.5rem;
  }

  header nav li:nth-child(1) {
    margin: 0 !important;
  }

  header > ul {
    margin-top: 1.5rem;
    font-size: 2rem;
    display: block;
  }

  header > ul > li:nth-child(2) {
    width: 2rem !important;
  }

  #burger {
    display: block !important;
    position: absolute;
    top: 1.5rem;
    left: 1rem;
    height: 1.5rem;
    width: 2rem;

    cursor: pointer;
  }

  .menu-open {
    height: 18.5rem !important;
  }

  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
    object-fit: contain;
    scale: 0.4;
  }

  .content-maxwidth {
    margin: 4rem auto 4rem auto;
  }

  .text-columns {
    display: block;
  }

  .home-navigation {
    flex-direction: column-reverse;
  }

  .arrowlist {
    font-size: 1.2rem;
    margin-top: 3rem;
  }

  .arrowlist li {
    padding-bottom: 1rem;
  }

  .image-columns :nth-child(1) {
    justify-content: left;
  }

  .home-navigation a {
    width: calc(100% - 10rem);
    font-size: 2rem;
  }

  .home-navigation > * {
    height: calc(100vw - 4rem) !important;
  }

  /*
  .home-navigation span {
    font-weight: 300;
    text-decoration: underline;
  }
*/
  .arrowlist {
    display: block;
  }

  .content-grid article {
    grid-template-columns: 100%;
    max-height: initial;
  }

  .content-grid-image {
    grid-row: 1 / 2;
    width: calc(100% + 4rem);
    margin-top: 8rem;
    translate: -2rem 0;
    aspect-ratio: 4 / 3;
    justify-self: left !important;
    height: initial;
    grid-column: 1 / span 1 !important;
  }

  .content-grid-text {
    grid-column: 1 / span 1 !important;
    padding: 0rem 0 1rem 0 !important;
  }

  .content-grid-text h2 {
    margin-bottom: 1rem;
  }

  .content-grid-text p {
    margin-top: 0rem;
  }

  .content-maxwidth {
    padding: 0 2rem 0 2rem;
  }

  .intro h3 {
    width: calc(100% - 4rem);
    padding: 7rem 2rem 5rem 2rem;
    font-size: 1.5rem;
  }

  .numbers ul {
    padding: 0 2rem 0 2rem;
  }

  .content-grid-text a {
    font-size: 1.5rem;
  }

  #team ul {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  #team li span {
    font-weight: 700;
  }

  .blackbox h1 {
    font-size: 1.2rem !important;
  }

  footer .content-maxwidth {
    padding-top: 0rem;
  }

  .footer-rechtliches {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column-reverse;
  }

  footer h1 {
    margin-bottom: 1rem;
  }

  footer .arrowlist {
    margin-top: 0 !important;
  }

  .footer-rechtliches img {
    margin-top: 2rem;
    margin-bottom: 5rem;
    position: static;
    align-self: center;
    object-position: 50%;
  }

  .footer-rechtliches ul {
    display: block;
  }

  .footer-rechtliches li {
    margin-bottom: 1.5rem;
    font-weight: 700;
  }

  body {
    min-width: 300px;
  }

  .about-logo-big {
    display: none;
  }

  .about-logo-small {
    display: block;

    object-fit: contain;
    scale: 0.4;
  }

  .numbers ul {
    flex-wrap: wrap;
  }

  .numbers li {
    width: 40%;
  }

  .numbers h1 {
    font-size: 2rem;
  }

  .slideshow {
    gap: 0;
    scroll-snap-type: x mandatory;
    padding-top: 3rem !important;
    margin-top: 3rem !important;
  }

  .slideshow figure:first-child {
    padding-left: 0;
  }

  .slideshow figure:last-child {
    padding-right: 0;
  }

  .slideshow figure {
    width: 100vw;
    max-width: 100vw;
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  .slideshow img {
    width: 100vw;
  }

  .slideshow figcaption {
    text-align: center;
  }

  footer .arrowlist li {
    display: flex !important;
    align-content: end;
  }

  footer .arrowlist li a {
    text-align: end;
    line-height: 1rem;
  }

  footer {
    padding-top: 3rem;
  }

  .kundinnen {
    padding-top: 0;
    padding-bottom: 2rem;
  }

  .kundinnen h2 {
    background-color: white;
    padding-bottom: 2rem;
  }

  .intro h3 span {
    font-family: inherit;
    display: inline-block;
    max-width: initial;
  }
}
