@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("vendor/fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("vendor/fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 800; font-display: swap; src: url("vendor/fonts/outfit-latin-800-normal.woff2") format("woff2"); }
:root {
  --bg: #EEF3EC;
  --card: #FFFFFF;
  --ink: #17241D;
  --muted: #4E6157;
  --line: #D5DED7;
  --accent: #1F4D3A;
  --accent-2: #2E6B4A;
  --fox: #E8742A;
  --fox-ink: #17241D;
  --ok: #1F7A45;
  --ok-bg: #E3F3E8;
  --warn: #8A5A00;
  --warn-bg: #FFF2D6;
  --bad: #A3282F;
  --bad-bg: #FBE4E5;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(16, 32, 24, .14), 0 1px 3px rgba(16, 32, 24, .10);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101713; --card: #18221C; --ink: #E7EEE9; --muted: #9AA9A0; --line: #2A3830;
    --accent: #8FD3AE; --accent-2: #8FD3AE; --fox: #F08A3C; --fox-ink: #17241D;
    --ok: #8FE0AE; --ok-bg: #1D3526; --warn: #F2C46B; --warn-bg: #3A2F14; --bad: #F2A0A4; --bad-bg: #3A1D1F;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
#map { position: fixed; inset: 0; }

/* Kopf */
.top { position: fixed; top: 0; left: 0; right: 0; padding: calc(var(--safe-top) + 4px) 12px 0; pointer-events: none; z-index: 5; }
.loc { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 8px 12px 8px 9px; box-shadow: var(--shadow); max-width: 520px; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent) url("icons/icon.svg") center/cover; flex: none; }
.loc-text { min-width: 0; flex: 1; }
.over { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; line-height: 1.2; }
.title { font-weight: 750; font-size: 16px; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stand { flex: none; font-size: 11px; color: var(--muted); text-align: right; line-height: 1.25; font-variant-numeric: tabular-nums; }
.chips { pointer-events: auto; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 12px; margin: 0 -12px; padding-left: 12px; padding-right: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px 0 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 2px 8px rgba(16,32,24,.10); font-size: 14px; font-weight: 600; white-space: nowrap; transition: opacity .15s, transform .1s; }
.chip:active { transform: scale(.96); }
.chip .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--k); }
.chip .ic svg { width: 17px; height: 17px; }
.chip .n { font-weight: 500; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="false"] { opacity: .5; box-shadow: none; }
.chip[aria-pressed="false"] .ic { background: var(--line); color: var(--muted); }

/* Standort-Button */
.fabs { position: fixed; right: 12px; bottom: calc(var(--sheet-h, 150px) + 12px); z-index: 4; display: flex; flex-direction: column; gap: 10px; transition: bottom .28s cubic-bezier(.2,.8,.2,1); }
body.dragging .fabs, body.dragging .maplibregl-ctrl-bottom-left { transition: none; }
.fab { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--accent); }
.fab svg { width: 24px; height: 24px; }
.fab.active { background: var(--accent); color: var(--card); }
#btn-add { background: var(--fox); color: var(--fox-ink); }

