/* ===========================================================
   NeoKaizen — Projekte als Fotostapel, Cursor, Nach-oben-Button
   =========================================================== */

/* ---------- Cursor: das Spiralzeichen (nur mit Maus) ---------- */
@media (hover: none), (pointer: coarse) {
  body, a, button, input, textarea, select,
  .hamburger, .proj-pile { cursor: auto !important; }
}

body,
a, button, input, textarea, select, .hamburger {
  cursor: url("../img/brand/cursor-gold.png") 18 18, auto;
}
#cursor, #cursor-ring { display: none !important; }
#cursor-glow { display: block; }

/* ---------- Projekte: Fotostapel ---------- */
.proj-list { display: flex; flex-direction: column; gap: 12vh; }

.proj {
  display: grid;
  grid-template-columns: minmax(260px, 30%) 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 78vh;
}

.proj-info { position: sticky; top: 22vh; align-self: start; }
.proj-idx {
  font-family: 'DM Mono', monospace; font-size: .72rem;
  letter-spacing: .2em; color: var(--gold, #c9a84c);
  display: block; margin-bottom: .9rem;
}
.proj-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.15; margin-bottom: .9rem;
}
.proj-summary { font-size: .92rem; line-height: 1.65; opacity: .75; margin-bottom: 1rem; }
.proj-meta {
  font-family: 'DM Mono', monospace; font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase;
  opacity: .45; margin-bottom: 1rem;
}
.proj-count {
  display: inline-block; margin-top: .8rem;
  font-family: 'DM Mono', monospace; font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase; opacity: .4;
}

/* ---------- YouTube-Facade (Projektkarte + eigener Videos-Abschnitt) ---------- */
.yt-facade {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 4px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); background: #000;
}
.proj-info .yt-facade { margin-top: 1.4rem; }
.yt-thumb { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.7); }
.yt-play {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px;
  border-radius: 50%; border: 1px solid rgba(201,168,76,.6);
  background: rgba(6,8,16,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer; transition: transform .2s ease, background .2s ease;
}
.yt-play svg { width: 20px; height: 20px; fill: var(--gold2, #e8c97a); margin-left: 3px; }
.yt-facade:hover .yt-play { transform: scale(1.08); background: rgba(201,168,76,.25); }
.yt-facade.playing .yt-thumb,
.yt-facade.playing .yt-play { display: none; }
.yt-facade iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Videos-Abschnitt ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.video-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem;
  margin-top: 1.1rem; margin-bottom: .5rem;
}
.video-summary { font-size: .9rem; line-height: 1.6; opacity: .75; }

/* the pile itself — images land one after another */
.proj-pile {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  perspective: 1400px;
}
.pile-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 4px;
  border: 6px solid #fbfbfa;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 3px 10px rgba(0,0,0,.4);
  transform-origin: 50% 60%;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@media (max-width: 860px) {
  .proj { grid-template-columns: 1fr; gap: 1.6rem; min-height: auto; }
  .proj-info { position: static; }
  .proj-list { gap: 8vh; }
  .pile-img { border-width: 4px; }
}

/* ---------- Nach oben ---------- */
#to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 70;
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,13,26,.78);
  border: 1px solid rgba(201,168,76,.4);
  backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  transform: translateY(10px);
}
#to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#to-top:hover { background: rgba(201,168,76,.18); }
#to-top svg { width: 17px; height: 17px; stroke: var(--gold2, #e8c97a); fill: none; stroke-width: 2; }
@media (max-width: 700px) { #to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* ---------- AR / MR Kennzeichnung in der Story ---------- */
#story-mode {
  position: absolute; right: 5vw; top: 13vh; z-index: 6;
  font-family: 'DM Mono', monospace;
  font-size: clamp(.72rem, 1.1vw, .92rem);
  letter-spacing: .28em; text-transform: uppercase;
  color: #6ff0e4;
  padding: .5rem .95rem;
  border: 1px solid rgba(111,240,228,.45);
  border-radius: 3px;
  background: rgba(111,240,228,.08);
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
}
@media (max-width: 700px) {
  #story-mode { right: 6vw; top: 11vh; font-size: .66rem; letter-spacing: .18em; padding: .35rem .6rem; }
}

/* ---------- Marke mit Zeichen ---------- */
#brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { width: 1.05em; height: 1.05em; display: block; flex: none; }

/* ---------- Über uns ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3.5rem; align-items: start; }
.about-text p { font-size: .98rem; line-height: 1.8; opacity: .82; margin-bottom: 1.15rem; }
.about-text p:first-child { font-size: 1.14rem; opacity: .95; }
.about-facts { border-top: 1px solid rgba(255,255,255,.1); }
.fact {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .95rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.fact-k {
  font-family: 'DM Mono', monospace; font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; opacity: .45;
}
.fact-v { font-family: 'DM Mono', monospace; font-size: .74rem; color: var(--gold2, #e8c97a); text-align: right; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Lightbox ---------- */
.proj-pile { cursor: url("../img/brand/cursor-gold.png") 18 18, pointer; }

#lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4,6,12,.94);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
#lightbox.open { opacity: 1; pointer-events: auto; }

.lb-img {
  max-width: 88vw; max-height: 86vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
}

.lb-nav, .lb-close {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.lb-nav:hover, .lb-close:hover {
  background: rgba(201,168,76,.2);
  border-color: rgba(201,168,76,.6);
}
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.9rem; line-height: 1; }
.lb-prev { left: 3vw; }
.lb-next { right: 3vw; }
.lb-close { top: 22px; right: 22px; width: 42px; height: 42px; font-size: 1.5rem; }

.lb-count {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: 'DM Mono', monospace; font-size: .72rem;
  letter-spacing: .18em; color: rgba(255,255,255,.6);
}

@media (max-width: 700px) {
  .lb-nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .lb-prev { left: 2vw; } .lb-next { right: 2vw; }
  .lb-img { max-width: 94vw; }
}
