/* Die Check-in-Seite. Sie wird fast immer auf dem Handy geöffnet, im Stehen,
   mit der Jacke über dem Arm — deshalb eine Aussage pro Bildschirm, groß,
   und die Rückmeldung ohne Scrollen sichtbar. */

.cin{display:grid;place-items:center;min-height:62vh;padding:clamp(28px,6vw,72px) 0}
.cin-karte{
  width:min(560px,100%);text-align:center;
  padding:clamp(26px,4vw,44px);
  background:var(--paper,#fff);border-radius:20px;border-bottom-right-radius:5px;
  box-shadow:0 34px 80px -40px rgba(30,10,15,.45);
}
.cin-karte .h-display{font-size:clamp(1.8rem,5vw,2.9rem);line-height:1;margin:14px 0 0}
.cin-karte .lead{margin-top:12px;color:#4a4a48}
.cin-knoepfe{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:26px}
.cin-knoepfe .btn{flex:1 1 170px;justify-content:center}

/* Das Zeichen oben: ein Kreis, in den etwas hineingezeichnet wird. Der
   Haken wird GEZEICHNET statt eingeblendet — das liest sich als „erledigt",
   nicht als „war schon da". */
.cin-zeichen{display:grid;place-items:center}
.cin-haken{width:clamp(64px,16vw,92px);height:auto;fill:none;stroke-width:4;
  stroke-linecap:round;stroke-linejoin:round}
.cin-haken circle{stroke:currentColor;opacity:.16}
.cin-haken path{stroke:currentColor;
  stroke-dasharray:64;stroke-dashoffset:64;
  animation:cinZeichnen .55s .12s cubic-bezier(.16,1,.3,1) forwards}
@keyframes cinZeichnen{to{stroke-dashoffset:0}}

.cin-ok{color:#4f7a00}
.cin-schon{color:#8a6a00}
.cin-fehler{color:#B3123A}
.cin-warten{color:#55554f}
.cin-warten .cin-haken path{animation:none;stroke-dashoffset:0;opacity:.5}
/* Farbe nur am Zeichen — die Schrift bleibt schwarz und lesbar. */
.cin-karte .h-display,.cin-karte .lead{color:var(--ink)}
.cin-karte .lead{color:#4a4a48}

/* Die kleine Feier: B-Logos, die einmal durchs Bild fallen. Kein Dauerlauf —
   beim zweiten Mal wäre das nur noch lästig. */
.cin-feier{position:fixed;inset:0;pointer-events:none;z-index:400;overflow:hidden}
.cin-feier i{
  position:absolute;top:-8vh;width:16px;height:20px;opacity:.9;
  -webkit-mask:url(img/logo-sw.png) center/contain no-repeat;
  mask:url(img/logo-sw.png) center/contain no-repeat;
  animation:cinFall linear forwards;
}
.cin-feier i:nth-child(3n){background:var(--lime)}
.cin-feier i:nth-child(3n+1){background:var(--red)}
.cin-feier i:nth-child(3n+2){background:var(--ink)}
@keyframes cinFall{
  from{transform:translateY(0) rotate(0)}
  to  {transform:translateY(112vh) rotate(var(--dreh,360deg))}
}

/* Der Ausweis im Kundenkonto. Er zeigt die Mitgliedsnummer als Code — mehr
   nicht. Keine Sitzungskennung, damit ein abfotografierter Ausweis niemandem
   Zugang zum Konto gibt. */
.cin-pass{display:grid;justify-items:center;gap:14px;padding:22px;
  background:var(--paper-warm,#EFECE3);border-radius:16px;margin-top:18px}
.cin-pass svg{background:#fff;border-radius:12px;padding:10px;width:min(220px,60vw);height:auto}
.cin-pass b{font-family:var(--sub);font-size:1.05rem}
.cin-pass span{color:#55554f;font-size:.92rem;text-align:center;max-width:40ch}

@media (prefers-reduced-motion:reduce){
  .cin-haken path{animation:none;stroke-dashoffset:0}
  .cin-feier{display:none}
}
