html, body {
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f7fb;
  color: #0e3a5b; /* Dunkelblau */
}
header {
  background-color: #f4f7fb;
  color: #0e3a5b;
  padding: 1rem 2rem;
  text-align: center;
}
header img {
  max-width: 150px;
  display: block;
  margin: 0 auto 1rem;
}
nav {
  margin-top: 0.5rem;
}
nav a {
  margin: 0 1rem;
  color: #0e3a5b;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover {
  text-decoration: underline;
}
main {
  max-width: 60em;
  margin: 0 auto;
  padding: 2em 1em;
}
section {
  padding: 2rem;
  max-width: 60em;
  margin: auto;
  margin-bottom: 2em;
}
h1 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 0.2em;
}
h2 {
  color: #d71941;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.3em;
  margin-top: 1.5em;
}
p {
  margin-bottom: 1em;
}
.info-box {
  background-color: #eef5ff;
  border-left: 5px solid #0066cc;
  padding: 1em;
  margin-top: 1em;
}
a {
  color: #0066cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
iframe {
  width: 100%;
  height: 400px;
  border: 0;
  margin-top: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
footer {
  background: #0e3a5b;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* FAQ */
/* FAQ */
#faq {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: auto;
}

#faq h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0e3a5b;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  background: white;
}

.faq-question {
  background: #0e3a5b;
  color: white;
  padding: 1rem;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #d71941;
}

.faq-answer {
  background: #f9f9f9;
  display: none;
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  border-top: 1px solid #eee;
  overflow: visible;
}

.faq-answer ul {
  padding-left: 1.2rem;
  margin: 0;
}

.faq-answer li {
  margin-bottom: 0.5rem;
}

/* Angebote */
#angebote h2 {
  text-align: center;
}
.angebote {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.box {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.box h3 {
  font-size: 1.25rem;
  color: #d71941;
  margin-bottom: 1rem;
}

.box ul {
  padding-left: 1.2rem;
  line-height: 1.6;
  color: #444;
  font-size: 1rem;
  list-style-type: disc;
}

.box ul li {
  margin-bottom: 0.5rem;
}

.video-box video {
  width: 100%;
  height: auto;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Rezensionen */
#rezensionen {
  padding: 4rem 1rem;
  background: #f4f8fb;
  text-align: center;
}

#rezensionen h2 {
  font-size: 2.2rem;
  color: #0e3a5b;
  margin-bottom: 2.5rem;
}

.rezensionen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 60em;
  margin: 0 auto;
  padding: 0 1rem;
  align-items: stretch;
}

.rezension-card {
  display: flex;
  flex-direction: column;
  height: 100%;                    
  background-color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;         
}

.rezension-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.rezension-card h3 {
  font-size: 1.2rem;
  color: #d71941;
  margin-bottom: 0.3rem;
}

.rezension-card .sterne {
  color: #f5b301;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.rezension-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
}


.hero {
  background-image: url('./img/schuleaussen.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 70vh; /* Weniger Höhe */
  width: 100%; /* Sicherstellen, dass es die ganze Breite einnimmt */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden; /* Falls Inhalt übersteht */
  border-radius: 3.5%;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay für Lesbarkeit */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1rem; /* Etwas Abstand bei kleineren Viewports */
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #d71941;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #b31635;
}

/* Kontaktformular */
.kontaktformular {
  background: white;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.kontaktformular h2 {
  text-align: center;
  color: #0e3a5b;
  margin-bottom: 1.5rem;
}
.kontaktformular form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.kontaktformular input,
.kontaktformular select,
.kontaktformular textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
.kontaktformular .form-row {
  display: flex;
  gap: 1rem;
}
.kontaktformular button {
  padding: 0.75rem;
  background-color: #d71941;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}
.kontaktformular button:hover {
  background-color: #b31635;
}


.vorteile-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem;
}

.vorteil-box {
  flex: 1 1 300px;
  max-width: 350px;
  background-color: #f9f9f9;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.vorteil-box:hover {
  transform: translateY(-5px);
}

.icon-placeholder {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.vorteil-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.vorteil-box p {
  font-size: 1rem;
  color: #555;
}

.one {
  white-space: nowrap;
}
/* Responsive Design */

/* Tablets und kleinere Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
  .angebote {
    flex-direction: column;
    align-items: center;
  }

  .box {
    flex: 1 1 100%;
    max-width: 90%;
  }

  .vorteile-container {
    flex-direction: column;
    align-items: center;
  }

  .vorteil-box {
    max-width: 90%;
  }

  .kontaktformular .form-row {
    flex-direction: column;
  }
}

/* Smartphones (max-width: 768px) */
@media (max-width: 768px) {
  header, main, section, footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .hero {
    height: 60vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  nav a {
    display: block;
    margin: 0.5rem 0;
  }

  
  .vorteile-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  .vorteil-box {
    padding: 0.5rem; 
    max-height: 13rem;
    margin-bottom: -5px;
  }
  .icon-placeholder {
    font-size: 2rem;
  }
  .vorteil-box h3 {
    font-size: 1.1rem;
  }
  .vorteil-box p {
    font-size: 0.95rem;

  }
  .angebote {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .box {
    width: 90%;               /* Einheitliche Breite für alle Boxen */
    max-width: 500px;         /* Optional: obere Grenze, verhindert zu große Boxen auf Tablets */
    margin: 0 auto;           /* Zentriert die Boxen */
    padding: 1rem;            /* Gleichmäßiger Innenabstand */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;             /* Nimmt vollen Platz ein, falls nötig */
    box-sizing: border-box;
  }
  .box h3 {
    font-size: 1.1rem;
  }
  .box ul {
    font-size: 0.8rem;
  }


  #rezensionen h2 {
    font-size: 1.6rem;
  }
  .rezensionen-grid{
    gap: 1rem;
  }
  .rezension-card {
    padding: 1rem;
    max-width: 85%;
    margin: 0 auto;
  }
  .rezension-card h3 {
    font-size: 1.1rem;
  }
  .rezension-card p {
    font-size: 0.9rem;
  }

  .faq-question {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
  .faq-answer {
    font-size: 0.8rem;
    padding: 0.8rem;
  }

  .kontaktformular {
    padding: 1rem;
  }
  .kontaktformular h2{
    font-size:0.95rem;
  }
}

/* Sehr kleine Geräte (max-width: 480px) */
@media (max-width: 480px) {
  .cta-button {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }

  .hero {
    height: 40vh;
    border-radius: 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
