/* Entfernt alle Standard-Margins und Paddings von HTML und Body */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Roboto", sans-serif;
  /*overflow-x: hidden;  Verhindert horizontales Scrollen */
}

* {
  box-sizing: border-box;
}

div {
  margin: 0;
}

/* Intro-Animation */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Überlagert andere Inhalte */
  opacity: 1;
  transition: opacity 2s ease; /* Sanfter Übergang */
}
#intro img {
  width: 50%; /* Logo-Größe */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  animation: fadeOut 2s 1s forwards; /* Animation */
}
@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* Hauptinhalt, initial unsichtbar */
#main-content {
  opacity: 0;
  transition: opacity 2s ease; /* Sanfter Übergang */
}
.show-content #main-content {
  opacity: 1;
}

.header {
  position: relative;
  width: 100%;
  height: 100vh; /* Standardmäßig nimmt die gesamte Höhe ein */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.header-image {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

/* Titelbild*/

.container1 {
  position: absolute;
  right: 32px;
  top: 28px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.Überschrift {
  font-size: 3em;
  font-family: serif;
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Textlesbarkeit verbessern */
  font-size: calc(3vw + 3vh + 0.5vmin);
  z-index: 1; /* Überlagerung im Vordergrund */
}

/*Logo-menü oben links*/

.menu-link {
  color: rgb(206, 206, 206);
  text-decoration: none;
  font-size: calc(0.9vw + 0.9vh + 1vmin);
  margin-left: 16px;
  transition: transform 0.3s ease, font-size 0.3s ease;
  z-index: 2;
}

/* Hover-Effekt bleibt erhalten */
.menu-link:hover {
  text-decoration: underline;
  color: white;
}

/* Menü ausblenden bei kleiner Bildschirmbreite */
@media screen and (max-width: 650px) {
  .menu-link {
    display: none;
  }
}

/* Startseite auf 2/3 der Bildschirmhöhe begrenzen bei bestimmtem Seitenverhältnis */
@media screen and (max-aspect-ratio: 2/3) {
  .header {
    height: 66.67vh; /* 2/3 der Ansichtshöhe */
  }
  .header-image {
    height: 100%; /* Bild passt sich dem neuen Header-Bereich an */
  }
}

/* Dienstleisungen */

.container2 {
  background-color: rgba(255, 255, 255, 0.886);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  height: 100vh;
  gap: 25px;
  padding: 20px;
}

@media (max-width: 768px) {
  .container2 {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
  }
}

.box,
.box5 {
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 1;
  color: white;
  text-align: center;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease;
}

.box5 {
  height: 40vh;
  background-image: url("/img/background.jpg");
  margin: 0 20px 20px;
}

.box1 { background-image: url("/img/1270E.2.jpg"); }
.box2 { background-image: url("/img/Langholz.jpg"); }
.box3 { background-image: url("/img/Brennholz.jpg"); }
.box4 { background-image: url("/img/1210G.2.jpg"); }

.box1:hover,
.box2:hover,
.box3:hover,
.box4:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.underline {
  position: relative;
  display: inline-block;
}
.underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

.box1:hover .underline::after,
.box2:hover .underline::after,
.box3:hover .underline::after,
.box4:hover .underline::after,
.box5:hover .underline::after {
  width: 100%;
}

.box1.clicked .underline::after,
.box2.clicked .underline::after,
.box3.clicked .underline::after,
.box4.clicked .underline::after {
  width: 0;
  transition: none;
}

.box1.clicked,
.box2.clicked,
.box3.clicked,
.box4.clicked {
  background: rgb(202, 227, 197);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-shadow: none;
  transition: all 0.3s ease;
}

.box1.clicked .title,
.box2.clicked .title,
.box3.clicked .title,
.box4.clicked .title {
  color: black;
  transform: translateY(-10%);
  margin: 10px 0 5px;
  transition: all 0.3s ease;
}

.box1 .hidden-text,
.box2 .hidden-text,
.box3 .hidden-text,
.box4 .hidden-text {
  display: none;
  opacity: 0;
  margin: 20px 15px 15px;
  color: black;
  text-align: center;
  transition: opacity 0.3s ease;
}

.box1.clicked .hidden-text,
.box2.clicked .hidden-text,
.box3.clicked .hidden-text,
.box4.clicked .hidden-text {
  display: block;
  opacity: 1;
  font-size: calc(1vw + 1vh + 0.1vmin);
}

/* Vermarktung */

/* Text */
.box5 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 0.3s ease;
  overflow: hidden; /* Verhindert, dass Inhalte aus der Box herausragen */
}

.box5 .title {
  margin: 0;
  padding: 10px;
  color: white;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* FBG-Bilder */
.new-box {
  background-color: rgb(202, 227, 197);
  padding: 20px;
  margin: -20px 20px 20px 20px; /* Seitenabstand */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.new-box-title {
  text-align: center;
  font-size: 1.5rem;
  font-size: calc(1vw + 1vh + 1vmin);
  color: black;
  margin-bottom: 50px;
  margin-top: 30px;
}

/* Container für Bilder */
.new-box-content {
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap; /* Bilder umbrechen, falls der Platz nicht ausreicht */
}

/* Einzelnes Element in der neuen Box */
.new-box-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  width: 25%; /* Bilder nehmen jeweils etwa die Hälfte der Breite */
  text-align: center;
}

@media (max-width: 768px) {
  .new-box-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Zwei Spalten für Bild 1 und 2 */
    gap: 20px; /* Gleichmäßiger Abstand */
  }

  .new-box-item {
    width: 100%; /* Standardbreite für Flexibilität */
  }

  .new-box-item:nth-child(1),
  .new-box-item:nth-child(2) {
    grid-column: span 1; /* Bild 1 und 2 nehmen jeweils eine Spalte */
  }

  .new-box-item:nth-child(3) {
    grid-column: span 1; /* Bild 3 nimmt die volle Breite unter Bild 1 */
  }
}

/* Bild */
.image {
  width: 100%;
  aspect-ratio: 5 / 3; /*Seitenverhältnis der Bilder */
  background-size: contain;
  background-position: center;
  border-radius: 8px; /* Optionale abgerundete Ecken */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Text unter den Bildern */
.new-box-item p {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
}

/* Logo&menü oben links */
.fixed-image {
  position: fixed;
  top: 15px;
  left: 15px;
  width: 120px; /* 65px */
  height: auto;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent; /* Transparente Umrandung standardmäßig */
  transition: all 0.3s ease;
}

.fixed-image.hovered {
  width: 140px; /*(vorher 130px)*/
  height: auto;
  top: 15px;
  left: 15px;
}

.dropdown-menu {
  display: none;
  position: fixed;
  top: 76px; /* (vorher 115px) Höhe des vergrößerten Bildes plus etwas Abstand */
  left: 17px;
  width: 136px; /* gleiche Breite wie das vergrößerte Bild*/
  background-color: rgba(255, 255, 255, 0.687);
  z-index: 9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 0; /*10px*/
  overflow: hidden; /* Verhindert, dass Inhalte außerhalb des Containers sichtbar sind */
  height: 0;
  transition: height 10s ease, padding 1s ease;
}
.dropdown-menu.visible {
  display: block; /* Sichtbar */
  height: 160px; /* Endhöhe des Menüs */
  padding: 9px; /* Padding wieder hinzufügen */
  font-size: 15px;
}
.dropdown-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dropdown-menu ul li {
  margin: 10px 0;
}
.dropdown-menu ul li a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}
.dropdown-menu ul li a:hover {
  text-decoration: underline;
}

/* WhatsApp-Symbol */
#whatsapp-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 100;
  transition: transform 0.1s ease, opacity 0.1s ease;
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

#whatsapp-icon img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: grayscale(100%);
}

#whatsapp-icon:hover {
  transform: scale(1.2);
}

