/* ---------------------------------------------------------------------------
   Prima Danke – Portfolio
   Anmutung nach dem Vorbild daniellelevitt.com: plakative fette Grotesk,
   knallige Farbflächen, Fotos als Collage über der Typografie.
   Helvetica Now Display ist kommerziell – Archivo ist der freie Verwandte
   und bringt eine Breitenachse für die kondensierten Schnitte mit.
--------------------------------------------------------------------------- */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #fff; /* Grund der öffentlichen Seite */
  --grey: #c4c4c4; /* Verwaltung, damit sie sich von der Seite abhebt */
  --orange: #ef3d05;
  --mint: #75dfb5;
  --black: #000;

  --ui: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --edge: clamp(0.75rem, 1.4vw, 1.25rem);
  --tight: clamp(0.25rem, 0.8vw, 1.25rem); /* Abstand zwischen den Fotos */
  --bar: clamp(3.5rem, 5vw, 4.25rem);
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--black);
  font-family: var(--ui);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--orange);
  color: var(--mint);
}

img {
  max-width: 100%;
  display: block;
  /* Kein Markieren, kein Ziehen, kein Aufklappmenü bei langem Antippen */
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

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

button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Kleine Auszeichnung über den großen Werten: "Kontakt:", "Instagram:" */
.tag {
  display: block;
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  line-height: 1;
  margin-bottom: 0.25em;
}

/* --- Leiste -------------------------------------------------------------- */

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* über dem Menü-Overlay, damit das Icon zum Schließen erreichbar bleibt */
  z-index: 46;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--edge);
  color: var(--orange);
  font-size: clamp(1.35rem, 1.9vw, 1.8rem);
  line-height: 0.95;
  pointer-events: none;
}

.bar > * {
  pointer-events: auto;
}

.bar__brand {
  display: inline-block;
  transition: color 0.2s var(--ease);
}

.bar__brand:hover,
.bar__menu:hover {
  color: var(--black);
}

/* Drei Striche, die sich beim Öffnen zum Kreuz drehen */
.bar__menu {
  display: flex;
  align-items: center;
  padding: 0.25rem 0;
  color: var(--orange);
  transition: color 0.2s var(--ease);
}

.burger {
  display: block;
  position: relative;
  width: clamp(1.9rem, 2.6vw, 2.4rem);
  height: 15px;
}

.burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.15s var(--ease);
}

.burger span:nth-child(1) {
  top: 0;
}

.burger span:nth-child(2) {
  top: 6px;
}

.burger span:nth-child(3) {
  top: 12px;
}

.bar__menu[aria-expanded='true'] .burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.bar__menu[aria-expanded='true'] .burger span:nth-child(2) {
  opacity: 0;
}

