@font-face {
    font-family: "cabin-regular";
    src: url("../fonts/Cabin-VariableFont.ttf") format("truetype");
    font-display: fallback;
}

@font-face {
    font-family: Helvetica;
    src: local('Helvetica');
    letter-spacing: -0.4px;
    word-spacing: 0px;
}

@font-face {
    font-family: Arial;
    src: local('Arial');
    letter-spacing: -0.4px;
    word-spacing: 0.35px;
}

@font-face {
    font-family: "Trebuchet MS";
    src: local('Trebuchet MS');
    letter-spacing: -0.55px;
    word-spacing: -0.15px;
}

:root {
  --mainBgColor: #151313;
  --secondaryBgColor: #403d39;
  --mainTextColor: #fffcf2;
  --secondaryTextColor: #76726b;
  --accentColor: #9fbca5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "cabin-regular", "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: var(--mainTextColor);
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--mainBgColor);
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100%;
    overflow-x: hidden;
}

h1.display {
  font-size: 3rem;
}


/* hide focus rings, when user not hitting tab-key (if, the class .user-is-tabbing) */
body:not(.userTab) button:focus,
body:not(.userTab) input:focus,
body:not(.userTab) select:focus{
    outline: none;
}

ul, ol {
    list-style-position: inside;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

p {
    line-height: 1.4;
    padding: 0.5rem 0 1rem;
}

a.footer {
  text-decoration: none;
}

span a {
    text-decoration: none;
    border-bottom: solid 1.5px;
}

a:hover {
    color: var(--accentColor);
}

hr {
    border: 0;
    border-bottom: 1px solid;
    width: calc(100% - 2rem);
    margin: auto;
}

p.noscript {
    position: fixed;
    top: 0;
    z-index: 3;
    background-color: var(--secondaryBgColor);
    color: #d77a5b;
    padding: 1rem;
    width: 100%;
    text-align: center;
}

td {
  vertical-align: top;
  padding: 0.5rem 0;
}

div.content, footer.footer {
    transition: transform 0.3s ease;
}

nav.mainNav {
    position: fixed;
    top: 0;
    right: 0;
    margin: auto;
    z-index: 3;
}

a.HomeButton {
    display: contents;
    height: 0;
    text-decoration: none;
    border-bottom: none;
}

.NavLink {
    padding: 0.5rem 0 0.5rem 0;
    text-decoration: none;
    border-bottom: none;
}

.NavSpan {
    padding: 0.5rem 0 0.5rem 0;
    text-decoration: none;
    border-bottom: none;
    color: var(--secondaryTextColor);
}

button.NavButton {
    appearance: none;
    border: none;
    background-color: transparent;
    padding: 2rem;
    cursor: pointer;
    z-index: 3;
}

img.menuButton {
    width: 1rem;
    z-index: 3;
    cursor: pointer;
}

img.homeButton {
    width: 6.5rem;
    z-index: 2;
    padding: 2rem;
    position: fixed;
    top: 0;
    left: 0;
}

div.navbar {
    position: fixed;
    top: 3rem;
    right: 0;
    background-color: var(--mainBgColor);
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 2rem 2rem 0 0;
    gap: 1rem;
    transform: translateX(280px);
    transition: transform 0.3s ease;
    z-index: 2;
}

div.navbarSpace {
    display: none;
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    height: calc(100% - 2rem);
}

.NavLink:hover {
    color: var(--accentColor);
}

div.imageHeader {
  margin: auto;
  padding: 5rem 0 1rem;
}

div#logoHeader {
  padding: 0;
}

div#impressumHeader {
    padding: 7rem 1rem 1rem;
}

div.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
    margin: auto;
    padding: 1rem;
}

div.textContainer {
    width: 100%;
    padding: 4rem 1rem 0;
    margin: auto;
}

div.container > div {
    max-width: calc(100vw - 2rem); /* fix für overflow auf schmalen Bildschirmen*/
}

div.image {
    flex: 100% 0 0;
    padding: 2rem;
}

div.row {
    flex: 100%;
    padding: 1rem 0;
}

