/* ===== Well . Exposed – Stylesheet =====
   Farben, Breiten und Schriften lassen sich oben in :root anpassen. */
:root {
  --akzent: #cca98a;
  --text: #000;
  --grau: #6d6d6d;
  --linie: #e9e9e9;
  --breite: 1160px;
  --text-breite: 700px;
  --schrift-text: 'Open Sans', Arial, Helvetica, sans-serif;
  --schrift-kopf: 'Montserrat', Arial, Helvetica, sans-serif;
  --schrift-logo: 'WindSong', 'Brush Script MT', cursive;
  --kopf-farbe: #000000; /* Schriftfarbe von Logo und Untertitel auf dem Headerbild, war fff */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
img { display: block; max-width: 100%; height: auto; }

/* ----- Kopf ----- */
.kopf { text-align: center; padding: 56px 20px 34px; }
.logo {
  display: inline-block;
  font-family: var(--schrift-logo);
  font-weight: 400;
  font-size: clamp(80px, 15vw, 150px);
  line-height: 1.1;
}
.untertitel {
  margin: 4px 0 0;
  font-family: var(--schrift-kopf);
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grau);
}

/* ----- Headerbild ----- */
.kopf-text { display: inline-block; }
.untertitel { display: block; }
.kopf.mit-bild { position: relative; padding: 0; }
.kopf-bild { display: block; width: 100%; height: auto; }
.kopf.mit-bild .kopf-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; color: var(--kopf-farbe);
  text-shadow: 0 0 8px rgba(255,255,255,.9), 0 0 22px rgba(235,235,235,.9);
}
.kopf.mit-bild .untertitel { color: var(--kopf-farbe); }

/* ----- Navigation ----- */
.hauptnav { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.hauptnav ul {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: var(--breite);
  display: flex; flex-wrap: wrap; justify-content: center;
}
.hauptnav a {
  display: block;
  padding: 17px 22px;
  font-family: var(--schrift-kopf);
  font-size: 14px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; line-height: 1.4;
}
.hauptnav a:hover, .hauptnav a.aktiv { color: var(--akzent); }

/* ----- Inhalt ----- */
.inhalt { max-width: var(--breite); margin: 0 auto; padding: 56px 20px 70px; }
.leer { text-align: center; color: var(--grau); }

.archiv-titel, .seiten-titel {
  font-family: var(--schrift-kopf);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: center;
  line-height: 1.3;
}
.archiv-titel { font-size: 22px; margin: 0 0 46px; }
.archiv-titel span {
  display: block; margin-bottom: 6px;
  font-size: 11px; letter-spacing: .22em; color: var(--grau);
}
.seiten-titel { font-size: 28px; margin: 0 0 34px; }

/* ----- Karten (Startseite) ----- */
.karten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 36px;
}
.karte { text-align: center; }
.karte-bild { display: block; overflow: hidden; background: #f3f3f3; }
.karte-bild img { width: 100%; transition: transform .5s ease, opacity .3s; }
.karte-bild:hover img { opacity: .9; }

.karte-kategorien {
  margin: 20px 0 6px;
  font-family: var(--schrift-kopf);
  font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; line-height: 1.6;
  color: var(--akzent);
}
.karte-kategorien a:hover { color: var(--text); }

.karte-titel a {
  display: inline-block;
  padding: 0 20px 9px;                 /* 14px = Überstand links/rechts, 9px = Abstand zur Linie */
  border-bottom: 1px solid var(--akzent);
}

.karte-titel {
  margin: 0;
  font-family: var(--schrift-kopf);
  font-size: 19px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; line-height: 1.35;
}
.karte-titel a:hover { color: #000; }
.karte-text {
  margin: 18px auto 0;
  color: var(--grau);
  font-size: 14px; line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

/* ----- Beitrag / Galerie ----- */
.beitrag-kopf { text-align: center; }
.beitrag-kopf .karte-kategorien { margin-top: 0; }
.text { max-width: var(--text-breite); margin: 0 auto 40px; text-align: center; }
.text p { margin: 0 0 1.4em; }
.text a { color: var(--akzent); }
.text a:hover { color: var(--text); }

.galerie {
  --zeile: 270px;   /* Zielhöhe einer Bildzeile: größer = weniger Bilder pro Zeile */
  --abstand: 14px;  /* gleichmäßiger Abstand zwischen allen Bildern */
  display: flex;
  flex-wrap: wrap;
  gap: var(--abstand);
  margin-top: 30px;
}
.galerie::after { content: ''; flex-grow: 1000000; } /* letzte Zeile nicht auseinanderziehen */
.galerie .bild {
  display: block;
  background: #f3f3f3;
  aspect-ratio: var(--ar);
  flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--zeile));
}
.galerie .bild img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.galerie .bild:hover img { opacity: .88; }

/* ----- Textseite ----- */
.seite .text { margin-bottom: 0; }
.mail { margin-top: 2em; }
.mail a { display: inline-block; vertical-align: middle; margin-left: 6px; color: var(--text); }
.mail a:hover { color: var(--akzent); }

/* ----- Fuß ----- */
.fuss {
  border-top: 1px solid var(--linie);
  text-align: center; padding: 28px 20px;
  font-family: var(--schrift-kopf);
  font-size: 11px; letter-spacing: .08em; color: var(--grau);
}
.fuss p { margin: 0; }

#nach-oben {
  position: fixed; right: 22px; bottom: 22px;
  width: 42px; height: 42px; line-height: 40px; text-align: center;
  background: #fff; color: var(--text);
  border: 1px solid var(--linie); border-radius: 50%;
  font-size: 18px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, color .2s, border-color .2s;
}
#nach-oben.sichtbar { opacity: 1; pointer-events: auto; }
#nach-oben:hover { color: var(--akzent); border-color: var(--akzent); }

/* ----- Lightbox (GLightbox): Beschreibung lesbar auf dunklem Grund ----- */
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gdesc-inner { padding: 14px 20px 18px; }
.glightbox-clean .gslide-desc {
  color: #e8e8e8;
  font-family: var(--schrift-text);
  font-size: 14px; line-height: 1.5; text-align: center;
}

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .karten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 28px; }
}
@media (max-width: 640px) {
  .karten { grid-template-columns: 1fr; }
  .galerie { --zeile: 150px; --abstand: 8px; }
  .kopf { padding-top: 40px; }
  .inhalt { padding-top: 40px; }
  .seiten-titel { font-size: 23px; }
}

#lb-zaehler {
  position: absolute; top: 16px; left: 20px; z-index: 999999;
  font-family: var(--schrift-kopf); font-size: 13px; letter-spacing: .1em;
  color: #fff; pointer-events: none;
}