/* ============================================================
   Speisekarte — blätterbare Karte (Café Servus zur Mühle)
   Eigenständige Komponente: Typenwriter-Karte auf Cremepapier
   in einem braunen "Buch". Bewusst warm & haptisch.
   Klassen sm-* gekapselt, damit nichts mit der Hauptseite kollidiert.
   ============================================================ */
.sm-wrap {
  --espresso: #46393a;
  --cream: #f4f0e7;
  --m-ink: #33312e;
  --m-muted: #7c736b;
  --leader: #bcb2a6;
  --wood: #c89a5a;

  --m-sans: "EB Garamond", Georgia, "Times New Roman", serif;
  --m-mono: "Cutive Mono", ui-monospace, "Courier New", monospace;
  --m-script: "Italianno", "Fraunces", cursive;

  font-family: var(--m-sans);
  color: var(--m-ink);
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 14px 26px;
  -webkit-text-size-adjust: 100%;
}
.sm-wrap * { box-sizing: border-box; }

.sm-book {
  position: relative;
  height: min(80vh, 760px);
  border-radius: 10px;
  box-shadow: 0 18px 40px -12px rgba(40, 30, 28, .45), 0 2px 6px rgba(0, 0, 0, .12);
}
.sm-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  outline: none;
  scrollbar-width: none;
}
.sm-track::-webkit-scrollbar { display: none; }

.sm-page { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; }

