:root {
  --navy: #003049;
  --navy-2: #0b3d57;
  --red: #d62828;
  --orange: #f77f00;
  --gold: #fcbf49;
  --cream: #eae2b7;
  --bg: #f6f0dc;
  --card: #fffdf5;
  --line: #e4dbb8;
  --muted: #5d6b73;
  --ok: #2f9e44;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 48, 73, .06), 0 4px 14px rgba(0, 48, 73, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--navy);
  background: #e9e1c2;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(0, 48, 73, .12);
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
}
.app.no-nav { padding-bottom: 0; }

/* Demo-Banner */
.demo-banner {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: calc(6px + env(safe-area-inset-top)) 16px 6px;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.demo-banner .pill { background: var(--gold); color: var(--navy); border-radius: 99px; padding: 1px 8px; font-weight: 800; }

.view { padding: 0 16px 24px; }
.view.flush { padding: 0 0 24px; }

/* Typo */
h1 { font-size: 30px; line-height: 1.08; margin: 8px 0 16px; font-weight: 800; letter-spacing: -.02em; }
h1 .red, .red { color: var(--red); }
h2 { font-size: 17px; margin: 24px 0 10px; font-weight: 800; display: flex; justify-content: space-between; align-items: baseline; }
h2 .more { font-size: 13px; color: var(--red); font-weight: 700; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.eyebrow.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.tiny { font-size: 11.5px; color: var(--muted); }

/* Top bar */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 4px; }
.viertel-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 99px;
  padding: 8px 14px; font-size: 14px; font-weight: 700;
}
.viertel-pill svg { width: 16px; height: 16px; color: var(--red); }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.icon-btn svg { width: 20px; height: 20px; }
.badge {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px;
  border-radius: 99px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px;
  border: 2px solid var(--bg);
}

/* Search */
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1.5px solid var(--navy); border-radius: 99px;
  padding: 11px 16px;
}
.search svg { width: 18px; height: 18px; flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; }
.search input::placeholder { color: #8a979d; }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 2px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; white-space: nowrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 99px;
  padding: 8px 14px; font-size: 13.5px; font-weight: 700;
}
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.off { opacity: .45; }
.chip svg { width: 13px; height: 13px; vertical-align: -1px; margin-right: 4px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.event-card { flex: none; width: 210px; overflow: hidden; scroll-snap-align: start; text-align: left; }
.event-card img { width: 100%; height: 112px; object-fit: cover; }
.event-card .body { padding: 10px 12px 12px; }
.event-card .t { font-weight: 800; font-size: 14.5px; margin: 3px 0 2px; }

.brett-teaser {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--gold); border-radius: var(--radius); padding: 14px 16px; margin-top: 18px;
}
.brett-teaser .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(0,48,73,.1); display: grid; place-items: center; flex: none; }
.brett-teaser .ic svg { width: 20px; height: 20px; }
.brett-teaser .t { font-weight: 800; }
.brett-teaser .chev { margin-left: auto; width: 18px; height: 18px; flex: none; }

