/* CSS Variables */

:root {
  --primary: rgba(69, 101, 181, 1);
  --secondary: rgba(71, 137, 114, 1);
  --light: rgba(255, 249, 239, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--light);
}

html,
body {
  font-family: poppins, sans-serif;
  font-weight: 500;
  font-style: normal;
  font-style: normal;
  font-size: 20px;
  margin: 0;
  padding: 0;
  height: 100%;
  color: var(--primary);
}

img {
  width: 100%;
}

a {
  color: var(--primary);
}

/** ELEMENTS **/

.button {
  border: 3px solid #478972;
  border-radius: 40px;
  opacity: 1;
  height: 56px;
  display: inline-block;
  color: #478972;
  font-size: 1.2rem;
  padding: 7px 25px 5px 25px;
  cursor: pointer;
  width: fit-content;
}

.justify-end {
  justify-self: end;
}

.visual img {
  max-width: 300px;
}

.intro-container .visual {
  justify-self: center;
}

/** TYPO **/

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 600px;
}

h2 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 600px;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 600px;
  text-decoration: underline;
}

.intro-text {
  color: var(--secondary);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.2;
}

p {
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 600px;
}

/*p:last-child {
    margin-bottom: 0;
}*/

.dont-break-out {
  /* These are technically the same, but use both */
  overflow-wrap: break-word;
  word-wrap: break-word;

  -ms-word-break: break-all;
  /* This is the dangerous one in WebKit, as it breaks things wherever */
  word-break: break-all;
  /* Instead use this non-standard one: */
  word-break: break-word;

  /* Adds a hyphen where the word breaks, if supported (No Blink) */
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/** LAYOUT **/

.wrapper {
  display: grid;
  grid-gap: 4rem;
}

.container {
  margin-top: 120px;
}

/** ---------------------------------------------------------------------- NAVIGATION **/

.nav-wrapper {
  position: fixed;
  top: 0;
  height: 100px;
  background-color: #fff9ef;
  width: 100%;
  padding: 0.5rem 0rem;
  /*    -webkit-box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.2);
-moz-box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.2);
box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.2);*/
}

.nav-container {
  padding: 0rem 4rem;
  background-color: #fff9ef;
  height: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  grid-template-areas: "a b c d";
  grid-template-rows: auto;
  grid-column-gap: 2rem;
  align-items: center;
  color: #478972;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.nav-a {
  grid-area: a;
}

.nav-a a {
  text-decoration: none;
  color: var(--secondary);
}

.nav-b {
  grid-area: b;
}

.nav-b a {
  text-decoration: none;
  color: var(--secondary);
}

.nav-c {
  grid-area: c;
}

.nav-d {
  grid-area: d;
}

.nav-container .button {
  font-style: italic;
}

.fb-icon {
  height: 56px;
  width: auto;
}

.fb-icon img {
  height: 56px;
  width: auto;
}

/** INTRO CONTAINER **/

.intro {
}

.end {
  align-self: end;
}

.right {
  justify-self: end;
}

.item-center {
  align-self: center;
}

.content-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 1600px;
}

.intro-container {
  display: grid;
  grid-template-columns: minmax(300px, 600px) auto;
  grid-column-gap: 4rem;
  padding: 0rem 4rem;
  grid-row-gap: 4rem;
  /*    justify-items: center;*/
}

.visual-intro {
  justify-self: center;
}

.visual-intro img {
  max-width: 300px;
}

/** PROFIL CONTAINER **/

.profil-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 4rem;
  padding: 4rem 4rem 0rem 4rem;
}

.profilbild {
  justify-self: center;
  max-width: 500px;
}

/** FACEBOOK CONTAINER **/

.facebook-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-column-gap: 4rem;
  padding: 0rem 4rem 0rem 4rem;
  margin-top: -140px;
}

.item-a3 {
  text-align: center;
  max-width: 600px;
  justify-self: center;
  margin-bottom: 3rem;
}

/** FOOTER CONTAINER **/

.footer-container {
  padding: 2rem 4rem;
  background-color: #478972;
  color: #fff9ef;
  display: grid;
  grid-template-columns: auto auto auto;
  grid-column-gap: 2rem;
}

