/* =============================================================================
   menulinks.de – guest.css (Gästeseiten und Demo-Karte)
   Seit Paket 0 (2026-11-18) getrennt von main.css: Gäste laden nur, was sie brauchen
   (vorher die komplette main.css mit Dashboard, Admin und Werbeseiten, ca. 120 KB).
   Inhalt: Schriften, Tokens, Basis, Icons, Knopf und der frühere Abschnitt 18b aus main.css,
   doppelte Regeln zusammengeführt. Seit Paket 1: Token-Vertrag --g-* für die Themes (css/themes/*.css),
   Layout-Varianten lay-*. Die Akzentfarbe des Standorts kommt aus /akzent/{farbe}.css.
   Mobile First. Regeln: Radius 10px, 1px-Haarlinien, keine Schatten.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   1. Fonts (selbst gehostet, woff2, SIL OFL 1.1 – fonts/LICENSE-*.txt)
   Basis-Latein und Latein erweitert; die erweiterte Datei lädt nur bei Bedarf.
   --------------------------------------------------------------------------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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: "Inter"; src: url("../fonts/inter-400-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; 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: "Inter"; src: url("../fonts/inter-500-ext.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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: "Inter"; src: url("../fonts/inter-600-ext.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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: "Fira Sans"; src: url("../fonts/fira-sans-600-ext.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; 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: "Fira Sans"; src: url("../fonts/fira-sans-700-ext.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------------------------------------------------------------------------
   2. Token-Vertrag der Themes (Paket 1, 2026-11-18)
   Die Werte hier ergeben „Klar“, den bisherigen Look. Jedes Theme (css/themes/{slug}.css)
   setzt dieselben Variablen auf :root neu. /akzent/{farbe}.css kommt danach und überschreibt
   nur die Akzent-Variablen (eigene Farbe des Betriebs).
   Farben, die tests/theme_contrast_test.php prüft, stehen in den Themes als #RRGGBB.
   --------------------------------------------------------------------------- */
:root {
  /* Flächen und Text */
  --g-bg: #F6F7F4;            /* Seitenhintergrund */
  --g-surface: #FFFFFF;       /* Kästen, Kopf */
  --g-surface-2: #F6F7F4;     /* Hover, gedrückt */
  --g-text: #000000;
  --g-text-2: #5B605A;        /* Beschreibungen, Hinweise */
  --g-line: #E4E6E0;
  --g-line-strong: #000000;   /* Rahmen bei Hover, Menüs */
  --g-price: var(--g-text);
  --g-ok: #14733F;            /* vegan, vegetarisch, halal */
  --g-error: #B42323;         /* ausverkauft */

  /* Kopf und Kategorie-Leiste */
  --g-head-bg: var(--g-surface);
  --g-head-text: var(--g-text);
  --g-head-text-2: var(--g-text-2);
  --g-head-line: var(--g-line);
  --g-cats-bg: var(--g-surface);

  /* Schrift */
  --g-font-display: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --g-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --g-font-price: var(--g-font-body);
  --g-display-weight: 600;
  --g-page-title-size: 1.375rem;   /* Kartenname, Auswahl-Überschrift */
  --g-title-size: 1.25rem;         /* Kategorie-Überschrift */
  --g-title-case: none;
  --g-title-tracking: -0.005em;
  --g-title-color: var(--g-text);
  --g-name-font: var(--g-font-body);
  --g-name-weight: 600;
  --g-name-size: 1rem;
  --g-price-weight: 600;

  /* Form */
  --g-radius: 10px;
  --g-radius-sm: 8px;
  --g-chip-radius: 10px;
  --g-shadow: none;
  --g-border-w: 1px;
  --g-img-size: 72px;
  --g-img-radius: 8px;

  /* Akzent: Fläche (accent/ink) und als Textfarbe auf hellem bzw. dunklem Grund */
  --guest-accent: #C7F36B;
  --guest-accent-ink: #000000;
  --guest-accent-on-light: #4B6700;
  --guest-accent-on-dark: #C7F36B;
  --g-accent-text: var(--guest-accent-on-light);
  --g-focus: #000000;

  /* Abstände */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2.5rem; --s-7: 4rem;
  --gutter: 1rem;
  --cats-h: 58px;  /* Höhe der Kategorie-Leiste für den Sprung zu einer Kategorie; guest.js misst nach (Paket 4b) */
}
@media (min-width: 768px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1280px) { :root { --gutter: 2.5rem; } }

