/**************************/
/* HEADER                 */
/**************************/

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* Because we want header to be sticky later */
  height: 9.6rem;
  padding: 0 4.8rem;
  position: relative;
}

.logo {
  height: 8rem;
}

/**************************/
/* NAVIGATION            */
/**************************/

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4.8rem;
}

.main-nav-link:link,
.main-nav-link:visited {
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1.8rem;
  transition: all 0.3s;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: rgba(0, 49, 204, 0.97);
}

.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
  padding: 1.2rem 2.4rem;
  border-radius: 9px;
  color: #fff;
  background-color: #e67e22;
}

.main-nav-link.nav-cta:hover,
.main-nav-link.nav-cta:active {
  background-color: #cf711f;
}

/* MOBILE */
.btn-mobile-nav {
  border: none;
  background: none;
  cursor: pointer;

  display: none;
}

.icon-mobile-nav {
  height: 4.8rem;
  width: 4.8rem;
  color: #333;
}

.icon-mobile-nav[name="close-outline"] {
  display: none;
}

/* STICKY NAVIGATION */
.sticky .header {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 8rem;
  padding-top: 0;
  padding-bottom: 0;
  background-color: rgba(255, 255, 255, 0.97);
  z-index: 999;
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.03);
}

.sticky .section-hero {
  margin-top: 9.6rem;
}

/**************************/
/* HERO SECTION           */
/**************************/

.section-hero {
  /* padding: 4.8rem 0 9.6rem 0; */
}

.hero {
  max-width: 130rem;
  margin: 0 auto;
  padding: 0 3.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9.6rem;
  align-items: center;
}

.hero-description {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 4.8rem;
}

.hero-img {
  width: 100%;
}

/*********************/
.background-image {
  position: relative;
  width: 100%;
  height: 100vh; /* This sets the height to full viewport height, adjust as needed */
  background: url("../img/hero.jpg") no-repeat center center/cover;
  opacity: 0.5; /* This makes the background image 50% transparent */
}

/* Add an extra layer for content to counteract the opacity setting on the parent */
.background-image::after {
  content: "";
  background: rgba(
    255,
    255,
    255,
    0.5
  ); /* Adjust the background rgba as needed for different effects */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-heading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(0, 49, 204, 0.97);
  z-index: 2;
  font-size: 6.2rem;
  line-height: 1.2;
  margin-bottom: 3.2rem;
  text-align: center;
  white-space: nowrap;
}

.hero-subheading {
  font-family: "Great Vibes", cursive;
  font-size: 8.4rem;
  padding-top: 1.2rem;
  font-weight: bolder;
  white-space: nowrap;
}

/**************************/
/* ANGEBOTE SECTION           */
/**************************/

.section-angebote {
  background-color: #e6eafa;
  padding: 9.6rem 0;
}

.angebot {
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);
  border-radius: 11px;
  overflow: hidden;
  transition: all 0.4s;
}

.angebot:hover {
  transform: translateY(-1.2rem);
  box-shadow: 0 3.2rem 6.4rem rgba(0, 0, 0, 0.06);
}

.angebot-content {
  padding: 1.6rem 3.2rem 3.2rem 3.2rem;
}

.angebot-title {
  font-size: 3.2rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 3.2rem;
  text-align: center;
}

.angebot-attributes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3.2rem;
}

.angebot-attribute {
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  color: rgba(0, 49, 204, 0.97);
}

.angebot-dauer {
  font-size: 1.6rem;
  text-align: center;
}

.angebot-img {
  width: 100%;
}

/**************************/
/* KURSE SECTION           */
/**************************/

.section-kurse {
  padding: 9.6rem 0;
}

.kurs {
  display: flex;
  flex-direction: column;
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);
  border-radius: 11px;
  overflow: hidden;
  transition: all 0.4s;
  transform: scale(0.9);
}

.kurs:hover {
  transform: scale(0.9) translateY(-1.2rem);
  box-shadow: 0 3.2rem 6.4rem rgba(0, 0, 0, 0.06);
}

.kurs-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 2.4rem;
}

.kurs-title {
  font-size: 2.8rem; /* Reduced from 3.2rem to make the title smaller */
  color: #333;
  font-weight: 600;
  margin-bottom: 2rem; /* Slightly reduced margin */
  text-align: center;
}

