/* chefim.de/for-restaurants — the sales page for restaurant owners.
   Taken over from the earlier standalone landing page, in the
   site's own colours and with system fonts (no font downloads from Google). */

:root {
  --paper: #f6f3ec;
  --paper-2: #efeae0;
  --card: #ffffff;
  --ink: #1c1b18;
  --ink-soft: #55524b;
  --ink-faint: #8a867c;
  --line: #e2ddd1;
  --green: #075e54;
  --green-700: #054a42;
  --green-100: #cfe8e2;
  --green-50: #ebf5f2;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1140px;
  --pad: clamp(16px, 5vw, 40px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28,27,24,.04), 0 12px 32px -12px rgba(28,27,24,.14);
  --shadow-lg: 0 30px 70px -30px rgba(28,27,24,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0; font-family: var(--font); background: var(--paper); color: var(--ink);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
strong { font-weight: 650; color: var(--ink); }

/* ---------- Site header (same as the other chefim.de pages) ---------- */
header.top { background: var(--green); color: #fff; padding: 0.9rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; }
header.top .brand { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: #fff; display: inline-flex; align-items: center; gap: 0.55rem; }
.brand-chip { display: inline-flex; background: #fff; border-radius: 10px; padding: 3px; }
.brand-chip img { height: 44px; width: auto; display: block; }
header.top .right { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
header.top a.back { color: #fff; text-decoration: none; font-size: 0.9rem; opacity: .9; white-space: nowrap; }
.lang a { color: #fff; text-decoration: none; opacity: .7; font-size: 0.85rem; font-weight: 600; padding: 0.4rem 0.35rem; }
.lang a.on { opacity: 1; text-decoration: underline; }

/* Section bar under the header. Sticks to the top; once the green header has
   scrolled away (.stuck, set by for-restaurants.js) it shows the logo and the
   demo button. The section in view is highlighted (.active). */
.subnav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246,243,236,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s ease, background .25s ease;
}
.subnav.stuck { background: rgba(255,255,255,.9); box-shadow: 0 8px 24px -14px rgba(28,27,24,.4); }
.subnav .wrap { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.subnav-brand {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 750;
  white-space: nowrap; overflow: hidden; max-width: 0; opacity: 0; flex-shrink: 0;
  transition: max-width .35s ease, opacity .25s ease;
}
.subnav.stuck .subnav-brand { max-width: 170px; opacity: 1; }
.subnav-chip { display: inline-flex; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 9px; padding: 2px; }
.subnav-chip img { height: 30px; width: auto; display: block; }
.subnav-links { flex: 1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a:first-child { margin-left: auto; }
.subnav-links a:last-child { margin-right: auto; }
.subnav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 550; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; transition: background .2s ease, color .2s ease;
}
.subnav-links a:hover { background: var(--green-50); color: var(--green); }
.subnav-links a.active { background: var(--green); color: #fff; }
.subnav-cta { padding: .55em 1.1em; font-size: .88rem; flex-shrink: 0; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.subnav.stuck .subnav-cta { opacity: 1; visibility: visible; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font); font-weight: 600; font-size: .96rem; text-decoration: none;
  padding: .72em 1.25em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px -10px rgba(7,94,84,.8); }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { background: #ddefea; color: var(--green-700); border-color: #7fb3a8; }
.btn-ghost:hover { border-color: var(--green); }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { background: var(--green-50); }
.btn-lg { padding: .9em 1.5em; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 82% 8%, rgba(7,94,84,.10), transparent 70%),
              radial-gradient(45% 40% at 5% 90%, rgba(201,120,31,.08), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); letter-spacing: -.035em; }
.ink-accent { color: var(--green); }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--ink-soft); max-width: 38ch; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-points li { position: relative; padding-left: 28px; font-size: .98rem; color: var(--ink-soft); }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23075e54' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
}

/* ---------- Phone mockup ---------- */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone {
  width: min(320px, 86vw); background: #0b141a; border-radius: 42px; padding: 12px;
  box-shadow: var(--shadow-lg); position: relative; transform: rotate(1.2deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: rotate(1.2deg) translateY(0); } 50% { transform: rotate(1.2deg) translateY(-8px); } }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 24px; background: #0b141a; border-radius: 0 0 16px 16px; z-index: 3; }
.chat { background: #e5ddd5; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; height: 560px; }
.chat-top { background: var(--green-700); color: #fff; display: flex; align-items: center; gap: 10px; padding: 30px 16px 12px; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.chat-meta { display: flex; flex-direction: column; line-height: 1.2; }
.chat-name { font-weight: 600; font-size: .95rem; }
.chat-status { font-size: .72rem; opacity: .85; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; }
.chat-body::-webkit-scrollbar { display: none; }
.chat-body > * { flex-shrink: 0; }
.bubble {
  max-width: 84%; padding: 8px 11px; border-radius: 12px; font-size: .84rem; line-height: 1.4;
  color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: pop .4s ease both;
}
.bubble.in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.bubble.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 4px; }
.bubble.short { max-width: max-content; }
.bubble.note { align-self: center; background: #fff8d6; color: #5c5240; font-size: .76rem; text-align: center; border-radius: 8px; max-width: 90%; }
.bubble.typing { align-self: flex-start; background: #fff; border-top-left-radius: 4px; display: inline-flex; gap: 4px; padding: 11px 13px; max-width: max-content; }
.bubble.typing span { width: 6px; height: 6px; border-radius: 50%; background: #9aa39f; animation: blink 1.2s infinite ease-in-out; }
.bubble.typing span:nth-child(2) { animation-delay: .2s; }
.bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.bubble.card { padding: 0; overflow: hidden; width: 86%; }
.bubble.card .msg-main { padding: 8px 11px 5px; }
.msg-text { margin: 0; }
.msg-time { display: block; text-align: right; font-size: .62rem; color: #8a938c; margin-top: 2px; }
.msg-time.inline { display: inline; float: right; margin: 4px 0 0 6px; }
.msg-btns { display: flex; flex-direction: column; background: #fff; }
.msg-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px;
  font-family: var(--font); font-weight: 600; font-size: .8rem; color: #027eb5;
  background: #fff; border: none; border-top: 1px solid #ececec; width: 100%;
}
.chat-input { background: #f0f0f0; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; color: var(--ink-faint); font-size: .82rem; }
.chat-input .send { background: var(--green); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; }
.visual-tag { font-size: .82rem; color: var(--ink-faint); background: var(--card); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; text-align: center; }
.demo-controls { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.demo-note { margin: 0; font-size: .75rem; color: var(--ink-faint); text-align: center; max-width: 36ch; }
.demo-replay {
  display: inline-flex; align-items: center; gap: .5em; font-family: var(--font); font-weight: 600;
  font-size: .9rem; color: var(--green); background: var(--green-50); border: 1px solid var(--green-100);
  padding: .55em 1.1em; border-radius: 999px; cursor: pointer;
}
.demo-replay:hover { background: var(--green-100); }
.demo-replay:disabled { opacity: .6; cursor: default; }

/* ---------- Strip ---------- */

/* ---------- Sections ---------- */
section { padding-block: clamp(52px, 8vw, 100px); scroll-margin-top: 64px; }
main > section + section { border-top: 1px solid var(--line); }
main > section.problem, main > section.cta, main > .problem + section { border-top: 0; }
.section-head { max-width: 680px; margin-bottom: clamp(30px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.section-sub { color: var(--ink-soft); margin: 14px auto 0; font-size: 1rem; }

/* Problem (Why Chefim): brand-green section, white cards. */
.problem { background: var(--green); color: #eaf5f2; }
.problem h2 { color: #fff; }
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.why-aside { position: sticky; top: 96px; }
.why-aside h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 32px; }
.cost-lead { margin: 0 0 18px; color: #cfe8e2; }
.cost-lead strong { color: #fff; }
.cost-row { margin-bottom: 18px; }
.cost-name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: .92rem; color: #cfe8e2; }
.cost-name strong { color: #fff; font-size: 1.25rem; white-space: nowrap; }
.cost-bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.cost-bar span { display: block; height: 100%; border-radius: 999px; }
.cost-bar .is-platform { width: 100%; background: #ff9d6b; }
.cost-bar .is-us { width: 17.2%; background: #9be15d; }
.why-list li { padding: 28px; background: #e3f3ee; border-radius: var(--radius); box-shadow: 0 18px 40px -20px rgba(0,0,0,.45); }
.why-list h3 { color: var(--ink); font-size: 1.25rem; margin-bottom: 10px; }
.why-list p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.fineprint { margin: 14px 0 0; font-size: .8rem; color: #a9d3ca; }

/* How */
.steps { list-style: none; margin: 0 0 clamp(36px, 5vw, 56px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 36px; }
.step { border-top: 2px solid var(--green); padding-top: 18px; }
.step-num { font-weight: 700; font-size: .9rem; color: var(--green); display: block; margin-bottom: 8px; }
.step h3, .feature-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p, .feature-item p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* Restaurant side */
.restaurant, .pricing { background: var(--paper-2); }
.flow-demo { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.how-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.how-grid .steps { grid-template-columns: 1fr; gap: 28px; margin: 0; }
.how-grid .step { border-top: 0; padding: 0 0 0 48px; position: relative; }
.how-grid .step-num { position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: flex; align-items: center; justify-content: center; font-size: .85rem; margin: 0; }
.how-grid .phone--flat { width: min(270px, 86vw); }
.how-grid .phone-pair .chat { height: 480px; }
.phone-pair.is-playing .phone { transition: opacity .35s ease, transform .35s ease; opacity: .5; }
.phone-pair.is-playing .phone.active { opacity: 1; transform: translateY(-6px) !important; }
.phone-pair { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 4vw, 56px); flex-wrap: wrap; }
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone-label { font-weight: 650; font-size: 1rem; background: var(--card); border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow); }
.phone--flat { transform: none !important; animation: none !important; width: min(300px, 86vw); }
.phone-pair .chat { height: 520px; }

/* Features */
.feature-list.slider-track { --per-view: 3; }
.feature-item { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-ico { width: 46px; height: 46px; padding: 11px; flex: none; border-radius: 12px; background: var(--green-50); color: var(--green); }

/* Card slider (Why + Features): a fixed window, the cards move inside it.
   Arrows/dots are added by for-restaurants.js; swiping works natively. */
.slider { min-width: 0; }
.slider-track { --per-view: 1; --gap: 18px; list-style: none; margin: 0; padding: 0; display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > li { flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); scroll-snap-align: start; }
.slider-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.slider-dots { display: flex; gap: 8px; }
.slider-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .25s ease, background .25s ease; }
.slider-dot[aria-current="true"] { width: 32px; background: var(--green); }
/* Timer: while auto-advancing, the active dot fills up until the next card. */
.slider-dot { position: relative; overflow: hidden; }
.slider.is-auto .slider-dot[aria-current="true"] { background: rgba(7,94,84,.22); }
.slider.is-auto .slider-dot[aria-current="true"]::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--green); animation: slider-fill var(--auto-ms, 5s) linear forwards; }
.slider.is-paused .slider-dot::after { animation-play-state: paused; }
@keyframes slider-fill { to { width: 100%; } }
.slider-btns { display: flex; gap: 10px; }
.slider-btn { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); font-size: 1.2rem; cursor: pointer; transition: background .2s ease, color .2s ease, opacity .2s ease; }
.slider-btn:hover:not(:disabled) { background: var(--green); border-color: var(--green); color: #fff; }
.slider-btn:disabled { opacity: .35; cursor: default; }
.slider-btn:focus-visible, .slider-dot:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.problem .slider-dot { background: rgba(255,255,255,.3); }
.problem .slider-dot[aria-current="true"] { background: #fff; }
.problem .slider.is-auto .slider-dot[aria-current="true"] { background: rgba(255,255,255,.3); }
.problem .slider.is-auto .slider-dot[aria-current="true"]::after { background: #fff; }
.problem .slider-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.problem .slider-btn:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--green); }
.problem .slider-btn:focus-visible, .problem .slider-dot:focus-visible { outline-color: #fff; }

/* Compare */

/* Pricing */
.plan { max-width: 440px; margin: 0 auto; padding: 30px 30px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.price-rows { list-style: none; margin: 0 0 26px; padding: 0; }
.price-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.price-rows li:first-child { border-top: 0; padding-top: 0; }
.price-rows span { color: var(--ink-soft); }
.price-rows strong { font-size: 1.35rem; letter-spacing: -.02em; }
.price-rows li:first-child strong { font-size: 2.2rem; color: var(--green); }
.plan-trial { margin: 0 0 22px; padding: 14px 16px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-sm); font-size: .92rem; color: var(--ink-soft); }
.plan-trial strong { display: block; color: var(--green); font-size: 1.02rem; margin-bottom: 2px; }
.plan-note { margin: 14px 0 0; text-align: center; font-size: .86rem; color: var(--ink-faint); }
.plan-fine { max-width: 440px; margin: 18px auto 0; text-align: center; font-size: .8rem; color: var(--ink-faint); }
.plan-fine a { color: inherit; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq-list details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.06rem; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--green); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 18px; color: var(--ink-soft); max-width: 62ch; }

/* CTA */
.cta { background: var(--green); color: #fff; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 22ch; margin-inline: auto; }
.cta p { color: rgba(255,255,255,.88); font-size: 1.06rem; margin: 16px auto 28px; max-width: 48ch; }
.cta .cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta .btn-outline:hover { border-color: #fff; }

/* Footer (shared partial) */
body > footer { text-align: center; color: var(--ink-faint); font-size: 0.8rem; padding: 2rem 1rem; }
body > footer a { color: var(--ink-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-grid .steps { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .lede { max-width: none; }
  .why-aside { position: static; }
  .why-grid, .steps, .faq-wrap { grid-template-columns: 1fr; }
  .feature-list.slider-track { --per-view: 2; }
}
@media (max-width: 760px) {
  .phone-col--customer { display: none; }
  .phone-pair.is-playing .phone { opacity: 1; }
  .phone-pair.is-playing .phone.active { transform: none !important; }
  .subnav .wrap { gap: 6px; padding-inline: 10px; }
  .subnav-name, .subnav-cta { display: none; }
  .subnav.stuck .subnav-brand { max-width: 44px; }
  .subnav-links a { padding: 7px 11px; font-size: .88rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-chip img { height: 36px; }
  .feature-list.slider-track { --per-view: 1; }
  .feature-item, .why-list li { padding: 22px; }
}
