/* d-m.at — one stylesheet for all ~460 pages.
   Hashed on build, so it can be cached forever and still change. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f4f2ed;
  --line: #e4e0d8;
  --ink: #16211f;
  --ink-2: #5b6664;
  --brand: #0b5d57;
  --brand-2: #0f7a71;
  --brand-ink: #ffffff;
  --accent: #d9542f;
  --open: #1b7f4e;
  --closed: #b5432c;
  --soon: #a86a12;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22,33,31,.05), 0 8px 24px -12px rgba(22,33,31,.18);
  --maxw: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101615;
    --surface: #182220;
    --surface-2: #1f2b29;
    --line: #2b3a37;
    --ink: #e9efed;
    --ink-2: #9aa8a5;
    --brand: #5fd3c4;
    --brand-2: #7ee2d4;
    --brand-ink: #06211e;
    --accent: #ff8a63;
    --open: #58d193;
    --closed: #ff8272;
    --soon: #e8b45c;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-feature-settings: "kern", "liga";
}
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); margin-top: 2.2rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.03em;
         font-size: 1.18rem; color: var(--ink); text-decoration: none; flex: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-size: .84rem; font-weight: 800; letter-spacing: -.06em;
}
.brand small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .06em;
               text-transform: uppercase; color: var(--ink-2); }
.nav { margin-left: auto; display: flex; gap: 20px; font-size: .93rem; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--brand); }
@media (max-width: 720px) { .nav { display: none; } }

/* ---------- search ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 8px; }
.finder { position: relative; margin: 22px 0 8px; max-width: 620px; }
.finder-row { display: flex; gap: 10px; }
.finder input {
  flex: 1; min-width: 0; font: inherit; padding: 15px 17px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow);
}
.finder input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.btn {
  font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  padding: 15px 18px; border-radius: var(--radius); background: var(--brand);
  color: var(--brand-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-2); color: var(--brand-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--brand); }
.finder-hint { font-size: .87rem; color: var(--ink-2); margin: 8px 2px; }
.results { margin: 18px 0; display: grid; gap: 10px; }
.results:empty { display: none; }
.result {
  display: flex; gap: 14px; align-items: baseline; padding: 13px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.result:hover { border-color: var(--brand); color: var(--ink); }
.result .dist { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600;
                color: var(--brand); white-space: nowrap; }
.result b { font-weight: 650; }

/* ---------- photo hero ---------- */
.hero-photo { position: relative; margin-bottom: 30px; overflow: hidden; }
.hero-photo picture { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The scrim is what makes white text legible on an arbitrary photograph;
   without it the headline disappears into whatever the picture happens to
   show at that spot. */
.hero-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,20,18,.86) 0%, rgba(6,20,18,.70) 45%, rgba(6,20,18,.90) 100%);
}
.hero-photo .wrap { position: relative; z-index: 2; padding-top: clamp(38px, 6vw, 86px);
                    padding-bottom: clamp(30px, 4vw, 56px); }
