/* Allgemeine Formatierungen */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
  font-size: 16px;
}

header {
  background: #ff4081;
  padding: 1rem 0;
  text-align: center;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.burger,
#menu-toggle {
  display: none;
}
.menu a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s;
}

.menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

.hero {
  padding: 2rem;
  text-align: center;
  background: #fce4ec;
}

.small-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.medium-img,
.medium2-img {
  width: 75%;
  height: auto;
  margin-top: 1rem;
  border-radius: 8px;
}

.cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  background-color: #ff4081;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

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

footer {
  background: #f8bbd0;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #880e4f;
}

.content-box {
  max-width: 66%;
  margin: 0 auto;
}

/* Tabellen */
table {
  width: 60%;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: transparent;
}

table, th, td {
  border: 0px solid transparent;
}

th, td {
  padding: 0.5rem;
  text-align: left;
}

/* Kursboxen */
.kurs-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.kurs-box {
  background-color: transparent;
  flex: 1 1 300px;
  max-width: 500px;
  padding: 1rem;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  border: none;
  line-height: 1.4;
}

.kurs-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
  object-fit: cover;
}

/* Preistabellen */
.preis-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.preis-box {
  max-width: 300px;
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background-color: rgba(255, 255, 255, 0.85);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  line-height: 1.3;
}

.preis-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.preis-box .preis {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.preis-box form {
  margin: 1rem 0;
}

.preis-box input[type="submit"] {
  background-color: #0070ba;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
}

.preis-box input[type="submit"]:hover {
  background-color: #005ea6;
}

.preis-box .gueltigkeit {
  font-size: 0.9rem;
  color: #555;
}

/* Über mich */
.about-container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.about-img {
  width: 100%;
  max-width: 300px; /* oder was für den Desktop passt */
  height: auto;
  display: block;
  margin: 0 auto; /* zentriert auf kleineren Geräten */
  border-radius: 1rem; /* optional für runde Ecken */
}


.about-text {
  flex: 1;
  min-width: 250px;
}

/* Formular */
form {
  max-width: 400px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #f8f8f8;
  border-radius: 8px;
}

label {
  font-weight: bold;
}

input, textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

button {
  background-color: #ff3399;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  margin-top: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #e22883;
}

/* Tablet und größer */
@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
    text-align: center;
  }

  .about-text {
    max-width: 100%;
  }

  .small-img {
    max-width: 20%;
  }

  .menu {
    flex-direction: row;
    justify-content: center;
  }

  .cta-button {
    width: auto;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body {
    font-size: 1.1em;
    line-height: 1.6;
  }
 .burger {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;

    background-color: #222;   /* dunkler Hintergrund */
    color: #fff;              /* weiße Schrift */
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .menu a {
    color: #fff;              /* Links ebenfalls weiß */
    text-decoration: none;
    font-size: 1.2rem;
  }

  .menu a:hover {
    color: #ffd700;           /* optional: Hover-Farbe */
  }

  #menu-toggle:checked + .burger + nav .menu {
    display: flex;
  }
  .menu li {
    font-size: 1.1em;
    padding: 4px 0;
  }
  .menu li a {
    line-height: 0.5; /* kleinerer Zeilenabstand */
    padding: 4px 8px; /* optional: etwas weniger Abstand innen */
  }
  h1, h2, h3 {
    font-size: 1.4em;
  }

  .hero {
    padding: 20px 15px;
  }

  .about-container {
    display: block;
    text-align: center;
  }

  .about-text {
    padding: 1rem;
  }

  .preis-container {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  table tr {
    display: block;
    margin-bottom: 15px;
  }

  table td, table th {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
  }

  button, input, textarea {
    font-size: 1.1em;
  }
}
