/* Frorum – Archiv. Kein externes CSS, keine externen Schriften. */

:root {
  --schwarz: #000;
  --graphit-oben: #7b7068;
  --graphit-unten: #2f2b28;
  --orange: #ff6a13;
  --papier: #f0f0f0;
  --text: #333;
  --text-hell: #d8d4cf;
  --breite: 720px;
  --glut: #3a2414;          /* warmes Dunkelbraun für den Hintergrund */
  --foto-rand: #fbfaf7;     /* Polaroid-Weiß */
  --hand: "Segoe Print", "Bradley Hand", "Noteworthy", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--schwarz);
  /* Warmer Lichtschein von oben, wie Lampenlicht auf einem Partytisch */
  background-image:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 106, 19, .16), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 0%, var(--glut), transparent 75%);
  background-repeat: no-repeat;
  color: var(--text-hell);
  font: 15px/1.55 Verdana, Tahoma, Geneva, sans-serif;
}

.seite {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

a { color: var(--orange); }
a:hover { color: #fff; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.nur-screenreader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Kopf ---------- */

.kopf {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.kopf img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 106, 19, .35));
}

/* ---------- Leisten (wie im alten Gästebuch) ---------- */

.leiste {
  background: linear-gradient(to bottom, var(--graphit-oben), var(--graphit-unten));
  color: #fff;
  font-weight: bold;
  padding: 9px 12px;
  border-top: 1px solid #9a8f86;
}

.leiste--duenn { padding: 7px 12px; }

.navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.navigation a {
  color: #fff;
  text-decoration: none;
  padding: 2px 0;
}

.navigation a:hover { color: var(--orange); }

