body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url('bilder/hintergrund.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #800000;
}

.container {
  max-width: 1000px;
  margin: 5vh auto;
  padding: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-sizing: border-box;
}

.header {
  position: relative;
  width: 100%;
}

.header-bild {
  width: 100%;
  height: auto;
  background: url('bilder/titel.jpg') no-repeat center;
  background-size: 100% auto;
  aspect-ratio: 10 / 1;
  position: relative;
  border-radius: 0px 0px 0 0;
}

.hamburger {
  display: none;
  font-size: 26px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 20px;
  color: #800000 !important;
  cursor: pointer;
  z-index: 11;
  background: none;
  -webkit-text-fill-color: #800000; /* Safari/Android fallback */
  -webkit-background-clip: text;
}

#main-nav {
  background-color: #800000;
}

#main-nav ul {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  color: #f0ecec;
  height: 25px;
  font-size: 14px;
  text-align: center;
}

#main-nav li {
  padding: 0 5px;
}

#main-nav a {
  color: #f0ecec !important;
  text-decoration: none;
}

#main-nav span {
  padding: 0 5px;
}

/* Main */
main {
  flex: 1;
  color: #800000;
}

main h2 {
  font-size: 16px;
  font-weight: bold;
  margin: 15px 0 5px 0;   /* oben 10px, unten 5px */
  padding: 0 5px;
}

main h3 {
  font-size: 14px;
  font-weight: bold;
  margin: 8px 0 4px 0;    /* oben 8px, unten 4px */
  padding: 0 5px;
}

main p {
  font-size: 14px;
  padding: 0px 5px;
  line-height: 1.3;
}

.inhalt {
  overflow: hidden;
  margin-top: 0px;
}

.seitenbild {
  float: right;
  width: 450px;
  height: 290px;
  margin-top: 20px;
  margin-left: 15px;
  margin-right: 5px;
  border: 2px solid #800000;
}

.galerie {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 20px;
}

.galerie img {
  width: 280px;
  height: 215px;
  border: 2px solid #800000;
  margin-bottom: 15px;
}

/* Footer Navigation */
.footer-nav ul {
  display: flex;
  justify-content: flex-end;
  background-color: #800000;
  color: #f0ecec !important;
  height: 25px;
  align-items: center;
  padding: 0 10px;
  list-style: none;
  font-size: 14px;
}

.footer-nav li {
  padding: 0 5px;
}

.footer-nav a {
  color: #f0ecec !important;
  font-size: 14px;
  text-decoration: none;
}

.footer-nav span {
  padding: 0 5px;
  color: #f0ecec;
}

.footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0px;
  flex-wrap: nowrap;
}

.footer-info .icons img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.footer-info .kontakt {
  text-align: right;
  font-size: 12px;
  color: #800000;
}

/* Linkstil im Fließtext */
.nav-web {
  color: #800000;
  text-decoration: underline;
}

.nav-web a:hover {
  text-decoration: underline;
}

/* --- Desktop Icons (links neben Kontakt) --- */
.footer-icons-desktop {
  display: flex;
  gap: 10px;
}
.footer-icons-desktop img {
  width: 40px;
  height: 40px;
}

/* --- Mobile Icons (im Menü) --- */
.footer-icons-mobile {
  display: none;
  align-items: center;
  margin-right: auto;
}
.footer-icons-mobile img {
  width: 17px;
  height: 17px;
  margin-right: 8px;
  display: block;
}

/* Trennzeichen im Menü */
.footer-nav span {
  padding: 0 5px;
  color: #f0ecec;
}

.kontakt-liste {
  margin-top: 10px;
  margin-bottom: 0px;
  padding: 0 5px;
  font-size: 14px;
  line-height: 1.3;
}

.kontakt-liste dt {
  float: left;
  width: 70px;
  clear: left;
  padding: 0;
  margin: 0;
}

.kontakt-liste dd {
  margin-left: 80px;
  margin-bottom: 0px;
  padding: 0;
  margin-top: 0;
}

