:root {
  --text: #111;
  --leise: #777;
  --linie: #e6e6e6;
  --hinten: #fff;
  --breite: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--hinten);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

/* Kopf */
.kopf {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; }
.menu a, .fuss a, .meta, .zurueck a {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.menu a:hover, .fuss a:hover, .eintrag h2 a:hover, .kategorie:hover { color: var(--leise); }
.menu-knopf {
  display: none;
  background: none;
  border: 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  color: inherit;
  padding: 8px 0;
}

main { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }

/* Liste der Einsätze */
.liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; padding: 24px 0 40px; }
.eintrag-bild { display: block; overflow: hidden; background: #f2f2f2; aspect-ratio: 3 / 2; }
.eintrag-bild img { height: 100%; object-fit: cover; transition: transform .6s ease; }
.eintrag-bild:hover img { transform: scale(1.02); }
.eintrag h2 { font-size: 19px; font-weight: 500; line-height: 1.3; margin: 14px 0 4px; }
.meta { color: var(--leise); margin: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.kategorie { color: var(--text); }
.leer { color: var(--leise); }

.seitentitel {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--leise);
  margin: 8px 0 0;
}

/* Einzelner Einsatz */
.galerie, .zurueck { max-width: 960px; margin-left: auto; margin-right: auto; }
.einsatz-kopf { max-width: 680px; margin: 24px auto 48px; text-align: center; }
.einsatz-kopf .meta { justify-content: center; }
.einsatz-kopf h1 { font-size: 40px; font-weight: 500; line-height: 1.15; margin: 12px 0 16px; }
.text { color: #333; }
.galerie { display: grid; gap: 16px; }
.galerie-bild { cursor: zoom-in; background: #f2f2f2; }
.zurueck { text-align: center; padding: 56px 0 24px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(10, 10, 10, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; object-fit: contain; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  padding: 16px;
  cursor: pointer;
  opacity: .75;
}
.lightbox button:hover { opacity: 1; }
.lb-zu { top: 8px; right: 8px; }
.lb-zurueck { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-weiter { right: 4px; top: 50%; transform: translateY(-50%); }
.lb-zahl {
  position: absolute;
  bottom: 12px;
  margin: 0;
  color: #aaa;
  font-size: 12px;
  letter-spacing: .14em;
}

/* Textseiten */
.seite { max-width: 680px; margin: 24px auto 40px; }
.seite h1 { font-size: 32px; font-weight: 500; }
.seite a { text-decoration: underline; }

/* Fuß */
.fuss {
  max-width: var(--breite);
  margin: 40px auto 0;
  padding: 32px 20px 48px;
  border-top: 1px solid var(--linie);
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--leise);
}

/* Tablet */
@media (max-width: 900px) {
  .liste { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}

/* Handy */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .kopf { padding: 20px 16px; flex-wrap: wrap; }
  main { padding: 0 16px; }
  .logo { font-size: 18px; }
  .menu-knopf { display: block; }
  .menu { display: none; width: 100%; flex-direction: column; gap: 14px; padding: 8px 0 4px; }
  .menu-offen .menu { display: flex; }
  .liste { grid-template-columns: 1fr; gap: 40px; }
  .eintrag h2 { font-size: 19px; margin: 12px 0 4px; }
  .einsatz-kopf h1 { font-size: 30px; }
  .galerie { gap: 10px; }
  .lb-zurueck, .lb-weiter { display: none; }
}
