@import url('fonts.css');

:root {
  --cream: #FBF6EF;
  --cream-deep: #F3EADB;
  --ink: #241E18;
  --ink-soft: #5B5348;
  --rust: #D9622B;
  --rust-deep: #B94E1F;
  --rust-soft: #FBE4D4;
  --green: #4C7A5B;
  --white: #FFFFFF;
  --line: #E7DECB;
  --shadow: 0 20px 45px -25px rgba(36, 30, 24, 0.35);
  --shadow-sm: 0 8px 20px -12px rgba(36, 30, 24, 0.25);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust-deep);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--rust);
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--rust);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { background: var(--rust-deep); box-shadow: var(--shadow); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--ink); }

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-light:hover { background: var(--cream-deep); }

.btn-block { width: 100%; }

/* Nav */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 239, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  max-width: 1320px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--rust);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
  font-size: 14.5px;
  flex-wrap: nowrap;
}

.nav-links a { color: var(--ink-soft); transition: color 0.15s; white-space: nowrap; }
.nav-links a:hover { color: var(--rust-deep); }

.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero {
  padding: 88px 0 96px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 18px 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--rust);
}

.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }

.hero-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--rust-deep);
  margin-bottom: 28px;
}
.hero-demo-link svg { width: 22px; height: 22px; flex-shrink: 0; }
.hero-demo-link:hover { text-decoration: underline; }

.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-trust span { display: flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

/* Mockup illustration */
.mockup {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  border: 1px solid var(--line);
}

.mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.mockup-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cream-deep);
}

.mockup-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--line);
}

.mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  font-weight: 600;
}

.mockup-row:last-child { border-bottom: none; }
.mockup-row .qty {
  background: var(--rust-soft);
  color: var(--rust-deep);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 12px;
  margin-right: 8px;
}
.mockup-row .price { color: var(--ink-soft); font-weight: 700; }

.mockup-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--green);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-badge svg { width: 18px; height: 18px; }

/* Sections generic */
section { padding: 96px 0; }
section.tight { padding: 72px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin-top: 14px; }

/* Feature grid */
.features {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--rust-soft);
  color: var(--rust-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 15px; }

/* Screens showcase */
.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.screen-card {
  background: var(--ink);
  border-radius: var(--radius-md);
  padding: 20px;
  color: var(--cream);
}

.screen-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rust);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Realistic bon mockup, matching BonPreview.jsx's actual receipt template */
.bon-mock {
  background: #fff;
  color: #111;
  font-family: 'Courier New', 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.55;
  border-radius: 8px;
  padding: 12px 14px;
}
.bon-mock .bon-title { text-align: center; font-weight: 700; font-size: 13px; }
.bon-mock .bon-station { text-align: center; font-weight: 700; font-size: 10.5px; margin-top: 1px; }
.bon-mock .bon-table { text-align: center; font-weight: 700; font-size: 12.5px; }
.bon-mock .bon-dashed { border-top: 1px dashed #111; margin: 6px 0; }
.bon-mock .bon-solid { border-top: 1px solid #111; margin: 6px 0; }
.bon-mock .bon-row { display: flex; justify-content: space-between; }
.bon-mock .bon-item { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 3px; }
.bon-mock .bon-item:last-child { margin-bottom: 0; }
.bon-mock .bon-item-single { font-weight: 700; margin-bottom: 3px; }
.bon-mock .bon-item-single:last-child { margin-bottom: 0; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step { position: relative; padding-top: 8px; }

.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 18px;
}

.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 14.5px; }

.steps.steps-5 { grid-template-columns: repeat(5, 1fr); }

/* Pricing */
.pricing-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  text-align: center;
  box-shadow: var(--shadow);
}

.pricing-card .eyebrow { color: var(--rust); }
.pricing-card .eyebrow::before { background: var(--rust); }

.price-tag {
  font-family: 'Fraunces', serif;
  font-size: clamp(38px, 6vw, 52px);
  font-weight: 600;
  margin: 18px 0 8px;
}

.price-tag small { font-size: 16px; font-weight: 500; color: rgba(251,246,239,0.65); }

.pricing-card p.desc {
  color: rgba(251,246,239,0.75);
  max-width: 44ch;
  margin: 0 auto 28px;
}

.pricing-list {
  list-style: none;
  text-align: left;
  max-width: 380px;
  margin: 0 auto 32px;
  display: grid;
  gap: 12px;
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
}

.pricing-list svg { width: 18px; height: 18px; color: var(--rust); flex-shrink: 0; }

/* Price calculator */
.calc-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow);
}

.calc-card .eyebrow { color: var(--rust); }
.calc-card .eyebrow::before { background: var(--rust); }
.calc-card h3 { color: var(--cream); font-size: 20px; margin: 10px 0 26px; }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-bottom: 8px;
}

