/* bestellt.app: the brand layer of our own pages (D-080, D-095, docs/design/brand.md).
   Loaded only by the platform home, sign-in, team invitation, our notice and
   error pages and the platform administration. Guest pages (shop, checkout,
   status, payment) never load it: guests see the restaurant alone.
   Colours: Grün, Messing (the dot in the name, details only, never text on
   light), Tinte, Porzellan, Zink, Stein. Newsreader is self-hosted
   (SIL OFL, fonts/brand/OFL.txt); the wordmark is outlined SVG. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/brand/newsreader-latin-ext-45683de0.woff2) format("woff2");
  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: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/brand/newsreader-latin-6e4f2958.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;
}

:root {
  --bestellt-green: #183d33;
  --bestellt-brass: #b38b4d;
  --bestellt-brass-text: #765628;
  --bestellt-ink: #15181a;
  --bestellt-porcelain: #f7f7f4;
  --bestellt-zinc: #dcddd6;
  --bestellt-stone: #585c56;
  --bestellt-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  /* shared app.css tokens on our pages; the focus ring follows --brand */
  --ink: var(--bestellt-ink);
  --muted: var(--bestellt-stone);
  --brand: var(--bestellt-green);
  --cream: var(--bestellt-porcelain);
  --paper: var(--bestellt-porcelain);
}

/* Wordmark: outlined letters in currentColor, brass line */
.wordmark { display: inline-flex; align-items: center; color: var(--bestellt-ink); text-decoration: none; line-height: 0; }
.wordmark svg { display: block; width: auto; height: 30px; }

/* Platform home: public/landing.css (D-098, docs/design/landing.md) */