/* ---------------------------------------------------------------------------
   3. Basis
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* scrollbar-gutter: Platz für den Scrollbalken immer frei halten, sonst springt der mittige Inhalt am Desktop
   beim Wechsel zwischen kurzen (ohne Scrollbalken) und langen Seiten um 7–8 px zur Seite */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; } /* Abstand beim Springen: scroll-margin der Kategorien (früher doppelt) */
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--g-bg); color: var(--g-text);
  font-family: var(--g-font-body); font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.is-dark { color-scheme: dark; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
/* Fokus: Rahmen in Textfarbe mit Schein in Akzentfarbe (sichtbar auf hellen und dunklen Flächen) */
:focus-visible { outline: 2px solid var(--g-focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--guest-accent); border-radius: 4px; }
::selection { background: var(--guest-accent); color: var(--guest-accent-ink); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

h1, h2, h3, h4 { font-family: var(--g-font-display); font-weight: var(--g-display-weight); color: inherit; }
h1 { font-size: 1.75rem; line-height: 1.25; letter-spacing: -0.015em; }
h2 { font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; line-height: 1.4; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; padding: var(--s-2) var(--s-4); background: var(--guest-accent); color: var(--guest-accent-ink); font-weight: 600; border-radius: var(--g-radius); text-decoration: none; }
.skip-link:focus { top: var(--s-4); }

.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 16px; height: 16px; }
.icon--xl { width: 40px; height: 40px; stroke-width: 1.5; }

/* menulinks-Symbolsatz (images/menu-icons.svg, Paket 1b): Fläche erbt fill (Ton), Linien erben stroke.
   Der Stil kommt aus dem Design: Body-Klasse ico-{stil} (Guest\Themes::ICON_STYLES) setzt die Variablen. */
.mi {
  width: 24px; height: 24px; flex-shrink: 0;
  fill: currentColor; fill-opacity: var(--g-icon-tone, 0);
  stroke: currentColor; stroke-width: var(--g-icon-stroke, 1.75);
  stroke-linecap: var(--g-icon-cap, round); stroke-linejoin: var(--g-icon-join, round);
}
.mi--lg { width: 28px; height: 28px; }
.mi--xl { width: 44px; height: 44px; }
.mi--sm { width: 16px; height: 16px; }
.ico-fein { --g-icon-stroke: 1.3; }
.ico-duoton { --g-icon-tone: 0.22; }
.ico-eckig { --g-icon-stroke: 2.1; --g-icon-cap: square; --g-icon-join: miter; }
.ico-kraeftig { --g-icon-stroke: 2.1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--g-radius);
  font-family: var(--g-font-body); font-size: 0.875rem; font-weight: 600; line-height: 1.25rem;
  text-decoration: none; text-align: center; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------------------
   4. Rahmen, Banner, Kopf, Menüs
   --------------------------------------------------------------------------- */
.guest-banner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) var(--gutter); background: #000; color: #fff; font-family: "Inter", system-ui, sans-serif; font-size: 0.8125rem; line-height: 1.125rem; }
.guest-banner a { color: #C7F36B; font-weight: 600; white-space: nowrap; }
.guest-banner__text { display: inline-flex; align-items: center; gap: var(--s-2); }
.guest-banner__text .icon { flex-shrink: 0; }
.guest-banner--preview { background: #FDF1D8; color: #9A6200; }
.guest-banner--preview a { color: #000; }
/* Demo: Balken bleibt oben stehen, links der Rückweg zu menulinks, rechts die Registrierung */
.guest-banner--demo { position: sticky; top: 0; z-index: 40; min-height: 40px; }
.guest-banner--demo .guest-banner__back { display: inline-flex; align-items: center; gap: var(--s-1); color: #fff; }
.guest-banner--demo .guest-banner__back:hover { color: #C7F36B; }
.guest-banner--demo ~ .guest-wrap .guest-cats { top: 40px; }
.guest-banner--demo ~ .guest-wrap .guest-section { scroll-margin-top: calc(40px + var(--cats-h) + var(--s-2)); }
@media (max-width: 420px) { .guest-banner--demo .guest-banner__label { display: none; } }
/* Demo: Designs zum Durchklicken */
.guest-designs { display: flex; align-items: center; gap: var(--s-2); overflow-x: auto; padding: var(--s-2) var(--gutter); background: #1B1B1B; color: #fff; font-family: "Inter", system-ui, sans-serif; font-size: 0.75rem; scrollbar-width: thin; }
.guest-designs__label { flex-shrink: 0; color: #BDBDBD; }
.guest-designs a { flex-shrink: 0; padding: 3px 10px; border: 2px solid #4A4A4A; border-radius: 999px; color: #fff; text-decoration: none; white-space: nowrap; transition: border-color 0.15s; }
.guest-designs a:hover { border-color: #C7F36B; text-decoration: none; }

/* Demo: Wischen zwischen den Designs (guest.js, initDesignSwipe) – alte Seite gleitet hinaus, neue herein */
.guest-wrap.is-swipe-out-next, .guest-wrap.is-swipe-out-prev { transition: transform 0.16s ease-in, opacity 0.16s ease-in; opacity: 0; }
.guest-wrap.is-swipe-out-next { transform: translateX(-40px); }
.guest-wrap.is-swipe-out-prev { transform: translateX(40px); }
.guest-wrap.is-swipe-in-next { animation: guest-swipe-in-next 0.28s ease-out; }
.guest-wrap.is-swipe-in-prev { animation: guest-swipe-in-prev 0.28s ease-out; }
@keyframes guest-swipe-in-next { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes guest-swipe-in-prev { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.guest-swipe-hint {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%);
  margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(27, 27, 27, 0.92); color: #fff;
  font-family: "Inter", system-ui, sans-serif; font-size: 0.8125rem; white-space: nowrap; pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); transition: opacity 0.4s;
}
.guest-swipe-hint[hidden] { display: none; }
.guest-swipe-hint.is-gone { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .guest-wrap.is-swipe-in-next, .guest-wrap.is-swipe-in-prev { animation: none; } }
@media print { .guest-swipe-hint { display: none !important; } }
.guest-designs a[aria-current="true"] { background: #C7F36B; border-color: #C7F36B; color: #000; font-weight: 600; }

.guest-wrap { width: 100%; max-width: 720px; margin-inline: auto; flex: 1; }
.guest-head { position: relative; padding: var(--s-5) var(--gutter) var(--s-4); background: var(--g-head-bg); color: var(--g-head-text); border-bottom: 1px solid var(--g-head-line); }
.guest-head__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.guest-head__brand { display: flex; align-items: center; gap: var(--s-3); min-width: 0; text-decoration: none; color: inherit; }
.guest-head__brand > span:last-child, .guest-head__brand > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.guest-logo { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--g-radius); font-family: var(--g-font-display); font-weight: var(--g-display-weight); font-size: 1.25rem; }
.guest-logo:not(.guest-logo--img) { background: var(--guest-accent); color: var(--guest-accent-ink); }
.guest-logo--img { width: auto; max-width: 104px; padding: 3px; object-fit: contain; background: #FFFFFF; border: 1px solid var(--g-line); }
.guest-head__name { font-family: var(--g-font-display); font-weight: var(--g-display-weight); font-size: 1.375rem; line-height: 1.75rem; letter-spacing: -0.01em; }
.guest-head__meta { font-size: 0.8125rem; color: var(--g-head-text-2); }

.guest-tools { display: flex; align-items: center; gap: var(--s-2); flex-shrink: 0; }
.guest-langs { position: relative; }
.guest-langs summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px; border: 1px solid var(--g-line); border-radius: var(--g-radius); background: var(--g-surface); color: var(--g-text); font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.guest-langs summary::-webkit-details-marker { display: none; }
.guest-langs__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 31; min-width: 180px; margin: 0; padding: var(--s-2); list-style: none; background: var(--g-surface); border: 1px solid var(--g-line-strong); border-radius: var(--g-radius); box-shadow: var(--g-shadow); }
.guest-langs__menu a { display: block; padding: 10px var(--s-3); border-radius: var(--g-radius-sm); font-size: 0.875rem; text-decoration: none; color: var(--g-text); }
.guest-langs__menu a:hover { background: var(--g-surface-2); }
.guest-langs__menu a[aria-current="true"] { background: var(--guest-accent); color: var(--guest-accent-ink); font-weight: 600; }

.guest-burger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--g-line); border-radius: var(--g-radius); background: var(--g-surface); color: var(--g-text); }
.guest-drawer { position: absolute; right: var(--gutter); top: calc(100% - var(--s-3)); z-index: 30; width: min(280px, calc(100vw - 2 * var(--gutter))); padding: var(--s-2); background: var(--g-surface); color: var(--g-text); border: 1px solid var(--g-line-strong); border-radius: var(--g-radius); box-shadow: var(--g-shadow); }
.guest-drawer[hidden] { display: none; }
.guest-drawer a { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border-radius: var(--g-radius-sm); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.guest-drawer a:hover { background: var(--g-surface-2); }
.guest-drawer .icon { width: 18px; height: 18px; color: var(--g-text-2); }

/* ---------------------------------------------------------------------------
   5. Kartenauswahl und Karten-Buttons (auch „Unsere Karten“ im Kurzprofil)
   --------------------------------------------------------------------------- */
.guest-choose { padding: var(--s-5) var(--gutter); }
.guest-choose__time { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 500; color: var(--g-accent-text); }
.guest-choose__title { margin-top: var(--s-2); font-size: var(--g-page-title-size); line-height: 1.3; }
.guest-choose__intro { margin-top: var(--s-2); color: var(--g-text-2); }
.guest-choices { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.guest-choice {
  display: flex; align-items: center; gap: var(--s-4);
  min-height: 76px; padding: var(--s-4);
  background: var(--g-surface); border: var(--g-border-w) solid var(--g-line); border-radius: var(--g-radius); box-shadow: var(--g-shadow);
  text-decoration: none; color: var(--g-text);
  transition: border-color 0.15s, background-color 0.15s;
}
.guest-choice:hover { border-color: var(--g-line-strong); }
.guest-choice:active { background: var(--g-surface-2); }
.guest-choice__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--g-radius); background: var(--guest-accent); color: var(--guest-accent-ink); }
.guest-choice__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.guest-choice__title { font-family: var(--g-font-display); font-weight: var(--g-display-weight); font-size: 1.125rem; line-height: 1.5rem; }
.guest-choice__sub { font-size: 0.8125rem; color: var(--g-text-2); }
.guest-choice__draft { color: #9A6200; font-weight: 600; }
.guest-choice__arrow { color: var(--g-text-2); }
.guest-demo-hint { margin-top: var(--s-6); padding: var(--s-4); background: var(--g-surface); border: 1px dashed var(--g-line-strong); border-radius: var(--g-radius); color: var(--g-text); font-size: 0.875rem; line-height: 1.375rem; }
.guest-demo-hint h2 { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-1); font-family: var(--g-font-body); font-size: 0.9375rem; font-weight: 700; }

/* ---------------------------------------------------------------------------
   6. Karte: Kopfzeile, Kategorien, Produkte, Legende
   --------------------------------------------------------------------------- */
.guest-cardbar { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--gutter) var(--s-3); background: var(--g-cats-bg); }
.guest-back { display: inline-flex; align-items: center; gap: var(--s-1); align-self: flex-start; padding: 6px 0; font-size: 0.8125rem; font-weight: 500; color: var(--g-text-2); text-decoration: none; }
.guest-back:hover { color: var(--g-text); }
/* „← Alle Karten“ gleitet weich hin und her (Wunsch Manuel). Nur der Inhalt bewegt sich, die Klickfläche steht still
   und ist links und rechts um die Bewegung breiter – Tippen und Tab-Fokus bleiben verlässlich. In RTL gespiegelt. */
.guest-back--glide { padding-inline: 12px; margin-inline-start: -12px; }
.lay-centered .guest-cardbar .guest-back--glide { margin-inline-start: 0; }
.guest-back__in { --glide-dir: 1; display: inline-flex; align-items: center; gap: var(--s-1); animation: guest-back-glide 1.1s ease-in-out infinite alternate; }
[dir="rtl"] .guest-back__in { --glide-dir: -1; }
.guest-back--glide:hover .guest-back__in, .guest-back--glide:focus-visible .guest-back__in { animation-play-state: paused; }
@keyframes guest-back-glide {
  from { translate: calc(3px * var(--glide-dir)) 0; }
  to   { translate: calc(-10px * var(--glide-dir)) 0; }
}
@media (prefers-reduced-motion: reduce) { .guest-back__in { animation: none; } }
.guest-cardbar__title { font-size: var(--g-page-title-size); line-height: 1.3; }
.guest-cardbar__desc { font-size: 0.875rem; color: var(--g-text-2); }

.guest-cats { position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; overflow-x: auto; padding: var(--s-3) var(--gutter); background: var(--g-cats-bg); border-bottom: 1px solid var(--g-line); scrollbar-width: thin; scrollbar-color: var(--g-line-strong) transparent; }
.guest-cats::-webkit-scrollbar { height: 4px; } /* sichtbar, aber dezent: zeigt, dass die Leiste weitergeht (Paket 4b) */
.guest-cats::-webkit-scrollbar-thumb { background: var(--g-line-strong); border-radius: 2px; }
.guest-cats a { flex-shrink: 0; padding: 8px 14px; border: 1px solid var(--g-line); border-radius: var(--g-chip-radius); font-size: 0.8125rem; font-weight: 500; text-decoration: none; color: var(--g-text-2); background: var(--g-surface); }
.guest-cats a:hover, .guest-cats a:focus-visible, .guest-cats a[aria-current] { background: var(--guest-accent); border-color: var(--guest-accent); color: var(--guest-accent-ink); }

/* Suche und Ernährungsfilter (Paket 4a): Farben, Linien und Rundung kommen aus den Design-Tokens */
.guest-finder { display: grid; gap: var(--s-3); padding: var(--s-1) var(--gutter) var(--s-3); background: var(--g-cats-bg); } /* wie Titelbereich und Kategorie-Leiste */
.guest-finder[hidden], .guest-empty[hidden], .guest-finder__note[hidden] { display: none; }
.guest-search { position: relative; }
.guest-search .icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--g-text-2); pointer-events: none; }
.guest-search__input { width: 100%; min-height: 44px; margin: 0; padding: 10px 14px; padding-inline-start: 42px; font: inherit; font-size: 1rem; color: var(--g-text); background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--g-chip-radius); -webkit-appearance: none; appearance: none; }
.guest-search__input::placeholder { color: var(--g-text-2); opacity: 1; }
.guest-filters { display: flex; gap: 6px; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scrollbar-width: none; }
.guest-filters::-webkit-scrollbar { display: none; }
.guest-chip { flex-shrink: 0; min-height: 44px; margin: 0; padding: 8px 14px; font: inherit; font-size: 0.8125rem; font-weight: 500; line-height: 1.2; color: var(--g-text-2); background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--g-chip-radius); cursor: pointer; }
.guest-chip:hover { color: var(--g-text); border-color: var(--g-text-2); }
.guest-chip[aria-pressed="true"] { color: var(--guest-accent-ink); background: var(--guest-accent); border-color: var(--guest-accent); }
.guest-finder__note, .guest-finder__count { margin: 0; font-size: 0.8125rem; line-height: 1.4; color: var(--g-text-2); }
.guest-finder__count:empty { display: none; }
.guest-empty { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-6) var(--gutter); text-align: center; color: var(--g-text-2); }
.guest-empty p { margin: 0; }
.is-filtered-out { display: none !important; }

.guest-section { padding: var(--s-5) var(--gutter) 0; scroll-margin-top: calc(var(--cats-h) + var(--s-2)); }
.guest-section__title { font-size: var(--g-title-size); line-height: 1.35; text-transform: var(--g-title-case); letter-spacing: var(--g-title-tracking); color: var(--g-title-color); }
.guest-section__note { margin-top: 2px; font-size: 0.8125rem; color: var(--g-text-2); }
.guest-items { margin-top: var(--s-3); background: var(--g-surface); border: var(--g-border-w) solid var(--g-line); border-radius: var(--g-radius); box-shadow: var(--g-shadow); }
.guest-item { display: flex; gap: var(--s-3); padding: var(--s-4); border-bottom: 1px solid var(--g-line); }
.guest-item:last-child { border-bottom: 0; }
.guest-item__img { width: var(--g-img-size); height: var(--g-img-size); flex-shrink: 0; border-radius: var(--g-img-radius); object-fit: cover; border: 1px solid var(--g-line); }
.guest-item__main { flex: 1; min-width: 0; }
.guest-item__name { font-family: var(--g-name-font); font-size: var(--g-name-size); font-weight: var(--g-name-weight); line-height: 1.375; letter-spacing: normal; }
.guest-item__name sup { white-space: nowrap; margin-inline-start: 2px; font-family: var(--g-font-body); font-size: 0.6875rem; font-weight: 500; color: var(--g-text-2); }
/* Allergen-Kürzel (Paket 4c): Namen per <abbr title>, mit JavaScript antippbar (große Tippfläche ohne Platz zu verbrauchen) */
.guest-codes abbr { text-decoration: none; cursor: inherit; }
.guest-codes.is-toggle { position: relative; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.guest-codes.is-toggle::after { content: ""; position: absolute; inset: -14px -10px; }
.guest-codes.is-toggle[aria-expanded="true"] { color: var(--g-text); }
.guest-item__codes { margin: var(--s-1) 0 0; font-size: 0.8125rem; line-height: 1.4; color: var(--g-text-2); }
.guest-item__codes[hidden] { display: none; }
.guest-item__code { font-weight: 600; color: var(--g-text); }
.guest-item__desc { margin-top: 2px; font-size: 0.875rem; line-height: 1.25rem; color: var(--g-text-2); }
.guest-item__flags { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); margin-top: var(--s-2); }
.guest-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 500; color: var(--g-ok); }
.guest-flag .icon { width: 14px; height: 14px; }
/* Hervorhebungen (Paket 5.1): Akzentfarbe des Designs; „Empfehlung“ als gefüllte Marke, Schärfe mit 1–3 Chilis */
.guest-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; color: var(--g-accent-text); }
.guest-badge .mi { width: 14px; height: 14px; }
.guest-badge--empfehlung { padding: 1px 8px 1px 6px; border-radius: var(--g-chip-radius); background: var(--guest-accent); color: var(--guest-accent-ink); }
.guest-badge--scharf { color: var(--g-error); }
.guest-badge__chili { display: inline-flex; }
.guest-badge__chili .mi + .mi { margin-inline-start: -4px; }
.guest-choice__icon .mi { width: 28px; height: 28px; }
.guest-item__prices { flex-shrink: 0; text-align: end; }
.guest-price { font-family: var(--g-font-price); font-weight: var(--g-price-weight); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--g-price); }
.guest-price__size { margin-inline-end: var(--s-2); font-family: var(--g-font-body); font-size: 0.75rem; font-weight: 400; color: var(--g-text-2); }
.guest-price + .guest-price { margin-top: 2px; }
.guest-item--soldout .guest-item__name, .guest-item--soldout .guest-price { color: var(--g-text-2); }
.guest-item--soldout .guest-price { text-decoration: line-through; }
.guest-item--soldout .guest-item__img { opacity: 0.5; }
.guest-soldout { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--s-2); font-size: 0.75rem; font-weight: 600; color: var(--g-error); }
.guest-soldout .icon { width: 14px; height: 14px; }