.hero-photo h1, .hero-photo .lead { color: #fff; }
.hero-photo .lead { color: rgba(255,255,255,.86); }
.hero-photo .finder-hint { color: rgba(255,255,255,.72); }
.hero-photo .finder input { border-color: transparent; }
.hero-photo .btn-ghost { background: rgba(255,255,255,.14); color: #fff;
                         border-color: rgba(255,255,255,.34); backdrop-filter: blur(6px); }
.hero-photo .btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.hero-photo .results .result { background: var(--surface); }
.credit { font-size: .75rem; color: var(--ink-2); }
.hero-photo .credit { position: absolute; right: 12px; bottom: 8px; z-index: 3;
                      color: rgba(255,255,255,.6); }
.hero-photo .credit a { color: inherit; }

/* ---------- photo tiles ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.photo-tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  text-decoration: none; color: #fff; min-height: 168px; background: var(--surface-2);
  border: 1px solid var(--line);
}
.photo-tile picture { position: absolute; inset: 0; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block;
                  transition: transform .45s ease; }
.photo-tile:hover img { transform: scale(1.06); }
.photo-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,20,18,.12) 30%, rgba(6,20,18,.82) 100%);
}
.photo-tile .label { position: relative; z-index: 2; display: flex; align-items: flex-end;
                     justify-content: space-between; gap: 10px; height: 100%; min-height: 168px;
                     padding: 16px; }
.photo-tile b { font-size: 1.06rem; font-weight: 650; letter-spacing: -.01em;
                text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.photo-tile .count, .photo-tile .n { color: rgba(255,255,255,.88); font-size: .9rem;
                                     text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.photo-tile .n { font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
a.photo-tile:hover { color: #fff; border-color: var(--brand); }

/* Page banner for region and facet pages */
.banner { position: relative; border-radius: var(--radius); overflow: hidden; margin: 0 0 22px;
          min-height: 200px; border: 1px solid var(--line); }
.banner picture { position: absolute; inset: 0; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner::after { content: ""; position: absolute; inset: 0;
                 background: linear-gradient(180deg, rgba(6,20,18,.2), rgba(6,20,18,.72)); }
.banner .banner-text { position: relative; z-index: 2; padding: 22px; min-height: 200px;
                       display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.banner .banner-text .eyebrow { color: rgba(255,255,255,.75); }
.banner h1 { color: #fff; margin: 0; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.banner .credit { position: absolute; right: 10px; top: 8px; z-index: 3; color: rgba(255,255,255,.55); }
.banner .credit a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .photo-tile img { transition: none; }
  .photo-tile:hover img { transform: none; }
}

/* ---------- chain chips ---------- */
/* Distinct hues so a list of three chains is scannable — deliberately none of
   the chains' own brand colours, which would read as their branding. */
.chip {
  /* No text-transform: the chains write themselves "dm", "BIPA" and "Müller",
     and uppercasing turned dm into DM on every card. */
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px; margin-bottom: 8px;
  border: 1px solid transparent; white-space: nowrap;
}
.chip-dm { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand);
           border-color: color-mix(in srgb, var(--brand) 34%, transparent); }
.chip-bipa { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent);
             border-color: color-mix(in srgb, var(--accent) 34%, transparent); }
.chip-mueller { background: color-mix(in srgb, var(--soon) 16%, transparent); color: var(--soon);
                border-color: color-mix(in srgb, var(--soon) 36%, transparent); }
.chip-all { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
h2 .chip, h3 .chip { margin-bottom: 0; vertical-align: middle; margin-right: 6px; }
.no-data { color: var(--ink-2); font-style: italic; }
.result .chip { margin-bottom: 0; margin-right: 6px; }

/* chain filter on the finder */
.chain-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chain-filter label { cursor: pointer; }
.chain-filter input { position: absolute; opacity: 0; width: 0; height: 0; }
.chain-filter span {
  display: inline-block; font-size: .85rem; font-weight: 600; padding: 7px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); user-select: none;
}
.chain-filter input:checked + span { background: var(--brand); color: var(--brand-ink);
                                     border-color: var(--brand); }
.chain-filter input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.hero-photo .chain-filter span { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85);
                                 border-color: rgba(255,255,255,.3); }
.hero-photo .chain-filter input:checked + span { background: #fff; color: var(--ink);
                                                 border-color: #fff; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: inherit; display: block;
}
a.card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .25em; }
.card .count { color: var(--ink-2); font-size: .9rem; }
.tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile .n { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brand); font-size: 1.15rem; }

.store-card { display: grid; gap: 6px; }
.store-card .addr { color: var(--ink-2); font-size: .95rem; }
.store-card .hrs { font-size: .9rem; font-variant-numeric: tabular-nums; }

/* ---------- status ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .92rem; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.status.is-open { color: var(--open); }
.status.is-closed { color: var(--closed); }
.status.is-soon { color: var(--soon); }
.status.is-unknown { color: var(--ink-2); }

/* ---------- badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0; list-style: none; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
  color: var(--ink); text-decoration: none;
}
a.badge:hover { border-color: var(--brand); color: var(--brand); }
.badge svg { width: 15px; height: 15px; flex: none; opacity: .75; }

/* ---------- store page ---------- */
.store-head { padding: 26px 0 4px; }
.eyebrow { font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
           font-weight: 600; margin-bottom: .5em; }
.crumbs { font-size: .86rem; color: var(--ink-2); padding: 14px 0 0; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 6px; opacity: .5; }

