/* Bestellseite */

/* ---------- Kopf ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(232, 172, 53, 0.14), transparent 24rem),
    linear-gradient(145deg, #172E28 0%, var(--ink) 65%, #294B40 100%);
  color: #FFF8EA;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 248, 234, 0.7) 0.7px, transparent 0.7px);
  background-size: 13px 13px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.hero-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-top: max(12px, env(safe-area-inset-top));
  position: relative; z-index: 2;
}
.place { font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.74rem; color: var(--sun); }
.lang-btn {
  min-height: 44px; padding: 8px 16px;
  border-radius: 999px; border: 2px solid rgba(255, 248, 234, 0.45);
  background: transparent; color: #FFF8EA;
  font: 800 0.95rem var(--font-body); cursor: pointer;
}
.lang-btn:hover { background: rgba(255, 248, 234, 0.1); }

.hero-main { position: relative; padding-top: 28px; padding-bottom: 18px; }

/* Bucht von Sámara mit Isla Chora */
.bay {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: 30% 100%;
  margin-top: -10px;
}
@media (min-width: 640px) { .bay { height: 150px; object-position: 50% 100%; } }

/* Tischtuch-Muster im Hintergrund */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(232, 172, 53, 0.08), transparent 25rem),
    repeating-linear-gradient(0deg, var(--mantel) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(90deg, var(--mantel) 0 14px, transparent 14px 28px);
}
:root { --mantel: rgba(184, 58, 50, 0.024); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mantel: rgba(242, 183, 5, 0.018); } }
:root[data-theme="dark"] { --mantel: rgba(242, 183, 5, 0.018); }