.guest-legend { margin: var(--s-6) var(--gutter) 0; padding: var(--s-4); background: var(--g-surface); border: var(--g-border-w) solid var(--g-line); border-radius: var(--g-radius); font-size: 0.8125rem; line-height: 1.25rem; color: var(--g-text-2); }
.guest-legend h2 { margin-bottom: var(--s-2); font-size: 1rem; color: var(--g-text); }
.guest-legend dl { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s-3); margin: 0; }
.guest-legend dt { font-weight: 600; color: var(--g-text); }
.guest-legend dd { margin: 0; }
.guest-legend p { margin-top: var(--s-3); }
.guest-note { margin: var(--s-5) var(--gutter) 0; font-size: 0.8125rem; color: var(--g-text-2); }

/* ---------------------------------------------------------------------------
   7. Kurzprofil
   --------------------------------------------------------------------------- */
/* Kopf ohne Logo/Name, die stehen groß im Hero */
.guest-head--hero { padding-top: var(--s-3); padding-bottom: 0; border-bottom: 0; }
/* Mit Titelbild folgt direkt das Foto: Sprache und Menü brauchen darunter Luft (sonst kleben sie am Bild) */
.guest-head--hero:has(+ .guest-profile > .guest-cover--hero) { padding-bottom: var(--s-3); }
.guest-hero { display: flex; flex-direction: column; align-items: center; padding: var(--s-2) var(--gutter) var(--s-6); text-align: center; background: var(--g-head-bg); color: var(--g-head-text); border-bottom: 1px solid var(--g-head-line); }
.guest-hero__logo { display: block; width: auto; height: auto; max-width: min(200px, 60vw); max-height: 112px; object-fit: contain; border-radius: var(--g-radius-sm); }
.guest-hero__initials { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%; background: var(--guest-accent); color: var(--guest-accent-ink); font-family: var(--g-font-display); font-weight: var(--g-display-weight); font-size: 2.25rem; }
.guest-hero__name { margin-top: var(--s-5); font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.guest-hero__address { margin-top: var(--s-2); font-style: normal; color: var(--g-head-text-2); line-height: 1.5rem; }
/* Kurzprofil 2.0 (Paket 5.2a): Kurzbeschreibung, „Jetzt geöffnet“, Öffnungszeiten und Sondertage – alles nur, wenn eingetragen */
.guest-hero__desc { max-width: 34rem; margin: var(--s-2) auto 0; color: var(--g-head-text); line-height: 1.5rem; }
.guest-hero__status { margin-top: var(--s-3); font-size: 0.875rem; font-weight: 600; }
.guest-hero__status a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 32px; color: var(--g-head-text-2); text-decoration: none; }
.guest-hero__status.is-open a { color: var(--g-head-text); }
.guest-hero__status.is-open .guest-hero__dot { background: #1F9D55; box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.25); } /* nur der Punkt grün – Text in Kopffarbe, auch bei dunklem Kopf lesbar */
.guest-hero__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.guest-hours { margin-bottom: var(--s-5); padding: var(--s-4); background: var(--g-surface); border: var(--g-border-w) solid var(--g-line); border-radius: var(--g-radius); scroll-margin-top: var(--s-4); }
.guest-hours__title { margin-bottom: var(--s-3); font-size: 1rem; text-transform: var(--g-title-case); letter-spacing: var(--g-title-tracking); }
.guest-hours__week { display: grid; gap: 2px; margin: 0; }
.guest-hours__row { display: grid; grid-template-columns: minmax(4.5rem, auto) 1fr; gap: var(--s-3); padding: 4px 0; font-variant-numeric: tabular-nums; }
.guest-hours__row dt { font-weight: 600; }
.guest-hours__row dd { margin: 0; color: var(--g-text-2); }
.guest-hours__row.is-today dt, .guest-hours__row.is-today dd { color: var(--g-text); font-weight: 600; }
.guest-hours__sub { margin: var(--s-4) 0 var(--s-2); font-size: 0.875rem; }
.guest-hours__special { display: grid; gap: var(--s-1); margin: 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--g-text-2); }
.guest-hours__special strong { color: var(--g-text); font-variant-numeric: tabular-nums; }
.guest-profile__body { padding: var(--s-5) var(--gutter) 0; }
@media (min-width: 720px) {
  .guest-wrap:has(.guest-hero) { margin-top: var(--s-6); }
  .guest-head--hero, .guest-hero { border-inline: 1px solid var(--g-head-line); }
  .guest-head--hero { border-top: 1px solid var(--g-head-line); border-radius: var(--g-radius) var(--g-radius) 0 0; }
  .guest-hero { border-radius: 0 0 var(--g-radius) var(--g-radius); }
  .guest-profile__body { padding-inline: 0; }
}
/* „Unsere Karten“ über Kontakt und Route */
.guest-menus { margin-bottom: var(--s-5); }
.guest-menus__title { font-size: 1rem; text-transform: var(--g-title-case); letter-spacing: var(--g-title-tracking); }
.guest-menus .guest-choices { margin-top: var(--s-2); }

