/* ==========================================================================
   design.css  -  einheitliches Design (Typografie, Menue, Galerie)
   Wird auf allen Seiten ZULETZT geladen und ueberschreibt aeltere Regeln.
   Keine externen Schriften (DSGVO): es werden Systemschriften verwendet.
   ========================================================================== */

:root {
  --text:        #666666;
  --muted:       #a39c8d;
  --head-2:      #a39c8d;
  --green:       #9ed652;
  --green-light: #9ed652;
  --link:        #667c99;
  --line:        #e3e3df;
  --soft:        #f1f2e7;
  --font: 'Lucida Grande', Arial, sans-serif;
}

/* Typografie (Farben, Schriftart/-groesse, Zeilenabstaende, Aufzaehlungen, Absaetze, Links, Fusszeile)
   kommt unveraendert aus css/schrift_bild_container.css wie in "update 1" - hier keine Ueberschreibung. */
a:focus-visible, button:focus-visible, label:focus-visible { outline: 2px solid #667c99; outline-offset: 2px; }
p.totop { margin: 18px 0; }

/* ==========================================================================
   Einheitliches Menue  (gleiche Eintraege in Desktop-Spalte und Handy-Menue)
   ========================================================================== */
.sitenav ul { list-style: none; margin: 0; padding: 0; }
.sitenav li { margin: 0; padding: 0; }
.sitenav a {
  display: block; text-decoration: none; line-height: 1.35;
  padding: .45rem .75rem .45rem 1.5rem; font-weight: 700; font-size: 1.0625rem;
  background-repeat: no-repeat; background-position: 6px 50%;
}
.sitenav li.lvl2 a { font-weight: 600; font-size: 1rem; padding-left: 2.5rem; background-position: 22px 50%; }
.sitenav li.lvl3 a { font-weight: 400; font-size: .9375rem; padding-left: 3.5rem; background-position: 38px 50%; }

/* Desktop: linke Spalte im urspruenglichen Look ("update1"): Arial fett, grau, Pfeil-Bilder bei Mouseover */
.vertnav-box1 { top: 120px; left: -40px; width: auto; min-width: 0; max-width: none; padding-left: 5%; overflow: hidden; }
.vertnav-box1 .sitenav ul { margin-left: 10px; width: 150px; font: bold 16px Arial, sans-serif; line-height: 27px; }
.vertnav-box1 .sitenav li { margin-top: 5px; }
.vertnav-box1 .sitenav li.lvl2 { margin-top: 3px; }
.vertnav-box1 .sitenav li.lvl3 { margin-top: 0; }
.vertnav-box1 .sitenav li a { display: block; width: 150px; min-height: 0; box-sizing: content-box; text-decoration: none; font: inherit; line-height: 27px;
  padding: 0 0 0 10px; color: #a39c8d; background: #fff; background-repeat: no-repeat; }
.vertnav-box1 .sitenav li.lvl2 a { font-size: 15px; padding-left: 25px; }
.vertnav-box1 .sitenav li.lvl3 a { font-size: 14px; font-style: italic; padding-left: 45px; }
.vertnav-box1 .sitenav li a:hover, .vertnav-box1 .sitenav li a.current:hover { background: #DBDBDB url("vert-one_arrow1.gif") no-repeat 0 9px; text-decoration: none; }
.vertnav-box1 .sitenav li a.current { color: #9ed652; background: url("vert-one_arrow2.gif") no-repeat 0 9px; }
.vertnav-box1 .sitenav li a.current:hover { color: #9ed652; }
.vertnav-box1 .sitenav li a:focus-visible { outline: 2px solid #a39c8d; outline-offset: -2px; }

/* Handy: ausklappbares Menue, Hintergrund grau/durchscheinend wie in v24 */
#sidebarMenu {
  width: min(210px, 86vw); transform: translateX(-100%);
  background: rgba(112, 112, 112, .5); border: 0; box-shadow: none;   /* durchscheinend grau wie in v24 */
  overflow-y: auto; padding-bottom: 5rem;
  visibility: hidden; transition: transform 250ms ease-in-out, visibility 0s linear 250ms;
}
.header3 input.openSidebarMenu:checked ~ #sidebarMenu { transform: translateX(0); visibility: visible; transition-delay: 0s; }
/* Handy-Menue: Schrift, Farben und Mouseover wie in Version 1 (weiss, Helvetica fett 18 px, Hover/aktuell grau mit Pfeil) */
#sidebarMenu .sitenav { padding: 0; }
#sidebarMenu .sitenav ul { margin: 0; padding: 10px; width: 230px; font: bold 18px Helvetica, Verdana, Arial, sans-serif; line-height: 210%; }
#sidebarMenu .sitenav li { margin: 0; }
#sidebarMenu .sitenav li a { display: block; box-sizing: content-box; width: 230px; min-height: 0; padding: 0 0 0 20px; font: inherit; line-height: 210%;
  text-decoration: none; text-shadow: none; background: rgba(112,112,112,0); background-repeat: no-repeat; }
#sidebarMenu .sitenav li a:link, #sidebarMenu .sitenav li a:visited { color: #fff; }
#sidebarMenu .sitenav li a:hover { background: rgba(112,112,112,.3) url("images/vert-one_arrow2.gif") no-repeat 0 15px; outline: none; }
#sidebarMenu .sitenav li a.current, #sidebarMenu .sitenav li a.current:link, #sidebarMenu .sitenav li a.current:visited, #sidebarMenu .sitenav li a.current:hover {
  color: #9ed652; background: rgba(112,112,112,.8) url("images/vert-one_arrow1.gif") no-repeat 0 15px; }
#sidebarMenu .sitenav li a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* Burger-Symbol: per Tastatur erreichbar (Checkbox unsichtbar, aber fokussierbar) */
.header3 input.openSidebarMenu {
  display: block; position: absolute; top: 19px; left: 6px; width: 44px; height: 44px;
  margin: 0; opacity: 0; cursor: pointer; z-index: 25;
}
.header3 input.openSidebarMenu:focus-visible ~ .sidebarIconToggle { outline: 2px solid #fff; outline-offset: 8px; }

@media (prefers-reduced-motion: reduce) {
  #sidebarMenu, .spinner { transition: none !important; }
}

/* ==========================================================================
   Galerie-Uebersicht (galerien.html): eine Seite fuer alle Geraete
   ========================================================================== */
.gallery-grid {
  list-style: none; margin: 1.5rem 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.5rem 1.25rem;
}
.gallery-card { margin: 0; padding: 0; background: var(--soft); border: 1px solid #ddd; display: flex; flex-direction: column; }
.gallery-card > a.swipebox:first-child { display: block; line-height: 0; overflow: hidden; }
.gallery-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s; }
.gallery-card > a.swipebox:first-child:hover img { opacity: .85; }


.totop { margin: 1.5rem 0; }
.totop img { vertical-align: middle; }
@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Bildergalerie (Lightbox): weisser statt schwarzer Hintergrund
   ========================================================================== */
#swipebox-overlay { background: #fff; }
#swipebox-top-bar, #swipebox-bottom-bar { background: #fff; border-color: var(--line); opacity: 1; text-shadow: none; }
#swipebox-top-bar { border-bottom: 1px solid var(--line); color: var(--text) !important; }
#swipebox-bottom-bar { border-top: 1px solid var(--line); }
#swipebox-title { color: var(--text); font-family: var(--font); font-size: 1rem; }
/* Lightbox-Symbole: in Grau gezeichnet (kein Bild noetig), gut sichtbar auf Weiss */
#swipebox-prev, #swipebox-next, #swipebox-close { background-image: none !important; filter: none !important; position: relative; width: 56px; height: 50px; opacity: 1; }
#swipebox-prev.disabled, #swipebox-next.disabled { opacity: .25; }
#swipebox-prev:before, #swipebox-next:before { content: ""; position: absolute; top: 14px; width: 18px; height: 18px; border: solid #555; border-width: 0 0 5px 5px; }
#swipebox-prev:before { left: 24px; transform: rotate(45deg); }
#swipebox-next:before { right: 24px; transform: rotate(-135deg); }
#swipebox-close:before, #swipebox-close:after { content: ""; position: absolute; top: 12px; left: 27px; width: 4px; height: 26px; background: #666; border-radius: 2px; }
#swipebox-close:before { transform: rotate(45deg); }
#swipebox-close:after { transform: rotate(-45deg); }
#swipebox-prev:hover:before, #swipebox-next:hover:before { border-color: #222; }
#swipebox-close:hover:before, #swipebox-close:hover:after { background: #222; }
/* Kopfzeile "boernerPM.de": passt sich der Breite an, wird auf dem Handy nicht mehr abgeschnitten */
@media (max-width: 800px) {
  #sitemast h1 { font-size: min(2.5em, 7.4vw); letter-spacing: .12em; white-space: nowrap; }
}

/* Galerie-Karten: Bild klein (25 %) oben links, Text umfliesst das Bild rechts */
.gallery-grid { display: block; margin: 1.5rem 0; }
.gallery-card { display: flow-root; padding: .9rem; margin: 0 0 1.1rem; }
.gallery-card > a.swipebox:first-child { float: left; width: 25%; min-width: 6.5rem; margin: 0 1rem .4rem 0; }
.gallery-card img { width: 100%; aspect-ratio: 4 / 3; }

.gallery-card p { margin: 0; }

/* Lightbox: nur untere Leiste; Schliessen-Kreuz mittig zwischen den Pfeilen, obere Leiste entfaellt */
#swipebox-top-bar { background: transparent !important; border: 0 !important; height: 0 !important; overflow: visible !important; }
#swipebox-title { display: none !important; }
#swipebox-close { position: fixed !important; top: auto !important; bottom: 0; right: auto !important; left: 50%; margin-left: -28px; width: 56px; height: 50px; z-index: 100000; }
/* Galerie-Karten: Bild 60 % kleiner als zuvor; ab 801 px zwei Karten pro Zeile */
ul.gallery-grid > li.gallery-card { margin: 0; }
ul.gallery-grid a.gallery-thumb { width: 4rem !important; min-width: 0 !important; max-width: none !important; margin: 0 .8rem .3rem 0 !important; }
@media (min-width: 801px) {
  ul.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
  ul.gallery-grid a.gallery-thumb { width: 6.25rem !important; }
}
@media (max-width: 800px) { ul.gallery-grid > li.gallery-card { margin: 0 0 1.1rem; } }

/* "Zum Seitenanfang": Pfeilbild css/oben.jpg, grosse Klickflaeche */
a.totop-link { display: inline-block; line-height: 0; padding: 0 24px 0 0; margin: 0; vertical-align: top; }
a.totop-link img { display: block; border: 0; }
p.totop { margin: 1.2rem 0; }

/* Galerie-Buttons wie in "update 1": ungeschnittenes Bild mit hellem Rahmen, Titel/Text rechts daneben */
ul.gallery-grid a.gallery-thumb { width: 11.25rem !important; }
@media (min-width: 801px) { ul.gallery-grid a.gallery-thumb { width: 14.25rem !important; } }
ul.gallery-grid a.gallery-thumb img { aspect-ratio: auto !important; height: auto; object-fit: fill; box-sizing: border-box; padding: 3px; background: #f8f8f2; border: 1px solid #ddd; }

/* Galerie-Karten: Schrift wie in update 1 (Titel fett, Text 12 px / 18 px, Farbe #a39c8d) */
ul.gallery-grid li.gallery-card h2 { margin: 0 0 2px; font-size: 12px; line-height: 18px; font-weight: bold; color: #a39c8d; }
ul.gallery-grid li.gallery-card p { margin: 0; font-size: 12px; line-height: 18px; color: #a39c8d; }
