:root {
  --paper: #f3eee4;
  --paper-2: #e8e0d0;
  --ink: #1b1b1b;
  --muted: #5b5750;
  --blue: #1d64a8;
  --red: #c8322c;
  --line: #d6ccb9;
  --head: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: Charter, "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: var(--red); }
h1, h2, .kicker, .brand, nav, .button, .grid span, .tags, .pager, .meta, footer {
  font-family: var(--head);
}
h1, h2 { font-weight: 800; line-height: 1.05; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
main { max-width: 78rem; margin-inline: auto; padding: 0 1rem; }
.top, .bottom { max-width: 78rem; margin-inline: auto; }

/* Kopf */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 2rem; padding: 1rem;
  border-bottom: 3px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.brand img { border-radius: 6px; }
.brand small { display: block; font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.top nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: 1.1rem; font-weight: 600; }
.top nav a { color: var(--ink); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.top nav a:hover { border-color: var(--red); color: var(--ink); }

/* Startseite */
.hero { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: center; padding: 3rem 0; }
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); }
.lead { font-size: 1.35rem; color: var(--muted); max-width: 30ch; }
.hero-img img { box-shadow: 0 10px 30px -12px rgb(0 0 0 / .45); }
section { padding: 2.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 1.75rem; }
.section-head p { color: var(--muted); margin: 0 0 .5rem; }
.button {
  display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none;
  padding: .7rem 1.2rem; font-weight: 700; font-size: 1.05rem; border-radius: 3px;
}
.button:hover { background: var(--red); color: #fff; }

/* Galerie: Reihen im Blocksatz, Seitenverhältnisse bleiben erhalten (--r = Breite/Höhe) */
.grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.grid::after { content: ""; flex-grow: 999; }
.grid li { flex: var(--r) 1 calc(var(--r) * var(--b, 11rem)); min-width: 0; }
.grid a { display: block; color: var(--ink); text-decoration: none; }
.grid img { width: 100%; background: var(--paper-2); transition: transform .2s ease, box-shadow .2s ease; }
.grid a:hover img { transform: translateY(-3px); box-shadow: 0 8px 20px -10px rgb(0 0 0 / .5); }
.grid span { display: block; overflow-wrap: anywhere; hyphens: auto; padding-top: .45rem; font-size: 1rem; font-weight: 600; line-height: 1.25; }
.grid b { color: var(--red); margin-right: .2em; }

/* Texte */
.prose { max-width: 42rem; padding: 2.5rem 0; }
.prose h2 { font-size: 1.6rem; margin-top: 1.5em; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; font-weight: 700; color: var(--red); margin: 0 0 .4rem; }
.kicker a { color: inherit; text-decoration: none; }
.meta { color: var(--muted); font-size: 1.1rem; margin-top: -.5rem; }
.map { margin: 0 auto 1rem; }

/* Einzelner Druck */
.print { padding-top: 2rem; }
.print figure { margin: 0 0 1rem; background: var(--paper-2); padding: clamp(.75rem, 3vw, 2.5rem); }
.print figure img { margin: 0 auto; max-height: 82vh; width: auto; box-shadow: 0 10px 30px -14px rgb(0 0 0 / .5); }
.print figcaption { text-align: center; color: var(--muted); font-size: 1rem; margin-top: .75rem; overflow-wrap: anywhere; }
.print .prose { padding-top: 1rem; padding-bottom: 1rem; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .95rem; }
.tags li { border: 1px solid var(--line); border-radius: 99px; padding: .1rem .7rem; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 3rem; border-top: 1px solid var(--line); font-weight: 600; font-size: 1.1rem; }
.pager a { text-decoration: none; }
.pager [rel=next] { text-align: right; margin-left: auto; }

/* Fuß */
.bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  padding: 1.5rem 1rem 2.5rem; border-top: 3px solid var(--ink); color: var(--muted); font-size: 1rem;
}
.bottom nav { display: flex; gap: 1.25rem; }
.bottom a { color: var(--ink); }

@media (max-width: 50rem) {
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
  .hero-img { order: -1; }
  .grid { gap: 1rem; }
}
@media (max-width: 40rem) {
  body { font-size: 1.05rem; }
  .grid { gap: 1.5rem; } .grid li { flex-basis: 100%; } .grid img { width: auto; max-height: 65vh; }
  .top nav { gap: .25rem 1rem; font-size: 1.05rem; }
  .print { padding-top: 0; }
  .print figure { margin-inline: -1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .grid img { transition: none; } }
/* Vorschau (400 px) liegt unter dem großen Bild, bis es geladen ist */
.print figure img { background-size: cover; background-position: center; }

/* Weiche Übergänge zwischen den Seiten; das Vorschaubild wächst ins große Bild (view-transition-name je Druck) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .35s; }
}

/* Lightbox */
.print figure a { cursor: zoom-in; }
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(12 12 12 / .97); }
.lb::backdrop { background: rgb(12 12 12 / .94); }
.lb img {
  width: 100%; height: 100%; object-fit: contain; cursor: zoom-out;
  background: center / contain no-repeat;
}
.lb-close, .lb-nav {
  position: fixed; display: grid; place-items: center; width: 3rem; height: 3rem;
  border: 0; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / .35);
  font: 400 2rem/1 var(--head); text-decoration: none; cursor: pointer;
}
.lb-close:hover, .lb-nav:hover { background: rgb(0 0 0 / .8); color: #fff; }
.lb-close { top: 1rem; right: 1rem; }
.lb-nav { top: 50%; translate: 0 -50%; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
@media (hover: none) { .lb-nav { display: none; } } /* Touch: wischen */
/* Seite beim Weiterblättern in der Lightbox verdeckt halten (Klasse aus dem Inline-Skript im head) */
html.lb-on { background: #0c0c0c; }
html.lb-on body { visibility: hidden; }
.lb { visibility: visible; }
