/* ============================================================
   Syrien Sweets — Designsystem (aus dem Entwurf syrien-sweets1.html)
   Farben: Damaszener Kachel (Petrol), Pistazie, Honig, Rosenwasser,
           Dattelbraun auf warmem Elfenbein.
   Signatur: der achtstrahlige Stern als Struktur-Element.
   Alle Richtungsangaben logisch (inline-start/end) → funktioniert in LTR und RTL.
   ============================================================ */
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/karla-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("../fonts/cairo-arabic-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("../fonts/cairo-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/amiri-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/amiri-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --ivory: #FAF4E9; --ivory-2: #F1E5D1; --paper: #fff;
  --date: #2C0C0D; --date-soft: #5C3B39;
  --tile: #356B45; --tile-dark: #244C31;
  --pistachio: #8CB273; --honey: #D2952A; --rose: #BB5F62;
  --wa: #1A8D4A; --wa-dark: #147039;
  --line: rgba(43, 26, 18, .14); --line-strong: rgba(43, 26, 18, .28);
  --ok: #2F7D52; --warn: #9A5B0C; --danger: #B23A32;
  --shadow-s: 0 1px 2px rgba(43, 26, 18, .08), 0 4px 14px rgba(43, 26, 18, .06);
  --shadow-m: 0 10px 30px rgba(43, 26, 18, .13);
  --shadow-l: 0 24px 70px rgba(43, 26, 18, .22);
  --r-s: 6px; --r-m: 12px; --r-l: 22px;
  --f-display: "Marcellus", "Amiri", "Iowan Old Style", Georgia, serif;
  --f-body: "Karla", "Cairo", "Helvetica Neue", Arial, sans-serif;
  --max: 1220px;
}
html[lang="ar"] { --f-display: "Amiri", "Marcellus", "Times New Roman", serif; --f-body: "Cairo", "Segoe UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body { background: var(--ivory); color: var(--date); font-family: var(--f-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="ar"] body { font-size: 18px; line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; margin: 0; }
html[lang="ar"] :is(h1, h2, h3, h4) { font-weight: 700; line-height: 1.35; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h3, .h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--ivory-2); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 22px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--tile); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.star { width: 14px; height: 14px; flex: 0 0 auto; color: inherit; }
[data-setting] { white-space: pre-line; }
[data-setting][data-multiline] { white-space: normal; }
bdi { unicode-bidi: isolate; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--date); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; background: var(--tile); color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .02em; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; box-shadow: var(--shadow-s); min-height: 44px; }
.btn:hover { background: var(--tile-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--date); border-color: var(--line-strong); box-shadow: none; }
.btn.ghost:hover { background: rgba(43, 26, 18, .05); }
.btn.honey { background: var(--honey); color: var(--date); }
.btn.wa { background: var(--wa); }
.btn.wa:hover { background: var(--wa-dark); }
.btn.sm { padding: 8px 15px; font-size: .86rem; min-height: 38px; }
.btn.block { width: 100%; }
.btn.disabled, .btn:disabled { background: var(--ivory-2); color: var(--date-soft); box-shadow: none; cursor: not-allowed; transform: none; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; }
.icon-button:hover { border-color: var(--tile); color: var(--tile); }
.icon-button:disabled { opacity: .4; cursor: not-allowed; }
.icon-button.danger:hover { border-color: var(--danger); color: var(--danger); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--tile); margin: 0 0 14px; }
.eyebrow .star { color: var(--honey); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .92rem; }

