/* Variables */
:root {
  --primary-color: rgb(77, 77, 77);
  --secondary-color: rgb(94, 147, 47);
  --tertiary-color: rgb(108, 185, 100);
  --rechts-color: #000;
  --bgnd-color: #fff;
  --header-bgnd-color: #fff;
  --box-bgnd-color: rgba(242, 246, 235, 0.57);
  --second-bgnd-color: #f4f4f4;
  --nav-bgnd-color: rgb(247, 255, 238);
  --primary-font: 'ITCAvantGardeGothicW05-Book', sans-serif;
  --secondary-font: 'Square 721 Extended', sans-serif;
}

/* Reset */
* {
  box-sizing: border-box;
  font-family: var(--primary-font);
  margin: 0;
  padding: 0;
}

/* Fonts */
@font-face {
  font-family: "Square 721 Extended";
  font-style: extended;
  font-display: swap;
  /* font-weight: 400; */
  src: url("./Fonts/Square-721-Extended.woff2") format("woff2");
}

@font-face {
  font-family: "ITCAvantGardeGothicW05-Book";
  font-style: extended;
  font-display: swap;
  /* font-weight: 400; */
  src: url("./Fonts/ITCAvantGardeGothicW05-Book.woff2") format("woff2");
}

h1,
h2,
h3 {
  font-family: var(--secondary-font);
  font-weight: normal;
  margin-bottom: 20px;
  text-align: left;
  color: var(--tertiary-color);
}

h1 {
  font-size: 2.3rem;
}

h1.small_margin {
  margin-bottom: 3px;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

p {
  line-height: 1.2em;
  margin-bottom: 1em;
}

sup {
  font-size: 0.6em;
}

h1 sup {
  font-size: 0.35em;
}


a {
  color: var(--secondary-color);
  text-decoration: none;
  display: inline-block;
  border-bottom: 1px dotted var(--secondary-color);
  padding: 2px;
}

a:hover {
  background-color: var(--second-bgnd-color);
  color: var(--primary-color);
}

body,
html {
  scroll-behavior: smooth;
  transition: all 250ms ease;
}

/* Header Start */
.header {
  display: flex;
  align-items: center;
  background-color: var(--header-bgnd-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 10px 30px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 7px 8px -4px, rgba(0, 0, 0, 0.14) 0px 13px 19px 2px, rgba(0, 0, 0, 0.12) 0px 5px 24px 4px;
}


.burger-icon {
  cursor: pointer;
  color: var(--secondary-color);
  font-size: 42px;
}

.logo-header {
  width: 100%;
  display: flex;
  /* This ensures the child elements are flex items. Not strictly necessary for scaling the image, but useful for alignment. */
  justify-content: center;
  /* This will center the image horizontally. */
  align-items: stretch;
  /* This will make the child elements (including the image) fill the container height. */
  transition: all 0.5s ease;

}
#header a {
  border-bottom: none;
}
/* Wird vom Javascript(siehe Fkt. headerScale) beim Scrollen genutzt um den Header zu verkleineren */
.logo_header_small img {
  height: 60px !important;
  transition: all 0.5s ease;
}

.logo-header img {
  height: 80px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .dropbtn::after {
  content: "\25BC"; /* Unicode für den Pfeil nach unten */
  font-size: 12px;
  padding-left: 5px;
}

.dropdown-content {
  background-color: var(--nav-bgnd-color);
  opacity: 0;
  position: absolute;
  z-index: 1;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  border-radius: 7px;
}

.dropdown-content a {
  color: var(--tertiary-color);
  font-family: var(--secondary-font);
  padding: 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  color: white;
  background: var(--tertiary-color);
}

.dropdown:hover .dropdown-content {
  opacity: 1;
}

.dropbtn {
  background-color: var(--header-bgnd-color);
  color: var(--tertiary-color);
  font-family: var(--secondary-font);
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}
/* Header Ende */


/* Navigation Start */
nav {
  position: fixed;
  top: 0;
  left: 0;
  transition: all 0.5s ease;
  z-index: 1000;
  background-image: url(Images/navigation_background_cuted.png);
  background-color: var(--nav-bgnd-color);
  /* width: 100%; */
  padding-left: 15px;
  padding-top: 25px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 7px 8px -4px, rgba(0, 0, 0, 0.14) 0px 13px 19px 2px, rgba(0, 0, 0, 0.12) 0px 5px 24px 4px;
}

nav ul {
  display: flex;
  justify-content: space-around;
  align-items: start;
  width: 100%;
  /* height: 100vh; */
  flex-direction: column;
  padding: 6px;
  margin: 0;
  list-style: none;
}

nav li a {
  font-family: var(--secondary-font);
  font-size: 1.2rem;
  color: var(--tertiary-color);
  padding: 10px 15px;
  text-decoration: none;
  border: none;
}

nav li a:hover {
  color: white;
  background: var(--tertiary-color);
  border-radius: 10px;
}

nav .burger-icon {
  padding-left: 15px;
}

nav .nav_footer {
  margin-top: 60px;
  padding: 15px;
  padding-left: 30px;
  padding-right: 0;
  color: var(--tertiary-color);
  font-family: var(--secondary-font);
  font-size: 0.8rem;
  font-weight: bold;
  line-height: 130%;
}

nav .nav_footer img {
  width: 80px;
}

/******* Navigation End *********/


.box {
  padding: 30px 20px;
  border-radius: 10px;
  color: var(--secondary-color);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 6px -3px, rgba(0, 0, 0, 0.14) 0px 11px 17px 2px, rgba(0, 0, 0, 0.12) 0px 5px 24px 4px;
  /* Apply the gradient background */
  background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.6) 100%);
  text-align: center;
}


