/* Foto- und Schlagwortseiten von Panoramio reincarnated */
:root {
  --rot: #CC0000;
  --tinte: #333;
  --leise: #6b6b6b;
  --linie: #e3e3e3;
  --flaeche: #fafafa;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: #fff; color: var(--tinte);
  font-family: Arial, Helvetica, sans-serif; line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--rot); }
.innen { max-width: 860px; margin: 0 auto; padding: 0 18px; }

.kopf { background: var(--rot); color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.1); }
.kopf .innen { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; padding-top: 14px; padding-bottom: 14px; }
.kopf .marke { color: #fff; font-size: 1.2rem; font-weight: bold; text-decoration: none; }
.kopf nav { display: flex; gap: 16px; }
.kopf nav a { color: #fff; font-size: .9rem; opacity: .92; }

main.innen { padding-top: 18px; padding-bottom: 40px; }
h1 { font-size: 1.7rem; margin: 10px 0 4px; }
h2 { font-size: 1.15rem; margin: 30px 0 10px; padding-bottom: 5px; border-bottom: 2px solid var(--linie); }
h3 { font-size: 1rem; margin: 0 0 6px; color: var(--rot); }

.brotkrumen { margin: 14px 0 0; font-size: .85rem; color: var(--leise); }
.brotkrumen a { color: var(--leise); }
.einleitung { max-width: 68ch; }
.hinweis { margin-top: 26px; padding: 12px 14px; background: var(--flaeche); border-left: 3px solid var(--rot); }

.person .spanne { margin: 0; color: var(--leise); }
.person .berufe { margin: 2px 0 0; font-weight: bold; }
.person .namensformen { margin: 6px 0 0; color: var(--leise); font-size: .92rem; }

.beleg { margin: 0 0 16px; padding: 12px 14px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px; }
.beleg p { margin: 0 0 6px; }
.beleg .quelle { margin: 0; font-size: .85rem; color: var(--leise); }

.liste, .personenliste { list-style: none; padding: 0; margin: 0; }
.liste li { padding: 4px 0; border-bottom: 1px solid var(--linie); }
.personenliste li { padding: 8px 0; border-bottom: 1px solid var(--linie); }
.personenliste a { font-weight: bold; text-decoration: none; }
.personenliste a:hover { text-decoration: underline; }
.personenliste .spanne, .personenliste .berufe, .liste .jahr {
  display: inline-block; margin-left: 10px; color: var(--leise); font-size: .88rem;
}
.anzahl { color: var(--leise); font-size: .9rem; }

.buchstaben { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 24px; }
.buchstaben a {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 5px 10px; border: 1px solid var(--linie); border-radius: 5px;
  text-decoration: none; background: #fff;
}
.buchstaben a:hover { border-color: var(--rot); }
.buchstaben a.aktiv { background: var(--rot); color: #fff; border-color: var(--rot); }
.buchstaben span { font-size: .75rem; color: var(--leise); }
.buchstaben a.aktiv span { color: #ffd9d9; }

.blaettern { display: flex; justify-content: space-between; gap: 16px; margin: 30px 0 0; font-size: .9rem; }

.seitenfuss { margin-top: 40px; padding: 20px 0 30px; border-top: 1px solid var(--linie); background: var(--flaeche); font-size: .9rem; color: var(--leise); }
.seitenfuss p { margin: 0 0 8px; }
.seitenfuss .projektfuss { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linie); text-align: center; }
.seitenfuss .projektfuss p { margin: 0 0 4px; }
.seitenfuss .klein { margin-top: 14px; font-size: .85rem; text-align: center; }

@media (max-width: 520px) {
  h1 { font-size: 1.35rem; }
  .personenliste .spanne, .personenliste .berufe { display: block; margin-left: 0; }
}

/* Bildraster */
.raster { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin: 18px 0 0; padding: 0; list-style: none; }
.raster li { border: 1px solid var(--linie); border-radius: 6px; overflow: hidden; background: #fff; }
.raster a { display: block; text-decoration: none; color: var(--tinte); }
.raster img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--flaeche); }
.raster .bildtitel { display: block; padding: 8px 10px 4px; font-size: .92rem; font-weight: bold; }
.raster .bilddatum { display: block; padding: 0 10px 10px; font-size: .8rem; color: var(--leise); }
.raster a:hover .bildtitel { color: var(--rot); text-decoration: underline; }

/* Einzelnes Foto */
.fotoblatt img.gross { width: 100%; height: auto; border: 1px solid var(--linie); border-radius: 6px; background: var(--flaeche); }
.fotoblatt .angaben { margin: 10px 0 0; color: var(--leise); }
.fotoblatt .beschreibung { margin-top: 18px; white-space: pre-line; }
.schlagwoerter { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.schlagwoerter li a, .schlagwoerter li span {
  display: inline-block; padding: 3px 9px; border: 1px solid var(--linie); border-radius: 20px;
  font-size: .85rem; text-decoration: none; background: #fff;
}
.schlagwoerter li a:hover { border-color: var(--rot); }
.schlagwoerter li span { color: var(--leise); }

/* Schlagwortverzeichnis */
.tagliste { columns: 3 220px; column-gap: 24px; margin: 10px 0 0; padding: 0; list-style: none; }
.tagliste li { break-inside: avoid; padding: 2px 0; }
.tagliste .zahl { color: var(--leise); font-size: .82rem; }
