/* Modern Layout CSS - Ersetzt Tabellen-Layout */

/* Main Layout Container */
.main-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  background-color: #81DAF5; /* Blauer Hintergrund wie ursprünglich */
}

/* Navigation Layout */
.navbar {
  overflow: hidden;
  background-color: #333; 
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1;
}

.nav-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 10px 0;
  min-height: 100px; /* Mindesthöhe für den Header */
}

.nav-title {
  background-color: white;
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-hand {
  text-align: right; 
  margin: 10px;
  margin-right: 50px;
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  background-color: #333;
  align-items: center; /* Vertikale Zentrierung */
  min-height: 50px; /* Mindesthöhe für die Navigation */
}

.nav-menu a {
  float: none;
  display: flex;
  align-items: center; /* Vertikale Zentrierung */
  justify-content: center; /* Horizontale Zentrierung */
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  height: 100%; /* Volle Höhe für bessere Zentrierung */
}

.nav-menu a:hover {
  background: #ddd;
  color: black;
}

/* Content Layout */
.content {
  margin-top: 180px; /* Erhöht von 155px auf 180px für die neue Navigation-Höhe */
  z-index: 2;
  background-color: transparent; /* Transparent statt weiß, damit blauer Hintergrund sichtbar */
  flex: 1;
}

/* Kitas Layout */
.kitas-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kita-location {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.kita-header {
  text-align: left;   
  font-size: 14px;
  font-weight: bold;
  margin: 0;
  padding: 10px 0;
  color: #000000 !important;
}

/* Spezifische Regel für Kita-Header um andere h2-Regeln zu überschreiben */
.kita-location h2.kita-header {
  color: #000000 !important;
}

/* Allgemeine Regel für alle h2-Elemente */
h2 {
  color: #000000 !important;
}

/* Allgemeine Regel für alle h3-Elemente */
h3 {
  color: #000000 !important;
}

.kita-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.kita-info {
  background-color: #f2f2f2;
  flex: 1;
  padding: 20px;
}

/* Styling für neue semantische Strukturen in kitas.html */
.standorte h3 {
  color: #000000;
  margin: 20px 0 10px 0;
  font-size: 16px;
  font-weight: bold;
}

.standorte address {
  font-style: normal;
  margin-bottom: 15px;
  line-height: 1.6;
}

.standorte ul {
  margin: 10px 0 20px 0;
  padding-left: 20px;
}

.standorte li {
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Styling für neue semantische Strukturen in impressum.html */
.impressum_text h2 {
  color: #000000;
  margin: 25px 0 15px 0;
  font-size: 18px;
  font-weight: bold;
}

.impressum_text address {
  font-style: normal;
  margin: 15px 0;
  line-height: 1.6;
  padding: 10px;
  background-color: #f9f9f9;
  border-left: 3px solid #0C60D0;
}

.impressum_text address a {
  color: #0C60D0;
  text-decoration: none;
}

.impressum_text address a:hover {
  text-decoration: underline;
}

.impressum_text p {
  margin: 15px 0;
  line-height: 1.6;
}

.kita-image {
  flex: 1;
}

.kita-image img {
  width: 100%;
  height: auto;
}

/* Kontakt Layout */
.kontakt-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.kontakt-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.kontakt-image {
  flex: 0 0 500px;
}

.kontakt-image img {
  width: 100%;
  height: auto;
}

.kontakt-info {
  background-color: #f2f2f2;
  flex: 1;
  padding: 20px;
  margin-left: 50px;
  font-style: normal; /* Address-Element standardmäßig kursiv, hier normal */
}

.kontakt-info a {
  color: #0C60D0;
  text-decoration: none;
}

.kontakt-info a:hover {
  text-decoration: underline;
}

.kontakt-bottom {
  text-align: left;
  padding: 20px 0;
}

.kontakt-bottom h3 {
  color: #000000;
  margin-bottom: 15px;
  font-size: 16px;
}

.kontakt-bottom p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .kita-content {
    flex-direction: column;
  }
  
  .kontakt-top {
    flex-direction: column;
  }
  
  .kontakt-image {
    flex: none;
  }
  
  .kontakt-info {
    margin-left: 0;
  }
  
  .nav-header {
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-hand {
    margin-right: 10px;
  }
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 10px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

footer .navbar_foot {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

footer .navbar_foot a {
  color: #f2f2f2;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

footer .navbar_foot a:hover {
  background-color: #555;
  color: white;
}

footer .copyright {
  border-top: 1px solid #555;
  padding-top: 15px;
  font-size: 14px;
} 