/* orderio Gruppenbestellung im Shop, Version 2 (28.11.2026). Alles unter .rdg-*.
   Fenster, Eingabefelder und Haupt-Knoepfe kommen aus dem Shop selbst (custom-modal, form-control, b-btn),
   hier nur die Teile, die es im Shop noch nicht gibt, in derselben Linie:
   Tinte --rd-ink, Grau --rd-muted, Linie --rd-line, Flaechen #faf7f4 / #f3f0ea, Rundung 12 bis 16 px,
   Akzent = Shopfarbe --primary_color. 1rem = 10px. */

.rdg-modal .modal-body.rdg-body { display: flex; flex-direction: column; gap: 1.6rem; padding: 1.8rem; color: var(--rd-ink, #17150f); }
@media (min-width: 768px) { .rdg-modal .modal-dialog { max-width: 46rem; } .rdg-modal .modal-body.rdg-body { padding: 2.2rem; } }
.rdg-modal .form-group { margin-bottom: 0; }
.rdg-modal .b-btn-lg { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.rdg-modal .b-btn-lg i { font-size: 1.6rem; }
.rdg-modal .b-btn-lg[disabled], .rdg-modal .is-busy { opacity: .55; pointer-events: none; }

/* Einleitung mit Icon-Kachel */
.rdg-intro { display: flex; gap: 1.4rem; align-items: flex-start; }
.rdg-intro p { margin: 0; font-size: 1.45rem; line-height: 1.55; color: var(--rd-muted, #8a857d); }
.rdg-tile { flex: 0 0 4.6rem; width: 4.6rem; height: 4.6rem; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--primary_color, #ff5a1f) 10%, #fff); color: var(--primary_color, #ff5a1f); font-size: 2rem; }
.rdg-lead { margin: 0; font-size: 1.45rem; line-height: 1.55; color: var(--rd-muted, #8a857d); }
.rdg-hint { margin: 0; font-size: 1.25rem; line-height: 1.5; color: var(--rd-muted, #8a857d); }
.rdg-center { text-align: center; }

/* So funktioniert es */
.rdg-steps { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rd-line, #efece6); border-radius: 16px; background: #faf7f4; overflow: hidden; }
.rdg-steps li { display: flex; gap: 1.2rem; align-items: center; padding: 1.2rem 1.4rem; }
.rdg-steps li + li { border-top: 1px solid var(--rd-line, #efece6); }
.rdg-step-ic { flex: 0 0 3.6rem; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: #fff; border: 1px solid var(--rd-line, #efece6);
  display: inline-flex; align-items: center; justify-content: center; color: var(--primary_color, #ff5a1f); font-size: 1.5rem; }
.rdg-step-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.rdg-step-tx strong { font-size: 1.4rem; font-weight: 600; color: var(--rd-ink, #17150f); }
.rdg-step-tx span { font-size: 1.25rem; color: var(--rd-muted, #8a857d); }

.rdg-form { display: flex; flex-direction: column; gap: 1.2rem; }
.rdg-modal .form-control.rdg-invalid { border-color: #d64545 !important; }

/* Leiser Text-Knopf (Beenden, Verlassen, Allein bestellen) */
.rdg-textbtn { align-self: center; background: none; border: 0; padding: .6rem 1rem; font: inherit; font-size: 1.35rem; font-weight: 600;
  color: var(--rd-muted, #8a857d); cursor: pointer; border-radius: 10px; }
.rdg-textbtn:hover { color: var(--rd-ink, #17150f); }

/* Zweiter Knopf (Outline wie "Ich möchte abholen") */
.rdg-outline { display: flex; align-items: center; justify-content: center; gap: .8rem; width: 100%; min-height: 5rem; padding: 0 1.6rem;
  background: #fff; color: var(--primary_color, #ff5a1f) !important; border: 1.5px solid var(--primary_color, #ff5a1f); border-radius: 14px;
  font: inherit; font-size: 1.6rem; font-weight: 600; text-decoration: none !important; cursor: pointer; }
.rdg-outline:hover { background: color-mix(in srgb, var(--primary_color, #ff5a1f) 6%, #fff); }

/* Link teilen */
.rdg-share { display: flex; flex-direction: column; gap: 1rem; }
.rdg-link { position: relative; }
.rdg-link i { position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%); color: var(--rd-muted, #8a857d); font-size: 1.5rem; pointer-events: none; }
.rdg-modal .rdg-link .form-control { padding-left: 4.2rem; background: #faf7f4; font-size: 1.35rem; color: var(--rd-ink, #17150f); text-overflow: ellipsis; }
.rdg-share-btns { display: grid; grid-template-columns: 1fr auto; gap: 1rem; }
.rdg-share-btns .rdg-outline { width: auto; padding: 0 1.8rem; }
.rdg-share-btns .b-btn-lg { margin: 0 !important; }

/* Gruppe */
.rdg-group { display: flex; flex-direction: column; gap: .8rem; }
.rdg-group-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.5rem; font-weight: 700; color: var(--rd-ink, #17150f); padding: .2rem .2rem 0; }
.rdg-group-head span + span { font-size: 1.3rem; font-weight: 500; color: var(--rd-muted, #8a857d); }
.rdg-person { border: 1px solid var(--rd-line, #efece6); border-radius: 16px; padding: 1.2rem 1.4rem; background: #fff; }
.rdg-person.is-new { border-color: color-mix(in srgb, var(--primary_color, #ff5a1f) 35%, #fff); background: color-mix(in srgb, var(--primary_color, #ff5a1f) 3%, #fff); }
.rdg-person-row { display: flex; align-items: center; gap: 1.2rem; min-width: 0; }
.rdg-av { flex: 0 0 3.6rem; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: #f3f0ea; color: var(--rd-ink, #17150f);
  font-size: 1.5rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rdg-person.is-host .rdg-av { background: var(--primary_color, #ff5a1f); color: #fff; }
.rdg-pname { flex: 1; min-width: 0; font-size: 1.5rem; font-weight: 600; color: var(--rd-ink, #17150f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdg-pname small { font-size: 1.2rem; font-weight: 500; color: var(--rd-muted, #8a857d); margin-left: .2rem; }
.rdg-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 1rem; border-radius: 999px; background: #f3f0ea;
  color: var(--rd-muted, #8a857d); font-size: 1.2rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rdg-chip.is-new { background: color-mix(in srgb, var(--primary_color, #ff5a1f) 12%, #fff); color: var(--primary_color, #ff5a1f); }
.rdg-chip.is-ok { background: #e8f4ec; color: #2e7d4f; }
.rdg-chip i { font-size: 1rem; }
.rdg-items { list-style: none; margin: 1.1rem 0 0; padding: 1rem 0 0 4.8rem; border-top: 1px solid var(--rd-line, #efece6); display: flex; flex-direction: column; gap: .7rem; }
.rdg-items li { display: flex; gap: .8rem; font-size: 1.35rem; line-height: 1.4; color: var(--rd-ink, #17150f); }
.rdg-q { flex: 0 0 auto; font-weight: 600; color: var(--primary_color, #ff5a1f); font-variant-numeric: tabular-nums; }
.rdg-n { flex: 1; min-width: 0; }
.rdg-n small { display: block; font-size: 1.2rem; color: var(--rd-muted, #8a857d); }
.rdg-p { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.rdg-empty { display: flex; gap: 1.2rem; align-items: center; padding: 1.4rem; border: 1px dashed #e2ddd4; border-radius: 16px; color: var(--rd-muted, #8a857d); font-size: 1.3rem; line-height: 1.5; }
.rdg-empty i { font-size: 1.8rem; color: #c9c3b8; }
.rdg-actions { display: flex; flex-direction: column; gap: 1rem; }
.rdg-actions .b-btn-lg { margin: 0 !important; }

/* Gesendet / bestellt */
.rdg-done { display: flex; gap: 1.4rem; align-items: center; padding: 1.4rem; border-radius: 16px; background: #e8f4ec; }
.rdg-done-ic { flex: 0 0 4.4rem; width: 4.4rem; height: 4.4rem; border-radius: 50%; background: #2e7d4f; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; }
.rdg-done > div { display: flex; flex-direction: column; line-height: 1.4; }
.rdg-done > div strong { font-size: 1.5rem; font-weight: 700; color: #1d5636; }
.rdg-done > div span { font-size: 1.3rem; color: #3f7a58; font-variant-numeric: tabular-nums; }

/* Warenkorb */
.rdg-cartbox { margin-top: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.rdg-cartopt { display: flex; align-items: center; gap: 1rem; width: 100%; min-height: 5rem; padding: 0 1.6rem; border-radius: 14px;
  border: 1px solid var(--rd-line, #efece6); background: #faf7f4; color: var(--rd-ink, #17150f); font: inherit; font-size: 1.5rem; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.rdg-cartopt > i:first-child { color: var(--primary_color, #ff5a1f); font-size: 1.7rem; }
.rdg-cartopt span { flex: 1; min-width: 0; }
.rdg-cartopt:hover { border-color: color-mix(in srgb, var(--primary_color, #ff5a1f) 40%, #fff); }
.rdg-cartopt.is-new { background: color-mix(in srgb, var(--primary_color, #ff5a1f) 8%, #fff); border-color: color-mix(in srgb, var(--primary_color, #ff5a1f) 35%, #fff); }
.rdg-cartopt.is-done { background: #e8f4ec; border-color: #cfe7d8; color: #1d5636; }
.rdg-cartopt.is-done > i:first-child { color: #2e7d4f; }
.rdg-chev { color: var(--rd-muted, #8a857d); font-size: 1.3rem; }
.rdg-cartnote { margin: 0; font-size: 1.2rem; color: var(--rd-muted, #8a857d); text-align: center; line-height: 1.45; }
.rdg-send { margin: 0; }
.rdg-send .b-btn-lg { width: 100%; }
body.rdg-guest #cart .cart-bottom .cart-button:not(.rdg-send),
body.rdg-guest #cart .cart-bottom .cart-description { display: none !important; }

.rdg-modal .rdg-textbtn:focus-visible, .rdg-outline:focus-visible, .rdg-cartopt:focus-visible, .rdg-status:focus-visible, .rdg-status-btn:focus-visible {
  outline: 2px solid var(--primary_color, #ff5a1f); outline-offset: 2px; }

/* Kurze Meldung */
.rdg-toast { position: fixed; z-index: 100001; left: 50%; top: calc(1.2rem + env(safe-area-inset-top)); transform: translate(-50%, -1rem);
  display: flex; align-items: center; gap: 1rem; width: max-content; max-width: calc(100% - 2.4rem); padding: 1.2rem 1.6rem; border-radius: 16px;
  background: #fff; border: 1px solid var(--rd-line, #efece6); box-shadow: 0 10px 28px rgba(30, 25, 20, .16);
  color: var(--rd-ink, #17150f); font-size: 1.4rem; font-weight: 500; line-height: 1.4; opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.rdg-toast[hidden] { display: none; }
.rdg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.rdg-toast i { font-size: 1.8rem; color: #2e7d4f; flex: 0 0 auto; }
.rdg-toast[data-kind="info"] i { color: var(--primary_color, #ff5a1f); }
.rdg-toast[data-kind="error"] i { color: #d64545; }
@media (prefers-reduced-motion: reduce) { .rdg-toast { transition: none; } }

/* Einstieg oben neben "Informationen" */
.rdg-inforow { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.8rem; }
.rdg-inforow .rest-info-title { flex: 0 0 100%; }
.rdg-headlink { cursor: pointer; }
.rdg-headlink i { font-size: 1.15em; }

/* Statuskarte oben, solange eine Gruppe laeuft (im Stil der Aktionskarten) */
.rdg-statuscol { margin-top: 1.4rem; }
.rdg-status { display: flex; align-items: center; gap: 1.2rem; width: 100%; padding: 1.1rem 1.4rem; border-radius: 16px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--primary_color, #ff5a1f) 25%, #fff); background: color-mix(in srgb, var(--primary_color, #ff5a1f) 5%, #fff);
  color: var(--rd-ink, #17150f); transition: border-color .15s ease; }
.rdg-status:hover { border-color: color-mix(in srgb, var(--primary_color, #ff5a1f) 45%, #fff); }
.rdg-status-ic { flex: 0 0 4rem; width: 4rem; height: 4rem; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--primary_color, #ff5a1f); font-size: 1.8rem; }
.rdg-status-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.rdg-status-tx strong { font-size: 1.5rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdg-status-tx span { font-size: 1.3rem; color: var(--rd-muted, #8a857d); font-variant-numeric: tabular-nums; }
.rdg-status-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .6rem; font-size: 1.35rem; font-weight: 600; color: var(--primary_color, #ff5a1f); }
.rdg-status-go i { font-size: 1.2rem; }
.rdg-status-btn { flex: 0 0 auto; min-height: 4rem; padding: 0 1.6rem; border: 0; border-radius: 12px; background: var(--primary_color, #ff5a1f); color: #fff;
  font: inherit; font-size: 1.4rem; font-weight: 700; cursor: pointer; }
@media (max-width: 420px) { .rdg-status-go { font-size: 0; gap: 0; } .rdg-status-go i { font-size: 1.4rem; } }

/* Summe der Gruppe im Fenster */
.rdg-total { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: 14px; background: #faf7f4;
  font-size: 1.5rem; font-weight: 600; color: var(--rd-ink, #17150f); font-variant-numeric: tabular-nums; }
.rdg-total small { display: block; font-size: 1.2rem; font-weight: 500; color: var(--rd-muted, #8a857d); }
.rdg-total strong { font-size: 1.8rem; font-weight: 800; }
.rdg-done.is-warn { background: #fdf3e6; }
.rdg-done.is-warn .rdg-done-ic { background: #b7701c; }
.rdg-done.is-warn > div strong { color: #7a4a10; }
.rdg-done.is-warn > div span { color: #8a5a22; }
