.eb-root {
  --sea: #0b3f75;
  --sea-2: #1565b0;
  --sky: #dff1ff;
  --sun: #ffc531;
  --sun-2: #ffb000;
  --sand: #fff6e3;
  --coral: #ef4b4b;
  --palm: #1f9a57;
  --ink: #17212e;
  --muted: #5c6b7c;
  --line: #e7dcc4;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(11, 63, 117, .12), 0 2px 6px rgba(11, 63, 117, .08);
}
.eb-root, .eb-root * { box-sizing: border-box; }
.eb-root {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); font-size: 19px; line-height: 1.45;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,197,49,.35) 0 90px, transparent 91px),
    radial-gradient(circle at 92% 30%, rgba(21,101,176,.10) 0 160px, transparent 161px),
    linear-gradient(180deg, var(--sky) 0, var(--sand) 340px);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
}
.eb-root input { user-select: text; -webkit-user-select: text; }
.eb-root button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }

/* ---------- Kopfzeile ---------- */
.eb-root .bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: var(--sea); color: #fff;
  box-shadow: 0 4px 0 var(--sun);
}
.eb-root .bar-logo { width: 44px; height: 44px; border-radius: 11px; }
.eb-root .bar-title { flex: 1; font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-root .bar-cart {
  border: 0; border-radius: 999px; padding: 8px 16px; min-height: 44px;
  background: var(--sun); color: var(--sea); font-weight: 800;
}

.eb-root .eb-main { max-width: 980px; margin: 0 auto; padding: 24px 16px 48px; }

/* ---------- Start / Danke ---------- */
.eb-root .hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center;
  background: var(--card); border-radius: 28px; padding: 22px; box-shadow: var(--shadow);
}
.eb-root .hero-img { width: 100%; max-height: 72vh; object-fit: cover; object-position: top; border-radius: 18px; display: block; }
.eb-root .hero-text { padding: 8px 8px 8px 0; }
.eb-root .kicker {
  display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px;
  background: var(--sun); color: var(--sea); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
}
.eb-root h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.05; margin: 0 0 14px; color: var(--sea); letter-spacing: -.02em; }
.eb-root h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 4px 0 18px; color: var(--sea); letter-spacing: -.01em; }
.eb-root h3 { margin: 0; font-size: 1.15rem; }
.eb-root h3 small { font-weight: 500; color: var(--muted); }
.eb-root .lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 26px; }
.eb-root .hint { color: var(--muted); margin: -6px 0 20px; }
.eb-root .hero .hint { margin: 16px 0 0; font-size: .95rem; }

/* ---------- Karte ---------- */
.eb-root .card { background: var(--card); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }

.eb-root .steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-weight: 700; color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
.eb-root .steps span:first-child { color: var(--sea); }
.eb-root .dots { display: flex; gap: 6px; margin-left: auto; }
.eb-root .dots i { width: 28px; height: 6px; border-radius: 3px; background: var(--line); }
.eb-root .dots i.on { background: var(--sun-2); }

