@font-face {
  font-family: "Cormorant Garamond";
  src: url(schriften/cormorant-garamond.woff2) format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(schriften/inter.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Dunkles Design: fast schwarzer, leicht warmer Grund, damit die Fotos leuchten */
:root {
  color-scheme: dark;
  --grund: #111110;
  --flaeche: #1b1a18;
  --text: #ece8e1;
  --leise: #8d877d;
  --linie: #2a2825;
  --akzent: #d4b07a;        /* warmes Gold für Punkte und Hervorhebungen */
  --akzent-dunkel: #2b241a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

.seite { max-width: 1240px; margin: 0 auto; padding: 72px 40px 40px; }

/* ---------- Startseite ---------- */
.kopf { text-align: center; margin-bottom: 56px; }
.oberzeile { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--akzent); }
.kopf h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 7vw, 68px);
  letter-spacing: .02em; margin: 6px 0 0; line-height: 1.1;
}

.titelbild {
  aspect-ratio: 3 / 1; overflow: hidden; background: var(--flaeche);
  margin: -16px 0 64px;
}

.alben {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 44px 32px;
}
.album b {
  display: block; font-family: var(--serif); font-size: 25px; font-weight: 500;
  margin-top: 14px; line-height: 1.2; transition: color .3s ease;
}
.album small { color: var(--leise); font-size: 12px; letter-spacing: .04em; }
.album:hover b, .album:focus-visible b { color: var(--akzent); }

.bildrahmen { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--flaeche); }
.bildrahmen img { transition: transform .6s ease, filter .6s ease; filter: brightness(.92); }
.album:hover .bildrahmen img, .album:focus-visible .bildrahmen img { transform: scale(1.04); filter: brightness(1); }

.leer { text-align: center; color: var(--leise); font-family: var(--serif); font-size: 22px; padding: 60px 0; }

/* ---------- Albumansicht ---------- */
.zurueck { font-size: 13px; color: var(--leise); letter-spacing: .03em; }
.zurueck:hover { color: var(--akzent); }

.albumkopf { margin: 28px 0 32px; }
.albumkopf h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 54px); margin: 0; line-height: 1.1; }
.albumkopf .info { margin: 6px 0 0; color: var(--leise); font-size: 13px; }

.raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-flow: dense;
  gap: 22px 10px;
}
.foto { margin: 0; min-width: 0; }
.foto.breit { grid-column: span 2; }
.kachel { display: block; aspect-ratio: 1; overflow: hidden; background: var(--flaeche); }
.foto.breit .kachel { aspect-ratio: 2 / 1; }
.kachel img { transition: transform .5s ease, filter .3s ease; filter: brightness(.94); }
.kachel:hover img { transform: scale(1.03); filter: brightness(1.04); }

