/* =============================================================================
   Mini Cafe · Fassung 2 · eigenebowl.css  (Baustein „eigenebowl“, siehe eigenebowl.js)
   Akzentfläche für „Bau deine eigene Bowl“: hell = Mahdis Grün mit goldenem Ring,
   dunkel = Gold mit dunklem Ring (der dunkle Seitengrund ist selbst grün).
   Alles hängt an .eb-… bzw. .buehne-teil.eb-teil – die Bühne selbst bleibt unverändert.
   ============================================================================= */
:root, html[data-look="hell"] {
  --eb-flaeche: var(--c-gruen);
  --eb-auf: var(--c-beige-hell);
  --eb-ring: var(--c-gold);
  --eb-abz-bg: var(--c-gold);
  --eb-abz-fg: var(--c-schwarz);
  --eb-schritt-bg: color-mix(in srgb, var(--c-gruen) 10%, var(--c-beige-hell));
  --eb-schritt-fg: var(--c-schwarz);
  --eb-nummer-bg: var(--c-gruen);
  --eb-nummer-fg: var(--c-beige-hell);
}
html[data-look="dunkel"] {
  --eb-flaeche: var(--c-gold);
  --eb-auf: var(--c-schwarz);
  --eb-ring: var(--c-gruen-tief);
  --eb-abz-bg: var(--c-schwarz);
  --eb-abz-fg: var(--c-gold);
  --eb-schritt-bg: var(--c-gruen-hoch);
  --eb-schritt-fg: var(--c-beige);
  --eb-nummer-bg: var(--c-gold);
  --eb-nummer-fg: var(--c-schwarz);
}

/* ---------- Karte in der Bühne (a, b, d) ---------- */
.buehne-teil.eb-teil .buehne-bild { background: var(--eb-flaeche); }
.buehne-teil.eb-teil .buehne-bild::after {
  content: ""; position: absolute; inset: 8px; z-index: 1; pointer-events: none;
  border: 2px dashed var(--eb-ring); border-radius: calc(var(--rund-foto) - 6px); opacity: .9;
}
/* die eine Bowl rückt etwas nach oben, unten ist Platz für das Abzeichen */
.buehne-teil.eb-teil.ist-frei .buehne-bild > img,
.buehne-teil.eb-teil.ist-frei .buehne-bild > .buehne-bild-innen { left: 10%; top: 6%; width: 80%; height: 80%; }
.eb-abzeichen {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3;
  background: var(--eb-abz-bg); color: var(--eb-abz-fg);
  height: 32px; padding: 0 14px 0 11px; font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}
.eb-abzeichen .symbol { width: 16px; height: 16px; stroke-width: 2.6; }
.buehne--klein .eb-abzeichen { bottom: 8px; }
/* dunkler Look: das goldene Plus der Bühne wäre auf Gold unsichtbar */
html[data-look="dunkel"] .buehne-teil.eb-teil .bau-plus { background: var(--c-schwarz); color: var(--c-gold); }
/* Inhabers Foto in der Karte (b) */
.eb-trio { position: absolute; left: 4%; top: 3%; width: 92%; height: 85%; display: block; }
.eb-trio img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .28)); }
.buehne-teil.eb-foto .buehne-bild > .eb-trio img { mix-blend-mode: normal; }
.buehne-teil.eb-foto .buehne-bild .eb-plus { display: grid; position: absolute; right: 6%; top: 6%; width: 22%; height: 22%; border-radius: 50%; background: var(--eb-abz-bg); color: var(--eb-abz-fg); place-items: center; z-index: 3; }
.buehne-teil.eb-foto .buehne-bild .eb-plus .symbol { width: 46%; height: 46%; stroke-width: 2.4; }
.buehne-teil.eb-foto .buehne-bild { background: var(--eb-flaeche); }
.buehne-teil.eb-foto .buehne-bild > img { mix-blend-mode: normal; }