.layout { display: grid; gap: 26px; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { margin-top: 0; font-size: 1.18rem; }
.panel h3 { margin-top: 1.6rem; font-size: 1rem; }
.panel > :first-child { margin-top: 0; }

.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours td { text-align: right; }
.hours .today th, .hours .today td { font-weight: 700; color: var(--brand); }
.hours .shut td { color: var(--ink-2); }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.facts svg { width: 20px; height: 20px; margin-top: 2px; color: var(--brand); }
.facts a { font-weight: 600; text-decoration: none; }
.facts a:hover { text-decoration: underline; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }

/* peak times: a pure CSS bar chart, no library */
.peak { display: grid; gap: 14px; }
.peak-day { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: end; }
.peak-day .d { font-size: .8rem; color: var(--ink-2); font-weight: 600; padding-bottom: 4px; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; height: 42px; align-items: end; }
.bars i { background: color-mix(in srgb, var(--brand) 28%, transparent); border-radius: 3px 3px 0 0;
          min-height: 2px; display: block; position: relative; }
.bars i.peak-max { background: var(--accent); }
.bars i.now { outline: 2px solid var(--brand); outline-offset: 1px; }
.peak-scale { display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: .74rem; color: var(--ink-2); }
.peak-scale div { display: flex; justify-content: space-between; }

/* map */
.map-shell { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
             background: var(--surface-2); }
.map { height: 340px; width: 100%; }
.map-big { height: min(72vh, 700px); }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px;
               text-align: center; padding: 24px; background: var(--surface-2); }
.map-consent p { max-width: 42ch; margin: 0; color: var(--ink-2); font-size: .92rem; }
.leaflet-container { font: inherit; background: var(--surface-2); }
.pin { background: var(--brand); color: var(--brand-ink); border-radius: 50% 50% 50% 4px;
       width: 24px; height: 24px; transform: rotate(-45deg); border: 2px solid var(--surface);
       box-shadow: var(--shadow); }

/* neighbours */
.near { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.near a { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; text-decoration: none;
          color: var(--ink); border-bottom: 1px solid var(--line); }
.near li:last-child a { border-bottom: 0; }
.near a:hover { color: var(--brand); }
.near .dist { margin-left: auto; color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: .9rem;
              white-space: nowrap; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq details:last-of-type { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--brand); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* columns for long lists */
.cols { columns: 4 190px; column-gap: 26px; list-style: none; padding: 0; margin: 12px 0; }
.cols li { break-inside: avoid; padding: 3px 0; font-size: .95rem; }
.az { margin: 20px 0; }
.az h3 { font-size: 1rem; color: var(--brand); border-bottom: 2px solid var(--line); padding-bottom: 4px; }

.notice { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
          border-radius: 10px; padding: 14px 16px; font-size: .93rem; color: var(--ink-2); margin: 18px 0; }

/* Data tables for prose (imprint, credits). Not .hours: that one right-aligns
   its values for tabular times, which turns a sentence into a ragged block. */
.datatable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.datatable th, .datatable td { text-align: left; padding: 9px 0; vertical-align: top;
                               border-bottom: 1px solid var(--line); }
.datatable th { font-weight: 600; padding-right: 16px; width: 38%; color: var(--ink-2); }
.datatable td { color: var(--ink); }
.datatable tr:last-child th, .datatable tr:last-child td { border-bottom: 0; }
@media (max-width: 520px) {
  .datatable th, .datatable td { display: block; width: auto; border-bottom: 0; padding: 2px 0; }
  .datatable tr { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); }
}

/* A panel that spans the whole width instead of sitting in the two-column
   grid — for text far longer than its neighbours, which otherwise leaves the
   columns ragged. */
.wide-panel { margin: 20px 0; }
.marks-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
                align-items: start; }
.marks-layout > div p:last-child { margin-bottom: 0; }
@media (max-width: 780px) { .marks-layout { grid-template-columns: 1fr; } }

/* opt-out switch on the privacy page */
.optout { display: inline-flex; align-items: center; gap: 11px; cursor: pointer;
          background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
          padding: 9px 17px 9px 13px; font-weight: 600; font-size: .95rem; }
.optout input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; margin: 0; }
.optout input:disabled { cursor: progress; opacity: .5; }
.optout:hover { border-color: var(--brand); }
.panel ul { padding-left: 1.15rem; margin: 0 0 1rem; }
.panel li { margin-bottom: .45rem; }
.panel code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px;
              font-size: .88em; border: 1px solid var(--line); }

/* footer */
.site-foot { margin-top: 64px; border-top: 1px solid var(--line); background: var(--surface);
             padding: 34px 0 40px; font-size: .92rem; }
.foot-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { color: var(--brand); }
.disclaimer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line);
              color: var(--ink-2); font-size: .84rem; max-width: 78ch; }

section { margin: 34px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
           clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
