:root {
  --primary-color: #004080;
  --secondary-color: #0073e6;
  --footer-color: #003366;
  --bg-color: #f8f9fa;
  --text-color: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
}

nav#mainNav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav#mainNav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: inline-block;
}

nav#mainNav a:hover {
  color: var(--secondary-color);
}

/*.language-switch {
  margin-left: auto;
}*/

.language-switch button {
  background-color: var(--primary-color);
  border: none;
  font-weight: 700;
  margin-left: 0.5rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.language-switch button:hover {
  background-color: var(--secondary-color);
}

.hero {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.section h3 {
  margin-bottom: 1.0rem;
}

.features {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  /*box-shadow: 0 0 10px rgba(0,0,0,0.05);*/
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: transform 0.2s;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.contact {
  background: var(--primary-color);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.contact a {
  color: #fff;
  text-decoration: underline;
}

.imprint {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

footer {
  background: var(--footer-color);
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Mobile Styles */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.image-container {
  position: relative;
  width: 80%;
  max-width: 1280px;
  height: 768px;
  margin: 60px auto;
  opacity: 0;
  transform: translateY(20px);
}

.image-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.image-container img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.1s linear;
  pointer-events: none;
  z-index: 0;
}

.text {
  position: absolute;
  width: 100%;
  padding: 0 1rem;
  text-align: center;
  pointer-events: none;
  /* Leichter Schatten für bessere Lesbarkeit */
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(0, 0, 0, 0.5);
  transition: opacity 0.1s linear;
  z-index: 2;
  color: white;
  font-weight: bold;
}

.top-text {
  top: 0%;
  height: 33%;
  right: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  animation: float 1.5s ease-in-out infinite;
}

.center-text {
  top: 33%;
  bottom: 33%;
  height: 34%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  animation: float 1.5s ease-in-out infinite;
  opacity: 0;
}

.bottom-text {
  bottom: 0%;
  height: 33%;
  display: flex;
  left: 20%;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  animation: float 1.5s ease-in-out infinite;
  opacity: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

#dsgvo {
  color: #FFFFFF;
  font-size: 12px;
  font-weight: lighter;
  /*text-shadow: -1px -1px 1px #7F7F7F, 1px 1px 1px #000;*/
  position: relative;
  margin-left: 30pt;
  margin-right: 100pt;
  z-index: 1;
}

#dsgvo h1 {
  color: #FFFFFF;
}

#dsgvo h3 {
  color: #41a3fe;
}

/* Overlay-Container */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 2vw;
  box-sizing: border-box;
}

.overlay-iframe {
  width: 100%;
  height: 100%;
  border: none;
  flex-grow: 1;
}

/* Versteckt standardmäßig */
.hidden {
  display: none;
}

/* Inhalt des Overlays */
.overlay-content {
  background: #fff;
  width: 90vw;           /* breiter */
  height: 90vh;          /* höher */
  padding: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Scrollbarer Bereich */
.scrollable-text {
  overflow-y: auto;
  margin-top: 1rem;
  flex-grow: 1;
}

/* Schließen-Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Responsive Anpassung für kleine Bildschirme */
@media (max-width: 768px) {
  nav#mainNav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  nav#mainNav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .features {
    flex-direction: column;
  }

  .feature {
    flex: 1 1 100%;
  }

  .language-switch {
    margin-left: 0;
  }

  .overlay-content {
    width: 95vw;
    max-height: 90vh;
    padding: 1rem;
    border-radius: 4px;
  }

  .close-btn {
    top: 8px;
    right: 10px;
    font-size: 1.2rem;
  }
}

ul {
  list-style: none;
  padding-left: 1.0rem;
  margin-bottom: 1.0rem;
}

li::before {
  content: "♦"; /* Oder z. B. "–" oder "✔️" */
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

li {
  background-color: var(--bg-color);
  margin-bottom: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

li:hover {
  background-color: #e0f0ff;
  cursor: pointer;
}