/* clipsy.de/blog — Ausstellungsseiten
   Ein Stylesheet für alle Seiten dieser Reihe: wird nach dem ersten
   Laden vom Browser zwischengespeichert, daher laden Folgeseiten
   schneller. */

:root {
  --bg: #f7f6f2;
  --ink: #1e1c18;
  --ink-soft: #5a554c;
  --line: #dedad1;
  --accent: #2e5049;   /* Patina-Grün, angelehnt an altes Gusseisen */
  --rust: #9c5a34;      /* Rostton, angelehnt an die Carlshütte */
  --max: 46rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration-color: var(--line); }
a:hover { text-decoration-color: currentColor; }

img { max-width: 100%; display: block; }

/* Kopfzeile */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.wordmark {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-nav a {
  margin-left: 1.25rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent); }

/* Hauptbereich */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.eyebrow {
  color: var(--rust);
  font-size: 0.92rem;
  margin: 0 0 0.4rem;
}

h1 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 0.3rem;
}

.subtitle {
  color: var(--ink-soft);
  margin: 0 0 1.8rem;
  font-size: 1.05rem;
}

main > p { max-width: 38rem; }

/* Galerie: einfacher, spaltenbasierter Satz ohne JavaScript.
   Bilder behalten ihr eigenes Seitenverhältnis. */
.gallery {
  column-count: 2;
  column-gap: 1.1rem;
  margin: 2rem -0.1rem 2.2rem;
}
@media (max-width: 640px) {
  .gallery { column-count: 1; }
}
.gallery figure {
  margin: 0 0 1.1rem;
  break-inside: avoid;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.5rem 0.5rem 0.8rem;
}
.gallery img { width: 100%; height: auto; }
.gallery figcaption {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.2rem 0 0.2rem;
}

.note {
  border-left: 3px solid var(--rust);
  padding: 0.7rem 1rem;
  margin: 1.6rem 0;
  background: #fbf3ec;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Weiterführende Links am Seitenende */
.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.related h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
}
.related ul { margin: 0; padding: 0; list-style: none; }
.related li { margin-bottom: 0.5rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer a { color: var(--ink-soft); }
footer nav a { margin-right: 1rem; }

/* Eigene Eindrücke (ToDo-Feld) */
.note.todo { border-left-style: dashed; }

/* Quiz */
.quiz { margin: 1.8rem 0 2.2rem; }
.quiz h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
}
.quiz details {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.7rem 1rem;
  margin-bottom: 0.6rem;
}
.quiz summary { cursor: pointer; font-weight: 500; }
.quiz summary::marker { color: var(--accent); }
.quiz .answer { margin: 0.6rem 0 0; color: var(--ink-soft); }

/* Umfrage */
.poll {
  margin: 1.8rem 0 2.2rem;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1rem 1.1rem 1.2rem;
}
.poll h2 { font-size: 1rem; font-weight: 600; margin: 0 0 0.3rem; }
.poll .poll-hint { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 0.8rem; }
.poll-options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.poll-option {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
}
.poll-option[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.poll-option:disabled { cursor: default; opacity: 0.7; }
.poll-actions { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.poll-submit {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.poll-submit:disabled { opacity: 0.5; cursor: default; }
.poll-reset {
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.poll-results { margin-top: 1rem; }
.poll-results ul { list-style: none; margin: 0; padding: 0; }
.poll-results li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0;
  font-size: 0.92rem;
}
.poll-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.8rem; }

/* Lightbox */
.gallery img { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  z-index: 1000;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-img {
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.lightbox-caption {
  color: #f1efe9;
  font-size: 0.9rem;
  margin-top: 0.8rem;
  max-width: 40rem;
  text-align: center;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #f1efe9;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  line-height: 1;
}
.lightbox-close { top: 1rem; right: 1rem; font-size: 1.6rem; }
.lightbox-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { font-size: 1.4rem; }
}

/* Kopfmenü: 3 Links sichtbar, Rest aufklappbar */
.nav-more { position: relative; display: inline-block; margin-left: 1.25rem; }
.nav-more summary {
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.95rem;
  list-style: none;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: " \25BE"; }
.nav-more[open] summary::after { content: " \25B4"; }
.nav-more summary:hover { color: var(--accent); }
.nav-more-list {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  min-width: 15rem;
  max-width: 85vw;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 0.4rem 0;
  z-index: 50;
}
.site-nav .nav-more-list a {
  display: block;
  margin: 0;
  padding: 0.4rem 1rem;
}
.site-nav .nav-more-list a:hover { background: var(--bg); }
@media (max-width: 640px) {
  .nav-more { display: block; margin: 0.6rem 0 0; }
  .nav-more-list {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0.3rem 0 0;
    min-width: 0;
    max-width: none;
    background: transparent;
  }
  .site-nav .nav-more-list a { padding: 0.35rem 0; }
}

/* Link-Buttons unter den Fotos */
.button-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0 1.8rem; }
.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn:hover { background: #fff; color: var(--accent); }

/* Zusätzliche klassische Textlinks */
.text-links { margin: 1.8rem 0; }
.text-links h2 { font-size: 1rem; font-weight: 600; margin: 0 0 0.6rem; color: var(--ink-soft); }
.text-links ul { margin: 0; padding-left: 1.1rem; }
.text-links li { margin-bottom: 0.35rem; }

/* Above-the-fold-Foto: direkt unter dem Untertitel, bewusst größer
   als die Galeriebilder, ohne Bildausschnitt zu beschneiden. */
.atf-photo {
  margin: 0 0 1.8rem;
}
.atf-photo img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}
.atf-photo figcaption {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.1rem 0;
}
/* Meinungen dazu (Umfrage-Zusammenfassung nach dem Einleitungstext) */
.poll-summary { color: var(--ink-soft); font-size: 0.95rem; margin: 1rem 0 0; }
.poll-summary strong { color: var(--rust); font-weight: 600; }
.poll-summary-note { display: block; margin-top: 0.2rem; font-size: 0.8rem; }

/* Zwischenüberschriften, Listen und Fettdruck im Fließtext (#h2, #h3, #li, #b) */
main > h2 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 2.2rem 0 0.6rem;
  max-width: 38rem;
}
main > h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  margin: 1.6rem 0 0.4rem;
  max-width: 38rem;
  color: var(--ink);
}
main > ul { max-width: 38rem; margin: 0 0 1rem; padding-left: 1.3rem; }
main > ul li { margin-bottom: 0.3rem; }
