/* HICONIUM Scan (browser preview) and the sheet of signets. Brand as in the concept: Gellix, black, white, label greys. */
@font-face{font-family:Gellix;src:url(assets/Gellix-Regular.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Gellix;src:url(assets/Gellix-Medium.woff2) format("woff2");font-weight:500;font-display:swap}
:root{color-scheme:light dark;--bg:#fff;--ink:#1d1d1f;--ink2:#505055;--ink3:#6e6e73;--line:#d2d2d7;--fill:#f2f2f4;--s:14px;--b:17px}
@media (prefers-color-scheme:dark){:root{--bg:#000;--ink:#f5f5f7;--ink2:#b9b9bf;--ink3:#8e8e93;--line:#3a3a3c;--fill:#1c1c1e}}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
:focus,:focus-visible{outline:none}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:Gellix,-apple-system,"Helvetica Neue",sans-serif;font-size:var(--b);line-height:1.45;font-synthesis:none;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums lining-nums}
h1,h2,p,dl,dd,figure{margin:0}h1,h2,b{font-weight:500}
img,svg{display:block}
svg.i{width:20px;height:20px;fill:currentColor;flex:none}
.btn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:10px;height:50px;padding:0 24px 0 20px;border-radius:25px;background:#f5f5f7;color:#000;font:500 var(--b)/1 Gellix,-apple-system,sans-serif;cursor:pointer;white-space:nowrap;transition:transform .16s ease-out;touch-action:manipulation;text-decoration:none}
.btn.alt{background:#2c2c2e;color:#f5f5f7}
.btn:active{transform:scale(.97)}
.only-dark{display:none}
@media (prefers-color-scheme:dark){.only-dark{display:block}.only-light{display:none}}
.tk{display:inline-block;width:13px;height:14px;flex:none;--c1:#48484a;--c2:#48484a;--c3:#48484a;background:
  linear-gradient(var(--c1),var(--c1)) left bottom/3px 6px no-repeat,
  linear-gradient(var(--c2),var(--c2)) center bottom/3px 10px no-repeat,
  linear-gradient(var(--c3),var(--c3)) right bottom/3px 14px no-repeat}
.s3 .tk{--c1:#f5f5f7;--c2:#f5f5f7;--c3:#f5f5f7}.s2 .tk{--c1:#f5f5f7;--c2:#f5f5f7}.s1 .tk{--c1:#8e8e93}

/* scanner */
body.scan{background:#000;color:#f5f5f7;overflow:hidden;height:100dvh;overscroll-behavior:none;user-select:none;-webkit-user-select:none}
.stage{position:fixed;inset:0;background:#000}
.stage video,.stage img,.stage canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.stage img{display:none}
[data-state=still] .stage img,[data-state=miss] .stage img,[data-state=done] .stage img[src]{display:block}
[data-state=still] .stage video,[data-state=miss] .stage video{display:none}
[data-state=start] .stage video{opacity:0}
.ret{position:absolute;left:50%;top:46%;width:min(78vw,56vh,460px);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;box-shadow:0 0 0 1.5px rgba(245,245,247,.9),0 0 0 100vmax rgba(0,0,0,.42);transition:opacity .25s ease}
.ret i{position:absolute;background:#f5f5f7;width:1.5px;height:14px;left:50%;top:-22px;margin-left:-.75px}
.ret i:nth-child(2){top:auto;bottom:-22px}
.ret i:nth-child(3),.ret i:nth-child(4){width:14px;height:1.5px;top:50%;left:-22px;margin:-.75px 0 0}
.ret i:nth-child(4){left:auto;right:-22px}
[data-state=start] .ret,[data-state=done] .ret{opacity:0}
.bar{position:fixed;left:0;right:0;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;padding:calc(14px + env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left))}
.bar::before{content:"";position:absolute;inset:0 0 -36px;background:linear-gradient(rgba(0,0,0,.62),rgba(0,0,0,0));pointer-events:none}
.bar>*{position:relative}
.bar img{height:17px;width:auto}
.chip{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px 0 13px;border-radius:22px;background:#2c2c2e;color:#f5f5f7;font-size:var(--s);font-weight:500;text-decoration:none}
.hint{position:fixed;left:24px;right:24px;top:calc(46% + min(39vw,28vh,230px) + 40px);text-align:center;font-size:var(--b);z-index:4;text-shadow:0 1px 12px rgba(0,0,0,.6);text-wrap:balance}
[data-state=start] .hint,[data-state=done] .hint{display:none}
[data-state=miss] .hint::after{content:"Zurück";display:block;width:max-content;margin:14px auto 0;padding:0 20px;height:44px;line-height:44px;border-radius:22px;background:#f5f5f7;color:#000;font-size:var(--s);font-weight:500;text-shadow:none}

.start{position:fixed;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:0;padding:calc(72px + env(safe-area-inset-top)) 28px calc(28px + env(safe-area-inset-bottom));background:#000;transition:opacity .25s ease,visibility 0s .25s}
body:not([data-state=start]) .start{opacity:0;visibility:hidden;pointer-events:none}
.start .mark{width:min(52vw,30vh,240px);height:auto;color:#f5f5f7;margin-bottom:clamp(24px,5vh,48px)}
.start h1{font-size:clamp(34px,9vw,52px);line-height:1;letter-spacing:-.035em}
.start>p{color:#b9b9bf;max-width:22em;margin-top:14px;text-wrap:pretty}
.start .acts{display:grid;gap:10px;width:min(100%,320px);margin-top:clamp(28px,5vh,44px)}
.start .msg{color:#f5f5f7;font-size:var(--s);min-height:0;margin-top:14px;max-width:24em}
.start .msg:empty{display:none}
.start .more{color:#8e8e93;font-size:var(--s);margin-top:22px;text-underline-offset:.2em;display:inline-flex;align-items:center;min-height:44px}

.sheet{position:fixed;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:6;max-width:520px;margin-inline:auto;background:#1c1c1e;border-radius:30px;padding:22px 22px 22px;transform:translateY(calc(100% + 40px));transition:transform .42s cubic-bezier(.2,.9,.25,1);box-shadow:0 0 0 1px rgba(255,255,255,.08)}
[data-state=done] .sheet{transform:none}
.sheet .lab{font-size:var(--s);color:#8e8e93}
.sheet .id{font-size:clamp(30px,8.6vw,40px);font-weight:500;letter-spacing:-.03em;line-height:1.1;margin-top:2px;user-select:text;-webkit-user-select:text}
.sheet .st{display:flex;gap:10px;align-items:baseline;margin-top:10px;text-wrap:pretty}
.sheet .st .tk{transform:translateY(1px)}
.sheet dl{margin-top:16px;border-top:1px solid #3a3a3c}
.sheet dl div{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid #3a3a3c;font-size:var(--s)}
.sheet dl div:last-child{border-bottom:0}
.sheet dt{color:#8e8e93}.sheet dd{text-align:right}
.sheet{max-height:calc(100dvh - 72px - env(safe-area-inset-top));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.sheet .ph{margin:-22px -22px 18px;aspect-ratio:16/9;background:#000;overflow:hidden;border-radius:30px 30px 0 0}
.sheet .ph[hidden]{display:none}
.sheet .ph img{width:100%;height:100%;object-fit:cover}
.sheet .nm{font-size:var(--b);color:#f5f5f7;margin-top:6px}
.sheet .nm + .id{font-size:clamp(22px,6vw,28px);letter-spacing:.02em;color:#b9b9bf;margin-top:0}
.sheet .acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.sheet .acts .btn{width:100%;box-sizing:border-box;justify-content:center;text-decoration:none}
.sheet .acts .btn[hidden]{display:none}
.sheet .acts .btn[hidden] + .btn{grid-column:1/-1}
[data-held] .hint{cursor:pointer;text-decoration:underline;text-underline-offset:.2em}

/* signets to scan */
body.sheetpage{background:var(--bg);color:var(--ink)}
.sheetpage .top{display:flex;justify-content:space-between;align-items:center;gap:16px;max-width:1160px;margin:0 auto;padding:calc(16px + env(safe-area-inset-top)) clamp(20px,5vw,56px) 0}
.sheetpage .top img{height:18px;width:auto}
.sheetpage .top .btn{height:44px;border-radius:22px;font-size:var(--s);padding:0 18px 0 14px;background:var(--ink);color:var(--bg)}
.sheetpage main{max-width:1160px;margin:0 auto;padding:clamp(40px,7vw,88px) clamp(20px,5vw,56px) clamp(48px,7vw,96px)}
.sheetpage h1{font-size:clamp(36px,5.4vw,72px);line-height:1;letter-spacing:-.035em}
.sheetpage .lead{font-size:clamp(17px,1.4vw,20px);color:var(--ink2);max-width:32em;margin-top:16px;text-wrap:pretty}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.6vw,20px);margin-top:clamp(32px,5vw,64px)}
.card{display:block;text-decoration:none;color:inherit;background:#fff;border-radius:20px;padding:clamp(16px,2vw,24px);box-shadow:inset 0 0 0 1px var(--line);transition:transform .18s ease-out}
.card.dark{background:#000;color:#f5f5f7}
@media (prefers-color-scheme:dark){.card{box-shadow:inset 0 0 0 1px #3a3a3c;color:#1d1d1f}.card.dark{color:#f5f5f7}}
@media (hover:hover) and (pointer:fine){.card:hover{transform:translateY(-2px)}}
.card:active{transform:scale(.985)}
.card .sig{position:relative;aspect-ratio:1;display:grid;place-items:center}
.card .sig svg{width:100%;height:auto}
.card.small .sig svg{width:34%}
.card h2{font-size:var(--b);margin-top:clamp(12px,1.6vw,20px)}
.card p{font-size:var(--s);opacity:.66;margin-top:2px;text-wrap:pretty}
.card.wide{grid-column:span 2;display:grid;align-content:space-between}
.card.wide img{width:100%;height:auto;border-radius:10px}
.tape{position:absolute;left:58%;top:6%;width:30%;height:17%;background:#c9c9cf;transform:rotate(38deg);border-radius:2px;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.foot{font-size:var(--s);color:var(--ink3);margin-top:clamp(28px,4vw,48px)}
.full{position:fixed;inset:0;z-index:20;background:#fff;display:none;place-items:center;padding:6vmin}
.full.dark{background:#000}
.full:target{display:grid}
.full>a{position:absolute;inset:0}
.full .sig{position:relative;width:min(88vmin,900px);pointer-events:none}
.full.small .sig{width:min(30vmin,300px)}
.full .sig svg{width:100%;height:auto}
.full img{width:min(100%,1600px);height:auto;pointer-events:none}
.print{display:none}
@media (max-width:860px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.grid{grid-template-columns:minmax(0,1fr)}.card.wide{grid-column:auto}}
@media print{
  @page{size:A4;margin:14mm}
  *{box-shadow:none!important}
  body.sheetpage{background:#fff;color:#000}
  .sheetpage .top,.sheetpage main,.full{display:none!important}
  .print{display:block}
  .print>img{height:5mm;width:auto}
  .print h1{font-size:20pt;margin-top:10mm;letter-spacing:-.02em}
  .print p{font-size:10pt;color:#505055;max-width:120mm;margin-top:2mm}
  .print .row{display:flex;gap:10mm;align-items:flex-end;margin-top:12mm}
  .print figure{width:var(--mm)}
  .print figure svg{width:var(--mm);height:var(--mm)}
  .print figcaption{font-size:8pt;color:#6e6e73;margin-top:2mm;white-space:nowrap}
}

.start .mores{display:flex;flex-wrap:wrap;justify-content:center;gap:0 22px;max-width:360px;margin-top:22px}
.start .mores .more{margin-top:0}
/* the link list carries both languages; display:inline-flex above beat [hidden], so all seven links showed in both */
.start .more[hidden]{display:none}
/* a signet link (?t=) opens the result sheet; the start view is never meant to be seen on that way, and its language
   swap moved it while it showed (CLS 0.10 at 402 px). It keeps its space and stays unseen until the sheet is up. */
body[data-deep][data-state=start] .start{visibility:hidden}
.pages{display:flex;flex-wrap:wrap;gap:6px 22px;font-size:var(--s);color:var(--ink3);margin-top:14px}
.pages a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:.2em}

/* result sheet of a Werkssignet: the maker's design (brands.css, werksblatt.js) inside the same sliding sheet */
.sheet.branded{background:var(--b-bg);padding:0;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.sheet.branded>:not(#r-brand){display:none}
.sheet.branded .wb-ph{border-radius:30px 30px 0 0}
.card .sig img{width:100%;height:auto}
.full .sig img{width:100%;height:auto}
.sheetpage h2.group{font-size:clamp(28px,3.4vw,44px);line-height:1.05;letter-spacing:-.03em;margin-top:clamp(56px,8vw,112px)}

/* from the scan to the dossier (akte-motion.css on the motion dossiers): the car picture of the result travels into the
   dossier's head, the rest cross-fades; a dossier without the motion layer keeps the plain page change */
@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  .sheet .ph:not([hidden]){view-transition-name:mo-car}
  ::view-transition-group(mo-car){animation-duration:.42s;animation-timing-function:cubic-bezier(.16,1,.3,1)}
  ::view-transition-old(root){animation:.2s ease-out both mo-vt-out}
  ::view-transition-new(root){animation:.4s cubic-bezier(.16,1,.3,1) both mo-vt-in}
  @keyframes mo-vt-out{to{opacity:0}}
  @keyframes mo-vt-in{from{opacity:0}}
}
