/* ==========================================================================
   Zum Weichensteller — Mittagstisch demo (Tagesteller)
   One stylesheet for the public page (index.html) AND the owner's phone
   screen (wochenkarte/index.php). Sections run in page order; every banner
   is named like the data-sid it styles.

   The idea in one line: a railway station. Enamel-white signs, railway
   green, a split-flap board that clacks to today's dish. Nothing on this
   page is cream paper, handwritten or dark mono — the siblings own those.
   ========================================================================== */

/* ======== TOKENS — colours, type, spacing. Change here, it changes everywhere ======== */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-var-latin.woff2?v=ba4038fc") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
/* Metric-matched stand-in so the swap to the webfont moves nothing (CLS 0).
   Numbers measured in Chrome against the same sentence in both faces. */
@font-face {
  font-family: "SG Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 94%;     /* Schibsted's 97.7% / 104% — overrides scale with size-adjust */
  descent-override: 25%;
  line-gap-override: 0%;
}

:root {
  --email: #f2f3ee;        /* enamel white: cool, never cream */
  --email-lo: #e2e5dd;     /* the lower half of a flap sits in shadow */
  --gleis: #0b6644;        /* railway green: the board, the signs, the buttons */
  --gleis-tief: #06452d;   /* the board housing, one step darker than its face */
  --tinte: #0d1712;        /* ink on enamel */
  --grau: #4d5852;         /* secondary text, 6.6:1 on enamel */
  --linie: #c9cec6;        /* hairlines */
  --signal: #d8261c;       /* one accent with one job: "today" and the clock colon */

  --font: "Schibsted Grotesk", "SG Fallback", Arial, sans-serif;
  --r: 4px;                /* enamel signs are barely rounded; flaps too */
  --rig: 1240px;
  --pad: clamp(16px, 4vw, 40px);
}

/* ======== BASE — reset, body, links, focus ======== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--email);
  color: var(--tinte);
  font: 400 1rem/1.55 var(--font);
  overflow-wrap: break-word;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
abbr[title] { text-decoration: none; }
/* One focus ring for the whole site: thick, green-on-white or white-on-green. */
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
main:focus { outline: none; }
.rig { max-width: var(--rig); margin: 0 auto; padding: 0 var(--pad); }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 20;
  background: var(--tinte); color: #fff; padding: .6rem 1rem; border-radius: var(--r);
}
.skip:focus { top: 8px; }

/* ======== DEMO NOTE — slim enamel strip, closes, returns on reload ======== */
.demo-note {
  display: flex; align-items: center; gap: .75rem;
  padding: .45rem var(--pad);
  background: var(--tinte); color: var(--email);
  font-size: .82rem; line-height: 1.35;
}
.demo-note p { flex: 1; }
.demo-note a { color: #fff; }
.demo-x {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  background: none; border: 0; color: inherit; cursor: pointer; border-radius: var(--r);
}
.demo-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; }
.demo-note[hidden] { display: none; }
/* js/i18n.js swaps in EN/IT/FR after first paint and those run a line longer on a
   phone; three lines are reserved so the swap never pushes the page down (CLS 0). */
@media (max-width: 480px) { .demo-note p { min-height: 4.05em; } }