/* Cover */
.sm-cover { padding: 0; background: #e7dfce; border-radius: 10px; overflow: hidden; }
.sm-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Innenseite: brauner Rahmen + Cremepapier */
.sm-inner { background: var(--espresso); padding: 16px; border-radius: 10px; }
.sm-paper {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
  background-image: radial-gradient(rgba(120, 108, 92, .05) .5px, transparent .6px);
  background-size: 4px 4px;
  border-radius: 12px;
  padding: 24px 20px 30px;
  box-shadow: inset 0 0 0 1px rgba(120, 108, 92, .12);
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 108, 92, .45) transparent;
}
.sm-paper::-webkit-scrollbar { width: 8px; }
.sm-paper::-webkit-scrollbar-track { background: transparent; }
.sm-paper::-webkit-scrollbar-thumb {
  background: rgba(120, 108, 92, .42);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.sm-paper::-webkit-scrollbar-thumb:hover { background: rgba(99, 86, 70, .6); }

/* Kopf (nur 2. Seite) */
.sm-phead { text-align: center; padding-top: 6px; margin-bottom: 14px; }
.sm-masthead { display: block; width: 100%; max-width: 266px; height: auto; margin: 0 auto 2px; }
.sm-arch { font-family: var(--m-mono); font-size: 13px; letter-spacing: 3.4px; fill: var(--m-ink); }
.sm-menuword { font-family: var(--m-sans); font-weight: 300; font-size: 47px; letter-spacing: 9px; fill: var(--m-ink); }
.sm-hours {
  font-family: var(--m-mono); font-size: 9px; letter-spacing: .14em;
  color: var(--m-ink); margin-top: 2px; line-height: 1.9;
}
.sm-pfoot {
  margin-top: 26px; padding-top: 13px; border-top: 1px solid rgba(120, 108, 92, .18);
  font-family: var(--m-mono); font-size: 8.5px; letter-spacing: .1em;
  color: var(--m-muted); text-align: center;
}

/* Gruppen */
.sm-group { margin-top: 18px; }
.sm-script {
  font-family: var(--m-script); font-weight: 400; font-size: 38px;
  color: var(--m-ink); margin: 0 0 6px; line-height: 1.05;
}
.sm-intro { font-family: var(--m-sans); font-size: 13px; color: var(--m-ink); margin: -2px 0 12px; }
.sm-label { font-family: var(--m-sans); font-size: 12px; color: var(--m-muted); margin: 0 0 10px; }

.sm-items { display: flex; flex-direction: column; gap: 9px; }
.sm-gap { height: 11px; }
.sm-row { display: flex; align-items: flex-end; gap: 7px; }
.sm-iname {
  flex: 0 1 auto; min-width: 0;
  font-family: var(--m-mono); font-size: 11px; letter-spacing: .02em;
  text-transform: uppercase; color: var(--m-ink); line-height: 1.35;
}
.sm-iname-solo { display: block; margin-bottom: 3px; }
.sm-isub { flex: 0 1 auto; min-width: 0; font-family: var(--m-sans); font-size: 11px; color: var(--m-muted); font-style: italic; }
.sm-leader { flex: 1 1 auto; border-bottom: 1.5px dotted var(--leader); transform: translateY(-4px); min-width: 12px; }
.sm-meta { flex: 0 0 auto; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.sm-iprice { font-family: var(--m-mono); font-size: 11px; letter-spacing: .02em; color: var(--m-ink); min-width: 40px; text-align: right; }
.sm-isize { font-family: var(--m-mono); font-size: 10px; letter-spacing: .02em; color: var(--m-muted); min-width: 28px; text-align: right; }
.sm-desc { font-family: var(--m-sans); font-size: 11px; color: var(--m-muted); margin-top: 3px; line-height: 1.45; }

.sm-flavors { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.sm-flavors li {
  font-family: var(--m-mono); font-size: 10.5px; letter-spacing: .03em;
  text-transform: uppercase; color: var(--m-ink); line-height: 1.3;
  padding: 4px 0; break-inside: avoid;
}

/* Pfeile: nur Desktop/Hover, am Handy wird gewischt */
.sm-nav { display: none; }
@media (min-width: 680px) and (hover: hover) {
  .sm-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--espresso); color: var(--cream);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px -6px rgba(40, 30, 28, .45), inset 0 0 0 1px rgba(244, 240, 231, .16);
    transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  }
  .sm-nav-chev { width: 19px; height: 19px; display: block; }
  .sm-nav-prev .sm-nav-chev { margin-right: 2px; }
  .sm-nav-next .sm-nav-chev { margin-left: 2px; }
  .sm-nav:hover { background: #56474a; box-shadow: 0 8px 20px -6px rgba(40, 30, 28, .5), inset 0 0 0 1px rgba(244, 240, 231, .22); }
  .sm-nav:active { transform: translateY(-50%) scale(.94); }
  .sm-nav-prev { left: -56px; }
  .sm-nav-next { right: -56px; }
  .sm-nav:disabled { opacity: .28; pointer-events: none; box-shadow: 0 4px 12px -6px rgba(40, 30, 28, .35); }
}

/* Punkte + Hinweis */
.sm-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.sm-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: var(--leader); transition: transform .2s, background .2s;
}
.sm-dot.is-on { background: var(--espresso); transform: scale(1.35); }
.sm-hint { text-align: center; font-size: 11px; color: var(--m-muted); margin: 9px 0 0; letter-spacing: .04em; }
.sm-hint-desk { display: none; }
@media (hover: hover) and (min-width: 680px) {
  .sm-hint-touch { display: none; }
  .sm-hint-desk { display: inline; }
}

/* Scroll-Hinweis bei überstehendem Inhalt */
.sm-fade {
  position: absolute; left: 18px; right: 18px; bottom: 17px; height: 64px;
  background: linear-gradient(to bottom, rgba(244, 240, 231, 0), rgba(244, 240, 231, .97));
  border-radius: 0 0 11px 11px; pointer-events: none;
  opacity: 0; transition: opacity .25s; z-index: 2;
}
.sm-fade.is-show { opacity: 1; }
.sm-cue {
  position: absolute; left: 50%; bottom: 23px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  border: none; cursor: pointer; padding: 7px 13px 6px;
  background: rgba(70, 57, 58, .93); color: var(--cream);
  border-radius: 15px; box-shadow: 0 3px 11px rgba(40, 30, 28, .32);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 3;
}
.sm-cue.is-show { opacity: 1; pointer-events: auto; }
.sm-cue:active { transform: translateX(-50%) scale(.94); }
.sm-cue-label { font-family: var(--m-sans); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; line-height: 1; }
.sm-cue-chev { width: 15px; height: 9px; animation: smCueBounce 1.6s ease-in-out infinite; }
@keyframes smCueBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

@media (max-width: 380px) {
  .sm-masthead { max-width: 236px; }
  .sm-paper { padding: 22px 16px 26px; }
  .sm-flavors { columns: 1; }
  .sm-script { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-track { scroll-behavior: auto; }
  .sm-cue-chev { animation: none !important; }
  .sm-wrap * { transition: none !important; }
}
