/*
  Design tokens — E0.6.
  Brand colours and logo come from bartl-bringts.at, see wwwroot/assets/brand/brand-notes.md.
  Mobile-first: every value here is the 360 px value; layout.css scales up at 768 px and 1200 px.
*/

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/open-sans-latin.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: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/open-sans-latin-ext.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;
}

:root {
  /* --- Brand ------------------------------------------------------------- */
  /* Design-Review 13.10.2026: exactly the old system's yellow, verified against the live CSS bundle.
     The old .btn.btn-primary kept #ffdc00 on :hover/:active too (it overrides Bootstrap's states), so
     --color-brand-dark no longer darkens — hover feedback comes from .btn:hover's shadow instead. */
  --color-brand: #ffdc00;
  --color-brand-bright: #f5e50b;
  --color-brand-dark: #ffdc00;
  --color-brand-soft: #fff8cc;

  /* --- Neutrals ---------------------------------------------------------- */
  --color-ink: #141310;
  --color-ink-soft: #2b2823;
  --color-ink-muted: #5a554c;
  --color-surface: #ffffff;
  --color-surface-muted: #f7f5ef;
  --color-surface-sunken: #efece2;
  --color-border: #d8d4c8;
  --color-border-strong: #a8a294;

  /* --- Semantic (all >= 4.5:1 on white, A7) ------------------------------ */
  --color-success: #1b6e3c;
  --color-success-surface: #e8f4ec;
  --color-danger: #a32116;
  --color-danger-surface: #fbeceb;
  --color-warning-ink: #7a5200;
  --color-warning-surface: #fff5db;
  --color-info: #15607e;
  --color-info-surface: #e8f2f7;

  /* --- Typography -------------------------------------------------------- */
  --font-family-base: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.125rem;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.2;
  --line-height-base: 1.55;

  /* Headings (design review 14.10.2026, third round: "Headline Styles sind nicht einheitlich (fett/nicht
     fett)"). One weight for every heading and two sizes: the dotted heading (page title h1 and section
     heading h2 alike: "willkommen …", "neu bei uns") and the heading of a tile or card ("bestellung
     wiederholen", "ihr guthaben", text cards, teasers). Every heading style reads these, nothing else. */
  --heading-weight: var(--font-weight-bold);
  --heading-size-section: calc(var(--font-size-2xl) + 5px);
  --heading-size-tile: calc(var(--font-size-lg) + 5px);

  /* --- Spacing (4 px scale) ---------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* --- Radii, borders, elevation -----------------------------------------
     Radii lean square (design-altsystem-parität, 11.08.2026): the old live system had no rounded
     corners at all; this keeps a little softness for a modern feel instead of copying that exactly,
     but nowhere near our previous --radius-lg: 14px. --radius-pill is unrelated to this motif — it
     stays fully round only for the cart entry's count bubble and the checkout step numbers. */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-pill: 999px;
  --border-width: 1px;
  --border-width-strong: 2px;

  /* --- Dotted motif (design-altsystem-parität, 11.08.2026) ---------------
     The old live system's signature: 2px dotted black borders on boxes/cards, list rows and the
     primary/secondary buttons, a 4px dotted rule through section headings and a dotted <hr>. Tokenised
     here so every consumer (components.css, layout.css, the partials) stays in sync from one place —
     see docs/tickets/design-altsystem-paritaet.md for which components adopt it and which do not. */
  --border-style-motif: dotted;
  --border-width-motif: 2px;
  --border-width-motif-lg: 4px;
  --border-motif: var(--border-width-motif) var(--border-style-motif) var(--color-ink);
  --border-motif-lg: var(--border-width-motif-lg) var(--border-style-motif) var(--color-ink);

  --shadow-sm: 0 1px 2px rgba(20, 19, 16, 0.08);
  --shadow-md: 0 4px 12px rgba(20, 19, 16, 0.1);

  /* --- Interaction ------------------------------------------------------- */
  --touch-target: 44px; /* A2: minimum touch target */
  --focus-ring-width: 3px;
  --focus-ring-color: var(--color-ink);
  --focus-ring-offset: 2px;

  /* --- Layout ------------------------------------------------------------ */
  --layout-max-width: 1200px;
  /* Column of the account forms (Anmeldung, Registrierung, Passwort vergessen) and their intro text —
     design review 13.10.2026, second round: clearly wider than the first narrow version on a 13" laptop,
     but not the full content width. */
  --form-max-width: 47.5rem;
  --layout-gutter: var(--space-4);
}

@media (min-width: 768px) {
  :root {
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.75rem;
    --layout-gutter: var(--space-5);
  }
}

@media (min-width: 1200px) {
  :root {
    --font-size-3xl: 3rem;
    --layout-gutter: var(--space-6);
  }
}
