/* =========================
   BASIS
========================= */

html, body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.page-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;   /* wichtig */
  width: 100%;
}

.page-layout > section {
  display: block;
  width: 100%;
  flex: 0 0 auto;         /* verhindert seltsames Flex-Verhalten */
}

/* =========================
   TYPO & SPACING SYSTEM
========================= */

section {
  padding: 80px 20px;
  text-align: center;
}

section h2 {
  margin: 0 0 60px 0;
  font-size: 32px;
  line-height: 1.2;
}

section > p {
  max-width: 700px;
  margin: 0 auto 50px;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 40px;
  background: white;
  color: #003856;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 50px;
  display: block;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  color: #003856;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.navbar-links a:hover {
  color: #1e6dfb;
}

/* =========================
   BUTTONS
========================= */

.btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #cd702d;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #123062;
}

/* =========================
   HERO
========================= */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;

  padding: 180px 20px 120px;
  background-image: url('linguaboom-desk.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero h1,
.hero p,
.hero .btn-primary {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 20px 0;
  font-size: 32px;
  line-height: 1.2;
}

.hero p {
  max-width: 600px;
  margin: 0 0 40px 0;
  font-size: 18px;
}

.hero p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   PROBLEMS
========================= */

.problems {
  background: #f7f9fc;
  padding: 80px 20px 100px;
}

.problem-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 0;
}

