/*  Josh's Custom CSS Reset
    https://www.joshwcomeau.com/css/custom-css-reset/
*/

*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#root, #__next {
  isolation: isolate;
}

/* Variables */
:root {
  --fs_text: 1.875rem;  /*  2 x 16 = 30px */
  --fs-textreduced: 1.5rem;  /* 1.5 x 16 = 24px */
  --fs-textbase: 1rem;  /* 1 x 16 = 16px */
  --lt-spacing: 0.075rem;
  --lt-spacing-reduced: 0.05rem;
  --lh: 2.8rem;
  --lh-reduced: 2.25rem;
  --lh-base: 1.5rem;
  --logo: 5rem;  /* 5 * 16 = 80px */
  --fs_mainnav: 2.125rem;  /* 34px */
  --maxbodywidth: 1400px;
  --max-content-width: 1140px;
  --home-img-width: 1140px;
  --home-img-height: 741px; /* vormals 780px */
  --main-maxwidth: 900px;
  --header-height: 10rem;  /* 10 x 16 = 160px */
  --colormain: #000;
  --colorsecondary: rgba(0,0,0,0.4);
  --colorlinks: rgba(0,0,0,0.5);
  --color_read: rgba(0,0,0,1);
  --bgcolor: #fff;
  --close-position-right: 3rem;
  --swiper-theme-color: black;
}

/* Typo */
@font-face {
  font-family: 'Eina02Regular';
  src: url('/site/templates/fonts/Eina02/Eina02-Regular.otf') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Eina02Bold';
  src: url('/site/templates/fonts/Eina02/Eina02-Bold.otf') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Eina02SemiBold';
  src: url('/site/templates/fonts/Eina02/Eina02-SemiBold.otf') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Eina02Light';
  src: url('/site/templates/fonts/Eina02/Eina02-Light.otf') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
html {
  font-size: 16px;
  /* scroll-behavior: smooth; */
}

body {
  font-family: 'Eina02Light', Arial, sans-serif;
  letter-spacing: var(--lt-spacing);
  line-height: 3rem;  /* 48px */
  -webkit-hyphens: auto;
      -ms-hyphens: auto;
          hyphens: auto;
  hyphenate-limit-chars: 10 6 6;
  -webkit-hyphenate-limit-before: 6;
  -webkit-hyphenate-limit-after: 6;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
   -ms-text-size-adjust: none;
       text-size-adjust: none;

}
main.light,
.ligth {
  font-family: 'Eina02Light', Arial, sans-serif;
}
main.regular,
.regular {
  font-family: 'Eina02Regular', Arial, sans-serif;
}
h1,h2,h3 {
  font-family: 'Eina02Bold', Arial, sans-serif;
  margin: 2rem 0 1rem 0;
}
h1,h2 {
  font-size: 3rem;  /* 3 x 16 = 48px */
}
h3 {
  font-size: 2rem;
}
.bold {
  font-family: 'Eina02Bold', Arial, sans-serif;
  letter-spacing: var(--lt-spacing);
}
.mb2 {
  margin-bottom: 2px;
}
header,
footer {
  text-transform: lowercase;
  font-family: 'Eina02Light', Arial, Helvetica, sans-serif;
}

/* Main Elements */
html {
  background-color: var(--bgcolor);
}
body {
  background-color: var(--bgcolor);
  /* max-width: var(--maxbodywidth); */
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem;
  display: block;
}
main {
  position: relative;
  max-width: var(--max-content-width);
  width: 100%;
  margin: 1rem auto 0;
}
p, span,
.no-break {
  font-size: var(--fs_text);
  color: var(--colormain);
  line-height: var(--lh);
}
a {
  text-decoration: none;
  color: var(--colorlinks);
  display: inline-block;
}
a:focus {
  cursor: pointer;
  font-family: 'Eina02Bold', Arial, Helvetica, sans-serif;
  color: var(--colormain);
}
a[href^="javascript"] {
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  color: var(--colormain);
}
a[href^="tel"] {
  color: var(--colormain);
}
.close,
.close.member {
  position: absolute;
  top: 0rem;
  right: var(--close-position-right);
  z-index: 1000;
}
.close.member img {
  background-color: rgba(255, 255, 255, 0.4);
  padding: .1rem;
}
.close.project {
  top: 1rem;
  right: 1rem;
  /* left: 100%; */
}
.close img {
  width: 2.5rem;
  z-index: 1000;
}
/* .close.project {
  left: 100%;
  transform: translate(-1rem, 4.5rem);
} */
.hamburger img {
 width: 4rem;
 height: auto;
}
.hamburger #closed {
  margin-top: 1rem;
}
/* Footer nav mobile */
.subnav-toggle img {
  width: 5rem;
  height: auto;
  margin: 1rem auto 0rem;
}

