body {
    background-color: #0a0a0af1; /* tiefes Schwarz */
    background-image: repeating-linear-gradient(
        45deg,              /* diagonale Richtung: oben links → unten rechts */
        rgba(255, 255, 255, 0.03), /* heller Streifen mit sehr geringer Deckkraft */
        rgba(255, 255, 255, 0.03) 0.5px,
        transparent 1px,
        transparent 20px
    );
    background-size: cover;
    background-attachment: fixed;
    color: #fff; /* für gute Lesbarkeit */
    z-index: 1;

    display: flex;
    flex-direction: column;
}

html {
  scroll-behavior: smooth;
}

.main-content {
  /*margin-top: 5%;*/
  position: relative;
  z-index: 1;
  margin-left: 15%;
  margin-right: 15%;
  flex: 1;
  margin-bottom: 5vh;
}

.custom-navbar {
    background-color: rgb(50, 50, 50); /* Schwarz mit Transparenz */
    backdrop-filter: blur(8px); /* Optional: leichter Blur-Effekt */
    /*border-bottom: 1px solid rgba(255, 165, 0, 0.2); /* dezente Linie */
    /*border-bottom: 1px solid rgba(255, 165, 0, 0.3); /* orange Linie */
}

.navbar-nav .nav-link {
    color: #fff;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: orange;
}

.navbar-brand {
    color: orange;
    font-weight: bold;
    font-size: 2rem; /* oder z. B. 24px */
}

.nav-item .nav-link {
    transition: all 0.3s ease;
    padding-left: 16px;
    position: relative;
}

.nav-item .nav-link:hover {
    color: orange;
    border-bottom: 3px solid orange;
}

.nav-link.active {
  color: orange;
  border-bottom: 3px solid orange;
  font-weight: bold;
}

.hero-container {
  display: flex;
  justify-content: flex-end; /* Bild nach rechts */
  align-items: center;
  /*height: 90vh; /* Höhe 90%  */
  /*padding-right: 5vw; /* Abstand vom Rand */
}

.hero img {
  width: 33vw; /* ca. 1/3 der Breite */
  max-width: auto; /* optional: Begrenzung */
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 166, 0, 0.075)); /* optionaler Glow */
  z-index: 18;
}

.hero-text {
  position: absolute;
  top: 33vh;
  margin-left: 10%;
  /*left: 10%;*/
  /*transform: translateY(-50%);*/
  color: white;
  text-align: left;
  /*margin-left: 5%;*/
  z-index: 19;
}

.hero-text h1 {
  font-size: 4rem;
  margin: 0;
  z-index: 19;
}

.hero-text h2 {
  font-size: 1.8rem;
  font-weight: 300;
  margin-top: 10px;
  color: orange;
  z-index: 19;
}



.cursor {
  display: inline-block;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /*background-color: rgba(255, 255, 255, 0.027);*/
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 0.1px solid orange;
}

.icon-wrapper:hover {
  transform: scale(1.1);
  background-color: orange;
  box-shadow: 0 0 8px rgba(255, 165, 0, 0.5); /* orange Glow */
}

.site-footer {
  background-color: #292929ce;
  color: #eee;
  padding: 20px 40px;
  font-size: 14px;
  text-align: center;
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /*gap: 15px;*/
}

.footer-top {
  text-align: center;
}

.footer-bottom {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-top a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: orange;
}



footer hr {
  color: orange;
  margin-bottom: 1rem;
}

.privacy-policy {
  margin: 0 auto;
  padding: 40px 20px;
  font-size: 16px;
  line-height: 1.6;
}

.privacy-policy h4 {
  margin-top: 2%;
}

section {
  left: 10%;
  padding-top: 10%;
  min-height: 100vh;
}

.next-section {
  margin-top: 4rem;
}

.section-divider {
  color: orange;
}

.contact-section {
  min-height: 120vh;
}

textarea {
  height: 15vh;
  resize: none;
}

#contact hr {
  color: orange;
}

#qualities hr {
  color: orange;
  width: 50%;         /* halb so lang wie der Container */
  margin: 2rem auto;  /* zentriert horizontal */
  border: none;       /* optional: keine Standardlinie */
  border-top: 2px solid orange; /* eigene Linie */
}

.about {
  flex: 1 1 45%;
  min-width: 280px
}

.about h3{
  color: orange;
}

.quality {
  flex: 1 1 45%;
  min-width: 280px
}

.quality-row {
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transform: translateX(0);
  transition: all 1s ease-out;
}

.quality-row.left {
  flex-direction: row;
  margin-left: 0;
  margin-right: auto;
}

.quality-row.right {
  flex-direction: row-reverse;
  margin-left: auto;
  margin-right: 0;
}


.quality img {
  width: 20vh;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.quality h3 {
  color: orange;
}

.fly-in-left {
  transform: translateX(-100px);
}

.fly-in-right {
  transform: translateX(100px);
}

.fly-in-visible {
  opacity: 1;
  transform: translateX(0);
}

.imprint {
  margin-top: 15vh;
}

#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.toast-message {
  background-color: #333;
  color: #fff;
  padding: 12px 20px;
  margin-top: 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInOut 5s ease forwards;

  max-width: 350px;     /* maximale Breite */
  width: fit-content;
  white-space: normal;
}

.toast-message.success { background-color: #28a745; }
.toast-message.error { background-color: #dc3545; }
.toast-message.info { background-color: #17a2b8; }
.toast-message.warning { background-color: #ffc107; color: #333; }

.login-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  color: orange;
}


@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(20px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(20px); }
}



@media (max-width: 768px) {
  .hero-container {
    display: grid;
    grid-template-rows: auto auto;
  }

  .hero-container .hero-text {
    position: static;           /* absolut -> statisch */
    transform: none;            /* keine Verschiebung */
    background: transparent;    /* halbtransparenter Hintergrund entfernen */
    color: #333;                /* dunklere Schrift für helleren Untergrund */
    margin: 1rem;               /* Abstand rundum */
    text-align: center;         /* zentrierter Text */
    top: 66vh;
  }

  .hero.hero-container img {
    grid-row: 1;
  }

  .hero-container .hero-text {
    grid-row: 2;
  }

  .main-content {
    width: 100%;
    margin-top: 5%;
    position: relative;
    z-index: 1;
    margin-left: 1%;
    margin-right: 1%;
  }

  .quality-row.left,
  .quality-row.right {
    flex-direction: column !important;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }

  .quality-row {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .quality {
    width: 90%;
    margin: 0 auto; /* zentriert das Element horizontal */
    text-align: center; /* zentriert ggf. Text im Inneren */

  }

  .quality img {
    display: block;
    margin: 0 auto; /* zentriert das Bild */
    max-width: 100%; /* responsive Skalierung */
    height: auto;
  }

}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

#saveStatusBtn {
  z-index: 9999 !important;
  pointer-events: auto !important;
  position: relative !important;
}

.scroll-btn {
  position: fixed;
  right: 20px;
  font-size: 2rem;
  background-color: orange;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex; /* Anfangszustand: versteckt */
  justify-content: center;
  align-items: center;
  z-index: 999;
}


.scroll-btn:hover {
  transform: scale(1.2);
  background-color: black;
  color: white;
}

.scroll-down {
  bottom: 20px;
}

.scroll-up {
  bottom: 20px;
}