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 1rem 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;
    padding-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: 2.0rem;
  padding: 0;
}

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

nav a {
  color: black;
  font-size: 0.75rem;
  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 1.0rem 0 0;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-gutter: stable;
}



.gallery {
  display: grid;
  grid-template-columns:repeat(auto-fit, minmax(350px, 1fr));
  grid-template-rows: repeat(auto-fit, 275px);
  gap: 1.5rem;
}




.gallery div {
  display: block;
  width: 100%;
  height: 275px;
  margin: 0;
  padding: 0;
  border-bottom: solid 1px rgba(123, 123, 123, 0.301);
}

.gallery img {
  height: 80%;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}


.gallery h1 {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 18%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  font-size: 0.8rem;
  line-height: 1.2rem;
  color: rgb(100, 100, 100);
}








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.35);
    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.35);
    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;
  }

  .gallery {
    grid-template-columns:repeat(auto-fit, minmax(400px, 1fr));
    grid-template-rows: repeat(auto-fit, 350px);
  }


.gallery div {
  height: 350px;
}


.gallery h1 {
  font-size: 1.0rem;
  line-height: 1.4rem;
}

} 






@media (min-width: 992px) {

.gallery h1 {
  font-size: 1.1rem;
  line-height: 1.4rem;
}


}








    