/* min-width: 0 overrides the grid item's default min-width:auto — without
   it, a <select> with a long option label (e.g. "SumUp Solo(s) mieten")
   refuses to shrink below its content width, forcing the whole calculator
   to overflow on narrow phones. */
.calc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.calc-field label {
  font-size: 12.5px;
  color: rgba(251,246,239,0.65);
  font-weight: 600;
}
.calc-field input, .calc-field select {
  font: inherit;
  font-size: 14.5px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251,246,239,0.2);
  background: rgba(251,246,239,0.06);
  color: var(--cream);
  width: 100%;
  box-sizing: border-box;
}
.calc-field select option { color: var(--ink); }
.calc-field input:focus, .calc-field select:focus { outline: 2px solid var(--rust); outline-offset: 1px; }

.calc-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  padding: 4px 0;
}
.calc-check input { width: 18px; height: 18px; accent-color: var(--rust); flex-shrink: 0; }

.calc-field-hint { grid-column: 1 / -1; margin-top: -10px; font-size: 12px; color: rgba(251,246,239,0.55); }

.calc-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(251,246,239,0.15);
}
.calc-result span:first-child { font-size: 14.5px; color: rgba(251,246,239,0.75); }
.calc-total { font-family: 'Fraunces', serif; font-size: clamp(30px, 5vw, 40px); font-weight: 600; }

.calc-note { color: rgba(251,246,239,0.55); font-size: 13px; margin: 12px 0 26px; }

.calc-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Detailed price list */
.pricelist { max-width: 780px; margin: 40px auto 0; }
.pricelist summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--rust-deep);
  text-align: center;
  padding: 10px;
}
.pricelist-body { margin-top: 24px; display: grid; gap: 28px; }
.pricelist-group h4 { font-size: 15px; margin-bottom: 4px; }
.pricelist-group .pricelist-desc { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 12px; }
.pricelist-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pricelist-table th, .pricelist-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.pricelist-table th { color: var(--ink-soft); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.pricelist-table td:last-child, .pricelist-table th:last-child { text-align: right; white-space: nowrap; }
.pricelist-table td:last-child { font-weight: 700; color: var(--ink); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 16px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 24px; max-width: 42ch; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 15px;
}

.contact-detail svg { width: 20px; height: 20px; color: var(--rust); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s;
}

.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--rust);
}

.form-row textarea { resize: vertical; min-height: 110px; }

/* Honeypot field for the contact form — positioned off-screen rather than
   display:none, since some spam bots specifically skip display:none/hidden
   fields but still blindly fill anything positioned normally in the DOM. */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }

/* Final CTA */
.cta-band {
  background: var(--rust);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  margin: 0 24px;
  max-width: calc(var(--container) - 48px);
  margin-inline: auto;
}

.cta-band h2 { color: var(--white); font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 46ch; margin: 0 auto 28px; }
.cta-band .btn-light:hover { color: var(--rust-deep); }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; flex-wrap: wrap; row-gap: 10px; gap: 10px 24px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.footer-links a:hover { color: var(--rust-deep); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 14px; }

/* Swiss badge */
.badge-ch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.badge-ch .cross {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: #D8232A;
  position: relative;
  flex-shrink: 0;
}
.badge-ch .cross::before, .badge-ch .cross::after {
  content: "";
  position: absolute;
  background: var(--white);
}
.badge-ch .cross::before { top: 4px; bottom: 4px; left: 7.5px; width: 3px; }
.badge-ch .cross::after { left: 4px; right: 4px; top: 7.5px; height: 3px; }

/* Compare (Zettel vs Chuchi Print) */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.compare-col {
  border-radius: var(--radius-md);
  padding: 28px 26px;
  border: 1px solid var(--line);
}

.compare-col.bad { background: var(--white); }
.compare-col.good { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.compare-col h3 { font-size: 16px; margin-bottom: 16px; }
.compare-col.good h3 { color: var(--cream); }

.compare-col ul { list-style: none; display: grid; gap: 12px; }
.compare-col li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.compare-col li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.compare-col.bad li svg { color: #C0392B; }
.compare-col.good li svg { color: var(--rust); }
.compare-col.bad p, .compare-col.good p { opacity: 0.85; }

/* Fit-to-event cards */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}

.fit-card .fit-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--rust-soft);
  color: var(--rust-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.fit-card .fit-icon svg { width: 24px; height: 24px; }
.fit-card h3 { font-size: 17px; margin-bottom: 8px; }
.fit-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 6px; }
.fit-card p:last-child { margin-bottom: 0; }

/* Requirements */
.requirements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.req-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}