/* Header & Footer */
header {
  /* height: var(--header-height); */
  max-width: var(--max-content-width);
  width: 100%;
  margin: 0 auto 2.25rem;
  padding: 1rem 0 0rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  top: 0px; 
  z-index: 500;
  background-color: var(--bgcolor);
  -webkit-hyphens: none;
      -ms-hyphens: none;
          hyphens: none;
}
footer {
  min-height: 112px;  /** 7 x 16 = 96px **/
  max-width: var(--max-content-width);
  width: 100%;
  margin: 0 auto 0;
  display:flex;
  justify-content: left;
  align-items: center; 
  -webkit-hyphens: none; 
      -ms-hyphens: none; 
          hyphens: none;
}
.header-topbox {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0rem;
}
.logo {
  height: var(--logo);
}

.mainnav {
  height: auto;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  transform: translateY(-0.4rem);
}
.header-subnav {
  height: 3rem;  /* keep height even if subnav is empty */
  margin: 0;
}
.header-subnav.home {
  display: none;
}
/* .mainnav a {
  display: inline-block;
} */
.mainnav ul,
.subnav ul,
.footernav ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  /* width: 80%; */
}
.mainnav ul {
  width: 100%;
  justify-content: right;
}
.subnav ul,
.footernav ul {
  justify-content: left;
  padding: 0;
}
.mainnav .navitem {
  font-size: var(--fs_mainnav);
  margin-left: 2.625rem; /* 42 px */
  letter-spacing: var(--lt-spacing);
  /* width: 6.5rem; */
}
.navitem a {
  vertical-align: super;
}
.subnav li,
.footernav li {
  margin-right: 1.5rem;
  letter-spacing: var(--lt-spacing-reduced);
}
.mainnav a,
.subnav a {
  display: inline-block;
  letter-spacing: var(--lt-spacing-reduced);
}

.mainnav a {
  font-family: 'Eina02Light', Arial, Helvetica, sans-serif;
  color: var(--colorsecondary);
}
.mainnav .home a {
  color: var(--colormain);
}
.subnav a {
  font-family: 'Eina02Regular', Arial, Helvetica, sans-serif;
  color: var(--colorsecondary);
  font-size: 1.1rem;
}
.mainnav a:hover,
.mainnav a:active,
.mainnav a:focus,
.subnav a:hover,
.subnav a:active,
.subnav a:focus {
  font-family: 'Eina02Bold', Arial, Helvetica, sans-serif;
  color: var(--colormain);
}
.active a {
  font-family: 'Eina02Bold', Arial, Helvetica, sans-serif;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  color: var(--colormain);
}

/* Homepage */
.homepage,
.fullpage {
  height: auto;
  position: relative;
  width: 100%;
}
.mobile {
  display: none;
}
.desktop {
  display: block;
}
.auftraggeberliste .desktop {
  display: inline-block;
}

.homepage-images {
  width: 100%;
  height: 100%;
}
.homepage-image {
  width: 100%;
  height:auto;
}
.homepage,
.fullpage {
  margin-top: 3rem;
}
.textcontainer {
  margin: 0.3rem auto 5rem;
}

