/* 7 · Features (Export s06.png, 1440 × 1596). Bento: Reihe 1 = 628/308/308 × 480, Reihe 2 = 308/628/308 × 340,
   Reihe 3 = 3 × 416 × 300, Abstand 16. Alle Live-Teile (Stapel, Zähler, Balken, Tischplan, Beleg, Sync) sind HTML,
   die Schleifen laufen in 07-features.js. Karten-Innenmaße in Karten-px wie im Export; Innenzeilen sind fluid
   (links/rechts verankert), damit die Karten bei 1200–1439 und mobil schmaler werden dürfen.
   Ab 1200: Bento 4 Spalten · 768–1199: 2 Spalten · < 768: einspaltig. */

.s07 {
  padding: 110px 0;
  /* Farben aus dem Design ohne Token (Wunsch an das Fundament, siehe Bericht) */
  --s07-blue-100: #d6e8ff;      /* Karte „Getrennt zahlen“ */
  --s07-mint-50: #e3f8ec;       /* Tischplan-Verlauf oben */
  --s07-amber-100: #ffe7b8;     /* Tisch „Bestellt“ Fläche */
  --s07-amber-700: #a5600a;     /* Tisch „Bestellt“ Text */
  --s07-amber-500: #e8a23c;     /* Küchenbon-Timer ≥ 5 min */
  --s07-live: #3ddc84;          /* Live-Punkt Tischplan */
  --s07-shadow-card: 0 14px 32px rgba(0, 0, 0, 0.2);
}

/* Kopf */
.s07__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  margin-bottom: 56px;
}
.s07__title { margin-top: 16px; color: var(--text-primary); }
.s07__head > div { flex: none; }
.s07__lead { flex: 0 1 auto; max-width: 384px; margin-bottom: 2px; }
.s07__lead:lang(de) { max-width: 440px; }

/* Bento */
.s07__grid { display: grid; gap: 16px; }
.s07__grid--top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.s07__grid--row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.s07__c1 { grid-column: span 2; }
.s07__c5 { grid-column: span 2; }

.s07__card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-card);
  container-type: inline-size;
  height: 340px;
}
.s07__c1, .s07__c2, .s07__c3 { height: 480px; }
.s07__grid--row3 .s07__card { height: 300px; }

/* Kartenfarben */
.s07__c2 { background: var(--color-primary-900); color: var(--text-on-dark); }
.s07__c3 { background: var(--color-warning-200); }
.s07__c4 { background: var(--s07-blue-100); }
.s07__c6 { background: var(--color-success-100); border-radius: 12px; }
.s07__c7 { background: var(--color-warning-100); }
.s07__c8 { background: var(--color-primary-100); }
.s07__c9 { background: var(--color-lime-300); }
.s07__card--photo { background: var(--color-primary-950); color: var(--text-on-dark); }

/* Titel + Text unten links */
.s07__copy { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 5; }
.s07__copy h3 { color: inherit; }
.s07__copy p { margin-top: 6px; color: var(--text-secondary); }
.s07__c2 .s07__copy p { color: var(--color-primary-200); }
.s07__grid--row3 .s07__copy { left: 24px; right: 24px; bottom: 24px; }
.s07__copy--photo p { margin-top: 8px; color: var(--color-primary-200); }
.s07__c1 .s07__copy { left: 32px; bottom: 54px; }
.s07__c5 .s07__copy { bottom: 44px; }
.s07__copy--fp { left: 24px; bottom: 24px; }
.s07__copy--fp, .s07__copy--fp h3 { color: var(--text-primary); }
.s07__c8 .s07__copy { bottom: 35px; right: calc(35px + 180px + 12px); }

/* Fotokarten: Video + Verlauf */
.s07__media { position: absolute; inset: 0; z-index: 0; }
.s07__video { width: 100%; height: 100%; object-fit: cover; }
.s07__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--color-primary-950) 88%, transparent) 100%);
}

