:root {
  --bg: #f7f4ec;
  --fg: #141414;
  --muted: #5a564c;
  --line: #d6d0c4;
  --gold: #f5c400;
  --gold-text: #8a5600;
  --gold-ink: #111111;
  --paper: #f7f4ec;
  --ink: #141414;
  --danger: #b42318;
  --font: ui-sans-serif, "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }

.placeholder-bar {
  background: var(--gold);
  color: var(--gold-ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.45rem 0.75rem;
}

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.topnav nav { display: flex; align-items: center; gap: 1rem; font-size: 0.92rem; }
.logo {
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--gold-ink);
  border: 2px solid var(--gold);
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: -0.02em;
}
.btn:hover { filter: brightness(1.05); }
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.chk input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
.btn-lg { padding: 0.95rem 1.4rem; font-size: 1.05rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.75rem;
}
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.opt { color: var(--muted); font-weight: 400; font-size: 0.85em; }

.hero, .steps, .whatyouget, .allergen-block, .not-this, .bottom-cta {
  padding: 3.5rem 1.25rem;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}
.hero { padding-top: 4.5rem; }
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 700;
  margin: 0 0 1rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-text);
}
.lede { font-size: 1.2rem; max-width: 38rem; color: var(--muted); }

.price-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  margin: 2.2rem 0 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.price .amount {
  display: block;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}
.price .amount .amount-net {
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0;
}
.price .once {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--gold-text);
}
.price-points { margin: 0; padding-left: 1.1rem; }
.price-points li { margin: 0.2rem 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.legal-note {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 40rem;
  border-left: 3px solid var(--gold);
  padding-left: 0.9rem;
}

.steps ol {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
/* Spezifität .steps ol.steps-cols > .steps ol, sonst bleibt 1 Spalte */
@media (min-width: 760px) {
  .steps ol.steps-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}
.steps li {
  border: 1px solid var(--line);
  padding: 1.2rem 1.3rem;
  counter-increment: step;
  background: #fff;
}
.steps-flow {
  margin: 1.1rem 0 1.4rem;
  padding: 0;
}
.steps-flow picture,
.steps-flow img {
  display: block;
  width: 100%;
  max-width: 920px;
  height: auto;
}
.steps-flow img {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}
.illust-inline--qr img {
  max-width: 340px;
}
.illust-inline {
  margin: 0.9rem 0 0;
  padding: 0;
}
.illust-inline img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.illust-wide {
  margin: 1.5rem 0 0;
  padding: 0;
  text-align: center;
}
.illust-wide img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.illust-wide figcaption { margin-top: 0.5rem; }
.steps h2, .whatyouget h2, .allergen-block h2, .not-this h2, .bottom-cta h2 {
  font-size: 1.6rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.cards article {
  border: 1px solid var(--line);
  padding: 1.2rem;
}
.cards h3 { font-size: 1.1rem; }

.allergen-grid, .legend-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem 1rem;
}
.allergen-chip, .legend-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
}
.letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  background: var(--gold);
  color: var(--gold-ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8rem;
}
.not-this ul { padding-left: 1.1rem; }
.bottom-cta { text-align: left; padding-bottom: 5rem; }

.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.35rem; }

