:root {
  --bg: #f6f1e9;
  --card: #fffdf9;
  --ink: #2b2420;
  --muted: #7a6d63;
  --line: #e4d9cb;
  --gold: #b8935a;
  --gold-d: #8f6d3c;
  --brown: #5a4636;
  --accent: #b8935a;
  --ok: #2f7a4b;
  --err: #b3261e;
  --radius: 14px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--gold-d); }
h1, h2, h3 { line-height: 1.2; }

/* ---------- Header ---------- */
.hero {
  position: relative; text-align: center; padding: 28px 16px 22px;
  background: linear-gradient(180deg, #3b2f27 0%, #5a4636 100%); color: #f3e7d3;
}
.hero h1 { margin: 10px 0 0; font-size: clamp(26px, 6vw, 38px); font-weight: 700; letter-spacing: .01em; }
.logo { max-width: 240px; width: 60%; height: auto; display: block; margin: 0 auto; }
.wordmark { display: inline-flex; flex-direction: column; font-family: Georgia, "Times New Roman", serif; color: var(--gold); line-height: 1.05; }
.wordmark span:first-child { font-size: 26px; letter-spacing: .12em; }
.wordmark span:last-child { font-size: 22px; letter-spacing: .28em; }
.lang { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; }
.lang a { color: #e9dcc6; text-decoration: none; font-size: 13px; padding: 4px 8px; border-radius: 6px; border: 1px solid transparent; }
.lang a.on { border-color: #e9dcc680; }

/* ---------- Layout ---------- */
.wrap { max-width: 720px; margin: 0 auto; padding: 18px 14px 120px; }
.intro { text-align: center; margin: 6px 0 16px; color: var(--brown); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 2px #0000000d; }
.card + .card { margin-top: 16px; }
fieldset { border: 0; padding: 0; margin: 22px 0 0; }
legend { font-weight: 650; margin-bottom: 8px; padding: 0; }
legend small { font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.info { background: #f3ead9; border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--brown); margin: 18px 0 0; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field { display: block; margin-top: 14px; }
.row2 .field { margin-top: 0; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
input, select, textarea, button { font: inherit; color: inherit; }
.field input, .field select {
  width: 100%; height: 46px; padding: 0 12px; border: 1px solid #cdbfae; border-radius: 10px; background: #fff;
}
.field input:focus, .field select:focus, .stepper input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }

/* ---------- Tage ---------- */
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day span {
  display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 7px 8px;
  border: 1px solid #cdbfae; border-radius: 10px; background: #fff; cursor: pointer; font-size: 13px; color: var(--muted); user-select: none;
}
.day span b { font-size: 15px; color: var(--ink); }
.day input:checked + span { background: var(--brown); border-color: var(--brown); color: #f3e7d3; }
.day input:checked + span b { color: #fff; }
.day input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Produkte ---------- */
.products { display: grid; gap: 8px; }
.prod {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s;
}
.prod.has { border-color: var(--gold); background: #fffaf1; }
.prod img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }

/* Produktkarten mit Foto */
.products:has(.photo) { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.prod.photo { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.prod.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; display: block; cursor: pointer; }
.prod.photo .pinfo { padding: 10px 12px 4px; }
.prod.photo .stepper { padding: 4px 12px 12px; justify-content: space-between; }
.prod.photo .stepper input { flex: 1; }
.prod.photo.has { box-shadow: 0 0 0 2px var(--gold); }
@media (max-width: 440px) {
  .products:has(.photo) { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prod.photo .pinfo { padding: 8px 10px 2px; }
  .prod.photo .pname { font-size: 15px; line-height: 1.25; }
  .prod.photo .psub { font-size: 13px; }
  .prod.photo .stepper { padding: 4px 8px 10px; }
  .prod.photo .stepper button { width: 36px; height: 36px; }
}
.pinfo { flex: 1; min-width: 0; }
.pname { font-weight: 600; }
.psub { font-size: 14px; color: var(--muted); }
.stepper { display: flex; align-items: center; flex: none; }
.stepper button {
  width: 40px; height: 40px; border: 1px solid #cdbfae; background: #fff; border-radius: 10px; font-size: 20px; line-height: 1; cursor: pointer; color: var(--brown);
}
.stepper button:active { background: #f3ead9; }
.stepper input {
  width: 44px; height: 40px; text-align: center; border: 0; background: transparent; font-weight: 650; font-size: 17px; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Absenden ---------- */
.submitbar {
  position: sticky; bottom: 0; margin: 20px -20px -20px; padding: 14px 20px;
  background: var(--card); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.total span { color: var(--muted); font-size: 14px; }
.total strong { font-size: 20px; }
.total small { color: var(--muted); display: block; font-size: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--brown); background: var(--brown); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.big { height: 50px; padding: 0 26px; font-size: 17px; }
.btn.ghost { background: transparent; color: var(--brown); }
.btn.danger { color: var(--err); border-color: #e3b4b0; }
.btn.small { height: 32px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .6; cursor: wait; }

.pickup { background: #f3ead9; border-radius: 12px; padding: 12px 14px; margin: 18px 0 0; color: var(--brown); font-size: 15px; }
.pickup-t { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--gold-d); }
.pickup p { margin: 4px 0 0; }
.pickup img { display: block; width: 100%; height: auto; border-radius: 10px; margin-top: 10px; }
.otherhouse { text-align: center; font-size: 14px; margin: 18px 0 0; }

.err { background: #fbeaea; color: var(--err); border: 1px solid #efc4c1; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.ok { background: #e8f4ec; color: var(--ok); border: 1px solid #bfdcc9; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Bestätigung ---------- */
.meta { color: var(--brown); }
.summary { width: 100%; border-collapse: collapse; margin: 8px 0; }
.summary td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.summary .q { width: 48px; color: var(--muted); }
.summary .r { text-align: right; white-space: nowrap; }
.summary .tot td { border-bottom: 0; font-weight: 650; }
.note { font-style: italic; color: var(--brown); }
.daylist { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.daylist li { padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.daylist li.x { text-decoration: line-through; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; background: #fbeaea; color: var(--err); margin-left: 6px; text-decoration: none; }
.tag.muted { background: #eee6da; color: var(--muted); }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 10px 30px; }
.foot a { color: var(--muted); }
