/* ============================================================
   Gemeinsame Styles für alle Seiten: Schrift, Navigation, Footer.
   Wird auf jeder Seite NACH dem Seiten-CSS geladen.
   Änderungen an Navigation oder Footer nur hier vornehmen.
   ============================================================ */

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #fff;
}

/* ---------- Navigation ---------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
  background-color: #f2f2f2;
  padding: 30px 0;
  text-align: center;
}

.navbar .Haus {
  position: absolute;
  left: 10px;
  top: 20px;
  width: 30px;
}

.navbar .text {
  position: absolute;
  left: 64px;
  top: 0;
}

/* Seitentitel „Ferienhaus in Brook“ */
.navbar #Text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 20px;
  font-weight: bold;
  margin: 23px 0 0;
  padding: 0;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0 0 0 250px;
}

.nav-links li {
  display: inline;
  margin-right: 20px;
}

.nav-links li:last-child {
  margin-right: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #000;
}

/* Sprachumschalter: Flagge ganz rechts in der Navigationsleiste */
.navbar .sprachwahl {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  display: block;
  line-height: 0;
}

.navbar .sprachwahl img {
  width: 30px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.navbar .sprachwahl:hover img,
.navbar .sprachwahl:focus img {
  transform: scale(1.1);
}

.menu-icon {
  display: none;
  /* Button-Standardaussehen zurücksetzen (Seiten-CSS stylt teils alle Buttons) */
  width: auto;
  margin: 0;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #333;
  line-height: 1;
}

.menu-icon:hover,
.menu-icon:focus {
  background: rgba(0, 0, 0, 0.06);
}

/* Große Bildschirme: größerer Titel und größeres Haus-Symbol */
@media (min-width: 1600px) {
  .navbar .Haus {
    width: 50px;
  }

  .navbar .text {
    left: 95px;
  }

  .navbar #Text {
    font-size: 32px;
    margin-top: 31px;
  }
}

/* Tablet und Handy: Hamburger-Menü statt Linkleiste */
@media (max-width: 1199px) {
  .navbar {
    height: 60px;
    padding: 0;
  }

  .navbar .text {
    left: 18px;
    right: 104px; /* Platz für Flagge und Menü-Button */
    padding-left: 30px;
    text-align: left;
  }

  .menu-icon {
    display: block;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1500;
    font-size: 24px;
    cursor: pointer;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 10px 0;
    background-color: #f2f2f2;
    z-index: 1000;
  }

  .nav-links.show {
    display: block;
  }

  .nav-links li {
    display: block;
    margin: 0;
  }

  .nav-links li a {
    display: block;
    padding: 10px;
    font-size: 18px;
    text-align: center;
  }
}

@media (max-width: 1199px) {
  /* Auf Handy und Tablet links neben dem Menü-Button */
  .navbar .sprachwahl {
    position: fixed;
    top: 30px;
    right: 64px;
    z-index: 1500;
  }
}

/* Schmale Handys: Titel etwas kleiner, damit er nicht unter Flagge und Menü läuft */
@media (max-width: 420px) {
  .navbar #Text {
    font-size: min(17px, 3.7vw);
    white-space: nowrap;
    line-height: 60px;
    margin-top: 0;
  }
}

/* ---------- Seitenüberschriften ---------- */

/* Sichtbare Hauptüberschrift einer Seite */
.seiten-titel {
  margin: 24px 0 20px;
  padding: 0;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  text-align: center;
}

/* H1 im Aussehen einer normalen Zwischenüberschrift */
.seitenueberschrift {
  margin: 0.83em 0;
  padding: 0;
  font-size: 1.5em;
}

@media (max-width: 600px) {
  .seiten-titel {
    font-size: 22px;
  }
}

/* Überschrift nur für Google und Screenreader, nicht sichtbar */
.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Footer ---------- */

.sticky-footer {
  width: 100%;
  margin-top: 80px;
  padding: 10px 0;
  background-color: #333;
  color: #fff;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  justify-content: center;
}

.footer-links li {
  margin: 0 15px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.sticky-footer p {
  margin: 0;
  font-size: 14px;
  font-weight: normal;
}

.sticky-footer .tag {
  font-size: 10px;
}

/* Reservierungsseite: Navigation scrollt mit, statt fest oben zu stehen */
.navbar.navbar-statisch {
  position: relative;
}
