/* ==========================================================
   Rühler Schweiz – Stylesheet (statische HTML-Version)
   Keine Fremdbibliotheken, keine externen Schriften.
   ========================================================== */

:root {
  --gruen: #57ac44;
  --gruen-dunkel: #3f8a30;
  --text: #666;
  --ueberschrift: #3a3a3a;
  --breite: 1170px;
  --schrift: "Open Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 14px;
  line-height: 22px;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; height: auto; border: 0; display: block; }

a { color: var(--gruen); text-decoration: none; }
a:hover, a:focus { color: var(--gruen-dunkel); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Lato", Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--ueberschrift);
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.25;
}
h1 { font-size: 28px; margin-bottom: 40px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

p { margin: 0 0 10px; }
.blocksatz { text-align: justify; hyphens: auto; }

.container {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 15px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gruen); color: #fff; padding: 8px 14px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Kopfbereich ---------- */
.kopf {
  background: #fff;
  border-bottom: 4px solid var(--gruen);
  position: relative;
  z-index: 20;
}
.kopf .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
}
.logo img { width: 229px; height: 75px; }

.navigation {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.navigation a {
  display: block;
  position: relative;
  padding: 39px 10px;
  color: var(--gruen);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.navigation a:hover, .navigation a:focus { color: var(--gruen-dunkel); text-decoration: none; }
.navigation a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  margin-left: -6px;
  border: 6px solid transparent;
  border-bottom-color: var(--gruen);
}

.menue-knopf {
  display: none;
  background: var(--gruen);
  color: #fff;
  border: 0;
  width: 46px;
  height: 40px;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
}
.menue-knopf span,
.menue-knopf span::before,
.menue-knopf span::after {
  display: block;
  width: 22px;
  height: 3px;
  background: #fff;
  margin: 0 auto;
  position: relative;
  content: "";
}
.menue-knopf span::before { position: absolute; top: -7px; }
.menue-knopf span::after { position: absolute; top: 7px; }

/* ---------- Großer Slider ---------- */
.slider {
  position: relative;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 1920 / 600;
  border-bottom: 5px solid var(--gruen);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 0s linear 1s;
}
.slide.aktiv {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease;
}
.slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide .titel {
  position: absolute;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  font-weight: 300;
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
  opacity: 0;
  transform: translateX(-60px) skewX(-20deg);
}
.slide .titel.gross { font-size: clamp(14px, 1.5625vw, 30px); }
.slide .titel.klein { font-size: clamp(11px, 1.0417vw, 20px); }
.slide .titel.rechts { transform: translateX(60px) skewX(20deg); }
.slide.aktiv .titel {
  opacity: 1;
  transform: none;
  transition: opacity 1.4s cubic-bezier(.19,1,.22,1) var(--verz, 2s),
              transform 1.4s cubic-bezier(.19,1,.22,1) var(--verz, 2s);
}

/* Hotspots */
.hotspot {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
}
.hotspot::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #f65256;
  animation: puls 1.8s ease-out infinite;
}
@keyframes puls {
  0% { box-shadow: 0 0 0 0 rgba(246,82,86,.7); }
  100% { box-shadow: 0 0 0 12px rgba(246,82,86,0); }
}
.hotspot .tipp {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.95);
  color: var(--ueberschrift);
  font-size: 14px;
  line-height: 1.3;
  padding: 8px 12px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.hotspot:hover .tipp, .hotspot:focus .tipp { opacity: 1; }
.hotspot.tipp-unten .tipp { bottom: auto; top: 26px; }
.hotspot.tipp-links .tipp { left: auto; right: -6px; transform: none; }
.hotspot[data-ziel] { cursor: pointer; }
.hotspot:not([data-ziel]) { cursor: default; }

.slider-pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  color: #fff;
  font-size: 26px;
  line-height: 44px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s, background .2s;
  z-index: 5;
}
.slider:hover .slider-pfeil, .slider-pfeil:focus { opacity: 1; }
.slider-pfeil:hover { background: var(--gruen); }
.slider-pfeil.zurueck { left: 15px; }
.slider-pfeil.weiter { right: 15px; }

.punkte {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.punkte button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}
.punkte button[aria-current="true"] { background: #fff; }

/* ---------- Inhalt ---------- */
main { padding: 60px 0 60px; }

.reihe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 20px;
  margin-bottom: 30px;
}
.reihe.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reihe.eins-zwei { grid-template-columns: 1fr 2fr; }

.mehr { font-size: 18px; font-weight: 700; display: inline-block; margin-top: 6px; }
.reihe > div > .bildershow + p,
.reihe > div > a + p { margin-top: 25px; }