/* 1 · Tap to Pay */
.s07__badge {
  position: absolute; left: 28px; top: 28px; z-index: 3;
  height: 32px; padding: 0 14px; display: inline-flex; align-items: center;
  border-radius: var(--radius-pill); background: var(--color-lime-300); color: var(--color-black);
  text-transform: uppercase; white-space: nowrap;
}
.s07__toast {
  position: absolute; right: 28px; top: 28px; z-index: 3;
  min-width: 188px; height: 66px; padding: 0 20px 0 13px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 18px; background: var(--color-white); color: var(--color-black);
  box-shadow: var(--s07-shadow-card);
}
.s07__toast-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--color-lime-300); }
.s07__toast-ic svg { fill: none; stroke: var(--color-lime-300); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s07__toast-ic svg .f { fill: var(--color-black); stroke: none; }
.s07__toast-tx { display: flex; flex-direction: column; white-space: nowrap; }
.s07__toast-tx small { color: var(--color-neutral-500); }

/* 2 · Live-Umsatz */
.s07__sales { position: absolute; inset: 0; }
.s07__sales-lbl { position: absolute; left: 28px; top: 28px; color: var(--color-primary-300); white-space: nowrap; }
.s07__sales-row { position: absolute; left: 28px; right: 28px; top: 54px; display: flex; align-items: center; gap: 15px; }
.s07__sales-val { color: var(--color-lime-300); white-space: nowrap; font-variant-numeric: tabular-nums; }
.s07__sales-val.is-day { color: var(--color-white); }
.s07__up {
  height: 28px; padding: 0 10px; display: inline-flex; align-items: center; gap: 3px; flex: none;
  border-radius: var(--radius-pill); background: var(--color-lime-300-a15); color: var(--color-lime-300);
}
.s07__up svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s07__bars {
  position: absolute; left: 28px; right: 28px; top: 125px; height: 228px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.s07__bar {
  width: 30px; height: var(--h); border-radius: 6px;
  background: repeating-linear-gradient(-55deg, var(--color-primary-600-a60) 0 7px, var(--color-primary-600) 7px 8px);
}
.s07__bar--today { background: repeating-linear-gradient(-55deg, var(--color-lime-300) 0 7px, var(--color-lime-600) 7px 8.5px); }
.s07__cur {
  position: absolute; left: 0; top: 125px; width: 2px; height: 228px; border-radius: 1px;
  background: var(--color-white-a20); opacity: 0; pointer-events: none;
}
.s07__tip {
  position: absolute; left: 0; top: 128px; z-index: 3; height: 24px; padding: 0 8px;
  display: flex; align-items: center; border-radius: 8px; white-space: nowrap; font-weight: 600;
  background: var(--color-white); color: var(--color-primary-900); opacity: 0; pointer-events: none;
}

/* 3 · Trinkgeld */
.s07__opts { position: absolute; left: 28px; right: 28px; top: 28px; display: flex; gap: 6px; }
.s07__opt {
  flex: 1 1 0; min-width: 0; height: 56px; display: grid; place-items: center; white-space: nowrap;
  border-radius: 14px; background: var(--color-white); color: var(--color-black);
}
.s07__opt.is-on { background: var(--color-black); color: var(--color-lime-300); }
.s07__tip-added { position: absolute; left: 28px; top: 96px; color: var(--color-warning-800); white-space: nowrap; transform-origin: 0 50%; }
.s07__share {
  position: absolute; left: 28px; right: 28px; top: 0; height: 44px; padding: 0 12px 0 7px;
  display: flex; align-items: center; gap: 10px;
  border-radius: 12px; background: var(--color-white); color: var(--color-black); opacity: 0;
}
.s07__share .s07__av { width: 30px; height: 30px; }
.s07__share span { flex: 1; }
.s07__share b { font-weight: inherit; color: var(--color-success-600); }
.s07__dot { position: absolute; left: 0; top: 0; z-index: 4; width: 10px; height: 10px; border-radius: 50%; background: var(--color-warning-600); opacity: 0; }
.s07__note { position: absolute; left: 28px; top: 300px; color: var(--color-warning-800); opacity: 0; }

/* Kartenstapel (4 Split, 5 Küche, 7 Rollen) */
.s07__stack { list-style: none; padding: 0; }
.s07__row {
  position: absolute; left: 28px; right: 28px; top: 28px;
  border-radius: 12px; background: var(--color-white); color: var(--color-black);
  transform-origin: 50% 100%;
  translate: 0 calc(var(--s, 0) * var(--pitch));
  z-index: calc(20 - var(--s, 0));
}
.s07__row.is-live { translate: none; }
.s07__row-in { position: absolute; inset: 0; display: flex; align-items: center; }
.s07__av { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--color-primary-200) center / cover no-repeat; }

.s07__srow { height: 46px; --pitch: 54px; }
.s07__srow .s07__row-in { gap: 10px; padding: 8px 12px 8px 8px; }
.s07__amt { flex: 1; min-width: 0; white-space: nowrap; }
.s07__pill { flex: none; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.s07__pill--paid { background: var(--color-success-100); color: var(--color-success-600); }
.s07__pill--open { background: var(--color-warning-100); color: var(--color-warning-600); }

.s07__ticket {
  left: auto; right: 28px; width: min(260px, calc(100% - 56px)); height: 98px; --pitch: 106px;
  border-radius: 16px; box-shadow: var(--s07-shadow-card); z-index: calc(20 - var(--s, 0));
}
.s07__tickets { position: relative; z-index: 3; }
.s07__ticket .s07__row-in { flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 16px; color: var(--color-primary-900); }
.s07__ticket-head { display: flex; justify-content: space-between; align-items: flex-start; height: 22px; color: var(--color-black); }
.s07__timer { padding: 3px 8px; border-radius: 6px; color: var(--color-white); background: var(--color-success-600); }
.s07__timer[data-t="warn"] { background: var(--s07-amber-500); }
.s07__timer[data-t="late"] { background: var(--color-warning-600); }

.s07__rrow { left: 24px; right: 24px; top: 24px; height: 48px; --pitch: 56px; }
.s07__rrow .s07__row-in { gap: 8px; padding: 9px 12px; }
.s07__role { flex: 1; min-width: 0; display: flex; flex-direction: column; white-space: nowrap; }
.s07__role small { color: var(--color-neutral-500); }
.s07__sw { position: relative; flex: none; width: 36px; height: 20px; border-radius: 10px; background: var(--color-primary-200); }
.s07__sw i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-white); }
.s07__sw.is-on { background: var(--color-warning-600); }
.s07__sw.is-on i { left: 18px; }