/* ---------- Kopfbereich ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(250, 244, 233, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; min-width: 0; }
.brand img { height: 52px; width: auto; }
.brand-text b { font-family: var(--f-display); font-size: 1.28rem; font-weight: 400; display: block; line-height: 1.1; }
html[lang="ar"] .brand-text b { font-weight: 700; }
.brand-text span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--date-soft); }
html[lang="ar"] .brand-text span { letter-spacing: 0; text-transform: none; font-size: .82rem; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--date-soft); transition: background .18s, color .18s; }
.main-nav a:hover { background: var(--ivory-2); color: var(--date); }
.main-nav a[aria-current="page"] { color: var(--tile); background: rgba(53, 107, 69, .09); font-weight: 700; }
.lang-switch { padding: 8px 15px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.lang-switch:hover { border-color: var(--tile); color: var(--tile); }
.lang-switch[lang="ar"] { font-family: "Cairo", sans-serif; }
.lang-switch[lang="de"] { font-family: "Karla", sans-serif; }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 11px; cursor: pointer; }
.menu-toggle span { display: block; width: 19px; height: 2px; background: var(--date); margin: 4px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 70px 0 80px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--tile); }
.lead { font-size: 1.12rem; max-width: 52ch; color: var(--date-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-facts { display: flex; gap: 12px 28px; margin: 36px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.hero-facts li { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--date-soft); }
.hero-facts .star { width: 11px; height: 11px; color: var(--honey); }
.hero-art { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-l); overflow: hidden; background: linear-gradient(150deg, var(--tile) 0%, var(--tile-dark) 60%, #16301F 100%); box-shadow: var(--shadow-l); color: rgba(250, 244, 233, .45); }
.hero-art.portrait { aspect-ratio: 4 / 5; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.lattice { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate { position: absolute; inset: auto 0 0 0; padding: 22px 26px; color: var(--ivory); background: linear-gradient(to top, rgba(22, 48, 31, .92), transparent); font-family: var(--f-display); font-size: 1.6rem; }

/* ---------- Abschnitte ---------- */
.blk { padding: 72px 0; }
.band { background: var(--ivory-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.page-title { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: 52px; align-items: center; }
.split.top { align-items: start; margin-top: 44px; }
.prose { max-width: 62ch; color: var(--date-soft); margin: 16px 0 24px; }
.loading-state { color: var(--date-soft); padding: 24px 0; }
.empty { padding: 48px 20px; text-align: center; color: var(--date-soft); border: 1px dashed var(--line-strong); border-radius: var(--r-l); display: grid; gap: 8px; justify-items: center; }
.empty b { font-family: var(--f-display); font-size: 1.35rem; color: var(--date); font-weight: 400; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin: 0; padding: 22px; background: var(--paper); border-radius: var(--r-m); border: 1px solid var(--line); }
.facts dt, .ccard dt, .pd-facts dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--date-soft); font-weight: 700; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
html[lang="ar"] :is(.facts, .ccard, .pd-facts) dt { letter-spacing: 0; font-size: .88rem; text-transform: none; }
.facts dd, .ccard dd, .pd-facts dd { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px 26px; }
.step .no { font-family: var(--f-display); font-size: 2.1rem; color: var(--honey); line-height: 1; display: block; margin-bottom: 12px; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: .95rem; color: var(--date-soft); }
.info-band { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--ivory-2); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px 24px; margin: 8px 0 30px; }
.info-band > .star { width: 18px; height: 18px; color: var(--honey); }
.info-band > div { flex: 1 1 280px; }
.info-band b { font-family: var(--f-display); font-size: 1.15rem; font-weight: 400; }
.info-band p { margin: 2px 0 0; font-size: .94rem; color: var(--date-soft); }
.ccards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 30px 0 0; }
.ccard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; }
.ccard dd a { color: var(--tile); font-weight: 600; text-decoration: none; }
.numlist { display: grid; gap: 14px; margin: 16px 0 24px; padding: 0; list-style: none; counter-reset: n; }
.numlist li { display: flex; gap: 14px; align-items: flex-start; }
.numlist li::before { counter-increment: n; content: counter(n); flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--tile); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.note-card { background: rgba(210, 149, 42, .12); border: 1px solid rgba(210, 149, 42, .4); border-radius: var(--r-m); padding: 18px 20px; }
.note-card p:last-child { margin: 0; }