.einrueckung {
  margin-left: 40px;
  margin-bottom: 0px;
  padding: 0;
  margin-top: 0;
}

/* Bild-Container */
.bild-container {
  max-width: 970px;
  margin: 10px 0;
  padding: 0 5px;
  box-sizing: border-box;
  text-align: left;
}

/* Einzelbild */
.bild-einzel {
  width: 100%;
  max-width: 955px;
  height: auto;
  border: 2px solid #800000;
  display: block;
}

/* Zweiergruppe */
.bild-zweier-410 {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 65px;
}

.bild-zweier-410 img {
  width: 100%;
  max-width: 410px;
  height: auto;
  border: 2px solid #800000;
  object-fit: cover;
}

/* Dreiergruppe */
.bild-dreiergruppe {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
}

.bild-dreiergruppe img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border: 2px solid #800000;
  object-fit: cover;
}

.bild-dreiergruppe.hochformat {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 124px;
  flex-wrap: nowrap;
}

.bild-dreiergruppe.hochformat img {
  width: 215px;
  height: 280px;
  border: 2px solid #800000;
  box-sizing: border-box;
}

.bild-zweiergruppe.hochformat {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 65px;
}

.bild-zweiergruppe.hochformat img {
  width: 100%;
  max-width: 345px;
  height: auto;
  border: 2px solid #800000;
  object-fit: cover;
}

/* Logos */
.bild-logos {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 65px;
}

.bild-logos img {
  width: 100%;
  max-width: 410px;
  height: auto;
  object-fit: cover;
}

.rezensionen-bereich {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  padding: 0px 30px 10px 30px;
  margin-top: 0px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.rezension {
  margin-top: 25px;
  padding-left: 10px;
  border-left: 4px solid #800000;
}

.rezension p {
  font-size: 14px;
  font-style: italic;
  margin-bottom: 5px;
  color: #800000;
}

.rezension span {
  display: block;
  font-size: 14px;
  color: #800000;
  text-align: right;
}

.durchschnitt-bewertung {
  font-size: 14px;
  color: #800000; /* Schriftfarbe Ø-Bereich */
  padding-left: 5px;
  font-style: normal;
  margin-top: 15px;
  margin-bottom: 10px;
}

.durchschnitt-bewertung strong {
  font-weight: bold;
  margin-right: 5px;
}

.durchschnitt-bewertung .sterne {
  color: #FBBC04;        /* Sterne gelb */
  font-weight: bold;
  letter-spacing: 5px;
  text-shadow:
    -0.5px -0.5px 0 #800000,
     0.5px -0.5px 0 #800000,
    -0.5px  0.5px 0 #800000,
     0.5px  0.5px 0 #800000;
}

/* Lightbox */
.lightbox-img {
  cursor: pointer;
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid #800000;
}

.bild-wrapper {
  width: 100%;
}

#lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

#lightbox-popup {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 15px;
  border-radius: 10px;
  z-index: 1001;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  text-align: center;
}

#lightbox-popup img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 5px;
}

#lightbox-caption {
  margin-top: 10px;
  font-size: 14px;
  color: #800000;
}

#lightbox-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  gap: 60px; /* Abstand zwischen den Pfeilen */
}

