/*
 * eatbase Eigene App: Hinweis-Leiste, Anleitung, Karte auf der
 * Bestellstatus-Seite und die App-Seite /eb-app.
 * Markenfarbe über --eb-blue/--eb-blue-dark (StorefrontTheme), sonst eatbase-Blau.
 * Alles unter .eb-app-* gescoped, immer heller Look.
 */

.eb-app-knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--eb-blue, #299fd1);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s ease, transform .15s ease;
}
.eb-app-knopf:hover, .eb-app-knopf:focus-visible { background: var(--eb-blue-dark, #217ea6); color: #fff; }
.eb-app-knopf:active { transform: translateY(1px); }
.eb-app-knopf:disabled { opacity: .6; cursor: default; }
.eb-app-knopf:focus-visible { outline: 3px solid rgba(41, 159, 209, .35); outline-offset: 2px; }
.eb-app-knopf--voll { width: 100%; }
.eb-app-knopf--gross { min-height: 52px; padding: 14px 28px; font-size: 17px; width: 100%; max-width: 360px; }

.eb-app-x {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6c7a86;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.eb-app-x:hover { background: #f1f4f7; color: #1f2a33; }

.eb-app-link {
    border: 0;
    background: none;
    padding: 4px 0;
    color: #6c7a86;
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

/* ── Hinweis-Leiste auf der Speisekarte ─────────────────────────────── */

.eb-app-balken {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--eb-app-unten, 12px) + env(safe-area-inset-bottom, 0px));
    z-index: 1045;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
    padding: 10px 8px 10px 12px;
    background: #fff;
    color: #1f2a33;
    border: 1px solid #e3e9ee;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 30, 45, .16), 0 2px 6px rgba(15, 30, 45, .06);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .25s ease, transform .25s ease, bottom .2s ease;
}
.eb-app-balken.is-offen { opacity: 1; transform: none; }
.eb-app-balken[hidden] { display: none; }
.eb-app-balken img { flex: 0 0 auto; border-radius: 11px; box-shadow: 0 0 0 1px rgba(15, 30, 45, .06); }
.eb-app-balken__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.35; }
.eb-app-balken__text b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-app-balken__text span { color: #5b6873; }
.eb-app-balken .eb-app-knopf { min-height: 40px; padding: 8px 14px; font-size: 14px; }

@media (max-width: 359.98px) {
    .eb-app-balken__text span { display: none; }
}
@media (min-width: 992px) {
    .eb-app-balken { left: auto; right: 24px; bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .eb-app-balken, .eb-app-sheet { transition: none; }
}

/* ── Anleitung (Bottom Sheet) ──────────────────────────────────────── */

.eb-app-sheet-wrap {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(15, 30, 45, .45);
}
.eb-app-sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    color: #1f2a33;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -8px 30px rgba(15, 30, 45, .2);
    transform: translateY(24px);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
}
.eb-app-sheet-wrap.is-offen .eb-app-sheet { transform: none; opacity: 1; }
@media (min-width: 600px) {
    .eb-app-sheet-wrap { align-items: center; }
    .eb-app-sheet { border-radius: 22px; }
}
.eb-app-sheet .eb-app-x { position: absolute; top: 10px; right: 10px; }
.eb-app-sheet__kopf { display: flex; align-items: center; gap: 14px; margin: 0 36px 14px 0; }
.eb-app-sheet__kopf img { border-radius: 13px; box-shadow: 0 0 0 1px rgba(15, 30, 45, .06); flex: 0 0 auto; }
.eb-app-sheet__titel { font-size: 18px; font-weight: 700; line-height: 1.3; }
.eb-app-sheet__unter { font-size: 13.5px; color: #5b6873; margin-top: 2px; }
.eb-app-sheet__lead { font-size: 15px; line-height: 1.5; margin: 0 0 12px; }

.eb-app-schritte { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.eb-app-schritte li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.eb-app-schritte__nr {
    flex: 0 0 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--eb-blue-light, #e7f5fb);
    color: var(--eb-blue-dark, #217ea6);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.eb-app-schritte svg { vertical-align: -4px; }
.eb-app-symbolchip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px 1px 6px;
    border-radius: 8px;
    background: #f1f4f7;
    font-weight: 600;
    white-space: nowrap;
}

/* iPhone: Anleitung schwebt über der Safari-Leiste, darunter zeigt der
   Pfeil auf die Teilen-Schaltfläche. */
.eb-app-sheet-wrap--pfeil .eb-app-sheet {
    margin: 0 10px calc(40px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px;
    padding-bottom: 20px;
}

/* Pfeil zur Teilen-Schaltfläche unten in Safari (iPhone). */
.eb-app-pfeil {
    position: fixed;
    left: 50%;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-right: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(45deg);
    animation: eb-app-wippen 1.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes eb-app-wippen { 50% { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .eb-app-pfeil { animation: none; } }

/* ── Karte auf der Bestellstatus-Seite ─────────────────────────────── */

/* Abstände sitzen am Inhalt, weil app.js alles in [data-eb-app-inhalt] legt. */
.eb-app-karte[hidden] { display: none; }
.eb-app-karte [data-eb-app-inhalt] { display: grid; gap: 16px; }
.eb-app-karte__zeile { display: flex; gap: 14px; align-items: flex-start; }
.eb-app-karte__zeile img { border-radius: 12px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(15, 30, 45, .06); }
.eb-app-karte__zeile > div { display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.45; min-width: 0; padding-top: 1px; }
.eb-app-karte__zeile b { font-size: 16.5px; line-height: 1.3; color: #1f2a33; }
.eb-app-karte__zeile > div > span { color: #5b6873; }
.eb-app-glocke, .eb-app-haken {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #eaf6fb;
    background: color-mix(in srgb, var(--eb-blue, #299fd1) 12%, #fff);
    color: var(--eb-blue-dark, #217ea6);
}
.eb-app-haken { background: #e6f6ee; color: #1c6b41; font-weight: 700; }
.eb-app-karte .eb-app-knopf--voll { min-height: 48px; font-size: 16px; }

/* Einwilligung als ruhiges Feld unter dem Text, Checkbox bündig zur Kante. */
.eb-app-karte .eb-app-check {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f5f7f9;
    font-size: 13.5px;
    color: #4a5661;
}
.eb-app-karte .eb-app-check input { margin-top: 0; }

.eb-app-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: #3a4650; cursor: pointer; margin: 0; }
.eb-app-check input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--eb-blue, #299fd1); }
.eb-app-meldung { font-size: 13.5px; color: #b42318; line-height: 1.4; }
.eb-app-meldung:empty { display: none; }
.eb-app-ok { color: #1c6b41; font-weight: 600; margin: 0 0 10px; }
.eb-app-leise { color: #5b6873; font-size: 14.5px; line-height: 1.5; margin: 0; }