.box h1,
.box h2,
.box p {
  color: var(--secondary-color);
  margin: 0;
  font-family: var(--secondary-font);
  text-align: center;
}

.box h1 {
  font-size: 3.2rem;
  margin-bottom: 5px;
}

.box h2 {
  font-size: 1.3rem;
}

.box p {
  font-size: 1.1rem;
}

.box .facts {
  display: flex;
  justify-content: space-between;
  align-items: start;
  /* flex-wrap: wrap; */
  padding-top: 16px;
}

.box .fact {
  padding: 4px 7px;
  border-left: 1px solid var(--secondary-color);
  border-width: 2px;
  font-family: var(--secondary-font);
  font-weight: bold;
  flex-grow: 1;
    /* Apply the gradient background */
    background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.box .fact:first-child {
  border-left: none;
}

/* normal article pages */
.article {
  color: var(--primary-color);
  font-size: 1.1rem;
  overflow: hidden;
  margin: 30px 30px;
  /* max-height: 800px;
  height: 60vh; */
  background-color: var(--bgnd-color);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 7px 8px -4px, rgba(0, 0, 0, 0.14) 0px 13px 19px 2px, rgba(0, 0, 0, 0.12) 0px 5px 24px 4px;
  position: relative;
}

/* Vertikal versetzer Anker um Header zu beachten */
a.anker {
  display: block;
  position: relative;
  top: -100px;
  visibility: hidden;
}

#header_spacer {
  height: 105px;
}

/******* Home *********/
#home {
  background-image: url("Images/green_face_q.jpg");
  background-size: cover;
  margin: 10px 30px;
  min-height: 600px;
  max-height: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#home .box {
  padding: 30px;
  color: var(--secondary-color);
  text-align: left;
  background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.9) 100%);
  /* margin-left: 20%; */
}
#home h1 {
  font-size: 2.5rem;
  padding: 0 0.5em;
  margin-top: 0.5em;
  color: var(--tertiary-color);
  text-transform: capitalize;
}
#home ul {
  padding-left: 20px;
  margin-top: 15px;
}
#home ul li {
  margin: 5px 0;
  font-size: 120%;
}
#home ul li a {
  padding: 5px 5px;
  font-size: 115%;
}
#home .logo {
  text-align: center;
}
/******* Home End ********/

/******* Page xeraskopie *********/
#xeraskopie {
  background-image: url("Images/home.jpg");
  background-size: cover;
  margin: 10px 30px;
  min-height: 600px;
  max-height: 800px;
  display: flex;
  justify-content: end;
  align-items: start;
}
#xeraskopie .box {
  margin-top: 15%;
  margin-right: 5%;
}
#xeraskopie .box p {
  font-size: 1.2rem;
}
#xeraskopie .box a {
  font-family: var(--secondary-font);
  padding: 0 0 2px 0;
}
/******* xeraskopie End *******/


.content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.content .text {
  padding: 20px 0 20px 40px;
  flex: 1;
  max-width: 650px;
  min-height: 500px;
}

.content .image {
  text-align: right;
  height: 100%;
  max-height: 650px;
  flex: 1;
}

.content .image img {
  width: inherit;
  height: 100%;
}

#new_tech .content .image {
  text-align: left;
}

#vorteile .content .xera3_logo {
  padding-top: 5px;
  width: 140px
}

.content .xeraskopie {
  font-weight: bold;
  color: var(--tertiary-color);
  font-family: var(--secondary-font);
  padding: 0 0.1em 0 0;
}

.content .specialP {
  font-size: 1.2rem;
  color: var(--tertiary-color);
  font-family: var(--secondary-font);
  /* padding-top: 0.5rem; */
  line-height: 130%;
}

.content ul {
  padding-left: 20px;
  margin-top: 0;
}

.content ul li {
  margin: 10px 0;
}

.content .quelle {
  font-size: 0.8rem;
  font-style: italic;
  white-space: nowrap;
}

