/* Leos Fantastische Bilderwebseite — schlicht, weiß, museal */

:root {
  --bg: #ffffff;
  --text: #111111;
  --grau: #8a8a8a;
  --linie: #e6e6e6;
  --rot: #d6543c;
  --schrift: "Futura", "Futura PT", "Century Gothic", sans-serif;
}

/* Dunkle Ansicht (Kamera-Knopf oben rechts) */
html.dunkel {
  --bg: #0c0c0c;
  --text: #f2f2f2;
  --grau: #9a9a9a;
  --linie: #262626;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--schrift);
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

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

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

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.4s ease;
}

.logo {
  font-size: 14px;
  letter-spacing: 0.22em;
  font-weight: 500;
}

.kopf-rechts {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-right: 64px;
}

nav { display: flex; gap: 22px; }

nav a {
  font-size: 14px;
  letter-spacing: 0.07em;
  color: var(--grau);
  transition: color 0.3s ease;
}

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

/* Kamera-An-Aus-Knopf (hell/dunkel) */
.modus {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
  color: var(--grau);
  transition: color 0.3s ease;
}

.modus:hover { color: var(--text); }

/* Mobile Menü-Knopf (3 Striche) — auf Desktop unsichtbar */
.menu-knopf {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
  color: var(--grau);
}

.menu-knopf:hover { color: var(--text); }

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

main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 130px 32px 120px;
}

.galerie figure,
.galerie .reihe {
  margin-bottom: 15vh;
}

.galerie > :last-child { margin-bottom: 0; }

.danke {
  text-align: center;
  text-transform: none;
  margin-top: 80px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--grau);
}

.galerie .bildwrap { will-change: transform; }

.galerie img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.galerie figure:hover img { transform: scale(1.02); }
.galerie figure.hero:hover img { transform: none; }

figcaption {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grau);
}

/* Größen */
.hero         { width: 80%; }
.riesig       { width: 80%; }
.riesig-klein { width: 70%; }
.gross        { width: 49%; }
.mittel       { width: 36%; }
.klein        { width: 31%; }

/* Positionen */
.links  { margin-left: 0;    margin-right: auto; }
.mitte  { margin-left: auto; margin-right: auto; }
.rechts { margin-left: auto; margin-right: 0; }

/* Zwei Bilder nebeneinander */
.reihe {
  display: flex;
  gap: 28px;
  width: 51%;
  margin-left: auto;
  margin-right: auto;
}

.reihe figure {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
}

/* Innerhalb eines Bildpaars darf ein Bild größer als sein Partner sein */
.reihe figure.gross  { flex: 1.5; }
.reihe figure.klein  { flex: 0.65; }

/* Sind beide Bilder eines Paars gleich groß markiert, wird die ganze Reihe breiter/schmaler */
.reihe.gross  { width: 64%; }
.reihe.klein  { width: 40%; }

/* ---------- Scroll-Animation ---------- */

.einblenden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.einblenden.sichtbar {
  opacity: 1;
  transform: translateY(0);
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg); /* 100 % deckend — kein Durchscheinen der Seite */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.offen {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-rahmen {
  position: relative;
  display: inline-flex;
  max-width: 90vw;
  max-height: 86vh;
}

.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  display: block;
}

.lightbox .schliessen {
  position: absolute;
  top: 20px; right: 28px;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: var(--text);
  background: none;
  border: none;
}

.lightbox .pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  color: var(--text);
  background: none;
  border: none;
  padding: 12px;
  transition: color 0.3s ease;
}

.lightbox .pfeil:hover { color: var(--grau); }
.lightbox .vorherige { left: -78px; }
.lightbox .naechste { right: -78px; }

@media (max-width: 720px) {
  .lightbox-rahmen { max-width: 90vw; max-height: 82vh; }
  .lightbox img { max-width: 90vw; max-height: 82vh; }

  .lightbox .pfeil {
    font-size: 26px;
    padding: 8px;
    top: 100%;
    transform: none;
  }

  .lightbox .vorherige { left: 50%; right: auto; transform: translateX(calc(-100% - 28px)) translateY(14px); }
  .lightbox .naechste { left: 50%; right: auto; transform: translateX(28px) translateY(14px); }
}

/* ---------- Kontakt, Showcase & Impressum ---------- */

.seite {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.seite h1 {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--grau);
  margin-bottom: 36px;
}

.seite .email {
  font-size: clamp(16px, 2.6vw, 28px);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.seite .email:hover { color: var(--grau); transition: color 0.3s ease; }

/* Showcase */
.soon {
  min-height: 75vh;
  align-items: center;
}

.soon p {
  font-size: clamp(8px, 1.5vw, 18px);
  font-weight: 500;
  letter-spacing: 0.14em;
}

/* Kontaktseite mit Porträt */

.kontakt {
  flex-direction: row;
  align-items: center;
  gap: 64px;
}

.kontakt .portrait {
  flex: 0 1 260px;
  min-width: 0;
}

.kontakt .portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.kontakt-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.kontakt .insta {
  margin-top: 36px;
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--grau);
  transition: color 0.3s ease;
}

.kontakt .insta:hover { color: var(--text); }

.impressum { min-height: auto; max-width: 640px; }

.impressum h2 {
  font-size: 13px;
  font-weight: 500;
  margin: 32px 0 8px;
}

.impressum p { color: var(--grau); font-size: 14px; }

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

footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  padding: 40px 32px;
  border-top: 1px solid var(--linie);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grau);
}

footer a { transition: color 0.3s ease; }
footer a:hover { color: var(--text); }

.insta-icon { display: inline-flex; align-items: center; }

/* ---------- Board (Pinnboard / Infinite Canvas) ---------- */

.board-main {
  max-width: none;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

.board-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

.board-content {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.board-foto {
  position: absolute;
}

.board-foto img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  body { font-size: 16px; }

  header { padding: 16px 20px; }
  .logo { font-size: 15px; }
  .kopf-rechts { gap: 16px; margin-right: 0; }
  main { padding: 100px 20px 80px; }

  .menu-knopf { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 20px;
    margin-top: 8px;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    background: var(--bg);
    border: 1px solid var(--linie);
    padding: 20px 24px;
  }

  nav.offen { display: flex; }
  nav a { font-size: 15px; }

  .hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .hero .bildwrap {
    height: 88vh;
    overflow: hidden;
  }

  .hero img {
    height: 100%;
    object-fit: cover;
  }

  .galerie > .riesig,
  .galerie > .riesig-klein,
  .galerie > .gross,
  .galerie > .mittel,
  .galerie > .klein { width: 100%; }

  .reihe { width: 100%; gap: 14px; }
  .reihe.gross, .reihe.klein { width: 100%; }
  .reihe figure.gross, .reihe figure.klein { flex: 1; }

  .galerie figure,
  .galerie .reihe { margin-bottom: 9vh; }

  figcaption { font-size: 12px; }

  .seite h1 { font-size: 12px; }
  .seite .email { font-size: clamp(19px, 3.6vw, 30px); }
  .soon p { font-size: clamp(28px, 9vw, 52px); }

  .kontakt {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .kontakt .portrait { flex: none; width: 50%; }
  .kontakt .insta { font-size: 15px; }

  .impressum h2 { font-size: 14px; }
  .impressum p { font-size: 15px; }

  footer { padding: 32px 20px; font-size: 12px; }
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .einblenden { opacity: 1; transform: none; transition: none; }
  .galerie .bildwrap { transform: none !important; }
  .galerie img { transition: none; }
  .galerie figure:hover img { transform: none; }
}
