/* JP Studio – Aufbau beim Eintritt und Rundgang mit Mauszeiger (studio-intro.js) */
:root{--st-spring:cubic-bezier(.18,.86,.25,1.18);--st-gold:#b07f3c;--st-navy:#16264d}
html.st-enter,html.st-enter-short{background:#edf2f8}

/* D6: Bis zum ersten Zeichnen (Klasse st-go aus studio-intro.js) bleibt die Seite unsichtbar – nichts baut sich „ins Leere“
   auf. Ohne JavaScript erscheint sie nach 3 s trotzdem (st-hold). */
@keyframes st-hold{from{opacity:0}to{opacity:1}}
html.st-enter:not(.st-go) .hm,html.st-enter-short:not(.st-go) .hm{animation:st-hold 3s step-end both}

/* Voller Aufbau: Zeiten ab dem ersten Zeichnen (das Portal ist davor 210 ms ausgeblendet) */
@keyframes st-from-left{from{opacity:0;transform:translateX(-90px)}}
@keyframes st-from-top{from{opacity:0;transform:translateY(-55px)}}
@keyframes st-up35{from{opacity:0;transform:translateY(35px)}}
@keyframes st-up42{from{opacity:0;transform:translateY(42px) scale(.975)}}
@keyframes st-up22{from{opacity:0;transform:translateY(22px)}}
@keyframes st-card{from{opacity:0;transform:translateY(60px) scale(.94)}}
@keyframes st-from-bottom{from{opacity:0;transform:translateY(40px)}}
html.st-enter.st-go .hm-side{animation:st-from-left .41s var(--st-spring) both}
html.st-enter.st-go .hm-top{animation:st-from-top .41s var(--st-spring) .1s both}
html.st-enter.st-go .hm-head{animation:st-up35 .44s var(--st-spring) .19s both}
html.st-enter.st-go #view>.hm-boxcard,html.st-enter.st-go #view>:first-child:not(.hm-sec){animation:st-up42 .44s var(--st-spring) .27s both}
html.st-enter.st-go #view .hm-sechead{animation:st-up22 .4s var(--st-spring) .35s both}
html.st-enter.st-go #view .hm-sec .hm-card,html.st-enter.st-go #view .hm-sec .hm-empty{animation:st-card .51s var(--st-spring) .44s both}
html.st-enter.st-go #view .hm-sec .hm-card:nth-child(2){animation-delay:.525s}
html.st-enter.st-go #view .hm-sec .hm-card:nth-child(3){animation-delay:.61s}
html.st-enter.st-go #view .hm-sec .hm-card:nth-child(4){animation-delay:.695s}
html.st-enter.st-go #view .hm-sec .hm-card:nth-child(5){animation-delay:.78s}
html.st-enter.st-go #view .hm-sec .hm-card:nth-child(n+6){animation-delay:.865s}
html.st-enter.st-go .hm-bottomnav{animation:st-from-bottom .41s var(--st-spring) .1s both}
/* Nachgeladene Inhalte: Rahmen und Überschriften nicht erneut aufbauen; nach dem ersten Zeichnen gar nichts mehr im Inhalt */
html.st-enter #view .st-settled{animation:none!important}
html.st-redrawn #view>*,html.st-redrawn #view .hm-sechead,html.st-redrawn #view .hm-card,html.st-redrawn #view .hm-empty{animation:none!important}

/* Kurzer Wechsel bei weiteren Eintritten */
@keyframes st-short{from{opacity:0;transform:translateY(8px)}}
html.st-enter-short.st-go .hm-main{animation:st-short .2s ease-out both}
html.st-enter-short.st-go .hm-side{animation:st-short .2s ease-out both}

/* Auf dem Handy kürzere Wege */
@media (max-width:860px){
  @keyframes st-from-top{from{opacity:0;transform:translateY(-28px)}}
  @keyframes st-card{from{opacity:0;transform:translateY(34px) scale(.96)}}
  @keyframes st-up42{from{opacity:0;transform:translateY(26px) scale(.98)}}
}

/* Zurück ins Portal: das Studio tritt zurück */
html.st-leaving body{animation:st-leave .21s cubic-bezier(.5,0,.75,0) forwards;pointer-events:none}
@keyframes st-leave{to{opacity:0;transform:translateY(12px) scale(.985)}}

/* Bewegung reduzieren: nur ein kurzer Deckkraftwechsel */
@media (prefers-reduced-motion:reduce){
  html.st-enter *,html.st-enter-short *{animation:none!important}
  html.st-enter:not(.st-go) .hm,html.st-enter-short:not(.st-go) .hm{opacity:0}
  html.st-enter.st-go body,html.st-enter-short.st-go body{animation:st-fade .15s linear both}
  @keyframes st-fade{from{opacity:0}}
  html.st-leaving body{animation:st-fade-out .12s linear forwards}
  @keyframes st-fade-out{to{opacity:0}}
}

/* Hilfe oben rechts */
.st-help{position:relative}
.st-helpbtn{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--line,#dfe5ee);background:#fff;color:#18223a;cursor:pointer}
.st-helpbtn svg{width:19px;height:19px}
.st-helpmenu{position:absolute;right:0;top:calc(100% + 8px);z-index:60;min-width:210px;padding:6px;border-radius:12px;background:#fff;border:1px solid var(--line,#dfe5ee);box-shadow:0 14px 34px rgb(16 28 56/.16)}
.st-helpmenu button{display:block;width:100%;text-align:left;padding:10px 12px;border-radius:8px;border:0;background:none;font:inherit;font-size:.88rem;color:#18223a;cursor:pointer}
.st-helpmenu button:hover,.st-helpmenu button:focus-visible{background:#eef2f8}

/* Rundgang */
.st-tour{position:fixed;inset:0;z-index:200;pointer-events:none}
.st-ring{position:fixed;border:2px solid var(--st-gold);border-radius:12px;box-shadow:0 0 0 4px rgb(176 127 60/.16);opacity:0;transition:opacity .25s,left .6s cubic-bezier(.4,0,.2,1),top .6s cubic-bezier(.4,0,.2,1),width .6s cubic-bezier(.4,0,.2,1),height .6s cubic-bezier(.4,0,.2,1)}
.st-ring.on{opacity:1}
.st-cursor{position:fixed;left:0;top:0;width:26px;height:26px;filter:drop-shadow(0 2px 3px rgb(0 0 0/.3));transition:transform .75s cubic-bezier(.45,.05,.2,1);will-change:transform}
.st-pulse{position:fixed;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;border:2px solid var(--st-gold);opacity:0}
.st-pulse.go{animation:st-pulse .6s ease-out}
@keyframes st-pulse{from{opacity:.9;transform:scale(.4)}to{opacity:0;transform:scale(1.6)}}
.st-card{position:fixed;width:min(320px,calc(100vw - 24px));padding:18px 20px 16px;border-radius:18px;background:var(--st-navy);color:#fff;box-shadow:0 18px 44px rgb(10 20 45/.35);pointer-events:auto;opacity:0;transform:translateY(6px);transition:opacity .25s,transform .25s,left .5s cubic-bezier(.4,0,.2,1),top .5s cubic-bezier(.4,0,.2,1)}
.st-card.on{opacity:1;transform:none}
.st-card-eyebrow{display:flex;justify-content:space-between;font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:#e2c08f;font-weight:600}
.st-card h3{margin:10px 0 6px;font-size:1.15rem;line-height:1.25;color:#fff}
.st-card p{margin:0 0 14px;font-size:.88rem;line-height:1.5;color:#dfe6f3}
.st-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.st-card-actions button{font:inherit;font-size:.82rem;padding:8px 12px;border-radius:9px;border:1px solid #ffffff4d;background:transparent;color:#fff;cursor:pointer}
.st-card-actions button:hover,.st-card-actions button:focus-visible{background:#ffffff1f}
.st-card-actions .st-primary{background:#fff;color:var(--st-navy);border-color:#fff;font-weight:600}
.st-card-actions .st-skip{margin-left:auto;border-color:transparent;padding-inline:6px}
.st-progress{height:3px;margin-top:14px;border-radius:2px;background:#ffffff26;overflow:hidden}
.st-progress i{display:block;height:100%;width:0;background:var(--st-gold)}
@media (max-width:860px){.st-card{padding:14px 16px 12px}.st-card h3{font-size:1.02rem;margin:8px 0 4px}.st-card p{margin-bottom:10px}}
@media (prefers-reduced-motion:reduce){.st-ring,.st-card{transition:none}}
#viewTitle:focus{outline:none}
/* Admin-Gesamtübersicht „Alle Kunden“ (studio-overview.js) */
.st-custchip{display:inline-block;align-self:flex-start;max-width:100%;margin-bottom:4px;padding:2px 8px;border-radius:20px;background:#eef2f8;color:#1b2d5b;font-size:.68rem;font-weight:700;letter-spacing:.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-row .st-custchip{margin:0 0 0 8px;vertical-align:middle}
html.st-all .hm-cardmenu,html.st-all .hm-row [data-menu]{display:none!important}
.st-picklist{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;max-height:50vh;overflow:auto;margin:14px 0}
.st-picklist button{text-align:left;padding:11px 14px;border-radius:10px;border:1px solid var(--line,#dfe5ee);background:#fff;font:inherit;font-weight:600;color:#18223a;cursor:pointer}
.st-picklist button:hover,.st-picklist button:focus-visible{border-color:#b07f3c;background:#fbf7f0}
html.st-all [data-edittiles]{display:none!important}
/* D1: Platzhalter, solange die Startseite noch lädt (studio-fastload.js) */
@keyframes st-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
.st-skelline{display:block;width:72%;height:.78em;margin:5px 0;border-radius:6px;background:linear-gradient(90deg,#e6ecf5 0%,#f4f7fb 50%,#e6ecf5 100%);background-size:200% 100%;animation:st-shimmer 1.3s linear infinite}
.st-skelline.short{width:44%}
.st-skelcard,.st-skeltile{pointer-events:none;cursor:default}
.st-skelcard .hm-cardbody{min-height:64px}
.st-skeltile{color:transparent}
.hm-formats .st-skeltile .shape i.ph{display:block;width:34px;height:40px;border-radius:4px;background:#e3e9f3;opacity:1}
.st-skelbox{padding:10px 12px;border-radius:12px;background:#fff;border:1px solid var(--line,#dfe5ee)}
.st-skelbox .st-skelline{margin:6px 0}
html.st-waitcursor,html.st-waitcursor *{cursor:progress!important}
/* D4: Mediathek wird beim Öffnen geladen – bis dahin kein „Noch keine Bilder“ */
html.ps-medialoading #view .hm-empty{visibility:hidden}
@media (prefers-reduced-motion:reduce){.st-skelline{animation:none}}
.st-skeltile .st-skelline{margin:3px auto}

/* „← Zurück ins Kundenportal“ direkt unter dem Logo oben links (studio-intro.js, 27.10.2026) – ersetzt den kleinen Link unten in der Leiste.
   Schmale Leiste: zwei Zeilen; ausgeklappte Leiste: eine Zeile; Handy: nur „← Kundenportal“ neben dem Logo. */
.hm-brand{flex-wrap:wrap;row-gap:8px}
.hm-brand .st-portalback,.hm-toplogo .st-portalback{display:inline-flex;flex-direction:column;align-items:center;flex-basis:100%;margin:0;padding:5px 6px;border:1px solid #dfe5ef;border-radius:12px;background:rgba(255,255,255,.75);
  font:600 .64rem/1.25 'Schibsted Grotesk',sans-serif;letter-spacing:0;text-transform:none;color:#16264d;white-space:nowrap;transition:background .15s ease,border-color .15s ease}
.hm-brand .st-portalback span,.hm-toplogo .st-portalback span{all:unset}
.hm-brand .st-portalback .st-pb-a,.hm-toplogo .st-portalback .st-pb-a{display:inline-flex;align-items:center;gap:1px;font-weight:500;color:#5b6984}
.hm-brand .st-portalback .st-pb-b,.hm-toplogo .st-portalback .st-pb-b{font-weight:650}
.st-portalback svg{width:11px;height:11px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s ease}
.hm-brand:hover .st-portalback,.hm-toplogo:hover .st-portalback{background:#fff;border-color:#b9c6dc}
.hm-brand:hover .st-portalback svg,.hm-toplogo:hover .st-portalback svg{transform:translateX(-2px)}
.hm-brand:focus-visible,.hm-toplogo:focus-visible{outline:none}
.hm-brand:focus-visible .st-portalback,.hm-toplogo:focus-visible .st-portalback{outline:2px solid #16264d;outline-offset:2px}
html.ps-rail-open .hm-brand .st-portalback,html:not(.ps-rail) .hm-brand .st-portalback{flex-direction:row;gap:4px;padding:6px 12px;border-radius:999px;font-size:.74rem}
.hm-sidebottom .hm-back{display:none}
@media (max-width:860px){
  .hm-toplogo{display:flex;align-items:center;gap:8px;text-decoration:none}
  .hm-toplogo .st-portalback{flex-basis:auto;flex-direction:row;gap:2px;padding:6px 10px;border-radius:999px;font-size:.74rem}
  .hm-toplogo .st-portalback .st-pb-a{font-size:0;gap:0}
  .hm-toplogo .st-portalback .st-pb-a svg{width:13px;height:13px}
}