.req-card .req-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--cream-deep);
  color: var(--rust-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.req-card .req-icon svg { width: 22px; height: 22px; }
.req-card h3 { font-size: 15.5px; margin-bottom: 4px; }
.req-card p { color: var(--ink-soft); font-size: 14px; }

.req-note {
  text-align: center;
  margin-top: 24px;
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* About */
.about {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: center;
}

.avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 40px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  margin: 0 auto;
  object-fit: cover;
}

.about-name { text-align: center; margin-top: 16px; font-weight: 700; }
.about-role { text-align: center; color: var(--ink-soft); font-size: 14px; }

.about-text h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 16px; }
.about-text p { color: var(--ink-soft); margin-bottom: 14px; font-size: 15.5px; }
.about-text p:last-child { margin-bottom: 0; }

/* Form feedback */
.form-status {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  display: none;
}
.form-status.ok { color: var(--green); display: block; }
.form-status.err { color: #C0392B; display: block; }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Legal page */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.legal h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 24px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 8px; }
.legal a { color: var(--rust-deep); font-weight: 600; }
.legal .back { display: inline-block; margin-bottom: 24px; font-weight: 700; color: var(--rust-deep); }

/* Docs page */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 100px;
  align-items: start;
}

.docs-sidebar { position: sticky; top: 96px; }
.docs-sidebar .back { display: inline-block; margin-bottom: 20px; font-weight: 700; font-size: 14px; color: var(--rust-deep); }
.docs-sidebar nav { display: flex; flex-direction: column; gap: 1px; }
.docs-group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--ink-soft);
  opacity: 0.65;
  margin: 18px 0 4px;
  padding: 0 12px;
}
.docs-group-label:first-child { margin-top: 0; }
.docs-sidebar a {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}
.docs-sidebar a:hover { background: var(--cream-deep); color: var(--ink); }

.docs-content h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.docs-content > .docs-intro { color: var(--ink-soft); font-size: 16.5px; max-width: 60ch; margin-bottom: 44px; }

.docs-section { padding-top: 40px; margin-top: 32px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.docs-section:first-of-type { padding-top: 0; margin-top: 0; border-top: none; }
.docs-section h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.docs-section h2 .docs-emoji { font-size: 22px; }
.docs-section .docs-sub { color: var(--ink-soft); font-size: 15px; margin: 8px 0 22px; max-width: 62ch; }
.docs-section h3 { font-size: 16.5px; margin: 26px 0 6px; }
.docs-section p { color: var(--ink-soft); font-size: 15px; margin-bottom: 12px; max-width: 68ch; }
.docs-section ul, .docs-section ol { color: var(--ink-soft); font-size: 15px; margin: 0 0 12px 20px; }
.docs-section li { margin-bottom: 6px; }
.docs-section strong { color: var(--ink); }

.docs-fields { display: grid; gap: 10px; margin: 16px 0 20px; }
.docs-field {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
}
.docs-field .field-name { display: block; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.docs-field .field-desc { display: block; color: var(--ink-soft); font-size: 13.5px; margin-top: 3px; }

.docs-note {
  border-left: 3px solid var(--rust);
  background: var(--rust-soft);
  color: var(--rust-deep);
  padding: 12px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  margin: 18px 0;
  max-width: 68ch;
}
.docs-note strong { color: var(--rust-deep); }

.docs-roles-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.docs-roles-table th, .docs-roles-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.docs-roles-table th { color: var(--ink-soft); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.docs-roles-table td { color: var(--ink-soft); }
.docs-roles-table td:first-child { color: var(--ink); font-weight: 600; }

.docs-check-table { width: 100%; border-collapse: collapse; margin: 4px 0 24px; font-size: 13.5px; min-width: 480px; }
.docs-check-table th, .docs-check-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs-check-table th { color: var(--ink-soft); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.docs-check-table td { color: var(--ink-soft); }
.docs-check-table td:first-child { color: var(--ink); font-weight: 700; white-space: nowrap; }
.docs-check-table td.value { white-space: nowrap; }

.badge-ok, .badge-warn {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-ok { background: #E3EFE7; color: var(--green); }
.badge-warn { background: var(--rust-soft); color: var(--rust-deep); }

.docs-faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--cream-deep);
}
.docs-faq summary { cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--ink); list-style: none; }
.docs-faq summary::-webkit-details-marker { display: none; }
.docs-faq summary::before { content: '+'; display: inline-block; width: 18px; color: var(--rust); font-weight: 800; }
.docs-faq details[open] summary::before { content: '−'; }
.docs-faq details p { margin-top: 10px; margin-bottom: 0; padding-left: 18px; }

.docs-mobile-toc { display: none; }

/* Demo mode */
.demo-hero { padding: 56px 0 8px; text-align: center; }
.demo-hero .eyebrow { justify-content: center; }
.demo-hero h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 14px 0 16px; }
.demo-hero p { color: var(--ink-soft); font-size: 16.5px; max-width: 56ch; margin: 0 auto; }

.demo-shell { padding: 40px 0 90px; }

.demo-roles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.demo-role-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
}
.demo-role-btn:hover { border-color: var(--rust); color: var(--ink); }
.demo-role-btn.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.demo-role-btn .emoji { font-size: 16px; }

.demo-frame-wrap { display: flex; justify-content: center; }
.demo-frame {
  /* The real app's own design tokens (src/index.css), so the screen content
     inside this bezel looks like Chuchi Print itself, not the marketing site. */
  --app-bg: #F5F6F8;
  --app-fg: #101828;
  --app-card: #FFFFFF;
  --app-primary: #1E293B;
  --app-primary-fg: #FAFAFA;
  --app-secondary: #F59E0B;
  --app-secondary-fg: #0F1729;
  --app-muted: #E7E9EC;
  --app-muted-fg: #6B7280;
  --app-border: #DDE1E6;
  --app-green: #16A34A;

  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--app-bg);
  border: 10px solid var(--ink);
  border-radius: 40px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--app-fg);
}
.demo-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 22px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  z-index: 5;
}
.demo-screen { height: 700px; display: flex; flex-direction: column; }