.footer-container a {
  color: #fff9ef;
}

.mail {
  align-self: flex-end;
}

.emblem {
  max-width: 140px;
  grid-row: 1 / span 2;
}

.contact-info {
  display: flex;
  justify-content: left;
}

/** GALERIE **/

.galerie {
  display: grid;
  grid-template-columns: 1fr 1fr;

  grid-column-gap: 4rem;
  grid-row-gap: 4rem;
}

.top-right {
  width: 75%;
  justify-self: flex-end;
}

.bottom-left {
  width: 75%;
}

.bottom-right {
  align-self: flex-end;
}

/* OVERLAY */

#overlay {
  position: fixed;
  display: none;
  grid-template-columns: minmax(auto, 600px);
  grid-template-rows: 100vh;
  top: 0;
  left: 0;
  width: 100%;
  justify-content: center;
  z-index: 5;
  background-color: rgba(255, 249, 239, 0.5);
}

.overlay-inner {
  display: flex;
  flex-direction: column;
  background-color: var(--light);
  position: relative;
  border: 5px solid #4565b5;
  border-radius: 4px;
  max-width: 600px;
  height: auto;
  z-index: 1000;
  padding: 0rem 0rem;
  margin: 0rem 2rem;
  text-align: center;
  align-self: center;
}

.overlay-inner p {
  padding: 0rem 1rem;
}

.overlay-content {
  margin-top: 1rem;
}

.overlay-number {
  font-size: 2rem;
  color: #478972;
}

.whatsapp-overlay {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.whatsapp-icon {
  margin: 8px 8px 0 0;
  width: 40px;
  height: 40px;
}

.whatsapp-button {
  margin: -2px 8px 0 0;
  width: 40px;
  height: 40px;
}

/*.close-wrapper {
    height: 60px;
    width: 100%;
    display: flex;
    align-content: flex-end;
    margin-bottom: 2rem;
}*/

.close {
  width: 60px;
  height: 60px;
  border: 5px solid #4565b5;
  margin-top: -5px;
  margin-right: -5px;
  position: relative;
  opacity: 1;
  cursor: pointer;
  border-radius: 4px;
  align-self: flex-end;
}

.close:hover {
  opacity: 1;
}

.close:before,
.close:after {
  position: absolute;
  left: 23px;
  top: 2px;
  content: " ";
  height: 45px;
  width: 5px;
  background-color: #4565b5;
  border-radius: 40px;
}

.close:before {
  transform: rotate(45deg);
}

.close:after {
  transform: rotate(-45deg);
}

/* IMPRESSUM & DATENSCHUTZ */

.legal-container {
  width: 100%;
  display: inline-block;
  padding: 0rem 4rem;
  overflow: hidden;
}

.legal-container p {
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.legal-container p:last-child {
  margin-bottom: 2rem;
}

.legal-container h2 {
  margin-bottom: 1rem;
  margin-top: 2rem;
}

/* MEDIA QUERIES */

/*@media screen and (max-width:1100px) {
    
    .item-b-intro {
        grid-row: 2;
        grid-column: 1 / span 2;
        justify-self: center;
        grid-row-gap: 2rem;
    }
        .galerie {
    display: grid;
    grid-template-columns: 1fr 1fr;
    
    grid-column-gap: 4rem;
    grid-row-gap: 4rem;
        margin-top: 4rem;
}
}
}*/

@media screen and (min-width: 768px) and (max-width: 920px) {
  .nav-wrapper {
    height: 80px;
  }

  .nav-container {
    padding: 0rem 4rem;
    height: 60px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "a c d"
      "b c d";
    grid-template-rows: auto;
    grid-column-gap: 1rem;
    font-size: 1rem;
  }

  .intro-container {
    grid-template-columns: 1fr;
    grid-column-gap: 4rem;
    padding: 0rem 4rem;
    grid-row-gap: 4rem;
  }

  .footer-container {
    padding: 2rem 4rem;
    background-color: #478972;
    color: #fff9ef;
    display: grid;
    grid-template-columns: auto auto;
    grid-column-gap: 2rem;
  }

  .emblem {
    max-width: 140px;
    grid-row: 1 / span 4;
  }
}

@media screen and (min-width: 481px) and (max-width: 767px) {
  .nav-wrapper {
    height: 72px;
  }

  .nav-container {
    padding: 0rem 2rem;
    height: 40px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "a c d"
      "b c d";
    grid-template-rows: auto;
    grid-column-gap: 1rem;
    font-size: 16px;
  }

  .nav-container .button {
    font-size: 16px;
    height: 40px;
    padding: 0.25rem 0.5rem 0rem 0.5rem;
  }

  .fb-icon {
    height: 40px;
    width: auto;
  }

  .fb-icon img {
    height: 40px;
    width: auto;
  }

  .intro-container {
    grid-template-columns: 1fr;
    grid-column-gap: 4rem;
    padding: 0rem 2rem;
    grid-row-gap: 4rem;
    justify-items: center;
  }
  .profil-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 4rem;
    padding: 4rem 2rem 0rem 2rem;
  }

  .facebook-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 4rem;
    grid-row-gap: 2rem;
    padding: 0rem 2rem 0rem 2rem;
    margin-top: 0px;
  }

  .item-a3 {
    margin-bottom: 1rem;
  }

  .footer-container {
    padding: 2rem 2rem;
    background-color: #478972;
    color: #fff9ef;
    display: grid;
    grid-template-columns: minmax(100px, auto) 1fr;
    grid-row: auto;
    font-size: 0.8rem;
  }

  .emblem {
    max-width: 140px;
    grid-row: 1 / span 4;

    margin-bottom: 2rem;
  }

  .legal-container {
    display: inline-block;
    padding: 0rem 2rem;
  }
}