/* Invitation, our notices and errors */
.message-page { background: var(--bestellt-porcelain); }
.auth-card { border-color: var(--bestellt-zinc); background: #fff; box-shadow: 0 1px 2px rgb(21 24 26 / .04), 0 14px 36px rgb(21 24 26 / .06); backdrop-filter: none; }
.message-card .wordmark { top: 70px; } /* below the language bar */
.auth-card h1, .message-card h1 { font-family: var(--bestellt-serif); font-weight: 500; font-variation-settings: "opsz" 60; letter-spacing: -.025em; }

/* Restaurant sign-in (dashboard design system, bestellt.app on top) */
/* Light: porcelain page and the green main button. Dark keeps the dashboard's dark tokens (D-111). */
html:not([data-theme="dark"]) .dash-auth { --d-bg: var(--bestellt-porcelain); --d-primary: var(--bestellt-green); --d-on-primary: #fff; --d-line: var(--bestellt-zinc); }
html[data-theme="dark"] .dash-auth .wordmark { color: var(--d-ink); }
.dash-auth-kicker { justify-content: space-between; }
.dash-auth-kicker .wordmark svg { height: 26px; }
.dash-auth-kicker > span:last-child { font-size: 13px; }
.dash-auth-card h1 { font-family: var(--bestellt-serif); font-weight: 500; font-size: 32px; line-height: 1.2; letter-spacing: -.02em; font-variation-settings: "opsz" 48; }

/* Platform administration */
/* Page colours, light and dark: platform.css (--p-* tokens, D-256); the rules below fall back to the light brand values on the other pages. */
.platform-admin-header .wordmark svg { height: 26px; }
.platform-heading h1 { font-family: var(--bestellt-serif); font-variation-settings: "opsz" 48; letter-spacing: -.02em; }

/* ---------- Forms, buttons and labels on our pages (D-088) ----------
   Invitation, notices, errors, sign-in and the platform administration follow
   the rules of the restaurant dashboard (docs/design/dashboard-forms.md):
   label above the field at 14 px, fields 48 px high, radius 8 px, buttons
   48 px with a firm lower edge, no capitals. Newsreader stays for the large
   headings (D-080). Guest pages never load this file. */
:is(.message-page, .platform-admin) .eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--bestellt-stone); }
:is(.message-page, .platform-admin) .button { gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1.25; transition: background .12s, border-color .12s, box-shadow .12s, transform .06s; }
:is(.message-page, .platform-admin) .button:hover:not(:disabled) { transform: none; }
:is(.message-page, .platform-admin) .button:active:not(:disabled) { transform: translateY(1px); }
:is(.message-page, .platform-admin) .button.primary { border-color: var(--p-primary-line, #0f2a23); background: var(--p-primary, var(--bestellt-green)); color: var(--p-on-primary, #fff); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), inset 0 -2px 0 rgb(0 0 0 / .22), 0 1px 2px rgb(21 24 26 / .16); }
:is(.message-page, .platform-admin) .button.primary:hover:not(:disabled) { border-color: var(--p-primary-hover, #0f2a23); background: var(--p-primary-hover, #123129); }
:is(.message-page, .platform-admin) .button.primary:active:not(:disabled) { box-shadow: inset 0 2px 3px rgb(0 0 0 / .25); }
:is(.message-page, .platform-admin) .button.secondary { border-color: var(--p-field-line, #cdcdc5); background: var(--p-field, #fff); color: var(--bestellt-ink); box-shadow: inset 0 -1px 0 rgb(21 24 26 / .08), 0 1px 1px rgb(21 24 26 / .05); }
:is(.message-page, .platform-admin) .button.secondary:hover:not(:disabled) { border-color: var(--p-input-hover, #8e8e86); background: var(--p-hover, #f7f7f4); }
:is(.message-page, .platform-admin) .button.danger { border-color: #7a2017; background: #9d2b1f; color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), inset 0 -2px 0 rgb(0 0 0 / .22); }
:is(.message-page, .platform-admin) :is(input:not([type=checkbox], [type=radio], [type=color], [type=hidden], [type=file]), select) { min-height: 48px; padding: 0 14px; border: 1px solid var(--p-field-line, #d6d6cf); box-shadow: none; border-radius: 12px; background-color: var(--p-field, #fff); font-size: 16px; }
/* The rule above sets only the colour: its :is() weighs like an input with five attributes and used to wipe this chevron. */
:is(.message-page, .platform-admin) select { appearance: none; padding-right: 40px; background: var(--p-field, #fff) var(--p-chevron, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c5c55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")) no-repeat right 14px center / 16px; }
:is(.message-page, .platform-admin) textarea { padding: 10px 14px; border: 1px solid var(--p-field-line, #d6d6cf); box-shadow: none; border-radius: 12px; background: var(--p-field, #fff); font-size: 16px; }
:is(.message-page, .platform-admin) :is(input:not([type=checkbox], [type=radio]), select, textarea):hover { border-color: var(--p-input-hover, #a9a9a1); }
:is(.message-page, .platform-admin) :is(input, select, textarea):focus { border-color: var(--p-accent, var(--bestellt-green)); box-shadow: inset 0 0 0 1px var(--p-accent, var(--bestellt-green)); outline: none; }
/* Beschriftung im Feld (D-222, as in the dashboard): the label small at the top inside the frame, the value below;
   help text follows under the field. The label lets clicks through to the field. */
:is(.message-page, .platform-admin) label:has(> span:first-child + :is(input:not([type=checkbox], [type=radio], [type=color], [type=hidden], [type=file]), select, textarea, .platform-unit)) > span:first-child { grid-area: 1 / 1; z-index: 1; align-self: start; min-width: 0; max-width: calc(100% - 34px); margin: 10px 0 0 17px; font-size: 12.5px; font-weight: 500; line-height: 1.2; color: var(--muted, #5c5c55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
:is(.message-page, .platform-admin) label:has(> span:first-child + :is(input:not([type=checkbox], [type=radio], [type=color], [type=hidden], [type=file]), select, textarea, .platform-unit)) > span:first-child + * { grid-area: 1 / 1; }
:is(.message-page, .platform-admin) label:has(> span:first-child + :is(input:not([type=checkbox], [type=radio], [type=color], [type=hidden], [type=file]), select, textarea, .platform-unit)) > span:first-child + :is(input, select) { min-height: 62px; padding: 24px 16px 8px; border-radius: 14px; }
:is(.message-page, .platform-admin) label:has(> span:first-child + :is(input:not([type=checkbox], [type=radio], [type=color], [type=hidden], [type=file]), select, textarea, .platform-unit)) > span:first-child + select { padding-right: 44px; background-position: right 16px center; }
:is(.message-page, .platform-admin) label:has(> span:first-child + :is(input:not([type=checkbox], [type=radio], [type=color], [type=hidden], [type=file]), select, textarea, .platform-unit)) > span:first-child + textarea { padding: 30px 16px 12px; border-radius: 14px; }
:is(.message-page, .platform-admin) label:has(> span:first-child + :is(input:not([type=checkbox], [type=radio], [type=color], [type=hidden], [type=file]), select, textarea, .platform-unit)) > span:first-child + .platform-unit > input { min-height: 62px; padding: 24px 44px 8px 16px; border-radius: 14px; }
:is(.message-page, .platform-admin) label:has(> span:first-child + :is(input:not([type=checkbox], [type=radio], [type=color], [type=hidden], [type=file]), select, textarea, .platform-unit)) > span:first-child + .platform-unit > i { top: calc(50% + 8px); }
/* Empty and not being typed in: the label large where the value goes; it moves up on focus (src/http/field-hints.ts).
   Text areas: top left, as far from the top as from the left, like the dashboard (D-249). */
:is(.message-page, .platform-admin) label:has(> span:first-child + :is(input:not([type=checkbox], [type=radio], [type=color], [type=hidden], [type=file]), select, textarea, .platform-unit)) > span:first-child { transform-origin: left top; transition: transform .16s ease, color .16s; }
:is(.message-page, .platform-admin) label:not(:focus-within):has(> span:first-child + :is(input, textarea):placeholder-shown, > span:first-child + .platform-unit > input:placeholder-shown) > span:first-child { transform: translateY(12px) scale(1.2); max-width: calc((100% - 34px) / 1.2); font-weight: 400; }
:is(.message-page, .platform-admin) label:not(:focus-within):has(> span:first-child + :is(input, textarea):placeholder-shown, > span:first-child + .platform-unit > input:placeholder-shown):has(> span:first-child + textarea) > span:first-child { transform: translateY(5px) scale(1.2); }
:is(.message-page, .platform-admin) label:not(:focus-within):has(> span:first-child + :is(input, textarea):placeholder-shown, > span:first-child + .platform-unit > input:placeholder-shown) > span:first-child + :is(input, textarea)::placeholder, :is(.message-page, .platform-admin) label:not(:focus-within):has(> span:first-child + :is(input, textarea):placeholder-shown, > span:first-child + .platform-unit > input:placeholder-shown) > span:first-child + .platform-unit > input::placeholder { color: transparent; }
:is(.message-page, .platform-admin) label:not(:focus-within):has(> span:first-child + :is(input, textarea):placeholder-shown, > span:first-child + .platform-unit > input:placeholder-shown) > span:first-child + .platform-unit > i { top: 50%; }
@media (prefers-reduced-motion: reduce) { :is(.message-page, .platform-admin) label:has(> span:first-child + :is(input:not([type=checkbox], [type=radio], [type=color], [type=hidden], [type=file]), select, textarea, .platform-unit)) > span:first-child { transition: none; } }
:is(.message-page, .platform-admin) :is(.form-error, .form-status) { font-size: 14px; }
.auth-card { padding: clamp(24px, 5vw, 36px); border-radius: 12px; box-shadow: 0 1px 0 rgb(21 24 26 / .04), 0 8px 24px rgb(21 24 26 / .06); }
.auth-card label { gap: 6px; }
.auth-card label > span { font-size: 14px; font-weight: 600; color: var(--bestellt-ink); }
.auth-card > p:not(.eyebrow) { font-size: 15px; line-height: 1.5; }
.auth-card form > small { font-size: 13px; line-height: 1.45; }

