/* salvador3000.com — minimalistisches Künstlerportfolio */

:root {
  --text: #1a1a1a;
  --muted: #8a8a8a;
  --line: #e8e8e8;
  --bg: #ffffff;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */

.site-header {
  text-align: center;
  padding: 3.5rem 1.5rem 2rem;
}

.site-title {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-indent: 0.35em; /* gleicht das letzte letter-spacing aus */
}

.site-title a:hover { color: var(--muted); }

.site-tagline {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  text-indent: 0.25em;
}

.site-nav {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--muted);
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--text); }

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--text);
}

.nav-instagram svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}

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

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

/* Fallback ohne JavaScript: CSS-Spalten (Reihenfolge läuft spaltenweise) */
.gallery {
  columns: 3;
  column-gap: 1.6rem;
}

@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }

/* Mit JavaScript: Masonry in Lesereihenfolge (script.js verteilt in Spalten) */
.gallery.js-masonry {
  columns: auto;
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
}

.gallery-col {
  flex: 1;
  min-width: 0;
}

.work {
  margin: 0 0 1.6rem;
  break-inside: avoid;
}

.work-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.work-open img {
  width: 100%;
  transition: opacity 0.25s ease;
}

.work-open:hover img { opacity: 0.88; }

.work figcaption {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 12, 0.94);
  padding: 3.5rem 4.5rem;
}

.lightbox[data-open="true"] { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto;
  height: auto;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: 1.1rem;
  color: #d9d9d9;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.lightbox button {
  position: absolute;
  border: 0;
  background: none;
  color: #cfcfcf;
  font-size: 2rem;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  padding: 0.8rem;
  transition: color 0.2s ease;
}

.lightbox button:hover { color: #ffffff; }

.lightbox-close { top: 1rem; right: 1.4rem; }
.lightbox-prev { left: 0.6rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.6rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 560px) {
  .lightbox { padding: 3rem 0.5rem; }
  .lightbox-prev, .lightbox-next { display: none; }
}

/* ---------- Inhaltsseiten (About, Kontakt, Rechtliches) ---------- */

.page {
  max-width: 680px;
  margin: 0 auto;
}

.page h1 {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 1.8rem;
}

.page h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 2.2rem 0 0.6rem;
}

.page p, .page li { color: #3c3c3c; }

.page a { border-bottom: 1px solid var(--line); transition: border-color 0.2s ease; }
.page a:hover { border-bottom-color: var(--text); }

.about-portrait {
  margin: 0 0 2rem;
}

.about-portrait img { width: 100%; }

.about-portrait figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li { margin-bottom: 0.9rem; }

.contact-list strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 2.2rem 1.5rem 2.8rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-bottom: 1rem;
}

.site-footer a:hover { color: var(--text); }

.site-footer .copyright { letter-spacing: 0.1em; }