.demo-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 16px 12px;
  background: var(--app-bg);
}
.demo-topbar-title { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.demo-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #92400E;
  background: color-mix(in srgb, var(--app-secondary) 15%, white);
  padding: 3px 9px;
  border-radius: 999px;
}
.demo-reset-btn {
  border: none;
  background: none;
  color: var(--app-muted-fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 8px;
}
.demo-reset-btn:hover { background: var(--app-muted); color: var(--app-fg); }
.demo-reset-btn svg { width: 15px; height: 15px; }

.demo-panel { display: none; flex-direction: column; flex: 1; min-height: 0; }
.demo-panel.active { display: flex; }

.demo-cat-tabs { display: flex; gap: 8px; padding: 4px 16px 12px; flex-shrink: 0; overflow-x: auto; }
.demo-cat-tab {
  border: none;
  background: var(--app-muted);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--app-muted-fg);
  cursor: pointer;
  white-space: nowrap;
}
.demo-cat-tab.active { background: var(--app-primary); color: var(--app-primary-fg); }

.demo-menu-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px 8px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.demo-menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--app-border);
  background: var(--app-card);
  border-radius: 12px;
  padding: 10px 12px;
}
.demo-menu-row.has-qty { border-color: var(--app-primary); }
.demo-menu-row .mi-info { flex: 1; min-width: 0; }
.demo-menu-row .mi-name { display: block; font-weight: 500; font-size: 13.5px; }
.demo-menu-row .mi-price { display: block; font-size: 12.5px; color: var(--app-fg); font-weight: 600; margin-top: 1px; }
.demo-menu-row .mi-qty { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.demo-menu-row .mi-qty button {
  width: 30px; height: 30px; border-radius: 50%;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.demo-menu-row .mi-qty button svg { width: 14px; height: 14px; }
.demo-menu-row .mi-minus { background: var(--app-muted); color: var(--app-fg); }
.demo-menu-row .mi-plus { background: var(--app-secondary); color: var(--app-secondary-fg); }
.demo-menu-row .mi-qtynum { font-weight: 700; font-size: 13px; min-width: 14px; text-align: center; }

.demo-cart-bar { flex-shrink: 0; border-top: 1px solid var(--app-border); background: var(--app-card); padding: 12px 16px; }
.demo-table-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.demo-table-row label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--app-muted-fg); }
.demo-stepper { display: flex; align-items: center; gap: 10px; }
.demo-stepper button {
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: var(--app-muted);
  cursor: pointer; color: var(--app-fg);
  display: flex; align-items: center; justify-content: center;
}
.demo-stepper button svg { width: 13px; height: 13px; }
.demo-stepper span { font-weight: 700; font-size: 15px; min-width: 18px; text-align: center; }

.demo-cart-summary { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; font-size: 13px; color: var(--app-muted-fg); }
.demo-cart-summary .amount { font-size: 18px; font-weight: 700; color: var(--app-fg); }

.demo-send-btn {
  width: 100%;
  border: none;
  background: var(--app-secondary);
  color: var(--app-secondary-fg);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px;
  border-radius: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.demo-send-btn svg { width: 16px; height: 16px; }
.demo-send-btn:disabled { background: var(--app-muted); color: var(--app-muted-fg); cursor: not-allowed; }
.demo-send-btn:not(:disabled):hover { filter: brightness(0.94); }

.demo-pay-screen { flex: 1; display: flex; flex-direction: column; padding: 22px 18px; background: var(--app-bg); }
.demo-pay-back { align-self: flex-start; border: none; background: none; color: var(--app-muted-fg); font-size: 13px; font-weight: 500; cursor: pointer; margin-bottom: 20px; display: flex; align-items: center; gap: 4px; }
.demo-pay-back svg { width: 15px; height: 15px; }
.demo-pay-total { margin-bottom: 20px; }
.demo-pay-total .label { font-size: 13px; color: var(--app-muted-fg); }
.demo-pay-total .amount { display: block; font-size: 26px; font-weight: 700; margin-top: 2px; }
.demo-pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.demo-pay-btn {
  border: 1px solid var(--app-border);
  background: var(--app-card);
  border-radius: 16px;
  padding: 22px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--app-fg);
}
.demo-pay-btn .icon { width: 26px; height: 26px; color: var(--app-secondary); }
.demo-pay-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.demo-pay-btn:not(:disabled):hover { border-color: var(--app-secondary); background: color-mix(in srgb, var(--app-secondary) 6%, white); }

