/* Basic styles */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
  color: #333;
  font-size: 16px;
}

/* Fix: Anker springen nicht unter die fixe Navbar */
[id] { scroll-margin-top: 100px; } /* ggf. feinjustieren zu deiner realen Navbar-Höhe */

h1 {
  font-size: 3em;
  font-stretch: wider;
  font-family: "Merriweather", serif;
}

h2 {
  font-size: 1.4em;
  font-family: "Merriweather", serif;
}

p {
  font-family: "Merriweather", serif;
  font-weight: lighter;
}

.zitat {
  font-style: italic;
  font-family: "Merriweather", serif;
  font-weight: lighter;
}

/* Globale Links sind weiß (für dunkle Balken) */
a { color: #fff; }

/* Explizit dunklere Links, wenn auf hellem Grund gewünscht */
.hyplink { color: rgb(93, 93, 93); }

/* Bessere Tastatur-Navigation */
a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Logos – vereinfacht auf „weiß färben“ */
.top-bar-logo,
.crown-logo,
.mini-logo {
  filter: brightness(0) invert(1);
}

/* -------- Top-Bar -------- */
.top-bar {
  background-color: rgba(74, 92, 107, 0.8);
  color: white;
  padding: 10px 20px;
  text-align: center;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: top .3s ease; /* etwas knackiger */
  line-height: 1.5;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.top-bar-logo {
  height: 80px;
  margin-bottom: 10px;
}

.top-bar-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.top-bar-line {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.top-bar-item {
  margin: 0 10px;
  white-space: nowrap;
}

.crown-logo {
  height: 10px;
  width: auto;
  margin: 0 5px;
  display: inline;
}

.top-bar-contact { margin-top: 10px; }
.top-bar-contact p { margin: 0; }

/* -------- Navbar -------- */
.navbar {
  background-color: rgba(50, 65, 75, 0.8);
  color: white;
  text-align: center;
  font-size: 1em;
  position: fixed;
  padding: 10px 0;           /* kompakter */
  width: 100%;
  top: 50px;                 /* Start unter der Top-Bar */
  left: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,.2);
  transition: top .3s ease;  /* synchron zur Top-Bar */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  box-sizing: border-box;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.mini-logo {
  height: 17px;
  margin: 0 15px;
  vertical-align: middle;
}

.navbar-links {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.navbar-links li {
  margin: 0 15px;
  display: flex;
  align-items: center;
}

.navbar-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0 10px;
  transition: color .2s ease;
}

.navbar-links a:hover { color: #ddd; }

/* -------- Hamburger -------- */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  margin-left: 10px;
}

/* -------- Footer -------- */
.footer {
  background-color: rgba(74, 92, 107, 0.8);
  color: white;
  text-align: center;
  padding: 20px 0;
  width: 100%;
}

.footer-top-bar {
  background-color: rgba(50, 65, 75, 0.8);
  padding: 20px;
  text-align: center;
}

.footer-top-bar h2 {
  margin-bottom: 10px;
  font-size: 1.5em;
}

.footer-top-bar p {
  margin: 5px 0;
  line-height: 1.4;
}

.footer-spacer { margin: 20px 0; }

.footer-bottom-bar {
  background-color: rgba(50, 65, 75, 0.9);
  padding: 10px;
  text-align: center;
}

.footer-bottom-bar p { margin: 5px 0; }

.footer a {
  color: white;
  text-decoration: none;
  margin: 0 5px;
}
.footer a:hover { text-decoration: underline; }

/* -------- Parallax Sektionen -------- */
.parallax {
  height: 1100px;
  background-size: cover;
  background-position: center; /* Initial */
  position: relative;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Hintergrundbilder */
#home       { background-image: url('images/picture1.jpg'); }
#impressum  { background-image: url('images/picture1.jpg'); }
#bild1      { background-image: url('images/picture2.jpg'); }
#bild2      { background-image: url('images/picture3.jpg'); }

.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.3);
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  color: white;
  background: rgba(0,0,0,.2);
  padding: 20px;
  border-radius: 5px;
  max-width: 900px;  /* bessere Lesbarkeit bei langen Texten */
}

/* Helle Textsektionen – Links müssen sichtbar sein */
.text-section {
  padding: 60px 20px;
  text-align: center;
  background-color: rgba(255,255,255,.9);
}
.text-content {
  max-width: 800px;
  margin: 0 auto;
}
.text-section a {
  color: #3a5568;         /* dunkler Link auf hellem Grund */
  text-decoration: underline;
}
.text-section a:hover { text-decoration: none; }

/* -------- Responsive -------- */
@media (max-width: 1024px) {
  .parallax { height: 800px; }
}

@media (max-width: 768px) {
  .mini-logo { height: 14px; }      /* etwas kleiner auf Mobile */
  .navbar { justify-content: space-between; padding: 0 10px; }

  /* Mobile-Menü klappt unter der Navbar aus */
  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;                       /* direkt unter der Navbar */
    left: 0;
    background-color: rgba(50, 65, 75, 0.95);
    padding: 10px 0;
  }
  .navbar-links.active { display: flex; }
  .navbar-links li { margin: 8px 0; }

  .hamburger { display: block; }

  .parallax { height: 560px; }      /* realistische Höhe für Mobile */
  .content { margin: 0 10px; }      /* Rand auf kleinen Screens */
}

/* -------- Bewegungsreduktion -------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .top-bar, .navbar { transition: none; }
}
