/* ── Fonts ───────────────────────────────────────────────────────── */
@font-face {
  font-family: "Apfel";
  src: url("../fonts/ApfelGrotezk-Regular.otf") format("opentype");
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: "Apfel";
  src: url("../fonts/ApfelGrotezk-Mittel.otf") format("opentype");
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: "Apfel";
  src: url("../fonts/ApfelGrotezk-Fett.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Apfel";
  src: url("../fonts/ApfelGrotezk-Satt.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

/* ── Variablen ───────────────────────────────────────────────────── */
:root {
  --ui-width: 250px;

  --space1: 0.75rem;
  --space2: 0.5rem;
  --space3: 0.25rem;
  --space4: 1rem;

  --radius: 6px;

  --border: 1px solid var(--color3);

  --color1: rgb(255, 255, 255);
  --color2: rgb(238, 238, 238);
  --color3: rgb(214, 214, 214);
  --color6: rgb(173, 173, 173);
  --color4: rgb(125, 125, 125);
  --color5: rgb(0, 0, 0);

  --font-size1: 1.6rem;
  --font-size2: 1rem;
  --font-size3: 0.9rem;
  --font-size4: 0.7rem;

  --transition: 0.3s ease;
}


/* ── Base ────────────────────────────────────────────────────────── */
body {
    font-family: "Apfel", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100;
    height: 100%;
    background-color: var(--color5);
}

/* ── Typografie ──────────────────────────────────────────────────── */
h1 {
  font-size: var(--font-size1);
  line-height: var(--font-size1);
  font-weight: 200;
  text-align: left;
  margin-bottom: var(--space3);
  margin-top: 0;
  color: var(--color1);
}

h2 {
  font-size: var(--font-size3);
  line-height: var(--font-size3);
  line-height: 0.9rem;
  font-weight: 200;
  padding-bottom: var(--space3);
  color: var(--color1);
}

h3 {
  font-size: var(--font-size4);
  line-height: var(--font-size4);
  font-weight: 100;
  color: var(--color1);

  margin: 0;
}

p {
  font-size: var(--font-size3);
  line-height: 1.05rem;
  font-weight: 100;
  text-align: left;
  margin: 0;
  color: var(--color1);
  letter-spacing: 1%;
  word-spacing: 1%;
}

strong {
  font-weight: 200;
}

em {
  font-weight: 100;
  font-style: normal;
}

a,
a:visited {
  color: #ffa5ea;
  text-decoration: none;
  font-weight: 200;
}

.text{
  margin: var(--space1);
}

.masonry {
  column-count: 1;
  column-gap: 0;
}

@media (min-width: 600px)  { .masonry { column-count: 2; } }
@media (min-width: 800px)  { .masonry { column-count: 3; } }
@media (min-width: 1100px) { .masonry { column-count: 4; } }

.item {
  box-sizing: border-box;
  break-inside: avoid;
  padding: 5px;
}

.item__content--small  { aspect-ratio: 16 / 9;}
.item__content--medium { aspect-ratio: 4 / 5;}
.item__content--large  { aspect-ratio: 9 / 16;}

.item__content--small img,
.item__content--medium img,
.item__content--large img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild füllt den Container ohne Verzerrung */
}

.item__content--small video,
.item__content--medium video,
.item__content--large video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild füllt den Container ohne Verzerrung */
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    backdrop-filter: blur(4px);
}

.lightbox.active {
    display: flex;
}

.lightbox__media {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    cursor: default;
}

.lightbox__close {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
    background: none;
    border: none;
}

.lightbox__close:hover { opacity: 1; }

.item__content img,
.item__content video,
[class^="item__content"] img,
[class^="item__content"] video {
    cursor: zoom-in;
}

.lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.8rem 1.1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    line-height: 1;
    backdrop-filter: blur(4px);
}

.lightbox__nav:hover { background: rgba(255,255,255,0.3); }

.lightbox__prev { left: 1.2rem; }
.lightbox__next { right: 1.2rem; }

.lightbox__caption {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    opacity: 0.7;
    white-space: nowrap;
    font-weight: 100;
}