/* ======== HEAD — the station name sign, nav, flap clock ======== */
.head { padding: 14px 0; border-bottom: 1px solid var(--linie); }
.head-in { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
/* The sign copies a real enamel station plate: white field, green double rule. */
.sign {
  display: inline-flex; flex-direction: column; text-decoration: none;
  padding: 7px 14px 8px; background: #fff; color: var(--gleis);
  border: 3px solid var(--gleis); border-radius: 6px;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--gleis);
}
.sign-k { font-weight: 800; font-size: 1.15rem; line-height: 1.1; letter-spacing: -.01em; }
.sign-s { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tinte); }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; font-weight: 600; font-size: .95rem; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--gleis); }
/* The language menu arrives after DOMContentLoaded; its box is reserved so the nav never jumps. */
.lang-host { display: inline-flex; align-items: center; min-width: 3.4em; min-height: 32px; }
.head .wdm-lang { --wdm-lang-bg: #fff; --wdm-lang-fg: var(--tinte); --wdm-lang-border: var(--linie); --wdm-lang-font: var(--font); }
.clock { display: flex; align-items: center; gap: 2px; font-size: 1.25rem; }
.clock-c { color: var(--signal); font-weight: 800; font-size: 1.3rem; padding: 0 1px; }

/* ======== FLAP — one split-flap tile. Idle it is plain text on enamel; main.js
   only adds the three moving leaves (.lf) while it flips, then removes them. ======== */
.flap {
  position: relative; display: flex; align-items: center;
  background: linear-gradient(var(--email) 50%, var(--email-lo) 50%);
  color: var(--tinte); border-radius: 3px;
  perspective: 700px;              /* depth for the leaves' rotateX */
  box-shadow: 0 1px 0 rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(255, 255, 255, .5);
}
/* The split between the two leaves shows ONLY as notches at the tile's edges.
   A line drawn across the text read as strikethrough — "sold out" — which is
   the one thing a lunch board must never say by accident. The two-tone
   background above already carries the split through the middle. */
.flap::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px;
  background: linear-gradient(90deg, var(--gleis-tief) 5px, transparent 5px calc(100% - 5px), var(--gleis-tief) calc(100% - 5px));
  z-index: 3; pointer-events: none;
}
.ft { display: block; width: 100%; }
/* A moving leaf copies the tile exactly (same background, padding, alignment),
   so the text on it sits pixel-for-pixel where the real text sits. */
.lf {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: inherit; padding: inherit; border-radius: inherit;
  transform-origin: 50% 50%; backface-visibility: hidden; z-index: 2;
}
.lf-top { clip-path: inset(0 0 50% 0); }
.lf-under, .lf-bot { clip-path: inset(50% 0 0 0); }
.lf-bot { transform: rotateX(90deg); }
.lf[hidden] { display: none; }
/* The three sizes: blade (a whole dish name), small blade (allergens, marks), char (digits). */
.fb { min-height: 2.7em; padding: .3em .7em; font-weight: 650; line-height: 1.2; }
.fb.is-long { font-size: .8em; }
/* The text box always fills the blade and centres inside itself: a name going
   from one line to two then moves no box, only glyphs (layout-shift stays 0). */
.fb { align-items: stretch; }
.fb > .ft, .fb > .lf > .ft { display: flex; align-items: center; }
.fb > .lf { align-items: stretch; }    /* a long dish name shrinks instead of pushing the row taller */
.fs { justify-content: center; min-height: 2.2em; padding: 0 .5em; font-weight: 700; white-space: nowrap; }
.fc { justify-content: center; width: 1.15em; height: 1.55em; font-weight: 750; text-align: center; font-feature-settings: "tnum" 1; }
.fc .ft, .fs .ft { text-align: center; }
.fc .ft { font-size: .86em; }   /* the tile is a little bigger than its digit, like a real drum */
.fc-n { width: .5em; background: none; box-shadow: none; color: inherit; }
.fc-n::after { display: none; }
/* A dish without a V/VG mark gets an empty slot in the housing, not a blank white tile. */
.flap.is-empty { background: rgba(242, 243, 238, .07); box-shadow: inset 0 0 0 1px rgba(242, 243, 238, .16); }
.flap.is-empty::after { display: none; }
/* Small tiles get small notches, so the notch never touches a letter or digit. */
.fs::after { background: linear-gradient(90deg, var(--gleis-tief) 3px, transparent 3px calc(100% - 3px), var(--gleis-tief) calc(100% - 3px)); }
.fc::after { background: linear-gradient(90deg, var(--gleis-tief) 2px, transparent 2px calc(100% - 2px), var(--gleis-tief) calc(100% - 2px)); }              /* the decimal comma needs no full cell */

