/* =========================================================
   Private Seite – Stylesheet
   Ton: Tinten-Dunkel, Messing-Akzent, Archiv/Lichttisch-Motiv
   ========================================================= */

:root {
  --bg:        #0e1116;
  --bg-raised: #171b22;
  --line:      #262b33;
  --line-soft: #1d222a;
  --text:      #e8e6e1;
  --text-muted:#8b8f98;
  --accent:    #b08d57;
  --accent-soft: #b08d5733;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Dezente Binärcode-Textur im Hintergrund, über die gesamte Seite gekachelt */
.bg-texture {
  position: fixed;
  inset: 0;
  background-image: url("binary-texture.png");
  background-repeat: repeat;
  background-size: 216px 18px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.hero, .gallery-page, .frame, .footer-note, .lightbox {
  position: relative;
  z-index: 1;
}

a { color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Landingpage ---------- */

.frame {
  position: fixed;
  inset: 18px;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 5;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
}

.ticks {
  display: none;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  position: relative;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  opacity: 0;
  animation: rise 0.7s ease-out 0.1s forwards;
}

.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  opacity: 0;
  animation: rise 0.8s ease-out 0.25s forwards;
}

.title em {
  font-style: italic;
  color: var(--accent);
}

.subtitle {
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 40px;
  opacity: 0;
  animation: rise 0.8s ease-out 0.4s forwards;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 48px;
  opacity: 0;
  animation: rise 0.8s ease-out 0.55s forwards;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  opacity: 0;
  animation: rise 0.8s ease-out 0.7s forwards;
}

.cta:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.cta svg { transition: transform 0.25s ease; }
.cta:hover svg { transform: translateX(3px); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.footer-note {
  position: fixed;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  z-index: 5;
}

/* ---------- Galerie ---------- */

.gallery-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 100px;
}

.gallery-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.gallery-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0;
}

.back-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.back-link:hover { color: var(--accent); border-color: var(--accent); }

.count-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

.warn-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 10px 14px;
  margin: -16px 0 32px;
}

.empty-state {
  border: 1px dashed var(--line);
  padding: 60px 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.empty-state code {
  font-family: var(--mono);
  color: var(--accent);
  background: var(--bg-raised);
  padding: 2px 6px;
  border-radius: 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.card .thumb-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
  position: relative;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.card:hover img { transform: scale(1.04); }

.meta {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line-soft);
}

.meta .cap-title {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meta-row + .meta-row { margin-top: 4px; }
.meta-row svg { flex: none; opacity: 0.7; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 9, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }

.lightbox-inner {
  max-width: 1280px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}

.lightbox-bild-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  max-height: 90vh;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.lightbox-info {
  flex: 0 0 260px;
  border-left: 1px solid var(--line);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.lightbox-info-zeile {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lightbox-info-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.lightbox-info-wert {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
}

@media (max-width: 780px) {
  .lightbox-inner {
    flex-direction: column;
    max-height: none;
    overflow-y: auto;
  }
  .lightbox-bild-wrap { max-height: 55vh; }
  .lightbox img { max-height: 55vh; }
  .lightbox-info {
    flex: none;
    border-left: none;
    border-top: 1px solid var(--line);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 28px;
  }
}

.lightbox-close {
  position: fixed;
  top: 28px;
  right: 34px;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 16px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 640px) {
  .frame { inset: 10px; }
  .footer-note { bottom: 20px; }
  .gallery-page { padding: 40px 16px 80px; }
}