/* Unsichtbar machen, wenn ausgeblendet */
#whatsapp-icon.hidden {
  opacity: 0;
  transform: scale(0) rotate(0deg);
}

/*Kontakt*/

a[href^="tel:"] {
  color: black;
  text-decoration: none;
  font-weight: bold;
}

a[href^="tel:"]:hover {
  color: black;
  text-decoration: underline;
}

a[href^="mailto:"] {
  color: black;
  text-decoration: none;
  font-weight: bold;
}

a[href^="mailto:"]:hover {
  color: black;
  text-decoration: underline;
}

/* Setze Margin und Padding für alle Elemente zurück */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Stil für den Kontakt-Container */
.kontakt {
  display: flex;
  justify-content: space-between; /* Platz zwischen den Spalten */
  flex-wrap: wrap; /* Falls der Platz nicht reicht, umbrechen */
  background-color: #ccc;
  color: black;
  padding: 20px;
  border: 50px solid #ccc;
  gap: 20px; /* Abstand zwischen den Elementen */
}

/* Stil für die Divs mit Kontaktinformationen */
.kontakt-info {
  flex: 1;
  min-width: 200px; /* Mindestbreite für kleinere Bildschirme */
  margin-left: 70px;
}

@media (max-width: 768px) {
  .kontakt-info {
    margin-left: 10px;
  }
}

