/* luxest.photos – zurückhaltendes Grunddesign.
   Farben und Schriften sind zentral als Variablen definiert und lassen sich später leicht anpassen. */

:root {
  --bg: #f5f4f1;
  --fg: #1b1b1a;
  --muted: #6e6c68;
  --line: #dcdad5;
  --accent: #1b1b1a;
  --viewer-bg: #0e0e0e;
  --viewer-fg: #e9e7e3;
  --header-overlay: rgba(28, 28, 28, .26); /* Grauschleier hinter Kopfzeile auf dem Bannerfoto */

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);

  --gutter: clamp(16px, 4vw, 48px);
  --content: 1240px;
  --text: 680px;
  --space: clamp(48px, 8vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--fg); color: var(--bg); padding: 6px 10px; z-index: 10; }

/* Kopfzeile */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  position: relative; z-index: 5;
}
.brand { text-decoration: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.site-nav a {
  text-decoration: none; font-size: 14px; letter-spacing: .04em; color: var(--muted);
  padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); border-color: currentColor; }
.nav-toggle { display: none; }

/* Startseite: Banner über dem Kopf */
.page-home .site-header {
  position: absolute; inset: 0 0 auto 0; color: #fff;
  background: var(--header-overlay);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.page-home .site-header .site-nav a { color: rgba(255,255,255,.88); }
.page-home .site-header .site-nav a:hover { color: #fff; }
.hero { position: relative; height: min(100svh, 1100px); min-height: 480px; background: #222; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,.45)); }
.hero-text { position: absolute; left: var(--gutter); bottom: clamp(32px, 7vw, 80px); z-index: 1; }
.hero-text h1 { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 6vw, 76px); line-height: 1.05; letter-spacing: -.01em; }
.hero-text p { margin: 10px 0 0; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }

/* Texte */
.intro, .page-body { max-width: var(--text); margin: var(--space) auto; padding: 0 var(--gutter); }
.prose { font-size: 18px; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 500; margin: 1.8em 0 .6em; }
.page-header { max-width: var(--content); margin: clamp(40px, 7vw, 100px) auto 0; padding: 0 var(--gutter); }
.page-header h1 { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 6vw, 72px); line-height: 1.05; letter-spacing: -.01em; }
.page-header .tagline { margin: 12px 0 0; color: var(--muted); font-size: 18px; }
.page-genre .intro { margin-top: 32px; max-width: var(--content); }
.page-genre .intro > * { max-width: var(--text); }
.section-label {
  max-width: var(--content); margin: 0 auto 32px; padding: 0 var(--gutter);
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}

/* Fotostrecke: große Bilder untereinander, keine Thumbnails */
.stream { margin: var(--space) 0; }
.photo {
  /* Breite so begrenzen, dass jedes Bild höchstens 88 % der Fensterhöhe einnimmt */
  --ar: 1.5;
  margin: 0 auto var(--space); padding: 0 var(--gutter);
  max-width: min(var(--content), calc(88vh * var(--ar) + 2 * var(--gutter)));
}
.photo img { width: 100%; }
.photo-link { display: block; cursor: zoom-in; }
.photo figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.photo-title { color: var(--fg); }
.photo-genre { text-decoration: none; letter-spacing: .04em; }
.photo-genre:hover { color: var(--fg); }
.empty { text-align: center; color: var(--muted); }

/* Genre-Liste auf der Startseite */
.genre-list { margin: var(--space) 0; }
.genre-list ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--content); border-top: 1px solid var(--line); }
.genre-list li { border-bottom: 1px solid var(--line); }
.genre-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 26px 0; text-decoration: none; transition: padding .25s; }
.genre-list a:hover { padding-left: 10px; }
.genre-name { font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 4vw, 44px); }
.genre-tagline { color: var(--muted); font-size: 15px; text-align: right; }

/* Einzelansicht */
.page-photo { background: var(--viewer-bg); color: var(--viewer-fg); }
.page-photo .site-nav a { color: rgba(233,231,227,.6); }
.page-photo .site-nav a:hover { color: var(--viewer-fg); }
.page-photo .site-footer { border-color: #262626; color: #888; }
.viewer { position: relative; }
.viewer-stage { display: flex; align-items: center; justify-content: center; height: calc(100svh - 150px); min-height: 320px; padding: 0 var(--gutter); }
.viewer-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.viewer-nav { display: flex; justify-content: space-between; align-items: center; max-width: 360px; margin: 18px auto 0; }
.viewer-nav a { text-decoration: none; font-size: 22px; padding: 8px 16px; color: rgba(233,231,227,.6); transition: color .2s; }
.viewer-nav a:hover { color: var(--viewer-fg); }
.photo-info { max-width: var(--text); margin: 48px auto 80px; padding: 0 var(--gutter); }
.photo-info h1 { margin: 0 0 8px; font-weight: 300; font-size: 28px; }
.photo-info .meta { display: flex; gap: 18px; color: #9a9893; font-size: 14px; margin: 0 0 20px; }
.photo-info .meta a { text-decoration: none; }
.photo-info .exif { color: #7c7a76; font-size: 13px; letter-spacing: .02em; }

.page-portrait { margin-top: 48px; }
.page-portrait .photo { max-width: 720px; margin-bottom: 0; }

/* Fußzeile */
.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 28px var(--gutter); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

.error-box { max-width: 520px; margin: 20vh auto; padding: 0 var(--gutter); }
.error-box h1 { font-weight: 300; font-size: 40px; margin: 0 0 12px; }

/* Mobil */
@media (max-width: 760px) {
  .nav-toggle {
    display: block; background: none; border: 0; color: inherit; font: inherit;
    font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 0; cursor: pointer;
  }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 8px var(--gutter) 24px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 14px; }
  .site-nav a, .page-home .site-header .site-nav a, .page-photo .site-nav a { color: var(--fg); font-size: 18px; }
  .photo { padding: 0; }
  .photo figcaption { padding: 0 var(--gutter); }
  .photo { max-width: none; }
  .genre-list a { flex-direction: column; gap: 4px; }
  .genre-tagline { text-align: left; }
  .viewer-stage { padding: 0; height: auto; min-height: 0; }
}