.demo-station-status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--app-muted-fg);
  padding: 2px 16px 10px;
}
.demo-station-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--app-green); flex-shrink: 0; }

.demo-tickets { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 14px; display: grid; gap: 10px; align-content: start; }
.demo-ticket {
  border: 1px solid var(--app-border);
  background: var(--app-card);
  border-radius: 12px;
  padding: 13px 14px;
}
.demo-ticket-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.demo-ticket-head .table { font-weight: 700; font-size: 15px; }
.demo-ticket-head .server { font-size: 11px; color: var(--app-muted-fg); font-weight: 400; margin-left: 4px; }
.demo-ticket-head .time { font-size: 11px; color: var(--app-muted-fg); }
.demo-ticket-items { font-size: 13px; margin-bottom: 9px; }
.demo-ticket-items .ti-row { display: flex; justify-content: space-between; padding: 2px 0; }
.demo-ticket-items .ti-row .ti-name b { font-weight: 600; }
.demo-ticket-items .ti-row .ti-price { color: var(--app-muted-fg); }
.demo-ticket-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--app-border); padding-top: 9px; }
.demo-ticket-foot .total { font-weight: 700; font-size: 13.5px; }
.demo-ticket-print {
  border: 1px solid var(--app-border);
  background: var(--app-card);
  color: var(--app-fg);
  font-weight: 500;
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.demo-ticket-print svg { width: 13px; height: 13px; }
.demo-ticket-print:hover { border-color: var(--app-fg); }

.demo-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: var(--app-muted-fg);
  font-size: 13.5px;
  gap: 10px;
}
.demo-empty svg { width: 30px; height: 30px; color: var(--app-border); }

/* Service fields (name / table) + numpad, matching NewOrder.jsx */
.demo-fields-top { flex-shrink: 0; padding: 14px 16px 4px; }
.demo-field-row { margin-bottom: 10px; }
.demo-field-row label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--app-muted-fg, var(--ink-soft)); margin-bottom: 5px; }
.demo-field-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--app-border);
  background: var(--app-card);
  font-size: 14px;
  color: var(--app-fg);
  font-family: inherit;
}
.demo-field-tap {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--app-border);
  background: var(--app-card);
  font-size: 15px;
  font-weight: 600;
  color: var(--app-fg);
  cursor: pointer;
}
.demo-field-tap.placeholder { color: var(--app-muted-fg); font-weight: 400; }

.demo-numpad-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  display: flex;
  align-items: flex-end;
  z-index: 30;
}
.demo-numpad-sheet {
  width: 100%;
  background: var(--app-card);
  border-radius: 18px 18px 0 0;
  padding: 18px 18px 26px;
}
.demo-numpad-head { text-align: center; margin-bottom: 14px; }
.demo-numpad-head .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--app-muted-fg); }
.demo-numpad-head .value { display: block; font-size: 28px; font-weight: 700; min-height: 1.3em; margin-top: 2px; }
.demo-numpad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.demo-numpad-key {
  height: 50px;
  border-radius: 12px;
  border: none;
  background: var(--app-muted);
  font-size: 18px;
  font-weight: 600;
  color: var(--app-fg);
  cursor: pointer;
}
.demo-numpad-key.confirm { background: var(--app-secondary); color: var(--app-secondary-fg); }

