/* =====================================================================
   projekte.html — Detailseite „Projekte im Detail"
   Standalone (kein Fullpage): schlankes Seiten-Chrome um die bestehende
   Iso-Würfel-Reihe (css/cubes.css) + Zoom-in-Live-Demo (css/projectview.css).
   Reduced-Motion-Fallback (.project-grid) wird über css/cubes.css
   (body.is-reduced) gesteuert — projekte-init.js setzt die Klasse.
   ===================================================================== */

.pj-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Kopfzeile ---------- */
.pj-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.9rem, 2.5vw, 1.5rem) clamp(1.2rem, 4vw, 2.6rem);
  background: linear-gradient(var(--bg) 55%, rgb(11 11 13 / 0.55) 90%, transparent);
  backdrop-filter: blur(4px);
}
.pj-brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-width: 44px; min-height: 44px;   /* am Handy steht nur das 26-px-Logo (Mobil-Check 04.10.2026) */
  text-decoration: none; color: var(--text);
}
.pj-brand-logo { width: 26px; height: 26px; color: var(--text); flex: none; }
.pj-brand-name {
  font-family: var(--font-display);
  letter-spacing: 0.2em; font-size: 0.85rem; text-transform: uppercase;
}
.pj-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px;
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  transition: color 0.2s ease;
}
.pj-back:hover { color: var(--text); }
.pj-back span { font-size: 1.1em; }

/* ---------- Inhalt ---------- */
.pj-main {
  flex: 1;
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding: clamp(1.5rem, 5vh, 3.5rem) 0 clamp(3rem, 8vh, 5rem);
}

.pj-intro {
  text-align: center;
  max-width: 46ch;
  margin: 0 auto clamp(2.5rem, 7vh, 4.5rem);
}
.pj-intro h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin: 0.3rem 0 0.7rem;
}
.pj-lead {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  margin: 0;
}

/* Würfel-Reihe zentriert; Panel/Tabs sind in cubes.css/components.css bereits
   zentriert — hier nur Abstände. */
.pj-main .cubes-stage { margin-inline: auto; }
.pj-main .project-panel { margin: clamp(1.4rem, 4vh, 2.6rem) auto 0; }
.pj-main .project-tabs { margin-top: 1.4rem; }
.pj-main .project-grid { margin-top: clamp(1.5rem, 4vh, 2.4rem); }

/* ---------- Fußzeile ---------- */
.pj-footer {
  border-top: 1px solid var(--line);
  padding: 1.8rem clamp(1.2rem, 4vw, 2.6rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.pj-footer .footer-note { color: var(--muted); font-size: 0.85rem; margin: 0; }

@media (max-width: 600px) {
  .pj-brand-name { display: none; }
}

/* Der angeschnittene zweite Würfel ragt in WebKit mit seinen 3D-Flächen über den rechten Rand
   (Seite 395 statt 393 px breit, sie ließ sich seitlich verschieben). Gekappt wird am Viewport,
   nicht an der Bühne: overflow an der Bühne würde die preserve-3d-Würfel flachdrücken. */
html:has(> body.pj-page),
body.pj-page { overflow-x: clip; }
