/* ============================================================
   Sonjas Kölnbilder – originalgetreuer Nachbau des alten
   WordPress-Looks (Theme „Twenty Seventeen"), ohne WordPress.
   Libre Franklin · Weiß · Dunkelgrau #333
   ============================================================ */
:root {
  --text: #333;
  --text-hell: #666;
  --link-grau: #767676;
  --dunkel: #222;
  --rand: #eee;
  --rand-dunkler: #ddd;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #fff; color: var(--text);
  font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 1rem; font-weight: 400; line-height: 1.66;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dunkel); }
p { margin-bottom: 1.5em; }
h1, h2, h3 { clear: both; line-height: 1.4; margin: 0 0 1rem; color: var(--text); }

.skip { position: absolute; left: -9999px; background: #222; color: #fff; padding: .5em 1em; z-index: 100; }
.skip:focus { left: 0; top: 0; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 2em; }

/* ============================================ Kopfbereich */
.kopf-medien { position: relative; overflow: hidden; }
.kopf-bild { width: 100%; object-fit: cover; }
/* Startseite: großes Kopf-Bild, Unterseiten: schmaler Streifen (wie im Original) */
.startseite .kopf-bild { max-height: 78vh; min-height: 300px; }
.unterseite .kopf-bild { max-height: 34vh; min-height: 160px; }

.seiten-branding {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2em 0 2.5em;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .38));
}
.seiten-titel {
  max-width: 1000px; margin: 0 auto; padding: 0 .8em;
  font-size: clamp(1.7rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.2;
}
.seiten-titel a {
  color: #fff; text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.seiten-titel a:hover { opacity: .85; }

/* ---------- Menüleiste ---------- */
.navigation-oben {
  background: #fff;
  border-top: 1px solid var(--rand);
  border-bottom: 1px solid var(--rand);
  position: sticky; top: 0; z-index: 40;
}
.hauptmenue ul { list-style: none; display: flex; flex-wrap: wrap; }
.hauptmenue a {
  display: block; padding: 1em 1.1em;
  color: var(--link-grau); text-decoration: none;
  font-size: .82rem; font-weight: 600;
}
.hauptmenue a:hover { color: var(--dunkel); }
.hauptmenue a.aktiv { color: var(--dunkel); }
.menue-knopf { display: none; }

/* ---------- „Zum Inhalt nach unten scrollen" (nur Startseite) ---------- */
.runter {
  display: block; text-align: center; padding: 2.2em 1em 0;
  color: var(--link-grau); text-decoration: none;
  font-size: .82rem; font-weight: 600;
}
.runter:hover { color: var(--dunkel); }
.runter span { display: block; margin-bottom: .2em; }

/* ============================================ Inhalt */
.inhalt { padding: 3.5em 2em 2em; }

.seite { display: grid; grid-template-columns: 1fr; gap: 0 4em; }
/* Zweispaltiges Layout wie im Original: Titel links, Text rechts */
@media (min-width: 900px) {
  .seite { grid-template-columns: 34% 1fr; }
  .eintrag-kopf { position: sticky; top: 5em; align-self: start; }
}

.eintrag-titel {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--text);
  margin-bottom: 1.5em;
}
.eintrag-inhalt { min-width: 0; }
.eintrag-inhalt h2 { font-size: 1.35rem; font-weight: 700; margin: 1.8em 0 .8em; }
.eintrag-inhalt h2:first-child { margin-top: 0; }
.eintrag-inhalt h2.gross-titel { font-size: 1.7rem; margin-top: 2.2em; }
.eintrag-inhalt h3 { font-size: 1.1rem; font-weight: 700; margin: 1.6em 0 .6em; }
.eintrag-inhalt a { color: var(--dunkel); text-decoration: underline; text-underline-offset: 2px; }
.eintrag-inhalt a:hover { color: #000; text-decoration: none; }
.eintrag-inhalt ul { margin: 0 0 1.5em 1.4em; }
.eintrag-inhalt li { margin-bottom: .4em; }
.eintrag-inhalt em { font-style: italic; }

blockquote {
  color: var(--text-hell); font-size: 1.1rem; font-style: italic;
  border-left: 4px solid var(--rand); padding-left: 1.2em; margin: 0 0 1.5em;
}
blockquote p { margin-bottom: .4em; }

.inhalt-bild { margin: 0 0 1em; }
.inhalt-bild-mittel { max-width: 300px; }

/* ---------- Ausstellungs-Tabelle ---------- */
table.ausstellungen { border-collapse: collapse; width: 100%; margin: 0 0 1.5em; }
table.ausstellungen td {
  border: 1px solid var(--rand-dunkler); padding: .5em .8em;
  font-size: .95rem; vertical-align: top;
}
table.ausstellungen td:first-child { white-space: nowrap; width: 7em; }

/* ============================================ Bildergalerie */
.galerie-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px; margin: 0 0 2em;
}
.galerie-thumb {
  border: 0; padding: 0; background: #f5f5f5; cursor: pointer;
  display: block; width: 100%;
}
.galerie-thumb img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
}
.galerie-thumb:hover img { opacity: .82; }

