:root {
  --ink: #122329;
  --muted: #627076;
  --paper: #f4f7f4;
  --surface: #ffffff;
  --brand: #ff6046;
  --brand-dark: #de432c;
  --teal: #0d5e5b;
  --line: #dce5e1;
  --shadow: 0 22px 60px rgba(18, 35, 41, .18);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.topbar {
  height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1001;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 1.18rem; font-weight: 850; letter-spacing: -.02em; }
.brand b { color: #d9342b; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 11px 11px 11px 3px; font-weight: 900; transform: rotate(-3deg); }
.topbar-hero { flex: 0 0 auto; width: 94px; height: 54px; margin: 0 auto; object-fit: contain; pointer-events: none; user-select: none; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.region-control { display: flex; align-items: center; gap: 7px; max-width: 150px; padding: 8px 11px; border: 1px solid #cfe0da; border-radius: 100px; color: var(--teal); background: #edf6f3; font-size: .84rem; }
.region-control span { font-size: 1rem; line-height: 1; }
.region-control strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-link { color: var(--teal); text-decoration: none; font-size: .9rem; font-weight: 780; }
.topbar-link:hover { text-decoration: underline; }
.account-button { position: relative; border: 0; background: transparent; color: var(--teal); font-weight: 800; padding: 10px 4px; }
.account-button:not(.signed-in)::after { content: ""; position: absolute; right: 4px; bottom: 3px; left: 4px; height: 3px; border-radius: 999px; background: var(--brand); }
.account-button.signed-in { color: var(--ink); }
.top-logout-button { border: 1px solid #f0c7bf; border-radius: 10px; padding: 9px 12px; color: #a73524; background: #fff5f2; font-weight: 780; }
.live-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.live-label span { width: 8px; height: 8px; background: #2db47d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(45,180,125,.12); }

.button { border: 0; border-radius: 12px; padding: 12px 17px; font-weight: 780; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--brand); color: #fff; box-shadow: 0 7px 18px rgba(255,96,70,.2); }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { background: #e5f3f0; color: var(--teal); }
.button-danger { background: #fff0ed; color: #bd3623; }
.button-quiet { background: #f2f5f4; color: var(--muted); }
.button-wide { width: 100%; padding: 14px 18px; }

.workspace { height: calc(100vh - 76px); display: grid; grid-template-columns: 390px 1fr; overflow: hidden; }
.sidebar { padding: 28px 24px 20px; display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-right: 1px solid var(--line); z-index: 500; }
.eyebrow { margin: 0 0 7px; color: var(--brand-dark); font-size: .74rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.sidebar h1 { margin: 0; max-width: 320px; font-size: clamp(1.65rem, 2.5vw, 2.15rem); line-height: 1.04; letter-spacing: -.045em; }
.sidebar-intro > p:last-child { margin: 12px 0 23px; color: var(--muted); line-height: 1.55; }
.filter-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 12px; border-top: 1px solid var(--line); font-weight: 780; font-size: .91rem; }
.filter-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 5px 4px 5px 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.filter-open > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--teal); background: #e9f3f1; font-size: 1.2rem; }
.filter-open strong, .filter-open small { display: block; }
.filter-open small { margin-top: 2px; color: var(--muted); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 235px; }
.location-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--teal); }
.location-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.request-list { display: flex; flex-direction: column; gap: 10px; min-height: 100px; overflow: auto; padding: 1px 5px 12px 0; }
.request-card { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 15px; transition: border .15s, transform .15s, box-shadow .15s; }
.request-card:hover, .request-card:focus-visible { border-color: #f18c7a; transform: translateY(-1px); box-shadow: 0 7px 22px rgba(18,35,41,.07); outline: none; }
.request-card-top { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.request-card-top strong { display: flex; align-items: center; gap: 7px; }
.card-symbol { font-size: 1.2rem; line-height: 1; }
.card-message { width: 21px; height: 21px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-size: .72rem; box-shadow: 0 2px 7px rgba(18,35,41,.18); }
.reward { display: inline-flex; align-items: center; gap: 5px; color: var(--teal); background: #e8f4f1; border-radius: 100px; padding: 5px 9px; font-weight: 850; white-space: nowrap; font-size: .85rem; }
.reward.sale { color: #155fb5; background: #e5f0ff; }
.reward.paid-help { color: #147943; background: #e5f6eb; }
.reward-none { color: var(--muted); background: #eef2f0; font-weight: 700; }
.money-symbol { width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-size: .72rem; line-height: 1; }
.reward.sale .money-symbol { background: #176bc2; }
.reward.paid-help .money-symbol { background: #16864b; }
.request-card p { margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.request-meta { margin-top: 8px; color: var(--muted); font-size: .78rem; }
.empty-state { padding: 28px 18px; text-align: center; color: var(--muted); border: 1px dashed #c9d8d3; border-radius: 14px; }
.empty-state > span { width: 42px; height: 42px; margin: 0 auto 10px; display: grid; place-items: center; background: #eaf4f1; border-radius: 50%; color: var(--teal); font-size: 1.5rem; }
.empty-state strong { display: block; color: var(--ink); }
.empty-state p { margin: 4px 0 0; font-size: .88rem; }
.sidebar-note { display: flex; gap: 10px; align-items: flex-start; margin-top: auto; padding: 14px; background: #f4f7f4; border-radius: 12px; font-size: .78rem; color: var(--muted); line-height: 1.42; }
.sidebar-note > span { color: var(--teal); font-size: 1rem; }
.sidebar-note p { margin: 0; }

.map-shell { position: relative; min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
#map { position: absolute; inset: 0; width: 100%; height: auto; background: #dce7e3; overflow: hidden; }
.maplibregl-ctrl-attrib { font-size: 10px; }
/* MapLibre positions markers from the map origin; keep them out of normal flow. */
.hero-marker-wrap { width: 42px; height: 46px; padding: 0; margin: 0; background: transparent; border: 0; position: absolute; top: 0; left: 0; }
.hero-marker { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: #fff; border: 4px solid var(--brand); border-radius: 50% 50% 50% 12px; box-shadow: 0 7px 18px rgba(30,54,59,.28); transform: rotate(-45deg); font-size: 1.15rem; font-weight: 900; }
.hero-marker span { transform: rotate(45deg); }
.hero-marker.draft { background: #fff; color: var(--teal); }
.marker-count { position: absolute; right: -9px; top: -8px; min-width: 23px; height: 23px; display: grid; place-items: center; padding: 0 6px; border: 2px solid #fff; border-radius: 99px; color: #fff; background: var(--teal); box-shadow: 0 3px 9px rgba(18,35,41,.25); font-size: .72rem; font-weight: 900; }
.marker-message { position: absolute; left: -8px; top: -8px; width: 23px; height: 23px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--brand); box-shadow: 0 3px 9px rgba(18,35,41,.25); font-size: .7rem; }
.marker-expiring { position: absolute; right: -9px; top: 18px; width: 23px; height: 23px; border: 2px solid #fff; border-radius: 50%; background: #d93636; box-shadow: 0 3px 9px rgba(18,35,41,.25); }
.marker-expiring::before { content: ""; position: absolute; left: 9px; top: 4px; width: 2px; height: 7px; border-radius: 2px; background: #fff; transform-origin: 50% 100%; transform: rotate(0deg); }
.marker-expiring::after { content: ""; position: absolute; left: 9px; top: 9px; width: 6px; height: 2px; border-radius: 2px; background: #fff; transform-origin: 0 50%; transform: rotate(32deg); }
.marker-money { position: absolute; left: -8px; bottom: 0; width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #16864b; box-shadow: 0 3px 9px rgba(18,35,41,.25); font-size: .77rem; font-weight: 900; }
.marker-money.sale { background: #176bc2; }
.map-hint { position: absolute; z-index: 600; left: 50%; top: 20px; transform: translateX(-50%); padding: 10px 15px; background: rgba(18,35,41,.9); color: #fff; border-radius: 100px; font-size: .82rem; font-weight: 700; pointer-events: none; box-shadow: 0 10px 30px rgba(18,35,41,.2); }
.mobile-create { display: none; }
.mobile-account { display: none; }
.mobile-filter { display: none; }
.cookie-banner[hidden] { display: none; }
#map.map-loading-error::after { content: "Einige Kartenfelder laden noch …"; position: absolute; z-index: 500; right: 16px; bottom: 82px; padding: 8px 11px; border-radius: 9px; background: rgba(255,255,255,.92); color: var(--muted); font-size: .78rem; box-shadow: 0 7px 20px rgba(18,35,41,.12); }

.dialog { border: 0; padding: 0; width: min(560px, calc(100vw - 28px)); max-height: calc(100vh - 28px); background: transparent; overflow: visible; }
.dialog[open] { position: fixed; inset: 0; z-index: 2500; margin: auto; }
.dialog-open::before { content: ""; position: fixed; inset: 0; z-index: 2400; background: rgba(9,28,34,.64); backdrop-filter: blur(4px); }
.dialog::backdrop { background: rgba(9,28,34,.64); backdrop-filter: blur(4px); }
.dialog-card { position: relative; overflow: auto; max-height: calc(100vh - 28px); padding: 30px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.dialog-card-small { width: min(430px, 100%); margin: auto; }
.dialog-close { position: absolute; right: 16px; top: 14px; width: 38px; height: 38px; border: 0; background: #edf3f1; color: var(--ink); border-radius: 50%; font-size: 1.5rem; line-height: 1; }
.dialog h2 { margin: 0; font-size: 1.75rem; letter-spacing: -.035em; }
.dialog-copy { color: var(--muted); line-height: 1.5; margin: 8px 0 20px; }
.dialog label { display: block; margin: 15px 0 0; font-size: .86rem; font-weight: 780; }
.duration-output { display: block; margin-top: 7px; color: var(--teal); font-size: .82rem; font-weight: 800; }
.dialog input, .dialog textarea, .dialog select { width: 100%; margin-top: 7px; border: 1px solid #cfdad6; border-radius: 11px; padding: 12px 13px; color: var(--ink); background: #fbfcfb; outline: none; }
.dialog input:focus, .dialog textarea:focus, .dialog select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,94,91,.11); }
.dialog input[type="file"] { padding: 9px; }
.dialog textarea { min-height: 104px; resize: vertical; line-height: 1.45; }
.dialog label small { display: block; color: var(--muted); font-weight: 500; margin-top: 6px; }
.captcha-field { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f4f8f6; }
.captcha-field > strong { display: block; margin-top: 8px; color: var(--teal); font-size: 1.08rem; }
.field-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.category-fieldset { border: 0; margin: 18px 0 0; padding: 0; }
.category-fieldset legend { font-size: .86rem; font-weight: 780; margin-bottom: 9px; }
.category-menu { border: 1px solid var(--line); border-radius: 13px; background: #fbfcfb; overflow: hidden; }
.category-menu summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 11px 42px 11px 13px; cursor: pointer; list-style: none; color: var(--muted); font-size: .78rem; }
.category-menu summary::-webkit-details-marker { display: none; }
.category-menu summary::after { content: "⌄"; position: absolute; right: 14px; top: 50%; transform: translateY(-53%); color: var(--teal); font-size: 1.35rem; font-weight: 900; transition: transform .18s ease; }
.category-menu[open] summary::after { transform: translateY(-47%) rotate(180deg); }
.category-menu summary strong { color: var(--ink); font-size: .88rem; text-align: right; }
.category-menu[open] summary { border-bottom: 1px solid var(--line); background: #f4f8f6; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.category-menu .category-grid { padding: 10px; max-height: min(390px, 48vh); overflow-y: auto; background: #fff; }
.category-grid label { margin: 0; cursor: pointer; }
.category-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.category-grid span { min-height: 63px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 7px 4px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; color: var(--muted); text-align: center; font-size: .72rem; }
.category-grid b { font-size: 1.25rem; line-height: 1; }
.category-grid input:checked + span { border-color: var(--brand); color: var(--ink); background: #fff3ef; box-shadow: 0 0 0 2px rgba(255,96,70,.12); }
.category-grid input:focus-visible + span { outline: 3px solid rgba(13,94,91,.2); }
.place-tabs, .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 14px; background: #edf3f1; border-radius: 12px; }
.place-tabs button, .auth-tabs button { border: 0; padding: 10px 12px; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 780; }
.place-tabs button.active, .auth-tabs button.active { background: #fff; color: var(--teal); box-shadow: 0 2px 8px rgba(18,35,41,.09); }
.owner-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 44px 16px 0; background: #edf3f1; border-radius: 12px; }
.owner-tabs button { border: 0; padding: 10px 12px; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 780; }
.owner-tabs button.active { background: #fff; color: var(--teal); box-shadow: 0 2px 8px rgba(18,35,41,.09); }
.owner-tabs span { margin-left: 4px; color: var(--brand); }
.address-panel { margin-bottom: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.address-panel label { margin-top: 0; }
.address-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.address-search input { min-width: 0; }
.address-search .button { white-space: nowrap; }
.detail-address { margin: -6px 0 18px; color: var(--muted); font-size: .88rem; }
.contact-note { display: block; margin-top: 8px; text-align: center; color: var(--muted); }
.contact-fieldset { margin: 17px 0 0; padding: 0; border: 0; }
.contact-fieldset legend { margin-bottom: 8px; font-size: .86rem; font-weight: 780; }
.contact-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.contact-choice-grid label { margin: 0; cursor: pointer; }
.contact-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.contact-choice-grid span { display: block; min-height: 88px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.contact-choice-grid b, .contact-choice-grid small { display: block; }
.contact-choice-grid small { margin-top: 5px; color: var(--muted); font-weight: 500; line-height: 1.35; }
.contact-choice-grid input:checked + span { border-color: var(--teal); background: #edf6f3; box-shadow: 0 0 0 2px rgba(13,94,91,.09); }
.contact-choice-grid input:focus-visible + span { outline: 3px solid rgba(13,94,91,.18); outline-offset: 2px; }
.contact-choice-grid input:disabled + span { cursor: not-allowed; opacity: .58; }
.whatsapp-link { display: block; text-align: center; text-decoration: none; }
.selected-place { display: flex; gap: 12px; align-items: center; background: #edf6f3; color: var(--teal); padding: 12px 14px; border-radius: 12px; }
.selected-place > span:first-child { font-size: 1.35rem; }
.selected-place strong, .selected-place small { display: block; }
.selected-place small { margin-top: 2px; color: #59726e; }
.check-label { display: flex !important; align-items: flex-start; gap: 10px; color: var(--muted); line-height: 1.42; font-weight: 550 !important; }
.check-label[hidden] { display: none !important; }
.check-label input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal); flex: 0 0 auto; }
.sale-check { padding: 12px 13px; border: 1px solid #cfe0da; border-radius: 12px; background: #f7faf9; }
.sale-check strong, .sale-check small { display: block; }
.sale-check strong { color: var(--ink); }
.sale-check small { margin-top: 3px !important; }
.form-error { min-height: 22px; margin: 10px 0 5px; color: #bd3623; font-size: .85rem; }
.detail-description { margin: 18px 0; font-size: 1.08rem; line-height: 1.55; white-space: pre-wrap; }
.detail-image { display: block; width: 100%; max-height: 310px; margin: 18px 0 0; border-radius: 14px; object-fit: cover; background: var(--paper); }
.detail-stats { display: flex; gap: 10px; margin-bottom: 18px; }
.detail-stat { flex: 1; padding: 12px; border-radius: 12px; background: #f0f5f3; }
.detail-stat small, .detail-stat strong { display: block; }
.detail-stat small { color: var(--muted); margin-bottom: 3px; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-actions > .button { align-self: start; }
.detail-share { margin-top: 10px; }
.tag-message-action { display: grid; gap: 6px; }
.tag-message-action p { margin: 0; color: var(--muted); font-size: .82rem; text-align: center; }
.tag-switcher { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 8px; margin: -8px 44px 18px 0; padding: 6px; background: #edf3f1; border-radius: 12px; text-align: center; }
.tag-switcher button { width: 38px; height: 34px; border: 0; border-radius: 8px; background: #fff; color: var(--teal); font-size: 1.45rem; line-height: 1; box-shadow: 0 2px 7px rgba(18,35,41,.08); }
.tag-switcher strong { font-size: .85rem; }
.phone-reveal { padding: 13px; border: 1px solid var(--line); background: #fff; border-radius: 12px; margin-bottom: 12px; }
.phone-reveal small { display: block; color: var(--muted); }
.phone-reveal a { color: var(--teal); font-weight: 850; text-decoration: none; }
.text-button { display: block; border: 0; margin: 16px auto 0; color: var(--muted); background: none; text-decoration: underline; font-size: .8rem; }
.detail-edit { margin-top: 10px; }
.message-unavailable { padding: 9px; }
.filter-location { padding: 11px 13px; margin: 15px 0; border-radius: 10px; color: var(--muted); background: #f1f5f3; font-size: .82rem; line-height: 1.4; }
.filter-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 9px; margin-top: 18px; }
.location-detect { display: flex; align-items: center; justify-content: center; gap: 8px; }
.location-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.location-divider::before, .location-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.messages-dialog { width: min(900px, calc(100vw - 28px)); }
.messages-card { min-height: min(650px, calc(100vh - 28px)); display: flex; flex-direction: column; overflow: hidden; }
.messages-heading { padding-right: 44px; }
.messages-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 280px 1fr; gap: 14px; }
.conversation-list { min-height: 0; overflow: auto; padding-right: 4px; border-right: 1px solid var(--line); }
.conversation-card { width: 100%; padding: 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.conversation-card:hover { background: #f4f8f6; }
.conversation-card > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conversation-card b { min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 6px; border-radius: 99px; color: #fff; background: var(--brand); font-size: .7rem; }
.conversation-card small { display: block; margin: 4px 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-card p { margin: 0; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-thread { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.thread-heading { padding: 3px 4px 12px; border-bottom: 1px solid var(--line); }
.thread-heading strong, .thread-heading small { display: block; }
.thread-heading small { margin-top: 3px; color: var(--muted); }
.message-stream { flex: 1; min-height: 230px; max-height: 390px; overflow: auto; padding: 15px 5px; }
.message-bubble { width: fit-content; max-width: 82%; margin: 0 auto 9px 0; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: #edf3f1; }
.message-bubble.mine { margin-left: auto; margin-right: 0; color: #fff; background: var(--teal); border-radius: 14px 4px 14px 14px; }
.message-bubble small, .message-bubble time { display: block; font-size: .68rem; opacity: .7; }
.message-bubble p { margin: 4px 0; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; padding-top: 11px; border-top: 1px solid var(--line); }
.message-form textarea { min-height: 64px; max-height: 130px; margin: 0; }
.message-form .form-error { grid-column: 1 / -1; margin: 0; min-height: 0; }
.message-form-owner { grid-template-columns: 130px 1fr auto; }
.message-form-owner label { margin: 0; }
.message-form-owner input, .message-form-owner textarea { margin: 5px 0 0; }
.loading-copy { color: var(--muted); text-align: center; }
.empty-state.compact { padding: 18px 12px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 3000; transform: translate(-50%, 30px); opacity: 0; padding: 12px 17px; color: #fff; background: var(--ink); border-radius: 10px; box-shadow: var(--shadow); transition: .2s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.cookie-banner { position: fixed; z-index: 4000; left: 20px; right: 20px; bottom: 20px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 22px; max-width: 980px; margin: 0 auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 55px rgba(18,35,41,.25); }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; margin-bottom: 4px; }
.cookie-banner p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.cookie-banner .button { white-space: nowrap; }

.info-page { height: auto; min-height: 100%; background: #f4f7f4; }
.info-page .topbar { position: sticky; top: 0; }
.info-page .topbar .button { text-decoration: none; }
.how-page { width: min(900px, calc(100% - 36px)); margin: 0 auto; padding: 72px 0 64px; }
.how-hero { max-width: 720px; margin-bottom: 38px; }
.how-hero h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 4.25rem); line-height: .98; letter-spacing: -.055em; }
.how-hero > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.how-steps { display: grid; gap: 14px; }
.how-steps article { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(18,35,41,.05); }
.how-steps article > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px 14px 14px 4px; color: #fff; background: var(--brand); font-size: 1.15rem; font-weight: 900; }
.how-steps h2 { margin: 1px 0 7px; font-size: 1.2rem; }
.how-steps p { margin: 0; color: var(--muted); line-height: 1.55; }
.how-safety { margin-top: 22px; padding: 22px 24px; border-radius: 16px; color: #fff; background: var(--teal); }
.how-safety strong { font-size: 1.05rem; }
.how-safety p { margin: 7px 0 0; line-height: 1.55; opacity: .86; }
.how-actions { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.how-actions .button { display: inline-block; text-decoration: none; }
.legal-inline-link, .legal-navigation a { color: var(--teal); font-weight: 780; }
.legal-page { width: min(760px, calc(100% - 36px)); margin: 0 auto; padding: 72px 0 64px; }
.legal-page h1 { margin: 0 0 28px; font-size: clamp(2.3rem, 6vw, 4rem); letter-spacing: -.05em; }
.legal-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(18,35,41,.05); }
.legal-card h2 { margin: 0 0 18px; font-size: 1.2rem; }
.imprint-logo { display: block; width: min(360px, 100%); height: auto; margin: 0 0 28px; }
.legal-card address { color: var(--muted); font-style: normal; font-size: 1.05rem; line-height: 1.7; }
.legal-card address strong { color: var(--ink); }
.legal-card + .legal-card { margin-top: 18px; }
.legal-card p, .legal-card li { color: var(--muted); line-height: 1.65; }
.legal-card a, .cookie-banner a { color: var(--teal); font-weight: 750; }
.legal-card h3 { margin: 22px 0 8px; }
.legal-warning { padding: 12px 14px; border: 1px solid #efb4a9; border-radius: 10px; color: #8d2f21 !important; background: #fff2ef; }
.legal-navigation { display: flex; gap: 20px; margin-top: 24px; }

@media (max-width: 800px) {
  .topbar { height: 64px; padding: 0 15px; }
  .topbar .button, .live-label { display: none; }
  .topbar-hero { display: none; }
  .topbar-actions { gap: 9px; }
  .region-control { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .region-control strong { display: none; }
  .topbar-link-how, .topbar-link-privacy, .account-button { display: none; }
  .top-logout-button { padding: 8px 10px; font-size: .8rem; }
  .workspace { position: relative; height: calc(100dvh - 64px); display: block; }
  .sidebar { position: absolute; z-index: 610; left: 12px; right: 12px; bottom: 82px; width: auto; max-height: 170px; padding: 0; border: 0; background: transparent; pointer-events: none; }
  .sidebar-intro, .sidebar .filter-row, .sidebar-note { display: none; }
  .request-list { flex-direction: row; min-height: 0; overflow-x: auto; overflow-y: hidden; padding: 6px 2px 10px; scroll-snap-type: x proximity; pointer-events: auto; }
  .request-card { min-width: min(310px, 82vw); scroll-snap-align: start; box-shadow: 0 8px 26px rgba(18,35,41,.16); }
  .request-list > .empty-state { min-width: min(310px, 82vw); background: #fff; }
  .map-shell { width: 100%; height: 100%; }
  .map-hint { width: max-content; max-width: calc(100vw - 30px); text-align: center; top: 14px; }
  .mobile-create { display: block; position: absolute; z-index: 600; left: 50%; bottom: 25px; transform: translateX(-50%); border: 0; border-radius: 14px; padding: 14px 20px; color: #fff; background: var(--brand); font-weight: 850; box-shadow: 0 12px 30px rgba(18,35,41,.28); }
  .mobile-account { display: block; position: absolute; z-index: 600; right: 14px; top: 68px; border: 1px solid var(--line); border-radius: 100px; padding: 9px 13px; background: rgba(255,255,255,.95); color: var(--teal); font-weight: 800; box-shadow: 0 7px 20px rgba(18,35,41,.12); }
  .mobile-filter { display: block; position: absolute; z-index: 600; right: 14px; top: 114px; border: 1px solid var(--line); border-radius: 100px; padding: 9px 13px; background: rgba(255,255,255,.95); color: var(--teal); font-weight: 800; box-shadow: 0 7px 20px rgba(18,35,41,.12); }
  .dialog-card { padding: 26px 20px 22px; border-radius: 18px; }
  .contact-choice-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .address-search { grid-template-columns: 1fr; }
  .detail-actions { grid-template-columns: 1fr; }
  .messages-card { min-height: calc(100dvh - 28px); }
  .messages-layout { grid-template-columns: 1fr; overflow: auto; }
  .conversation-list { max-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .message-stream { min-height: 210px; max-height: none; }
  .message-form-owner { grid-template-columns: 1fr; }
  .filter-actions { grid-template-columns: 1fr; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; grid-template-columns: 1fr; gap: 13px; padding: 16px; }
  .cookie-banner .button { width: 100%; }
  .how-page { padding: 44px 0 48px; }
  .how-steps article { grid-template-columns: 42px 1fr; gap: 13px; padding: 19px; }
  .how-steps article > span { width: 40px; height: 40px; border-radius: 11px 11px 11px 3px; }
  .how-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .legal-page { padding: 44px 0 48px; }
  .legal-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


.discussion-option{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.discussion-option input{width:auto;flex:0 0 auto}
.discussion-option small{flex-basis:100%;font-weight:400}
.discussion{margin-top:24px;padding-top:20px;border-top:1px solid #ddd}
.discussion h3{margin:0 0 8px}
.comment-list{max-height:360px;overflow-y:auto;margin:16px 0;overscroll-behavior:contain}
.comment{padding:12px 0;border-bottom:1px solid #eee}
.comment header{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}
.comment time{font-size:.8rem;color:#666}
.comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
.discussion form{display:grid;gap:10px}
.discussion textarea{width:100%;box-sizing:border-box;resize:vertical}

.tag-votes{margin:20px 0}
.vote-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:8px}
.vote-buttons button{flex:1;min-width:145px;gap:6px}
.vote-buttons button[aria-pressed="true"]{background:#fff0d9;border-color:#a34d00;color:#713500;box-shadow:inset 0 0 0 1px #a34d00}
.vote-buttons strong{font-variant-numeric:tabular-nums}
.tag-votes small{display:block}
.tag-votes .form-error:empty{display:none}

.custom-category-icon{width:24px;height:24px;object-fit:contain;vertical-align:middle}
.hero-marker .custom-category-icon{width:26px;height:26px}
[data-custom-category-box]{margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:12px}

.detail-description a { color: #a63d00; text-decoration: underline; overflow-wrap: anywhere; }

/* Administration */
.admin-entry[hidden]{display:none!important}@media(max-width:760px){.admin-entry:not([hidden]){display:inline-flex!important;position:fixed;right:12px;bottom:84px;z-index:20;box-shadow:0 3px 12px #0002}}

/* Mitmachaktionen: separates Abzeichen unter dem Pin, frei von Preis/Uhr/Zähler. */
.marker-participants{position:absolute;left:50%;top:48px;transform:translateX(-50%);display:flex;align-items:center;gap:4px;min-width:40px;padding:3px 7px;border:2px solid #fff;border-radius:99px;background:#175c50;color:#fff;box-shadow:0 2px 7px #0003;font-size:12px;white-space:nowrap;pointer-events:none}
.marker-participants svg{width:19px;height:19px;fill:currentColor;flex-shrink:0}.tag-participation{padding:16px;margin:14px 0;border:1px solid #bbd9d0;background:#f1faf6;border-radius:14px}.tag-participation small{display:block;margin-top:10px;line-height:1.5}.tag-participation [aria-pressed=true]{background:#175c50;color:white}.group-activity-option{padding:12px;border:1px solid #bbd9d0;border-radius:10px;background:#f1faf6}.group-activity-option small{display:block}

.tag-participation [hidden]{display:none!important}

/* Articles and full, uncropped photos */
#create-form textarea[name="description"],#edit-form textarea[name="description"]{min-height:260px;resize:vertical;line-height:1.6}
#detail-dialog{width:min(860px,calc(100vw - 24px));max-width:860px}#detail-dialog .dialog-card{width:100%;max-width:none}
.detail-description{overflow-wrap:anywhere;line-height:1.7}
.detail-photo-button{position:relative;display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;text-align:center;margin-top:18px}.detail-photo-button .detail-image{margin:0;object-fit:contain;max-height:380px}.detail-photo-button>span{display:inline-block;padding:8px 12px;color:var(--teal);font-weight:700}.detail-photo-button:focus-visible{outline:3px solid var(--teal);outline-offset:4px}
.photo-viewer{width:calc(100vw - 24px);height:calc(100dvh - 24px);max-width:none;max-height:none;padding:12px;border:0;border-radius:14px;background:#102027;color:white;overflow:hidden}.photo-viewer::backdrop{background:#000d}.photo-viewer[open]{display:flex;flex-direction:column;gap:10px}.photo-viewer-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:20px;flex:0 0 42px}.photo-viewer-toolbar a{color:white;text-decoration:underline}.photo-viewer-toolbar button{color:white;background:#ffffff20;border:0;border-radius:8px;width:42px;height:42px;font-size:30px;cursor:pointer}#photo-full{display:block;min-height:0;flex:1;width:100%;height:calc(100% - 52px);object-fit:contain}

/* Anzeigearten und auf zehn Einträge begrenzte Ergebnisseiten */
#create-form label[hidden],#edit-form label[hidden],#filter-form label[hidden],.tag-pagination[hidden]{display:none!important}
.tag-pagination{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:12px 0;flex-shrink:0;border-top:1px solid var(--line);font-size:12px}.tag-pagination button{padding:9px 7px;border:0;border-radius:8px;color:var(--teal);background:#e5f3f0;cursor:pointer;font-weight:700}.tag-pagination button:disabled{opacity:.4;cursor:default}.tag-pagination span{text-align:center}.listing-type-badge{background:#eef1f8;color:#344767}

/* Group related tag settings without changing form behavior. */
.tag-form-section{margin:20px 0;padding:18px 0 0;border-top:1px solid var(--line)}
.tag-form-section h3{font-size:1rem;margin:0 0 14px;color:var(--ink)}
.category-group-title{grid-column:1/-1;margin:12px 0 4px;font-size:.82rem;color:var(--ink)}
.category-group-title:first-child{margin-top:2px}
.tag-form-section, .tag-form-section fieldset{min-width:0} .tag-form-section select,.tag-form-section input,.tag-form-section textarea{max-width:100%}
.contact-choice-grid label{position:relative}.contact-choice-grid input{width:1px;height:1px;padding:0;margin:0}

/* Compact preview beside a map tag, also available by keyboard focus. */
.tag-preview{position:fixed;z-index:1000;box-sizing:border-box;display:flex;align-items:stretch;gap:16px;width:430px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;padding:10px;background:#fff;color:var(--ink,#20363b);border:1px solid #dce5e3;border-radius:16px;box-shadow:0 8px 28px rgba(30,54,59,.22);text-align:left;font-size:14px;line-height:1.4}
.tag-preview-photo{display:block;flex:0 0 110px;width:110px;height:140px;object-fit:cover;background:#f3f6f5;border-radius:12px}
.tag-preview-content{flex:1;min-width:0;padding:2px 0}
.tag-preview-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;margin:0 0 10px;font-size:19px;font-weight:800;line-height:1.25}
.tag-preview-row{display:flex;align-items:flex-start;gap:8px;margin-top:6px;color:var(--muted,#778186);font-size:14px;overflow-wrap:anywhere}
.tag-preview-row>span:last-child{min-width:0}
.tag-preview-icon{flex:0 0 20px;color:#ff681e}
.tag-preview-icon svg{display:block;width:20px;height:20px}
.tag-preview-hint{display:block;margin-top:8px;color:var(--muted);font-size:11px}
@media(max-width:480px){.tag-preview{gap:10px}.tag-preview-photo{flex-basis:85px;width:85px;height:125px}.tag-preview-title{font-size:17px}.tag-preview-row{font-size:12px;gap:6px}}


/* Responsive layout: content-driven header, tablets and compact phones. */
body:not(.info-page) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.topbar { height: auto; min-height: 76px; flex: 0 0 auto; flex-wrap: wrap; gap: 12px 20px; padding: 12px 24px; }
.brand { min-width: 0; max-width: 100%; }
.brand > span:last-child { overflow-wrap: anywhere; }
.brand-mark { flex-shrink: 0; }
.topbar-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; min-width: 0; }
.topbar-actions > * { max-width: 100%; }
.workspace { flex: 1; height: auto; min-height: 0; grid-template-columns: clamp(300px, 30vw, 390px) minmax(0, 1fr); }
body:has(> .workspace) { height: 100vh; height: 100dvh; }
.sidebar { overflow: auto; }
.sidebar-intro, .filter-row, .sidebar-note { flex-shrink: 0; }
.filter-open > span:last-child { min-width: 0; }
.filter-open small { max-width: 100%; }
.request-card, .empty-state, .legal-card, .how-steps article { overflow-wrap: anywhere; }
.request-card-top { flex-wrap: wrap; gap: 8px; }
.dialog, .dialog-card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
.dialog-card { overscroll-behavior: contain; }
.dialog h2 { padding-right: 36px; overflow-wrap: anywhere; }
.dialog input, .dialog textarea, .dialog select { min-width: 0; font-size: 16px; }
.dialog fieldset, .dialog label, .category-grid > *, .messages-layout > * { min-width: 0; }
.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-grid label span { overflow-wrap: anywhere; }
.message-form { grid-template-columns: minmax(0, 1fr) auto; }
.message-form-owner { grid-template-columns: 110px minmax(0, 1fr) auto; }
.toast { max-width: calc(100% - 24px); overflow-wrap: anywhere; text-align: center; }
.cookie-banner { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; bottom: max(12px, env(safe-area-inset-bottom)); }
.legal-navigation { flex-wrap: wrap; }
.info-page .topbar .button { display: inline-flex; }
.tag-preview { max-height: calc(100dvh - 16px); }
@media (min-width: 801px) and (max-width: 1200px) {
  .topbar-hero { display: none; }
  .topbar-actions { flex: 1 1 100%; justify-content: flex-start; }
  .sidebar { padding: 20px 16px; }
  .sidebar-intro > p:last-child { font-size: .9rem; margin-bottom: 14px; }
  .sidebar h1 { font-size: 1.7rem; }
}
@media (max-width: 800px) {
  .topbar { min-height: 64px; padding: 10px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left)); gap: 8px; }
  .brand { font-size: 1rem; flex: 1 1 180px; }
  .brand-mark { width: 32px; height: 32px; }
  .topbar-actions { flex: 1 1 100%; justify-content: flex-start; gap: 4px 12px; }
  .topbar-link-how, .topbar-link-privacy { display: inline-flex; }
  .topbar-link { font-size: .78rem; align-items: center; min-height: 44px; }
  .topbar-actions .admin-entry:not([hidden]) { display: inline-flex !important; position: static; font-size: .8rem; padding: 10px; }
  .region-control { width: 44px; height: 44px; flex-shrink: 0; }
  .workspace { height: auto; }
  .sidebar { bottom: calc(76px + env(safe-area-inset-bottom)); max-height: min(220px, 45%); overflow: visible; }
  .request-list { flex: 1 1 auto; }
  .request-card, .request-list > .empty-state { flex: 0 0 min(310px, 82vw); min-width: 0; }
  .tag-pagination { pointer-events: auto; padding: 4px 8px; background: #fff; border-radius: 10px; box-shadow: 0 4px 16px #12232920; }
  .tag-pagination button { min-height: 44px; }
  .mobile-create { bottom: calc(20px + env(safe-area-inset-bottom)); min-height: 44px; white-space: nowrap; }
  .mobile-account, .mobile-filter { min-height: 44px; }
  .mobile-account { top: 72px; }
  .mobile-filter { top: 122px; }
  .map-hint { font-size: .75rem; max-width: calc(100% - 90px); padding: 8px 12px; }
  .message-form-owner { grid-template-columns: 1fr; }
  .messages-card { min-height: 0; }
  .dialog-close { width: 44px; height: 44px; right: 10px; top: 10px; }
  .info-page .topbar { position: relative; }
}
@media (max-width: 480px) {
  .dialog-card { padding: 24px 16px 18px; }
  .dialog h2 { font-size: 1.45rem; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-menu summary { flex-wrap: wrap; gap: 8px; }
  .message-form { grid-template-columns: minmax(0, 1fr); }
  .how-steps article { grid-template-columns: minmax(0, 1fr); }
  .legal-card { padding: 18px; }
  .legal-page h1 { font-size: clamp(1.8rem, 9vw, 2.5rem); overflow-wrap: anywhere; }
}
@media (max-height: 540px) and (max-width: 950px) and (orientation: landscape) {
  .topbar { padding-top: 4px; padding-bottom: 4px; min-height: 52px; }
  .topbar-actions { flex: 1 1 360px; }
  .sidebar-intro, .sidebar-note { display: none; }
  .sidebar { max-height: 55%; }
  .workspace .sidebar { padding-top: 0; }
  .map-hint { display: none; }
  .mobile-account { top: 10px; }
  .mobile-filter { top: 60px; }
  .sidebar .request-card { padding: 10px; }
  .sidebar .request-card p { -webkit-line-clamp: 1; }
}
@media (pointer: coarse) {
  .button, .account-button, .top-logout-button, .location-button, .text-button { min-height: 44px; }
}
/* Preserve application visibility flags even on flex/grid controls. */
[hidden] { display: none !important; }
.map-hint { max-width: calc(100% - 90px); text-align: center; overflow-wrap: anywhere; }
@media (max-height: 540px) and (max-width: 800px) and (orientation: landscape) {
  .sidebar { right: auto; width: min(310px, 48%); }
  .request-card, .request-list > .empty-state { flex-basis: 100%; }
}

.own-location-marker { width: 36px; height: 36px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: #1677c8; box-shadow: 0 2px 10px #12232955; font-size: 26px; line-height: 1; cursor: default; z-index: 2; }
.own-location-marker:focus-visible { outline: 3px solid #122329; outline-offset: 3px; }

.detail-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-right: 36px; }
.detail-heading h2 { flex: 1 1 220px; padding-right: 0; }
.detail-type-filter { flex: 0 0 auto; padding: 9px 14px; font-size: .85rem; }

.reward.service { background: #e9e4fa; color: #604398; }
.marker-money.service { background: #604398; }