/* Toppages */
.textcontainer p {
  color: var(--colormain);
}
.textcontainer img,
.textcontainer p {
  margin: 0 0 1.3rem 0; /* margin bottom 3/4 line-height = 36px */
}
.textcontainer img,
.textcontainer picture {
  transform: translateY(1rem);
  margin-bottom: 3.20rem;
}
.textcontainer picture img {
  transform: translateY(0rem);
}
.word {
  color: var(--colormain);
  transition: color 0.3s ease-in-out;
}
.word.read {
  color: var(--color_read);
}
.word.fully-read {
  color: var(--color_read) !important;
}


/* Main */
.textcontainer {
  max-width: var(--main-maxwidth);
}

/* Team */
.team-images {
  display: grid;
  -moz-column-gap: 2.3rem;
       column-gap: 2.3rem;
  row-gap: 1rem;
  grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
  grid-template-rows: auto;
  margin-bottom: 3rem;
}
.member-item {
  position: relative;
  height: 100%;
  width: 100%;
}
.member-item img,
.member-item .member-default {
  -webkit-filter: brightness(95%) contrast(115%) grayscale(100%);
          filter: brightness(95%) contrast(115%) grayscale(100%);
  background-color: var(--colorsecondary);
  display: block;
  aspect-ratio: 714/1006;
  height: auto;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-animation: ease-in-out 3s transform;
          animation: ease-in-out 3s transform;
}
.member-item img:hover {
  -webkit-filter: grayscale(0);
          filter: grayscale(0);
}
.membername {
  font-size: 1.1rem;
  color: var(--colormain);
  line-height: 1.3rem;
  letter-spacing: var(--lt-spacing-reduced);
}
.membername:first-of-type,
.membername:nth-last-of-type(2) {
    margin-top: .3rem;
}
.member-item:hover .membername {
  font-family: 'Eina02Bold', Arial, Helvetica, sans-serif;
}


/* single member page */
.memberpage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  grid-gap: 2.3rem;
  margin: 0rem auto 5rem;
}
.member-info {
  padding-right: var(--close-position-right);
}
.member-info p {
  font-size: var(--fs-textreduced);
  line-height: var(--lh-reduced);
  letter-spacing: var(--lt-spacing);
}
.member-contactinfo {
  margin-bottom: 1rem; 
}
.member-contactinfo p:first-of-type {
  line-height: 1.1rem;
    margin-bottom: 1.5rem;
}
.member_margin-buttom {
  margin-bottom: 1.5rem;
}
/* .member-vita {
  margin-top: 3rem;
} */

/* Jobs */
.jobscontainer {
  margin: -1rem auto 0rem;
  position: relative;
}
.jobscontainer img {
  margin: 0rem 0 3.20rem;
}
.textcontainer p.singlejob {
  margin: 0 0 1.3rem 0;
}
.singlejob {
  font-family: Eina02Bold, Arial, Helvetica, sans-serif;
  color: var(--colormain);
  font-size: var(--fs-textreduced);
}
.singlejob span {
  font-family: Eina02Regular, Arial, Helvetica, sans-serif;
  color: var(--colorsecondary);
  font-size: var(--fs-textreduced);
  transform: translateY(.1rem);
}
a.joblink span:hover {
  color: var(--colormain);
}

 /* Single job page */
.jobpage {
  width: 100%;
}
.jobpage h1,
.jobpage h2,
.jobpage h3,
.jobpage ul,
.jobpage li,
.jobpage p {
  font-size: var(--fs-textreduced);
  line-height: var(--lh-reduced);
}
.textcontainer.jobpage p {
  margin-bottom: var(--lh-reduced);
  transform: translateY(-0.8rem);
  padding-right: 3rem;
}
.textcontainer.jobpage h2,
.textcontainer.jobpage p:not(:first-of-type),
.textcontainer.jobpage p:has(+ ul),
.textcontainer.jobpage ul {
  margin-bottom: 1rem;
}
.textcontainer.jobpage ul {
  transform: translateY(-1.6rem);
  margin-bottom: 0rem;
}


/* Was - Projektseiten überblick */
.projektliste {
  margin-top: 4rem;  /* vorher 5rem */
 }
