section {
  padding: 2rem 0;
}
/* Hero Styles Start */

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.home-hero-one {
  width: 100%;
}

.home-hero-one img {
  width: 100%;
}

.home-hero-two {
  width: 100%;
}

.home-hero-two h1 {
  margin-bottom: 1rem;
  color: var(--secondary);
}

.home-hero-two p {
  margin-bottom: 2rem;
}

.home-hero-two small {
  margin-bottom: 2rem;
}

.home-hero-buttons {
  display: flex;
  flex-direction: column;
}

.home-hero-buttons a {
  margin-bottom: 1rem;
}

/* Tablets */
@media screen and (min-width: 768px) {
  .home-hero-two small {
    margin-bottom: 4rem;
  }

  .home-hero-buttons a {
    margin-bottom: 2rem;
  }
}

/* Laptops / kleine Desktops */
@media screen and (min-width: 1024px) {
  .home-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
  }
}

/* Hero Styles End */

/* Quote Styles Start */
.home-banner {
  width: 100%;
  background-color: var(--highlight);
  text-align: center;
  padding: 6rem 2rem;
  color: var(--text);
}

.home-banner .quote {
  margin-bottom: 1rem;
  font-weight: 500;
}

.home-banner small {
  font-style: italic;
  font-weight: 300;
}

/* Tablets */
@media screen and (min-width: 768px) {
  .home-banner {
    padding: 10rem 2rem;
  }
}
/* Quote Styles End */

/* About Styles Start */
.home-about {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.home-about-text h2 {
  margin-bottom: 2rem;
  color: var(--text-brighter);
}

.home-about-text p {
  margin-bottom: 1.5rem;
}

.home-about-text p:last-of-type {
  margin-bottom: 0;
}

.home-about-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 1rem;
  box-shadow: 0px 2px 4px 0px rgba(46, 46, 46, 0.4);
  -webkit-box-shadow: 0px 2px 4px 0px rgba(46, 46, 46, 0.4);
  -moz-box-shadow: 0px 2px 4px 0px rgba(46, 46, 46, 0.4);
}

.home-about-img img {
  border-radius: 1rem;
  width: 100%;
  height: 100%;
}

/* Laptops / kleine Desktops */
@media screen and (min-width: 1024px) {
  .home-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 8rem;
  }
}

/* Große Desktops */
@media screen and (min-width: 1440px) {
}
/* About Styles End */

/* Courses Styles Start */
.home-courses {
  color: #fff;
}

.home-courses-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.home-courses h2 {
  margin-bottom: 4rem;
}

.home-courses-card {
  background-color: var(--secondary);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  box-shadow: 0px 2px 4px 0px rgba(214, 161, 132, 0.6);
  -webkit-box-shadow: 0px 2px 4px 0px rgba(214, 161, 132, 0.6);
  -moz-box-shadow: 0px 2px 4px 0px rgba(214, 161, 132, 0.6);
}

.home-courses-card h3 {
  font-size: 2rem;
}

.home-courses-card p {
  margin-bottom: 2rem;
  text-align: justify;
}

.home-courses-card a {
  margin-bottom: 2rem;
}

.home-courses-card a:first-of-type {
  color: var(--highlight);
}

.home-courses-card a:last-of-type {
  margin-bottom: 0rem;
  width: 100%;
}

/* Große Smartphones / kleine Tablets */
@media screen and (min-width: 480px) {
  .home-courses-card {
    padding: 4rem 6rem;
  }
}

/* Tablets */
@media screen and (min-width: 768px) {
  .home-courses-card {
    padding: 4rem 10rem;
  }

  .home-courses-card p {
    margin-bottom: 4rem;
  }
}

/* Laptops / kleine Desktops */
@media screen and (min-width: 1024px) {
  .home-courses-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
  }

  .home-courses-card {
    padding: 4rem 6rem;
  }
}

/* Große Desktops */
@media screen and (min-width: 1440px) {
}

/* Courses Styles End */

/* Description and Contact Start */
.contact-description-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.accordion-container {
  max-width: 400px;
  margin: 0 auto;
}

.accordion {
  width: 100%;
  margin-bottom: 2rem;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 0px 0px 4px 0px rgba(51, 51, 51, 0.5) inset;
  -webkit-box-shadow: 0px 0px 4px 0px rgba(51, 51, 51, 0.5) inset;
  -moz-box-shadow: 0px 0px 4px 0px rgba(51, 51, 51, 0.5) inset;
}

.accordion-body {
  /* Die Schattierung und Form behalten */
  border-radius: 0.5rem;
  box-shadow: 0px 0px 4px 0px rgba(51, 51, 51, 0.5) inset;
  -webkit-box-shadow: 0px 0px 4px 0px rgba(51, 51, 51, 0.5) inset;
  -moz-box-shadow: 0px 0px 4px 0px rgba(51, 51, 51, 0.5) inset;

  /* Animation: Starte mit verstecktem Inhalt */
  max-height: 0;
  opacity: 0;
  overflow: hidden; /* Verhindert, dass der Inhalt sichtbar ist, wenn max-height 0 ist */
  padding: 0 2rem; /* Starte mit 0 Padding oben/unten, da der Inhalt verborgen ist */

  /* Geschmeidiger Übergang für max-height und Opacity */
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out,
    padding 0.4s ease-out;
}

.accordion-body p {
  margin-bottom: 1.5rem;
}
.accordion-body p:last-of-type {
  margin-bottom: 0;
}

.accordion-body.open {
  /* Setze max-height auf einen Wert, der GRÖSSER als der tatsächliche Inhalt ist */
  /* 500px ist ein sicherer Wert, du kannst ihn bei Bedarf erhöhen */
  max-height: 500px;
  opacity: 1;
  /* Jetzt das Padding hinzufügen, damit der Inhalt Luft hat */
  padding: 1rem 2rem;
}

/* Contact Start */

.contact h2,
.description h2 {
  margin-bottom: 2rem;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.contact form input,
.contact form textarea {
  padding: 1rem;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  box-shadow: 0px 0px 4px 0px rgba(51, 51, 51, 0.5) inset;
  -webkit-box-shadow: 0px 0px 4px 0px rgba(51, 51, 51, 0.5) inset;
  -moz-box-shadow: 0px 0px 4px 0px rgba(51, 51, 51, 0.5) inset;
  color: var(--text);
  resize: none;
  outline: none;
}

.contact form input:focus,
.contact form textarea:focus {
  border-color: var(--highlight);
  box-shadow: 0px 0px 4px 0px rgba(214, 161, 132, 0.6) inset;
  -webkit-box-shadow: 0px 0px 4px 0px rgba(214, 161, 132, 0.6) inset;
  -moz-box-shadow: 0px 0px 4px 0px rgba(214, 161, 132, 0.6) inset;
}

.contact form label {
  display: block;
  margin-bottom: 1rem;
}

.success-message {
  text-align: center;
}

/* Contact End */
/* Laptops / kleine Desktops */
@media screen and (min-width: 1024px) {
  .contact-description-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
  }

  .accordion-container {
    max-width: 100%;
  }

  .contact form {
    max-width: 100%;
  }
}
/* Description and Contact End */