/* ---------- Buttons ---------- */
.eb-root .btn {
  border: 0; border-radius: 16px; padding: 14px 26px; min-height: 58px; font-weight: 800; font-size: 1.08rem;
  transition: transform .08s ease, background .15s ease, opacity .15s;
}
.eb-root .btn:active:not(:disabled) { transform: scale(.97); }
.eb-root .btn:disabled { opacity: .4; cursor: not-allowed; }
.eb-root .btn.primary { background: var(--sea); color: #fff; box-shadow: 0 4px 0 #062849; }
.eb-root .btn.primary:not(:disabled):hover { background: var(--sea-2); }
.eb-root .btn.ghost { background: #eef3f8; color: var(--sea); }
.eb-root .btn.big { min-height: 68px; padding: 16px 34px; font-size: 1.2rem; }
.eb-root .link { background: none; border: 0; padding: 10px 4px; color: var(--sea-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.eb-root .link.danger { color: var(--coral); }
.eb-root .card > .link { display: block; margin: 18px auto 0; color: var(--muted); font-weight: 600; }

.eb-root .nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.eb-root .nav .btn.primary { min-width: 200px; }

/* ---------- Kacheln ---------- */
.eb-root .tiles { display: grid; gap: 14px; }
.eb-root .tiles.two { grid-template-columns: 1fr 1fr; }
.eb-root .tiles.three { grid-template-columns: repeat(3, 1fr); }
.eb-root .tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 96px; padding: 16px; border-radius: 20px;
  background: #fffaf0; border: 3px solid var(--line);
  transition: transform .08s ease, border-color .15s, background .15s;
}
.eb-root .tile:active { transform: scale(.97); }
.eb-root .tile b { font-size: 1.2rem; color: var(--sea); }
.eb-root .tile small { color: var(--muted); font-size: .92rem; }
.eb-root .tile.food { min-height: 230px; background: linear-gradient(180deg, #fff 0, #fff4d6 100%); }
.eb-root .tile.food .emo { font-size: 4.6rem; line-height: 1; }
.eb-root .tile.food b { font-size: 1.6rem; }
.eb-root .tile.choice.sel { border-color: var(--sea); background: var(--sky); box-shadow: inset 0 0 0 2px var(--sea); }
.eb-root .tile.choice.sel b::before { content: "✓ "; color: var(--palm); }

/* ---------- Ja/Nein ---------- */
.eb-root .yn-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.eb-root .yn { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 2px dashed var(--line); }
.eb-root .yn-label { font-weight: 700; font-size: 1.1rem; }
.eb-root .seg { display: inline-flex; background: #eef1f4; border-radius: 14px; padding: 4px; }
.eb-root .seg button { border: 0; background: transparent; min-width: 76px; min-height: 50px; border-radius: 11px; font-weight: 800; color: var(--muted); }
.eb-root .seg button.sel.yes { background: var(--palm); color: #fff; }
.eb-root .seg button.sel.no { background: var(--coral); color: #fff; }

/* ---------- Eingaben ---------- */
.eb-root .field { display: block; margin-bottom: 18px; }
.eb-root .field span { display: block; font-weight: 700; margin-bottom: 6px; }
.eb-root .field input {
  width: 100%; min-height: 60px; padding: 12px 16px; font: inherit; font-size: 1.15rem;
  border: 3px solid var(--line); border-radius: 16px; background: #fffdf8; color: var(--ink);
}
.eb-root .field input:focus { outline: none; border-color: var(--sea-2); background: #fff; }
.eb-root .err { color: var(--coral); font-weight: 700; min-height: 1.4em; margin: 0; }

/* ---------- Zusammenfassung / Warenkorb ---------- */
.eb-root .summary { background: #fffaf0; border: 2px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.eb-root .det { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 10px 0 0; font-size: .98rem; }
.eb-root .det dt { font-weight: 700; color: var(--muted); }
.eb-root .det dd { margin: 0; }
.eb-root .qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; font-weight: 700; font-size: 1.1rem; }
.eb-root .qty { display: inline-flex; align-items: center; gap: 6px; background: #eef1f4; border-radius: 14px; padding: 4px; }
.eb-root .qty button { width: 52px; height: 50px; border: 0; border-radius: 11px; background: #fff; font-size: 1.6rem; font-weight: 800; color: var(--sea); }
.eb-root .qty button:disabled { opacity: .35; }
.eb-root .qty output { min-width: 34px; text-align: center; font-weight: 800; font-size: 1.25rem; }

.eb-root .who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); margin: -8px 0 16px; }
.eb-root .cart { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.eb-root .cart li { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; background: #fffaf0; border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.eb-root .cart-main { min-width: 0; }
.eb-root .cart-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.eb-root .korb-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.eb-root .noscript { text-align: center; padding: 40px 16px; }

/* ---------- Hochformat / kleine Bildschirme ---------- */
@media (max-width: 760px) {
  .eb-root { font-size: 17px; }
  .eb-root .eb-main { padding: 16px 12px 40px; }
  .eb-root .hero { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
  .eb-root .hero-img { max-height: 46vh; }
  .eb-root .hero-text { padding: 0 6px 8px; }
  .eb-root .card { padding: 20px 16px; border-radius: 22px; }
  .eb-root .tiles.three { grid-template-columns: 1fr 1fr; }
  .eb-root .yn-list { grid-template-columns: 1fr; }
  .eb-root .tile.food { min-height: 180px; }
  .eb-root .tile.food .emo { font-size: 3.6rem; }
  .eb-root .nav .btn.primary { min-width: 0; flex: 1; }
  .eb-root .cart li { flex-direction: column; }
  .eb-root .cart-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .eb-root .korb-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .eb-root .tiles.two { grid-template-columns: 1fr; }
  .eb-root .tile.choice { min-height: 78px; padding: 12px 8px; }
  .eb-root .tile.choice b { font-size: 1.05rem; }
  .eb-root .seg button { min-width: 64px; }
}
@media (prefers-reduced-motion: reduce) { .eb-root * { transition: none !important; } }

/* ---------- Schutz vor Theme-Stilen ---------- */
.eb-root button { margin: 0; text-transform: none; letter-spacing: normal; line-height: 1.2; text-shadow: none; font-family: inherit; }
.eb-root button:focus-visible { outline: 3px solid var(--sun-2); outline-offset: 2px; }
.eb-root h1, .eb-root h2, .eb-root h3 { font-family: inherit; text-transform: none; font-weight: 800; }
.eb-root h3 { font-weight: 700; }
.eb-root img { height: auto; max-width: 100%; }
.eb-root ul, .eb-root dl { margin-left: 0; }

/* ---------- Vollbild (ohne Theme) vs. eingebettet im Theme ---------- */
body.eb-vollbild { margin: 0; }
body.eb-vollbild .eb-root { min-height: 100vh; min-height: 100dvh; }
.eb-root.eb-im-theme { border-radius: 24px; overflow: hidden; background-attachment: scroll; }
.eb-root.eb-im-theme .bar { position: relative; }
