/* karla-regular - latin */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/karla-v23-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/karla-v23-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/karla-v23-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/karla-v23-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/karla-v23-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/karla-v23-latin-regular.svg#Karla') format('svg'); /* Legacy iOS */
}
body {
  font-family: 'Karla', sans-serif;
}
.wrapper {
  width: 100%;
  display: grid;
  column-gap: 0.2rem;
  row-gap: 0.2rem;
  background: #FFFFFF;
}
header, section, footer {
  display: grid;
  column-gap: 0.2rem;
  row-gap: 0.2rem;
  background: #FFFFFF;
  }
  .overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
  }
  .overlay:target {
    visibility: visible;
    opacity: 1;
  }

  .popup {
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 30%;
    height: 75%;
    position: relative;
    transition: all 5s ease-in-out;
  }

  .popup h2 {
    margin-top: 0;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
  }
  .popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
  }
  .popup .close:hover {
    color: #454545;
  }
  .popup .content {
    max-height: 85%;
    overflow: auto;
  }
/*-------GRID-MOBIL------*/
@media only screen and (max-width: 1024px) {
header {
      grid-template-columns: 50% 50%;
      grid-template-rows: auto;
    }
section {
    grid-template-columns: 100%;
    grid-template-rows: auto;
  }
footer {
    grid-template-columns: 100%;
    grid-template-rows: auto 30px;
  }
.head_1 {
    grid-area: 1 / 1 / 2 / 2;
    background: url(../img/teich_rueck.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 12rem;
  }
.head_2 {
      grid-area: 1 / 2 / 2 / 3;
      background: url(../img/mobil_schnee.jpg);
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;
      height: 12rem;
    }
.head_3, .head_4  {
  display: none;
}
.logo {
  grid-area: 1 / 1 / 2 / 2;
  background: url(../img/teich_logo.jpg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  height: 10rem;
}
.sec_l1, .sec_l2, .sec_r1 {
  display: none;
}
.footerhead {
  grid-area: 1 / 1 / 2 / 2;
  background: url(../img/mobil_footer.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  height: 12rem;
}
.footer {
  grid-area: 2 / 1 / 3 / 3;
  background: #454545;
  color: #FFFFFF;
  place-self: stretch;
  padding: 5px;
}
.footer a {
  color: #FFFFFF;
  text-decoration: none;
}
.footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.box{
  width: 70%;
}
.popup{
  width: 70%;
}
}
/*-------GRID-NORMAL------*/
@media only screen and (min-width: 1024px) {

header {
  grid-template-columns: 25% 25% 25% 25%;
  grid-template-rows: auto;
}
section {
  grid-template-columns: 20% 20% 20% 40%;
  grid-template-rows: auto;
}
footer {
  grid-template-columns: 100%;
  grid-template-rows: auto 30px;
}
.head_1 {
  grid-area: 1 / 1 / 2 / 2;
  background: url(../img/teich_head1.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 20rem;
}
.head_2 {
  grid-area: 1 / 2 / 2 / 3;
  background: url(../img/teich_head2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 20rem;
}
.head_3 {
  grid-area: 1 / 3 / 2 / 4;
  background: url(../img/teich_head3.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 20rem;
}
.head_4 {
  grid-area: 1 / 4 / 2 / 5;
  background: url(../img/teich_head4.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 20rem;
}
.logo {
  grid-area: 1 / 3 / 2 / 4;
  background: url(../img/teich_logo.jpg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  height: 20rem;
}
.sec_r1 {
  grid-area: 1 / 4 / 2 / 5;
  background: url(../img/teich_schnee.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 20rem;
}
.sec_l1 {
  grid-area: 1 / 1 / 2 / 2;
  background: url(../img/teich_rueck.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 20rem;
}
.sec_l2 {
  grid-area: 1 / 2 / 2 / 3;
  background: url(../img/teich_kalk.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 20rem;
}
.footerhead {
  grid-area: 1 / 1 / 2 / 2;
  background: url(../img/teich_footer.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  height: 20rem;
}
.footer {
  grid-area: 2 / 1 / 3 / 3;
  background: #454545;
  color: #FFFFFF;
  place-self: stretch;
  padding: 5px;
}
.footer a {
  color: #FFFFFF;
  text-decoration: none;
}
.footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
}
