/* ============================================================
   portfolio.css : Stapelkarten (Portfolio) und Hero-Vorschau
   Kein Glas, kein Blur. Nur position:sticky, transform und opacity.
   Die Karten bleiben stehen, die nächste fährt darüber. Die vorherige
   schrumpft dabei leicht, per CSS Scroll-Timeline (ohne JS). Wo das fehlt
   (ältere Browser), bleibt der Stapel trotzdem, nur ohne Schrumpfen.
   ============================================================ */
.stk{--stk-top:92px;--stk-h:560px;--stk-gap:28px;position:relative;display:flex;flex-direction:column;gap:var(--stk-gap);max-width:1240px;margin:var(--head-body-gap,3rem) auto 0;padding-bottom:14vh;list-style:none}
.stk-card{--d:min(var(--i,0),6);--top:calc(var(--stk-top) + var(--d) * 10px);--topn:calc(var(--stk-top) + min(var(--i,0) + 1,6) * 10px);position:sticky;top:var(--top);height:var(--stk-h);display:grid;grid-template-columns:minmax(0,.74fr) minmax(0,1.5fr);gap:clamp(24px,4vw,56px);padding:clamp(22px,3.2vw,44px);border-radius:24px;border:1px solid transparent;background:linear-gradient(#0e141b,#0e141b) padding-box,linear-gradient(150deg,rgba(226,233,240,.55),rgba(120,132,146,.16) 28%,rgba(200,210,221,.34) 52%,rgba(90,101,114,.14) 76%,rgba(214,222,231,.42)) border-box;box-shadow:0 -22px 44px -26px rgba(0,0,0,.75);color:var(--text,#dde8f0);transform-origin:50% 0;isolation:isolate;overflow:hidden}
.stk-card::after{content:'';position:absolute;inset:0;background:#080b0e;opacity:0;pointer-events:none;z-index:6;border-radius:inherit}
.stk-info{display:flex;flex-direction:column;justify-content:space-between;min-width:0;padding:.4rem 0 .2rem}
.stk-type{margin:0 0 .85rem;font-size:.95rem;line-height:1.4;color:var(--muted,#90aec8)}
.stk-name{margin:0;font-family:var(--sans,'Space Grotesk',sans-serif);font-weight:700;font-size:clamp(1.85rem,3.3vw,3rem);line-height:1.04;letter-spacing:-.02em;color:#fff;text-wrap:balance}
.stk-foot{display:flex;flex-direction:column;align-items:flex-start;gap:1.1rem}
.stk-live{display:inline-block;padding:.32rem .75rem;border-radius:99px;border:1px solid rgba(45,255,160,.4);color:var(--green,#2dffa0);font-size:.78rem;line-height:1.2}
.stk-ext{position:relative;z-index:3;color:var(--muted,#90aec8);font-size:.92rem;text-decoration:none;border-bottom:1px solid rgba(144,174,200,.35);transition:color .2s,border-color .2s}
.stk-ext:hover,.stk-ext:focus-visible{color:#fff;border-color:#fff}
.stk-link{display:inline-flex;align-items:center;min-height:44px;gap:.6rem;color:var(--blue,#4cc4ff);font-weight:700;font-size:1rem;text-decoration:none}
.stk-link::before{content:'';position:absolute;inset:0;z-index:2}
.stk-link svg{width:1.1em;height:1.1em;transition:transform .3s cubic-bezier(.16,1,.3,1)}
@media (hover:hover){.stk-card:hover .stk-link svg{transform:translateX(5px)}}
.stk-link:focus-visible{outline:2px solid var(--blue,#4cc4ff);outline-offset:6px;border-radius:6px}
/* Bildfläche: Browserfenster plus Telefon */
.stk-visual{position:relative;min-width:0;align-self:center}
.stk-browser{border-radius:12px;overflow:hidden;background:#0a0f15;border:1px solid rgba(255,255,255,.1);box-shadow:0 30px 60px -30px rgba(0,0,0,.9)}
.stk-bar{display:flex;align-items:center;gap:6px;height:32px;padding:0 12px;background:#121a24;border-bottom:1px solid rgba(255,255,255,.06)}
.stk-bar i{width:9px;height:9px;border-radius:50%;background:#2b384a}
.stk-bar span{margin-left:10px;font-size:.72rem;color:#7f95aa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stk-screen{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top center;background:#0a0f15}
.stk-phone{position:absolute;right:-14px;bottom:-26px;width:21%;aspect-ratio:390/844;border-radius:22px;overflow:hidden;border:4px solid transparent;background:linear-gradient(#0a0f15,#0a0f15) padding-box,linear-gradient(150deg,#eef2f6,#8d97a3 30%,#cdd4dc 52%,#6b747f 76%,#dde3e9) border-box;box-shadow:0 26px 50px -18px rgba(0,0,0,.85)}
.stk-screen,.stk-phone img{color:transparent;font-size:0}
.stk-phone img{display:block;width:100%;height:100%;object-fit:cover;object-position:top center}
.stk-more{text-align:center;margin-top:1.5rem}
/* Tablet hoch und Telefon: Text oben, Bild darunter */
@media (max-width:959px){
  .stk{--stk-top:84px;--stk-h:640px;--stk-gap:22px}
  .stk-card{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:22px;padding:28px 28px 30px;border-radius:22px}
  .stk-info{flex-direction:row;align-items:flex-end;justify-content:space-between;gap:1.5rem;padding:0}
  .stk-foot{align-items:flex-end;flex-shrink:0}
  .stk-ext{display:none}
  .stk-name{font-size:clamp(1.7rem,4.6vw,2.4rem)}
  .stk-visual{align-self:start}
  .stk-phone{width:24%;right:-6px;bottom:-12px}
}
@media (max-width:640px){
  .stk{--stk-top:76px;--stk-h:410px;--stk-gap:16px;padding-bottom:2.5rem}
  .stk-card{padding:20px 18px 22px;gap:18px;border-radius:20px}
  .stk-info{flex-direction:column;align-items:flex-start;gap:.8rem}
  .stk-foot{flex-direction:row;align-items:center;gap:1rem;width:100%;justify-content:space-between}
  .stk-type{margin-bottom:.4rem;font-size:.88rem}
  .stk-name{font-size:1.65rem}
  .stk-bar{height:24px;padding:0 9px;gap:5px}
  .stk-bar i{width:7px;height:7px}
  .stk-bar span{font-size:.62rem;margin-left:6px}
  .stk-phone{width:30%;right:-4px;bottom:-14px;border-width:3px;border-radius:18px}
}
@media (max-height:640px) and (min-width:960px){.stk-card{position:relative;top:auto}}
/* Schrumpfen der vorherigen Karte, gesteuert von der Scroll-Timeline der nächsten Karte */
@keyframes stk-away{to{transform:scale(.94)}}
@keyframes stk-dim{to{opacity:.55}}
@supports (animation-timeline:view()){
  .stk{timeline-scope:--s2,--s3,--s4,--s5,--s6,--s7,--s8,--s9,--s10,--s11,--s12}
  .stk-card:not(:last-child){animation:stk-away linear both;animation-range:cover calc(100dvh - var(--topn) - var(--stk-h)) cover calc(100dvh - var(--topn))}
  .stk-card:not(:last-child)::after{animation:stk-dim linear both;animation-range:cover calc(100dvh - var(--topn) - var(--stk-h)) cover calc(100dvh - var(--topn))}
.stk-card:nth-child(2){view-timeline:--s2 block}
.stk-card:nth-child(1){animation-timeline:--s2}
.stk-card:nth-child(1)::after{animation-timeline:--s2}
.stk-card:nth-child(3){view-timeline:--s3 block}
.stk-card:nth-child(2){animation-timeline:--s3}
.stk-card:nth-child(2)::after{animation-timeline:--s3}
.stk-card:nth-child(4){view-timeline:--s4 block}
.stk-card:nth-child(3){animation-timeline:--s4}
.stk-card:nth-child(3)::after{animation-timeline:--s4}
.stk-card:nth-child(5){view-timeline:--s5 block}
.stk-card:nth-child(4){animation-timeline:--s5}
.stk-card:nth-child(4)::after{animation-timeline:--s5}
.stk-card:nth-child(6){view-timeline:--s6 block}
.stk-card:nth-child(5){animation-timeline:--s6}
.stk-card:nth-child(5)::after{animation-timeline:--s6}
.stk-card:nth-child(7){view-timeline:--s7 block}
.stk-card:nth-child(6){animation-timeline:--s7}
.stk-card:nth-child(6)::after{animation-timeline:--s7}
.stk-card:nth-child(8){view-timeline:--s8 block}
.stk-card:nth-child(7){animation-timeline:--s8}
.stk-card:nth-child(7)::after{animation-timeline:--s8}
.stk-card:nth-child(9){view-timeline:--s9 block}
.stk-card:nth-child(8){animation-timeline:--s9}
.stk-card:nth-child(8)::after{animation-timeline:--s9}
.stk-card:nth-child(10){view-timeline:--s10 block}
.stk-card:nth-child(9){animation-timeline:--s10}
.stk-card:nth-child(9)::after{animation-timeline:--s10}
.stk-card:nth-child(11){view-timeline:--s11 block}
.stk-card:nth-child(10){animation-timeline:--s11}
.stk-card:nth-child(10)::after{animation-timeline:--s11}
.stk-card:nth-child(12){view-timeline:--s12 block}
.stk-card:nth-child(11){animation-timeline:--s12}
.stk-card:nth-child(11)::after{animation-timeline:--s12}
}
@media (prefers-reduced-motion:reduce){
  .stk-card{position:relative;top:auto;animation:none!important}
  .stk-card::after{animation:none!important}
  .stk{padding-bottom:0}
}

/* ============ Hero-Vorschau: größer, scharf, wechselt zwischen Kundenseiten ============ */
.device-desktop-screen img.hero-lyr,.device-mobile-screen img.hero-lyr{position:absolute;opacity:0;transition:opacity .9s ease}
.device-desktop-screen img.hero-lyr{inset:0;width:100%;height:100%}
.device-desktop-screen img.hero-lyr.is-on,.device-mobile-screen img.hero-lyr.is-on{opacity:1}
@media (prefers-reduced-motion:reduce){.device-desktop-screen img.hero-lyr,.device-mobile-screen img.hero-lyr{transition:none}}

/* Hero-Geräte (Maße, Neigung, Tiefe): css/kopf.css */

/* ============ Übersicht: alle Projekte als Raster ============ */
.pfg{max-width:1240px;margin:5rem auto 0;padding:0 1.25rem}
.pfg-head{margin-bottom:2rem}
.pfg-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.pfg-card{position:relative;display:flex;flex-direction:column;min-width:0;border-radius:16px;overflow:hidden;background:var(--bg-card,#0d1219);border:1px solid rgba(255,255,255,.07);transition:transform .35s cubic-bezier(.16,1,.3,1),border-color .25s}
.pfg-shot{aspect-ratio:16/10;overflow:hidden;background:#0a0f15}
.pfg-shot img{display:block;width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform .6s cubic-bezier(.16,1,.3,1)}
.pfg-body{display:flex;flex-direction:column;flex:1;gap:.35rem;padding:1.1rem 1.25rem 1.2rem}
.pfg-type{margin:0;font-size:.82rem;line-height:1.4;color:var(--muted,#90aec8)}
.pfg-name{margin:0;font-family:var(--sans,'Space Grotesk',sans-serif);font-weight:700;font-size:1.3rem;line-height:1.15;letter-spacing:-.01em;color:#fff;text-wrap:balance}
.pfg-line{margin:.15rem 0 0;font-size:.95rem;line-height:1.5;color:var(--text,#dde8f0)}
.pfg-foot{margin-top:auto;padding-top:.9rem;display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.pfg-dom{font-size:.78rem;color:var(--muted,#90aec8);overflow-wrap:anywhere}
.pfg-link{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;color:var(--blue,#4cc4ff);font-weight:700;font-size:.95rem;text-decoration:none}
.pfg-link::before{content:'';position:absolute;inset:0;z-index:2}
.pfg-link svg{width:1.05em;height:1.05em;transition:transform .3s cubic-bezier(.16,1,.3,1)}
.pfg-link:focus-visible{outline:2px solid var(--blue,#4cc4ff);outline-offset:-3px;border-radius:16px}
@media (hover:hover){
  .pfg-card:hover{transform:translateY(-4px);border-color:rgba(76,196,255,.45)}
  .pfg-card:hover .pfg-shot img{transform:scale(1.04)}
  .pfg-card:hover .pfg-link svg{transform:translateX(5px)}
}
@media (max-width:959px){.pfg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}}
@media (max-width:640px){.pfg{margin-top:3rem}.pfg-grid{grid-template-columns:1fr;gap:16px}.pfg-name{font-size:1.2rem}}
@media (prefers-reduced-motion:reduce){.pfg-card,.pfg-shot img,.pfg-link svg{transition:none}.pfg-card:hover{transform:none}}
@media (min-width:960px){.pfg-card:last-child:nth-child(3n+1){grid-column:1/-1;flex-direction:row}.pfg-card:last-child:nth-child(3n+1) .pfg-shot{flex:0 0 52%;aspect-ratio:auto;min-height:260px}.pfg-card:last-child:nth-child(3n+1) .pfg-body{justify-content:center;padding:2rem 2.25rem}.pfg-card:last-child:nth-child(3n+1) .pfg-name{font-size:1.9rem}.pfg-card:last-child:nth-child(3n+1) .pfg-foot{margin-top:1.2rem}}