.navigation a[aria-current="page"] {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.navigation-leiste {
  background: linear-gradient(to bottom, var(--graphit-oben), var(--graphit-unten));
  border-top: 1px solid #9a8f86;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
  padding: 8px 12px;
  margin-bottom: 28px;
}

.navigation-leiste .navigation { margin: 0; }

/* ---------- Startseite ---------- */

.einleitung {
  background: var(--papier);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  border-top: 4px solid var(--orange);
  color: var(--text);
  padding: 20px 22px;
  margin-bottom: 28px;
}

.einleitung p { margin: 0 0 1em; max-width: 62ch; }
.einleitung p:last-child { margin-bottom: 0; }

.banner {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 28px;
}

.banner-unterschrift {
  text-align: center;
  font-size: 13px;
  margin: -16px 0 28px;
  color: #a39c95;
}

.knopf {
  display: inline-block;
  background: linear-gradient(to bottom, var(--graphit-oben), var(--graphit-unten));
  border-top: 1px solid #9a8f86;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 18px;
}

.knopf:hover { color: var(--orange); }
.knopf--orange { background: linear-gradient(to bottom, #ff8a45, #d94f00); border-top-color: #ffb27f; }
.knopf--orange:hover { color: #fff; filter: brightness(1.08); }

/* ---------- Gästebuch ---------- */

.hinweis-leiste {
  margin-bottom: 28px;
}

.eintrag {
  margin-bottom: 28px;
}

.eintrag__kopf {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4px 24px;
  align-items: baseline;
  background: linear-gradient(to bottom, var(--graphit-oben), var(--graphit-unten));
  border-top: 1px solid #9a8f86;
  color: #fff;
  font-weight: bold;
  padding: 9px 12px;
}

.eintrag__kopf .wert { color: var(--orange); }

.eintrag__nummer { text-align: right; }

.eintrag__text {
  background: var(--papier);
  color: var(--text);
  padding: 14px 12px;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}

.eintrag__text p { margin: 0 0 1em; max-width: 68ch; }
.eintrag__text p:last-child { margin-bottom: 0; }

.eintrag__fuss {
  height: 26px;
  background: linear-gradient(to bottom, var(--graphit-oben), var(--graphit-unten));
}

.smiley {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
}

/* ---------- Rechtstexte ---------- */

.text-seite {
  background: var(--papier);
  color: var(--text);
  padding: 20px 22px;
  margin-bottom: 28px;
}

.text-seite h1 { font-size: 20px; margin: 0 0 16px; }
.text-seite h2 { font-size: 16px; margin: 24px 0 8px; }
.text-seite p { margin: 0 0 1em; max-width: 68ch; }
.text-seite a { color: #b24300; }

.platzhalter {
  background: #ffe9a8;
  padding: 0 4px;
}

/* ---------- Fotoalbum (Galerie + Startseite) ---------- */

.seitentitel {
  font-family: var(--hand);
  font-weight: normal;
  font-size: 34px;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  margin: 8px 0 4px;
  text-shadow: 0 0 22px rgba(255, 106, 19, .45);
}

.untertitel {
  text-align: center;
  color: #c9c2bb;
  margin: 0 0 18px;
}

.jahre {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 30px;
}

.jahre a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 14px;
  background: linear-gradient(to bottom, var(--graphit-oben), var(--graphit-unten));
  border-top: 1px solid #9a8f86;
}

.jahre a:hover { color: var(--orange); }

.album-jahr {
  margin: 0 0 40px;
  scroll-margin-top: 16px;
}

/* Jahreszahl wie ein Etikett im Album, mit Linie bis zum Rand */
.album-jahr__titel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 30px;
  font-weight: bold;
  color: var(--orange);
  letter-spacing: 2px;
}

.album-jahr__titel::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, rgba(255, 106, 19, .7), transparent);
}

.knopf-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.galerie {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 26px 20px;
}

/* Polaroid */
.foto {
  position: relative;
  margin: 0;
  padding: 9px 9px 0;
  background: var(--foto-rand);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .6), 0 1px 2px rgba(0, 0, 0, .4);
  transform: rotate(var(--drehung, -1.5deg));
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Klebestreifen */
.foto::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 72px;
  height: 22px;
  margin-left: -36px;
  background: rgba(255, 106, 19, .55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transform: rotate(var(--streifen, -3deg));
  z-index: 1;
  pointer-events: none;
}

.galerie li:nth-child(4n+2) .foto { --drehung: 1.2deg;  --streifen: 4deg; }
.galerie li:nth-child(4n+3) .foto { --drehung: -0.6deg; --streifen: -5deg; }
.galerie li:nth-child(4n+4) .foto { --drehung: 1.8deg;  --streifen: 2deg; }
.galerie li:nth-child(3n+1) .foto::before { background: rgba(240, 230, 200, .6); }

.foto:hover,
.foto:focus-within {
  transform: rotate(0) scale(1.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 106, 19, .5);
  z-index: 2;
}

.galerie__link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #222;
}

.galerie__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* leicht warmer Ton wie alte Abzüge */
  filter: saturate(1.05) sepia(.08);
}

.galerie__link:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.foto figcaption {
  font-family: var(--hand);
  color: #2b2622;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  padding: 8px 4px 11px;
  min-height: 3.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Startseite: kleiner Fotostapel als Einstieg in die Galerie */
.fotostapel {
  display: flex;
  justify-content: center;
  margin: 6px 0 34px;
  padding: 18px 0 6px;
  text-decoration: none;
}

.fotostapel span.foto-mini {
  display: block;
  width: 150px;
  padding: 7px 7px 26px;
  margin: 0 -14px;
  background: var(--foto-rand);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .65);
  transition: transform .2s ease;
}

.fotostapel span.foto-mini img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.05) sepia(.08);
}

.fotostapel span.foto-mini:nth-child(1) { transform: rotate(-7deg) translateY(6px); }
.fotostapel span.foto-mini:nth-child(2) { transform: rotate(3deg); z-index: 1; }
.fotostapel span.foto-mini:nth-child(3) { transform: rotate(-2deg) translateY(4px); z-index: 2; }
.fotostapel span.foto-mini:nth-child(4) { transform: rotate(6deg) translateY(8px); z-index: 1; }

.fotostapel:hover span.foto-mini:nth-child(1) { transform: rotate(-10deg) translate(-8px, 2px); }
.fotostapel:hover span.foto-mini:nth-child(4) { transform: rotate(9deg) translate(8px, 4px); }