.projektliste h2 {
  font-family: 'Eina02Bold', Arial, Helvetica, sans-serif;
  text-transform:initial ;
  font-size: 1.145rem; /* vormals 1.5rem */
  margin-bottom: 0;
}
.projektitem {
  display: flex;
  flex-direction: row;
  margin-bottom: 1rem;
}
.projektitem.bold {
  margin-bottom: 0rem;
}
.textcontainer .projektitem p {
  font-family: 'Eina02Light', Arial, Helvetica, sans-serif;
  font-size: 1.145rem;
  line-height: 1.5rem;
  margin: 0 1rem 0 0;
}
a.projektitem-link {
  width:100%;
  margin-bottom: 1rem;
}
a.projektitem-link:hover p,
.projektitem.bold p:hover,
.projektinhalt.bold p:hover {
  font-family: 'Eina02Bold', Arial, Helvetica, sans-serif;
}
.projektitem.bold p,
.projektinhalt.bold p {
  cursor: pointer;
}
.projektitem:target,
.projektitem:target p,
.projektitem:target .detail-link,
.detail-link:target {
  outline: none;
  /* optional eigenes Highlight */
  background-color: transparent;
  font-family: 'Eina02Bold', Arial, Helvetica, sans-serif;
  scroll-margin-top: 5rem; 
}

.auftraggeberliste strong {
  font-family: 'Eina02Bold', Arial, Helvetica, sans-serif;
  font-size: 1.145rem;
  line-height: 1.5rem;
  margin: 0 1rem 0.3rem 0;
}
.auftraggeberliste p {
  font-family: 'Eina02Light', Arial, Helvetica, sans-serif;
  font-size: 1.145rem;
  line-height: 1.5rem;
  margin: 0 1rem 0.3rem 0;
}
.auftraggeberliste span,
.auftraggeberliste a {
  font-family: 'Eina02Light', Arial, Helvetica, sans-serif;
  font-size: 1.145rem;
  line-height: 1.5rem;
}

/* Bauen & planen */
.projektcontainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
  grid-auto-rows: auto; /* Automatically adjust row height */ 
  -moz-column-gap: 2.3rem; 
       column-gap: 2.3rem;
  row-gap: 2.8rem;}
.grid-item {
    width: 100%;
    height: auto;
    -o-object-fit: cover;
       object-fit: cover;
}
/* Landscape images span 2 columns */
.grid-item.landscape {
  grid-column: span 2;
}
.grid-item img {
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
  height: 100%;
  width: 100%;
  background-color: var(--colorsecondary);
}
.grid-item img:hover {
  -webkit-filter: grayscale(0); /* Safari 6.0 - 9.0 */
  filter: grayscale(0);
}
.grid-item:hover p {
  font-family: 'Eina02Bold', Arial, Helvetica, sans-serif;
}

/* Bauen und planen (version 2) */
.gallery {
  display: flex;
  flex-direction: column;
  /* column-gap: 2rem; */
  width: 100%;
  overflow: hidden;
}

.gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  -ms-scroll-snap-type: x mandatory;
      scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-row a {
  width: 100%;  scroll-snap-align: start;
  display: block;
}