.kontakttext {
  text-align: center;
  color: black;
  background-color: #ccc;
}

/* Karte soll unterhalb der kontakt-info Divs sein */
/* Wrapper für Karte mit Hintergrundfarbe */
.map-wrapper {
  background-color: #ccc;
  display: flex; /* Zentriert die Karte horizontal */
  justify-content: center;
  padding: 20px 0;
}

/* Karte */
.map-container {
  width: 80%;
  height: 400px;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

/*Titelanimation*/

/* Stil für die Formular-Elemente */
form {
  display: flex;
  flex-direction: column;
}
form label {
  margin-bottom: 5px;
}
form input,
form textarea {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
button {
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
button:hover {
  background-color: #45a049;
}

/* Pfeil-Schaltflächen */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
}
.left-arrow {
  left: 10px;
}
.right-arrow {
  right: 10px;
}

/*Mission*/

/* Container für den "Über uns"-Abschnitt */
.about-container {
  text-align: center;
  margin: 20px auto;
  max-width: 800px;
  margin-bottom: 50px;
}

/* Titel-Stil */
.about-title {
  font-size: 24px;
  margin-bottom: 10px;
  margin-top: 40px;
}

/* Horizontale Linie unter dem Titel */
.about-line {
  width: 50%;
  margin: 0 auto;
  border: 1px solid black;
  margin-bottom: 30px;
}

/* Horizontale Linie unter dem Text */
.about-line-line {
  width: 50%;
  margin: 0 auto;
  border: 1px solid black;
  margin-bottom: 30px;
  margin-top: 120px;
}

/* Text-Stil */
.about-text {
  text-align: justify;
  font-size: 16px;
  line-height: 2; /*1.5*/
  position: relative;
  padding: 10px; /* Mindestabstand des Textes zum Rand */
}

/* Bild-Stil */
.about-image {
  width: 180px;
  height: auto;
  margin: 10px;
  display: block;
  transform: rotate(180deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: 0.3s ease;
}

/* Bild-Zoom-Effekt bei Mouseover */
.about-image:hover {
  transform: rotate(180deg) scale(1.01);

}

/* Positionierung der Bilder im Text */
.top-right {
  float: right;
  margin: 15px 0 10px 10px;
}

.middle-left {
  float: left;
  margin: 15px 10px 10px 0;
}

.bottom-right {
  float: right;
  margin: 10px 0 0 10px;
}


.footer {
  background-color: black;
  color: gray;
  display: block;
  justify-content: space-between;
  padding: 0.5em;
  white-space: pre;
  font-family: sans-serif;
  padding-left: 123px; /* exakt wie der Text darüber */
}

@media (max-width: 768px) {
  .footer {
    padding: 0.5em;
    padding-left: 64px;
  }
}

.footer a {
  color: gray;
  text-decoration: none;
}
.footer a:visited {
  color: gray;
}
.footer a:hover {
  color: lightgray;
  text-decoration: underline;
  
}
.footer a:active {
  color: gray;
}

