/* ============================================================================
   Getränkemarkt Sigl - Minimalism & Swiss Style
   Colour pairs are WCAG-AA measured, not eyeballed. Two values that look usable
   but are NOT: #059669 as link text on white (3.77:1) and #D97706 as any text
   on a light background (3.19:1). Amber is therefore a background only, behind
   black text (6.59:1). Keep it that way.
   ========================================================================== */

@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend-latin.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}

:root {
  --paper: #F2F1EB;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --ink-muted: #475569;
  --brand: #065F46;        /* button background, white text 7.68:1 */
  --brand-text: #047857;   /* link text on light, 5.48:1 */
  --amber: #D97706;        /* background only, black text 6.59:1 */
  --line: #E4E7E3;
  --ok-bg: #DCFCE7;  --ok-fg: #065F46;
  --off-bg: #EEF2F6; --off-fg: #44535F;

  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;

  /* density 4/10 - standard 16-64px */
  --space-1: 0.5rem;  --space-2: 0.75rem; --space-3: 1rem;
  --space-4: 1.5rem;  --space-5: 2rem;    --space-6: 3rem;  --space-7: 4rem;

  --measure: 68ch;
  --shell: 70rem;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1613;
    --surface: #1B2825;
    --ink: #E8EDE9;
    --ink-muted: #9FB0A8;
    --brand: #047857;
    --brand-text: #34D399;
    --amber: #FBBF24;
    --line: #263430;
    --ok-bg: #0B3B2A;  --ok-fg: #6EE7B7;
    --off-bg: #1E2A26; --off-fg: #A7B6AE;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1613; --surface: #1B2825; --ink: #E8EDE9; --ink-muted: #9FB0A8;
  --brand: #047857; --brand-text: #34D399; --amber: #FBBF24; --line: #263430;
  --ok-bg: #0B3B2A; --ok-fg: #6EE7B7; --off-bg: #1E2A26; --off-fg: #A7B6AE;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* 17px - the audience skews older */
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;        /* no orphan heading lines */
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 var(--space-3); }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin: var(--space-6) 0 var(--space-2); }
h3 { font-size: 1.125rem; margin: var(--space-5) 0 var(--space-1); }

a { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--brand-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--space-3); }

.skip {
  position: absolute; left: -9999px;
  background: var(--brand); color: #fff; padding: var(--space-2) var(--space-3);
}
.skip:focus { left: var(--space-3); top: var(--space-3); z-index: 10; }

/* --- header ---------------------------------------------------------------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  align-items: center; justify-content: space-between;
  padding-block: var(--space-3);
}
.brand { text-decoration: none; color: var(--ink); display: grid; }
.brand-name { font-size: 1.3rem; }
.brand-sub {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted);
}

.site-nav { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.site-nav a {
  display: flex; align-items: center;
  min-height: 44px;                       /* touch target */
  padding: 0 var(--space-3);
  border-radius: 999px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background-color 180ms ease, color 180ms ease;
}
.site-nav a:hover { background: var(--paper); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--brand); color: #fff; }

/* --- burger -----------------------------------------------------------------
   Progressive enhancement: the .js class is set in <head> before first paint.
   Without JS the toggle never appears and the nav stays visible, so the menu is
   never unreachable. ------------------------------------------------------- */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 180ms ease;
}
.nav-toggle:hover { border-color: var(--brand-text); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.js .nav-toggle { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.is-open {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2px;
  padding-bottom: var(--space-2);
}
.js .site-nav.is-open a { width: 100%; border-radius: var(--radius); }

@media (min-width: 48rem) {
  .js .nav-toggle { display: none; }
  .js .site-nav { display: flex; }
}

/* --- hero ------------------------------------------------------------------ */
.hero { padding-block: var(--space-7) var(--space-6); max-width: 46rem; }
.eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 2rem; height: 3px; margin-right: var(--space-2); vertical-align: 3px;
  background: var(--amber);
}
.lede { font-size: clamp(1.0625rem, 2.2vw, 1.3rem); color: var(--ink-muted); margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--space-5);
  border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-text); border: 1.5px solid var(--line); }
.btn:hover { transform: translateY(-1px); }
.btn-ghost:hover { border-color: var(--brand-text); }

/* --- prose ----------------------------------------------------------------- */
main { display: block; padding-bottom: var(--space-7); }
.prose { max-width: var(--measure); margin-inline: auto; }
.prose > h2:first-child { margin-top: 0; }
.prose h2 { padding-top: var(--space-3); border-top: 1px solid var(--line); }
.prose p { margin: 0 0 var(--space-3); }
.prose ul { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.prose ul li { position: relative; padding-left: var(--space-4); margin-bottom: var(--space-1); }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--amber);
}
.page-head { padding-block: var(--space-6) var(--space-4); max-width: var(--measure); margin-inline: auto; }
.page-head h1 { margin: 0; }

.prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-4); font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: var(--space-2); border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-display); font-weight: 600; }

/* --- cards ----------------------------------------------------------------- */
.section { padding-block: var(--space-6) 0; }
.section-title { margin-top: 0; }

/* The list reset belongs to the <ul> alone. Applying `padding: 0` to .info-grid
   too would beat .section's `padding-block` (equal specificity, later rule) on
   <section class="section info-grid"> and collapse the gap between sections. */
.cards { list-style: none; padding: 0; margin: 0; }
.cards, .info-grid { display: grid; gap: var(--space-4); }
.cards { grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }
.info-grid { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.card h2 { margin: 0 0 var(--space-3); font-size: 1.125rem; border: 0; padding: 0; }
.card h3 { margin: var(--space-2) 0 var(--space-1); font-size: 1.0625rem; }
.card p { margin: 0 0 var(--space-2); }
.card p:last-child { margin-bottom: 0; }
.cards .card p { color: var(--ink-muted); font-size: 0.9375rem; }
.svc-icon { color: var(--brand-text); display: block; }
.muted { color: var(--ink-muted); font-size: 0.875rem; }

.status {
  display: inline-flex; align-items: center; gap: var(--space-1);
  margin: 0 0 var(--space-3) !important;
  padding: 3px var(--space-2) 3px var(--space-2);
  border-radius: 999px;
  font-size: 0.875rem; font-weight: 600;
}
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; flex: none;
}
.status[data-open="true"]  { background: var(--ok-bg);  color: var(--ok-fg); }
.status[data-open="false"] { background: var(--off-bg); color: var(--off-fg); }

/* --- footer ---------------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: var(--space-6) var(--space-4);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.site-footer h2 {
  font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 var(--space-2); border: 0; padding: 0;
}
.site-footer p { margin: 0 0 var(--space-2); }
.hours { margin: 0; display: grid; gap: var(--space-1); }
.hours div { display: flex; justify-content: space-between; gap: var(--space-3); max-width: 18rem; }
.hours dt { color: var(--ink-muted); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.footer-legal {
  margin: var(--space-5) 0 0; padding-top: var(--space-3);
  border-top: 1px solid var(--line); color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:hover { transform: none; }
}