@media screen and (max-width: 480px) {
  .nav-wrapper {
    height: 60px;
  }

  .nav-container {
    padding: 0rem 1rem;
    height: 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "a c"
      "b c";
    grid-template-rows: auto;
    grid-column-gap: 0.4rem;
    font-size: 0.7rem;
  }
  .nav-d {
    display: none;
  }

  .fb-icon {
    height: 40px;
    width: auto;
  }

  .fb-icon img {
    height: 40px;
    width: auto;
  }

  .nav-container .button {
    font-size: 0.7rem;
    height: 40px;
  }

  .intro-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 4rem;
    padding: 0rem 1rem;
    grid-row-gap: 4rem;
    justify-items: center;
  }

  .intro-text {
    font-size: 20vw;
  }

  .profil-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 4rem;
    padding: 4rem 1rem 0rem 1rem;
  }

  .galerie {
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 4rem;
    grid-row-gap: 1rem;
    padding: 0rem 1rem;
  }

  .bottom-left {
    width: 100%;
  }

  .top-right {
    width: 100%;
  }

  .facebook-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 4rem;
    grid-row-gap: 2rem;
    padding: 0rem 1rem 0rem 1rem;
    margin-top: 0px;
    justify-items: center;
  }

  .justify-end {
    justify-self: center;
  }

  .item-a3 {
    margin-bottom: 1rem;
  }

  .footer-container {
    padding: 2rem 1rem;
    background-color: #478972;
    color: #fff9ef;
    display: grid;
    grid-template-columns: 1fr;
    font-size: 0.8rem;
    align-content: center;
    justify-items: center;
    text-align: center;
  }

  .contact-info {
    display: flex;
    justify-content: center;
  }

  .emblem {
    margin-bottom: 2rem;
  }

  .button {
    padding: 7px 16px 5px 16px;
  }

  .button a {
    color: var(--secondary);
    text-decoration: none;
  }

  .overlay-inner {
    margin: 0rem 1rem;
    height: auto;
  }

  .overlay-number {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .overlay-inner a {
    color: var(--secondary);
    text-decoration: none;
  }

  .whatsapp-icon {
    margin: 6px 6px 0 0;
    width: 32px;
    height: 32px;
  }

  .legal-container {
    display: inline-block;
    padding: 0rem 1rem;
  }

  .lg {
    font-size: 1.2rem;
  }

  .sm {
    font-size: 0.8rem;
    margin: 0.8rem;
  }
}
