.fuehrerscheinklassen {
  margin-top: 150px;
}

/* Basis-Layout Desktop */
.license-container {
  display: flex;
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
}

.card-style {
  background: #2e2e42;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  padding: 2rem;
}

/* Buttons links */
.license-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


.license-btn {
  padding: 0.8rem 1rem;
  border: none;
  background: #3a3a5e;
  color: #fff;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
}

.license-btn:hover {
  background: #0d6efd;
  transform: translateX(3px);
}

.license-btn.active {
  background: #0d6efd;
  color: #000;
  font-weight: bold;
}

/* Content rechts */
.license-details {
  flex: 2;
  color: #f0f0f0;
  min-height: 300px;
   
  max-width: 100%;
}

.license-details h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.license-details p {
  line-height: 1.6;
  margin-bottom: 0;
  text-align: start;
}

/* Sub-Buttons & Dropdowns */
.sub-dropdown {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 0.25rem 0;
  padding-left: 10px;
  border-left: 2px solid #0d6efd;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.sub-dropdown.show {
  max-height: 500px;
  opacity: 1;
}

.sub-btn {
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  background: #444;
  color: #eee;
  border: none;
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sub-btn:hover {
  background: #0d6efd;
  transform: translateX(3px);
}

.sub-btn.active {
  background: #0d6efd;
  color: #000;
  font-weight: bold;
}

.fixed-image {
    position: fixed;
    /* bleibt auch beim Scrollen unten links */
    bottom: 5%;
    left: 1.5%;
    z-index: 9999;
    /* liegt über allen anderen Elementen */
}

.fixed-image img {
    width: 60px;
    /* Icon-Größe */
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.fixed-image img:hover {
    transform: scale(1.1);
    /* Hover-Effekt */
}

/* Detail-Boxen */
.detail {
  display: none;
}

.detail.active {
  display: block;
}

.sub-detail {
  display: none;
}

.sub-detail.active {
  display: block;
}


@media (max-width: 890px) and (min-width: 770px) {
  .license-container {
    flex-direction: column; 
  }


  .license-btn {
    flex: 1 1 45%; 
    text-align: center;
  }

  .sub-dropdown {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* --------------------------- */
/* Responsive Media Queries    */
/* --------------------------- */

/* Tablet: ≤ 991px */
@media (max-width: 991px) {
  .license-container {
    flex-direction: column;
  }

  

  .license-btn {
    flex: 1 1 45%;
    text-align: center;
  }

  .sub-dropdown {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    padding-left: 0;
    gap: 0.5rem;
  }

  .sub-btn {
    flex: 1 1 30%;
    text-align: center;
  }

  .license-details {
    margin-top: 1.5rem;
    min-height: auto;
  }
}

/* Mobile: ≤ 767px */
@media (max-width: 767px) {
  .license-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .license-btn,
  .sub-btn {
    width: 100%;
    text-align: center;
  }

  .sub-dropdown {
    flex-direction: column;
  }

  .license-details {
    margin-top: 1rem;
    padding: 1rem;
  }
}