/* ---------- Kategorie-Kacheln ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.cat-tile { position: relative; display: block; border-radius: var(--r-l); overflow: hidden; min-height: 260px; border: 0; padding: 0; text-align: start; color: var(--ivory); text-decoration: none; cursor: pointer; background: linear-gradient(150deg, var(--tile), var(--tile-dark)); box-shadow: var(--shadow-s); transition: transform .25s ease, box-shadow .25s; width: 100%; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-pattern { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(250, 244, 233, .2); }
.cat-pattern .star { width: 55%; height: 55%; }
.cat-tile .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(19, 10, 8, .86) 12%, rgba(19, 10, 8, .15) 65%); }
.cat-tile .txt { position: relative; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; }
.cat-name { font-family: var(--f-display); font-size: 1.75rem; color: #fff; line-height: 1.2; }
html[lang="ar"] .cat-name { font-weight: 700; }
.cat-desc { margin-top: 6px; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.cat-tile .n { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--honey); margin-bottom: 8px; font-weight: 700; }
html[lang="ar"] .cat-tile .n { letter-spacing: 0; font-size: .9rem; }

/* ---------- Katalog: Reiter, Filter ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; }
.tab .star { width: 10px; height: 10px; color: var(--tile); }
.tab:hover { border-color: var(--tile); }
.tab[aria-pressed="true"] { background: var(--date); color: var(--ivory); border-color: var(--date); }
.tab[aria-pressed="true"] .star { color: var(--honey); }
.filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .9rem; min-height: 38px; }
.chip:hover { border-color: var(--tile); color: var(--tile); }
.chip[aria-pressed="true"] { background: var(--tile); border-color: var(--tile); color: #fff; font-weight: 600; }
.search { position: relative; margin-inline-start: auto; min-width: 240px; display: flex; align-items: center; }
.search .icon { position: absolute; inset-inline-start: 14px; color: var(--date-soft); pointer-events: none; }
.search input { width: 100%; padding: 11px 16px; padding-inline-start: 42px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); font-size: .95rem; }
.count { font-size: .88rem; color: var(--date-soft); }

/* ---------- Produktkarten ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 24px; }
.card { background: var(--paper); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.card.sold-out .ph img { filter: grayscale(.7); opacity: .75; }
.ph { position: relative; aspect-ratio: 4 / 3; background: var(--ivory-2); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-empty { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(53, 107, 69, .22); background: radial-gradient(circle at 50% 50%, var(--ivory) 0, var(--ivory-2) 70%); }
.ph-empty .star { width: 38%; height: 38%; }
.badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.pd-info .badges { position: static; margin-bottom: 10px; }
.bdg { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--honey); color: var(--date); box-shadow: var(--shadow-s); }
html[lang="ar"] .bdg { letter-spacing: 0; font-size: .8rem; }
.bdg.pop { background: var(--rose); color: #fff; }
.bdg.rec { background: var(--pistachio); color: #173112; }
.bdg.out { background: var(--date); color: var(--ivory); }
.card .body { padding: 17px 19px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.22rem; margin-bottom: 5px; }
.card .sub { font-size: .92rem; color: var(--date-soft); margin: 0 0 12px; flex: 1; }
.card .foot { margin-bottom: 14px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.price { font-family: var(--f-display); font-size: 1.12rem; color: var(--tile); }
html[lang="ar"] .price { font-family: var(--f-body); font-weight: 700; }
.price small { font-family: var(--f-body); font-size: .76rem; color: var(--date-soft); font-weight: 500; margin-inline-start: 6px; }
.price small.from { margin: 0; }

/* ---------- Produktdialog ---------- */
.product-dialog { width: min(980px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-l); background: var(--ivory); color: var(--date); box-shadow: var(--shadow-l); }
.product-dialog::backdrop { background: rgba(24, 14, 9, .62); }
.product-dialog[open] { display: grid; grid-template-rows: auto 1fr; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.pd-close { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 12px 14px 0; margin: 0; }
.pd-body { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; padding: 0 30px 30px; overflow-y: auto; }
.pd-main { aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; background: var(--ivory-2); position: relative; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pd-thumbs button { width: 74px; height: 58px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--ivory-2); }
.pd-thumbs button[aria-current] { border-color: var(--tile); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tile); font-weight: 700; margin-bottom: 6px; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .9rem; }
.pd-info h2 { margin-bottom: 10px; }
.pd-price { margin: 4px 0 14px; }
.pd-price .price { font-size: 1.7rem; }
.order-box { display: grid; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; margin: 18px 0; }
.order-box .hint { margin: 0; font-size: .82rem; color: var(--date-soft); }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper input { width: 70px; text-align: center; padding: 9px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
.pd-facts { display: grid; gap: 16px; margin: 0; }
.allergen-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.allergen-list b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--ivory-2); font-size: .8rem; margin-inline-end: 6px; }

/* ---------- Formularfelder (Dialog, Admin) ---------- */
.field { display: grid; gap: 6px; margin: 0 0 14px; }
.field > span, .field-label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--date-soft); }
html[lang="ar"] .field > span { letter-spacing: 0; text-transform: none; font-size: .92rem; }
.field small { color: var(--date-soft); font-size: .8rem; }
.field input, .field select, .field textarea, .admin-toolbar input, .admin-toolbar select { width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
.field textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--tile); }