/* ---------- Lightbox (Großansicht beim Klick) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; padding: 1rem; min-width: 0; }
.lightbox img { max-width: min(94vw, 1100px); max-height: 84vh; margin: 0 auto; }
.lightbox figcaption { color: #fff; font-size: 1rem; margin-top: .8rem; }
.lb-schliessen, .lb-zurueck, .lb-weiter {
  background: none; border: 0; color: rgba(255,255,255,.8); cursor: pointer;
  font-size: 2.2rem; padding: .5rem 1.2rem; font-family: inherit;
}
.lb-schliessen { position: absolute; top: .5rem; right: .8rem; font-size: 1.6rem; }
.lb-schliessen:hover, .lb-zurueck:hover, .lb-weiter:hover { color: #fff; }

/* ============================================ Kontaktformular (WPForms-Stil) */
.formular { max-width: 620px; }
.formular label {
  display: block; margin-bottom: 1.2em;
  font-size: .9rem; font-weight: 600; color: var(--text);
}
.formular input, .formular textarea {
  display: block; width: 100%; margin-top: .35em;
  padding: .55em .7em; font: inherit; font-weight: 400;
  border: 1px solid #bbb; border-radius: 2px; background: #fff; color: var(--text);
}
.formular input:focus, .formular textarea:focus {
  outline: none; border-color: var(--text);
}
.senden {
  background: var(--dunkel); color: #fff; border: 0; border-radius: 2px;
  padding: .8em 2.2em; font: inherit; font-weight: 600; font-size: .9rem;
  cursor: pointer;
}
.senden:hover { background: #000; }

/* ============================================ Rechtstexte */
.rechtstext h2 { font-size: 1.3rem; }
.rechtstext h3 { font-size: 1.05rem; }
.hinweis { color: var(--text-hell); font-size: .9rem; }

/* ============================================ Fußzeile */
.fuss {
  border-top: 1px solid var(--rand); margin-top: 3em;
  padding: 2em 0; text-align: center;
  font-size: .85rem; color: var(--text-hell);
}
.fuss p { margin: 0; }

/* ============================================ Mobil */
@media (max-width: 899px) {
  .inhalt { padding: 2.5em 1.2em 1.5em; }
  .eintrag-titel { margin-bottom: 1em; }
  .runter { display: none; }
}
@media (max-width: 700px) {
  .menue-knopf {
    display: block; width: 100%; text-align: left;
    background: none; border: 0; padding: 1em 0;
    font: inherit; font-size: .85rem; font-weight: 600; color: var(--text);
    cursor: pointer;
  }
  .menue-icon { margin-right: .4em; }
  .hauptmenue { display: none; border-top: 1px solid var(--rand); }
  .menue-offen .hauptmenue { display: block; }
  .hauptmenue ul { flex-direction: column; padding: .4em 0; }
  .hauptmenue a { padding: .6em .2em; }
  .galerie-raster { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 4px; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-zurueck { position: absolute; left: .2rem; top: 50%; transform: translateY(-50%); }
  .lb-weiter { position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); }
}
