/* Global */
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #fff;
  color: #333;
  scroll-behavior: smooth;
}

section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

h2 {
  color: #007ea7;
  margin-bottom: 20px;
}

/* Header */
header {
  position: relative;
  height: 100vh; /* nutzt volle Bildschirmhöhe */
  background: url('../pictures/hero.jpg') no-repeat center top;
  background-size: cover;
  background-position: center top;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* Premium Gradient Mask */
header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

/* Dynamische Fokussteuerung */
@media (max-aspect-ratio: 16/9) {
  header {
    background-position: center 10%; /* Leuchtturm bleibt oben sichtbar */
  }
}

@media (max-aspect-ratio: 4/3) {
  header {
    background-position: center 20%; /* verschiebt Fokus leicht nach unten */
  }
}

@media (max-aspect-ratio: 3/2) {
  header {
    background-position: center 25%; /* kompensiert Cropping bei schmalen Fenstern */
  }
}



header h1, header p, header a {
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: 2.8em;
  margin-bottom: 0.3em;
}

header p {
  font-size: 1.3em;
  margin-bottom: 1em;
}

.cta-btn {
  background-color: #00a8cc;
  color: white;
  padding: 0.8em 1.5em;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}

.cta-btn:hover {
  background-color: #007ea7;
}

/* Language Switch */
#language-container {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

#language-switch {
  background: rgba(255,255,255,0.9);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#language-dropdown {
  margin-top: 8px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  padding: 10px;
}

#language-dropdown button {
  display: block;
  width: 100%;
  padding: 8px;
  margin-bottom: 6px;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
}

#language-dropdown button:hover {
  background: #e0e0e0;
}

.hidden {
  display: none;
}

/* Footer */
footer {
  background: #f5f5f5;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #666;
}

#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 0.9em;
  z-index: 9999;
  display: flex;
  align-items: center;
}

#cookie-banner button {
  margin-left: 15px;
  background: #00a8cc;
  border: none;
  padding: 6px 12px;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.hidden {
  display: none;
}


/* Legal pages (Impressum & Datenschutz) */
.legal-container {
  max-width: 900px;
  margin: auto;
  padding: 60px 20px;
  line-height: 1.6;
  font-size: 1.05em;
}

.legal-container h1 {
  color: #007ea7;
  margin-bottom: 30px;
  font-size: 2em;
}

.legal-container p {
  margin-bottom: 20px;
}

.legal-back {
  color: #007ea7;
  text-decoration: none;
  font-weight: bold;
}

.legal-back:hover {
  text-decoration: underline;
}

/* line spaces */
section {
  padding: 20px 10px; /* vorher vermutlich 60px oder mehr */
}

section h2, section h1 {
  margin-bottom: 10px; /* reduziert Abstand unter der Überschrift */
}

section p {
  margin-top: 0;
  margin-bottom: 15px; /* kompakter Absatzabstand */
}
