/* Hero „Kombi": Gast tippt → Bestellung kommt rein → Bon druckt → Zähler steigt, Glut dahinter.
   Alle Klassen mit Präfix hk-, damit nichts mit website.css kollidiert (dort gibt es z. B. schon .bon). */

.held { overflow-x: clip; }

/* Glut */
.hk-glut { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hk-schein {
  position: absolute; left: 50%; top: 55%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 107, 53, .32), rgba(255, 107, 53, .08) 55%, transparent);
  opacity: .7; animation: hk-schein 4.5s ease-in-out infinite; pointer-events: none;
}
@keyframes hk-schein {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.94); }
  50%      { opacity: .75; transform: translate(-50%, -50%) scale(1.04); }
}
.held .handy--vorne  { animation: hk-schweben 7s ease-in-out infinite; }
.held .handy--hinten { animation: hk-schweben 7s ease-in-out -2.8s infinite; }
@keyframes hk-schweben { 50% { translate: 0 -12px; } }

/* Tipp auf dem Handy */
.hk-tipp {
  position: absolute; z-index: 3; left: 79%; top: 30%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .55) 0 30%, rgba(255, 107, 53, .35) 31% 60%, transparent 61%);
}
.hk-tipp--an { animation: hk-tipp .7s ease-out; }
@keyframes hk-tipp {
  0%   { opacity: 0; transform: scale(.4); }
  25%  { opacity: 1; transform: scale(.8); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* Bestellkarten */
.hk-strom {
  position: absolute; z-index: 4; top: -18px; right: -14px;
  display: grid; width: 300px; gap: 10px; pointer-events: none;
}
.hk-strom .hk-karte:nth-child(n+3) { display: none; }
.hk-karte {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 2px 11px; align-items: center;
  padding: 11px 14px 11px 11px; border-radius: 16px;
  background: rgba(24, 26, 36, .94); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--schatten-gross); color: #fff; font: 400 13px/1.35 var(--f-text);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s;
}
.hk-karte__icon {
  grid-row: span 2; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255, 107, 53, .16); color: var(--orange);
}
.hk-karte__icon svg { width: 19px; height: 19px; }
.hk-karte__kopf { white-space: nowrap; font: 600 10.5px/1.2 var(--f-kopf); letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.hk-karte__kopf span { color: var(--grau); letter-spacing: .02em; margin-left: 4px; }
.hk-karte__preis { grid-row: span 2; font: 700 14px/1 var(--f-kopf); letter-spacing: -.02em; }
.hk-karte__was { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--hell-auf-dunkel); }
.hk-karte--neu { animation: hk-rein .6s cubic-bezier(.2, .9, .25, 1.15) both; }
.hk-karte--raus { opacity: 0; transform: translateY(14px) scale(.94); }
@keyframes hk-rein {
  from { opacity: 0; transform: translateX(46px) scale(.9); }
  to   { opacity: 1; transform: none; }
}

/* Zähler im vorhandenen Chip */
.hk-zaehler { min-width: 168px; }
.hk-zaehler small { display: block; color: var(--leise); font: 600 11px/1.3 var(--f-kopf); letter-spacing: .08em; text-transform: uppercase; }
.hk-zaehler b { margin: 4px 0 6px; }
.hk-zaehler b.hk-puls { animation: hk-puls .5s ease-out; }
.hk-zaehler__zeile { display: block; color: var(--tinte-2); font-size: 12.5px; white-space: nowrap; }
.hk-zaehler__zeile em { font-style: normal; font-weight: 600; color: var(--tinte); font-variant-numeric: tabular-nums; }
@keyframes hk-puls { 40% { transform: scale(1.12); color: var(--gut); } }

/* Küchenbon */
.hk-bon {
  position: absolute; z-index: 4; right: -10px; bottom: 14%; width: 214px;
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5));
}
.hk-bon__schacht {
  width: 190px; height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; transition: height .28s ease-out;
}
.hk-bon__papier {
  position: relative; flex: 0 0 auto; padding: 16px 14px 12px; background: #fbfaf7; color: #1b1b1f;
  font: 500 11.5px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace;
  transition: transform .7s cubic-bezier(.5, 0, .7, .4), opacity .7s;
  -webkit-mask: linear-gradient(#000 0 0) 0 7px / 100% calc(100% - 7px) no-repeat,
    conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) 0 0 / 10px 7px repeat-x;
  mask: linear-gradient(#000 0 0) 0 7px / 100% calc(100% - 7px) no-repeat,
    conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) 0 0 / 10px 7px repeat-x;
}
.hk-bon__papier.hk-bon--ab { transform: translate(40px, -60px) rotate(9deg); opacity: 0; }
.hk-bon__zeile { display: flex; justify-content: space-between; gap: 8px; animation: hk-zeile .25s ease-out both; }
.hk-bon__zeile > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-bon__zeile--mitte { justify-content: center; font-weight: 700; letter-spacing: .14em; }
.hk-bon__zeile--linie { border-top: 1px dashed #b9b6ae; margin: 5px 0; height: 0; }
.hk-bon__zeile--fett { font-weight: 700; }
.hk-bon__zeile--orange { color: var(--orange-tief); font-weight: 700; font-size: 12.5px; }
@keyframes hk-zeile { from { opacity: 0; transform: translateY(6px); } }
.hk-bon__stempel {
  display: block; width: fit-content; margin: 12px auto 4px; padding: 5px 10px;
  border: 2.5px solid var(--orange-tief); border-radius: 6px; color: var(--orange-tief);
  font: 700 15px/1 var(--f-kopf); letter-spacing: .02em; transform: rotate(-10deg);
  mix-blend-mode: multiply; animation: hk-stempel .35s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes hk-stempel { from { opacity: 0; transform: rotate(-10deg) scale(1.9); } }
.hk-bon__drucker {
  position: relative; width: 100%; height: 44px; border-radius: 10px 10px 14px 14px;
  background: linear-gradient(180deg, #30333f, #15161d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 0;
  color: var(--grau); font: 600 10px/1 var(--f-kopf); letter-spacing: .14em; text-transform: uppercase;
}
.hk-bon__drucker::before { /* Papierschlitz */
  content: ""; position: absolute; left: 10px; right: 10px; top: 5px; height: 3px; border-radius: 3px; background: #050507;
}
.hk-bon__led { width: 7px; height: 7px; border-radius: 50%; background: #2f7a4b; }
.hk-bon--druckt .hk-bon__led { background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: hk-led .3s steps(2) infinite; }
@keyframes hk-led { 50% { opacity: .35; } }

/* Handy: zu eng für Karten UND Bon – der Bon erzählt die Bestellung allein */
@media (max-width: 959px) {
  .hk-strom { display: none; }
  .hk-bon { right: 0; width: 180px; bottom: 40%; }
  .hk-bon__schacht { width: 160px; }
  .hk-bon__papier { font-size: 10.5px; padding: 14px 11px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hk-schein, .hk-karte--neu, .hk-tipp--an, .hk-bon__zeile, .hk-bon__stempel,
  .held .handy--vorne, .held .handy--hinten { animation: none !important; }
}