div.box, div.half {
    flex: 50% 0 0;
    padding: 1rem 0;
}

div.imageSlider {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

div.sliderBox {
    flex: 50%;
}

div.headingCenter {
    align-self: center;
}

button.picPreview {
    position: inherit;
    background: none;
    border: 1px solid;
    cursor: pointer;
    z-index: 3;
    padding: 0.4rem;
}

button.collapsible {
    position: inherit;
    background: none;
    border: none;
    width: 100%;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
}

div.collapsed {
    max-height: 0;
    overflow: hidden;
}

div#impressumfooter {
    padding: 2rem 1rem 1rem;
}

/* Animation https://codepen.io/studiojvla/pen/qVbQqW?editors=1100 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 2))
    }
}

/*Styling*/
.slider {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .125);
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: max-content;

    &::before,
    &::after {
        content: "";
        height: 100px;
        position: absolute;
        width: 200px;
        z-index: 2;
    }

    &::after {
        right: 0;
        top: 0;
        transform: rotateZ(180deg);
    }

    &::before {
        left: 0;
        top: 0;
    }

    .slide-track {
        animation: scroll 4s linear infinite;
        display: flex;
        width: calc(250px * 4);
    }

    .slide {
        height: 100px;
        width: 250px;
    }
}

.close-modal {
    border-bottom: none;
}

.arrow-div-flex {
    display: flex;
    justify-content: center;
}

.modal-right-arrow {
    margin-left: auto;
}

.modal-left-arrow {
    margin-right: auto;
}

/* Styling Add-Ons*/

a.navButton {
    display: block;
    width: 50px;
}

div.modal {
    background: inherit;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    max-width: 100vw;
    box-shadow: none;
}

.modal-left-arrow, .modal-right-arrow {
    padding: 1rem;
    cursor: pointer;
}

.imgPreview {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.imgPreview > div {
    width: 20vw;
    max-width: 200px;
}


.sozialLink  {
display: flex;
}

img.sozial {
  width: 2rem;
  margin: 0 0 1rem 0;
}

.sozialLinks  {
    display: flex;
}

footer > div.container {
  gap: 0rem;
  width: 100%;
}

.InstagramIcon {
  width: 2.5rem;
}

@media screen and (min-width: 400px) {
    footer > div.container {
        flex-direction: row;
    }

    div#footerRight {
        text-align: right;
    }
}

@media screen and (min-width: 720px) {

  div#logoHeader {
      width: 80vw;
      padding: 5rem 0 1rem;
      position: unset;
  }

    div#impressumHeader {
        padding: 7rem 5rem 1rem;
    }

    div.imageHeader {
      width: 50vw;

    }

    div.imageHeader img {
        max-height: 70vh;
    }

    div.container, div.imageSlider {
        flex-direction: row;
    }

    div.image {
        flex: 47% 0 0;
    }

    div.box {
        flex: 45% 0 0;
        padding: 1rem;
    }

    div.textContainer {
      width: 70vw;
    }

    div.modal {
      max-width: 70vw;
    }

}

@media screen and (orientation: landscape){

  div#logoHeader {
      width: 80vw;
      padding: 5rem 0 1rem;
      position: unset;
  }

}

@media screen and (min-width: 1280px) {

    div#logoHeader {
        padding: 5rem 4rem 1rem;
        max-width: 80vw;
    }

    div#impressumHeader {
        padding: 7rem 20rem 1rem;
    }

    div.imageHeader img {
        max-height: 50vh;
    }

    div.container {
        justify-content: center;
    }

    div.textContainer {
      width: 50vw;
    }

    div.image {
        flex: 30% 0 0;
        padding: 3rem;
    }

    div.box {
      flex: 30% 0 0;
    }

    div.modal {
        max-width: 50vw;
    }
}

@media screen and (min-width: 2560px) {
    div.container {
      width: 70vw;
      gap: 4rem;
    }

    div.textContainer {
      width: 35vw;
    }

    div.modal {
        max-width: 35vw;
    }
}