/* Summe der Bewertungen unter jedem Foto */
.wertung {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 8px 2px 0; font-size: 12px; color: var(--leise); cursor: pointer;
}
.wertung b { color: var(--akzent); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.wertung em { margin-left: auto; font-style: normal; opacity: 0; transition: opacity .2s ease; }
.wertung.bewertet em { opacity: .8; }
.foto:hover .wertung em, .wertung:focus-visible em { opacity: 1; color: var(--text); }

/* ---------- Fuß ---------- */
.fuss {
  max-width: 1240px; margin: 48px auto 0; padding: 24px 40px 40px;
  border-top: 1px solid var(--linie); color: var(--leise); font-size: 12px; text-align: center;
}
.fuss a:hover { color: var(--akzent); }

/* ---------- Textseite (Impressum) ---------- */
.text { max-width: 680px; line-height: 1.7; }
.text h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; margin: 28px 0 24px; }
.text h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 36px 0 8px; }
.text p { color: #cfcac1; }
.text a { text-decoration: underline; text-decoration-color: var(--akzent); text-underline-offset: 3px; }

/* ---------- Großansicht ---------- */
.gross {
  position: fixed; inset: 0; z-index: 10; background: rgba(6, 6, 5, .97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.gross.offen { opacity: 1; visibility: visible; }
.gross img {
  width: auto; height: auto; max-width: calc(100vw - 140px); max-height: calc(100vh - 170px);
  object-fit: contain; user-select: none; -webkit-user-drag: none;
}
.gross > button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font: 300 34px/1 var(--sans); padding: 16px 20px; opacity: .7;
}
.gross > button:hover, .gross > button:focus-visible { opacity: 1; }
.gross .schliessen { top: 8px; right: 8px; font-size: 30px; }
.gross .zurueckpfeil { left: 8px; top: 50%; transform: translateY(-50%); }
.gross .weiterpfeil { right: 8px; top: 50%; transform: translateY(-50%); }

/* Bewertungsleiste unter dem großen Foto */
.leiste { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 12px; }
.skala { display: flex; gap: 6px; }
.skala.sendet { opacity: .5; pointer-events: none; }
.skala button {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid #3a3732; color: #bdb7ad;
  font: 500 13px/1 var(--sans); transition: background .15s, border-color .15s, color .15s;
}
.skala button:hover, .skala button:focus-visible { border-color: var(--akzent); color: var(--text); }
.skala button.an { background: var(--akzent); border-color: var(--akzent); color: #16130e; font-weight: 700; }
.stand { font-size: 12px; color: rgba(255, 255, 255, .55); letter-spacing: .03em; text-align: center; }
.stand b { color: var(--akzent); font-size: 14px; font-weight: 600; display: inline-block; }
.stand b.neu { animation: aufleuchten .6s ease; }
.stand .zaehler { font-style: normal; margin-left: 10px; opacity: .7; letter-spacing: .1em; }
@keyframes aufleuchten { 40% { transform: scale(1.25); } }

@media (max-width: 640px) {
  .seite { padding: 40px 16px 24px; }
  .kopf { margin-bottom: 36px; }
  .titelbild { margin: -8px 0 40px; }
  .alben { gap: 32px; }
  .raster { grid-template-columns: repeat(3, 1fr); gap: 14px 3px; }
  .wertung { padding: 5px 2px 0; font-size: 11px; }
  .wertung b { font-size: 12px; }
  .wertung span, .wertung em { display: none; }
  .fuss { padding: 20px 16px 32px; }
  .gross { gap: 14px; }
  .gross img { max-width: 100vw; max-height: calc(100vh - 190px); }
  .gross .zurueckpfeil, .gross .weiterpfeil { display: none; }
  .skala { gap: 3px; flex-wrap: wrap; justify-content: center; }
  .skala button { width: 30px; height: 30px; font-size: 12px; }
}

/* ---------- Archiv ---------- */
.archivleiste { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.abmelden { margin: 0; }
.abmelden button, .anmeldung button {
  background: none; border: 1px solid var(--linie); color: var(--leise); cursor: pointer;
  font: 500 12px/1 var(--sans); letter-spacing: .05em; padding: 8px 14px; border-radius: 999px;
}
.abmelden button:hover { color: var(--akzent); border-color: var(--akzent); }
.albumkopf .oberzeile { display: block; margin-bottom: 4px; }
.anmeldung { max-width: 420px; }
.anmeldung h1 { font-family: var(--serif); font-weight: 400; font-size: 48px; margin: 28px 0 4px; }
.anmeldung p { color: var(--leise); margin: 0 0 28px; }
.anmeldung form { display: grid; gap: 10px; }
.anmeldung label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); }
.anmeldung input {
  background: var(--flaeche); border: 1px solid var(--linie); color: var(--text);
  font: 16px var(--sans); padding: 12px 14px; border-radius: 6px;
}
.anmeldung input:focus { outline: none; border-color: var(--akzent); }
.anmeldung button {
  justify-self: start; margin-top: 6px; background: var(--akzent); border-color: var(--akzent);
  color: #16130e; font-size: 14px; padding: 12px 22px;
}
.anmeldung .fehler { color: #e58a7a; margin: 6px 0 0; }
