/* Eigenständiger Zusatzbaustein: Produkt-Showcase (Owner-App / Kunden-App) und
   Kartenterminal-Sektion. Faerbt sich unabhaengig vom restlichen Verbund-CSS,
   damit nichts am bestehenden Layout veraendert wird. */

/* --- Desktop-Fix ------------------------------------------------------
   Ab 981px zwingt marketplace.css die Seite in ein starres Ein-Bildschirm-
   Dashboard (html/body overflow:hidden, .content fixiert auf 100dvh, festes
   Rasterlayout mit den Slots top/hero/shops/dash bzw. +benefits). Das war
   fuer die alte App-artige Marktplatzoberflaeche gebaut. Seit Shop-Suche
   entfernt und Showcase/Terminal-Sektionen dazugekommen sind, passt eine
   Ein-Bildschirm-Zwangsjacke nicht mehr: neue Sektionen haben keinen
   Rasterplatz und werden von overflow:hidden abgeschnitten, und der
   "shops"-Slot bleibt als leeres Loch stehen. Deshalb hier auf normales,
   scrollendes Layout umgestellt -- die Sidebar bleibt beim Scrollen stehen,
   der Inhalt flieszt in natuerlicher Dokumentreihenfolge. */
@media (min-width: 981px) {
  html, body { height: auto !important; overflow: visible !important; }
  .app-shell {
    height: auto !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: flex-start !important;
  }
  .sidebar {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    flex: 0 0 228px !important;
  }
  .content {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    flex: 1 1 auto !important;
    background: var(--bg) !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  .content > * {
    grid-area: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 0 18px !important;
  }
  .benefit-strip { display: grid !important; }
  .dashboard.kfr-dashboard { display: grid !important; }
  .hero { height: auto !important; }
  .hero-search-card { display: block !important; }
}

/* Hero-Hintergrundbild zeigte auf ein Bild eines anderen (Demo-)Tenants und
   existiert auf dieser Domain nicht. Ruhiger, markenfarbener Verlauf statt
   totem Bildpfad. */
.hero {
  background: linear-gradient(120deg, #0b3b41 0%, #0f5c56 45%, #087f91 100%) !important;
}

/* Showcase/Terminal auf die Marken-Variablen umstellen, damit sie automatisch
   mitziehen, falls die Akzentfarbe (kfr-cyan.css) je geaendert wird. */
.showcase-kicker, .terminal-copy .showcase-kicker { color: var(--kfr-cyan-dark, #087f91); }
.mock-toggle-row button.is-active { border-color: var(--kfr-cyan-line, #7dd8e0); background: var(--kfr-cyan-soft, #e8f5e9); color: var(--kfr-cyan-dark, #37913c); }
.mock-checkout-btn { background: var(--kfr-cyan, #16b8c4); }
.terminal-facts li::before { color: var(--kfr-cyan-dark, #087f91); }

.showcase, .terminal-section { box-sizing: border-box; }
.showcase *, .terminal-section * { box-sizing: border-box; }

.showcase {
  padding: 40px 20px;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}
.showcase-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #087f91;
  font-weight: 700;
  margin: 0 0 8px;
}
.showcase h2 { font-size: 26px; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.01em; }
.showcase-lede { color: #4c6266; font-size: 15px; max-width: 52ch; margin: 0 auto 28px; }

.showcase-grid {
  display: grid;
  gap: 28px;
  justify-items: center;
}
@media (min-width: 760px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
}

/* ---------- Device frame ---------- */
.device-frame {
  margin: 0;
  display: inline-block;
  width: 100%;
  max-width: 300px;
}
.device-frame figcaption {
  font-size: 12.5px;
  font-weight: 700;
  color: #4c6266;
  margin-bottom: 10px;
}
.device-screen {
  border-radius: 28px;
  padding: 14px;
  border: 6px solid #0d0d10;
  box-shadow: 0 20px 45px -20px rgba(15, 23, 30, 0.45);
  text-align: left;
  overflow: hidden;
}

/* Owner-App (dunkel, echte Farben aus der Owner-PWA) */
.owner-screen {
  background: radial-gradient(circle at 25% -10%, rgba(255,77,13,.30), transparent 40%), linear-gradient(160deg,#121018 0%,#1a1218 55%,#221414 100%);
  color: #fff8ee;
  font-family: -apple-system, sans-serif;
}
.mock-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mock-mark { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg,#ff4d0d,#ffb000); display: grid; place-items: center; font-weight: 800; color: #190905; font-size: 13px; flex-shrink: 0; }
.mock-top strong { display: block; font-size: 14px; }
.mock-top small { color: #c8b9a8; font-size: 10.5px; font-weight: 700; }
.mock-order-card {
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 12px 13px;
  margin-bottom: 10px;
}
.mock-order-head { display: flex; align-items: center; gap: 7px; }
.mock-order-head h4 { margin: 0; font-size: 13.5px; font-weight: 800; flex: 1; }
.mock-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(255,255,255,.09);
  color: #fff8ee;
  border: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
}
.mock-pill-gold { background: rgba(255,198,90,.16); color: #ffe2a1; border-color: rgba(255,198,90,.25); }
.mock-pill-blue { background: rgba(87,183,255,.16); color: #bfe3ff; border-color: rgba(87,183,255,.25); }
.mock-chevron { color: #c8b9a8; font-size: 11px; }
.mock-order-meta { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.mock-hint { display: block; font-size: 10px; color: #c8b9a8; font-weight: 700; margin: 6px 0 6px; }
.mock-order-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mock-order-actions button {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 6px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg,#ff4d0d,#ff8b1f);
  color: #fff;
}
.mock-order-card.is-collapsed { padding: 10px 13px; margin-bottom: 0; }
.mock-order-card.is-collapsed .mock-order-head h4 { font-size: 13px; }

/* Kunden-App (hell, echte Farben aus dashboard.js / style.css) */
.customer-screen { background: #ffffff; color: #101628; font-family: -apple-system, sans-serif; }
.mock-toggle-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.mock-toggle-row.small { margin-bottom: 10px; }
.mock-toggle-row button {
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 9px 4px;
  border: 1px solid #e2e5ec;
  border-radius: 10px;
  background: #fff;
  color: #101628;
}
.mock-toggle-row button.is-active { border-color: #7dd8e0; background: #e8f5e9; color: #37913c; }
.mock-time-field {
  border: 1px solid #e2e5ec;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.mock-time-label { display: block; font-size: 10.5px; font-weight: 800; color: #626b7e; margin-bottom: 6px; }
.mock-clock { text-align: center; font-size: 20px; font-weight: 800; padding: 6px 0 0; }
.mock-cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: #626b7e; margin-bottom: 10px; }
.mock-cart-total strong { font-size: 16px; color: #101628; }
.mock-checkout-btn {
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  padding: 11px;
  border-radius: 100px;
  background: #16b8c4;
  color: #fff;
}

/* ---------- Terminal section ---------- */
.terminal-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 20px 48px;
  display: grid;
  gap: 28px;
  align-items: center;
  justify-items: center;
  text-align: center;
}
@media (min-width: 760px) {
  .terminal-section { grid-template-columns: 1fr auto; text-align: left; justify-items: stretch; }
}
.terminal-copy h2 { font-size: 24px; font-weight: 800; margin: 0 0 10px; }
.terminal-copy p { color: #4c6266; font-size: 14.5px; max-width: 48ch; margin: 0 0 16px; }
.terminal-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.terminal-facts li {
  font-size: 13.6px;
  color: #35474a;
  padding-left: 20px;
  position: relative;
}
.terminal-facts li::before { content: "✓"; position: absolute; left: 0; color: #087f91; font-weight: 800; }
.terminal-visual { display: flex; justify-content: center; }

@media (prefers-reduced-motion: reduce) { .device-screen { transition: none; } }

/* ---------- Rechenbeispiel ---------- */
.calc-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}
.calc-grid {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
@media (min-width: 720px) { .calc-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.calc-card {
  border: 1px solid #e2e5ec;
  border-radius: 16px;
  padding: 22px 18px;
  background: #fff;
}
.calc-card.is-good { border-color: #16b8c4; }
.calc-card.is-highlight { background: #0f5c56; border-color: #0f5c56; }
.calc-label { font-size: 12.5px; font-weight: 700; color: #4c6266; margin: 0 0 10px; }
.calc-card.is-highlight .calc-label { color: rgba(255,255,255,.75); }
.calc-value { font-size: 32px; font-weight: 800; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.calc-card.is-highlight .calc-value { color: #fff; }
.calc-sub { font-size: 12.5px; color: #4c6266; margin: 0; }
.calc-card.is-highlight .calc-sub { color: rgba(255,255,255,.75); }

/* ---------- Ablauf / Prozess ---------- */
.process-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}
.process-steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  text-align: left;
}
@media (min-width: 720px) { .process-steps { grid-template-columns: repeat(3, 1fr); } }
.process-steps li { display: flex; gap: 12px; align-items: flex-start; }
@media (min-width: 720px) { .process-steps li { flex-direction: column; gap: 10px; } }
.process-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #16b8c4;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.process-steps strong { display: block; font-size: 15px; margin-bottom: 4px; }
.process-steps p { margin: 0; font-size: 13.8px; color: #4c6266; }

/* ---------- FAQ ---------- */
.faq-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 52px;
  text-align: center;
}
.faq-list { text-align: left; margin-top: 24px; display: grid; gap: 10px; }
.faq-list details {
  border: 1px solid #e2e5ec;
  border-radius: 12px;
  padding: 14px 18px;
  background: #fff;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: #087f91; font-weight: 800; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 10px 0 0; font-size: 13.8px; color: #4c6266; }
.faq-cta { margin-top: 26px; }