#lightbox-prev,
#lightbox-next {
  display: inline-block;
  font-size: 18px;
  color: #800000;
  background-color: #fff;
  border: 1px solid #800000;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  margin: 0 15px;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#lightbox-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  border-radius: 50%;
  background-color: #fff;
  color: #800000;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid #800000;
  z-index: 9999;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 900px) {
  .bild-dreiergruppe img {
    max-width: none;
    width: calc((100% - 60px) / 3); /* 3 Bilder, 2×30px Gap */
  }

  .bild-dreiergruppe.hochformat {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto; /* falls nötig */
  }

  .bild-dreiergruppe.hochformat img {
    width: 23%;
    height: auto;
  }

  .bild-zweiergruppe.hochformat {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .bild-zweiergruppe.hochformat img {
    max-width: none;
    width: calc((100% - 28px) / 2); /* 2 Bilder, 1×28px Gap */
  }

  .bild-zweier-410 {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .bild-zweier-410 img {
    max-width: none;
    width: calc((100% - 28px) / 2); /* 2 Bilder, 1×28px Gap */
  }

  .bild-logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .bild-logos img {
    max-width: none;
    width: calc((100% - 28px) / 2); /* 2 Bilder, 1×28px Gap */
  }

  .rezensionen-bereich {
    margin-left: 5px;
    margin-right: 5px;
  }

}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  #main-nav {
    display: none;
  }

  #main-nav.open {
    display: block;
  }

  #main-nav ul {
    flex-direction: column;
    height: auto;
  }

  #main-nav li,
  #main-nav span {
    display: block;
    text-align: left;
    padding: 8px 15px;
  }

  #main-nav span {
    display: none;
  }

  main {
    flex: 1;
    color: #800000;
  }

  main h2 {
    font-size: 16px;
    font-weight: bold;
    margin: 18px 0 6px 0;  /* etwas mehr oben, etwas mehr unten */
    padding: 0 5px
  }

  main h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0 5px 0;
    padding: 0 5px;
  }

  main p {
    font-size: 14px;
    margin: 6px 0 10px 0;
    padding: 0 5px;
    line-height: 1.2;  /* etwas luftiger für Mobilgeräte */
  }

  .seitenbild {
    width: 50%;
    height: auto;
    float: right;
    margin: 10px auto 15px auto;
    display: block;
  }

  .galerie {
    flex-direction: column;
    align-items: center;
  }

  .galerie img {
    max-width: 30%;
    height: auto;
    margin-bottom: 15px;
    border: 2px solid #800000;
  }

  .footer-info {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .footer-info .kontakt {
    text-align: right;
    font-size: 8px;
    margin-top: 0px;
  }

  .footer-nav a {
    color: #f0ecec !important;
    font-size: 12px;
    text-decoration: none;
  }

  .footer-icons-desktop {
    display: none;
  }

  .footer-icons-mobile {
    display: flex;
    align-items: center;
  }

  .kontakt-liste {
    padding: 0 5px;
    font-size: 14px;
    line-height: 1.2;
  }

  /* Bildcontainer padding schmaler in Mobilansicht */
  .bild-container {
    padding: 0 5px;
  }

  .bild-dreiergruppe.hochformat {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto; /* falls nötig */
  }

  .bild-dreiergruppe.hochformat img {
    width: 23%;
    height: auto;
  }

  .rezensionen-bereich {
    margin-left: 5px;
    margin-right: 5px;
  }

}

@media screen and (max-width: 600px) {
  .bild-dreiergruppe.hochformat {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto; /* falls nötig */
  }

  .bild-dreiergruppe.hochformat img {
    width: 23%;
    height: auto;
  }

}

/* Überschrift h2 auf dem iPhone */
@media only screen 
  and (max-width: 430px)
  and (orientation: portrait)
  and (-webkit-min-device-pixel-ratio: 2) {
  
  main h2 {
    font-size: 16px !important;
  }

}

@media screen and (max-width: 600px) and (orientation: portrait) {
  #lightbox-popup {
    width: 90vw;              /* fast volle Breite */
    max-width: 90vw;
    max-height: 92vh;
    padding: 10px;
    border-radius: 10px;
  }

  #lightbox-popup img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 5px;
  }

  #lightbox-caption {
    font-size: 13px;
    margin-top: 8px;
    max-width: 100%;
    padding: 0 4px;
  }

  #lightbox-close {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    font-size: 20px;
    line-height: 28px;
  }

  #lightbox-prev,
  #lightbox-next {
    font-size: 18px;
    margin: 0 10px;
  }

#lightbox-nav {
  margin-top: 5px;
}

}