.fotostapel:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; }

.fotostapel__text {
  display: block;
  text-align: center;
  font-family: var(--hand);
  font-size: 20px;
  color: #fff;
  margin: -18px 0 30px;
  text-shadow: 0 0 16px rgba(255, 106, 19, .5);
}

.album-hinweis {
  text-align: center;
  color: #a39c95;
  font-size: 13px;
  max-width: 52ch;
  margin: 0 auto 32px;
}

.hinweis-mitglieder { font-size: 13px; color: #625a53; margin-top: -4px; }

.knopf-reihe--mitte { justify-content: center; margin: 24px 0 40px; }

/* ---------- Lightbox (natives <dialog>) ---------- */

.lightbox-offen { overflow: hidden; }

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  font: 14px/1.4 Verdana, Tahoma, Geneva, sans-serif;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(58, 36, 20, .9), rgba(0, 0, 0, .96) 75%);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lightbox::backdrop { background: rgba(0, 0, 0, .9); }

.lightbox__leiste {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, var(--graphit-oben), var(--graphit-unten));
  border-top: 1px solid #9a8f86;
  padding: 6px 8px 6px 14px;
  font-weight: bold;
}

.lightbox__buehne {
  flex: 1;
  min-height: 0;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 70px;
  touch-action: pan-y pinch-zoom;
}

/* Großes Polaroid */
.lightbox__rahmen {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  max-height: 100%;
  padding: 12px 12px 0;
  background: var(--foto-rand);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .8);
}

.lightbox__bild {
  display: block;
  min-height: 0;
  max-width: 100%;
  max-height: calc(100dvh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__text {
  font-family: var(--hand);
  color: #2b2622;
  font-size: 18px;
  text-align: center;
  padding: 10px 8px 14px;
}

.lightbox__text:empty { padding: 6px; }

.lightbox__knopf {
  font: inherit;
  color: #fff;
  background: linear-gradient(to bottom, var(--graphit-oben), var(--graphit-unten));
  border: 0;
  border-top: 1px solid #9a8f86;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
}

.lightbox__knopf:hover { color: var(--orange); }

.lightbox__knopf:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.lightbox__schliessen { font-size: 18px; }

.lightbox__vor-zurueck {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  width: 48px;
  height: 64px;
  z-index: 1;
}

.lightbox__zurueck { left: 10px; }
.lightbox__weiter { right: 10px; }

@media (max-width: 520px) {
  .seitentitel { font-size: 28px; }
  .album-jahr__titel { font-size: 24px; }
  .galerie { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .foto { padding: 6px 6px 0; }
  .foto figcaption { font-size: 12px; padding: 6px 2px 8px; }
  .foto::before { width: 52px; margin-left: -26px; height: 18px; top: -8px; }
  .fotostapel span.foto-mini { width: 100px; padding: 5px 5px 18px; margin: 0 -10px; }
  .lightbox__buehne { padding: 10px 8px 80px; }
  .lightbox__bild { max-height: calc(100dvh - 210px); }
  .lightbox__rahmen { padding: 8px 8px 0; }
  .lightbox__vor-zurueck { top: auto; bottom: 12px; transform: none; }
  .lightbox__zurueck { left: calc(50% - 56px); }
  .lightbox__weiter { right: calc(50% - 56px); }
}

@media (prefers-reduced-motion: reduce) {
  .foto, .fotostapel span.foto-mini { transition: none; }
}

/* ---------- Fuß ---------- */

.fuss {
  font-size: 13px;
  color: #a39c95;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  justify-content: space-between;
}

.fuss a { color: #c9c2bb; }
.fuss a:hover { color: #fff; }

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 520px) {
  body { font-size: 14px; }

  .eintrag__kopf {
    grid-template-columns: 1fr auto;
  }

  .eintrag__datum { grid-column: 1 / -1; grid-row: 2; }
  .eintrag__nummer { grid-column: 2; grid-row: 1; }
}