.guest-actions { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.guest-action { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-3) var(--s-4); background: var(--g-surface); border: var(--g-border-w) solid var(--g-line); border-radius: var(--g-radius); box-shadow: var(--g-shadow); color: var(--g-text); text-decoration: none; font-weight: 600; }
.guest-action:hover { border-color: var(--g-line-strong); }
.guest-action > .icon:first-child { width: 22px; height: 22px; padding: 7px; box-sizing: content-box; border-radius: var(--g-radius-sm); background: var(--guest-accent); color: var(--guest-accent-ink); }
.guest-action > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.guest-action small { font-weight: 400; font-size: 0.8125rem; color: var(--g-text-2); overflow-wrap: anywhere; }
.guest-action > .icon:last-child:not(:first-child) { color: var(--g-text-2); }
.guest-social { margin-top: var(--s-5); }
.guest-social__title { font-size: 1rem; text-transform: var(--g-title-case); letter-spacing: var(--g-title-tracking); }
.guest-social ul { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.guest-social a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--g-line); border-radius: var(--g-chip-radius); background: var(--g-surface); color: var(--g-text); font-size: 0.875rem; font-weight: 500; text-decoration: none; }

/* ---------------------------------------------------------------------------
   8. PDF-Karte, Impressum, Fuß
   --------------------------------------------------------------------------- */