/* Persönliche Notiz */
.nota {
  position: relative;
  margin-top: 38px;
  padding: 28px clamp(20px, 4vw, 34px) 22px;
  background: var(--surface);
  border-radius: 8px 26px 26px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transform: rotate(-0.6deg);
}
.nota::before {
  content: "";
  position: absolute; top: -10px; left: 50%;
  width: 110px; height: 22px; margin-left: -55px;
  background: color-mix(in srgb, var(--sun) 70%, transparent);
  transform: rotate(2deg);
  border-radius: 3px;
}
.nota::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border: 2px solid color-mix(in srgb, var(--leaf) 28%, transparent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 7px color-mix(in srgb, var(--leaf) 18%, transparent);
  opacity: 0.65;
  pointer-events: none;
}
.nota-title { font-size: clamp(1.65rem, 4vw, 2rem); color: var(--accent-text); }
.nota p { font-size: 1.02rem; }
.nota-firma { font-family: var(--font-display); font-size: 1.15rem; color: var(--ok); text-align: right; margin-bottom: 14px; }
.como {
  list-style: none; margin: 0; padding: 14px 0 0;
  border-top: 2px dashed var(--line);
  display: grid; gap: 10px;
}
.como li { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.como-n {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.15rem; color: #fff;
  background: var(--red);
}
.como li:nth-child(2) .como-n { background: var(--blue); }
.como li:nth-child(3) .como-n { background: var(--leaf); }
@media (min-width: 640px) {
  .como { grid-template-columns: repeat(3, 1fr); }
  .como li { font-size: 0.95rem; }
}
.wheel {
  position: absolute;
  right: -62px; top: -34px;
  width: 170px; height: 170px;
  opacity: 0.95;
  animation: rodar 60s linear infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes rodar { to { transform: rotate(360deg); } }

.hero h1 { position: relative; z-index: 1; margin: 0 0 14px; max-width: 12ch; }
.hero .t-a { display: block; font-size: 1.35rem; color: #FFF8EA; }
.hero .t-b { display: block; font-size: clamp(3rem, 12vw, 5.2rem); color: var(--sun); line-height: 0.92; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.2); }
.intro { position: relative; z-index: 1; max-width: 36ch; font-size: clamp(1.05rem, 3vw, 1.25rem); color: #F0E9DB; }

.status-pill {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  margin: 6px 0 0;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(255, 248, 234, 0.12);
  color: #FFF8EA;
}
.status-pill .dot { width: 12px; height: 12px; border-radius: 50%; background: #9aa0b8; flex: none; }
.status-pill.is-open { background: var(--leaf); }
.status-pill.is-open .dot { background: #BDF5CF; box-shadow: 0 0 0 0 rgba(189, 245, 207, 0.7); animation: latido 2s infinite; }
.status-pill.is-closed { background: var(--red); }
.status-pill.is-closed .dot { background: #FFD1D3; }
@keyframes latido {
  70% { box-shadow: 0 0 0 10px rgba(189, 245, 207, 0); }
  100% { box-shadow: 0 0 0 0 rgba(189, 245, 207, 0); }
}

@media (min-width: 640px) {
  .wheel { right: 10px; top: 36px; width: 250px; height: 250px; }
  .hero .t-a { font-size: 1.7rem; }
  .hero-main { padding-top: 44px; padding-bottom: 24px; }
}

/* ---------- Menü ---------- */
main { padding-bottom: 56px; }
.menu, .checkout { padding-top: 42px; outline: none; }
.menu h2, .checkout h2 { color: var(--text); }
.menu > h2, .checkout > h2 {
  font-size: clamp(2.15rem, 6vw, 3rem);
  letter-spacing: 0.01em;
}
.menu h2::after, .checkout h2::after {
  content: ""; display: block; width: 64px; height: 6px; margin-top: 8px; border-radius: 3px;
  background: linear-gradient(90deg, var(--red) 0 25%, var(--sun) 25% 50%, var(--leaf) 50% 75%, var(--blue) 75%);
}

.dishes { display: grid; gap: 18px; }
.dish {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-areas: "emoji body" "actions actions";
  gap: 4px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px 24px 24px 8px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.dish::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid transparent;
  border-radius: 18px 18px 18px 5px;
  pointer-events: none;
  transition: border-color 0.2s ease;
}
.dish { position: relative; }
.dish:hover::before { border-color: color-mix(in srgb, var(--sun) 28%, transparent); }
.dish:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(33, 52, 46, 0.04), 0 18px 42px rgba(33, 52, 46, 0.1); }
.dish.in-cart { border-color: var(--leaf); box-shadow: 0 0 0 2px var(--leaf), var(--shadow); }
.dish.skeleton { min-height: 120px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: brillo 1.4s infinite linear; }
@keyframes brillo { to { background-position: -200% 0; } }

.dish-emoji {
  grid-area: emoji;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  font-size: 2.2rem;
  border-radius: 50%;
  background: var(--surface-2);
  border: 3px solid var(--sun);
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 6px color-mix(in srgb, var(--sun) 45%, transparent);
}
.dish:nth-child(4n+2) .dish-emoji { border-color: var(--red); }
.dish:nth-child(4n+3) .dish-emoji { border-color: var(--leaf); }
.dish:nth-child(4n+4) .dish-emoji { border-color: var(--blue); }
.dish-body { grid-area: body; min-width: 0; }
.dish h3 { margin: 2px 0 4px; }
.dish h3 { font-size: 1.42rem; color: var(--ink); }
.dish-desc { color: var(--muted); margin: 0 0 8px; font-size: 0.97rem; }
.dish-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.price { font-weight: 900; font-size: 1.15rem; }
.price { color: var(--accent-text); }
.dish-actions { grid-area: actions; display: flex; justify-content: flex-end; margin-top: 8px; }
.dish-actions:empty { display: none; }
.dish.soldout .dish-emoji { filter: grayscale(1); opacity: 0.6; }
.dish.soldout h3, .dish.soldout .price { color: var(--muted); }
.dish.soldout .price { text-decoration: line-through; }

@media (min-width: 560px) {
  .dish { grid-template-columns: 72px 1fr auto; grid-template-areas: "emoji body actions"; align-items: center; }
  .dish-emoji { width: 72px; height: 72px; font-size: 2.5rem; }
  .dish-actions { margin-top: 0; }
}

@media (min-width: 820px) {
  .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dish {
    grid-template-columns: 64px 1fr;
    grid-template-areas: "emoji body" "actions actions";
    align-items: start;
    min-height: 194px;
  }
  .dish-emoji { width: 64px; height: 64px; font-size: 2.25rem; }
  .dish-actions { align-self: end; margin-top: 12px; }
  .dish-actions .btn,
  .dish-actions .stepper { width: 100%; }
  .dish-actions .stepper { justify-content: space-between; }
  .checkout { max-width: 760px; margin-inline: auto; }
}

.stepper {
  display: inline-flex; align-items: center;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.step {
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: var(--ink); color: #fff;
  font: 900 1.5rem/1 var(--font-body);
  cursor: pointer;
}
.step:hover { background: var(--leaf); }
:root[data-theme="dark"] .step { background: var(--sun); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step { background: var(--sun); color: var(--ink); } }
.step:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper .qty { min-width: 42px; text-align: center; font-weight: 900; font-size: 1.25rem; }
.stepper.small .step { width: 40px; height: 40px; font-size: 1.25rem; }
.stepper.small .qty { min-width: 32px; font-size: 1.05rem; }
.btn.add { min-width: 140px; }

.empty { color: var(--muted); padding: 12px 0; margin: 0; }

/* ---------- Warenkorb / Formular ---------- */
.checkout .card + .card { margin-top: 16px; }
.checkout .card { border-radius: 26px 26px 26px 8px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  grid-template-areas: "e n n" "e s t";
  align-items: center;
  gap: 4px 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-lines li.empty { display: block; }
.line-emoji { grid-area: e; font-size: 1.7rem; }
.line-name { grid-area: n; font-weight: 800; }
.line-name small { display: block; font-weight: 600; color: var(--muted); }
.cart-lines .stepper { grid-area: s; justify-self: start; }
.line-total { grid-area: t; font-weight: 900; }
@media (min-width: 560px) {
  .cart-lines li { grid-template-columns: 36px 1fr auto 100px; grid-template-areas: "e n s t"; }
  .line-total { text-align: right; }
}

.totals { margin: 12px 0 0; }
.totals > div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals dt { color: var(--muted); font-weight: 700; }
.totals dd { margin: 0; font-weight: 800; }
.totals .grand { border-top: 2px solid var(--text); margin-top: 6px; padding-top: 10px; font-size: 1.3rem; }
.totals .grand dt { color: var(--text); font-family: var(--font-display); font-weight: 400; }
.totals .grand dd { font-weight: 900; }

.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { margin: 0; position: relative; cursor: pointer; }
.choice input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-box {
  display: flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 10px 14px;
  border: 2px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 800;
}
.choice-emoji { font-size: 1.5rem; }
.choice-fee { margin-left: auto; font-weight: 800; color: var(--muted); white-space: nowrap; }
.choice input:checked + .choice-box { border-color: var(--leaf); background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--leaf); }
.choice input:checked + .choice-box .choice-fee { color: var(--text); }
.choice input:focus-visible + .choice-box, .chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { margin: 0; cursor: pointer; position: relative; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 84px; min-height: 50px; padding: 8px 14px;
  border: 2px solid var(--line-strong); border-radius: 999px;
  font-weight: 900; font-size: 1.05rem;
  background: var(--surface);
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
:root[data-theme="dark"] .chip input:checked + span { background: var(--sun); border-color: var(--sun); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip input:checked + span { background: var(--sun); border-color: var(--sun); color: var(--ink); } }

.sinpe {
  margin-top: 14px; padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border-left: 6px solid var(--blue);
}
.sinpe p { margin-bottom: 6px; }
.sinpe-number { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sinpe-number strong { font-size: 1.6rem; font-weight: 900; letter-spacing: 0.04em; }
.sinpe .field { margin: 12px 0 0; }

.privacy {
  font-size: 0.88rem; color: var(--muted);
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2);
}

/* ---------- Leiste unten ---------- */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(33, 52, 46, 0.96); color: #fff;
  backdrop-filter: blur(14px);
  padding: 10px 0; padding-bottom: max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
body.checkout-visible .cartbar { transform: translateY(110%); }
.cartbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cartbar-sum { font-weight: 700; }
.cartbar-sum strong { font-weight: 900; }
body.has-cartbar .footer { padding-bottom: 90px; }

/* ---------- Bestellstatus ---------- */
.my-orders { margin-top: 16px; font-weight: 700; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.my-orders a { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); text-decoration: none; font-weight: 900; color: var(--text); }

.tracking { margin-top: 20px; outline: none; border-top: 6px solid var(--leaf); }
.thanks { font-family: var(--font-display); font-size: 1.5rem; color: var(--ok); margin-bottom: 8px; }
.track-head { display: flex; align-items: baseline; gap: 10px; }
.order-code { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; letter-spacing: 0.06em; }
.steps { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 0; }
.steps li { display: flex; align-items: center; gap: 12px; position: relative; padding: 6px 0; color: var(--muted); font-weight: 700; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 17px; top: 42px; width: 3px; height: calc(100% - 32px);
  background: var(--line-strong);
}
.steps li.done::after { background: var(--leaf); }
.step-dot {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 3px solid var(--line-strong);
  background: var(--surface);
  font-weight: 900;
}
.steps li.done { color: var(--text); }
.steps li.done .step-dot { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.steps li.current { color: var(--text); font-size: 1.15rem; font-weight: 900; }
.steps li.current .step-dot { background: var(--sun); border-color: var(--sun); color: var(--ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sun) 35%, transparent); }
.track-hint { font-weight: 700; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ok-bg); }
.track-hint.bad { background: var(--bad-bg); }
.cancelled-badge { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent-text); margin: 12px 0; }
.track-items { list-style: none; padding: 0; margin: 0 0 10px; }
.track-items li { padding: 3px 0; font-weight: 700; }
.pay-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ref-form label { margin-top: 6px; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }

/* ---------- Fuss ---------- */
.footer { margin-top: 38px; background: linear-gradient(145deg, #172E28, var(--ink)); color: #F0E9DB; padding-bottom: 30px; }
.footer .wrap { padding-top: 18px; }
.footer .muted { color: #B9BED4; font-size: 0.9rem; }

@media (max-width: 480px) {
  .hero .t-b { max-width: 8ch; }
  .choices.two { grid-template-columns: 1fr; }
  .nota::after { display: none; }
}