/*** Kontakt Seite ***/
.contact{
  background-image: url("Images/green_face_q_mirrored.jpg");
  background-size: cover;
  overflow: hidden;
  margin: 10px 30px;
  padding: 0;
  min-height: 600px;
  max-height: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bgnd-color);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 7px 8px -4px, rgba(0, 0, 0, 0.14) 0px 13px 19px 2px, rgba(0, 0, 0, 0.12) 0px 5px 24px 4px;
}

.contact .box {
  padding: 30px;
  color: var(--tertiary-color);
  max-width: 480px;
  background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.contact .box img.xera3_logo {
  width: 100px;
}

.contact .box a {
  color: var(--tertiary-color);
  padding-top: 7px;
}

.contact .box h1 {
  font-size: 1.4rem;
}

.contact .box h1,
.contact .box h2,
.contact .box p {
  color: var(--tertiary-color);
}

/*** Kontakt Seite Ende ***/


/*** Impressum/Datenschutz Link Box ***/
#imp_box {
  background-color: var(--bgnd-color);
  margin: 30px;
  padding: 5px 15px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 7px 8px -4px, rgba(0, 0, 0, 0.14) 0px 13px 19px 2px, rgba(0, 0, 0, 0.12) 0px 5px 24px 4px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

#imp_box a {
  padding: 5px 30px;
  border-bottom: none;
  font-size: 1.2rem;
}
#imp_box .weitere a {
  background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="rgb(108, 185, 100)"><path d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"/></svg>');
  background-repeat: no-repeat;
  padding-left: 35px;
  background-size: 18px 18px;
  background-position-y: center;
}

/* .with-image-right .text, .with-image-left .text {
  flex: 1 1 600px;
}

.with-image-right .image, .with-image-left .image {
  flex: 1 1 400px;
  text-align: center;
}

.with-image-left .text {
  order: 2;
}

.with-image-left .image {
  order: 1;
} */

.lazy-image {
  /* width: 100%;
  max-width: 400px; */
  opacity: 0;
  transition: opacity 0.3s;
}

.hidden {
  opacity: 0; /* Make things invisible, don't use "display: none;" it's ignore transitions */
}

.visible {
  opacity: 1;
}



/*************** Mobile Stylings *******************/
@media(max-width: 1000px) {
  body {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .header {
    padding: 10px 15px;
  }

  .burger-icon {
    font-size: 32px;
  }

  .logo-header img {
    height: 60px;
  }

  .logo_header_small img {
    height: 45px !important;
  }

  a.anker {
    top: -60px;
  }

  #header_spacer {
    height: 78px;
  }
  
  #home h1 {
    font-size: 1.3rem;
  }


  #home ul li {
    margin: 5px 0;
    font-size: 110%;
  }

  #xeraskopie, #home {
    margin: 15px;
    justify-content: center;
    align-items: center;
  }
  #xeraskopie {
    background-image: url("Images/home_20.jpg");
    background-position: center;
  }

  #xeraskopie .box, #home .box {
    margin: 5px;
    padding: 15px 10px;
  }
  .box .facts {
    flex-direction: column;
    align-items: center;
    margin: 0 30px;
    padding-top: 10px;
  }
  .box .fact {
    width: 100%;
    border-left: none;
    margin: 5px 0;
  }

  .box h1 {
    font-size: 2.2rem;
  }

  .box h2, .box p, #xeraskopie .box p {
    font-size: 1rem;
  }

  .article {
    margin: 15px;
    font-size: 1rem;
  }

  .content .text {
    padding: 30px 15px 20px 15px;
    min-height: auto;
  }
  .content .image {
    max-height: 500px;
  }
  .content .image img {
    width: 100%;
    min-width: 340px;
  }

  .content .specialP {
    font-size: 1rem;
  }

  .content .xera3_logo {
    width: 90px;
  }
  #vorteile .content .xera3_logo {
    width: 100px;
  }

  .contact {
    margin: 15px;
  }

  .contact .box {
    padding: 15px;
    max-width: 310px;
    border-radius: 7px;
  }

  #imp_box {
    margin: 15px;
    padding: 10px;
  }

  /* Navigation Start */
  nav {
    padding-left: 7.5px;
    padding-top: 12.5px;
  }

  nav ul {
    padding: 4px;
  }
  nav li { margin: 2px 0;}
  nav li a {
    font-size: 1rem;
    padding: 6px;
    padding-left: 15px;
  }

  nav li a:hover {
    color: white;
    border-radius: 7px;



  }

  nav .burger-icon {
    padding-left: 7.5px;
  }

  nav .nav_footer {
    margin-top: 15px;
    padding: 7.5px;
    padding-left: 15px;
    padding-right: 5px;
    font-size: 0.7rem;
    font-weight: bold;
    line-height: 130%;
  }

  nav .nav_footer img {
    width: 50px;
  }

  /* Navigation End */
}

/********* Print Styles **********/
@media print {

  .header,
  .footer,
  nav {
    display: none;
  }

  .article {
    page-break-inside: avoid;
    page-break-after: always;
  }
}