/* Reset & Grundregeln */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  text-align: center;
  overflow-x: hidden; /* horizontales Scrollen verhindern */
}

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.ueber { font-size: 1cm; }

/* Footer */
.footer {
  background-color: #0b3d91;
  color: white;
  padding: 1em;
  text-align: center;
  font-size: 0.9em;
}
.footer a {
  color: white;
  text-decoration: none;
  margin: 0 0.5em;
}
.footer a:hover { color: turquoise; }

/* Startseite Textblock */
.textBlock {
  font-size: 1.2rem;
  padding: 1rem 1.2rem;
  margin: 1.5rem auto;
  border-radius: 10px;
  text-align: center;
  color: #000;
  max-width: 1200px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 50%;
}

/* Navbar */
.navbar {
  background-color: #004080;
  color: white;
  padding: 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .logo { font-weight: bold; }
.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 1em;
  margin: 0;
  padding: 0;
}
.navbar .nav-links li a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}
.navbar .nav-links li a:hover {
  color: turquoise;
  transform: scale(1.1);
}

/* Footer (unten) */
footer {
  background-color: #f2f2f2;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
}
footer a {
  color: #004080;
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

/* Slideshow */
.slideshow-container {
  position: relative;
  max-width: 100%;
  height: 400px;
  overflow: hidden;
}
.slideshow-container img {
  max-width: 100%;
  max-height: 100%;
  height: 400px;
  width: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.slideshow-container .prev,
.slideshow-container .next {
  position: absolute;
  top: 50%;
  padding: 1em;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 10;
  font-size: 2em;
}
.slideshow-container .prev { left: 10px; }
.slideshow-container .next { right: 10px; }
.slideshow-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
}

/* Button */
.contact-btn {
  background-color: turquoise;
  color: white;
  padding: 0.75em 1.5em;
  border: none;
  margin-top: 1em;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

/* ========================= */
/* Kontaktseite */
.logogross {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logogross img {
  max-width: 100%;
  height: auto;
  width: auto;
  border-radius: 50%;
  margin: auto;
  display: block;
}

.kontakt-seite {
  padding: 2rem 1rem;
  background-color: #e0f7fa;
  color: #004d40;
}

.kontakt-wrapper {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.kontakt-info,
.kontaktformular {
  flex: 1 1 500px;
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
  min-width: 0; /* verhindert Überlauf */
}
.kontakt-info { text-align: center; }

.telefonnummer {
  font-size: 1.5rem;
  font-weight: bold;
}
.telefonnummer a {
  color: #00bcd4;
  text-decoration: none;
}
.telefonnummer a:hover { text-decoration: underline; }

/* Formular */
form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  text-align: left;
}
form input,
form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}
form textarea { min-height: 120px; }

form button {
  margin-top: 1.2rem;
  padding: 0.75rem 1.25rem;
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}
form button:hover { background-color: #008ba3; }

.checkbox-datenschutz {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1em;
  flex-wrap: wrap;
  text-align: left;
}
.checkbox-label { user-select: none; }
.checkbox-datenschutz input[type="checkbox"] {
  position: relative;
  top: 2px;
}
button[type="submit"] {
  display: block;
  margin-top: 1em;
}

/* ======================== */
/* Leistungen-Seite */
.leistungen-seite {
  padding: 2rem;
  min-height: 75vh;
}
.leistungen-container {
  max-width: 1000px;
  margin: 0 auto;
}
.leistungen-container h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.leistungsbereich {
  background: linear-gradient(to right, #2196f3, #00bcd4);
  padding: 1rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  text-align: center;
  color: #038596;
  flex: 1 1 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
}
.leistungsbereichBox {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.leistungsbereich i {
  color: #038596;
  margin-bottom: 1rem;
  font-size: 2rem;
}
.leistungsbereich h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.leistungsbereich ul {
  list-style: none;
  padding: 0;
  line-height: 1.6;
  color: #000;
  font-size: 1.2rem;
}
.leistungsbereich ul li::before {
  content: "✔ ";
  color: #004080;
  margin-right: 0.5rem;
}

/* ======================== */
/* Über uns */
.ueber-uns-page .page-container {
  min-height: 100vh;
  overflow: hidden;
}
.ueber-uns-page main { flex: 1; overflow: hidden; }
.ueber-uns-page .ueber-uns-section {
  padding: 2em 2em;
}
.ueber-uns-section {
  padding: 4em 2em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-container {
  display: flex;
  gap: 1em;
  max-width: 1000px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.about-box {
  flex: 1 1 calc(50% - 0.5em);
  background: linear-gradient(to right, #2196f3, #00bcd4);
  padding: 3em;
  border-radius: 10px;
  text-align: center;
  font-size: 1.1rem;
}
.about-image img {
  padding: 1em;
  max-width: 100%;
  height: 550px;
  border-radius: 10px;
}

/* Impressum & Datenschutz */
.impressum-page,
.daten-page {
  min-height: 92vh;
}

/* ======================== */
/* Responsive Regeln */
@media (max-width: 768px) {
  .navbar { flex-direction: column; align-items: flex-start; }
  .navbar .nav-links { flex-direction: column; align-items: flex-start; }
  .kontakt-wrapper { flex-direction: column; padding: 0.5rem; }
  .kontakt-info,
  .kontaktformular { flex: 1 1 100%; max-width: 100%; padding: 1rem; }
  .logogross img { max-width: 200px; }
  .ueber-uns-section .about-box { flex: 1 1 100%; }
}

/* ========================= */
/* Startseite – Mobile Optimierung */
@media (max-width: 768px) {
  /* Slideshow Höhe automatisch */
  .slideshow-container {
    height: auto;
  }
  .slideshow-container img {
    width: 100%;
    height: auto;
  }

  /* TextBlock anpassen */
  .textBlock {
    padding: 1rem;
    margin: 1rem;
  }
  .textBlock h1 {
    font-size: 1.6rem;
  }
  .textBlock h2 {
    font-size: 1.2rem;
  }
  .textBlock p {
    font-size: 0.95rem;
  }

  /* Button 100% Breite */
  .contact-btn {
    width: 100%;
    text-align: center;
  }

  /* Navbar mobile Darstellung */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
}

/* ========================= */
/* ========================= */
/* ========================= */
/* ========================= */
/* ========================= */
/* ========================= */
/* Slideshow-Pfeile auf kleineren Bildschirmen kleiner machen */
@media (max-width: 768px) {
  .slideshow-container .prev,
  .slideshow-container .next {
    font-size: 1.2em; /* kleiner als Desktop */
    padding: 0.5em;   /* weniger Platz rundherum */
  }
}