/* ---------- QR-Menü ---------- */
.menu-main { padding: 34px 0 60px; min-height: 60vh; }
.menu-title { text-align: center; }
.menu-page .lead { margin-inline: auto; text-align: center; }
.menu-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: 28px; }
.menu-tiles .cat-tile, .menu-tiles .cat-tile .txt { min-height: min(46vh, 380px); }
.menu-tiles .cat-name { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.menu-section { margin-top: 40px; }
.menu-section h2 { font-size: 1.6rem; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.back { margin-bottom: 18px; }
.back .icon { transform: scaleX(-1); }
[dir="rtl"] .back .icon { transform: none; }

/* ---------- Fuß ---------- */
.site-footer { background: var(--date); color: var(--ivory); padding: 56px 0 24px; margin-top: 20px; }
.site-footer a { color: rgba(250, 244, 233, .82); text-decoration: none; }
.site-footer a:hover { color: var(--honey); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; }
.foot-brand img { height: 110px; width: auto; margin-bottom: 14px; }
.foot-brand p { color: rgba(250, 244, 233, .7); }
.site-footer h2 { font-size: 1.05rem; margin-bottom: 14px; color: var(--honey); }
.site-footer address { font-style: normal; margin-bottom: 8px; color: rgba(250, 244, 233, .82); }
.foot-hours { display: grid; gap: 2px; color: rgba(250, 244, 233, .82); }
.foot-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(250, 244, 233, .55); }
html[lang="ar"] .foot-label { letter-spacing: 0; font-size: .85rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-note-small { font-size: .82rem; color: rgba(250, 244, 233, .6); margin-top: 10px; }
.foot-bottom { border-top: 1px solid rgba(250, 244, 233, .16); margin-top: 38px; padding-top: 18px; font-size: .84rem; color: rgba(250, 244, 233, .6); }
.floating-wa { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; padding: 13px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; box-shadow: var(--shadow-m); }
.floating-wa:hover { background: var(--wa-dark); }
.floating-wa .icon { width: 1.4em; height: 1.4em; }

/* ---------- Rechtstexte ---------- */
.legal-inner { max-width: 820px; }
.legal h2 { font-size: 1.45rem; margin: 32px 0 10px; }
.legal-list { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 8px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; }
.legal-list dt { font-weight: 700; }
.legal-list dd { margin: 0; overflow-wrap: anywhere; }
.draft-note { background: rgba(178, 58, 50, .08); border: 1px solid rgba(178, 58, 50, .35); border-radius: var(--r-m); padding: 16px 20px; margin-bottom: 24px; }
.draft-note p { margin: 0; }
.legal-back { margin-top: 36px; }

/* ============================================================
   Verwaltung
   ============================================================ */
.admin-body { background: #F5EFE4; }
.admin-top { display: flex; align-items: center; gap: 16px; padding: 12px 22px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.admin-top .brand img { height: 42px; }
.admin-top-actions { display: flex; gap: 14px; align-items: center; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 67px); }
.admin-sidebar { background: var(--date); padding: 20px 14px; display: grid; align-content: start; gap: 4px; }
.admin-sidebar button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; padding: 11px 14px; border-radius: 10px; background: transparent; border: 0; color: rgba(250, 244, 233, .78); cursor: pointer; font-size: .96rem; }
.admin-sidebar button:hover { background: rgba(250, 244, 233, .09); color: #fff; }
.admin-sidebar button[aria-current="page"] { background: var(--tile); color: #fff; font-weight: 700; }
.admin-content { padding: 28px; min-width: 0; }
.admin-title { margin-bottom: 22px; }
.admin-title h1 { font-size: 2rem; }
.admin-title p { color: var(--date-soft); margin: 6px 0 0; }
.admin-warning { background: rgba(210, 149, 42, .15); border: 1px solid rgba(210, 149, 42, .45); border-radius: 10px; padding: 12px 16px; }
.admin-hint { color: var(--date-soft); font-size: .88rem; }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 18px; }
.admin-toolbar input, .admin-toolbar select { width: auto; flex: 1 1 200px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 18px 0 22px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; display: grid; gap: 2px; }
.stat span { font-size: .82rem; color: var(--date-soft); font-weight: 700; }
.stat strong { font-family: var(--f-display); font-size: 2rem; font-weight: 400; line-height: 1.1; }
.stat small { color: var(--date-soft); font-size: .78rem; }
.admin-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; margin-bottom: 18px; }
.admin-panel fieldset { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px 6px; margin: 0 0 18px; }
.admin-panel legend { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tile); font-weight: 700; padding-inline: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: start; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--date-soft); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FCF8F1; white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td small, .category-head small, .sub-list small { display: block; color: var(--date-soft); font-size: .82rem; }
.thumb { width: 56px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--ivory-2); display: grid; place-items: center; color: var(--date-soft); }
.pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pill { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--ivory-2); color: var(--date-soft); white-space: nowrap; }
.pill.good { background: rgba(47, 125, 82, .14); color: var(--ok); }
.pill.warn { background: rgba(176, 106, 18, .16); color: var(--warn); }
.pill.muted { background: rgba(43, 26, 18, .1); }
.order-buttons { display: inline-flex; gap: 4px; }
.order-buttons .icon-button { width: 34px; height: 34px; }
.table-action { border: 1px solid var(--line-strong); background: var(--paper); border-radius: 8px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.table-action:hover { border-color: var(--tile); color: var(--tile); }
.category-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.category-head > div { margin-inline-end: auto; }
.category-head h2 { font-size: 1.4rem; }
.sub-list { list-style: none; margin: 16px 0; padding: 0; border-top: 1px solid var(--line); }
.sub-list li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sub-list li > span:first-child { margin-inline-end: auto; }
.variant-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-bottom: 10px; }
.variant-row input { padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
.allergen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; margin-bottom: 12px; }
.image-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 12px; }
.image-card { position: relative; margin: 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--paper); }
.image-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.image-card figcaption { display: flex; gap: 6px; padding: 8px; justify-content: center; }
.image-card .icon-button { width: 34px; height: 34px; }
.tag-main { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--tile); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.dropzone { display: grid; justify-items: center; gap: 4px; text-align: center; border: 2px dashed var(--line-strong); border-radius: var(--r-m); padding: 22px; cursor: pointer; background: var(--ivory); }
.dropzone:hover, .dropzone:focus-within { border-color: var(--tile); background: rgba(53, 107, 69, .06); }
.dropzone .icon { width: 28px; height: 28px; color: var(--tile); }
.dropzone span { font-size: .85rem; color: var(--date-soft); }
.upload-status { font-size: .88rem; color: var(--tile); min-height: 1.4em; margin: 8px 0 0; }
.admin-form-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.danger-button { border: 1px solid rgba(178, 58, 50, .5); color: var(--danger); background: transparent; border-radius: 999px; padding: 10px 18px; cursor: pointer; font-weight: 700; }
.danger-button:hover { background: rgba(178, 58, 50, .08); }
.qr-layout { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }
.qr-url { display: block; padding: 10px 12px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--date); }
.qr-preview { margin: 0; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); }
.qr-preview canvas { width: 320px; height: 320px; image-rendering: pixelated; }
.admin-login { max-width: 440px; margin: 60px auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 34px; box-shadow: var(--shadow-m); }
.admin-login h1 { font-size: 2rem; margin-bottom: 8px; }
.turnstile-mount { min-height: 65px; margin: 6px 0 16px; color: var(--date-soft); font-size: .88rem; }
.form-feedback { min-height: 1.4em; margin: 12px 0 0; font-size: .92rem; }
.form-feedback.error { color: var(--danger); }
.admin-message { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 100; max-width: min(420px, calc(100% - 40px)); background: var(--date); color: var(--ivory); padding: 13px 18px; border-radius: 12px; box-shadow: var(--shadow-m); }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 44px 0 56px; }
  .hero-art { aspect-ratio: 16 / 11; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .pd-body { grid-template-columns: 1fr; padding: 0 18px 24px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; overflow-x: auto; padding: 10px; }
  .admin-sidebar button { width: auto; white-space: nowrap; }
  .qr-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .bar { min-height: 68px; gap: 10px; }
  .brand img { height: 44px; }
  .brand-text span { display: none; }
  .main-nav { position: absolute; top: 100%; inset-inline: 0; background: var(--ivory); flex-direction: column; padding: 12px 18px 20px; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow-m); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .menu-toggle { display: block; }
  .blk { padding: 52px 0; }
  .two, .variant-row { grid-template-columns: 1fr; }
  .search { margin-inline-start: 0; width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .legal-list { grid-template-columns: 1fr; gap: 2px; }
  .legal-list dd { margin-bottom: 10px; }
  .admin-content { padding: 16px; }
  .admin-top { flex-wrap: wrap; }
  .floating-wa span { display: none; }
  .floating-wa { padding: 14px; }
  .wrap { padding-inline: 16px; }
}
@media print { .site-header, .site-footer, .floating-wa, .product-dialog { display: none; } }