/* Editor: light paper */
.page-editor {
  background: var(--paper);
  color: var(--ink);
}
.page-editor .topnav,
.page-editor .site-footer { border-color: #d9d4c8; }
.page-editor .btn-ghost { color: var(--ink); border-color: #ccc; }
.page-editor .muted { color: #5c574c; }
.editor-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 0;
  align-items: start;
  flex: 1;
}
.editor-form { padding: 1.25rem; }
.panel {
  background: #fff;
  border: 1px solid #d9d4c8;
  padding: 1.15rem;
  margin-bottom: 1rem;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.panel h1 { font-size: 1.7rem; }
.panel h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin: 0.7rem 0; }
input[type="text"], select, textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #cfc9bb;
  background: #fff;
  color: var(--ink);
  border-radius: 0;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.dish-card {
  border: 1px solid #d9d4c8;
  padding: 0.9rem;
  margin-bottom: 0.75rem;
  background: #fbfaf6;
}
.dish-top { display: grid; grid-template-columns: 1fr 10rem; gap: 0.6rem; }
.grow { flex: 1; }
.allergen-fs {
  border: 1px solid #e4dfd2;
  margin: 0.6rem 0;
  padding: 0.6rem;
}
.allergen-fs legend { font-weight: 700; padding: 0 0.3rem; }
.allergen-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 0.6rem;
}
.chk {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  margin: 0;
  padding: 0.25rem 0.2rem;
  cursor: pointer;
}
.chk input { width: 1.1rem; height: 1.1rem; accent-color: #111; flex-shrink: 0; }
.chk-name { font-size: 0.82rem; }
.dish-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.linkish {
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
}
.linkish.danger { color: var(--danger); }
.check-widerruf {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.4;
}
.check-widerruf input { margin-top: 0.2rem; width: 1.15rem; height: 1.15rem; }
.pay-actions { margin-top: 1rem; }
.save-state { font-family: var(--mono); font-size: 0.75rem; color: #5c574c; }
.preview-pane {
  position: sticky;
  top: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 100vh;
}
.preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.live-preview { padding: 1rem 1rem 2rem; font-size: 0.92rem; }
.live-preview h1 { font-size: 1.5rem; }
.live-preview .letters .letter { margin-right: 0.15rem; }
.pv-dish {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.pv-cat { margin-top: 1rem; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); }

/* Guest page – dark table, huge type */
.page-guest { background: var(--bg); color: var(--fg); }
.draft-banner {
  background: var(--gold);
  color: var(--gold-ink);
  text-align: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem;
  border-bottom: 1px solid var(--gold-ink);
}
.guest {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.1rem 3rem;
}
.guest-head h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); margin-bottom: 0.3rem; }
.guest-head .sub { font-size: 1.15rem; color: var(--muted); }
.guest-head .meta, .guest-head .stand { color: var(--muted); font-size: 0.95rem; }
.legend {
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.legend h2 { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); }
.legend-list { grid-template-columns: 1fr 1fr; }
.guest-cat { margin: 1.8rem 0; }
.guest-cat h2 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  border-bottom: 2px solid var(--gold-ink);
  padding-bottom: 0.3rem;
  margin-bottom: 0.4rem;
}
.guest-cat ul { list-style: none; padding: 0; margin: 0; }
.guest-dish {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.guest-dish h3 { font-size: 1.25rem; margin: 0 0 0.2rem; }
.guest-dish .note { color: var(--muted); font-size: 0.92rem; margin: 0; }
.guest-dish .letters { display: flex; flex-wrap: wrap; gap: 0.25rem; justify-content: flex-end; }
.guest-dish .letter { min-width: 1.7rem; height: 1.7rem; font-size: 0.95rem; }
.none { color: var(--muted); font-family: var(--mono); }
.disclaimer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding-left: 0.85rem;
}

.narrow, .legal {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  width: 100%;
}
.page-legal, .page-success { background: var(--paper); color: var(--ink); }
.page-legal .muted, .page-success .muted { color: #5c574c; }
.page-legal a, .page-success a { color: #111; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.15rem; margin-top: 1.6rem; }
.kv { display: grid; grid-template-columns: 8rem 1fr; gap: 0.4rem 1rem; }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; }
blockquote {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--gold);
  background: #fff;
}
.link-list { padding-left: 1.1rem; }
.link-list a { font-weight: 600; }
.feedback-form textarea { min-height: 7rem; }