/* 6 · Tischplan „Live pulse“ */
.s07__fp { position: absolute; inset: 0; background: linear-gradient(160deg, var(--s07-mint-50) 0%, var(--color-success-100) 100%); color: var(--text-primary); }
.s07__fp-glow { position: absolute; left: 140px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: var(--color-white); filter: blur(50px); opacity: 0.55; }
.s07__fp-top {
  position: absolute; left: 24px; right: 24px; top: 24px; height: 22px;
  display: flex; justify-content: space-between; align-items: center; color: var(--color-primary-900);
}
.s07__fp-live {
  height: 22px; padding: 0 9px 0 7px; display: flex; align-items: center; gap: 6px;
  border-radius: var(--radius-pill); background: var(--color-white); color: var(--color-black); font-weight: 600;
}
.s07__fp-live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--s07-live); }
.s07__fp-live b { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--s07-live); opacity: 0; }
.s07__fp-clock { display: flex; align-items: center; gap: 5px; }
.s07__fp-clock svg, .s07__fp-chip-ic svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s07__fp-grid {
  position: absolute; left: 24px; right: 24px; top: 60px; max-width: 300px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 48px; gap: 8px;
}
.s07__fp-cell { position: relative; }
.s07__fp-tbl, .s07__fp-ring { position: absolute; inset: 0; border-radius: 14px; }
.s07__fp-ring { border: 2px solid var(--fp-bg); opacity: 0; }
.s07__fp-tbl {
  padding: 7px 10px;
  background: var(--fp-bg); color: var(--fp-fg); overflow: hidden;
  transition: background-color 0.5s var(--ease-in-out), color 0.5s var(--ease-in-out);
}
/* Name + Gästepunkte oben, Zustand darunter (passt auch bei schmalen Tischen und deutschen Labels) */
.s07__fp-tbl { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: space-between; }
.s07__fp-tbl small { display: contents; }
.s07__fp-seats, .s07__fp-lbl { opacity: 0.85; }
.s07__fp-seats { display: flex; gap: 3px; align-self: center; }
.s07__fp-lbl { grid-column: 1 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s07__fp-seats b { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.s07__fp [data-s="F"] { --fp-bg: var(--color-white); --fp-fg: var(--color-success-600); }
.s07__fp [data-s="S"] { --fp-bg: var(--color-primary-200); --fp-fg: var(--color-primary-600); }
.s07__fp [data-s="O"] { --fp-bg: var(--s07-amber-100); --fp-fg: var(--s07-amber-700); }
.s07__fp [data-s="B"] { --fp-bg: var(--color-warning-200); --fp-fg: var(--color-warning-600); }
.s07__fp-chip {
  position: absolute; left: 24px; top: 176px; height: 32px; padding: 0 12px 0 6px;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  border-radius: var(--radius-pill); background: var(--color-white); color: var(--color-primary-900);
  box-shadow: 0 8px 20px rgba(22, 15, 38, 0.18); opacity: 0;
}
.s07__fp-chip-ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--color-white); background: var(--fp-fg); }
.s07__fp-chip-ic svg { grid-area: 1 / 1; display: none; }
.s07__fp-chip[data-s="F"] svg[data-s="F"], .s07__fp-chip[data-s="S"] svg[data-s="S"],
.s07__fp-chip[data-s="O"] svg[data-s="O"], .s07__fp-chip[data-s="B"] svg[data-s="B"] { display: block; }

