/* geydan.de — Book of Days */

:root {
  --text: #262626;
  --neben: #6e6e73;
  --leise: #c7c7cc;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

header {
  padding: 28px 36px;
}

.wortmarke {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.untertitel {
  color: var(--neben);
  font-weight: 400;
  margin-left: 10px;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 36px;
  min-height: 0;
}

#hinweis {
  color: var(--neben);
  font-size: 15px;
}

#buehne {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  width: 100%;
}

.bildknopf {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.bildknopf:disabled { cursor: default; }

.bildknopf img {
  transition: opacity 0.2s ease;
}

/* Das vorherige Bild: kleiner, zurückgenommen */
#zurueck img {
  max-height: 40vh;
  max-width: 22vw;
  opacity: 0.45;
}

#zurueck:hover img,
#zurueck:focus-visible img { opacity: 0.75; }

#zurueck[hidden] { display: none; }

/* Das aktuelle Bild: die Mitte */
#mitte {
  margin: 0;
  text-align: center;
}

#bild-aktuell {
  max-height: 66vh;
  max-width: min(72vw, 1100px);
}

#vor:disabled #bild-aktuell { cursor: default; }

figcaption { margin-top: 20px; }

#datum {
  margin: 0;
  font-size: 15px;
}

#zeile {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--neben);
}

#zeile:empty { display: none; }

/* Dezente Pfeile zurück und vor */
.pfeil {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 34px;
  line-height: 1;
  padding: 8px 12px;
  color: var(--leise);
  transition: color 0.2s ease;
}

.pfeil:hover,
.pfeil:focus-visible { color: var(--text); }

.pfeil[hidden] { display: none; }

footer {
  padding: 24px 36px;
  text-align: right;
}

footer a {
  color: var(--leise);
  text-decoration: none;
  font-size: 12px;
}

footer a:hover, footer a:focus-visible {
  color: var(--neben);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

/* Weiches Blättern */
#buehne.blaettert #bild-vorher,
#buehne.blaettert #bild-aktuell,
#buehne.blaettert figcaption {
  opacity: 0;
}
#bild-vorher, #bild-aktuell, figcaption {
  transition: opacity 0.18s ease;
}

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

/* Mobil: nur das aktuelle Bild, Blättern per Wischen */
@media (max-width: 700px) {
  header { padding: 20px 24px; }
  main { padding: 0 24px; }
  #zurueck, .pfeil { display: none !important; }
  #bild-aktuell { max-width: 100%; max-height: 62vh; }
  footer { padding: 20px 24px; }
}
