html,
body {
  overflow-x: hidden; 
  width: 100%;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  position: fixed;
  width: 100%;
  max-width: 100%;
  background-color: var(--primary-color);
  color: white;
  z-index: 1000;
  box-sizing: border-box;
}

/* Hero-Bereich */
.hero {
  position: relative;
  background: url("../img/Homepage1.jpg") no-repeat center center/cover;
  height: 400px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 30px;
  padding-top: 100px;
  color: white;
  margin-bottom: 20px;
}

/* Dunkles Overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); 
}

.hero-text h2 {
  position: relative;
  font-size: 42px;
  font-weight: bold;
  text-align: left;
  line-height: 1.5;
  letter-spacing: 2px;
}

/* Kurs-Sektion */
.courses {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  gap: 60px; 
  width: 100%;
  max-width: 70vw; 
  margin: auto; 
  padding-left: 5%; 
  padding-right: 5%; 
  box-sizing: border-box;
}

.course-card {
  position: relative;
  background: var(--rosa-cards);
  padding: 20px 50px;
  border-radius: 15px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  width: 100%; 
  max-width: 70vw; 
  text-align: left; 
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 20px;
  pointer-events: auto;
  color: black;
  text-decoration: none;
}

.card-icon {
  position: absolute;
  left: -30px; 
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Pfeil rechts oben */
.card-arrow {
  position: absolute;
  top: 35px;
  transform: translateY(-50%) scaleX(1.4); 
  right: 30px;
  font-size: 24px;
  color: black; 
  cursor: pointer;
  transition: transform 0.2s ease-in-out, font-weight 0.2s ease-in-out;
  z-index: 10; 
  pointer-events: auto; 
}

.card-arrow:hover {
  transform: translateX(8px) scale(1.3); 
  font-size: 30px; 
  font-weight: 900; 
  color: var(--primary-color); 
}

/* Textbereich */
.card-content {
  flex: 1;
}
.card-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Info-Sektion */
.info {
  margin-top: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--lightest-grey-background);
  padding: 40px;
  gap: 50px;
  position: relative;
}

.info-text {
  flex: 1;
  max-width: 55vw;
  padding-left: 60px;
  font-size: 16px;
  margin-right: 40px;
  font-weight: 500;
}

.info-text h2 {
  font-size: 18px;
}

.info img {
  width: 230px;
  border-radius: 80px 80px 0 0;
  object-fit: cover;
  display: block;
  margin-top: -150px;
}

.highlight-section {
  background-color: var(--pink); 
  color: var(--primary-color);
  text-align: left;
  padding: 20px 30%;
  margin-top: 80px;
  margin-bottom: 80px;
}

.highlight-text {
  max-width: 800px;
  margin: auto;
  font-size: 16px;
  line-height: 1.6;
}

.highlight-text p {
  margin-bottom: 15px;
}

.highlight-text strong {
  font-size: 16px;
  font-weight: bold;
}

@media (hover: hover) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

.menu-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .courses{
    gap: 40px;
  }
  .course-card {
    max-width: 90%; 
    padding: 20px 40px; 
  }

  .hero-text h2 {
    font-size: 26px; 
  }

  .info img {
    width: 200px; 
    position: relative; 
  }

  .highlight-section {
    padding: 40px 15%;
  }
}

@media (max-width: 950px){
  .info img {
    width: 200px; 
    position: relative; 
    margin-top: 0;
  }

  .info {
    margin-top: 50px;
  }

  .highlight-section {
    padding: 40px 15%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--primary-color);
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    padding: 0;
    gap: 15px;
    align-items: center;
  }

  .nav-links.show {
    display: flex;
    background-color: var(--primary-color);
  }

  .nav-links li {
    width: 100%;
    text-align: center; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
    padding: 12px 0;
    position: relative;
    display: flex;
    justify-content: center;
    box-sizing: border-box; 
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .dropdown .dropdown-content li {
    border-bottom: none;
    padding: 10px 0; 
  width: 100%;
  display: flex;
  justify-content: center;
  }

  .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: block;
    width: auto;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }

  .dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dropdown-content {
    display: none;
    flex-direction: column;
    background-color: transparent;
    position: relative; 
    box-shadow: none;
    margin: 0;
    padding: 0;
    width: 100%;
    gap: 10px;
    align-items: center;
    border: none;
    padding-top: 20px;
  }

  .dropdown-content li {
    border-bottom: none;
    padding: 12px 0; 
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box; 
  }
   
  .dropdown.open .dropdown-content {
    display: flex;
  }

  .dropdown-content a {
    padding: 0; 
    text-align: center; 
    width: 100%;
    font-weight: lighter;
  }

  .courses {
    width: 90%;
    max-width: none;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
  }

  .course-card {
    width: 100%;
    max-width: 100%; 
    padding: 20px; 
  }

  .card-content p {
    font-size: 13px;
  }

  .card-content h3 {
    font-size: 15px;
  }

  /* Icon wird oben rechts in die Karte verschoben */
  .card-icon {
    position: absolute;
    right: 15px;
    top: 15px;
    left: auto;
    transform: none;
    width: 40px;
    height: 40px;
  }

  .card-icon img {
    width: 35px;
    height: 35px;
  }

  .card-arrow {
    display: none;
  }

  .hero {
    height: 250px; 
    padding-top: 80px;
    padding-left: 20px;
  }

  .hero-text h2 {
    font-size: 22px; 
    line-height: 1.3; 
    font-weight: normal;
  }

  .nav-container img {
    width: 60px; 
  }

  .info {
    flex-direction: column;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    padding-top: 50px;
    
  }
  .info img {
    width: 180px;
    position: relative;
    margin-top: 0;
    padding-top: 0px;
  }

  .info-text {
    padding-left: 20px;
    max-width: 90%;
    margin-right: 20px;
    font-size: 13px;
  }

  .info-text h2 {
    font-size: 15px;
  }

  .highlight-section {
    padding: 10px 10%;
  }

  .highlight-text {
      font-size: 13px;
  }

  .highlight-text strong {
      font-size: 13px;
  }
}

@media (max-width:680px) {
  .hero{
    height:300px
  }
}

@media (max-width: 480px) {

  .nav-links {
    top: 45px;
  }
  .hero {
     
    padding-top: 70px; 
    padding-left: 20px;
  }

  .hero-text h2 {
    font-size: 18px;
    text-align: left; 
  }

  .nav-container img {
    width: 50px; 
  }

  .info {
    padding: 20px;
  }
  .info-text {
    padding-left: 20px;
    max-width: 100%;
    
  }

  .info img {
    width: 120px; 
    position: relative;
    top: 0;
    margin-top: 20px;
  }



  .card-icon img {
    width: 30px;
    height: 30px;
  }
}
