/* Farben: helles Papier, Tinte, Waldgrün als Akzent */
:root {
  --papier: #f6f7f4;
  --flaeche: #ffffff;
  --tinte: #1f2a30;
  --leise: #5b6a70;
  --linie: #d9dfd8;
  --akzent: #2e6b4f;
  --akzent-hell: #e3eee7;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #161c1e;
    --flaeche: #1f272a;
    --tinte: #e8ece9;
    --leise: #9aa8a3;
    --linie: #33403f;
    --akzent: #7cc4a0;
    --akzent-hell: #24362e;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, .logo {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .5rem; }
h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; }
a { color: var(--akzent); }
a:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }

/* Kopf */
.kopf {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  align-items: baseline; justify-content: space-between;
  max-width: 68rem; margin: 0 auto; padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--linie);
}
.logo { font-size: 1.35rem; color: var(--tinte); text-decoration: none; }
.kopf ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; }
.kopf nav a { color: var(--leise); text-decoration: none; }
.kopf nav a:hover, .kopf nav a[aria-current] { color: var(--tinte); text-decoration: underline; text-underline-offset: 4px; }

/* Inhalt */
.inhalt { max-width: 68rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.intro { max-width: 40rem; }
.intro p, .unterzeile { color: var(--leise); }

/* Themenliste auf der Startseite */
.themen { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.themen li { background: var(--akzent-hell); border-radius: 999px; padding: .4rem 1rem; }
.themen a { font-weight: 600; text-decoration: none; }
.anzahl { color: var(--leise); font-size: .875em; margin-left: .35rem; }

/* Bilderraster */
.raster {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  margin-top: 1.5rem;
}
.karte {
  display: block; text-decoration: none; color: var(--tinte);
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px;
  overflow: hidden;
}
.karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--akzent-hell); }
.karte-titel { display: block; padding: .7rem .9rem; font-weight: 600; }
.karte:hover .karte-titel { color: var(--akzent); }

/* Einzelseite */
.eintrag { max-width: 46rem; }
.pfad { margin: 0 0 .25rem; }
.pfad a { color: var(--leise); }
.eintrag figure { margin: 1.5rem 0; }
.eintrag figure img { width: 100%; border-radius: 6px; border: 1px solid var(--linie); }
.text { max-width: 38rem; }
.datum { color: var(--leise); font-size: .9rem; }

.schlagwoerter { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.schlagwoerter a {
  display: inline-block; padding: .2rem .7rem; border-radius: 999px;
  border: 1px solid var(--linie); text-decoration: none; font-size: .9rem;
}
.schlagwoerter.gross a { font-size: 1.05rem; padding: .4rem 1rem; }

.blaettern { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--linie); }
.blaettern .rechts { margin-left: auto; }

/* Fuß */
.fuss { max-width: 68rem; margin: 0 auto; padding: 1.5rem 1.25rem; color: var(--leise); font-size: .9rem; border-top: 1px solid var(--linie); }

/* Mehrere Bilder auf einer Detailseite */
.galerie {
  display: grid; gap: 1rem; margin: 1.5rem 0;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}
.galerie.einzeln { grid-template-columns: 1fr; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; border-radius: 6px; border: 1px solid var(--linie); }
.galerie figcaption { color: var(--leise); font-size: .9rem; margin-top: .4rem; }
.karte-titel .anzahl { font-weight: 400; }

/* Bilder zwischen den Textabschnitten */
.text { overflow: hidden; }            /* schwebende Bilder bleiben im Textbereich */
.text img { width: 100%; border-radius: 6px; border: 1px solid var(--linie); }
.textbild { margin: 1.5rem 0; }
.textbild figcaption { color: var(--leise); font-size: .9rem; margin-top: .4rem; }
@media (min-width: 40rem) {
  .textbild.rechts { float: right; width: 45%; margin: .3rem 0 1rem 1.5rem; }
  .textbild.links  { float: left;  width: 45%; margin: .3rem 1.5rem 1rem 0; }
}

/* Zwei-Klick-Video */
.video { margin: 1.5rem 0; clear: both; }
.video-rahmen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 6px; border: 1px solid var(--linie);
  background: linear-gradient(135deg, var(--akzent-hell), var(--linie));
}
.video-rahmen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.video-rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-start {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: transparent; border: 0; cursor: pointer; padding: 0;
}
.video-start svg { width: 68px; height: 48px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); transition: transform .15s; }
.video-start:hover svg, .video-start:focus-visible svg { transform: scale(1.1); }
.video-start:focus-visible { outline: 3px solid var(--akzent); outline-offset: -3px; }
.video-hinweis {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: .5rem .8rem; font-size: .8rem; line-height: 1.4;
  background: rgba(20, 28, 30, .78); color: #fff;
}
.video-hinweis a { color: #fff; margin-left: .3rem; }
.video figcaption { color: var(--leise); font-size: .9rem; margin-top: .4rem; }

/* Farbe des Play-Knopfs je Anbieter */
.video-start .knopf { fill: #c4302b; }
.video-start.vimeo .knopf { fill: #17a6d6; }

/* Lokale Videos */
.film { display: block; width: 100%; border-radius: 6px; border: 1px solid var(--linie); background: #000; }