/* Modifier picker (Variante / Beilage), matching ItemModifierModal.jsx */
.demo-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 24px;
}
.demo-modal {
  width: 100%;
  max-width: 320px;
  background: var(--app-card);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.demo-modal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.demo-modal-head .back { border: none; background: none; color: var(--app-muted-fg); cursor: pointer; display: flex; padding: 2px; }
.demo-modal-head .back svg { width: 16px; height: 16px; }
.demo-modal-head .title { font-weight: 700; font-size: 14.5px; }
.demo-modal-head .step-label { margin-left: auto; font-size: 11px; color: var(--app-muted-fg); }
.demo-modal-note-toggle { display: flex; align-items: center; gap: 5px; border: none; background: none; color: var(--app-muted-fg); font-size: 12px; cursor: pointer; margin-bottom: 10px; padding: 0; }
.demo-modal-note-toggle svg { width: 13px; height: 13px; }
.demo-modal-note-input { width: 100%; height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--app-border); font-size: 13px; margin-bottom: 10px; font-family: inherit; }
.demo-modal-step-hint { font-size: 12px; color: var(--app-muted-fg); margin-bottom: 10px; }
.demo-modal-step-hint b { color: var(--app-fg); font-weight: 600; }
.demo-modal-options { display: grid; gap: 8px; }
.demo-modal-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--app-border);
  background: var(--app-card);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  color: var(--app-fg);
  text-align: left;
}
.demo-modal-option-btn:hover { background: var(--app-muted); }
.demo-modal-option-btn .price-wrap { display: flex; align-items: center; gap: 8px; }
.demo-modal-option-btn .price { font-weight: 700; }
.demo-modal-option-btn .delta { font-size: 11px; }
.demo-modal-option-btn .delta.pos { color: #16A34A; }
.demo-modal-option-btn .delta.neg { color: #DC2626; }
.demo-modal-option-btn .hint { font-size: 11px; color: var(--app-muted-fg); }

/* Modifier sub-rows under a menu item that has variants already in the cart */
.demo-mod-subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--app-muted);
  border-radius: 10px;
  padding: 7px 10px;
  margin-top: 6px;
}
.demo-mod-subrow .label { font-size: 12px; color: var(--app-muted-fg); }
.demo-mod-subrow .mi-qty button { width: 24px; height: 24px; }
.demo-mod-subrow .mi-qty button svg { width: 12px; height: 12px; }

/* Checkout flow after "Bestellung senden" — Einkassieren / Zahlungsart / Aufteilen / Beleg */
.demo-checkout { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 18px 22px; background: var(--app-bg); }
.demo-checkout-back { border: none; background: none; color: var(--app-muted-fg); font-size: 13px; font-weight: 500; cursor: pointer; margin-bottom: 16px; display: flex; align-items: center; gap: 4px; }
.demo-checkout-back svg { width: 15px; height: 15px; }
.demo-checkout h2 { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.demo-checkout .sub { font-size: 13px; color: var(--app-muted-fg); margin-bottom: 18px; }
.demo-checkout-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-checkout-mode-card {
  border: 1px solid var(--app-border);
  background: var(--app-card);
  border-radius: 16px;
  padding: 20px 10px;
  text-align: center;
  cursor: pointer;
}
.demo-checkout-mode-card:hover { border-color: var(--app-secondary); }
.demo-checkout-mode-card .big { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.demo-checkout-mode-card .name { font-weight: 600; font-size: 13.5px; }
.demo-checkout-mode-card .detail { font-size: 11.5px; color: var(--app-muted-fg); margin-top: 2px; }

.demo-checkout-amount { background: var(--app-card); border: 1px solid var(--app-border); border-radius: 16px; padding: 22px; text-align: center; margin-bottom: 16px; }
.demo-checkout-amount .label { font-size: 13px; color: var(--app-muted-fg); margin-bottom: 4px; }
.demo-checkout-amount .amount { font-size: 34px; font-weight: 700; }
.demo-checkout-amount .table { font-size: 13px; color: var(--app-muted-fg); margin-top: 4px; }

.demo-checkout-splitlist { display: grid; gap: 8px; margin-bottom: 16px; }
.demo-split-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--app-border);
  background: var(--app-card);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  color: var(--app-fg);
}
.demo-split-item.selected { background: var(--app-primary); border-color: var(--app-primary); color: var(--app-primary-fg); }

