@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
  font-weight: 600;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #2952a3;
  color: #fff;
}

/* Fade für Content */
#content{
opacity:1;
transition:opacity .35s ease;
}

#content.fade{
opacity:0;
}

a {
  color: #f39c12;
  text-decoration: none;
}

a:hover {
  color: #ffd166;
  text-decoration: underline;
}

.hero {
  position: relative;
  overflow: visible; 
  background: url("../images/background.png") center / cover no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: 160px;
}

/* Überschrift */
.hero h1 {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Navigation direkt unter der Überschrift */
.hero-nav {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  white-space: nowrap;
}

.hero-nav a {
  background: rgba(255,255,255,0.9);
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.hero-nav a:hover {
  background: #f39c12;
  color: white;
  transform: translateY(-2px);
}

.slider {
  position: absolute;
  top: 145px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 900px);
  min-height: 150px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("../images/slider.png") center / cover no-repeat;
  border-radius: 30px;
}

/* Slider Quotes */
#quote {
  max-width: 80%;
  font-size: 1.15rem;
  opacity: 1;
  transition: opacity 1s ease;
}

#quote.fade {
  opacity: 0;
}

.hero-text {
  position: absolute;
  top: 320px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 900px);
  padding: 18px 26px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(3px);
  border-radius: 20px;
  color: #fff;
  text-align: center;
  line-height: 1.6;
}

/* Aufzählung */
.hero-list {
  list-style: disc;
  list-style-position: outside;
  padding-left: 1.4em;
  margin: 16px auto;
  display: inline-block;
  text-align: left;
}

.hero-list li {
  margin: 6px 0;
}

.hero-list li::marker {
  color: #f39c12;
}

.about {
  display: flex;
  align-items: center;
  gap: 30px;
}

.about-image {
  width: 260px;
  border-radius: 20px;
}

.about-text {
  max-width: 600px;
}

/* Optimierung für Mobilgeräte */
@media (max-width: 700px) {

  .hero-h1 {
    top: 10px;
    width: 95%;
  }

  .slider {
    top: 270px;
    width: 95%;
  }

  .hero-text {
    width: 95%;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px;
    top: 430px;
  }
  
  .hero {
    background-attachment: scroll;
  }
  
  .hero-nav {
    flex-wrap: wrap;
    justify-content: center;
    width: 95%;
    top: 110px;
  }

  .about {
    flex-direction: column;   /* Bild über Text */
    align-items: center;
    width: 100%;
    padding: 0 10px;
  }

  .about-image {
    width: 90%;               /* Bild nutzt fast ganze Breite */
    max-width: 400px;
  }

  .about-text {
    width: 100%;              /* Text nutzt komplette Breite */
  }