/* Blätter-Karte (Standard Restaurant-Entwürfe, 16.11.2026). Farben über Variablen anpassen. */
.bk { --bk-grund: #1d130c; --bk-papier: #f6eddd; --bk-linie: rgba(205,180,143,.5); --bk-text: #f3eadb; --bk-akzent: #8c1d2a; position: relative; }
.bk-buehne { position: relative; display: none; place-items: center; perspective: 2600px; padding: .75rem 0 .5rem; outline: none; }
.bk.als-heft .bk-buehne { display: grid; }
.bk-buehne:focus-visible { outline: 2px solid var(--bk-linie); outline-offset: 4px; }
.bk-buch { position: relative; width: calc(var(--sw) * 2); height: var(--sh); transition: transform .8s cubic-bezier(.45,.05,.25,1); transform-style: preserve-3d; }
.bk-buch.zu-vorne { transform: translateX(calc(var(--sw) * -.5)); }
.bk-buch.zu-hinten { transform: translateX(calc(var(--sw) * .5)); }
.bk-buch::before { content: ""; position: absolute; inset: -9px -11px; background: #2a1b11; box-shadow: 0 34px 60px -20px rgba(0,0,0,.7), inset 0 0 0 1px #4a3423; border-radius: 3px; transform: translateZ(-2px); }
.bk-buch.zu-vorne::before { left: 50%; } .bk-buch.zu-hinten::before { right: 50%; }
.bk-leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.45,.05,.25,1); cursor: pointer; }
.bk-leaf.um { transform: rotateY(-180deg); }
.bk-f { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--bk-papier); overflow: hidden; }
.bk-f img { width: 100%; height: 100%; object-fit: cover; max-width: none; user-select: none; -webkit-user-drag: none; }
.bk-f.hinten { transform: rotateY(180deg); }
.bk-f.vorne::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.04) 6%, transparent 13%); pointer-events: none; }
.bk-f.hinten::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(0,0,0,.2), rgba(0,0,0,.04) 6%, transparent 13%); pointer-events: none; }
/* Einzelseiten-Heft (Hochformat): Seite dreht sich nach links weg, darunter liegt die nächste */
.bk-einzel { position: relative; width: var(--sw); height: var(--sh); transform-style: preserve-3d; cursor: pointer; }
.bk-einzel::before { content: ""; position: absolute; inset: 0; transform: translate(6px, 6px); background: #d8c7a6; box-shadow: 0 30px 50px -18px rgba(0,0,0,.7); }
.bk-ep { position: absolute; inset: 0; transform-origin: 0 50%; transition: transform .85s cubic-bezier(.45,.05,.25,1), opacity .85s ease; transform-style: preserve-3d; }
.bk-ep .bk-f { box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.bk-ep.um { transform: rotateY(-115deg); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bk-leaf, .bk-buch, .bk-ep { transition-duration: .01s; } }

/* Leiste unter dem Heft */
.bk-leiste { display: none; align-items: center; justify-content: center; gap: .6rem; margin-top: .4rem; color: var(--bk-text); }
.bk.als-heft .bk-leiste { display: flex; }
.bk-leiste [data-bk-stand] { min-width: 13.5em; text-align: center; font-weight: 700; font-size: .98rem; font-variant-numeric: tabular-nums; }
.bk-rund { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--bk-linie); background: transparent; color: inherit; border-radius: 50%; cursor: pointer; transition: background-color .2s ease, opacity .2s ease; }
.bk-rund svg { width: 22px; height: 22px; }
.bk-rund[disabled] { opacity: .3; cursor: default; }
@media (hover: hover) { .bk-rund:not([disabled]):hover { background: rgba(255,255,255,.08); } }
.bk-leiste .bk-voll { margin-left: 1.2rem; min-height: 48px; display: inline-flex; align-items: center; gap: .5rem; padding: 0 1rem; border: 1px solid var(--bk-linie); background: transparent; color: inherit; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; border-radius: 2px; }
.bk-leiste .bk-voll svg { width: 18px; height: 18px; }
@media (hover: hover) { .bk-leiste .bk-voll:hover { background: rgba(255,255,255,.08); } }

/* Titelseite zum Antippen (Handy und ohne Skript) */
.bk-titel { position: relative; display: block; margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; width: min(320px, 78vw); perspective: 1200px; text-decoration: none; color: inherit; }
.bk.als-heft .bk-titel { display: none; }
.bk-titel img { width: 100%; height: auto; box-shadow: 0 2px 0 #d8c7a6, 0 4px 0 #c6b18c, 0 26px 44px -10px rgba(0,0,0,.6); transform: rotateY(-9deg) rotateX(2deg); transform-origin: 0 50%; transition: transform .5s ease; }
.bk-titel:active img { transform: rotateY(-16deg) rotateX(2deg); }
.bk-titel .bk-tipp-k { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; background: var(--bk-akzent); color: #fff; font-weight: 700; font-size: .95rem; white-space: nowrap; border-radius: 2px; }
.bk-titel .bk-tipp-k svg { width: 18px; height: 18px; }

/* Vollbild-Viewer */
.bk-viewer { position: fixed; inset: 0; z-index: 200; background: #120c08; color: #f3eadb; display: flex; flex-direction: column; overscroll-behavior: contain; }
.bk-viewer[hidden] { display: none; }
html.bk-offen, html.bk-offen body { overflow: hidden; }
.bk-kopf { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px max(12px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); padding-top: max(10px, env(safe-area-inset-top)); background: #0b0705; border-bottom: 1px solid rgba(205,180,143,.28); }
.bk-seite { font-size: .92rem; color: #d9c8ae; white-space: nowrap; }
.bk-werk { display: flex; gap: 8px; align-items: center; }
.bk-werk button, .bk-werk a { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(205,180,143,.5); background: none; color: #f3eadb; font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer; border-radius: 2px; }
.bk-werk svg { width: 18px; height: 18px; }
.bk-werk .bk-zu { background: #8c1d2a; border-color: #8c1d2a; }
.bk-werk [hidden] { display: none !important; }
.bk-flaeche { position: relative; flex: 1; min-height: 0; }
.bk-buehne.im-viewer { position: absolute; inset: 0; display: grid; padding: 0; }
.bk-pfeil { position: absolute; top: 50%; z-index: 5; width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center; border: 1px solid rgba(205,180,143,.55); border-radius: 50%; background: rgba(11,7,5,.78); color: #f3eadb; cursor: pointer; transition: opacity .2s; }
.bk-pfeil svg { width: 24px; height: 24px; }
.bk-pfeil[disabled] { opacity: .25; cursor: default; }
.bk-zurueck { left: 14px; } .bk-vor { right: 14px; }
.bk-spur { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bk-spur::-webkit-scrollbar { display: none; }
.bk-spur.gezoomt { overflow-x: hidden; scroll-snap-type: none; }
.bk-blatt { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden; display: flex; touch-action: pan-x pan-y; padding: 10px 8px 14px; }
.bk-blatt.zoom { overflow: auto; }
.bk-blatt img { flex: none; margin: auto; width: var(--bw); height: auto; max-width: none; background: #f6eddd; box-shadow: 0 10px 30px rgba(0,0,0,.5); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.bk-tipp { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 6; padding: 8px 14px; background: rgba(11,7,5,.88); font-size: .86rem; color: #e6d8c2; pointer-events: none; transition: opacity .6s; max-width: calc(100% - 140px); text-align: center; }
@media (max-width: 760px) { .bk-pfeil { top: auto; bottom: 14px; margin: 0; width: 46px; height: 46px; } .bk-zurueck { left: 10px; } .bk-vor { right: 10px; } .bk-werk .bk-pdf span { display: none; } }
@media (pointer: coarse) and (min-width: 761px) { .bk-pfeil { top: auto; bottom: 16px; margin: 0; } }