.trenner {
  height: 30px;
  margin: 20px 0 40px;
  background: radial-gradient(ellipse at 50% 0, rgba(0,0,0,.13) 0, rgba(0,0,0,0) 65%);
  border-top: 1px solid #eee;
}

/* kleine Bildershow im Inhalt */
.bildershow { position: relative; overflow: hidden; background: #eee; }
.bildershow figure { margin: 0; display: none; position: relative; }
.bildershow figure.aktiv { display: block; }
.bildershow img { width: 100%; }
.bildershow figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 10px 15px;
  font-size: 16px;
  line-height: 1.3;
  transform: translateY(100%);
  transition: transform .35s ease;
}
.bildershow figcaption small { display: block; font-size: 13px; opacity: .9; }
.bildershow:hover figcaption, .bildershow:focus-within figcaption { transform: none; }
.bildershow .pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s;
}
.bildershow:hover .pfeil, .bildershow .pfeil:focus { opacity: 1; }
.bildershow .pfeil.zurueck { left: 0; }
.bildershow .pfeil.weiter { right: 0; }
.bildershow .punkte { bottom: 8px; }
.bildershow .punkte button { width: 8px; height: 8px; background: rgba(255,255,255,.5); }

.bild-unterschrift { margin-top: 8px; }

/* Veranstaltungen */
.flyer img { max-width: 800px; width: 100%; }
.flyer-link { display: inline-block; margin-top: 25px; font-weight: 700; }

/* Unterkünfte */
.pdf-rahmen { width: 100%; height: 1600px; border: 0; }

/* Kontakt */
.kontakt p { margin-bottom: 14px; }

/* ---------- Galerie (Impressionen) ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 25px;
}
.filter button {
  font: inherit;
  font-size: 13px;
  background: #f2f2f2;
  color: #555;
  border: 0;
  padding: 7px 14px;
  cursor: pointer;
  border-radius: 2px;
}
.filter button:hover { background: #e4e4e4; }
.filter button[aria-pressed="true"] { background: var(--gruen); color: #fff; }
.filter .anzahl { font-size: 11px; opacity: .75; margin-left: 3px; }

.galerie {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.galerie li[hidden] { display: none; }
.galerie a { display: block; position: relative; overflow: hidden; }
.galerie img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; transition: transform .4s; }
.galerie span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  background: rgba(87,172,68,.85);
  color: #fff;
  font-size: 15px;
  opacity: 0;
  transition: opacity .3s;
}
.galerie a:hover span, .galerie a:focus span { opacity: 1; }
.galerie a:hover img { transform: scale(1.06); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 60px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); box-shadow: 0 0 25px rgba(0,0,0,.6); }
.lightbox p { color: #ddd; margin: 12px 0 0; text-align: center; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 10px;
  opacity: .75;
}
.lightbox button:hover, .lightbox button:focus { opacity: 1; }
.lightbox .lb-zu { top: 10px; right: 15px; }
.lightbox .lb-zurueck { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-weiter { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Fußbereich ---------- */
.gras {
  position: relative;
  height: 40px;
  background: var(--gruen);
}
.gras::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../bilder/gras.jpg) repeat-x center / auto 100%;
  opacity: .3;
}
.fuss {
  background: #161616;
  padding: 2px 0 3px;
  font-size: 13px;
  line-height: 18px;
}
.fuss nav { text-align: right; color: var(--gruen); }
.fuss a { color: var(--gruen); }
.fuss a:hover { color: #fff; }

/* ---------- Responsiv ---------- */
@media (max-width: 1199px) {
  .navigation a { padding: 39px 6px; font-size: 12px; }
}
@media (max-width: 991px) {
  .kopf .container { flex-wrap: wrap; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .menue-knopf { display: block; }
  .kopf nav { flex-basis: 100%; }
  .navigation { display: none; flex-direction: column; padding-top: 10px; }
  .navigation.offen { display: flex; }
  .navigation a { padding: 10px 5px; font-size: 14px; border-top: 1px solid #eee; }
  .navigation a[aria-current="page"]::after { display: none; }
  .navigation a[aria-current="page"] { font-weight: 700; }
  .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reihe.drei { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .reihe, .reihe.eins-zwei { grid-template-columns: 1fr; }
  main { padding-top: 35px; }
  h1 { margin-bottom: 25px; }
  .slider { aspect-ratio: 16 / 7; }
  .slide .titel, .hotspot { display: none; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter { justify-content: flex-start; }
  .pdf-rahmen { height: 80vh; }
  .fuss nav { text-align: center; }
  .lightbox { padding: 40px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .kopf nav, .slider, .gras, .menue-knopf { display: none; }
}
