/* Café Eckstein, Café. Die Theke zum Anklicken: ein Foto der Barista-Theke mit Kuchenvitrine und Preistafel,
   darüber fünf Stellen (Tafel, Vitrine, Maschine, Regal, Fenster). Ein Klick legt einen Kassenbon mit dem
   Inhalt auf die Theke. Alle Maße in cqw der Bildbreite, damit die Seite mitskaliert. */
:root {
  --bg: #1C110A; --ink: #F7EFE6; --acc: #E0B27A; --mut: #CDBBA6; --line: rgba(247, 239, 230, .16);
  --paper: #FBF6EC; --paper-ink: #3A2418; --paper-mut: #6E5646; --copper: #8A4B2A; --dot: #F0B25A;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --gut: clamp(1.25rem, 5vw, 4rem); --max: 1200px;
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Raum und Bühne ---------- */
.room { position: relative; isolation: isolate; display: grid; place-items: center; min-height: calc(100svh - 2.7rem); background: var(--bg); overflow: hidden; }
.room::before { content: ""; position: absolute; inset: -4%; z-index: -1; background: url("../assets/cafe-theke.webp") 50% 50% / cover; filter: blur(22px) brightness(.5) saturate(1.1); }
.stage { position: relative; container-type: inline-size; width: min(100vw, calc((100svh - 2.7rem) * 1.7872)); aspect-ratio: 1344 / 752; }
.view { position: absolute; inset: 0; }
.scene { display: block; width: 100%; height: 100%; max-width: none; }

/* ---------- klickbare Stellen im Foto ---------- */
.hot { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); margin: 0; padding: 0; border: 0; border-radius: 1.1cqw; background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 238, 205, 0); box-shadow: inset 0 0 0 0 rgba(255, 244, 222, 0), 0 0 0 rgba(255, 226, 170, 0); transition: background .35s ease, box-shadow .35s ease; }
.hot:hover::before, .hot:focus-visible::before, .hot[aria-expanded="true"]::before { background: rgba(255, 238, 205, .05); box-shadow: inset 0 0 0 .16cqw rgba(255, 244, 222, .85), 0 0 3cqw rgba(255, 226, 170, .4); }
.hot:focus-visible { outline: 3px solid var(--acc); outline-offset: 4px; }
.tag { position: absolute; left: 50%; bottom: 0; translate: -50% 50%; display: inline-flex; align-items: center; gap: .55em; padding: .55em 1em .55em .85em; border-radius: 999px; background: #1B1109; color: var(--ink); font: 700 max(.7rem, .95cqw)/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 .3cqw 1cqw rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .16); transition: background .3s ease, color .3s ease; }
.tag::before { content: ""; flex: none; width: .72em; height: .72em; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 0 rgba(240, 178, 90, .65); animation: ping 2.6s ease-out infinite; }
.hot:hover .tag, .hot:focus-visible .tag, .hot[aria-expanded="true"] .tag { background: var(--ink); color: #1B1109; }
.hot--w .tag { left: .7cqw; top: 24%; bottom: auto; translate: 0 -50%; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(240, 178, 90, .65); } 70%, 100% { box-shadow: 0 0 0 .8em rgba(240, 178, 90, 0); } }

.hint { position: absolute; left: 50%; bottom: 2.6cqw; translate: -50% 0; margin: 0; color: var(--ink); font: 600 max(.72rem, .98cqw)/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); opacity: .88; transition: opacity .5s ease; }
.room[data-open] .hint { opacity: 0; }

.chips { display: none; }

