html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #1e2a38, #4a6fa5);
  background-repeat: no-repeat;          /* Verhindert Wiederholung */
  background-attachment: fixed;          /* Fixiert den Hintergrund beim Scrollen */
  background-size: cover;
  min-height: 100vh;  
   display: flex;
  flex-direction: column;
}

h1 {
    color: #fff;
}

.logo {
    max-height: 300px;
}

.feature-box {
    position: relative;
    background-image: url('../img/Stairs3.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    text-align: center;
    min-height: 400px;
    color: white;
    overflow: hidden;
}

.feature-box .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(30, 42, 56, 0.7);
    border-radius: 15px;
    padding: 2rem;
    z-index: 1;
}

.feature-box .overlay > * {
    position: relative;
    z-index: 2;
}

.feature-list {
    display: inline-block;
    text-align: left;
}

.feature-list i {
    color: #4a6fa5;
    margin-right: 10px;
    width: 25px;
    text-align: center;
    justify-content: center;
}

.feature-list li {
    transition: all 0.3s ease-in-out;
    padding: 8px 0;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.feature-list li:hover {
    transform: scale(1.5);
    color: #1e2a38;
    background-color: rgba(175, 175, 175, 0.2);
    border-radius: 8px;
}

.card {
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.feature-list li:nth-child(1) { animation-delay: 1s; }
.feature-list li:nth-child(2) { animation-delay: 3s; }
.feature-list li:nth-child(3) { animation-delay: 5s; }
.feature-list li:nth-child(4) { animation-delay: 7s; }
.feature-list li:nth-child(5) { animation-delay: 9s; }

.btn {
    color: #fff;
    background: linear-gradient(135deg, #1e2a38, #4a6fa5);
    box-shadow: 0 10px 15px rgba(0,0,0,0.9);
}

.btn:hover {
    box-shadow: 0 10px 15px rgba(0,0,0,0.3);
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.feature-list li:hover i {
    animation: pulse 0.5s ease-in-out;
}

/* Parallax Section */
.parallax-section {
    background-image: url('https://images.unsplash.com/photo-1605296867304-46d5465a13f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1400&q=80');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 500px;
    position: relative;
    margin-top: auto;
    border-radius: 0 0 15px 15px;
}

.parallax-section .overlay {
    background-color: rgba(30, 42, 56, 0.7);
    height: 100%;
    padding: 2rem;
    border-radius: 0 0 15px 15px;
}

/* FitGraf Über-mich-Section */
#about-me {
    max-width: 900px;
margin: 3rem auto 0 auto;
    /*color: #ffffff;*/
    padding: 2rem 1rem;
    /*background: rgba(30, 42, 56, 0.8);*/ /* dunkles, leicht transparentes „Edelstahl“-Overlay */
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#about-me h2,
#about-me h3 {
   /* color: #ffffff;*/ /* heller, edelstahliger Ton */
    margin-bottom: 1rem;
    font-weight: 700;
}

#about-me p {
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

#about-me ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

#about-me ul li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    cursor: default;
}

#about-me ul li:hover {
    color: #a6a8ab; /* etwas helleres Silber beim Hover */
}

#training-location {
  max-width: 900px;
  margin: 3rem auto 0 auto;
 /* color: #ffffff;
  
  background: rgba(30, 42, 56, 0.8);  dunkles, leicht transparentes „Edelstahl“-Overlay */
  padding: 2rem 1rem;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#training-location h2 {
  /*color: #ffffff;*/
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}

#training-location p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.legal {
  text-align: center;
  border: 1px solid #a6a8ab;
  border-radius: 5px;
  min-height: fit-content;
  max-width: 600px;
  margin: 3rem auto 5rem auto;       /* zentriert horizontal + Abstand nach oben/unten */
  padding: 2rem;           /* Abstand zum Inhalt */
  background-color: #a6a8ab;  /* optional: Lesbarkeit bei Hintergrundbild */
  box-shadow: 0 0 20px rgba(0,0,0,0.3); /* optional: sanfte Schatten */
}


@media (max-width: 768px) {
  .logo {
    max-height: 150px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .lead {
    font-size: 1rem;
  }

.feature-box {
    padding: 0;
    min-height: auto;
    max-width: 90%;
  }

  .feature-box .overlay {
    position: static;
    height: 100%;
    min-height: 100%;
    width: 100%;
    padding:1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .feature-box .overlay > * {
    position: static;
  }


  .feature-list {
    font-size: 1rem;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.5rem;
  }

 .carousel-item video {
    aspect-ratio: auto;
    min-height: 300px;
    height: auto;             /* erlaubt dynamische Höhe */
    object-fit: cover;
  }

   .parallax-section {
    background-attachment: scroll; /* verhindert Fehler auf mobilen Browsern */
    background-size: cover;
    background-position: center;
    padding: 0;       /* gibt Platz für Text */
    min-height: 300px;
    height: auto;             /* erlaubt dynamische Höhe */
  }

  .parallax-section .overlay {
    height: auto;             /* damit Overlay nicht kleiner als Inhalt ist */
    padding: 1.5rem;          /* etwas kompakter für Mobil */
    border-radius: 0;         /* optional, wenn es auf Mobil einfacher aussehen soll */
    background-color: rgba(30, 42, 56, 0.4);
  }

 #about-me {
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
  }

  #about-me h1,
  #about-me h2,
  #about-me h3 {
    font-size: 1.3rem;
    text-align: center;
  }

  #about-me p {
    font-size: 1rem;
  }

  #about-me ul li {
    font-size: 0.95rem;
  }

   #training-location {
    padding: 1.5rem 1rem;
  }

  #training-location h2 {
    font-size: 1.5rem;
  }

  #training-location p {
    font-size: 1rem;
  }

  footer {
    font-size: 0.85rem;
    padding: 1rem;
  }
}