.demo-checkout-confirm-btn {
  width: 100%;
  border: none;
  background: var(--app-green);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.demo-checkout-confirm-btn svg { width: 16px; height: 16px; }
.demo-checkout-confirm-btn:disabled { background: var(--app-muted); color: var(--app-muted-fg); cursor: not-allowed; }

.demo-receipt { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px; background: var(--app-bg); text-align: center; }
.demo-receipt-card { background: var(--app-card); border: 1px solid var(--app-border); border-radius: 16px; padding: 28px 18px; margin-bottom: 20px; }
.demo-receipt-check { width: 52px; height: 52px; border-radius: 50%; background: #DCFCE7; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.demo-receipt-check svg { width: 24px; height: 24px; color: var(--app-green); }
.demo-receipt-card .title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.demo-receipt-card .detail { font-size: 13px; color: var(--app-muted-fg); }
.demo-receipt-prompt { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.demo-receipt-actions { display: flex; gap: 10px; }
.demo-receipt-actions button {
  flex: 1;
  height: 48px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.demo-receipt-actions button svg { width: 15px; height: 15px; }
.demo-receipt-actions .primary { border: none; background: var(--app-secondary); color: var(--app-secondary-fg); }
.demo-receipt-actions .outline { border: 1px solid var(--app-border); background: var(--app-card); color: var(--app-fg); }

.demo-toast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10;
  white-space: nowrap;
}
.demo-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.demo-hint {
  max-width: 400px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
}

.demo-cta { padding: 20px 0 80px; text-align: center; }

/* Cash tender helper (Einkassierhilfe), matching CashTenderHelper.jsx */
.demo-cash-helper { margin: 0 0 16px; }
.demo-cash-helper .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.demo-cash-helper input {
  height: 44px; width: 120px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--app-border); background: var(--app-card); font-size: 15px; font-weight: 600;
  font-family: inherit; color: var(--app-fg);
}
.demo-cash-helper input:focus { outline: 2px solid var(--app-secondary); outline-offset: 1px; }
.demo-cash-helper .chip {
  height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--app-border);
  background: var(--app-card); color: var(--app-muted-fg); font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.demo-cash-helper .chip:hover { border-color: var(--app-secondary); color: var(--app-fg); }
.demo-cash-helper .result { margin-top: 8px; font-weight: 700; font-size: 15px; }
.demo-cash-helper .result.due { color: var(--app-muted-fg); }
.demo-cash-helper .result.change { color: var(--app-green); }

/* Flow diagram (Service -> Bestellung -> Küche/Theke -> Ausgabe -> Kasse) */
.flow-diagram {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0 auto;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 128px;
}
.flow-step .flow-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--rust-deep);
}
.flow-step .flow-icon svg { width: 26px; height: 26px; }
.flow-step .flow-icon img { width: 30px; height: 30px; border-radius: 8px; }
.flow-step .flow-label { font-weight: 700; font-size: 14px; }
.flow-step .flow-sub { font-size: 12.5px; color: var(--ink-soft); }
.flow-arrow { color: var(--line); flex-shrink: 0; margin-top: 18px; }
.flow-arrow svg { width: 22px; height: 22px; }

/* Photo flow (Bestellen -> Bon Küche -> Bon Theke -> Kassieren) — real
   screenshots/photos from an actual test order, not icons. Every photo
   sits in the same fixed-size frame (object-fit: contain, so nothing is
   cropped) so mixed portrait bon photos and landscape iPad screenshots
   still read as one consistent row instead of jumping around in size. */
.flow-photos {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0 auto;
}
.flow-photo-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  max-width: 200px;
}
.flow-photo-step img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--cream-deep);
  cursor: zoom-in;
}
.flow-photo-step .flow-label { font-weight: 700; font-size: 14px; }
.flow-photo-step .flow-sub { font-size: 12.5px; color: var(--ink-soft); }

/* Lightbox — click any flow photo to view it enlarged (see lightbox.js) */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(36, 30, 24, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox-overlay.active { opacity: 1; pointer-events: auto; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  cursor: zoom-out;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* App store badges (Apple/Google) — Google Play not live yet, shown
   dimmed with a "Demnächst" overlay instead of a dead link. */
.app-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.app-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
}
.app-badge img { height: 40px; width: auto; display: block; border-radius: 8px; }
.app-badge-soon {
  position: relative;
  opacity: 0.55;
  cursor: default;
}
.app-badge-soon .app-badge-soon-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 16, 12, 0.6);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
}

/* Capacity timeline (personnel scaling with demand) */
.capacity-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.capacity-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
}
.capacity-step .time { font-weight: 700; color: var(--rust-deep); font-size: 14px; margin-bottom: 6px; }
.capacity-step .label { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 16px; }
.capacity-step .heads {
  display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; min-height: 22px; align-items: flex-end;
}
.capacity-step .heads span {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--rust);
  display: inline-block;
}
.capacity-step .count { font-family: 'Fraunces', serif; font-weight: 700; font-size: 20px; }

/* Comparison table (classic fixed devices vs Chuchi Print) */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; max-width: 560px; margin: 0 auto; font-size: 14.5px; }
.compare-table th, .compare-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.compare-table thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.compare-table thead th:first-child { color: #C0392B; }
.compare-table thead th:last-child { color: var(--green); }
.compare-table tbody td:first-child { color: var(--ink-soft); }
.compare-table tbody td:last-child { font-weight: 600; }

/* Scenario cards */
.scenario-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.scenario-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px 24px; }
.scenario-card h3 { font-size: 17px; margin-bottom: 4px; }
.scenario-card .scenario-tag { color: var(--ink-soft); font-size: 13px; margin-bottom: 14px; display: block; }
.scenario-card ul { list-style: none; display: grid; gap: 8px; }
.scenario-card li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; color: var(--ink-soft); }
.scenario-card li svg { width: 16px; height: 16px; color: var(--rust); flex-shrink: 0; margin-top: 3px; }

/* Option cards (two-choice: own device vs rent) */
.option-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; }
.option-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px 24px; }
.option-card h3 { font-size: 17px; margin-bottom: 8px; }
.option-card p { color: var(--ink-soft); font-size: 14.5px; }
.option-card.highlight { border-color: var(--rust); background: var(--rust-soft); }
.option-card.highlight p { color: var(--rust-deep); }