.kurs-text {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
}

.kurs-price {
  font-size: 2.8rem;
  font-weight: 600;
  color: #0031cc;
  margin-top: auto;
  text-align: center;
}

.kurs-img {
  width: 100%;
  height: auto;
}

/**************************/
/* FAHRLEHRER SECTION     */
/**************************/

.section-fahrlehrer {
  align-items: center;
}

.sub-section-fahrlehrer {
  padding: 3.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns on desktop */
  align-items: center; /* Align items to the start to prevent overlap */
  gap: 20px; /* Add some space between grid items */
}

.fahrlehrer-container {
  padding: 7.2rem;
}

.fahrlehrer {
  font-size: 3.2rem;
  text-align: center;
}

.fahrlehrer-title {
  font-weight: 700;
  color: #333;
  letter-spacing: -0.5px;
  font-size: 4.4rem;
  line-height: 1.2;
  padding-top: 9.6rem;
  margin-bottom: 3.2rem;
  white-space: nowrap;
}

.fahrlehrer-img {
  width: 6.4rem;
  border-radius: 50%;
  margin-bottom: 1.2rem;
}

.fahrlehrer-name {
  font-size: 4.8rem;
  color: #6f6f6f;
}

.fahrlehrer-social-icon {
  height: 4.8rem;
  width: 4.8rem;
}

.fahrlehrer-text {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 1.6rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  padding: 6.4rem;
}

.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  transition: all 0.4s;
}

.gallery-item img:hover {
  /* transform: rotate(45deg); */
  transform: scale(1.1);
}

.fling-minislide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 700px;
  height: 700px;
  overflow: hidden;
  position: relative;
  padding: 6.4rem;
}

.fling-minislide img {
  position: absolute;
  animation: fling-minislide 20s infinite;
  opacity: 0;
  width: 100%;
  height: auto;
}

@keyframes fling-minislide {
  25% {
    opacity: 1;
  }
  40% {
    opacity: 0;
  }
}
.fling-minislide img:nth-child(4) {
  animation-delay: 0s;
}
.fling-minislide img:nth-child(3) {
  animation-delay: 5s;
}
.fling-minislide img:nth-child(2) {
  animation-delay: 10s;
}
.fling-minislide img:nth-child(1) {
  animation-delay: 15s;
}

/**************************/
/* CONTACT SECTION           */
/**************************/

.section-contact {
  background-color: #e6eafa;
  padding: 9.6rem 0;
}

.plan-header {
  text-align: center;
  margin-bottom: 4.8rem;
}

.plan-name {
  color: #cf711f;
  font-weight: 600;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.75;
  margin-bottom: 3.2rem;
}

.plan-price {
  font-size: 6.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.6;
}

.plan-price span {
  font-size: 3rem;
  font-weight: 500;
  margin-right: 0.8rem;
}

.plan-text {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #6f6f6f;
}

.plan-sign-up {
  text-align: center;
  margin-top: 4.8rem;
}

.feature-icon {
  color: rgba(0, 49, 204, 0.97);
  height: 3.2rem;
  width: 3.2rem;
  background-color: #fff;
  margin-bottom: 3.2rem;
  padding: 1.6rem;
  border-radius: 50%;
}

.feature-title {
  font-size: 2.4rem;
  color: #333;
  font-weight: 700;
  margin-bottom: 1.6rem;
}

.feature-text {
  font-size: 1.8rem;
  line-height: 1.8;
}

/**************************/
/* FOOTER            */
/**************************/

.footer {
  padding: 1.6rem 0;
  border-top: 1px solid #eee;
}

.grid--footer {
  grid-template-columns: 1.5fr 1fr;
}

.logo-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: block;
  margin-bottom: 3.2rem;
}

.social-icon {
  height: 2.4rem;
  width: 2.4rem;
}

.copyright {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #767676;
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.footer-heading {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 4rem;
}

.contacts {
  font-style: normal;
  font-size: 1.6rem;
  line-height: 1.6;
}

.address {
  margin-bottom: 2.4rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.footer-link:link,
.footer-link:visited {
  text-decoration: none;
  font-size: 1.6rem;
  color: #767676;
  transition: all 0.3s;
}

.footer-link:hover,
.footer-link:active {
  color: #555;
}