.problem {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 280px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.problem:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.problem h3 {
  font-size: 20px;
  margin: 0 0 10px 0;
}

.problem p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

/* =========================
   SOLUTION
========================= */

.solution {
  position: relative;
  color: white;
  background-image: url('linguaboom-hero-background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.solution a {
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.solution::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.solution h2,
.solution .solution-intro,
.solution .solution-container {
  position: relative;
  z-index: 1;
}

.solution-intro {
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 18px;
}

.solution-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 0;
}

.solution-box {
  max-width: 260px;
  padding: 20px;
  border-radius: 12px;
  background: transparent; /* kein Hintergrund mehr */
  color: white;
  transition: all 0.25s ease;
}

.solution-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.solution-box h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.solution-box p {
  color: rgba(255,255,255,0.9);
}

/* =========================
   PRICING
========================= */

.pricing {
  background: #f7f9fc;
}

.pricing h2 {
  margin-bottom: 50px;
}

.pricing-mobile {
  display: none;
}

.pricing-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.price-card {
  width: 260px;
  padding: 40px 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.price-card.featured {
  transform: scale(1.05);
  border: 3px solid #003856;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  position: relative;
}

.price-card.featured:hover {
  transform: scale(1.05) translateY(-6px);
}

.price-card h3 {
  margin-top: 0;
}

.price {
  font-size: 36px;
  font-weight: 700;
  margin: 20px 0;
}

.price-card ul {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.price-card li {
  margin-bottom: 10px;
  color: #555;
}

.price-card button {
  background: #cd702d;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.price-card .btn-primary {
  display: inline-block;
  text-decoration: none;
}

.features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.features li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.features li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #333;
}

.subtitle {
  margin-top: -10px;
  margin-bottom: 20px;
  color: #666;
}

.badge {
  background: #003856;;
  color: white;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.time-label {
  margin: 15px 0 10px;
  font-size: 14px;
  color: #666;
}

.time-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.time-buttons a {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

/* Zweiter (neutraler) Button */
.btn-secondary {
  background: #eee;
  color: #333;
  padding: 12px;
  border-radius: 8px;
}

.btn-secondary:hover {
  background: #ddd;
}

.schedule-box {
  margin: 20px 0 18px;
  padding: 16px;
  background: #f7f9fc;
  border-radius: 10px;
  text-align: center;
}

.schedule-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #003856;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.schedule-grid span {
  display: inline-block;
  padding: 8px 0;
  background: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #003856;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.schedule-time {
  margin: 0 0 6px;
  font-size: 14px;
  color: #333;
}

.schedule-duration {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.pricing h2 {
  margin-bottom: 20px;
}

.pricing > p {
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.pricing-container {
  position: relative;
  z-index: 1;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  padding: 20px;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 560px;
  padding: 30px;
  border-radius: 14px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
}

.modal-content h3 {
  margin-top: 0;
  color: #003856;
}

.modal-price {
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0 20px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #666;
}

.modal-close:hover {
  color: #000;
}

body.modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.modal {
  backdrop-filter: blur(4px);
}

/* =========================
   TESTIMONIALS
========================= */

.testimonials {
  position: relative;
  color: #003856;
  padding: 120px 20px;
  background: none; /* wichtig */
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  transform: none;
  width: 100%;

  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url('linguaboom-sydney.webp') center / cover no-repeat;

  z-index: 0;
}

.testimonials h2,
.testimonials > p,
.testimonials .testimonial-container {
  position: relative;
  z-index: 1;
}

.testimonial-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 0;
}

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 300px;
  min-height: 250px;
  height: auto;
  padding: 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.testimonial p {
  margin: 0 0 15px 0;
  font-style: italic;
}

.testimonial strong {
  display: block;
  color: #333;
  font-weight: 600;
  margin-top: 5px;
}

/* =========================
   CONTACT
========================= */

.contact {
  background: #f7f9fc;
  padding: 120px 20px 20px;

  min-height: auto;             
  display: block;                
}

.contact-form {
  max-width: 600px;   /* statt 500px */
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
}

.contact-form button {
  background: #123062;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
}

.contact-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.form-success {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;

  text-align: center;
  background: #e6f9ed;
  border: 1px solid #2ecc71;
  color: #1e7e34;

  padding: 30px;
  border-radius: 12px;
}

.form-success.show {
  opacity: 1;
  transform: translateY(0);
}

.form-success h3 {
  margin-top: 0;
  color: #2ecc71;
}

.contact.success-state {
  min-height: 65vh;   /* vorher 60 → jetzt mehr Luft */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;  /* 🔥 zusätzlicher Abstand nach unten */
}

/* =========================
   FOOTER
========================= */

.footer {
  padding: 30px;
  text-align: center;
  font-size: 14px;
  color: #777;
}

.footer a {
  color: #777;          /* gleiche Farbe wie dein Footer-Text */
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline; /* optional: beim Hover sichtbar */
}

/* =========================
   SCROLL ANCHOR FIXES
========================= */

#home,
#contact,
#pricing {
  scroll-margin-top: 50px;
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */

@media (max-width: 768px) {

  /* NAVBAR */
  .navbar {
    padding: 10px 20px;
  }

  .navbar-links {
    gap: 15px;
    font-size: 14px;
  }

  /* HERO */
.hero {
  padding: 160px 20px 100px;
}

.hero h1 {
  font-size: 26px;
  line-height: 1.3;
}

.hero p {
  font-size: 17px;
}

  /* SECTIONS */
   section {
  padding: 70px 20px;
}

  section h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  /* PROBLEMS */
  .problem-container {
    flex-direction: column;
    align-items: center;
  }

  .problem {
    width: 100%;
    max-width: 400px;
  }

  /* SOLUTION */
  .solution-container {
    flex-direction: column;
    align-items: center;
  }

  .solution-box {
    max-width: 100%;
  }

  /* PRICING */
  .pricing-container {
    flex-direction: column;
    align-items: center;
  }

  .price-card {
  width: 100%;
  max-width: 420px;
  padding: 30px 20px;
}

.price {
  font-size: 32px;
}

.price-card button {
  width: 100%;
  font-size: 16px;
}

  /* TESTIMONIALS */
  .testimonial-container {
    flex-direction: column;
    align-items: center;
  }

  .testimonial {
    width: 100%;
    max-width: 400px;
  }

  /* CONTACT */
  .contact {
    padding: 80px 20px 40px;
  }

  .contact-wrapper {
    max-width: 100%;
  }

  /* BUTTONS */
  .btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

}