/* ---------- Schritte „Basis → Protein → Toppings“ ---------- */
.eb-schritte { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.eb-schritte li { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 5px; border-radius: var(--rund-pille); background: var(--eb-schritt-bg); color: var(--eb-schritt-fg); font: 600 14px/1 var(--schrift); }
.eb-schritte li b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--eb-nummer-bg); color: var(--eb-nummer-fg); font-weight: 800; font-size: 13px; }
.eb-schritte li.eb-pfeil { height: auto; padding: 0; background: none; color: var(--text-neben); }
.eb-schritte li.eb-pfeil .symbol { width: 16px; height: 16px; stroke-width: 2.2; }

/* unter der Bühne: nur sichtbar, solange die Eigene Bowl in der Mitte steht */
.eb-schritte-wrap { display: none; margin-top: 14px; }
.buehne-info.eb-info .eb-schritte-wrap { display: block; }
.buehne-info.eb-info .buehne-zeile { margin-top: 8px; }
.buehne-info.eb-info .buehne-name { color: var(--text); }

/* ---------- eigener großer Knopf ---------- */
.eb-knopf, .buehne-kauf .eb-knopf {
  background: var(--c-gold); color: var(--c-schwarz);
  min-height: 60px; font-size: 18px; font-weight: 800;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-gold) 35%, transparent), 0 6px 16px rgba(0, 0, 0, .14);
}
.eb-knopf > span:first-child, .eb-knopf [data-feld="linktext"] { display: inline-flex; align-items: center; gap: 8px; }
.eb-knopf .symbol { width: 20px; height: 20px; stroke-width: 2.6; flex: none; }
.eb-knopf:active { background: var(--c-gold-hell, #F3CD6E); color: var(--c-schwarz); }
@media (hover: hover) and (pointer: fine) {
  .eb-knopf:hover, .knopf.eb-knopf:not([aria-disabled="true"]):not(:disabled):hover { background: var(--c-gold-hell, #F3CD6E); color: var(--c-schwarz); }
}
html[data-look="dunkel"] .eb-knopf { background: var(--c-beige); color: var(--c-schwarz); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-gold) 55%, transparent); }
html[data-look="dunkel"] .eb-knopf:active, html[data-look="dunkel"] .knopf.eb-knopf:not([aria-disabled="true"]):not(:disabled):hover { background: var(--c-gold); color: var(--c-schwarz); }

/* schmales Handy: der Knopf darf die Seite nie breiter machen – Preis steht schon in der Größenwahl darüber */
.eb-knopf { padding-inline: 16px; }
@media (max-width: 599px) {
  .eb-knopf { max-width: 100%; min-width: 0; }
  .buehne-info .eb-knopf { font-size: 17px; gap: 8px; }
  .buehne-info .eb-knopf .trenner, .buehne-info .eb-knopf .preis { display: none; }
}

/* ---------- Karte unter der Bühne (c) ---------- */
.eb-band {
  position: relative; margin: 36px auto 0; max-width: 560px; overflow: hidden;
  display: grid; gap: 0; border-radius: var(--rund-gross);
  background: var(--eb-flaeche); color: var(--eb-auf);
}
.eb-band::before {
  content: ""; position: absolute; inset: 10px; z-index: 0; pointer-events: none;
  border: 2px dashed var(--eb-ring); border-radius: calc(var(--rund-gross) - 8px); opacity: .85;
}
.eb-band-bild { display: block; padding: 34px 40px 0; position: relative; z-index: 1; }
.eb-band-bild img { display: block; width: 100%; max-width: 330px; margin: 0 auto; height: auto; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .3)); }
.eb-band-text { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; padding: 18px 28px 32px; text-align: center; }
.eb-band .eb-abzeichen { position: static; transform: none; box-shadow: none; }
.eb-band-titel { font-size: 28px; line-height: 1.08; letter-spacing: var(--sperrung-titel); color: var(--eb-auf); }
.eb-band-satz { max-width: 30em; font-size: 15px; line-height: 1.4; color: var(--eb-auf); opacity: .92; }
.eb-band .eb-schritte { margin-top: 2px; }
.eb-band .eb-schritte li.eb-pfeil { color: var(--eb-auf); opacity: .8; }
.eb-band .eb-schritte li { background: color-mix(in srgb, var(--eb-auf) 14%, transparent); color: var(--eb-auf); }
.eb-band .eb-schritte li b { background: var(--eb-auf); color: var(--eb-flaeche); }
.eb-band-knopf { margin-top: 6px; width: 100%; max-width: 420px; }
.eb-band-knopf::after { content: ""; position: absolute; inset: 0; }   /* ganze Karte ist anklickbar */
.eb-band .eb-band-knopf, html[data-look="dunkel"] .eb-band .eb-band-knopf { background: var(--c-schwarz); color: var(--c-beige-hell); box-shadow: none; }
.eb-band .eb-band-knopf:hover { background: var(--c-schwarz); }
html:not([data-look="dunkel"]) .eb-band .eb-band-knopf { background: var(--c-gold); color: var(--c-schwarz); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-gold) 35%, transparent); }
html[data-look="dunkel"] .eb-band .eb-band-knopf .symbol { color: var(--c-gold); }
html[data-look="dunkel"] .eb-band .eb-band-knopf:active { background: var(--c-gruen-tief); }
.eb-band .eb-band-knopf:focus-visible { outline: 3px solid var(--eb-auf); outline-offset: 3px; }