.guest-pdf { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); padding: var(--s-7) var(--gutter) 0; text-align: center; }
.guest-pdf__back { align-self: flex-start; margin-top: calc(-1 * var(--s-5)); }
.guest-pdf__icon { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: var(--g-radius); background: var(--guest-accent); color: var(--guest-accent-ink); }
.guest-pdf__title { font-size: 1.5rem; line-height: 1.3; }
.guest-pdf__desc { color: var(--g-text-2); }
/* „Karte öffnen“ in der Akzentfarbe des Standorts */
.guest-pdf__btn { max-width: 360px; margin-top: var(--s-3); background: var(--guest-accent); color: var(--guest-accent-ink); }
.guest-pdf__btn:hover { filter: brightness(0.95); }
.guest-pdf__note { font-size: 0.8125rem; color: var(--g-text-2); }
.guest-imprint { padding: var(--s-5) var(--gutter) 0; }
.guest-imprint__title { margin-top: var(--s-2); font-size: 1.5rem; }
.guest-imprint__text { margin-top: var(--s-3); line-height: 1.5rem; overflow-wrap: anywhere; }

.guest-foot { padding: var(--s-5) var(--gutter) var(--s-6); text-align: center; font-size: 0.75rem; color: var(--g-text-2); }
.guest-foot a { color: var(--g-text-2); }
.guest-foot__links { margin-top: var(--s-1); }

