/* SEO/UX-Fixes (2026-02-03) – ergänzt die originale ostsee-style.css */
/* Ziel: responsive, bessere Lesbarkeit, moderne Galerie ohne Flash */

:root { --maxw: 980px; --pad: 16px; }

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }

img { max-width: 100%; height: auto; }

a { color: #000; }
a:hover { text-decoration: underline; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Flex-Navi: Desktop nutzt weiterhin die Bildbuttons, Mobile bekommt Text-Nav */
.nav-mobile { display: none; }
.nav-mobile a {
  display: inline-block;
  padding: 10px 12px;
  margin: 6px 6px 6px 0;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
}
.nav-mobile a[aria-current="page"] { outline: 2px solid rgba(0,0,0,0.35); }

/* Content */
.page-title {
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
  margin: 10px 0 12px 0;
}
.lead { font-size: 15px; line-height: 1.6; }

.info-box {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0;
}

.inline-links a { margin-right: 10px; }

/* Galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.gallery-grid a { display: block; }
.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
}

/* Lightbox via :target */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}
.lightbox:target { display: flex; }
.lightbox .inner {
  max-width: min(1100px, 98vw);
  max-height: 92vh;
}
.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 86vh;
  border-radius: 12px;
}
.lightbox .close {
  display: inline-block;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
}

/* Layout-Resets: fixe Höhen entfernen, damit Inhalte nicht abgeschnitten werden */
#begrenzung { height: auto !important; min-height: 900px; width: 950px; }
#header { height: auto !important; }
#inhalt, #inhalt2 { height: auto !important; min-height: 485px; padding-bottom: 18px; }
#text { height: auto !important; }

/* Responsive */
@media (max-width: 980px) {
  #begrenzung, #header, #header_bild, #menu_zeile, #inhalt, #inhalt2, #boden {
    width: 100% !important;
  }
  #header { margin-top: 10px; }
  #menu_zeile { height: auto !important; padding: 6px var(--pad); box-sizing: border-box; }
  /* Bild-Menü ausblenden, Text-Navi zeigen */
  #menu1, #menu2, #menu3, #menu4, #menu5 { display: none !important; }
  .nav-mobile { display: block; }
  #zeile, #zeile2, #zeile3 { width: auto !important; margin-left: var(--pad) !important; margin-right: var(--pad) !important; }
  #text { width: auto !important; margin: var(--pad) !important; }
  #pic, #pic2 { display: none !important; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

#pic{background-image:none !important;}

/* Lesbarkeit auf dem Hintergrund */
#text {
  background: rgba(255,255,255,0.82);
  padding: 12px 14px;
  border-radius: 12px;
  box-sizing: border-box;
}
