/* Projektseiten (aus prototyp/projekt.html, 24.11.2026) */
/* Kopf */
.p-hero{position:relative;height:min(78vh,820px);overflow:hidden;background:#d9d5cb}
.p-hero img{width:100%;height:100%;object-fit:cover}
.p-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 25%,rgba(20,19,15,.55) 55%,rgba(20,19,15,.85))}
.p-hero__txt{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:0 clamp(16px,5vw,72px) 46px;color:#fff}
.p-hero__txt .back{font:500 12px var(--mono);color:rgba(255,255,255,.8);display:inline-block;margin-bottom:22px}
.p-hero__txt .back:hover{color:#fff}
.p-tags{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.p-tags span{font:500 10.5px var(--mono);letter-spacing:.08em;text-transform:uppercase;border:1px solid rgba(255,255,255,.5);padding:5px 10px;border-radius:999px}
.p-hero h1{font-size:clamp(34px,4.6vw,66px);line-height:1.02;letter-spacing:-.04em;font-weight:600;max-width:20ch}
.p-hero .sub{margin-top:14px;font-size:clamp(16px,1.3vw,19px);max-width:60ch;color:rgba(255,255,255,.88);line-height:1.5}
.p-hero.noimg{height:auto;background:var(--bg-soft)}
.p-hero.noimg::after{display:none}
.p-hero.noimg .p-hero__txt{position:static;color:var(--text);padding-top:90px}
.p-hero.noimg .back{color:var(--muted)}
.p-hero.noimg .p-tags span{border-color:var(--line)}
.p-hero.noimg .sub{color:var(--muted)}

/* Inhalt aus der alten Projektseite, neu gestaltet */
.p-body{padding:70px clamp(16px,5vw,72px) 90px}
.p-body .container{max-width:1100px;margin:0 auto}
.project-info-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:8px;overflow:hidden;margin-bottom:60px}
.project-info-item{background:var(--card);padding:20px 22px}
.project-info-item h4{font:500 10.5px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--med);margin-bottom:8px}
.project-info-item p{font-size:14.5px;line-height:1.5}
.project-text{max-width:720px;margin:0 auto 56px}
.project-text h2{font-size:clamp(24px,2.4vw,32px);letter-spacing:-.025em;margin:0 0 18px;font-weight:600}
.project-text h3{font-size:19px;margin:28px 0 10px}
.project-text p{font-size:17px;line-height:1.7;color:#2f2d28;margin-bottom:16px}
.project-text ul{margin:0 0 16px 20px;line-height:1.7}
.project-text a{color:var(--med);border-bottom:1px solid}
.project-gallery{display:grid;gap:14px;margin:0 0 14px}
.project-gallery--duo{grid-template-columns:1fr 1fr}
.project-gallery--trio{grid-template-columns:repeat(3,1fr)}
.project-gallery img{width:100%;height:auto;border-radius:6px;cursor:zoom-in;transition:opacity .3s}
.project-gallery img:hover{opacity:.92}
.project-gallery-caption{font-size:13px;color:var(--muted);margin:0 0 48px;text-align:center}
.publication-list{display:grid;gap:12px;margin:20px 0 50px}
.publication{display:grid;grid-template-columns:160px 1fr;gap:18px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:8px;padding:14px}
.publication__media img{width:100%;height:100px;object-fit:cover;border-radius:4px}
.publication__link{color:var(--med);font-weight:500}
.p-next{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;max-width:1100px;margin:30px auto 0;padding-top:30px;border-top:1px solid var(--line)}
.p-next a{font-weight:500}
.p-next a:hover{color:var(--med)}
.lb{position:fixed;inset:0;z-index:80;background:rgba(20,19,15,.92);display:grid;place-items:center;padding:24px;opacity:0;pointer-events:none;transition:opacity .3s;cursor:zoom-out}
.lb.on{opacity:1;pointer-events:auto}
.lb img{max-width:100%;max-height:92vh;border-radius:4px}
@media (max-width:760px){
  .project-info-grid{grid-template-columns:1fr 1fr}
  .project-gallery--duo,.project-gallery--trio{grid-template-columns:1fr}
  .publication{grid-template-columns:1fr}
}

/* Devlog (Projekte in Arbeit) */
.devlog .container{max-width:860px;margin:0 auto 60px}
.devlog__head{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin-bottom:22px}
.devlog__badge{font:500 10.5px var(--mono);letter-spacing:.12em;text-transform:uppercase;background:var(--med);color:#fff;padding:4px 9px;border-radius:4px}
.devlog__head h2{font-size:clamp(24px,2.4vw,32px);letter-spacing:-.025em}
.devlog__state{font-size:13px;color:var(--muted)}
.devlog__entry{display:grid;grid-template-columns:110px 1fr;gap:20px;padding:22px 0;border-top:1px solid var(--line)}
.devlog__entry time{font:500 12px var(--mono);color:var(--muted);padding-top:4px}
.devlog__body h3{font-size:19px;margin-bottom:12px}
.devlog__body p{font-size:16px;line-height:1.65;margin-bottom:12px}
.devlog__media{margin:0 0 16px}
.devlog__list{margin:0 0 0 18px;line-height:1.65;font-size:15.5px}
.devlog__list li{margin-bottom:6px}
.devlog__older summary{cursor:pointer;font-weight:500;padding:16px 0;border-top:1px solid var(--line)}
@media (max-width:700px){.devlog__entry{grid-template-columns:1fr;gap:8px}}

/* Labs-Fassung (dunkel) für Werkzeuge und Experimente */
body.labs{background:var(--lab-bg);color:var(--lab-text)}
body.labs .bar{background:rgba(7,9,10,.8);border-bottom-color:rgba(217,228,224,.08)}
body.labs .bar .brand i{color:var(--lab)}
body.labs .bar nav a{color:#9aa7a3}
body.labs .bar nav a:hover,body.labs .bar nav a.on{background:rgba(93,242,168,.1);color:var(--lab)}
body.labs .bar .switch{background:var(--bg);color:var(--text)!important;border-color:rgba(244,241,234,.5)}
body.labs .p-hero{background:#0d1112}
body.labs .p-hero.noimg{background:var(--lab-bg2)}
body.labs .p-hero.noimg .p-hero__txt{color:#fff}
body.labs .p-tags span{border-color:rgba(93,242,168,.35);color:var(--lab)}
body.labs .project-info-grid{background:rgba(217,228,224,.08);border-color:rgba(217,228,224,.08)}
body.labs .project-info-item{background:var(--lab-bg2)}
body.labs .project-info-item h4{color:var(--lab)}
body.labs .project-text p,body.labs .devlog__body p{color:#c9d4d0}
body.labs .project-text a{color:var(--lab)}
body.labs .project-gallery-caption,body.labs .devlog__state,body.labs .devlog__entry time{color:var(--lab-muted)}
body.labs .devlog__badge{background:var(--lab);color:#04110a}
body.labs .devlog__entry,body.labs .devlog__older summary,body.labs .p-next{border-color:rgba(217,228,224,.1)}
body.labs .p-next a:hover{color:var(--lab)}
body.labs .contact{background:var(--lab-bg2);color:var(--lab-text)}
body.labs .contact .btn{background:var(--lab);color:#04110a;border-color:var(--lab)}
body.labs .handoff{background:var(--bg);color:var(--muted)}
body.labs .handoff a{color:var(--text)}
