/* 61 – Kassenbon · Thermodruck auf dem Tisch · DM Mono + Noto Sans Mono */
:root {
  --table: #a9a296;
  --table-d: #8f887c;
  --paper: #fcfbf7;
  --ink: #1c1c1a;
  --ink-2: #3b3b37;
  --faint: #6b6a64;
  --mono: 'DM Mono', ui-monospace, 'DejaVu Sans Mono', Menlo, Consolas, monospace;
  --head: 'Noto Sans Mono', 'DM Mono', ui-monospace, 'DejaVu Sans Mono', monospace;
  --w: 560px;
  --px: 34px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 15px/1.6 var(--mono); overflow-x: clip;
  background-color: var(--table);
  background-image: radial-gradient(120% 80% at 50% 0%, rgba(255, 250, 240, .28), rgba(0, 0, 0, 0) 60%), url(table.svg);
  background-attachment: fixed, scroll;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px dashed var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; font-family: var(--mono); }
.skip:focus { top: 12px; }

/* ---------- Papierbahn ---------- */
.paper-wrap { position: relative; padding: 46px 0 120px; }
.receipt {
  position: relative; width: min(var(--w), calc(100% - 20px)); margin: 0 auto; padding: 30px var(--px) 38px;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(60, 50, 30, .055), rgba(60, 50, 30, 0) 9%, rgba(255, 255, 255, 0) 50%, rgba(60, 50, 30, 0) 91%, rgba(60, 50, 30, .06)),
    repeating-linear-gradient(180deg, rgba(60, 50, 30, 0) 0 520px, rgba(60, 50, 30, .035) 600px, rgba(60, 50, 30, 0) 680px, rgba(60, 50, 30, 0) 900px);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 22px 40px -12px rgba(50, 40, 25, .45), 12px 0 30px -18px rgba(50, 40, 25, .35);
}
.receipt::before, .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background-size: 16px 10px; background-repeat: repeat-x; }
.receipt::before { top: -10px; background-image: linear-gradient(135deg, transparent 50%, var(--paper) 50%), linear-gradient(225deg, transparent 50%, var(--paper) 50%); background-image: conic-gradient(from 135deg at 50% 0, var(--paper) 90deg, transparent 0); }
.receipt::after { bottom: -10px; background-image: conic-gradient(from -45deg at 50% 100%, var(--paper) 90deg, transparent 0); }

/* Trennlinien */
.rule-d, .rule-s, .rule-eq { height: 2px; margin: 22px 0; background: repeating-linear-gradient(90deg, var(--ink) 0 7px, transparent 7px 12px); }
.rule-s { background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 6px); opacity: .7; }
.rule-eq { height: 7px; background: repeating-linear-gradient(90deg, var(--ink) 0 7px, transparent 7px 12px) 0 0 / 100% 2px no-repeat, repeating-linear-gradient(90deg, var(--ink) 0 7px, transparent 7px 12px) 0 100% / 100% 2px no-repeat; }
.tear { position: relative; height: 2px; margin: 34px calc(-1 * var(--px)); background: repeating-linear-gradient(90deg, var(--faint) 0 4px, transparent 4px 9px); }
.tear span { position: absolute; left: 16px; top: 50%; translate: 0 -54%; padding: 0 6px; background: var(--paper); font: 400 18px/1 'DejaVu Sans', system-ui, sans-serif; color: var(--faint); }

/* ---------- Kopf ---------- */
.top { text-align: center; }
.r-bar { display: none; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.logo { display: inline-block; }
.logo img { width: 104px; height: auto; margin: 0 auto; filter: grayscale(1) contrast(1.9) brightness(.95); }
.shop { margin-top: 14px; font-size: 14px; line-height: 1.55; text-transform: uppercase; letter-spacing: .03em; }
.shop strong { font: 700 15px/1.4 var(--head); }
.bon-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin: -8px 0; }