/* ======== TAFEL — the board: green housing, three rows, the week rail ======== */
.board {
  background: var(--gleis); color: var(--email);
  padding: clamp(22px, 4vw, 44px) 0 clamp(26px, 4vw, 40px);
  /* The riveted edge of a real board housing, drawn, not photographed. */
  border-bottom: 10px solid var(--gleis-tief);
}
.board-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
/* The H1 is set SMALL on purpose: the board is the display, the headline is its caption.
   Always two lines, in every language, so a translation swap cannot move the board. */
.board-h { font-size: clamp(.95rem, 1.6vw, 1.1rem); font-weight: 700; letter-spacing: .01em; line-height: 1.3; max-width: 23em; min-height: 2.6em; }
.board-when { font-size: .95rem; font-weight: 600; color: #cfe3d8; min-height: 1.5em; }
.panel {
  background: var(--gleis-tief); border-radius: 8px;
  padding: clamp(10px, 2vw, 18px);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, .25), 0 1px 0 rgba(255, 255, 255, .12);
}
.cols {
  display: grid; grid-template-columns: 3rem 1fr 7.5rem 4rem 7rem; gap: 12px;
  padding: 0 4px 8px; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #a9cbb9;
}
.cols span { white-space: nowrap; }   /* a longer translation must not wrap and push the rows down */
.cols .c-al { grid-column: 3; }
.cols .c-pr { grid-column: 5; text-align: right; }
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 3rem 1fr auto; gap: 12px; align-items: center; }
.r-g {
  display: grid; place-items: center; width: 3rem; height: 3rem;
  background: var(--email); color: var(--gleis); border-radius: 50%;
  font-weight: 800; font-size: 1.35rem;
}
.r-name { font-size: clamp(1.1rem, 2.1vw, 1.6rem); }
.r-side { display: grid; grid-template-columns: 7.5rem 4rem 7rem; gap: 12px; align-items: center; }
.r-al { font-size: .95rem; letter-spacing: .08em; }
.r-mk { font-size: .95rem; color: var(--gleis); }
.r-pr { display: flex; justify-content: flex-end; gap: 3px; font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
.board-status {
  margin-top: 14px; padding: 10px 4px 2px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 600; min-height: 2.9em;
}

/* ---- the week rail: five enamel buttons, today carries the red dot ---- */
.rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
.rl {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 58px; padding: 6px 4px; text-decoration: none; border-radius: var(--r);
  background: transparent; color: var(--email); border: 2px solid rgba(242, 243, 238, .5);
  font-weight: 700; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.rl:hover { border-color: var(--email); }
.rl-d { font-size: 1.15rem; line-height: 1.1; }
.rl-n { font-size: .78rem; font-weight: 600; opacity: .85; min-height: 1.2em; }
.rl[aria-selected="true"] { background: var(--email); color: var(--gleis); border-color: var(--email); }
.rl[data-today]::after {
  content: ""; position: absolute; top: 7px; right: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--signal);
}
.rail .rl:focus-visible { outline-color: var(--email); }
.keys { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; font-size: .88rem; color: #cfe3d8; }
.keys a { color: var(--email); }
.k-mk, .k-al {
  display: inline-block; min-width: 2.1em; margin-right: 4px; padding: 0 .35em; text-align: center;
  background: var(--email); color: var(--gleis); border-radius: 3px; font-weight: 800;
}

/* ======== SECTIONS — shared head: the green platform-number plate + heading ======== */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec + .sec { border-top: 1px solid var(--linie); }
.sec-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: clamp(26px, 4vw, 44px); }
/* Numbered like platforms, because on this page the sections are the stops. */
.plate {
  flex: none; display: grid; place-items: center; width: 3.1rem; height: 3.1rem;
  background: var(--gleis); color: #fff; border-radius: 6px; font-weight: 800; font-size: 1.6rem;
  box-shadow: inset 0 0 0 3px var(--gleis), inset 0 0 0 5px #fff;
}
.sec h2 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; }
.lede { margin-top: 10px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--grau); max-width: 38em; }
.sub { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gleis); margin-bottom: 12px; }