@media (max-width: 599px) {
  .eb-band-bild { padding: 30px 30px 0; }
  .eb-band-text { padding: 16px 20px 28px; }
  .eb-band .eb-schritte { gap: 5px; }
  .eb-band .eb-schritte li { height: 32px; padding: 0 10px 0 4px; font-size: 13.5px; }
  .eb-band .eb-schritte li.eb-pfeil { display: none; }
  .eb-band-knopf { font-size: 17px; gap: 8px; min-width: 0; max-width: 100%; padding-inline: 14px; }
  .eb-band-knopf .trenner, .eb-band-knopf .preis { display: none; }
}

/* ---------- Sprungmarke unter der Überschrift (d) ---------- */
.eb-marke {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  height: 40px; padding: 0 16px 0 12px; border-radius: var(--rund-pille);
  background: var(--eb-flaeche); color: var(--eb-auf); font: 700 15px/1 var(--schrift);
  border: 2px dashed var(--eb-ring); box-sizing: border-box;
}
.eb-marke .symbol { width: 18px; height: 18px; stroke-width: 2.6; color: var(--eb-ring); }
html[data-look="dunkel"] .eb-marke .symbol { color: var(--c-gruen-tief); }
.eb-marke:active { transform: scale(.97); }

@media (min-width: 600px) {
  /* Computer / Tablet: Größenwahl und eigener Knopf nebeneinander, der Knopf so breit wie sein Text */
  .buehne-info.eb-info { max-width: 760px; }
  .buehne-info.eb-info .buehne-kauf { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
  .buehne-info.eb-info .buehne-kauf .groesse { flex: none; }
  .buehne-info.eb-info .buehne-kauf .eb-knopf { width: auto; flex: none; padding: 0 30px; }
}
@media (min-width: 1024px) {
  .eb-abzeichen { bottom: 20px; height: 34px; font-size: 15px; }
  .eb-band { max-width: 980px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; margin-top: 44px; }
  .eb-band-bild { padding: 34px 20px 34px 44px; }
  .eb-band-bild img { max-width: 400px; }
  .eb-band-text { justify-items: start; text-align: left; padding: 40px 48px 40px 12px; gap: 14px; }
  .eb-band-titel { font-size: 38px; }
  .eb-band-satz { font-size: 17px; }
  .eb-schritte { justify-content: flex-start; }
  .buehne-info.eb-info .eb-schritte { justify-content: center; }
  .eb-band-knopf { width: auto; min-width: 320px; padding: 0 34px; }
}

/* Bewegung nur, wenn das Gerät sie nicht einschränkt */
@media (prefers-reduced-motion: no-preference) {
  .eb-band-bild img { transition: transform 600ms cubic-bezier(.22, .61, .36, 1); }
  .eb-band:hover .eb-band-bild img { transform: rotate(-3deg) scale(1.03); }
  .eb-marke, .eb-knopf { transition: transform 160ms cubic-bezier(.22, .61, .36, 1), background-color 160ms; }
}