@media (max-width: 900px) {
  .cards, .price-row, .editor-main, .row-2, .dish-top, .footer-inner, .allergen-checks {
    grid-template-columns: 1fr;
  }
  .editor-main { display: block; }
  .preview-pane { position: relative; min-height: 0; border-left: 0; border-top: 1px solid #d9d4c8; }
  .hero h1 { font-size: 2.6rem; }
}

@media print {
  .placeholder-bar, .topnav, .site-footer, .draft-banner { }
  .page-guest { background: #fff; color: #000; }
  .guest-dish .letter { border: 1px solid #000; }
}

.preview-pane .btn-ghost { color: var(--ink); border-color: var(--line); }
.preview-pane .btn { font-size: 0.8rem; }
.page-editor .placeholder-bar + .topnav { background: var(--paper); }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 2px dashed #cfc9bb;
  background: #fff;
  padding: 1.35rem 1rem;
  cursor: pointer;
  text-align: center;
  margin: 0 0 0.95rem;
  font-weight: 600;
}
.dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.photo-import {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}
.photo-import > .dropzone,
.photo-import > .photo-progress:not([hidden]) {
  grid-column: 1;
  grid-row: 1;
}
.dropzone:hover, .dropzone.is-drag {
  border-color: #111;
  background: #fff8d6;
}
.dropzone.is-busy { pointer-events: none; }
.dropzone-title { font-size: 0.95rem; }
.dropzone-hint { font-weight: 500; }
.photo-progress {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.75rem;
}
.photo-progress:not([hidden]) {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin: 0 0 0.95rem;
  padding: 0.85rem 1rem;
  background: rgba(247, 244, 236, 0.96);
  border: 2px dashed #111;
  pointer-events: none;
}
.photo-progress-inner {
  width: 100%;
  max-width: 22rem;
}
.photo-progress-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.photo-progress-label::before {
  content: "";
  display: block;
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 2px solid #111;
  border-right-color: var(--gold);
  border-radius: 50%;
  animation: ak-spin 0.7s linear infinite;
}
.photo-progress-bar {
  height: 8px;
  background: #e6e0d2;
  border: 1px solid #111;
  overflow: hidden;
  margin: 0 0 0.65rem;
}
.photo-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.25s ease;
}
.photo-progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #7a7468;
}
.photo-progress-steps li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.12rem 0;
}
.photo-progress-steps li.is-done { color: #111; }
.photo-progress-steps li.is-active { color: #111; }
.photo-progress-steps li.is-active::after {
  content: "…";
  font-weight: 700;
  color: #8a5600;
}
.photo-progress-steps li.is-done::after {
  content: "ok";
  font-weight: 700;
  color: #111;
}
@keyframes ak-spin {
  to { transform: rotate(360deg); }
}
.photo-error {
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.photo-disabled { margin: 0 0 0.85rem; }
.dish-imported {
  border-color: var(--gold);
  box-shadow: inset 4px 0 0 var(--gold);
}
.import-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  background: var(--gold);
  display: inline-block;
  padding: 0.18rem 0.45rem;
  margin: 0 0 0.55rem;
}

.dropzone[hidden], .photo-progress[hidden], .photo-disabled[hidden] { display: none !important; }
.photo-progress[hidden] .photo-progress-label::before {
  display: none;
  animation: none;
}

/* --- ec1: landing CTA above price, photo-first editor, guest credit --- */
.hero .cta-row { margin: 1.4rem 0 0.4rem; }
.cta-note { margin: 0 0 0.4rem; }
.demo-links { margin: 0 0 0.5rem; }
.demo-links a { font-weight: 600; }
.why-both { max-width: 44rem; margin-top: 1.2rem; }
.lm-link { margin-top: 1.2rem; }
.lm-link a { font-weight: 600; }
.step-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-text);
  margin: 0 0 0.3rem;
}
.panel-import .dropzone {
  min-height: 8.5rem;
  border-color: #111;
  background: #fffbe6;
}
.panel-import .dropzone-title { font-size: 1.1rem; }
.made-with { text-align: center; font-size: 0.8rem; margin: 1.5rem 0 0.5rem; opacity: 0.75; }
.made-with a { color: inherit; }
.site-footer nav a { display: inline-block; padding: 0.35rem 0; }
@media (max-width: 600px) {
  .hero { padding-top: 2rem; }
  .hero .btn-lg { display: block; width: 100%; text-align: center; }
  .price-row { gap: 0.8rem; margin-top: 1.5rem; }
}
.akm-done { padding: 0.8rem 1rem; border: 2px solid #111; background: #fff8d6; margin: 0 0 0.8rem; }
.akm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.akm-zugang label { display: block; font-weight: 600; margin: 0 0 0.3rem; }

/* --- rc1: review-compact (kompakte Gericht-Zeilen, Sticky-Leiste, Vorschau vor Bezahlen) --- */
.editor-form { grid-column: 1; grid-row: 1; }
.editor-pay { grid-column: 1; grid-row: 2; padding: 0 1.25rem 1.25rem; }
.preview-pane { grid-column: 2; grid-row: 1 / span 2; }
.preview-step { display: none; margin: 0; width: 100%; }
.review-hint { margin: -0.3rem 0 0.7rem; }
.import-summary { border: 2px solid #111; background: #fff8d6; padding: 0.7rem 0.8rem; margin: 0 0 0.8rem; }
.import-summary[hidden] { display: none; }
.import-summary p { margin: 0 0 0.3rem; }
.import-summary p:last-child { margin: 0; }
.legend-mini { margin-top: 0.6rem; font-size: 0.85rem; }
.legend-mini summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.legend-mini ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1rem; }
.legend-mini li { margin: 0 0 0.3rem; break-inside: avoid; }

.dish-sum {
  display: flex; width: 100%; align-items: center; gap: 0.5rem;
  min-height: 36px; padding: 0 0.2rem; margin: 0 0 4px;
  background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit;
}
.dish-sum:focus-visible { outline: 2px solid #111; outline-offset: 1px; }
.dish-sum-name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dish-sum-meta { font-family: var(--mono); font-size: 0.68rem; color: #5c574c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.dish-sum-edit { font-size: 0.78rem; text-decoration: underline; white-space: nowrap; }
.dish-done { margin-left: auto; }

.dish-card.is-compact { padding: 6px; margin-bottom: 6px; }
.dish-card.is-compact .import-badge,
.dish-card.is-compact .dish-top,
.dish-card.is-compact .dish-note,
.dish-card.is-compact .dish-actions,
.dish-card.is-compact .allergen-fs legend { display: none; }
.dish-card.is-compact .allergen-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.dish-card.is-compact .allergen-checks {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px;
}
.dish-card.is-compact .chk {
  position: relative; justify-content: center; gap: 0;
  min-height: var(--chip-size, 44px); padding: 0;
  border: 1px solid #cfc9bb; background: #fff;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.dish-card.is-compact .chk input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.dish-card.is-compact .chk .letter {
  background: transparent; color: #5c574c; min-width: 0; height: auto; font-size: 1rem; font-weight: 600;
}
.dish-card.is-compact .chk.is-on { background: var(--gold); border-color: #111; }
.dish-card.is-compact .chk.is-on .letter { color: #111; font-weight: 800; }
.dish-card.is-compact .chk:focus-within { outline: 2px solid #111; outline-offset: 1px; }
.dish-card.is-compact .chk-name {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.dish-card:not(.is-compact) .chk { min-height: 44px; }
.dish-card:not(.is-compact) .chk input { width: 1.3rem; height: 1.3rem; }
.dish-card:not(.is-compact) .dish-actions .linkish { min-height: 44px; }

.review-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: #111; color: #fff; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.18);
}
.review-bar[hidden] { display: none; }
.review-bar .btn { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.review-bar-count { font-family: var(--mono); font-size: 0.75rem; }
body.has-review-bar { padding-bottom: 72px; }
@media (min-width: 901px) { .review-bar { display: none !important; } }
@media (max-width: 900px) {
  .preview-step { display: block; }
  .editor-pay { padding: 1rem 1.25rem 1.25rem; }
}
@media (max-width: 600px) {
  .page-editor .editor-form { padding: 0.6rem; }
  .page-editor .editor-pay { padding: 0.6rem; }
  #dishes-panel { padding: 0.65rem; }
}

/* Footer release-2026-10-13c2: Marke + 3 Spalten, mobil gestapelt */
.sf-inner { max-width: 1080px; margin: 0 auto; padding: 2rem 1.25rem 2.5rem; display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.sf-logo { font-weight: 800; font-size: 1.1rem; text-decoration: none; color: inherit; }
.sf-brand p { margin: .5rem 0 0; max-width: 34ch; }
.sf-h { font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .5rem; }
.sf-col ul { list-style: none; margin: 0; padding: 0; }
.sf-col li a { display: inline-block; padding: .4rem 0; min-height: 24px; }
@media (min-width: 720px) { .sf-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sf-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; } }
@media print { .sf { display: none !important; } }

/* h7: Bezahl-Button – Ladezustand + Fehler direkt am Button/Haken */
.btn[disabled] { opacity: 0.7; cursor: progress; }
.pay-status.is-error { color: var(--danger); font-weight: 600; }
.widerruf-error { margin: 0.35rem 0 0.6rem; }
.check-widerruf.is-invalid { outline: 2px solid var(--danger); outline-offset: 4px; }

/* h12b: Mouse-over/Fokus für Buttons + Textlinks – nur transform/box-shadow/Farben (kein Layout-Shift), Disabled ausgenommen */
.btn {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:not([disabled]):not([aria-disabled="true"]):hover,
.btn:not([disabled]):not([aria-disabled="true"]):focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px rgba(20, 20, 20, .38);
  filter: none;
}
.lm-cta .btn:not([disabled]):not([aria-disabled="true"]):hover,
.lm-cta .btn:not([disabled]):not([aria-disabled="true"]):focus-visible,
.review-bar .btn:not([disabled]):not([aria-disabled="true"]):hover,
.review-bar .btn:not([disabled]):not([aria-disabled="true"]):focus-visible {
  box-shadow: 0 6px 18px -6px rgba(245, 196, 0, .45);
}
.btn:not(.btn-ghost):not([disabled]):not([aria-disabled="true"]):hover,
.btn:not(.btn-ghost):not([disabled]):not([aria-disabled="true"]):focus-visible {
  background-color: #ffd23a;
  border-color: #ffd23a;
}
.btn.btn-ghost:not([disabled]):not([aria-disabled="true"]):hover,
.btn.btn-ghost:not([disabled]):not([aria-disabled="true"]):focus-visible {
  background-color: rgba(245, 196, 0, .14);
  border-color: var(--gold);
}
.btn:not([disabled]):not([aria-disabled="true"]):active {
  transform: translateY(0);
  box-shadow: 0 2px 6px -3px rgba(20, 20, 20, .38);
}
a:not(.btn, .logo, .sf-logo, .af-chip, .lm-related a, .lm-vorlagen a, .lm-dl-list a) {
  transition: color .18s ease, text-decoration-color .18s ease;
}
a:not(.btn, .logo, .sf-logo, .af-chip, .lm-related a, .lm-vorlagen a, .lm-dl-list a):hover,
a:not(.btn, .logo, .sf-logo, .af-chip, .lm-related a, .lm-vorlagen a, .lm-dl-list a):focus-visible {
  color: var(--gold-text);
  text-decoration-line: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
}
.lm-cta a:not(.btn):hover,
.lm-cta a:not(.btn):focus-visible,
.review-bar a:not(.btn):hover,
.review-bar a:not(.btn):focus-visible {
  color: var(--gold);
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
  a:not(.btn, .logo, .sf-logo, .af-chip, .lm-related a, .lm-vorlagen a, .lm-dl-list a) { transition: none; }
  .btn:not([disabled]):not([aria-disabled="true"]):hover,
  .btn:not([disabled]):not([aria-disabled="true"]):focus-visible,
  .btn:not([disabled]):not([aria-disabled="true"]):active { transform: none !important; box-shadow: none !important; }
}
