@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro-Light.woff2") format("woff2"),
    url("../fonts/DINPro-Light.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  text-rendering: optimizeLegibility;
  font-display: swap;
}

@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro-Black.woff2") format("woff2"),
    url("../fonts/DINPro-Black.woff") format("woff");
  font-weight: bold;
  font-style: bold;
  text-rendering: optimizeLegibility;
  font-display: swap;
}

:root {
  --clr-light: white;
  --clr-dark: black;
  --clr-grey: #9b9b9b;
  --clr-lightgrey: #ececec;
  --clr-blue: #2b4865;
  --ease: cubic-bezier(0.645, 0.045, 0.355, 1);
}

html {
  height: 100%;
  font-family: "DINPro", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.preload>* {
  transition: none !important;
}

body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

address {
  font-style: normal;
}

::-moz-selection {
  color: var(--clr-light);
  background-color: var(--clr-dark);
}

::selection {
  color: var(--clr-light);
  background-color: var(--clr-dark);
}

.hideOnLandscape {
  visibility: visible;
}

@media (orientation: landscape) {
  .hideOnLandscape {
    visibility: hidden;
  }
}

/* typo */
.huge-flaeche {
  font-size: clamp(80px, 5vw, 160px);
  line-height: 0.9;
}

.huge-miete {
  font-size: clamp(75px, 5vw, 180px);
  line-height: 0.9;
}

.huge-szenario {
  font-size: clamp(110px, 5vw, 240px);
  line-height: 0.9;
}

.br {
  display: none;
}

@media screen and (min-width: 380px) {
  .br {
    display: inline;
  }
}


/* images */
.image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* links – https://codepen.io/michellebarker/pen/MWJajOb */
.m-link {
  display: block;
  position: relative;
  padding: 0.1em 0;
  overflow: hidden;
}

.m-link.inverse {
  color: var(--clr-dark);
}

.m-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.1em;
  background-color: var(--clr-light);
  transition: transform 0.15s var(--ease);
  transform: translate3d(-101%, 0, 0);
}

.m-link.inverse::after {
  background-color: var(--clr-dark);
}

@media screen and (min-width: 1024px) {

  .m-link:hover::after,
  .m-link:focus::after {
    transition: transform 0.3s var(--ease);
    transform: translate3d(0, 0, 0);
  }
}

.m-dl-link {
  color: var(--clr-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.1s linear;
}

@media screen and (min-width: 1024px) {
  .m-dl-link:hover {
    color: var(--clr-grey);
  }
}

.social-icon {
  transform: scale(1);
  transition: transform 0.15s linear;
}

@media screen and (min-width: 1024px) {
  .social-icon:hover {
    transform: scale(1.05);
  }
}

.tap-highlight {
  -webkit-tap-highlight-color: transparent;
}

#scrolldown-arrow {
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.15s linear;
  animation: fadein 1s 2s var(--ease) forwards;
  opacity: 0;
}

#scrolldown-arrow:hover {
  transform: translateY(5px);
}

@keyframes fadein {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* swipers */
.mehr-swiper,
.szenarien-swiper {
  position: relative;
  width: 100%;
}

.mehr-swiper {
  max-height: 75vw;
  height: 540px;
}

@media screen and (max-width: 992px) {
  .swiper-button-prev-auswahl {
    position: absolute;
    left: 10px;
    z-index: 9;
  }

  .swiper-button-next-auswahl {
    position: absolute;
    right: 10px;
    z-index: 9;
  }
}

/* mach die rechnung */
.klein,
.gross {
  overflow-y: hidden;
}

.klein span,
.gross span {
  display: inline-block;
}

.tabelle.show-gross .gross {
  display: block;
}

.tabelle.show-gross .klein {
  display: none;
}

.tabelle.show-klein .gross {
  display: none;
}

.tabelle.show-klein .klein {
  display: block;
}

#machdierechnung .tabelle .tabelle-item:last-child {
  background-color: var(--clr-lightgrey);
  padding-bottom: 3rem;
}

/* mail */
.honeypot {
  position: absolute;
  left: -9999px;
}

/* modals */
.modal {
  z-index: 21;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
  transform: translateX(100%);
  overflow-x: hidden;
  transition: transform 0.6s var(--ease);
}

.modal.open {
  transform: translateX(0%);
  transition: transform 0.6s var(--ease);
  overflow-y: auto;
}

/* mach mit */
#machmit {
  background-color: #ECECEC;
}

.macher-flex {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  user-select: none;
}

@media screen and (min-width: 1024px) {
  .macher-flex {
    gap: 2rem;
    justify-content: center;
  }
}

.macher-flex li {
  flex-basis: calc(50% - .5rem);

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: white;
}

@media screen and (min-width: 1024px) {
  .macher-flex li {
    flex-basis: calc(33% - 2rem);
  }
}

.macher-flex li img {
  width: 100%;
  object-fit: contain;
}

.machmit-untertitel {
  font-size: 2.25rem;
  line-height: 1.2;
}

@media screen and (min-width: 1024px) {
  .machmit-untertitel {
    font-size: 3.75rem;
  }
}