/* ======== WOCHE — the week as a timetable: day | three dishes ======== */
.week-when { margin-bottom: 18px; color: var(--grau); }
.week-when strong { color: var(--tinte); }
.wk {
  display: grid; grid-template-columns: 11rem 1fr; gap: 12px 24px;
  padding: 20px 0; border-top: 2px solid var(--tinte);
}
.wk:last-child { border-bottom: 2px solid var(--tinte); }
.wk-h { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
/* Today's row gets the one red mark — the same dot as on the rail. */
.wk[data-today] .wk-h::after {
  content: "heute"; display: inline-block; margin-left: 10px; vertical-align: .2em;
  padding: 1px 7px; border-radius: 3px; background: var(--signal); color: #fff;
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
}
.wk-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: gleis; }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-content: start; counter-increment: gleis; }
.dish::before {
  content: counter(gleis); grid-column: 1 / -1; justify-self: start;
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--gleis); color: #fff; font-size: .82rem; font-weight: 800;
}
.d-name { font-size: 1.08rem; font-weight: 650; line-height: 1.3; hyphens: auto; }
.d-price { font-weight: 800; font-size: 1.08rem; white-space: nowrap; font-feature-settings: "tnum" 1; }
.d-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .86rem; color: var(--grau); }
.d-al { display: inline-flex; gap: 3px; }
.d-al abbr, .d-diet {
  display: inline-grid; place-items: center; min-width: 1.45rem; height: 1.45rem; padding: 0 3px;
  border: 1.5px solid var(--tinte); border-radius: 3px; color: var(--tinte);
  font-size: .78rem; font-weight: 700; cursor: help;
}
.d-diet { background: var(--gleis); border-color: var(--gleis); color: #fff; }
.d-togo::before {
  /* a tiny drawn takeaway box; words carry the meaning, the box only helps the eye */
  content: ""; display: inline-block; width: .8em; height: .7em; margin-right: 5px;
  border: 1.5px solid currentColor; border-top-width: 3px; vertical-align: -.02em;
}
.d-togo.is-no { text-decoration: line-through; text-decoration-thickness: 1px; }
.d-togo.is-no::before { display: none; }
.wk-none { color: var(--grau); font-style: italic; }

/* ======== ALLERGENE — A to R as small enamel plates ======== */
.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 10px 26px; }
.al-grid div, .al-marks div { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--linie); }
.al-grid dt, .al-marks dt {
  flex: none; display: grid; place-items: center; width: 2.3rem; height: 2.3rem;
  background: #fff; color: var(--gleis); border: 2px solid var(--gleis); border-radius: 4px;
  font-weight: 800; font-size: 1.1rem;
}
.al-marks dt { background: var(--gleis); color: #fff; }
.al-foot { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: 20px 40px; margin-top: 34px; align-items: start; }
.al-marks { display: grid; gap: 6px; }
.al-law { font-size: .9rem; color: var(--grau); max-width: 38em; padding-top: 8px; }

/* ======== WIRT — the owner side: copy + a real screenshot in a phone frame ======== */
.wirt { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px 64px; align-items: center; }
.wirt-p { font-size: 1.12rem; max-width: 34em; margin-bottom: 16px; }
.try {
  margin-top: 26px; padding: 22px 24px; background: #fff;
  border: 3px solid var(--gleis); border-radius: 6px;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--gleis);
}
.try-h { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gleis); }
.try-pw { font-size: 1.3rem; font-weight: 700; margin: 6px 0 8px; }
.pw { font: 800 1.3rem/1 var(--font); background: var(--email); padding: 4px 10px; border-radius: 3px; letter-spacing: .04em; }
.try-note { color: var(--grau); margin-bottom: 16px; font-size: .95rem; }
.phone { justify-self: center; width: min(100%, 320px); }
/* The frame is CSS; the picture inside is a real capture of wochenkarte/ at 375 px. */
.phone img {
  width: 100%; border: 10px solid var(--tinte); border-radius: 30px;
  background: var(--tinte); box-shadow: 0 24px 50px -24px rgba(13, 23, 18, .55);
}
.phone figcaption { margin-top: 12px; text-align: center; font-size: .85rem; color: var(--grau); }