/* Unteres Blatt (ziehbar) */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; height: var(--sheet-max, 74vh); background: var(--card); border-radius: 20px 20px 0 0; box-shadow: 0 -6px 24px rgba(16,32,24,.16); padding: 0 16px; display: flex; flex-direction: column; transform: translateY(calc(var(--sheet-max, 74vh) - var(--sheet-h, 150px))); transition: transform .28s cubic-bezier(.2,.8,.2,1); will-change: transform; touch-action: none; }
.sheet.dragging { transition: none; }
@media (min-width: 720px) { .sheet { left: 16px; right: auto; width: 400px; bottom: 16px; height: auto; max-height: 74vh; border-radius: 20px; transform: none; } .fabs { bottom: 24px !important; } }
.grip { padding: 8px 0 4px; width: 100%; display: grid; place-items: center; cursor: grab; touch-action: none; }
.grip span { width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
#sheet-body { overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(var(--safe-bottom) + 12px); touch-action: pan-y; flex: 1; }
.sheet.peek #sheet-body { overflow: hidden; touch-action: none; }
.sheet-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 4px; touch-action: none; }
.sheet-h h2 { font-size: 16px; margin: 0; letter-spacing: -.01em; }
.sheet-h .from { font-size: 12px; color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); text-align: center; padding: 6px 0 2px; }
.row { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 8px 0; cursor: pointer; }
.row:first-of-type { border-top: 0; }
.row .ic, .detail .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--k); flex: none; }
.row .ic svg { width: 19px; height: 19px; }
.row .meta { display: flex; align-items: center; gap: 6px; }
.row .meta .st { flex: none; }
.row .meta .sub { overflow: hidden; text-overflow: ellipsis; }
.row .main { flex: 1; min-width: 0; }
.row .name { font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist { font-variant-numeric: tabular-nums; font-weight: 650; font-size: 14px; color: var(--ink); white-space: nowrap; }
.go { flex: none; width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; }
@media (prefers-color-scheme: dark) { .go { color: #10180F; } }
.go svg { width: 20px; height: 20px; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0 12px; }

/* Status-Chips */
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--line); color: var(--ink); }
.st.ok { background: var(--ok-bg); color: var(--ok); }
.st.warn { background: var(--warn-bg); color: var(--warn); }
.st.bad { background: var(--bad-bg); color: var(--bad); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Detail */
.detail-h { display: flex; gap: 12px; align-items: center; margin: 2px 0 12px; }
.detail .ic { width: 46px; height: 46px; }
.detail .ic svg { width: 25px; height: 25px; }
.detail-h .cat { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.detail-h h2 { margin: 1px 0 0; font-size: 19px; letter-spacing: -.015em; line-height: 1.2; }
.close { margin-left: auto; align-self: flex-start; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg); display: grid; place-items: center; flex: none; }
.close svg { width: 18px; height: 18px; }
.status-line { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.facts { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 550; }
.actions { display: flex; gap: 8px; }
.btn { flex: 1; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-weight: 650; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn svg { width: 20px; height: 20px; }
.btn.primary { flex: 2; background: var(--accent); color: #fff; border-color: transparent; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #10180F; } }
.src { font-size: 11.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.src a { color: inherit; }

/* Karte */
.maplibregl-ctrl-attrib { font-size: 10.5px; }
.maplibregl-ctrl-bottom-left { bottom: var(--sheet-h, 150px); transition: bottom .28s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 720px) { .maplibregl-ctrl-bottom-left { bottom: 0; left: auto; right: 70px; } }

.navpref { font-size: 12px; color: var(--muted); margin-top: 10px; }
.navpref button { border: 0; background: none; padding: 0; color: var(--accent-2); font-weight: 600; font-size: 12px; text-decoration: underline; }

/* Auswahl Navigations-App */
.chooser { position: fixed; inset: 0; z-index: 20; background: rgba(10, 20, 14, .45); display: grid; place-items: end center; padding: 16px 12px calc(var(--safe-bottom) + 16px); }
.chooser[hidden] { display: none; }
.chooser-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 20px; padding: 20px 16px 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.chooser-card h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.chooser-card p { margin: 0 0 6px; font-size: 13.5px; color: var(--muted); }
.chooser-card .btn { flex: none; width: 100%; }
.chooser-card .link { border: 0; background: none; padding: 10px; color: var(--muted); font-weight: 600; }

/* Anbieter-Filter (Paketdienste) */
.chips.prov { padding-top: 0; margin-top: -4px; }
.chips.prov[hidden] { display: none; }
.chip.pv { height: 32px; padding: 0 12px; font-size: 13px; }
.chip.pv[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: transparent; }
@media (prefers-color-scheme: dark) { .chip.pv[aria-pressed="true"] { color: #10180F; } }
.hint a { color: var(--accent-2); font-weight: 600; }

/* Meldungen */
.crosshair { position: fixed; left: 50%; top: var(--cross-y, 40vh); width: 44px; height: 44px; margin: -22px 0 0 -22px; z-index: 3; pointer-events: none; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--accent); }
.crosshair::before { left: 21px; top: 0; width: 2px; height: 44px; }
.crosshair::after { top: 21px; left: 0; height: 2px; width: 44px; }
.crosshair[hidden] { display: none; }
.toast { position: fixed; left: 50%; top: calc(var(--safe-top) + 130px); transform: translateX(-50%); z-index: 30; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast[hidden] { display: none; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.opts .btn { flex: none; min-height: 46px; height: auto; padding: 8px 10px; font-size: 14px; white-space: normal; line-height: 1.2; text-align: center; }
.chooser-card textarea, .chooser-card input[type=text] { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; }
.chooser-card .sec { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }
.cat-pick { display: flex; flex-wrap: wrap; gap: 5px; }
.cat-pick .chip { height: 30px; font-size: 12.5px; gap: 5px; padding: 0 10px 0 3px; box-shadow: none; }
.cat-pick .chip .ic { width: 24px; height: 24px; }
.cat-pick .chip .ic svg { width: 14px; height: 14px; }
.cat-pick .chip[aria-pressed="false"] { opacity: .75; }
.cat-pick .chip[aria-pressed="false"] .ic { background: var(--c); color: var(--k); opacity: .55; }
.cat-pick .chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; opacity: 1; }
.add-h { margin-bottom: 6px; }
.add-h h2 { font-size: 16px; }
.add-sec { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 2px 0 6px; }
.add-row { display: flex; gap: 8px; margin: 10px 0 2px; }
.add-row input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 0 12px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.add-row .btn { flex: none; height: 44px; padding: 0 18px; }
.btn.small { height: 40px; font-size: 14px; }

.zoomhint { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 3; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); pointer-events: none; white-space: nowrap; }
.zoomhint[hidden] { display: none; }

/* Begrüßung */
.welcome { place-items: center; }
.welcome .chooser-card { max-height: 88vh; overflow-y: auto; padding: 22px 18px 14px; }
.welcome-logo { width: 56px; height: 56px; border-radius: 14px; }
.welcome p { color: var(--ink); font-size: 14.5px; line-height: 1.45; margin: 0; }
.welcome-tips { margin: 2px 0 6px; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.welcome-more { text-align: center; font-size: 13px; color: var(--muted); padding: 4px; }
.chooser-card a.btn { text-align: center; text-decoration: none; }
.support-note { text-align: center; font-size: 12.5px !important; color: var(--muted) !important; margin-top: 2px !important; }
.link.inline { padding: 0; font-size: inherit; text-decoration: underline; }
/* Begrüßung in drei Schritten */
.onboard .ob-card { padding: 24px 20px 14px; gap: 0; min-height: 46vh; max-height: 70vh; overflow-y: auto; }
.ob-slide { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.ob-slide[hidden] { display: none; }
.ob-card h2 { font-size: 25px; font-weight: 800; line-height: 1.2; }
.ob-card p { color: var(--ink); font-size: 17.5px; line-height: 1.45; margin: 0; }
.ob-card .ob-sub { color: var(--muted); font-size: 15.5px; }
.ob-badges { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ob-badges li { background: var(--accent); color: var(--card); font-weight: 700; font-size: 15px; padding: 7px 13px; border-radius: 999px; }
.ob-badges li::before { content: "✓ "; color: var(--fox); }
.ob-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: ob; }
.ob-steps li { counter-increment: ob; position: relative; padding-left: 38px; font-size: 17px; line-height: 1.4; }
.ob-steps li::before { content: counter(ob); position: absolute; left: 0; top: -1px; width: 27px; height: 27px; border-radius: 50%; background: var(--fox); color: var(--fox-ink); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.ob-plus { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--fox); color: var(--fox-ink); font-weight: 800; line-height: 1; }
.ob-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.ob-dots { display: flex; gap: 6px; margin-right: auto; }
.ob-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: width .2s; }
.ob-dots span.on { width: 22px; border-radius: 4px; background: var(--accent); }
.ob-foot .btn { flex: none; width: auto; padding: 0 26px; }
.ob-foot .link { flex: none; }
.notdienst { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 10px; padding: 12px 14px; border-radius: 14px; background: #FDECEC; color: #8E1B1B; text-decoration: none; border: 1px solid #F3C4C4; }
.notdienst b { font-size: 15.5px; }
.notdienst span { font-size: 13.5px; text-decoration: underline; }
@media (prefers-color-scheme: dark) { .notdienst { background: #3A1A1A; color: #FFC9C9; border-color: #5A2A2A; } }
