/* ========== Reset und Grundlayout ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html, body {
  width: 100%;
  background-color: #2C2C2C;
  color: white;
  overflow-x: hidden;
}

/* ========== Container für Inhalte ========== */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ========== Headerbereich ========== */
.header-container {
  text-align: left;
  margin: 40px 0;
  padding: 0 20px;
}

.header-container h1 {
  font-size: 26px;
  margin: 20px 0;
  font-weight: bold;
  color: white;
}

.header-container h2 {
  font-size: 20px;
  margin: 15px 0;
  font-weight: bold;
  color: white;
}

.header-container p {
  font-size: 20px;
  line-height: 1.5;
  margin: 10px 0;
  color: white;
}

/* ========== Navigation ========== */
.navbar {
  background-color: #555;
  padding: 5px 10px;
  color: white;
  height: 50px;
  line-height: 40px;
  position: relative;
}

.main-menu {
  list-style: none;
  background-color: #555;
  display: flex;
  flex-wrap: wrap;
}

.main-menu > li {
  border-top: none;
}

.main-menu li {
  display: inline-block;
  position: relative;
}

.main-menu li a {
  display: block;
  padding: 12px 18px;
  font-size: 16px;
  color: white;
  text-decoration: none;
}

.main-menu li a:hover {
  background-color: #444;
}

/* ========== Untermenüs ========== */
.submenu {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #777;
  min-width: 150px;
  z-index: 1000;
}

.submenu li {
  display: block;
}

.submenu li a {
  display: block;
  padding: 10px;
  font-size: 14px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.submenu li a:hover {
  background-color: #666;
}

/* ========== Bilder & Inhalte ========== */
.image-container {
  display: block;
  text-align: center;
  margin-top: 40px;
}

.image-container h3 {
  font-size: 16px;
  color: white;
  margin-bottom: 20px;
}

.image-container img,
.image-container iframe,
.image-container video {
  max-width: 100%;
  height: auto;
  margin-bottom: 30px;
}

/* ========== Footer ========== */
footer {
  background-color: #404040;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 16px;
  margin-top: 60px;
}

/* ========== Pfeile in Menüs ========== */
.toggle-arrow .arrow {
  display: inline-block;
  transition: none; /* Keine Animation auf alten Geräten */
}

.toggle-arrow.open .arrow {
  transform: rotate(180deg);
}

/* ========== Burger-Menü für kleine Screens ========== */
.burger {
  display: none;
  font-size: 26px;
  color: white;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .burger {
    display: block;
  }

  .main-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .main-menu.open {
    display: flex;
  }

  .main-menu li {
    display: block;
  }

  .submenu {
    position: relative;
    top: 0;
  }
}

/* ========== Fallback für alte Safari-Versionen (z. B. iOS 5) ========== */
body, p, h1, h2, h3, h4, h5, h6, a, span, strong, em {
  color: white !important;
  background: none !important;
  -webkit-text-fill-color: inherit !important;
}