/* 8 · Belege */
.s07__rc-pill {
  position: absolute; left: 24px; top: 28px; z-index: 3;
  height: 32px; padding: 0 12px 0 10px; display: flex; align-items: center; gap: 6px; white-space: nowrap;
  border-radius: var(--radius-pill); background: var(--color-lime-300); color: var(--color-black);
}
.s07__rc-pill--scan { top: 72px; background: var(--color-primary-600); color: var(--color-white); }
.s07__rc-pill svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s07__rc-pill--tse svg .f { fill: var(--color-black); stroke: none; }
.s07__rc-pill--tse svg path { stroke: var(--color-lime-300); stroke-width: 2.4; }
.s07__rc-scale { position: absolute; right: 35px; top: 44px; width: 180px; height: 340px; transform-origin: 100% 0; }
.s07__rc-phone {
  width: 180px; height: 340px; padding: 22px 16px 0; overflow: hidden;
  border-radius: 16px; background: var(--color-white); color: var(--color-neutral-600);
  box-shadow: 0 18px 40px rgba(23, 15, 38, 0.22);
}
.s07__rc-ln { display: flex; justify-content: space-between; height: 14px; margin-bottom: 10px; white-space: nowrap; }
.s07__rc-ln b { font-weight: 400; color: var(--color-black); }
.s07__rc-ln--name, .s07__rc-ln--total { height: 16px; color: var(--color-black); }
.s07__rc-ln--meta { color: var(--color-neutral-500); }
.s07__rc-total { color: var(--color-primary-600) !important; }
.s07__qr { margin: 8px auto 0; width: 72px; height: 72px; fill: var(--color-black); }

/* 9 · Immer synchron */
.s07__sync { list-style: none; padding: 0; position: absolute; left: 24px; right: 24px; top: 24px; display: flex; flex-direction: column; gap: 8px; }
.s07__dev {
  position: relative; height: 34px; padding: 0 12px; display: flex; align-items: center; gap: 8px;
  border-radius: 12px; background: var(--color-white-a70); color: var(--color-black);
}
.s07__dev-fl { position: absolute; inset: 0; border-radius: inherit; background: var(--color-white); opacity: 0; }
.s07__dev b { position: relative; flex: 1; }
.s07__st { position: relative; display: flex; align-items: center; gap: 8px; color: var(--color-success-600); }
.s07__st i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success-600); }
.s07__sync-line {
  position: absolute; left: 0; top: 41px; width: 2px; height: 84px; border-radius: 1px;
  background: color-mix(in srgb, var(--color-success-600) 30%, transparent);
}
.s07__pkt {
  position: absolute; left: 0; top: 0; z-index: 3; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; color: var(--color-white); background: var(--color-success-600);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-success-600) 40%, transparent); opacity: 0;
}
.s07__pkt svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Schmale Karten (Containerabfragen statt Viewport) */
@container (max-width: 460px) {
  .s07__toast { top: 72px; }
}
@container (max-width: 390px) {
  .s07__rc-scale { right: 20px; scale: 0.84; }
  .s07__c8 .s07__copy { right: calc(20px + 151px + 12px); }
}
@container (max-width: 280px) {
  .s07__fp-tbl { padding: 7px 8px; }
}

/* 768–1199: zwei Spalten, breite Karten über beide */
@media (max-width: 1199px) {
  .s07__grid--top { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .s07__grid--row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s07__c9 { grid-column: span 2; }
}

/* < 768: einspaltig */
@media (max-width: 767px) {
  .s07 { padding: 72px 0; }
  .s07__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .s07__title { margin-top: 12px; }
  .s07__grid, .s07__grid--top, .s07__grid--row3 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .s07__grid--row3 { margin-top: 12px; }
  .s07__c1, .s07__c5, .s07__c9 { grid-column: auto; }
  .s07__c1 { height: 460px; }
  .s07__c1 .s07__copy { left: 24px; right: 24px; bottom: 32px; }
  .s07__c5 .s07__copy { left: 24px; right: 24px; bottom: 28px; }
}
