/* BomboCombo – Erinnerungsseite. Angelehnt an das Theme von Clemens Fait (2015):
   dunkelgrünes Papier, helle Schrift, Raleway. Keine fremden Hosts. */

@font-face { font-family: "Raleway"; font-weight: 300; font-display: swap; src: url("schrift/Raleway-Light.ttf") format("truetype"); }
@font-face { font-family: "Raleway"; font-weight: 400; font-display: swap; src: url("schrift/Raleway-Regular.ttf") format("truetype"); }
@font-face { font-family: "Raleway"; font-weight: 500; font-display: swap; src: url("schrift/Raleway-Medium.ttf") format("truetype"); }
@font-face { font-family: "Raleway"; font-weight: 800; font-display: swap; src: url("schrift/Raleway-ExtraBold.ttf") format("truetype"); }

:root {
  --grund: #0f1f1a;
  --flaeche: rgba(0, 0, 0, .28);
  --text: #e6e3da;
  --leise: #a9b3ac;
  --linie: rgba(230, 227, 218, .18);
  --akzent: #f2efe6;
  --breite: 44rem;
  --weit: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--grund) url("papier.jpg") repeat fixed;
  color: var(--text);
  font: 400 1.0625rem/1.65 "Raleway", Helvetica, Arial, sans-serif;
  font-variant-numeric: lining-nums;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--akzent); text-decoration-color: var(--linie); text-underline-offset: .2em; }
a:hover, a:focus-visible { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: .02em; }
h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--leise); }
p { margin: 0 0 1em; }

.logo { font-weight: 300; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.logo b { font-weight: 800; }

/* Kopfzeile */
.kopf {
  position: absolute; inset: 0 0 auto; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
}
.kopf .logo { color: var(--akzent); text-decoration: none; font-size: 1.05rem; }
.kopf nav { display: flex; gap: clamp(.9rem, 3vw, 1.8rem); font-weight: 500; font-size: .95rem; }
.kopf nav a { text-decoration: none; color: var(--text); }
.kopf nav a[aria-current] { border-bottom: 1px solid currentColor; }
.unterseite .kopf { position: static; }

/* Titelbild der Startseite */
.titel { position: relative; overflow: hidden; }
.titel img { width: 100%; aspect-ratio: 3 / 2; max-height: 92vh; object-fit: cover; object-position: 50% 60%; }
/* Schmal: Schriftzug unter dem Bild, Verlauf nur über dem Bild. Breit: Schriftzug im Bild. */
.titel::after {
  content: ""; position: absolute; inset: 0 0 auto; aspect-ratio: 3 / 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 22, 18, .6) 0, rgba(10, 22, 18, 0) 25%, rgba(10, 22, 18, 0) 80%, rgba(10, 22, 18, .5) 100%);
}
.titel-text { position: relative; z-index: 1; padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 0; }
.titel h1 { font-size: clamp(2rem, 10vw, 6.5rem); margin: 0; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.titel .zeitraum { margin: .3em 0 0; font-size: clamp(1rem, .8rem + 1vw, 1.4rem); font-weight: 500; letter-spacing: .2em; color: #fff; }
.bildnachweis { margin: .75rem clamp(1rem, 4vw, 2.5rem) 0; font-size: .75rem; color: var(--leise); }
@media (min-width: 40rem) {
  .titel::after { inset: 0; aspect-ratio: auto;
    background: linear-gradient(to bottom, rgba(10, 22, 18, .6) 0, rgba(10, 22, 18, 0) 18%, rgba(10, 22, 18, 0) 55%, rgba(10, 22, 18, .85) 100%); }
  .titel-text { position: absolute; inset: auto 0 0; padding-bottom: clamp(1.5rem, 5vw, 3.5rem); }
  .bildnachweis { position: absolute; right: .75rem; bottom: .5rem; z-index: 1; margin: 0; color: rgba(255, 255, 255, .7); }
}
@media (max-width: 30rem) { body:not(.unterseite) .kopf .logo { visibility: hidden; } }

/* Abschnitte */
.abschnitt { padding: clamp(3rem, 8vw, 6rem) 1rem; }
.abschnitt + .abschnitt { border-top: 1px solid var(--linie); }
.spalte { max-width: var(--breite); margin: 0 auto; }
.weit { max-width: var(--weit); margin: 0 auto; }

.einleitung { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.55; }
.einleitung blockquote { margin: 1.5em 0 0; padding-left: 1.2em; border-left: 2px solid var(--linie); color: var(--leise); font-weight: 300; }

.besetzung { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem 1.5rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.besetzung span { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); }
.besetzung strong { font-weight: 500; font-size: 1.1rem; }

/* Album */
.album { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 52rem) { .album { grid-template-columns: 1.1fr 1fr; } }
.album figure { margin: 0; }
.album figcaption, .klein { font-size: .85rem; color: var(--leise); }
.album figcaption { margin-top: .5rem; }
.titelliste { margin: 0 0 1.2em; padding-left: 1.6em; }
.titelliste li::marker { color: var(--leise); }

/* Orte */
.orte { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 3rem; }
.orte ul { margin: 0; padding: 0; list-style: none; }
.orte li { padding: .35em 0; border-bottom: 1px solid var(--linie); }

/* Chronik-Übersicht auf der Startseite */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.kacheln a { display: block; height: 100%; text-decoration: none; color: inherit; background: var(--flaeche); }
.kacheln img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .2s; }
.kacheln a:hover img { opacity: .85; }
.kacheln span { display: block; padding: .8rem 1rem 1rem; }
.kacheln small { display: block; color: var(--leise); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

.links { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin: 0; padding: 0; list-style: none; font-weight: 500; }

/* Chronik */
.seitentitel { padding: clamp(2rem, 6vw, 4rem) 1rem 0; }
.seitentitel h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); }
.eintrag { padding: clamp(2.5rem, 6vw, 4.5rem) 1rem; scroll-margin-top: 1rem; }
.eintrag + .eintrag { border-top: 1px solid var(--linie); }
.eintrag .spalte { margin: 0; }
.datum { margin: 0 0 .4rem; color: var(--leise); font-size: .85rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.einzelbild { margin: 1.5rem 0 0; max-width: 40rem; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 10rem), 1fr)); gap: .5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.galerie a { display: block; background: var(--flaeche); }
.galerie img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .2s; }
.galerie a:hover img { opacity: .8; }
.weiter { font-weight: 500; }

/* Bildansicht (bildansicht.js) */
.bildansicht { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 12, 10, .96); color: var(--text); }
.bildansicht::backdrop { background: rgba(5, 12, 10, .96); }
.bildansicht figure { display: grid; grid-template-rows: 1fr auto; height: 100%; margin: 0; padding: 3.5rem 1rem 1rem; }
.bildansicht img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.bildansicht figcaption { min-height: 1.6em; padding-top: .6rem; text-align: center; font-size: .9rem; color: var(--leise); }
.bildansicht button {
  position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font: 300 1.8rem/1 "Raleway", sans-serif; cursor: pointer;
}
.bildansicht button:hover { background: rgba(0, 0, 0, .6); }
.bildansicht .zu { top: .5rem; right: .5rem; }
.bildansicht .zurueck { left: .5rem; top: 50%; transform: translateY(-50%); }
.bildansicht .vor { right: .5rem; top: 50%; transform: translateY(-50%); }

/* Fußzeile, Impressum */
.fuss { padding: 2.5rem 1rem 3rem; border-top: 1px solid var(--linie); font-size: .9rem; color: var(--leise); }
.fuss .weit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.fuss a { color: var(--leise); }
.recht h2 { font-size: 1.3rem; margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
