:root {
  --bg: #f4f1ea; --karte: #fffdf8; --bildgrund: #e9efe4; --text: #1f2a1f; --leise: #5b6657;
  --akzent: #2f5d3a; --linie: #dcd6c8;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151a15; --karte: #1d241d; --bildgrund: #26302a; --text: #e8ede4; --leise: #a3ae9f;
          --akzent: #8fc79a; --linie: #2f3a30; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header { padding: 56px 16px 32px; text-align: center; }
header h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400;
            font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--akzent); letter-spacing: .01em; }
header p { margin: 8px auto 0; max-width: 34em; color: var(--leise); }
header a { color: inherit; text-decoration: none; }
.galerie { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px;
           display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.rechtstext { max-width: 44em; margin: 0 auto; padding: 0 16px 48px; }
.rechtstext h2 { margin: 32px 0 8px; font-size: 1.3rem; }
.rechtstext p, .rechtstext ul { margin: 0 0 12px; }
.rechtstext a, footer a { color: var(--akzent); }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden;
         display: flex; flex-direction: column; }
.bilder { background: radial-gradient(circle at 50% 45%, var(--karte) 0%, var(--bildgrund) 75%);
          aspect-ratio: 1; display: grid; grid-template-rows: minmax(0, 1fr); overflow: hidden; padding: 16px; }
.bilder.mehrere { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.bild { all: unset; cursor: zoom-in; display: grid; place-items: center; min-width: 0; min-height: 0; }
.bild:focus-visible { outline: 2px solid var(--akzent); outline-offset: 4px; border-radius: 8px; }
.bild img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .15)); }
.text { padding: 18px 20px 22px; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.45rem; }
.latein { margin: 2px 0 14px; color: var(--leise); }
dl { margin: 0; display: grid; gap: 10px; }
dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--akzent); }
dd { margin: 2px 0 0; font-size: .95rem; }
footer { text-align: center; color: var(--leise); font-size: .85rem; padding: 0 16px 40px; }
dialog { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
dialog::backdrop { background: rgb(10 15 10 / .85); }
dialog img { display: block; max-width: 94vw; max-height: 94vh; object-fit: contain; cursor: zoom-out; }