.bar__menu[aria-expanded='true'] .burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- Kopfbereich mit Collage --------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--bar) + var(--edge)) var(--edge) clamp(3rem, 8vh, 6rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__name {
  margin: 0;
  color: var(--orange);
  font-size: clamp(4.5rem, 20.5vw, 21rem);
  font-stretch: 88%;
  line-height: 0.82;
  letter-spacing: -0.028em;
  width: 100%;
  position: relative;
  /* Der Schriftzug liegt vor den Fotos. Klicks reicht er durch, sonst wären
     die überdeckten Stellen der Bilder nicht mehr anklickbar. */
  z-index: 3;
  pointer-events: none;
  text-transform: none;
}

.hero__name span {
  display: block;
}

.hero__name span:last-child {
  text-align: right;
}

/* Die ersten Fotos liegen frei über dem Schriftzug. */
.collage {
  position: absolute;
  inset: calc(var(--bar) + var(--edge)) var(--edge) clamp(3rem, 8vh, 6rem);
  z-index: 2;
  pointer-events: none;
}

.collage .shot {
  position: absolute;
  margin: 0;
  pointer-events: auto;
  opacity: 0;
  animation: drop 0.9s var(--ease) forwards;
}

/* Freie Anordnung über dem Schriftzug. Die Größen sind bewusst ungleich –
   ein kleines Foto neben einem doppelt so breiten wirkt beiläufiger als
   sechs ähnlich große. Die Mitte bleibt frei, damit der Name lesbar bleibt. */
@media (min-width: 761px) {
  .collage .shot:nth-child(1) {
    left: 4%;
    top: 4%;
    width: 12%;
    animation-delay: 0.15s;
  }
  .collage .shot:nth-child(2) {
    left: 24%;
    top: 0%;
    width: 22%;
    animation-delay: 0.28s;
  }
  .collage .shot:nth-child(3) {
    right: 1%;
    top: 10%;
    width: 26%;
    animation-delay: 0.41s;
  }
  .collage .shot:nth-child(4) {
    left: 0%;
    top: 55%;
    width: 20%;
    animation-delay: 0.54s;
  }
  .collage .shot:nth-child(5) {
    left: 28%;
    top: 70%;
    width: 13%;
    animation-delay: 0.67s;
  }
  .collage .shot:nth-child(6) {
    right: 9%;
    top: 57%;
    width: 21%;
    animation-delay: 0.8s;
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(2.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Auf dem Handy dieselbe Idee wie am Desktop: Fotos frei über dem Schriftzug.
   Nur vier statt sechs – auf schmalem Schirm bliebe vom Namen sonst nichts
   übrig. Die übrigen zwei stehen ohnehin gleich darunter im Werkverzeichnis. */
@media (max-width: 760px) {
  .hero {
    padding-bottom: clamp(2rem, 6vh, 4rem);
  }
  .collage .shot:nth-child(n + 5) {
    display: none;
  }
  .collage .shot:nth-child(1) {
    left: 0%;
    top: 5%;
    width: 46%;
    animation-delay: 0.15s;
  }
  .collage .shot:nth-child(2) {
    right: 0%;
    top: 21%;
    width: 37%;
    animation-delay: 0.28s;
  }
  .collage .shot:nth-child(3) {
    left: 2%;
    top: 57%;
    width: 48%;
    animation-delay: 0.41s;
  }
  .collage .shot:nth-child(4) {
    right: 3%;
    top: 69%;
    width: 33%;
    animation-delay: 0.54s;
  }
}

/* --- Fotos --------------------------------------------------------------- */

.shot {
  margin: 0;
}

.shot__trigger {
  display: block;
  width: 100%;
  cursor: pointer;
}

.shot__frame {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: var(--mint);
  background-size: cover;
  background-position: center;
}

.shot__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.shot__frame img.is-loaded {
  opacity: 1;
}

.shot__trigger:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

/* --- Werkverzeichnis ------------------------------------------------------ */

.index {
  padding: clamp(1.75rem, 9vh, 7rem) var(--edge) clamp(3rem, 10vh, 8rem);
}

.index__head {
  display: flex;
  align-items: baseline;
  color: var(--orange);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-stretch: 78%;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: var(--tight);
  align-items: start;
}

.gallery.is-masonry {
  display: flex;
  align-items: flex-start;
}

.gallery__col {
  display: flex;
  flex-direction: column;
  gap: var(--tight);
  flex: 1 1 0;
  min-width: 0;
}

.index .shot {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.index .shot.is-in {
  opacity: 1;
  transform: none;
}

.empty {
  padding: clamp(4rem, 14vh, 9rem) 0;
  color: var(--orange);
  font-size: clamp(2rem, 6vw, 5rem);
  font-stretch: 78%;
  line-height: 0.92;
}

.empty__hint {
  color: var(--black);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  margin-top: 1rem;
}

.empty__hint a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* --- Kontakt ------------------------------------------------------------- */

.contact {
  background: var(--mint);
  color: var(--orange);
  padding: clamp(3rem, 10vh, 8rem) var(--edge) clamp(3rem, 8vh, 6rem);
  scroll-margin-top: 0;
}

.contact__lead {
  margin: 0 0 clamp(3rem, 9vh, 7rem);
  font-size: clamp(1.9rem, 5.4vw, 5rem);
  font-stretch: 92%;
  line-height: 1.02;
  letter-spacing: -0.022em;
}

/* Die Blöcke sitzen versetzt – wie die Kontaktangaben beim Vorbild. */
.contact__blocks {
  display: grid;
  gap: clamp(2rem, 6vh, 4rem);
}

.contact__block {
  font-size: clamp(1.6rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.contact__block a {
  display: inline-block;
  transition: color 0.2s var(--ease);
}

.contact__block a:hover {
  color: var(--black);
}

/* Alle Blöcke am linken Rand, Reihenfolge und Abstände wie gehabt */
.contact__block {
  text-align: left;
}

.colophon {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: var(--edge);
  color: var(--orange);
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  line-height: 1;
}

.colophon a:hover {
  color: var(--black);
}

/* --- Menü ---------------------------------------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--mint);
  color: var(--orange);
  padding: calc(var(--bar) + var(--edge)) var(--edge) var(--edge);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
}

.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 1vh, 0.75rem);
}

.menu__list a {
  display: inline-block;
  font-size: clamp(3rem, 11vw, 9rem);
  font-stretch: 70%;
  line-height: 0.95;
  letter-spacing: -0.02em;
  transition: color 0.2s var(--ease);
}

.menu__list a:hover {
  color: var(--black);
}

/* Zickzack wie im Vorbild: abwechselnd links und rechts */
.menu__list li:nth-child(even) {
  text-align: right;
}

.menu__foot {
  margin-top: auto;
  padding-top: 2rem;
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
}

body.menu-open {
  overflow: hidden;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--page);
  color: var(--orange);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--bar) + var(--edge)) var(--edge) var(--edge);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__stage {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.lightbox__stage img.is-ready {
  opacity: 1;
}

.lightbox__close {
  position: fixed;
  top: var(--edge);
  right: var(--edge);
  z-index: 2;
  font-size: clamp(1.35rem, 1.9vw, 1.8rem);
  line-height: 0.95;
}

.lightbox__close:hover {
  color: var(--black);
}

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.75rem;
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  line-height: 1;
}

.lightbox__nav {
  display: flex;
  gap: 1.25rem;
}

.lightbox__nav button:hover:not([disabled]) {
  color: var(--black);
}

.lightbox__nav button[disabled] {
  opacity: 0.35;
  cursor: default;
}

.lightbox__caption {
  color: var(--black);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.lightbox-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .collage .shot,
  .index .shot {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* --- Rechtliches --------------------------------------------------------- */

.colophon__right {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
}

.colophon__right a {
  transition: color 0.2s var(--ease);
}

.legal {
  min-height: 70svh;
  padding: calc(var(--bar) + clamp(2rem, 6vh, 4rem)) var(--edge) clamp(3rem, 8vh, 6rem);
  max-width: 52rem;
}

.legal__title {
  color: var(--orange);
  font-size: clamp(2.5rem, 9vw, 6rem);
  font-stretch: 78%;
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(2rem, 5vh, 3.5rem);
}

.legal__head {
  color: var(--orange);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.2;
  margin: 2rem 0 0.4rem;
}

.legal__head:first-child {
  margin-top: 0;
}

/* Fließtext im Normalschnitt – der fette Schnitt wäre auf Länge unlesbar */
.legal__text {
  margin: 0;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: 0;
}

.legal__back {
  display: inline-block;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  color: var(--orange);
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
}

.legal__back:hover {
  color: var(--black);
}

/* Auf schmalen Schirmen bricht die Fußzeile sonst mitten in den Angaben um */
@media (max-width: 560px) {
  .colophon {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .colophon__right {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
}

/* Verweise in der Bildunterschrift der Lightbox */
.lightbox__caption a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  pointer-events: auto;
}

.lightbox__caption a:hover {
  color: var(--black);
}