/* Simple centered hero used on new subpages */
.page-hero { padding: 64px 0 16px; text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 14px 0 16px; }
.page-hero p { color: var(--ink-soft); font-size: 16.5px; max-width: 60ch; margin: 0 auto; }

/* 404 page */
.not-found-code { font-family: 'Fraunces', serif; font-weight: 700; font-size: clamp(56px, 10vw, 96px); color: var(--rust); line-height: 1; margin-bottom: 8px; }
.not-found-hero .hero-actions { justify-content: center; margin-top: 24px; }

/* Link cards (hub pages linking to detail subpages) */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.link-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.link-card .feature-icon { margin-bottom: 16px; }
.link-card h3 { font-size: 17px; margin-bottom: 8px; }
.link-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 14px; }
.link-card .link-more { color: var(--rust-deep); font-weight: 700; font-size: 14px; }

/* Planned / roadmap badge */
.badge-planned {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rust-soft);
  color: var(--rust-deep);
}

/* Footer with columns (multi-page site) */
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 36px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer-col-brand .brand { margin-bottom: 10px; }
.footer-col-brand p { color: var(--ink-soft); font-size: 14px; max-width: 32ch; }
.footer-col h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.footer-col a:hover { color: var(--rust-deep); }

/* Sitemap page */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; }
.sitemap-col h2 { font-size: 15px; margin-bottom: 14px; }
.sitemap-col a { display: block; font-size: 15px; color: var(--ink-soft); margin-bottom: 11px; }
.sitemap-col a:hover { color: var(--rust-deep); }

/* Responsive */
@media (max-width: 940px) {
  .capacity-timeline { grid-template-columns: repeat(2, 1fr); }
  .scenario-grid { grid-template-columns: 1fr; }
  .option-pair { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-col-brand { grid-column: 1 / -1; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }

  /* minmax(0, 1fr), not plain 1fr: a grid item's automatic minimum size
     otherwise still follows its content's min-content width (e.g. the wide
     docs tables), which was forcing this whole column — and the page — to
     a ~480-500px minimum width on every phone. */
  .docs-layout { grid-template-columns: minmax(0, 1fr); padding: 32px 20px 72px; gap: 0; }
  .docs-sidebar { display: none; }
  .docs-mobile-toc { display: block; margin-bottom: 32px; }
  .docs-mobile-toc summary {
    cursor: pointer;
    font-weight: 700;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--cream-deep);
  }
  .docs-mobile-toc nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 4px 0; }
  .docs-mobile-toc a {
    font-size: 13.5px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--cream-deep);
    border: 1px solid var(--line);
    color: var(--ink-soft);
  }

  .hero-grid { grid-template-columns: 1fr; }
  .hero { text-align: center; padding: 56px 0 64px; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .mockup { max-width: 460px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(2, 1fr); }
  .steps, .steps.steps-5 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: repeat(2, 1fr); }
  .requirements { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 1240px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }
}

@media (max-width: 680px) {
  /* Brand + CTA + hamburger were overflowing past the viewport edge on
     narrow phones (nothing shrank or wrapped), pushing .nav-toggle fully
     off-screen and making the mobile menu unreachable. Tighten spacing and
     the CTA size so the row fits; flex-wrap is a fallback in case it still
     doesn't, so the toggle drops to its own line instead of vanishing. */
  .nav { padding: 12px 16px; gap: 10px; flex-wrap: wrap; row-gap: 8px; }
  .nav-actions { gap: 10px; }
  .nav-actions .btn { padding: 10px 16px; font-size: 13.5px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand .mark { width: 30px; height: 30px; font-size: 15px; }

  section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .screens { grid-template-columns: 1fr; }
  .steps, .steps.steps-5 { grid-template-columns: 1fr; }
  .pricing-card { padding: 36px 24px; }
  .calc-card { padding: 32px 22px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cta-band { padding: 40px 24px; margin: 0 16px; }
  .fit-grid { grid-template-columns: 1fr; }
  .capacity-timeline { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; gap: 28px; }
  .flow-diagram { flex-direction: column; }
  .flow-arrow svg { transform: rotate(90deg); }
  .flow-arrow { margin-top: 0; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-col-brand { grid-column: auto; }
  .demo-frame { border-width: 8px; border-radius: 30px; max-width: 340px; }
  .demo-screen { height: 620px; }
  .demo-role-btn { padding: 9px 14px; font-size: 13px; }
}

@media (max-width: 400px) {
  /* A few standalone text-link buttons ("Preise für SumUp Solo ansehen →",
     etc.) are too long to fit nowrap on the narrowest phones (iPhone SE),
     overflowing the page. These are plain text, so letting them wrap is
     safe — the primary/short-label CTAs elsewhere are left untouched. */
  .btn-ghost, .btn-light { white-space: normal; text-align: center; }
}

/* Accepted payment methods (SumUp icon set, vector) */
.payment-logos {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px 34px;
}
.payment-logos img { height: 36px; width: auto; }