.row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px; margin-bottom: 10px;
}
.row .thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: var(--cream); }
.row .thumb.ph { display: grid; place-items: center; color: var(--muted); }
.row .thumb.ph svg { width: 26px; height: 26px; }
.row .mid { min-width: 0; flex: 1; }
.row .t { font-weight: 800; font-size: 15px; margin: 2px 0 1px; }
.row .chev { width: 18px; height: 18px; flex: none; color: var(--muted); }
.tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; background: var(--cream); color: var(--navy); border-radius: 6px; padding: 2px 6px; }
.tag.gold { background: var(--gold); }
.tag.navy { background: var(--navy); color: #fff; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 5px; vertical-align: 1px; }
.dot.closed { background: #b9b3a0; }
.new-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }

/* Bottom nav */
.nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 40;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.nav a svg { width: 22px; height: 22px; }
.nav a.on { color: var(--red); }

/* Suchaufträge */
.search-teaser { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; margin-top: 12px; border: 1.5px dashed var(--navy); background: var(--card); }
.search-teaser .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.search-teaser .ic svg { width: 20px; height: 20px; }
.search-teaser .t { font-weight: 800; }
.save-search { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 6px; border-left: 4px solid var(--red); }
.save-search.on { border-left-color: var(--ok); }
.save-search .mid { flex: 1; min-width: 0; }
.save-search .t { font-weight: 800; }
.save-search .mini-btn { white-space: nowrap; }
.save-search .mini-btn:not(.on) { background: var(--red); border-color: var(--red); color: #fff; }
.save-search .mini-btn.on { background: var(--ok); border-color: var(--ok); color: #fff; }
h3.sub { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.add-search { display: flex; gap: 8px; }
.add-search .field { flex: 1; min-width: 0; }
.add-search .btn { width: 50px; flex: none; padding: 0; }
.add-search .btn svg { width: 20px; height: 20px; }
.search-row { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; margin-top: 10px; }
.search-row .mid { flex: 1; min-width: 0; }
.search-row .t { font-weight: 800; font-size: 15px; }
.btn.link.inline { width: auto; }

/* Teilen, Einkaufsliste, Veranstaltungsseite */
.offer-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.offer-actions .mini-btn { background: var(--card); }
.offer-actions .mini-btn.on { background: var(--navy); color: #fff; }
.ev-btns { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.share-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; text-decoration: none; padding: 6px 0; }
.share-btn .b { width: 56px; height: 56px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; }
.share-btn .b svg { width: 24px; height: 24px; }
.share-btn .b.wa { background: #25d366; border-color: #25d366; color: #fff; }
h2 button.more { font: inherit; font-size: 13px; color: var(--red); font-weight: 700; }
.list-group { padding: 4px 0; margin-bottom: 10px; overflow: hidden; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.list-head .chev { width: 18px; height: 18px; color: var(--muted); flex: none; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; }
.list-item + .list-item { border-top: 1px dashed var(--line); }
.check { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--navy); flex: none; display: grid; place-items: center; }
.check.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.check svg { width: 16px; height: 16px; }
.li-t { flex: 1; min-width: 0; text-decoration: none; font-weight: 700; font-size: 14.5px; display: flex; flex-direction: column; }
.list-item.done .li-t { text-decoration: line-through; opacity: .55; }
.li-x { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); flex: none; }
.li-x svg { width: 16px; height: 16px; }
.public-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 14px; text-decoration: none; border: 1.5px solid var(--navy); }
.public-card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.public-card .ic svg { width: 20px; height: 20px; }
.public-card .t { font-weight: 800; }
.public-card .chev { width: 18px; height: 18px; color: var(--muted); flex: none; margin-left: auto; }

/* Profile */
.hero { position: relative; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: 100%; height: 250px; object-fit: cover; scroll-snap-align: start; }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
.gallery-dots span.on { background: #fff; }
.float-btn {
  position: absolute; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,253,245,.95); display: grid; place-items: center; box-shadow: var(--shadow);
}
.float-btn svg { width: 20px; height: 20px; }
.float-btn.left { left: 14px; }
.float-btn.right { right: 14px; }
.float-btn.on { background: var(--red); color: #fff; }
.placeholder-hero { height: 150px; margin: 64px 16px 0; border-radius: var(--radius); background: var(--cream); display: grid; place-items: center; color: #b3a679; }
.placeholder-hero svg { width: 48px; height: 48px; }

.p-head { padding: 16px 16px 0; }
.p-head h1 { font-size: 27px; margin: 4px 0 4px; }
.actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 16px 16px 4px; }
.actions.n3 { grid-template-columns: repeat(3, 1fr); }
.actions.n4 { grid-template-columns: repeat(4, 1fr); }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; }
.act .b { width: 52px; height: 52px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow); }
.act .b svg { width: 22px; height: 22px; }
.act.primary .b { background: var(--red); border-color: var(--red); color: #fff; }
.hint { text-align: center; font-size: 11.5px; color: var(--muted); padding: 4px 24px 0; }

.section { padding: 0 16px; }
.section h3 { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.offer { display: flex; gap: 12px; align-items: center; background: var(--gold); border-radius: var(--radius); padding: 12px; }
.offer img { width: 68px; height: 68px; object-fit: cover; border-radius: 12px; flex: none; }
.offer .t { font-weight: 800; font-size: 16px; }
.event-row { display: flex; gap: 12px; align-items: center; padding: 12px; }
.datebox { width: 50px; height: 54px; border-radius: 12px; background: var(--red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1; }
.datebox .d { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.datebox .n { font-size: 21px; font-weight: 800; margin-top: 3px; }
.event-row .mid { flex: 1; min-width: 0; }
.event-row .t { font-weight: 800; }
.mini-btn { font-size: 12.5px; font-weight: 800; border: 1.5px solid var(--navy); border-radius: 99px; padding: 6px 12px; flex: none; }
.mini-btn.on { background: var(--navy); color: #fff; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; }
.switch { width: 50px; height: 30px; border-radius: 99px; background: #cfc7a8; position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--navy); }
.switch.on::after { transform: translateX(20px); }

.about { padding: 14px; font-size: 14.5px; }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours td { padding: 4px 0; }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 800; }

.claim { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px; margin-top: 20px; }
.claim .t { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.claim p { font-size: 13.5px; margin: 0 0 14px; opacity: .9; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border-radius: 12px; padding: 14px; font-weight: 800; font-size: 15.5px; text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn.red { background: var(--red); color: #fff; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.ghost { border: 1.5px solid var(--navy); }
.btn.link { padding: 10px; font-weight: 700; color: var(--muted); }

/* Onboarding */
.onb { padding: 0 20px 28px; }
.onb-hero { position: relative; margin: 0 -20px; padding: 20px 20px 22px; background: linear-gradient(180deg, rgba(246,240,220,.86), rgba(246,240,220,.97)), url("img/viertel-1.jpg") center/cover; border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.logo svg { width: 24px; height: 24px; }
.logo .o { color: var(--orange); }
.onb h1 { font-size: 34px; margin: 22px 0 10px; }
.onb label.q { display: block; font-weight: 800; margin: 22px 0 10px; font-size: 15px; }
.note-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.note-box svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--navy); }

/* Anfrage */
.form-head { display: flex; align-items: center; gap: 12px; padding: 16px 0 6px; }
.form-head .icon-btn { flex: none; }
textarea { width: 100%; min-height: 110px; border: 1.5px solid var(--navy); border-radius: 12px; padding: 12px; background: var(--card); resize: vertical; font-size: 15px; outline: 0; }
.preview-box { background: var(--cream); border-radius: var(--radius); padding: 14px; font-size: 13.5px; margin-top: 18px; }
.preview-box table { width: 100%; border-collapse: collapse; }
.preview-box td { padding: 3px 0; vertical-align: top; }
.preview-box td:first-child { color: var(--muted); width: 90px; }
.field { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--card); font-size: 15px; outline: 0; }
.field:focus, textarea:focus { border-color: var(--navy); }

/* Brett */
.post { padding: 14px; margin-bottom: 12px; }
.post img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.post .t { font-weight: 800; font-size: 16px; margin: 6px 0 4px; }
.post .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.post .meta a { font-weight: 800; font-size: 13px; color: var(--red); text-decoration: none; }

/* Karte */
.map-wrap { position: relative; margin-top: 12px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #efe8cc; }
.map-wrap svg.map { display: block; width: 100%; height: auto; }
.pin { cursor: pointer; }
.map-card { margin-top: 12px; }

/* Treuekarte */
.loyalty { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px; }
.stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.stamp { aspect-ratio: 1; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: var(--navy); }
.stamp svg { width: 16px; height: 16px; }
.stamp.empty { background: transparent; border: 2px dashed rgba(255,255,255,.4); }
.stamp.gift { background: transparent; border: 2px dashed var(--gold); color: var(--gold); font-size: 10px; font-weight: 800; }

/* Info */
.info-list { margin: 0; padding: 0; list-style: none; }
.info-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.ok { color: var(--ok); }
.later { color: var(--orange); }

/* Modal + Toast */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(0, 32, 50, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal { width: 100%; max-width: 480px; background: var(--card); border-radius: 20px 20px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); animation: up .2s; }
.modal .t { font-weight: 800; font-size: 18px; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.modal .t .tag { flex: none; }
.modal p { margin: 0 0 16px; font-size: 15px; }
.modal .btns { display: grid; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; width: calc(100% - 32px); max-width: 448px; background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: up .25s; }
.toast svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 1px; }
.toast .t { font-weight: 800; font-size: 14px; }
.toast .s { font-size: 13px; opacity: .9; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translate(var(--tx, 0), 30px); opacity: 0; } }
.toast { --tx: -50%; }

.empty { text-align: center; padding: 28px 16px; color: var(--muted); font-size: 14px; }
.empty svg { width: 34px; height: 34px; margin: 0 auto 8px; opacity: .6; }
.footer-links { display: flex; justify-content: center; gap: 16px; padding: 22px 0 6px; font-size: 12.5px; }
.footer-links a { color: var(--muted); }
.spacer { height: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.nav a { position: relative; }
.nav-badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--card); }
.toast-link { margin-left: auto; align-self: center; font-size: 13px; font-weight: 800; color: var(--gold); white-space: nowrap; padding-left: 8px; }
.install-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 8px 12px 14px; margin-top: 12px; border: 1.5px solid var(--gold); background: #fff8e1; }
.install-card .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--gold); display: grid; place-items: center; flex: none; }
.install-card .ic svg { width: 20px; height: 20px; }
.install-card .mid { flex: 1; min-width: 0; }
.install-card .t { font-weight: 800; }
.inst-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.inst-head img { border-radius: 12px; box-shadow: var(--shadow); }
.inst-steps { list-style: none; margin: 0 0 14px; padding: 0; }
.inst-steps li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.inst-steps li:last-child { border-bottom: 0; }
.inst-steps .n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; flex: none; }
.ios-share { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--cream); color: #007aff; vertical-align: -7px; }
.ios-share svg { width: 17px; height: 17px; }
.ios-arrow { display: flex; justify-content: center; color: var(--red); animation: bob 1.1s ease-in-out infinite; margin-top: 4px; }
.ios-arrow svg { width: 34px; height: 34px; }
@keyframes bob { 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .ios-arrow { animation: none; } }

/* Heute-Stories */
.stories { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story-b { flex: 0 0 68px; text-align: center; text-decoration: none; color: var(--navy); }
.story-b .ring { display: block; width: 68px; height: 68px; border-radius: 50%; border: 3px solid var(--red); padding: 2px; background: #fff; box-sizing: border-box; }
.story-b .ring.seen { border-color: #c9c2a0; }
.story-b .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.story-b .n { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 700; line-height: 1.15; }
.story { position: fixed; inset: 0; z-index: 60; max-width: 480px; margin: 0 auto; background: #16222a; color: #fff; overflow: hidden; }
.story .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.story .shade-t { position: absolute; left: 0; right: 0; top: 0; height: 160px; background: linear-gradient(#000000b0, #0000); }
.story .shade-b { position: absolute; left: 0; right: 0; bottom: 0; height: 420px; background: linear-gradient(#0000, #000000e0 72%); }
.story .tap { position: absolute; top: 90px; bottom: 270px; width: 40%; z-index: 2; }
.story .tap.l { left: 0; } .story .tap.r { right: 0; }
.story .bars { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; }
.story .bars span { flex: 1; height: 3px; border-radius: 2px; background: #ffffff55; overflow: hidden; }
.story .bars span.done i { display: block; width: 100%; height: 100%; background: #fff; }
.story .bars span.now i { display: block; width: 0; height: 100%; background: #fff; animation: sfill 7s linear forwards; }
@keyframes sfill { to { width: 100%; } }
.story .s-head { position: absolute; top: calc(26px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; z-index: 4; }
.story .av { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.story .who { flex: 1; display: flex; flex-direction: column; line-height: 1.2; color: #fff; text-decoration: none; min-width: 0; }
.story .who b { font-size: 15px; } .story .who span { font-size: 12px; opacity: .85; }
.story .x { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #fff; }
.story .x svg { width: 22px; height: 22px; }
.story .s-foot { position: absolute; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 4; }
.story .tagline { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--gold); }
.story .title { font-size: 27px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin-top: 4px; }
.story .sub { font-size: 14px; opacity: .92; margin-top: 8px; }
.story .s-btns { display: flex; gap: 10px; margin-top: 16px; }
.story .s-btn { flex: 1; height: 52px; border-radius: 26px; border: 1.5px solid #ffffff88; background: #ffffff26; color: #fff; font: inherit; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.story .s-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.story .s-btn.sq { flex: 0 0 52px; }
.story .s-btn.red { background: var(--red); border-color: var(--red); }
.story .s-btn.on { background: #fff; color: var(--red); border-color: #fff; }
.story .s-btn.on svg { fill: var(--red); }
.story .note { margin-top: 10px; text-align: center; font-size: 11.5px; opacity: .72; }

/* ---------- Notdienst & Gastro (v1.8) ---------- */
.nd-teaser { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--red); color: #fff; border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; text-decoration: none; }
.nd-teaser.small-nd { width: auto; margin: 14px 16px 0; }
.nd-teaser .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.nd-teaser .ic svg { width: 20px; height: 20px; }
.nd-teaser .t { font-weight: 800; }
.nd-teaser .chev { margin-left: auto; width: 18px; height: 18px; flex: none; }
.nd-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; margin: 10px 0 4px; }
.nd-back svg { width: 16px; height: 16px; }
.nd-card { padding: 14px 16px; margin-top: 10px; }
.nd-card.later { opacity: .6; }
.nd-card .t { font-weight: 800; font-size: 15.5px; margin-top: 2px; }
.nd-live { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; background: #2a7d4f; color: #fff; border-radius: 6px; padding: 3px 7px; }
.nd-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 8px; }
.nd-prices div { background: var(--cream); border-radius: 10px; padding: 8px 10px; font-size: 12px; color: var(--navy); }
.nd-prices b { display: block; font-size: 15px; margin-top: 2px; }
.nd-btns { display: flex; gap: 8px; }
.nd-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: 12px; font-weight: 800; font-size: 14px; border: 1px solid var(--line); background: var(--card); color: var(--navy); text-decoration: none; }
.nd-btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.nd-btn svg { width: 16px; height: 16px; }
.nd-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.nd-row:last-child { border-bottom: 0; }
.nd-row b { min-width: 78px; }
.pickup { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 16px 0; padding: 10px 12px; border-radius: 12px; background: var(--gold); font-size: 13px; font-weight: 800; color: var(--navy); }
.pickup svg { width: 16px; height: 16px; }
.lunch { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.lunch .t { font-weight: 800; }
.lunch-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; flex: none; color: var(--red); }
.lunch-ic svg { width: 20px; height: 20px; }
.lunch-price { font-weight: 800; font-size: 16px; color: var(--red); flex: none; }

/* ---------- Kategorien als Raster ---------- */
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; margin: 16px 0 4px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--navy); background: none; border: 0; padding: 0; }
.cat .b { width: 52px; height: 52px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow); }
.cat .b svg { width: 24px; height: 24px; }
.cat.on .b { background: var(--navy); border-color: var(--navy); color: #fff; }
.cat .l { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 88px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }

/* ---------- Profil & Mitgliedskarte ---------- */
.me-head { display: flex; gap: 14px; align-items: center; margin: 16px 0 14px; }
.me-av { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.member { background: var(--navy); border-radius: 20px; padding: 16px 16px 18px; color: #fff; box-shadow: var(--shadow); }
.member-top { display: flex; justify-content: space-between; align-items: center; }
.member .logo { font-size: 18px; }
.member-qr { background: #fff; border-radius: 14px; padding: 14px; width: 210px; height: 210px; margin: 14px auto 10px; }
.member-qr svg { width: 100%; height: 100%; display: block; }
.member-code { text-align: center; font-weight: 800; letter-spacing: .12em; font-size: 15px; }
.member-name { text-align: center; font-size: 12px; color: rgba(255,255,255,.75); margin-top: 2px; }
.me-list a, .me-list > div { display: flex; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); font-size: 14.5px; }
.me-list > :last-child { border-bottom: 0; }
.me-list b { font-weight: 800; }
.nav { grid-template-columns: repeat(5, 1fr) !important; }

.loyalty .stamps { display: flex; flex-wrap: wrap; gap: 8px; }
.loyalty .stamp { width: 30px; height: 30px; aspect-ratio: auto; }
.loyalty .stamp svg { width: 14px; height: 14px; }

.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 14px 0 2px; }

.ring-head { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 14px 2px 8px; }
button.more { background: none; border: 0; padding: 0; cursor: pointer; }


/* ---------- Echte Karte ---------- */
.bigmap-wrap { position: relative; margin-top: 12px; }
.bigmap { height: 300px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #eef0ea; }
.mapcount { position: absolute; left: 10px; top: 10px; background: var(--card); border-radius: 99px; padding: 4px 10px; font-size: 12px; box-shadow: var(--shadow); color: var(--navy); }
.minimap { height: 150px; margin: 14px 16px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #eef0ea; cursor: pointer; }
.map-pin { width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.map-pin svg { width: 100%; height: 100%; transform: rotate(-45deg); }
.map-pin path { fill: #8a979d; }
.map-pin.open path { fill: var(--red); }
.maplibregl-ctrl-attrib { font-size: 10px; }
.map-home { display: flex; align-items: center; justify-content: center; color: var(--navy); }

.real-note { display: flex; gap: 10px; align-items: flex-start; margin: 12px 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.45; color: var(--navy); }
.real-note svg { width: 18px; height: 18px; flex: none; color: #2a7d4f; margin-top: 1px; }

/* Gästeseite */
.g-top { display: flex; align-items: center; justify-content: space-between; }
.g-lang { display: flex; gap: 6px; }
.g-lang .chip { padding: 6px 12px; }
.g-hero { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px 16px 16px; margin-top: 8px; }
.g-hero .eyebrow { color: var(--gold); }
.g-hero h1 { font-size: 25px; line-height: 1.15; margin: 6px 0 8px; color: #fff; }
.g-hero h1 .red { color: var(--gold); }
.g-hero .small { color: rgba(255,255,255,.85); }
.g-btns { display: grid; gap: 8px; margin-top: 14px; }
.g-btns .btn svg { width: 18px; height: 18px; }
.g-btns .btn.ghost { border-color: #fff; color: #fff; }
.g-why { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 8px; }
.g-why .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; flex: none; }
.g-why .ic svg { width: 19px; height: 19px; }
.g-why .t { font-weight: 800; }
.g-sights { padding: 4px 16px; }
.g-sight { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.g-sight:last-child { border-bottom: 0; }
.g-sight span { color: var(--muted); }
.g-trust { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; font-weight: 700; }
.g-trust svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 1px; }
.g-hotel { padding: 14px 16px; margin-top: 14px; border: 1.5px dashed var(--navy); background: transparent; }
.g-hotel .t { font-weight: 800; margin-bottom: 4px; }
.g-teaser { margin: 10px 0 0; }