/* ---------------------------------------------------------------------------
   8b. Bildbereiche (Paket 2, 2026-11-18) – alle optional, ohne Bilder sieht alles aus wie vorher
   Bildausschnitt: Klasse fp-{focus} aus media.focus (CSP erlaubt keine style-Attribute)
   --------------------------------------------------------------------------- */
.fp-tl { object-position: 0% 0%; } .fp-tc { object-position: 50% 0%; } .fp-tr { object-position: 100% 0%; }
.fp-cl { object-position: 0% 50%; } .fp-cr { object-position: 100% 50%; }
.fp-bl { object-position: 0% 100%; } .fp-bc { object-position: 50% 100%; } .fp-br { object-position: 100% 100%; }

/* Titelbild: groß über dem Kurzprofil, als Band über Karte, Kartenauswahl und PDF-Seite */
/* Höhe aus der Bildschirmbreite statt aspect-ratio + max-height (das würde über das Seitenverhältnis auch die Breite kürzen) */
.guest-cover { width: 100%; overflow: hidden; background: var(--g-surface-2); }
.guest-cover__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guest-cover--hero { height: min(50vw, 340px); }   /* etwa 2 : 1 */
.guest-cover--band { height: min(33.3vw, 220px); } /* etwa 3 : 1 */
/* Logo bzw. Initiale ragt ins Titelbild hinein (wie bei Profilen in sozialen Netzwerken) */
.guest-hero--cover { padding-top: 0; }
.guest-hero--cover .guest-hero__logo, .guest-hero--cover .guest-hero__initials { margin-top: -48px; position: relative; box-shadow: 0 0 0 4px var(--g-head-bg); }
.guest-hero--cover .guest-hero__logo { background: #FFFFFF; padding: 4px; }
.guest-choose .guest-cover--band { width: auto; margin: calc(-1 * var(--s-5)) calc(-1 * var(--gutter)) var(--s-4); }
.guest-pdf .guest-cover--band { width: auto; align-self: stretch; margin: calc(-1 * var(--s-7)) calc(-1 * var(--gutter)) var(--s-5); }
@media (min-width: 720px) {
  .guest-cover--hero { border-inline: 1px solid var(--g-head-line); }
  .guest-cover--band { border-radius: 0 0 var(--g-radius) var(--g-radius); }
}

/* Kategoriebild: cimg-band = Band über dem Titel (Standard), cimg-rund = kleines rundes Bild neben dem Titel */
.guest-section__img { display: block; width: 100%; aspect-ratio: 16 / 7; margin-bottom: var(--s-3); object-fit: cover; border-radius: var(--g-radius); background: var(--g-surface-2); }
.cimg-rund .guest-section--img { display: flow-root; }
.cimg-rund .guest-section__img { float: inline-start; width: 64px; height: 64px; aspect-ratio: 1; margin: 0 var(--s-3) var(--s-2) 0; border-radius: 50%; box-shadow: 0 0 0 3px var(--g-surface), 0 0 0 4px var(--g-line); }
[dir="rtl"] .cimg-rund .guest-section__img { margin: 0 0 var(--s-2) var(--s-3); }
.cimg-rund .guest-section--img .guest-section__title { min-height: 64px; display: flex; align-items: center; }
.cimg-rund .guest-section--img .guest-items { clear: both; }
/* lay-bold (Street Food): Band sitzt direkt auf dem Titelkasten, alles ein Block */
.lay-bold.cimg-band .guest-section__img { margin-bottom: 0; border: 2px solid var(--g-line-strong); border-bottom: 0; border-radius: var(--g-radius) var(--g-radius) 0 0; }
.lay-bold.cimg-band .guest-section__img + .guest-section__title { border-radius: 0; }
.lay-centered.cimg-rund .guest-section__img { float: none; margin: 0 auto var(--s-3); }
.lay-centered.cimg-rund .guest-section--img .guest-section__title { min-height: 0; justify-content: center; }

/* Abschnitte zwischen den Kategorien (Bild, Text, Trenner) – zählen nicht als Kategorie */
.guest-section.guest-block { counter-increment: none; }
.guest-block--image { margin: 0; }
.guest-block__img { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 460px; object-fit: cover; border-radius: var(--g-radius); background: var(--g-surface-2); }
.guest-block__caption { margin-top: var(--s-2); font-size: 0.8125rem; color: var(--g-text-2); text-align: center; }
.guest-block--text { text-align: center; }
.guest-block__title { font-size: 1.125rem; line-height: 1.35; text-transform: var(--g-title-case); letter-spacing: var(--g-title-tracking); color: var(--g-title-color); }
.guest-block__text { max-width: 34rem; margin: var(--s-2) auto 0; color: var(--g-text-2); line-height: 1.6; }
.guest-block--divider { display: flex; justify-content: center; }
.guest-block--divider span { position: relative; display: block; width: 120px; height: 12px; background: linear-gradient(var(--g-line-strong), var(--g-line-strong)) center / 100% 1px no-repeat; opacity: 0.55; }
.guest-block--divider span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; background: var(--g-bg); border: 1px solid var(--g-line-strong); transform: translate(-50%, -50%) rotate(45deg); }