/* Tastenfeld (Navigation) */
.keypad { position: fixed; z-index: 40; top: 46px; left: max(16px, calc(50% - var(--w) / 2 - 300px)); width: 252px; padding: 16px 16px 20px; border-radius: 18px; text-align: left;
  background: linear-gradient(180deg, #45443f, #34332f); box-shadow: 0 2px 0 #5c5a53 inset, 0 24px 40px -14px rgba(30, 25, 15, .6), 0 3px 0 #22211e; }
.kp-label { margin: 2px 4px 14px; padding: 7px 10px; border-radius: 6px; background: #22221f; color: #9fe3c1; font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6); text-shadow: 0 0 6px rgba(120, 255, 190, .45); }
.keypad ul { display: grid; gap: 10px; }
.keypad ul a, .key-call, .key-lang { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border-radius: 9px; text-decoration: none; font: 500 13px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #262622;
  background: linear-gradient(180deg, #f6f3ea, #ddd7c8); box-shadow: inset 0 1px 0 #fff, 0 4px 0 #9a9384, 0 5px 6px rgba(0, 0, 0, .35); transition: transform .08s, box-shadow .08s; }
.keypad a:hover { background: linear-gradient(180deg, #fffdf6, #e7e1d2); }
.keypad a:active { transform: translateY(3px); box-shadow: inset 0 1px 0 #fff, 0 1px 0 #9a9384, 0 1px 2px rgba(0, 0, 0, .35); }
.fk { flex: none; display: grid; place-items: center; width: 30px; height: 22px; border-radius: 4px; background: #262622; color: #f1eee6; font-size: 11px; }
.key-call { margin-top: 14px; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 64px; color: #fff; background: linear-gradient(180deg, #4a9a63, #33794a); box-shadow: inset 0 1px 0 #7cc893, 0 4px 0 #1f4f2e, 0 5px 6px rgba(0, 0, 0, .35); }
.key-call span { font-size: 11px; letter-spacing: .14em; opacity: .9; }
.key-call strong { font: 700 17px/1 var(--head); letter-spacing: .02em; }
.keypad a.key-call:hover { background: linear-gradient(180deg, #55a96f, #3a8453); }
.key-lang { margin-top: 10px; justify-content: center; background: linear-gradient(180deg, #f3d36b, #dcb53a); box-shadow: inset 0 1px 0 #fff2b8, 0 4px 0 #9c7d1c, 0 5px 6px rgba(0, 0, 0, .35); }
.keypad a.key-lang:hover { background: linear-gradient(180deg, #f8dc7f, #e4bf49); }
.keypad :focus-visible { outline: 3px solid #9fe3c1; outline-offset: 2px; }

/* Kundenanzeige rechts */
.pole { position: fixed; z-index: 30; top: 46px; right: max(16px, calc(50% - var(--w) / 2 - 300px)); width: 252px; }
.pole-screen { overflow: hidden; padding: 16px 0; border-radius: 12px; background: #141a17; border: 8px solid #3d3c38; box-shadow: inset 0 0 18px rgba(0, 0, 0, .8), 0 20px 30px -14px rgba(30, 25, 15, .55); white-space: nowrap; }
.pole-run { display: inline-block; padding-left: 100%; font: 500 18px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8ff5cf; text-shadow: 0 0 8px rgba(110, 255, 200, .55); animation: run 26s linear infinite; }
@keyframes run { to { transform: translateX(-100%); } }
.pole-stand { width: 34px; height: 120px; margin: 0 auto; background: linear-gradient(90deg, #4b4a45, #6a6862 45%, #3c3b37); box-shadow: 0 20px 22px -10px rgba(30, 25, 15, .5); }
.pole-stand::after { content: ""; display: block; position: relative; top: 120px; left: -43px; width: 120px; height: 14px; border-radius: 8px; background: #3d3c38; }

/* ---------- Hero ---------- */
.hero { text-align: left; padding-top: 6px; }
.kicker { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 18px; }
.hero h1 { font: 800 clamp(28px, 2.5vw, 36px)/1.12 var(--head); letter-spacing: -.035em; margin-bottom: 20px; hyphens: manual; }
.hero-text { margin-bottom: 24px; hyphens: auto; }
.ctas { display: grid; gap: 10px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 16px; font: 700 15px/1.2 var(--head); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; text-align: center; }
.btn-inv { background: var(--ink); color: var(--paper); }
.btn-inv:hover { background: #3a3a36; }
.btn-dash { border: 2px dashed var(--ink); }
.btn-dash:hover { background: rgba(0, 0, 0, .05); }
.btn-full { margin-top: 24px; }

/* ---------- Blöcke ---------- */
.block { padding: 4px 0; }
.dh { display: block; margin: 8px 0 26px; text-align: center; font: 800 23px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; transform: scaleY(1.75); }
.block h2 { font: 700 21px/1.3 var(--head); letter-spacing: -.02em; margin-bottom: 12px; text-wrap: balance; }
.intro { color: var(--ink-2); margin-bottom: 22px; hyphens: auto; }
.items li { padding: 12px 0; border-top: 1px dashed rgba(28, 28, 26, .35); }
.items li:first-child { border-top: 0; }
.it-head { display: flex; align-items: baseline; gap: 10px; }
.qty { flex: none; width: 3.2ch; font-size: 13px; color: var(--faint); }
.it-name { flex: 1; display: flex; align-items: baseline; font: 700 15.5px/1.35 var(--head); text-transform: uppercase; letter-spacing: -.01em; }
.it-name::after { content: ""; flex: 1 0 18px; margin: 0 0 .28em 10px; border-bottom: 2px dotted rgba(28, 28, 26, .55); }
.it-amt { flex: none; font: 700 15px/1 var(--head); }
.it-text { padding-left: calc(3.2ch + 10px); margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--ink-2); hyphens: auto; }
.sub-label { font: 700 14px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: max-content 1fr; align-items: baseline; gap: 10px 16px; }
.stats li { display: contents; }
.stats strong { font: 800 26px/1 var(--head); letter-spacing: -.04em; white-space: nowrap; }
.stats span { font-size: 13.5px; text-transform: uppercase; line-height: 1.35; }
.route { margin-top: 28px; padding: 18px 18px 16px; border: 2px dashed var(--ink); }
.route-title { text-align: center; font: 700 14px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.legs li { display: grid; grid-template-columns: auto auto auto 1fr; gap: 10px; align-items: baseline; padding: 5px 0; font: 700 18px/1.2 var(--head); }
.legs .arr { font-size: 13px; color: var(--faint); }
.legs .mode { justify-self: end; font: 400 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.route figcaption { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(28, 28, 26, .4); font-size: 13.5px; line-height: 1.55; }
.route-note { margin-top: 8px; font-style: italic; }
.steps { display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 6ch 1fr; column-gap: 10px; }
.st-n { grid-row: 1 / 3; font-size: 13px; color: var(--faint); padding-top: 3px; }
.steps h3 { font: 700 16px/1.3 var(--head); text-transform: uppercase; }
.steps p { font-size: 14px; color: var(--ink-2); }
.total { margin: 34px 0 30px; }
.sum { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0 16px; font: 800 24px/1 var(--head); text-transform: uppercase; letter-spacing: .02em; transform: scaleY(1.6); }
.thermo { position: relative; margin: 6px 0 24px; overflow: hidden; background: var(--paper); }
.thermo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.7) brightness(1.12); opacity: .82; mix-blend-mode: multiply; }
.thermo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  repeating-linear-gradient(180deg, rgba(252, 251, 247, .0) 0 2px, rgba(252, 251, 247, .35) 2px 3px),
  linear-gradient(90deg, rgba(252, 251, 247, .25), rgba(252, 251, 247, 0) 20%, rgba(252, 251, 247, 0) 70%, rgba(252, 251, 247, .4)); }
.thermo-wide { margin-top: 26px; }
.thermo-wide img { aspect-ratio: 16 / 9; }
.feats { margin-top: 4px; }
.feats li { padding: 3px 0 3px 2.4ch; text-indent: -2.4ch; font-size: 14.5px; text-transform: uppercase; }
.feats li::before { content: "* "; white-space: pre; font-weight: 700; }
.kv { display: grid; gap: 0; }
.kv > div { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px dashed rgba(28, 28, 26, .35); }
.kv > div:first-child { border-top: 0; }
.kv dt { flex: none; display: flex; align-items: baseline; font: 700 13.5px/1.3 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.kv dd { flex: 1; text-align: right; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.kv a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.kv a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

/* ---------- Fuß ---------- */
.foot { text-align: center; }
.bc { margin: 26px auto 8px; width: 82%; }
.barcode { width: 100%; height: 70px; fill: var(--ink); }
.bc-txt { margin-top: 6px; font-size: 13px; letter-spacing: .4em; }
.thanks { margin-top: 18px; font: 800 18px/1.3 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.geo { margin-top: 6px; font-size: 13px; color: var(--faint); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; font-size: 13.5px; text-transform: uppercase; }
.foot-links li + li::before { content: "|"; margin: 0 10px; color: var(--faint); }
.foot-links a { text-decoration: none; padding: 6px 0; }
.foot-links a:hover { text-decoration: underline; }
.foot-copy { margin-top: 12px; font-size: 12.5px; color: var(--faint); }

/* ---------- Rechtsseiten ---------- */
.legal-head { text-align: center; }
.legal-head .kicker { margin-bottom: 12px; }
.legal-head h1 { font: 800 clamp(24px, 3vw, 30px)/1.2 var(--head); letter-spacing: -.03em; hyphens: auto; overflow-wrap: break-word; }
.back { display: inline-block; margin-top: 16px; font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; border-bottom: 2px dashed var(--ink); padding-bottom: 2px; }
.back:hover { background: var(--ink); color: var(--paper); }
.legal-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.legal-tabs a { display: block; padding: 9px 4px; border: 2px dashed var(--ink); text-align: center; font: 700 12.5px/1.2 var(--head); text-transform: uppercase; text-decoration: none; }
.legal-tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); border-style: solid; }
.legal-body { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); hyphens: auto; }
.legal-body h2 { font: 700 15.5px/1.35 var(--head); text-transform: uppercase; color: var(--ink); margin: 30px 0 10px; padding-top: 16px; background: repeating-linear-gradient(90deg, var(--ink) 0 7px, transparent 7px 12px) 0 0 / 100% 2px no-repeat; }
.legal-body h2:first-child, .legal-note + h2 { margin-top: 0; }
.legal-body p, .legal-body ul { margin-bottom: 12px; }
.legal-body li { padding-left: 2.4ch; text-indent: -2.4ch; margin-bottom: 4px; }
.legal-body li::before { content: "- "; white-space: pre; }
.legal-body a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-note { padding: 12px 14px; margin-bottom: 26px !important; border: 2px dashed var(--ink); font-size: 13.5px; }
.legal-address { padding: 12px 0; text-transform: uppercase; font-size: 13.5px; }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero > *, .js .top > .logo, .js .top > .shop { animation: print .5s steps(6) both; }
  .js .top > .shop { animation-delay: .1s; }
  .js .hero .kicker { animation-delay: .2s; } .js .hero h1 { animation-delay: .32s; }
  .js .hero .hero-text { animation-delay: .45s; } .js .hero .ctas { animation-delay: .6s; }
  @keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pole-run { animation: none; padding-left: 12px; } }

/* ---------- Responsiv ---------- */
@media (max-width: 1360px) { .pole { display: none; } }
@media (max-width: 1199px) {
  .r-bar { display: flex; }
  .lang, .menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 48px; padding: 8px 14px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 14px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
  .menu-btn { background: var(--ink); color: var(--paper); }
  .menu-btn::before { content: "≡"; font-size: 18px; line-height: 1; }
  .menu-btn[aria-expanded="true"]::before { content: "×"; }
  .menu-open .menu-btn { position: fixed; z-index: 60; top: 16px; right: 16px; }
  .keypad { display: none; top: 0; left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; padding: 80px max(20px, calc(50% - 170px)) 40px; overflow-y: auto; background: rgba(52, 51, 47, .97); }
  .menu-open .keypad { display: block; }
  .menu-open { overflow: hidden; }
  .keypad ul a, .key-call, .key-lang { min-height: 56px; font-size: 15px; }
}
@media (max-width: 640px) {
  :root { --px: 20px; }
  body { font-size: 14.5px; }
  .paper-wrap { padding: 22px 0 96px; }
  .receipt { width: calc(100% - 16px); padding-top: 22px; }
  .logo img { width: 86px; }
  .shop { font-size: 12.5px; }
  .hero h1 { font-size: clamp(24px, 7.4vw, 30px); }
  .dh { font-size: 19px; }
  .sum { font-size: 19px; }
  .bon-meta { font-size: 11.5px; }
  .legs li { font-size: 16px; }
  .stats strong { font-size: 22px; }
}
