/* 
Theme Name: Baumgärtner Informatik
Author: Rolf Baumgärtner
Version: 1.4
*/

/* ------------------- Base ------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, p {
  margin-left: 50px;
}

/* ------------------- Header ------------------- */
header {
  max-width: 90%;
  margin: 10px auto;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 80px;
  background-color: #ADD8E6;
  color: white;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
}

.site-title {
  flex: ;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.site-title h1, 
.site-title p {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.logo-container {
  flex: 0 0 auto;
}

.manual-logo,
.custom-logo {
  max-height: 60px;
  height: auto;
}

/* ------------------- MAIN ------------------- */
#main-content {
  background-color: #CCEEFF;
  color: black;
  max-width: 800px;     /* Begrenzte Breite */
  width: 90%;           /* Flexibel auf kleinen Geräten */
  margin: 20px auto;
  padding: 20px;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
}

/* ------------------- Navigation ------------------- */
.menu-container {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* linksbündig */
  background-color: #002244;
  padding: 10px 20px;
  margin: 30px auto;
  border-radius: 80px;
  overflow-x: auto;
}

.nav-menu {
  display: flex;
  flex-wrap: nowrap;      /* Desktop: keine Umbrüche */
  white-space: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
}

.nav-menu li {
  margin: 0 15px;
  flex-shrink: 0;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-size: 1.2em;
}

.nav-menu li a:hover {
  color: #ff6600;
}

/* Optional: Scrollbar Styling */
.nav-menu::-webkit-scrollbar {
  height: 6px;
}
.nav-menu::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* ------------------- Dienstleistungen ------------------- */
#dienstleistungen {
  background-color: #f4f4f4;
  padding: 40px 20px;
}

.content-container {
  max-width: 1000px;
  margin: 0 auto;
}

.dienstleistungen-liste {
  list-style: none;
  padding-left: 0;
}

.dienstleistungen-liste li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.dienstleistungen-liste li::before {
  content: "✔";
  color: #007BFF;
  position: absolute;
  left: 0;
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

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

/* ------------------- Kontaktbereich ------------------- */
#kontakt-container,
.kontakt-form,
.kontakt-info {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  overflow-wrap: break-word;
}

#kontakt-container img {
  max-width: 100%;
  height: auto;
}

/* ------------------- FOOTER ------------------- */
.footer {
  background-color: #002244;
  color: #fff;
  font-size: 14px;
  max-width: 20%;
  margin: 30px auto;
  border-radius: 50px;
  padding: 20px;
  text-align: center;
}

.footer a {
  color: #bbb;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 150px;
}

/* ------------------- Responsive Anpassung ------------------- */
@media (max-width: 768px) {
  header,
  #main-content,
  .menu-container,
  .footer {
    max-width: 100%;
    width: 100%;
    padding: 15px;
    border-radius: 0;
    flex-direction: column;
  }

  .header-container,
  .footer-row {
    flex-direction: column;
    align-items: center;
  }

  .logo-container {
    text-align: center;
    margin-bottom: 10px;
  }

  .site-title h1,
  .site-title p {
    text-align: center;
  }

  .nav-menu {
    flex-wrap: wrap;         /* Mobil: Umbruch erlaubt */
    justify-content: center;
    white-space: normal;
    overflow-x: hidden;
  }

  .nav-menu li {
    margin: 10px 15px;
    flex: 1 1 100%;
    text-align: center;
  }

  .menu-container {
    justify-content: center;
    overflow-x: hidden;
  }

  .footer-column {
    min-width: unset;
  }

  /* Kontaktbereich mobil */
  #kontakt-container,
  .kontakt-form,
  .kontakt-info {
    padding: 10px 15px;
  }
}

/* ------------------- Spezielle Eingabefelder ------------------- */
.postid-118 .post-118 input[type="text"] {
  background-color: #f0f0f0;
  border: 2px solid #0073aa;
}