/* Großansicht der Produktfotos (guest.js) */
.guest-item__img.is-zoomable { cursor: zoom-in; }
.guest-item__img.is-zoomable:hover { filter: brightness(0.95); }
.guest-photo { width: min(600px, calc(100vw - 2 * var(--gutter))); max-height: calc(100dvh - 2 * var(--gutter)); padding: 0; border: 0; border-radius: var(--g-radius); background: var(--g-surface); color: var(--g-text); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); overflow: auto; }
.guest-photo::backdrop { background: rgba(0, 0, 0, 0.7); }
.guest-photo__box { position: relative; }
.guest-photo__img { display: block; width: 100%; height: auto; max-height: 60dvh; object-fit: cover; background: var(--g-surface-2); }
.guest-photo__close { position: absolute; top: var(--s-2); inset-inline-end: var(--s-2); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #FFFFFF; }
.guest-photo__close:hover { background: rgba(0, 0, 0, 0.8); }
.guest-photo__body { padding: var(--s-4); }
.guest-photo__title { font-family: var(--g-name-font); font-size: 1.25rem; font-weight: var(--g-name-weight); line-height: 1.3; }
.guest-photo__desc { margin-top: var(--s-2); color: var(--g-text-2); line-height: 1.5; }
.guest-photo__prices { margin-top: var(--s-3); }
.guest-photo__prices .guest-item__prices { display: grid; gap: 2px; text-align: start; }
.guest-photo__codes { margin-top: var(--s-3); font-size: 0.8125rem; color: var(--g-text-2); }
.guest-photo__codes strong { color: var(--g-text); }

/* Rechts-nach-links (Arabisch) */
[dir="rtl"] .guest-langs__menu, [dir="rtl"] .guest-drawer { right: auto; left: var(--gutter); }
/* Pfeile zeigen in Leserichtung */
[dir="rtl"] .guest-back .icon, [dir="rtl"] .guest-choice__arrow { transform: scaleX(-1); }
/* Preise und Größen („0,5 l 4,80 €“) immer von links nach rechts, sonst würfelt die Leserichtung Zahl und Einheit durcheinander */
.guest-price { direction: ltr; unicode-bidi: isolate; }

/* ---------------------------------------------------------------------------
   9. Layout-Varianten (Body-Klasse lay-…, vom Theme-Register vorgegeben)
   lay-cards ist der Standard oben (Produkte in einem Kasten).
   --------------------------------------------------------------------------- */
/* lay-list: keine Kästen, Haarlinien zwischen den Produkten */
.lay-list .guest-items { background: transparent; border: 0; border-top: 1px solid var(--g-line); border-radius: 0; box-shadow: none; }
.lay-list .guest-item { padding: var(--s-4) 0; }
.lay-list .guest-item:last-child { border-bottom: 1px solid var(--g-line); }
.lay-list .guest-legend { padding: var(--s-4) 0 0; background: transparent; border: 0; border-top: 1px solid var(--g-line); border-radius: 0; }

/* lay-leaders: „Name ……… Preis“ wie auf der klassischen Wirtshauskarte */
.lay-leaders .guest-items { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.lay-leaders .guest-item { display: grid; grid-template-columns: auto minmax(0, max-content) minmax(1.25rem, 1fr) auto; gap: 0; align-items: baseline; padding: var(--s-3) 0; border-bottom: 0; }
.lay-leaders .guest-item__img { grid-column: 1; grid-row: 1 / span 4; align-self: start; margin-inline-end: var(--s-3); }
.lay-leaders .guest-item__main { display: contents; }
.lay-leaders .guest-item__name { grid-column: 2; grid-row: 1; }
.lay-leaders .guest-item::after { content: ""; grid-column: 3; grid-row: 1; align-self: end; margin: 0 0.45em 0.4em; border-bottom: 2px dotted var(--g-line-strong); opacity: 0.45; }
.lay-leaders .guest-item__prices { grid-column: 4; grid-row: 1 / span 4; }
.lay-leaders .guest-item__desc, .lay-leaders .guest-item__flags, .lay-leaders .guest-soldout { grid-column: 2 / 4; }
.lay-leaders .guest-item__desc { margin-top: 0; padding-inline-end: var(--s-4); }
.lay-leaders .guest-soldout { justify-self: start; }
.lay-leaders .guest-legend { background: transparent; border: 0; border-top: 1px solid var(--g-line); border-radius: 0; padding-inline: 0; }

/* lay-centered: alles mittig, viel Luft, Preis unter der Beschreibung */
.lay-centered .guest-cardbar { align-items: center; text-align: center; }
.lay-centered .guest-cardbar .guest-back { align-self: center; }
.lay-centered .guest-section { text-align: center; }
.lay-centered .guest-items { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.lay-centered .guest-item { flex-direction: column; align-items: center; gap: var(--s-1); padding: var(--s-4) 0; border-bottom: 0; }
.lay-centered .guest-item__img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: var(--s-1); }
.lay-centered .guest-item__main { flex: none; }
.lay-centered .guest-item__flags { justify-content: center; }
.lay-centered .guest-item__prices { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1) var(--s-4); text-align: center; }
.lay-centered .guest-price + .guest-price { margin-top: 0; }
.lay-centered .guest-legend { text-align: start; }

/* lay-bold: kräftige Rahmen, Kategorien als Band, große Preise */
.lay-bold .guest-section__title { padding: 0.3em 0.55em; background: var(--g-title-color); color: var(--g-bg); border-radius: var(--g-radius) var(--g-radius) 0 0; }
.lay-bold .guest-section__note { margin-top: 0; padding: 0.45rem 0.7rem; background: var(--guest-accent); color: var(--guest-accent-ink); font-weight: 600; }
.lay-bold .guest-items { margin-top: 0; border-width: 2px; border-color: var(--g-line-strong); border-top-left-radius: 0; border-top-right-radius: 0; }
.lay-bold .guest-item { border-bottom: 2px solid var(--g-line-strong); }
.lay-bold .guest-item:last-child { border-bottom: 0; }
.lay-bold .guest-price { font-family: var(--g-font-display); font-size: 1.25rem; line-height: 1.2; }
.lay-bold .guest-choice, .lay-bold .guest-action, .lay-bold .guest-legend { border-width: 2px; border-color: var(--g-line-strong); }

/* ---------------------------------------------------------------------------
   Druckansicht (Paket 4d): „Karte drucken / als PDF“. Schriften und Aufbau des Designs bleiben, Farben werden
   papiertauglich (dunkle Designs drucken dunkle Schrift auf Weiß), Bedienelemente und Fotos entfallen.
   Kategorien dürfen umbrechen, Gerichte und Überschriften nicht mittendrin.
   --------------------------------------------------------------------------- */
.guest-print-url { display: none; }
.guest-print-wrap { margin: var(--s-5) var(--gutter) 0; text-align: center; }
.guest-print-wrap .guest-chip { display: inline-flex; align-items: center; gap: var(--s-2); }
.guest-print-wrap .guest-chip[hidden] { display: none; }
/* Ende der Karte: links „← Alle Karten“ (gleitet wie oben), rechts „Nach oben ↑“ */
.guest-endnav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin: var(--s-5) var(--gutter) var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--g-line); }
.guest-endnav .guest-back { align-self: center; }
.guest-totop { display: inline-flex; align-items: center; gap: var(--s-1); margin-inline-start: auto; padding: 6px 0; font-size: 0.8125rem; font-weight: 500; color: var(--g-text-2); text-decoration: none; }
.guest-totop:hover { color: var(--g-text); }
.guest-totop .icon { transform: rotate(90deg); } /* Pfeil nach links, gedreht = nach oben */

