body {
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
}

img {
  max-inline-size: 100%;
}

.container {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: grid;
  background-color: white;
  grid-template-columns: 2rem 1fr 12rem;
  grid-template-rows: 2rem 2rem 1fr 2rem;
  grid-template-areas:
    "header header header"
    "headbar headbar headbar"
    "nav main main"
    "footer footer footer";
}

header {
  grid-area: header;
  position: fixed;
  border-bottom: solid 1px rgba(0, 0, 87, 0.35);
  top: 0;
  height: 2rem;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: rgb(210, 205, 205);
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  color: white;
  letter-spacing: 0.2rem;
  display: grid;
  grid-template-columns: 1fr 8.0rem 6rem;
}

.head-01 {
  height: 100%;
  display: flex;
  justify-content: left;
  margin-left: 2rem;
  align-items: center;
}

.head-02 {
  height: 100%;
  display: flex;
  justify-content: end;
  margin-right: 0.2rem;
  align-items: center;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.head-03 {
  height: 100%;
  display: flex;
  justify-content: end;
  margin-right: 1.0rem;
  align-items: center;
}

.headbar {
  background-color: white;
  grid-area: headbar;
  position: fixed;
  top: 2rem;
  width: 100%;
  height: 2rem;
  padding: 0;
}

.sidebar {
  display: none;
}

.highlight {
  color: rgba(167, 16, 8, 0.869);
}

nav {
  grid-area: nav;
  position: fixed;
  left: 0;
  height: 100%;
  display: flex;
  padding-left: 1rem;
}

nav ul {
  list-style-type: none;
  background-color: none;
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 2rem;
  padding: 0;
}

nav li {
  height: 1.4rem;
  width: 12rem;
  display: flex;
  align-items: center;
  margin: 0 0 0.75rem 0;
  border-radius: 4px;
}

nav a {
  color: black;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-decoration: none;
  text-transform: uppercase;
  padding-left: 2rem;
}

a:hover {
  text-decoration: underline;
}


.Home {
  background-color: rgba(235, 173, 137, 0.718);
}
.Referenzen {
  background-color: rgba(246, 246, 113, 0.709);
}
.Buero {
  background-color: rgba(146, 215, 140, 0.715);
}

.Kontakt {
  background-color: rgba(166, 213, 255, 0.714);
}
.Impressum {
  background-color: rgba(241, 179, 255, 0.712);
}


main {
  grid-area: main;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: start;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.slideshow {
  display: block;
  margin-right: 1.0rem;
  width: 100%;
  max-width: 1200px;
  height: 50%;
  min-height: 250px;
  box-shadow: 0px 0px 10px grey;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: opacity 2s;
}

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

.slide-textbereich {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 80%;
  background-color: rgb(210, 209, 209);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-text {
  text-align:  center;
  font-size: 0.75rem;
  letter-spacing: 0.11rem;
  line-height: 1.2rem;
}



.pfeil {
  position: absolute;
  top: 0;
  bottom: 0;
  font-size: 40px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 15%;
  color: rgba(255, 255, 255, 0.5);
  user-select: none;
  cursor: pointer;
}

.pfeil:hover {
  color: white;
  text-decoration: none;
}

.pfeil-links {
  left: 0;
}

.pfeil-rechts {
  right: 0;
}

.indikatorenliste {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  list-style-type: none;
  font-size: 40px;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.indikator {
  padding: 0 10px;
  user-select: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 2s;
}

.aktiv {
  opacity: 1;
}

footer {
  grid-area: footer;
  position: fixed;
  bottom: 0;
  box-sizing: border-box;
  background-color: rgb(210, 205, 205);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 2rem;
}

@media (min-width: 768px) {

  .container {
    grid-template-columns: 2rem 1fr 12rem;
    grid-template-rows: 3rem 2rem 1fr 2rem;
    grid-template-areas:
      "header header header"
      "headbar headbar headbar"
      "nav main sidebar"
      "footer footer footer";
  }

  header {
    font-size: 1.3rem;
    height: 3.0rem;
    grid-template-columns: 1fr 1fr 12rem;
    letter-spacing: 0.5rem;
    align-items: end;
  }

  .head-02 {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    justify-content: right;
    padding-right: 0.60rem;
    align-items: center;
  }

  .head-03 {
    border-left: solid 1px rgba(0, 0, 87, 0.75);
    justify-content: start;
    align-items: center;
    padding-left: 1rem;
  }

  .headbar {
    top: 3.0rem;
  }


    .sidebar {
    grid-area: sidebar;
    margin: 0;
    padding: 0;
    border-left: solid 1px rgba(0, 0, 87, 0.75);
    width: 12rem;
    position: fixed;
    right: 0;
    top: 3rem;
    bottom: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: start;
    font-size: 0.75rem;
    color: rgb(115, 115, 115);
    line-height: 1.5;
    font-weight: bold;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  .sb-Teil-01 {
    width: 100%;
    padding: 2rem 1rem 1rem 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .sb-Teil-02 {
    width: 100%;
    padding: 2rem 1rem 1rem 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .sb-Teil-03 {
    width: 100%;
    padding-left: 1rem;
    padding-bottom: 2rem;
    box-sizing: border-box;
  }


  .Logo {
    width: 80%;
    padding-top: 3rem;
  }


  main {
  justify-content: center;
  align-items: start;
}

  .slideshow {
  height: 60%;
  min-height: 300px;
}


.slide-text {
  font-size: 0.9rem;
}


}


@media (min-width: 992px) {


  .slideshow {
  height: 70%;
  min-height: 500px;
}

  .slide-text {
  font-size: 1.1rem;
  letter-spacing: 0.2rem;
  line-height: 2.0rem;
}


}