/* ---------- Kassenbon ---------- */
.bon { position: absolute; top: 3cqw; z-index: 5; width: clamp(18rem, 27cqw, 26rem); max-height: calc(100% - 6cqw); display: none; flex-direction: column; color: var(--paper-ink); filter: drop-shadow(0 1.2cqw 2.2cqw rgba(0, 0, 0, .5)); }
.bon--r { right: 2.4cqw; }
.bon--l { left: 2.4cqw; }
.bon.on { display: flex; animation: lay .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lay { from { opacity: 0; translate: 0 2cqw; rotate: -.6deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
.paper { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1.4rem 1.5rem 1.9rem; background: linear-gradient(180deg, #FFFBF2, var(--paper) 40%, #F6EEDD); -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - .7rem) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 1.4rem .7rem repeat-x; mask: linear-gradient(#000 0 0) top / 100% calc(100% - .7rem) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 1.4rem .7rem repeat-x; scrollbar-width: thin; scrollbar-color: rgba(58, 36, 24, .35) transparent; }
.bon-h { position: relative; padding-right: 5.6rem; padding-bottom: .9rem; border-bottom: 2px dashed rgba(58, 36, 24, .25); }
.bon-e { margin-bottom: .4rem; color: var(--copper); font: 700 .7rem/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.bon h2 { font: 600 clamp(1.5rem, 2.5cqw, 2.1rem)/1.1 var(--serif); letter-spacing: -.01em; }
.bon h2 { hyphens: auto; overflow-wrap: break-word; }
.bon h2:focus { outline: none; }
.lead strong { font-weight: 600; }
.bon-x { position: absolute; top: -.2rem; right: -.3rem; min-height: 2.2rem; padding: 0 .55rem; border: 0; border-radius: .4rem; background: none; color: var(--paper-mut); font: 700 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.bon-x::after { content: " ×"; font-size: 1.1em; }
.bon-x:hover { color: var(--paper-ink); background: rgba(58, 36, 24, .08); }
.bon :focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
.bon-b { padding-top: .3rem; font-size: 1rem; line-height: 1.5; }
.lead { margin-top: .9rem; color: var(--paper-ink); font: 400 1.04rem/1.55 var(--serif); }
.sec { margin: 1.3rem 0 .15rem; color: var(--copper); font: 700 .7rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.rows { margin-top: .1rem; }
.rows li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5rem; padding: .3rem 0; }
.rows .nm { font: 600 1rem/1.35 var(--serif); }
.rows .dots { flex: 1 1 1rem; min-width: .8rem; border-bottom: 2px dotted rgba(58, 36, 24, .35); translate: 0 -.3em; }
.pr { font: 700 .98rem/1.35 var(--serif); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.rows--d li { padding-bottom: .55rem; }
.sub { display: block; flex: 0 0 100%; color: var(--paper-mut); font: italic 400 .93rem/1.4 var(--serif); }
.fine { margin-top: 1.2rem; color: var(--paper-mut); font: 400 .74rem/1.5 var(--mono); letter-spacing: .02em; }

.cakes { margin-top: .9rem; }
.cake { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) auto; align-items: center; gap: .3rem .9rem; padding: .6rem 0; border-top: 2px dotted rgba(58, 36, 24, .3); }
.cake:first-child { border-top: 0; }
.cake .thumb { width: 5.6rem; aspect-ratio: 3 / 2; border-radius: .45rem; background: #2a1a0e url("../assets/cafe-theke.webp") no-repeat; background-size: var(--bs) auto; background-position: var(--bx) var(--by); box-shadow: 0 0 0 1px rgba(58, 36, 24, .25), 0 .2rem .5rem -.1rem rgba(58, 36, 24, .45); }
.cake .ct { display: grid; min-width: 0; }
.cake .nm { font: 600 1.04rem/1.3 var(--serif); }
.cake .sub { flex: none; font-size: .9rem; }
.checks { margin-top: 1rem; }
.checks li { position: relative; padding: .32rem 0 .32rem 1.5rem; font: 400 1rem/1.45 var(--serif); }
.checks li::before { content: ""; position: absolute; left: .1rem; top: .75rem; width: .6rem; height: .35rem; border-left: 2px solid var(--copper); border-bottom: 2px solid var(--copper); rotate: -45deg; }
.addr { font: 400 1rem/1.6 var(--serif); font-style: normal; }
.status { display: inline-flex; align-items: center; gap: .55rem; margin: .8rem 0 0; padding: .35rem .8rem .35rem .65rem; border-radius: 999px; background: rgba(58, 36, 24, .08); font: 700 .74rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.status[hidden] { display: none; }
.status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #9b8f82; }
.status[data-open="1"]::before { background: #3f8a4f; box-shadow: 0 0 0 .22rem rgba(63, 138, 79, .22); }
.more { margin-top: 1.1rem; }
.lnk { padding: .4rem 0; border: 0; background: none; color: var(--copper); font: 700 .95rem/1.3 var(--serif); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; cursor: pointer; }
.lnk:hover { color: var(--paper-ink); }

/* ---------- Fuß ---------- */
.ft { padding-block: 1.6rem; border-top: 1px solid var(--line); background: #120A05; }
.ft .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.ft .note { color: var(--mut); font-size: .88rem; text-align: center; }

/* ---------- schmale Schirme: Bild oben, darunter die Themen und der Bon ---------- */
@media (max-width: 899px) {
  .room { display: block; min-height: 0; }
  .room::before { display: none; }
  .stage { width: 100%; aspect-ratio: auto; container-type: normal; }
  .view { position: relative; inset: auto; aspect-ratio: 1344 / 752; }
  .tag { left: 50%; top: 50%; bottom: auto; translate: -50% -50%; padding: 0; gap: 0; width: 1.5rem; height: 1.5rem; justify-content: center; background: rgba(27, 17, 9, .85); font-size: 0; }
  .tag::before { width: .7rem; height: .7rem; }
  .hot--w .tag { left: 50%; translate: -50% -50%; }
  .hint { display: none; }
  .chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem var(--gut) .2rem; }
  .chip { min-height: 2.75rem; padding: 0 1rem; border: 1px solid rgba(247, 239, 230, .35); border-radius: 999px; background: rgba(247, 239, 230, .06); color: var(--ink); font: 700 .78rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
  .chip[aria-expanded="true"] { background: var(--ink); color: #1B1109; border-color: var(--ink); }
  .chip:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
  .bon { position: static; width: auto; max-height: none; margin: 1.2rem var(--gut) 1.8rem; filter: drop-shadow(0 .8rem 1.2rem rgba(0, 0, 0, .45)); }
  .paper { overflow: visible; padding: 1.3rem 1.2rem 2rem; }
  .bon-x { display: none; }
  .bon-h { padding-right: 0; }
  .cake { grid-template-columns: 4.6rem minmax(0, 1fr) auto; }
  .cake .thumb { width: 4.6rem; }
}