/* ======== BUTTONS — the only two button shapes on the page ======== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; border-radius: var(--r); background: var(--gleis); color: #fff;
  font: 700 1rem/1 var(--font); text-decoration: none; border: 2px solid var(--gleis); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--gleis-tief); border-color: var(--gleis-tief); }
.btn-line { background: transparent; border-color: currentColor; color: inherit; }
.btn-line:hover { background: rgba(255, 255, 255, .1); border-color: currentColor; }
.btn-inv { background: var(--email); border-color: var(--email); color: var(--gleis-tief); }
.btn-inv:hover { background: #fff; border-color: #fff; }

/* ======== INFO — hours, takeaway, the fiction note ======== */
.info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 44px; }
.info-p { color: var(--tinte); margin-top: 10px; max-width: 30em; }
.hours { border-collapse: collapse; width: 100%; font-size: 1.02rem; }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px solid var(--linie); text-align: left; font-weight: 600; }
.hours td { text-align: right; font-weight: 800; }
.hours .zu { color: var(--grau); font-weight: 600; }
.wdm-box { margin-top: 16px; padding: 14px 16px; background: #fff; border-left: 4px solid var(--gleis); font-size: .92rem; }
.wdm-n { margin-top: 6px; font-weight: 800; font-size: 1.1rem; }

/* ======== STUDIO — outside the fiction, so it wears the housing green ======== */
.studio { background: var(--gleis-tief); color: var(--email); padding: clamp(56px, 8vw, 96px) 0; }
.studio-kick { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a9cbb9; }
.studio-h { margin: 10px 0 14px; font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; max-width: 20em; }
.studio-p { max-width: 40em; font-size: 1.08rem; }
.studio-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ======== FOOT — credit line ======== */
.foot { padding: 28px 0 20px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .88rem; color: var(--grau); }
.foot-mark { font-weight: 800; color: var(--gleis); }

/* ======== RESPONSIVE — tablet, then phone. The board gets a different build, not a squeeze ======== */
@media (max-width: 1000px) {
  .wk { grid-template-columns: 1fr; }
  .wk-list { grid-template-columns: 1fr; gap: 16px; }
  .dish { grid-template-columns: auto 1fr auto; }
  .dish::before { grid-column: 1; grid-row: 1; }
  .d-meta { grid-column: 2 / -1; }
  .info { grid-template-columns: 1fr 1fr; }
  .wirt { grid-template-columns: 1fr; }
  .al-foot { grid-template-columns: 1fr; }
}
/* Up to 900 px the nav takes its own line under the sign and the clock. */
@media (max-width: 900px) {
  .head-in { gap: 10px 16px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 2px 16px; font-size: .9rem; }
  .clock { margin-left: auto; }
}
/* Phone: each board row becomes two lines — dish on top, allergens + marks + price
   below — with fixed heights, so a day change never moves anything under it. */
@media (max-width: 760px) {
  .cols { display: none; }
  .row { grid-template-columns: 2.4rem 1fr; gap: 8px 10px; align-items: start; }
  .r-g { width: 2.4rem; height: 2.4rem; font-size: 1.1rem; margin-top: 4px; }
  .r-name { min-height: 3.1em; font-size: 1.12rem; }
  .r-side { grid-column: 2; grid-template-columns: minmax(0, 1fr) 3.2rem auto; gap: 8px; }
  .r-al { justify-content: flex-start; font-size: .85rem; }
  .r-mk { font-size: .85rem; }
  .r-pr { font-size: 1.25rem; }
  .rail { gap: 5px; }
  .rl { min-height: 52px; }
  .rl-d { font-size: 1.02rem; }
  .rl-n { font-size: .7rem; }
  .info { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .sign-k { font-size: 1rem; }
  .r-name { font-size: 1rem; }       /* "Eierschwammerlgulasch" must fit whole at 320 px */
  .fc { width: .95em; }
}

/* ======== MOTION — reduced motion is its own build: no leaves, no transitions ======== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   WOCHENKARTE — the owner's phone screen (wochenkarte/index.php).
   Built for one thumb at 375 px: big targets, one day at a time, no JS needed.
   ========================================================================== */

/* ======== WK BAR — top bar with the sign and logout ======== */
.wk-page { min-height: 100vh; }
/* The sticky save bar must never sit on top of the field that has focus. */
html:has(.wk-page) { scroll-padding-bottom: 96px; }
.wk-bar { background: var(--gleis); color: var(--email); padding: 12px 0; }
.wk-bar .rig { display: flex; align-items: center; gap: 10px; }
.wk-bar-t { flex: 1; min-width: 0; }
.wk-bar .btn { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.wk-bar-t { font-weight: 800; font-size: 1.05rem; }
.wk-bar-t span { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #cfe3d8; }
.wk-bar form { margin: 0; }
/* padding-block only: .rig owns the side gutters */
.wk-main { padding-top: 22px; padding-bottom: 60px; max-width: 640px; margin: 0 auto; }
.wk-msg { padding: 12px 14px; border-radius: var(--r); margin-bottom: 18px; font-weight: 600; }
.wk-ok { background: #dcefe3; border-left: 4px solid var(--gleis); }
.wk-err { background: #fbe3e1; border-left: 4px solid var(--signal); }
.wk-demo { font-size: .9rem; color: var(--grau); margin-bottom: 16px; }

/* ======== WK LOGIN — the enamel sign as a login card ======== */
.wk-login {
  max-width: 420px; margin: 8vh auto 0; padding: 26px 22px; background: #fff;
  border: 3px solid var(--gleis); border-radius: 8px;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--gleis);
}
.wk-login h1 { font-size: 1.6rem; font-weight: 800; color: var(--gleis); line-height: 1.1; margin-bottom: 6px; }
.wk-login p { margin-bottom: 16px; }
.wk-hint { background: var(--email); padding: 10px 12px; border-radius: var(--r); font-size: .95rem; }

/* ======== WK FORM FIELDS — labels above inputs, 48 px targets ======== */
.fld { display: block; margin-bottom: 14px; }
.fld > span { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grau); margin-bottom: 5px; }
.inp {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--tinte); border-radius: var(--r);
  background: #fff; color: var(--tinte); font: 600 1.05rem/1.3 var(--font);
}
.inp:focus-visible { outline-offset: 1px; }
.inp-price { max-width: 9rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ======== WK DAY TABS — Mo to Fr as the same enamel buttons as the rail ======== */
.wk-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 18px; }
.wk-tabs a {
  display: grid; place-items: center; min-height: 50px; border: 2px solid var(--gleis); border-radius: var(--r);
  color: var(--gleis); font-weight: 800; text-decoration: none;
}
.wk-tabs a[aria-current="page"] { background: var(--gleis); color: #fff; }

/* ======== WK DISH CARD — one dish: name, price, chips, diet, takeaway ======== */
.wk-dish { border-top: 2px solid var(--tinte); padding: 16px 0 6px; }
.wk-dish-h { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 12px; }
.wk-dish-h b {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--gleis); color: #fff;
}
.wk-dish-h small { font-weight: 600; color: var(--grau); }
fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
legend { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grau); margin-bottom: 6px; padding: 0; }
/* Chips are real checkboxes/radios: the input stays in the tab order, only its box is hidden. */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr)); gap: 6px; }
.chips-3 { grid-template-columns: repeat(3, 1fr); }
.chip { position: relative; display: block; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 48px; padding: 4px; border: 2px solid var(--linie); border-radius: var(--r);
  background: #fff; text-align: center; line-height: 1.1; font-size: .72rem; color: var(--grau);
}
.chip span b { font-size: 1.1rem; color: var(--tinte); }
.chip input:checked + span { background: var(--gleis); border-color: var(--gleis); color: #dff0e6; }
.chip input:checked + span b { color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.chip-line span { flex-direction: row; gap: 8px; font-size: .95rem; font-weight: 700; color: var(--tinte); }
.wk-save {
  position: sticky; bottom: 0; padding: 12px 0; margin-top: 10px;
  background: linear-gradient(transparent, var(--email) 30%);
}
.wk-save .btn { width: 100%; font-size: 1.1rem; min-height: 54px; }
.wk-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; font-weight: 600; }
.wk-links form { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