/* All images get equal height, scale naturally */
.gallery-row picture,
.gallery-row img {
  aspect-ratio: 16/10;
  max-height: 371px;
  width: auto;
  max-width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

/* Specific format widths (used on wide screens only) */
.gallery-row img.image-wide {
  width:100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

.gallery-row img.image-narrow {
  aspect-ratio: 264 / 371;
}

.gallery-row img.image-panorama {
  aspect-ratio: 868 / 371;
}

.gallery-row img {
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
  background-color: var(--colorsecondary);
}
.gallery-row img:hover {
  -webkit-filter: grayscale(0%); /* Safari 6.0 - 9.0 */
  filter: grayscale(0);
}
.gallery-row img:hover p,
.gallery-row a:hover p {
  font-family: 'Eina02Bold', Arial, Helvetica, sans-serif;
}

/* Single Bauprojekt */
/* slider with swiper js */
.swiper {
  position: initial !important;
}
.image-slider {
  width: 100%;
  max-width: var(--main-maxwidth);
  margin: 0 auto;
}
.swiper-slide {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.swiper-slide img,
.swiper-slide picture {
  width: auto;
  height: 100%;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
  margin: 0 auto;
}
.swiper-slide img:hover {
  cursor: zoom-out;
}

/* Lightbox Overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,1);
  display: flex;              /* versteckt standardmäßig */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.lightbox.hidden {
  display: none;
  pointer-events: none;        /* prevents blocking hover */
}

.lightbox img,
.lightbox picture {
  max-width: 90%;
  max-height: 90%;
  cursor: zoom-out;
}
.lightbox-swiper,
.lightbox-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}
.lightbox-swiper .swiper-zoom-container {
  cursor: -webkit-grab;
  cursor: grab; /* will switch to grabbing while drag */
}

/* Cursor im Slider */
/* Standard: Zoom-In Cursor */
img.zoomable:hover {
  cursor: zoom-in;
}

/* Alternative: Zoom-Out Cursor */
img.zoomable.zoomed:hover {
  cursor: zoom-out; 
}


/* Slider navigation position bottom */
.swiper-botton-nav {
  position: relative;
  height: 2rem;
  width: 4rem;
  margin: 1rem auto 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.swiper-nav {
  position: relative;
  height: 1rem;
  width: 4rem;
  margin: 1rem auto 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
/* Default: Desktop layout */
.swiper-button-prev,
.swiper-button-next {
  width: calc(var(--swiper-navigation-size) / 4);
  z-index: 10;
  cursor: pointer;
}

.lightbox-swiper-botton-nav {
  height: 1rem;
  width: 7rem;
  margin: 0 auto 0;
  display: grid;
  place-items: center;
  gap:1rem;
  bottom: 1rem;
}
.lightbox-swiper-botton-nav .swiper-button-next,
.lightbox-swiper-botton-nav .swiper-button-prev {
  height: 2rem;
  width: 3rem;
}

/* Default: Desktop layout */
.custom-prev,
.custom-next {
  width: calc(var(--swiper-navigation-size) / 4);
  z-index: 10;
  cursor: pointer;
}
.custom-prev {
  left: 3rem; 
}
.custom-next {
  right: 3rem;
}
.custom-prev img.disabled,
.custom-next img.disabled {
  display: none;
}
.custom-prev.is-disabled img.active,
.custom-next.is-disabled img.active {
  display: none;
}
.custom-prev.is-disabled img.disabled,
.custom-next.is-disabled img.disabled {
  display: block;
}
.swiper-pagination {
  display: block;
}


/* Mobile layout */
@media (max-width: 1200px) {
  .swiper {
    position: relative !important;
  }
  .lightbox-swiper,
  .lightbox-swiper .swiper-slide {
    width: auto;
    height: 100%;
  }
  .image-slider {
    max-width: 100vw;
  }
  .custom-prev {
    left: 1rem;
  }
  .custom-next {
    right: 1rem;
  }
}

/* Mobile layout */
@media (max-width: 600px) {
  .image-slider {
    max-width: 90vw;
  }
  .swiper-pagination {
    display: block;
  }
  .lightbox {
    align-items: center;
  }
  .swiper-zoom-container {
    align-items: start;
  }
  .lightbox-swiper-botton-nav {
    position: relative;
    height: 1rem;
    width: 6rem;
    margin: 0rem auto 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .lightbox-swiper-botton-nav .swiper-button-next,
  .lightbox-swiper-botton-nav .swiper-button-prev {
    height: 1rem;
    width: 3rem;
  }
}

.screen {display:none;}
.widescreen {display:block;}

.back-button-projects {
  position: absolute;
  right: var(--close-position-right);
  top: 0rem;
  width: 2rem;
  height: auto;
  z-index: 5;
  background-color: transparent;
  border: none;
  cursor: pointer;
 }
@media screen and (max-width: 1199px) {
  .screen {display:block;}
  .widescreen {display:none;}
  .back-button-projects {
    right: 1rem;
    top: 1rem;
  }
}

.bauprojekt h2,
.bauprojekt p {
  font-size: 1.5rem; /* 1.5 x 16px = 24px */
  line-height: 2.25rem /* 2.25 x 16px = 36px */
}
.bauprojekt h2 {
  font-family: 'Eina02Bold', Arial, Helvetica, sans-serif;
  margin-bottom: 0.4rem;
}
.bauprojektgallery {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr); /* 3 columns on desktop */
  grid-auto-rows: auto; /* Automatically adjust row height */
  overflow: visible;
}
.projekt-image_container {
  position: relative;
}
.projekt-image {
  width: auto;
  height:auto;
}
.projektinfo {
  margin-bottom: 1.3rem;
}
.projektinfo p {
  font-size: 1.145rem;
  line-height: 1.5rem;
}
.textcontainer .projektinfo p {
  margin-bottom: 0rem;
}
.bauprojekt ul {
  margin-left: -16px;
}
.bauprojekt li {
  line-height: 1.5rem;
  font-size: 1.145rem;
  margin: 0 1rem 0.3rem 0;
}

/* Support pages */
.supportpage {
  width: 100%;
}
.supportpage h1,
.supportpage h2 {
  font-size: var(--fs_text);
  line-height: var(--lh);
}
.supportpage h3 {
  font-size: var(--fs_textreduced);
  line-height: var(--lh-reduced);
  margin: 1rem 0 0;
}
.supportpage p {
  font-size: var(--fs-textbase);
  line-height: var(--lh-base);
}

/* Kontaktpage */
.kontaktpage {
  max-width: var(--main-maxwidth);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr; /* 3 columns on desktop */
  grid-auto-rows: auto; /* Automatically adjust row height */ 
}
.address,
.address p,
.address a,
.address a p,
.kontaktitem p,
.kontaktitem a,
.kontaktitem a p {
  font-size: var(--fs-textreduced);
  line-height: 2rem;
  white-space: nowrap;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
   -ms-text-size-adjust: none;
       text-size-adjust: none;
}
.map,
.map a {
  width: 100%;
  height: auto;
  vertical-align: top;
}
.kontaktpage img {
display: none;
margin: 0;
}
.map_anker {
  position: relative;
  display: inline-block;
}
.map_anker img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: auto;
  height: auto;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Default visibility states */
.map_displayed {
  opacity: 1;
  z-index: 2;
}

.map_hovered {
  opacity: 0;
  z-index: 1;
}



/* Media queries */
@media screen and (max-width: 930px) {
  /* Variables */
  :root {
    --fs_text: 1.65rem;  /* 2.5 x 12 = 30px */
    --lh: 2.4rem;
    --logo: 4rem;  /* 4 x 12 = 48px */
    --fs_mainnav: 2.5rem;  /* 2.5 x 12 = 30px */
    --fs_subnav: 2rem;  /* 2 x 12 = 24px */
  }
  html {
    font-size: 12px;
  }
  .mainnav .navitem {
    font-size: var(--fs_mainnav);
    letter-spacing: var(--lt-spacing);
  }
  .subnav-item {
    font-size: var(--fs_subnav);
  }
  .active a {
    text-decoration: none;
  }
  .navitem.active > a,
  .subnav-item.active > a {
    text-decoration: none;
    text-decoration-thickness: 2px;
  }
  .subnav-item.active > a {
    text-decoration-thickness: 1px;
  }
  .team-images {
    grid-gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
  }
  .projektcontainer {
    grid-gap: 1rem;
  }
  .bauprojekt ul {
    margin-left: -30px;
  }
  /* single member page */
  .memberpage {
    grid-template-columns: 1fr;
    grid-gap: 1rem;
    margin: 0rem auto 5rem;
  }
  .close.member {
    top: 1rem;
    right: 1rem;
  }
  .gallery-row {
    gap: 1rem;
  }
}

/* Media queries */
@media screen and (max-width: 600px) {
  /* Variables */
  :root {
    --header-height: 100px;
    --fs_text: 2rem;  /* 2 x 12 = 20px */
    --logo: 7rem;   /* 7 x 12 = 84px */
    --fs_mainnav: 2.5rem;  /* 3 x 10 = 30px */
    --swiper-navigation-size: 25px;
  }
  html {
    font-size: 10px;
  }
  body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr minmax(5rem, auto);
  }

  .mobile,
  .auftraggeberliste .desktop {
    display: inline-block;
  }
  .desktop,
  .auftraggeberliste .desktop {
    display: none;
  }
  .hidden {
  opacity: 0;
  display: none;
  transition: opacity .5s ease-in-out, display 1s ease-in-out;
  }
  .visible {
    opacity: 1;
    display: block;
  }
  .homepage,
  .fullpage {
    margin-top: 0;
  }
  footer {
    font-family: 'Eina02Light', Arial, Helvetica, sans-serif;
  }
  .navtoggle {
    align-self: flex-start;
  }
  .navtoggle:hover {
    cursor:pointer;
  }
  .mainnav.mobile {
    position: absolute;
    top: 0;
    left: 0;
    flex-direction: column;
    height: 103%;
    width: 100%;
    background-color: var(--bgcolor);
    z-index: 2000;
  }
  .mainnav.mobile ul {
    flex-direction: column;
    padding-left: 0;
    margin-top: 0;
    text-transform: lowercase;
    white-space: nowrap;
  }
  .mainnav.mobile li {
    margin-top: 3rem;
    margin-left: 0;
  }
  .mainnav.mobile li:first-child {
    margin-top: 1rem;
  }
  .mainnav.mobile li.subnav-item {
    margin-top: 0rem;
  }
  .mainnav.mobile .nav .navitem a {
    font-family: 'Eina02Bold', Arial, Helvetica, sans-serif;
    color: var(--colormain);
  }
  .mainnav.mobile ul>li a.impressum {
    font-family: 'Eina02Regular', Arial, Helvetica, sans-serif;
    color: var(--colorsecondary);
    font-size: var(--fs-textreduced);
  }
  .subnav-item {
    display: inline-block;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    -webkit-hyphens: none;
        -ms-hyphens: none;
            hyphens: none;
    margin: 0rem auto 0rem;
  }
  .mainnav.mobile .nav .subnav-item a,
  .subnav-mobile .nav .subnav-item a {
    font-family: 'Eina02Regular', Arial, Helvetica, sans-serif;
    color: var(--colormain);
  }
  .subnav-mobile .subnav-item {
    margin: 0rem auto 1rem;
  }
  .footernav.desktop {
    display: none;
  }
  .footernav.mobile {
    width: 100%;
  }
  footer {
    min-height: 5rem;
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    /* background-color: var(--bgcolor); */
  }
  footer.topnav {
    min-height: 10rem;
  }
  footer .nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    padding: 0rem 5vw 1rem;
    list-style: none;
  }
  footer .nav li {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    font-size: var(--fs_mainnav);
    text-align: center;
    margin-right: 0;
  }
  footer .nav .active a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }
  .footersubnav {
    /* display: flex; */
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .subnav-mobile_box {
    width: 100%;
    height: auto;
  }
  .subnav-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 0 2rem;
  }
  .resizable {
    height: 0px;
    transition: display 2.7s ease;
    display: none;
  }
  .small {
    height: auto;
    display: flex;
    transform: translateY(-1rem);
  }
  .close {
    top: -3rem;
    right:0rem;
  }
  .close.member {
    top: 1rem;
    right: 1rem;
  }
  .team-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .textcontainer {
    max-width: 100%;
    width: 100%;
  }
  .textcontainer .projektitem p {
    font-size: 1.25rem;
    line-height: 1.7rem
  }
  .projektitem ul {
    margin-left: -22px;
  }
  .bauprojekt ul {
    margin-left: -22px;
  }
  .jobpage p:first-child {
    margin-top: 2rem;
  }
}