@media print {
  @page { margin: 14mm 12mm; }
  html { /* nicht :root – tests/theme_test.php liest die :root-Blöcke als Bildschirm-Farben */
    --g-bg: #FFFFFF !important; --g-surface: #FFFFFF !important; --g-surface-2: #FFFFFF !important;
    --g-text: #000000 !important; --g-text-2: #444444 !important; --g-line: #CCCCCC !important; --g-line-strong: #000000 !important;
    --g-head-bg: #FFFFFF !important; --g-head-text: #000000 !important; --g-head-text-2: #444444 !important; --g-head-line: #CCCCCC !important;
    --g-cats-bg: #FFFFFF !important; --g-shadow: none !important; --g-ok: #14733F !important; --g-error: #B42323 !important;
  }
  /* Dunkle Designs: Akzent- und Preisfarben sind für dunklen Grund gedacht – auf Papier schwarz */
  .is-dark { --g-price: #000000 !important; --g-title-color: #000000 !important; --g-accent-text: #000000 !important; color-scheme: light; }
  html { font-size: 10.5pt; scroll-behavior: auto; }
  html, body { background: #FFFFFF !important; color: #000000; }
  .skip-link, .guest-banner, .guest-designs, .guest-tools, .guest-drawer, .guest-finder, .guest-empty, .guest-cats, .guest-back, .guest-endnav,
  .guest-cover, .guest-block--image, .guest-section__img, .guest-item__img, .guest-photo, .guest-demo-hint, .guest-print-wrap,
  .guest-foot__links, .guest-soldout, .guest-item__codes { display: none !important; }
  .guest-wrap { max-width: none; }
  .guest-head { padding: 0 0 4mm; border-bottom: 1px solid #CCCCCC; }
  .guest-cardbar { padding: 4mm 0 0; }
  .guest-section, .guest-block { padding-inline: 0; }
  .guest-section { padding-top: 5mm; break-inside: auto; }
  .guest-section__title, .guest-block__title { break-after: avoid; }
  .guest-items { box-shadow: none; }
  .guest-item { break-inside: avoid; }
  .guest-item--soldout .guest-item__name, .guest-item--soldout .guest-price { color: inherit; text-decoration: none; }
  .guest-codes.is-toggle { text-decoration: none; }
  .guest-legend { margin-inline: 0; break-inside: avoid; }
  .guest-foot { padding: 6mm 0 0; }
  .guest-print-url { display: block; margin-top: 2mm; font-size: 0.8125rem; color: #000000; }
  a { color: inherit; text-decoration: none; }
}
