/* Wuseltipps – Designsystem: warm, ruhig, erwachsen. Fraunces (Überschriften) + Plus Jakarta Sans (Text). */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  /* Farben */
  --cream: #FBF7F1;
  --sand: #F6E7D3;
  --paper: #FFFFFF;
  --ink: #1E2B27;
  --ink-2: #56635E;
  --line: #EAE1D3;
  --line-strong: #D9CCB8;
  --accent: #B03B21;           /* 4,5:1 auch auf hellgrauen Flächen (WCAG AA) */
  --accent-hover: #96311B;
  --accent-fill: #B03B21;      /* Hintergrund unter weißer Schrift */
  --accent-fill-hover: #96311B;
  --accent-soft: #FBE6DD;
  --forest: #2F5D50;
  --forest-soft: #DDE9E1;
  --butter: #FFC14D;
  --danger: #B42318;
  /* Typo */
  --f-display: "Fraunces", Georgia, serif;
  --f-text: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-xs: .8125rem; --t-sm: .9375rem; --t-md: 1rem; --t-lg: 1.125rem; --t-xl: 1.375rem; --t-2xl: 1.75rem; --t-3xl: 2.5rem; --t-4xl: 3.5rem;
  /* Abstände (4er-Raster) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  /* Formen */
  --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(30, 43, 39, .06), 0 2px 8px rgba(30, 43, 39, .05);
  --shadow-2: 0 4px 12px rgba(30, 43, 39, .08), 0 16px 32px rgba(30, 43, 39, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-text); font-size: var(--t-md); line-height: 1.55; color: var(--ink); background: var(--cream); padding-bottom: 84px; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 var(--s3); }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }
p { margin: 0 0 var(--s3); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); z-index: 100; }
.skip:focus { left: var(--s2); top: var(--s2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Icons (Sprite) */
.ic { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic.lg { width: 24px; height: 24px; }
.ic.sm { width: 16px; height: 16px; }

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--header-h); display: flex; align-items: center; gap: var(--s5); padding: 0 var(--s4); background: rgba(251, 247, 241, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: baseline; gap: 1px; text-decoration: none; color: var(--forest); }
/* Logo: Blume aus sechs Pins (je Kategorie-Gruppe eine Farbe) vor dem Schriftzug in Fredoka */
.brand { align-items: center; gap: 8px; }
.brand img { width: 32px; height: 32px; display: block; }
.brand span { font-family: "Fredoka", var(--f-text); font-weight: 600; font-size: 1.625rem; letter-spacing: 0; line-height: 1; }
.brand:hover { color: var(--forest); }
.top-nav { display: none; gap: var(--s1); }
.top-nav a { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s4); border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--t-sm); transition: background .15s; }
.top-nav a:hover { background: var(--sand); color: var(--ink); }
.top-nav a[aria-current="page"] { background: var(--forest-soft); color: var(--forest); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.top-actions .btn { display: none; }
.avatar-btn { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--ink); font-weight: 600; font-size: var(--t-sm); padding: var(--s1); padding-right: var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); }
.avatar-btn:hover { box-shadow: var(--shadow-1); color: var(--ink); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #fff; font-weight: 700; font-size: var(--t-sm); flex: 0 0 auto; }
.avatar.ghost { background: var(--sand); color: var(--ink); }

/* Untere Navigation (mobil) */
.tabbar { position: fixed; left: var(--s3); right: var(--s3); bottom: calc(var(--s3) + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; justify-content: space-around; height: 64px; background: var(--paper); border-radius: var(--r-pill); box-shadow: var(--shadow-2); padding: 0 var(--s2); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ink-2); font-size: .6875rem; font-weight: 600; padding: var(--s1) 0; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar a.fab { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-fill); color: #fff; justify-content: center; margin: 0 var(--s2); box-shadow: 0 6px 16px rgba(176, 59, 37, .35); }
.tabbar a.fab .ic { width: 26px; height: 26px; stroke-width: 2.2; }

main { max-width: 1240px; margin: 0 auto; padding: var(--s4) var(--s4) var(--s7); outline: none; }
.narrow { max-width: 720px; margin: 0 auto; }

/* ---------- Bausteine ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: var(--r-pill); border: 1.5px solid var(--accent-fill); background: var(--accent-fill); color: #fff; font-weight: 700; font-size: var(--t-md); cursor: pointer; text-decoration: none; transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s; white-space: nowrap; }
.btn:hover { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); color: #fff; }
.btn:active { transform: scale(.98); }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn.dark:hover { background: #33433E; border-color: #33433E; }
.btn.forest { background: var(--forest); border-color: var(--forest); }
.btn.forest:hover { background: #244A40; }
.btn.outline { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn.outline:hover { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sand); color: var(--ink); }
.btn.danger { background: var(--paper); color: var(--danger); border-color: #EBC5C0; }
.btn.danger:hover { background: #FDF1EF; color: var(--danger); }
.btn.sm { min-height: 40px; padding: 0 var(--s4); font-size: var(--t-sm); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-1); transition: transform .15s var(--ease); }
.icon-btn:hover { transform: scale(1.06); }
.icon-btn[aria-pressed="true"] { color: var(--accent); }
.icon-btn[aria-pressed="true"] .ic { fill: var(--accent); }

.card { background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: var(--s5); }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-sm); }
.eyebrow { font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); margin-bottom: var(--s2); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s6); }
.error { color: var(--danger); font-weight: 600; margin: 0; }
.error:empty { display: none; }
.pre { white-space: pre-line; }

.chip { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4); border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--paper); font-weight: 600; font-size: var(--t-sm); cursor: pointer; white-space: nowrap; color: var(--ink); transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips { display: flex; gap: var(--s2); overflow-x: auto; padding: 2px 2px var(--s2); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.tag { display: inline-flex; align-items: center; gap: var(--s1); padding: 2px var(--s3); border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 700; background: var(--forest-soft); color: var(--forest); }
.tag.sand { background: var(--sand); color: #6B4A1F; }
.tag.demo { background: #EEE8DC; color: #5C5448; }
.stars { display: inline-flex; align-items: center; gap: var(--s1); font-weight: 700; color: var(--ink); white-space: nowrap; }
.stars .ic { color: #D08A00; fill: #F5B400; stroke: #D08A00; }

/* Formularfelder */
label.field { display: block; }
label.field > span { display: block; font-weight: 700; font-size: var(--t-sm); margin-bottom: var(--s2); }
label.field .hint { font-weight: 500; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=month], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4); border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper); font-size: var(--t-md); transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #BFAF97; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(47, 93, 80, .18); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231E2B27' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.checks { display: flex; flex-wrap: wrap; gap: var(--s2); }
.checks label { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4); border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); font-weight: 600; font-size: var(--t-sm); cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--forest); background: var(--forest-soft); color: var(--forest); }
.checks input { accent-color: var(--forest); width: 18px; height: 18px; margin: 0; }

/* ---------- Startseite: Hero ---------- */
.hero { display: grid; gap: var(--s5); align-items: center; padding: var(--s4) 0 var(--s5); }
.hero h1 { font-size: 2.5rem; margin-bottom: var(--s3); }
.hero h1 em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--accent); font-weight: 500; }
.hero .lead { font-size: var(--t-lg); color: var(--ink-2); max-width: 34ch; margin-bottom: var(--s5); }
.hero > * { min-width: 0; }

.searchbar { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: var(--s2); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
.searchbar > * { min-width: 0; max-width: 100%; }
.sb-field { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s4); border-radius: var(--r-md); min-height: 60px; cursor: pointer; border: 0; background: none; text-align: left; width: 100%; transition: background .15s; }
.sb-field:hover, .sb-field:focus-within { background: var(--cream); }
.sb-field .ic { color: var(--forest); }
.sb-field small { display: block; font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.sb-field strong, .sb-field select, .sb-field input { display: block; font-weight: 600; font-size: var(--t-md); }
.sb-field > div { flex: 1; min-width: 0; }
.sb-field select, .sb-field input { border: 0; padding: 0; min-height: 0; background-color: transparent; width: 100%; box-shadow: none !important; background-position: right 0 center; cursor: pointer; }
.sb-field input { cursor: text; }
.sb-field select:focus, .sb-field input:focus { outline: none; }
.sb-field strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchbar .btn { min-height: 56px; border-radius: var(--r-md); }

.quick { margin-top: var(--s4); }

/* Kategorien */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s3); margin: var(--s6) 0 var(--s4); }
.section-head h2 { margin: 0; }
.cats { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: var(--s3); overflow-x: auto; padding: 2px 2px var(--s3); scrollbar-width: none; scroll-snap-type: x mandatory; }
.cats::-webkit-scrollbar { display: none; }
.cat-tile { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s4) var(--s2); border-radius: var(--r-md); border: 2px solid transparent; background: var(--c-bg); color: var(--c-fg); cursor: pointer; font-weight: 700; font-size: var(--t-sm); transition: transform .18s var(--ease), border-color .15s; }
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile .bubble { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .7); }
.cat-tile .bubble .ic { width: 28px; height: 28px; }
.cat-tile[aria-pressed="true"] { border-color: var(--c-fg); box-shadow: inset 0 0 0 1px var(--c-fg); }

/* Kategorie-Farben */
/* Kategorie-Farben = Blütenblätter des Logos (sechs Gruppen) */
[data-cat=spielplatz], [data-cat=ausflug] { --c-bg: #DDEFE5; --c-fg: #226348; --c-dot: #2F7D5F; }
[data-cat=baden] { --c-bg: #DBEFF3; --c-fg: #136277; --c-dot: #1F8FA8; }
[data-cat=kurs], [data-cat=verein] { --c-bg: #E0EAF6; --c-fg: #2B5C93; --c-dot: #3A74B5; }
[data-cat=kultur], [data-cat=event] { --c-bg: #EAE2F4; --c-fg: #5E3C8F; --c-dot: #7C57AE; }
[data-cat=restaurant] { --c-bg: #F8E0D8; --c-fg: #983319; --c-dot: #B03B21; }
[data-cat=geburtstag] { --c-bg: #F9DFE8; --c-fg: #A53A5E; --c-dot: #D2557A; }
[data-cat=alle]       { --c-bg: var(--sand); --c-fg: var(--ink); --c-dot: #E5CFAF; }

/* Ergebnisse */
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin: var(--s6) 0 var(--s4); }
.results-bar h2 { margin: 0; font-size: var(--t-xl); }
.results-bar .controls { display: flex; gap: var(--s2); align-items: center; width: 100%; }
.results-bar .controls select { flex: 1; min-width: 0; }
.results-bar select { width: auto; min-height: 40px; padding: 0 40px 0 var(--s4); border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 600; }
.view-toggle { display: inline-flex; background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); padding: 3px; }
.view-toggle button { display: inline-flex; align-items: center; gap: var(--s1); min-height: 34px; padding: 0 var(--s3); border: 0; border-radius: var(--r-pill); background: none; cursor: pointer; font-weight: 600; font-size: var(--t-sm); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.more-filters { margin-top: var(--s3); }
.more-filters[hidden] { display: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: var(--s3); }
.grid > * { min-width: 0; }
.layout { display: block; }
.layout > * { min-width: 0; }
.layout .map-col { display: none; }
.layout.show-map .list-col { display: none; }
.layout.show-map .map-col { display: block; }
#map, .minimap { height: 64vh; min-height: 360px; border-radius: var(--r-lg); overflow: hidden; background: #E7E0D2; }
.minimap { height: 260px; min-height: 0; border-radius: var(--r-md); }

/* Angebotskarte: kompakte Zeile mit kleinem Vorschaubild */
.l-card { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: var(--s4); align-items: start; padding: var(--s3); text-decoration: none; color: inherit; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-1); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.l-card:hover { color: inherit; box-shadow: var(--shadow-2); transform: translateY(-1px); }
.thumb { width: 104px; height: 104px; border-radius: var(--r-sm); background: var(--c-bg); color: var(--c-fg); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.thumb .ic { width: 40px; height: 40px; stroke-width: 1.6; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.lg { width: 64px; height: 64px; }
.thumb.lg .ic { width: 32px; height: 32px; }
.l-card .fav { width: 40px; height: 40px; box-shadow: none; background: var(--cream); }
.l-card .body { padding-top: 2px; min-width: 0; }
.l-card .meta-top { font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c-fg); display: flex; gap: 6px; align-items: center; margin-bottom: 2px; white-space: nowrap; overflow: hidden; }
.l-card .meta-top span:first-child { overflow: hidden; text-overflow: ellipsis; }
.l-card .meta-top span + span { flex: 0 0 auto; }
.l-card .meta-top span + span { color: var(--ink-2); }
.l-card h3 { font-size: 1.125rem; margin: 0 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.l-card .provider { font-size: var(--t-sm); color: var(--ink-2); margin: 0 0 var(--s2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts-inline { display: flex; flex-wrap: wrap; gap: 6px var(--s3); font-size: var(--t-sm); color: var(--ink); align-items: center; }
.facts-inline > span { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-width: 0; }
.facts-inline .ic { width: 15px; height: 15px; color: var(--ink-2); }
.facts-inline .price { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-mini { padding: 2px var(--s2); border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 700; }
.chip-mini.date { background: var(--accent-soft); color: var(--accent-hover); }
.chip-mini.date .ic { color: var(--accent-hover); width: 13px; height: 13px; }
.chip-mini.free { background: var(--forest-soft); color: var(--forest); }
.title-row { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s3); }
.title-row h1 { margin: 0; }
@media (max-width: 480px) { .title-row .thumb.lg { width: 52px; height: 52px; } .title-row .thumb.lg .ic { width: 26px; height: 26px; } }
@media (max-width: 480px) {
  .l-card { grid-template-columns: 84px minmax(0, 1fr) auto; gap: var(--s3); }
  .l-card .thumb { width: 84px; height: 84px; }
  .l-card .thumb .ic { width: 32px; height: 32px; }
}

/* Illustriertes Cover (wenn kein Foto) */
.cover { position: relative; overflow: hidden; background: var(--c-bg); display: grid; place-items: center; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::before, .cover::after { content: ""; position: absolute; border-radius: 50%; background: var(--c-dot); opacity: .55; }
.cover::before { width: 62%; aspect-ratio: 1; right: -14%; bottom: -24%; }
.cover::after { width: 22%; aspect-ratio: 1; left: 9%; top: 12%; opacity: .45; }
.cover.has-photo::before, .cover.has-photo::after { display: none; }
.cover .art { position: relative; z-index: 1; width: 34%; max-width: 120px; aspect-ratio: 1; color: var(--c-fg); transform: rotate(-8deg); }
.cover .art .ic { width: 100%; height: 100%; stroke-width: 1.4; }
.cover .badge { position: absolute; left: var(--s3); top: var(--s3); z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px var(--s3); border-radius: var(--r-pill); background: var(--paper); font-size: var(--t-xs); font-weight: 700; box-shadow: var(--shadow-1); }
.cover .badge .ic { width: 14px; height: 14px; color: var(--accent); }
.cover .badge.free { left: auto; right: var(--s3); top: auto; bottom: var(--s3); background: var(--forest-bg, var(--forest)); color: #fff; }

/* Community-Band */
.band { margin: var(--s7) 0 0; border-radius: var(--r-lg); background: var(--forest); color: #fff; padding: var(--s6) var(--s5); display: grid; gap: var(--s4); position: relative; overflow: hidden; }
.band h2 { color: #fff; font-size: var(--t-2xl); max-width: 18ch; }
.band p { color: #D9E6DF; max-width: 46ch; margin: 0; }
.band::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -80px; top: -90px; background: #3F7A62; }
.band > * { position: relative; z-index: 1; }
.band .btn { justify-self: start; background: var(--butter); border-color: var(--butter); color: var(--ink); }
.band .btn:hover { background: #FFD27A; border-color: #FFD27A; }

.empty { text-align: center; padding: var(--s7) var(--s5); }
.empty .art { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto var(--s4); display: grid; place-items: center; background: var(--sand); color: var(--forest); }
.empty .art .ic { width: 32px; height: 32px; }
.empty p { max-width: 42ch; margin: 0 auto var(--s5); }

/* ---------- Detailseite ---------- */
.back { display: inline-flex; align-items: center; gap: var(--s1); font-weight: 600; color: var(--ink); text-decoration: none; margin-bottom: var(--s4); }
.back:hover { color: var(--accent); }
.detail-cover { aspect-ratio: 16 / 9; border-radius: var(--r-lg); margin-bottom: var(--s5); }
.detail-cover .art { width: 22%; }
.photo-strip { display: flex; gap: var(--s2); overflow-x: auto; margin-bottom: var(--s5); }
.photo-strip figure { margin: 0; position: relative; flex: 0 0 auto; }
.photo-strip img { height: 140px; border-radius: var(--r-sm); display: block; }
.photo-strip .icon-btn { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; }
.detail { display: grid; gap: var(--s5); grid-template-areas: 'head' 'aside' 'body'; }
.detail-head { grid-area: head; }
.detail aside { grid-area: aside; }
.detail-body { grid-area: body; }
.detail > * { min-width: 0; }
.detail h1 { font-size: 1.75rem; overflow-wrap: anywhere; hyphens: auto; }
.detail .provider-line { font-size: var(--t-lg); color: var(--ink-2); margin-bottom: var(--s3); }
.detail section h2 { font-size: var(--t-xl); }
.info-card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: var(--s5); }
.info-list { list-style: none; margin: 0 0 var(--s5); padding: 0; }
.info-list li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ib { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--forest); }
.info-list small { display: block; font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.info-list .v { font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.info-list .v a { font-weight: 700; }
.action-row { display: flex; gap: var(--s2); margin-top: var(--s3); }
.action-row .btn { flex: 1; }
.owner-actions { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }

.review { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.review:last-of-type { border-bottom: 0; }
.review .who { display: flex; align-items: center; gap: var(--s3); }
.starpick { display: flex; gap: var(--s1); }
.starpick button { background: none; border: 0; cursor: pointer; padding: var(--s1); min-width: 44px; min-height: 44px; color: var(--line-strong); }
.starpick button .ic { width: 32px; height: 32px; }
.starpick button.on { color: #D08A00; }
.starpick button.on .ic { fill: #F5B400; }

/* ---------- Formular ---------- */
.form-section { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: var(--s5); }
.form-section > h2 { display: flex; align-items: center; gap: var(--s3); font-size: var(--t-xl); margin-bottom: var(--s4); }
.form-section > h2 .num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--forest-soft); color: var(--forest); font-family: var(--f-text); font-size: var(--t-sm); font-weight: 800; }
.cat-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.cat-pick button { display: flex; flex-direction: column; align-items: center; gap: var(--s1); padding: var(--s3) var(--s1); border-radius: var(--r-sm); border: 2px solid transparent; background: var(--c-bg); color: var(--c-fg); font-weight: 700; font-size: var(--t-xs); cursor: pointer; }
.cat-pick button[aria-pressed="true"] { border-color: var(--c-fg); }
.submit-bar { position: sticky; bottom: 92px; z-index: 30; display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3); background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-radius: var(--r-pill); box-shadow: var(--shadow-2); }

/* ---------- Profil & Anmeldung ---------- */
.profile-head { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.profile-head .avatar { width: 64px; height: 64px; font-size: var(--t-2xl); font-family: var(--f-display); }
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
.kid { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border-radius: var(--r-md); background: var(--cream); }
.kid .avatar { background: var(--c-fg, var(--accent)); }
.kid button { margin-left: auto; }
.kid-form { display: grid; gap: var(--s3); }
@media (min-width: 520px) { .kid-form { grid-template-columns: 1fr 1fr; } }
.auth { display: grid; gap: 0; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; max-width: 960px; margin: var(--s4) auto 0; }
.auth-art { display: none; background: var(--sand); padding: var(--s6); position: relative; }
.auth-art img { width: 100%; border-radius: var(--r-md); }
.auth-art blockquote { margin: var(--s5) 0 0; font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.3; }
.auth-form { padding: var(--s6) var(--s5); }
.check-row { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--t-sm); }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--forest); flex: 0 0 auto; }

/* ---------- Sonstiges ---------- */
#toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(16px); background: var(--ink); color: #fff; padding: var(--s3) var(--s5); border-radius: var(--r-pill); opacity: 0; transition: .25s var(--ease); pointer-events: none; z-index: 60; max-width: 90vw; text-align: center; font-weight: 600; box-shadow: var(--shadow-2); }
#toast.show { opacity: 1; transform: translateX(-50%); }
dialog { border: 0; border-radius: var(--r-lg); padding: var(--s5); width: min(520px, 94vw); box-shadow: var(--shadow-2); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(30, 43, 39, .45); backdrop-filter: blur(2px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.dlg-head h2 { margin: 0; }
.geo-results { list-style: none; margin: var(--s2) 0 0; padding: 0; border-radius: var(--r-sm); overflow: hidden; }
.geo-results button { width: 100%; display: flex; gap: var(--s3); align-items: flex-start; text-align: left; padding: var(--s3); border: 0; background: var(--cream); border-bottom: 1px solid var(--line); cursor: pointer; font-size: var(--t-sm); }
.geo-results button:hover { background: var(--sand); }
.geo-results .ic { color: var(--forest); margin-top: 2px; }
.pin { width: 38px; height: 38px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--c-fg); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); display: grid; place-items: center; }
.pin .ic { transform: rotate(45deg); color: #fff; width: 18px; height: 18px; stroke-width: 2.2; }
.leaflet-popup-content-wrapper { border-radius: var(--r-sm); font-family: var(--f-text); }
.leaflet-popup-content { margin: var(--s3) var(--s4); }
.leaflet-container a.pop-link { color: var(--accent); font-weight: 700; }
footer.site { max-width: 1240px; margin: var(--s7) auto 0; padding: var(--s5) var(--s4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between; color: var(--ink-2); font-size: var(--t-sm); }
footer.site a { color: var(--ink-2); }
.legal h2 { margin-top: var(--s6); font-size: var(--t-xl); }
.legal ul { margin: 0; padding-left: var(--s5); }
.legal li { margin-bottom: var(--s1); }
.notice { background: #FFF4D6; border-radius: var(--r-sm); padding: var(--s3) var(--s4); font-size: var(--t-sm); }

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
  .grid > .empty-wrap, .grid > [style*='grid-column'] { grid-column: 1 / -1; }
  .cats { grid-auto-columns: 124px; }
  .cat-pick { grid-template-columns: repeat(5, 1fr); }
  .band { padding: var(--s7); }
}
@media (min-width: 768px) {
  .searchbar { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.3fr) auto; align-items: center; border-radius: var(--r-pill); padding: var(--s2) var(--s2) var(--s2) var(--s3); }
  .sb-field { border-radius: var(--r-pill); }
  .sb-field + .sb-field { position: relative; }
  .sb-field + .sb-field::before { content: ""; position: absolute; left: 0; top: 25%; height: 50%; border-left: 1px solid var(--line); }
  .searchbar .btn { border-radius: var(--r-pill); padding: 0 var(--s6); }
  .hero h1 { font-size: var(--t-4xl); }
  .results-bar .controls { width: auto; }
  .results-bar .controls select { flex: none; }
  .detail h1 { font-size: var(--t-3xl); }
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .top { padding: 0 var(--s6); }
  .top-nav { display: flex; }
  .top-actions .btn { display: inline-flex; }
  main { padding: var(--s5) var(--s6) var(--s8); }
  .hero { padding: var(--s5) 0 var(--s4); }
  .hero h1 { font-size: clamp(3rem, 4.6vw, 4.2rem); }
  .hero .lead { max-width: 62ch; font-size: 1.2rem; line-height: 1.5; }
  .hero .quick { flex-wrap: wrap; overflow: visible; }
  .layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
  .layout .grid { grid-template-columns: minmax(0, 1fr); }
  .layout .map-col, .layout.show-map .map-col { display: block; position: sticky; top: calc(var(--header-h) + var(--s4)); }
  .layout.show-map .list-col { display: block; }
  #map { height: calc(100vh - var(--header-h) - var(--s7)); }
  .view-toggle { display: none; }
  .detail { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); grid-template-areas: 'head aside' 'body aside'; column-gap: var(--s7); row-gap: 0; align-items: start; }
  .detail aside { position: sticky; top: calc(var(--header-h) + var(--s4)); }
  .submit-bar { bottom: var(--s4); }
  .auth { grid-template-columns: 1fr 1fr; }
  .auth-art { display: block; }
  .auth-form { padding: var(--s7); }
  #toast { bottom: var(--s6); }
  .band { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1280px) {
  .layout.no-map { grid-template-columns: 1fr; }
}
/* ---------- Motion Design ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heartPop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes pinDrop { from { opacity: 0; transform: translateY(-18px) rotate(-45deg); } to { opacity: 1; transform: rotate(-45deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-10deg); } 60% { transform: rotate(8deg); } }
main.route-in { animation: fadeIn .35s var(--ease) both; }
.hero .eyebrow, .hero h1, .hero .lead, .hero .searchbar, .hero .quick { animation: fadeUp .6s var(--ease) both; }
.hero h1 { animation-delay: .06s; } .hero .lead { animation-delay: .14s; } .hero .searchbar { animation-delay: .22s; } .hero .quick { animation-delay: .3s; }
.cat-tile { animation: fadeUp .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + .25s); }
.cat-tile:hover .bubble .ic { animation: wiggle .5s ease-in-out; }
.l-card.enter { animation: fadeUp .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.icon-btn.pop .ic { animation: heartPop .45s var(--ease); }
.pin { animation: pinDrop .45s var(--ease) both; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.skeleton { height: 128px; border-radius: var(--r-md); background: linear-gradient(90deg, #F1E8DA 0%, #FAF4EC 50%, #F1E8DA 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.tabbar a.fab { transition: transform .2s var(--ease); } .tabbar a.fab:active { transform: scale(.92); }
.btn .ic { transition: transform .2s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Formular: Art des Eintrags & Termine */
.field-label { display: block; font-weight: 700; font-size: var(--t-sm); margin-bottom: 8px; }
.kind-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s2); }
.kind-pick button { display: flex; align-items: flex-start; gap: var(--s3); text-align: left; padding: var(--s3) var(--s4); border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s var(--ease), background .15s var(--ease); }
.kind-pick button .ic { flex: none; margin-top: 2px; }
.kind-pick button span { display: grid; gap: 2px; }
.kind-pick button small { color: var(--ink-2, #6b6259); font-size: var(--t-xs); line-height: 1.35; }
.kind-pick button[aria-checked="true"] { border-color: var(--forest); background: var(--forest-soft); color: var(--forest); }
.term-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto minmax(0, 1fr) 40px; align-items: center; gap: var(--s2); }
.term-row .icon-btn { width: 40px; height: 40px; box-shadow: none; border: 1.5px solid var(--line-strong); }
.term-list > .btn { justify-self: start; }
@media (max-width: 480px) {
  /* Zeile 1: Datum + Entfernen, Zeile 2: von – bis über die volle Breite */
  .term-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 44px; row-gap: var(--s2); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
  .term-row > .dt-date { grid-column: 1 / 4; }
  .term-row .icon-btn { grid-row: 1; grid-column: 4; width: 44px; height: 44px; }
}

/* Startseite: Mehr Filter */
.more-filters { display: grid; gap: var(--s4); margin-top: var(--s3); padding: var(--s4); background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-1); animation: fadeUp .3s var(--ease) both; }
.more-filters[hidden] { display: none; }
.filter-title { font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s2); }
.filter-group .chip { min-height: 36px; padding: 0 var(--s3); }

/* Startseite: Ideen für heute & Wer kommt mit? */
.heute, .treffen-home { margin-top: var(--s6); }
.heute-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.heute-head h2 { margin: 0 0 2px; }
.weather-badge { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.heute-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px var(--s3); scrollbar-width: none; }
.heute-row::-webkit-scrollbar { display: none; }
.heute-card, .treff-card { scroll-snap-align: start; display: flex; gap: var(--s3); padding: var(--s3); background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.heute-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.heute-card strong { display: block; font-size: var(--t-md); line-height: 1.3; }
.heute-card > div { min-width: 0; }
.heute-card.enter { animation: fadeUp .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.thumb.sm { width: 56px; height: 56px; }
.thumb.sm .ic { width: 26px; height: 26px; }
.heute-skel { height: 96px; }
.gruende { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: 2px; font-size: var(--t-xs); color: var(--forest); font-weight: 600; }
.gruende li { display: flex; gap: 6px; align-items: flex-start; }
.gruende .ic { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.treff-card { flex-direction: column; gap: var(--s2); border-left: 4px solid var(--c-fg, var(--forest)); }
.treff-when { display: flex; align-items: center; gap: var(--s2); font-weight: 700; font-size: var(--t-sm); color: var(--c-fg, var(--forest)); }
.treff-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.treff-title:hover { text-decoration: underline; }

/* Kennzeichen in der Liste */
.chip-mini.open { display: inline-flex; align-items: center; gap: 6px; background: var(--forest-soft); color: var(--forest); }
.chip-mini.warn { background: #FCEFC7; color: #7D5900; }
.chip-mini.muted-chip { background: var(--line); color: var(--ink-2); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2E9E5B; box-shadow: 0 0 0 0 rgba(46, 158, 91, .5); }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: livePulse 2s ease-out infinite; } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(46, 158, 91, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(46, 158, 91, 0); } }
.price-wrap { display: inline-flex; align-items: center; gap: 2px; }
.price-wrap .ic { width: 14px; height: 14px; }

/* ---------- Handy-App: Notch, Home-Leiste, App-Gefühl ---------- */
html { -webkit-tap-highlight-color: transparent; }
body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); overscroll-behavior-y: none; }
.top { height: calc(var(--header-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  padding-left: max(var(--s4), env(safe-area-inset-left)); padding-right: max(var(--s4), env(safe-area-inset-right)); }
main { padding-left: max(var(--s4), env(safe-area-inset-left)); padding-right: max(var(--s4), env(safe-area-inset-right)); }
.tabbar, .chip, .btn, .cat-tile, .view-toggle button, .top-nav a, .tabbar a { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tabbar a:active, .chip:active, .btn:active, .cat-tile:active, .l-card:active { transform: scale(.97); }
.tabbar a, .chip, .btn, .cat-tile { touch-action: manipulation; }
@media (max-width: 1023px) {
  /* iOS zoomt bei Eingabefeldern unter 16 px ungefragt hinein */
  input, select, textarea, .results-bar select { font-size: 16px !important; }
}
@media (max-width: 599px) {
  .hero { padding: var(--s2) 0 var(--s4); gap: var(--s3); }
  .hero h1 { font-size: 1.95rem; margin-bottom: var(--s2); }
  .hero .lead { font-size: var(--t-md); margin-bottom: var(--s4); line-height: 1.45; }
  .hero .sb-field { min-height: 52px; }
  footer.site { padding-bottom: var(--s3); }
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  main { padding-left: var(--s6); padding-right: var(--s6); }
  .top { padding-left: var(--s6); padding-right: var(--s6); }
}
@media (display-mode: standalone) {
  /* Als installierte App: Fußzeile schlanker, Impressum bleibt erreichbar */
  footer.site { margin-top: var(--s5); border-top: 0; justify-content: center; text-align: center; }
}

/* Passwort anzeigen */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); cursor: pointer; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--forest); }
.pw-toggle:focus-visible { outline: 2px solid var(--forest); outline-offset: -2px; }

/* ---------- Handy-UX (Durchsicht 28.10.2026) ---------- */
input[type=number], input[type=tel], input[type=time], input[type=datetime-local] {
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4); border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper); font-size: var(--t-md); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input[type=number]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=datetime-local]:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(47, 93, 80, .18); }
/* iOS Safari: Datums-/Zeitfelder haben sonst eine eigene Mindestbreite und ragen aus der Spalte */
@supports (-webkit-touch-callout: none) {
  input[type=date], input[type=time], input[type=month], input[type=datetime-local] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; text-align: left; }
  input::-webkit-date-and-time-value { text-align: left; }
}
.grid2 > * { min-width: 0; }
.grid2 select { text-overflow: ellipsis; }
.source-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.source-note p { margin: 0; flex: 1 1 220px; }
.legal-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: center; margin-top: var(--s5); font-size: var(--t-sm); color: var(--ink-2); }
.legal-links a { color: var(--ink-2); }

@media (max-width: 1023px) {
  :root { --header-h: 56px; }
  .top-actions { display: none; }
  footer.site { display: none; }
  /* Formular: keine Tableiste, Speichern-Leiste fest am unteren Rand */
  body[data-route="new"] .tabbar { display: none; }
  body[data-route="new"] { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .submit-bar { position: fixed; left: 0; right: 0; bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: var(--s3) max(var(--s4), env(safe-area-inset-right)) calc(var(--s3) + env(safe-area-inset-bottom)) max(var(--s4), env(safe-area-inset-left)); box-shadow: 0 -4px 20px rgba(31, 42, 38, .08); }
  .submit-bar .btn { flex: 1 1 0; min-width: 0; padding-left: var(--s3); padding-right: var(--s3); }
  .submit-bar .btn.ghost { flex: 0 0 auto; }
  #toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  body[data-route="new"] #toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
  /* Karte-Tab: nur Kopfzeile, Ergebnisleiste und eine große Karte */
  main.map-mode > .hero, main.map-mode > .heute, main.map-mode > .treffen-home, main.map-mode > .feed-home, main.map-mode > .section-head, main.map-mode > .cats, main.map-mode > .band { display: none; }
  main.map-mode > .results-bar { margin: 0 0 var(--s3); }
  main.map-mode #map { height: calc(100dvh - var(--header-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 250px); min-height: 320px; }
}
@media (max-width: 480px) {
  .grid2:not(.keep) { grid-template-columns: 1fr; }
  .l-card { grid-template-columns: 64px minmax(0, 1fr) auto; padding: var(--s3); }
  .l-card .thumb { width: 64px; height: 64px; }
  .l-card .thumb .ic { width: 28px; height: 28px; }
  .l-card h3 { font-size: 1.0625rem; }
  .l-card .fav { width: 36px; height: 36px; }
  .cats { grid-auto-columns: 92px; gap: var(--s2); }
  .cat-tile { padding: var(--s3) var(--s1); font-size: var(--t-xs); }
  .cat-tile .bubble { width: 44px; height: 44px; }
  .cat-tile .bubble .ic { width: 22px; height: 22px; }
  .form-section { padding: var(--s4); }
  .section-head h2, .results-bar h2 { font-size: var(--t-lg); }
}
@media (min-width: 1024px) { .legal-links { display: none; } }
.sb-km { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.sb-km::before { content: "· "; }
.eyebrow.one-line { flex-wrap: nowrap; min-width: 0; }
.eyebrow.one-line > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sb-field select { padding-right: 28px; text-overflow: ellipsis; }
.addr-link { display: block; font-weight: 600; color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.l-card .provider .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; color: var(--ink-2); }
.addr-hint:not(:empty) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding: var(--s3) var(--s4); background: var(--forest-soft); border-radius: var(--r-sm); font-size: var(--t-sm); }
.route-btns { display: flex; flex-wrap: wrap; gap: var(--s2); }
.route-btns .btn { flex: 1 1 0; min-width: 120px; justify-content: center; }
button.addr-link { background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; }
button.addr-link .ic { color: var(--accent); vertical-align: -2px; }

/* Pflichtfelder & Fehler direkt am Feld */
.req { color: var(--accent); font-weight: 800; }
.req-note { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.field-error { display: flex; align-items: flex-start; gap: 6px; margin: var(--s2) 0 0; color: var(--danger); font-size: var(--t-sm); font-weight: 600; line-height: 1.4; }
.field-error .ic { flex: 0 0 auto; margin-top: 2px; }
.invalid input:not([type=checkbox]), .invalid select, .invalid textarea { border-color: var(--danger); background-color: #FFF8F7; }
.invalid input:focus, .invalid select:focus, .invalid textarea:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .16); }
.invalid .minimap, .invalid #map { outline: 2px solid var(--danger); outline-offset: 2px; }
.invalid > .field-label, .invalid > label > span:first-child, label.field.invalid > span:first-child { color: var(--danger); }
.check-wrap.invalid .check-row { color: var(--danger); }
.grid2.invalid > .field-error, .term-list + .field-error { grid-column: 1 / -1; }
@media (prefers-reduced-motion: no-preference) { .field-error { animation: fadeUp .25s var(--ease) both; } }
.count-badge { margin-left: var(--s2); min-width: 26px; height: 26px; padding: 0 8px; border-radius: var(--r-pill); background: var(--forest-soft); color: var(--forest); font-family: var(--f-text); font-size: var(--t-sm); font-weight: 800; display: inline-grid; place-items: center; }
.my-listings { gap: var(--s3); }
.my-item .l-card { box-shadow: none; border: 1px solid var(--line); }
.my-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--s2); padding: var(--s1) 0 0; }

/* Fotos in Bewertungen */
.rev-pics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.rev-pic { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--paper); border: 1.5px solid var(--line-strong); }
.rev-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rev-pic .icon-btn { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-1); }
.rev-pic.add { display: grid; place-items: center; align-content: center; gap: 4px; border-style: dashed; color: var(--forest); font-weight: 700; font-size: var(--t-xs); cursor: pointer; padding: var(--s2); text-align: center; }
.rev-pic.add .ic { width: 30px; height: 30px; }
.rev-gallery { display: flex; gap: var(--s2); margin-top: var(--s3); overflow-x: auto; scrollbar-width: none; }
.rev-thumb { flex: 0 0 auto; width: 84px; height: 84px; padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; background: var(--sand); }
.rev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-dlg { width: min(96vw, 900px); }
.photo-big { width: 100%; max-height: 72vh; object-fit: contain; border-radius: var(--r-sm); background: var(--ink); }
.stars-wrap.invalid .starpick .ic { color: var(--danger); }

/* ---------- Profile ---------- */
.avatar.xl { width: 72px; height: 72px; font-size: 1.75rem; font-family: var(--f-display); }
.profile-card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: var(--s5); display: grid; gap: var(--s4); }
.profile-top { display: flex; align-items: center; gap: var(--s4); min-width: 0; }
.profile-top > div { min-width: 0; }
.profile-top h1 { margin: 0; font-size: var(--t-2xl); overflow-wrap: anywhere; }
.profile-card .bio { margin: 0; white-space: pre-line; }
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s2); }
.stat { display: grid; justify-items: center; gap: 2px; padding: var(--s3) var(--s2); border-radius: var(--r-sm); background: var(--cream); text-decoration: none; color: var(--ink); text-align: center; }
.stat strong { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.1; }
.stat span { font-size: var(--t-xs); color: var(--ink-2); font-weight: 600; }
.profile-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.profile-actions .btn { flex: 1 1 140px; }
.person-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.person-chip { display: inline-flex; align-items: center; gap: var(--s2); padding: 4px var(--s3) 4px 4px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--t-sm); }
.person-chip .avatar { width: 30px; height: 30px; font-size: var(--t-sm); }
.who-link { color: inherit; text-decoration: none; }
.who-link:hover strong { text-decoration: underline; }
.review-link { display: block; text-decoration: none; color: inherit; border-left: 4px solid var(--c-dot, var(--line-strong)); }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--accent-fill); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.tabbar a { position: relative; }
.tabbar a .nav-badge { position: absolute; top: 2px; left: calc(50% + 6px); }
.avatar-btn .nav-badge { margin-left: 2px; }
.nav-badge.static { margin-left: var(--s2); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: var(--t-sm); }

/* ---------- Nachrichten ---------- */
.conv-list { display: grid; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.conv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.conv:last-child { border-bottom: 0; }
.conv-body p { margin: 2px 0 0; color: var(--ink-2); font-size: var(--t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread .conv-body p { color: var(--ink); font-weight: 700; }
.chat { display: grid; gap: var(--s3); }
.chat-head { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top)); z-index: 5; display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; background: var(--cream); }
.chat-who { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); text-decoration: none; font-size: var(--t-lg); }
.chat-safety { margin: 0; display: flex; align-items: center; gap: 4px; }
.chat-list { display: grid; gap: var(--s2); padding-bottom: var(--s4); }
.chat-day { justify-self: center; font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); background: var(--sand); padding: 2px var(--s3); border-radius: var(--r-pill); margin: var(--s3) 0 var(--s1); }
.bubble-msg { max-width: 80%; justify-self: start; background: var(--paper); border-radius: 18px 18px 18px 6px; padding: var(--s2) var(--s3); box-shadow: var(--shadow-1); }
.bubble-msg.mine { justify-self: end; background: var(--forest); color: #fff; border-radius: 18px 18px 6px 18px; }
.bubble-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-msg span { display: block; text-align: right; font-size: 11px; opacity: .7; margin-top: 2px; }
.chat-empty { text-align: center; padding: var(--s6) var(--s4); }
.composer { position: sticky; bottom: calc(var(--s3) + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; gap: var(--s2); padding: var(--s2); background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.composer textarea { min-height: 44px; max-height: 140px; resize: none; border: 0; background: transparent; padding: var(--s2) var(--s3); box-shadow: none !important; }
.composer .send { flex: 0 0 auto; width: 44px; height: 44px; background: var(--accent-fill); color: #fff; }
body[data-route="chat"] .tabbar { display: none; }
body[data-route="chat"] { padding-bottom: env(safe-area-inset-bottom); }
body[data-route="chat"] footer.site { display: none; }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: var(--s1); padding: 4px; background: var(--sand); border-radius: var(--r-pill); overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 0 var(--s3); border: 0; border-radius: var(--r-pill); background: none; font-weight: 700; font-size: var(--t-sm); color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }
.tabs .count-badge { margin-left: 2px; height: 22px; min-width: 22px; font-size: var(--t-xs); }
.admin-list { display: grid; gap: var(--s2); }
.admin-row { display: grid; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-1); border-left: 4px solid var(--c-dot, var(--line-strong)); }
.admin-main { display: grid; gap: 2px; min-width: 0; }
.admin-title { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.admin-main .ic { width: 13px; height: 13px; vertical-align: -1px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chips-row:empty { display: none; }
.admin-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (min-width: 720px) { .admin-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.chat { min-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--s4) - var(--s3)); grid-template-rows: auto auto 1fr auto; }
.chat-list { align-content: end; }
body[data-route="chat"] main { padding-bottom: var(--s3); }
.narrow > .stats .stat { background: var(--paper); box-shadow: var(--shadow-1); }
@media (max-width: 480px) {
  .stat span { font-size: 11px; letter-spacing: -.01em; }
  .tabs button { flex: 1 1 auto; padding: 0 var(--s2); font-size: var(--t-xs); }
}

/* Fragen & Tipps */
.comments { display: grid; gap: var(--s3); }
.comment-list { display: grid; gap: var(--s3); }
.comment { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); align-items: start; }
.comment .avatar { width: 36px; height: 36px; font-size: var(--t-sm); }
.comment-body { background: var(--paper); border-radius: 4px var(--r-md) var(--r-md) var(--r-md); padding: var(--s3) var(--s4); box-shadow: var(--shadow-1); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s2); }
.comment-body p { margin: var(--s1) 0 0; overflow-wrap: anywhere; }
.comment-body .btn { margin-top: var(--s2); min-height: 32px; padding: 0 var(--s2); }
.comment-form .btn { justify-self: start; }
.btn.danger-text { color: var(--danger); }
.btn.danger-text:hover { background: #FDF1EF; color: var(--danger); }

/* ---------- Profil im Instagram-Stil ---------- */
.avatar.has-img { padding: 0; overflow: hidden; background: var(--sand); }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 86px; height: 86px; font-size: 2rem; flex: 0 0 auto; }
.avatar.xxl { width: 104px; height: 104px; font-size: 2.5rem; font-family: var(--f-display); flex: 0 0 auto; }
.profile-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 44px; }
.profile-handle { display: flex; align-items: center; gap: 6px; font-size: var(--t-lg); min-width: 0; }
.profile-handle strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-bar .icon-btn { box-shadow: none; background: transparent; }
.ig-head { display: grid; gap: var(--s3); }
.ig-top { display: flex; align-items: center; gap: var(--s5); }
.ig-stats { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s1); }
.ig-stats .stat { background: none; box-shadow: none; padding: var(--s1) 0; border: 0; font: inherit; cursor: default; }
.ig-stats button.stat { cursor: pointer; border-radius: var(--r-sm); }
.ig-stats button.stat:hover { background: var(--sand); }
.ig-stats .stat strong { font-size: var(--t-xl); font-family: var(--f-text); font-weight: 800; }
.ig-stats .stat span { font-size: var(--t-sm); color: var(--ink); font-weight: 500; }
.ig-info h1 { font-size: var(--t-lg); font-family: var(--f-text); font-weight: 800; margin: 0; }
.ig-info p { margin: 2px 0 0; }
.ig-info .bio { margin-top: var(--s2); white-space: pre-line; }
.bio-empty { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--s2); color: var(--forest); font-weight: 600; font-size: var(--t-sm); text-decoration: none; }
.ig-head .profile-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--s2); }
.ig-head .profile-actions .btn { min-height: 40px; font-size: var(--t-sm); padding: 0 var(--s3); }
.admin-hint { text-decoration: none; color: var(--ink); font-weight: 600; }
.people-list { display: grid; }
.person-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: var(--s2) 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.person-row:last-child { border-bottom: 0; }

/* Profil bearbeiten */
.edit-avatar { display: flex; align-items: center; gap: var(--s4); }
.edit-avatar .btn { justify-self: start; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); cursor: pointer; }
.switch-row > span:first-child { display: grid; gap: 2px; }
.switch-row small { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.4; }
input[role="switch"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { flex: 0 0 auto; width: 52px; height: 32px; border-radius: var(--r-pill); background: var(--line-strong); position: relative; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .2s var(--ease); }
input[role="switch"]:checked + .switch-row .switch { background: var(--forest); }
input[role="switch"]:checked + .switch-row .switch::after { transform: translateX(20px); }
input[role="switch"]:focus-visible + .switch-row .switch { outline: 2px solid var(--forest); outline-offset: 2px; }

/* Einstellungen */
.set-group { display: grid; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.set-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row > span:nth-child(2) { display: grid; }
.set-row small { color: var(--ink-2); font-size: var(--t-sm); }
.set-row .num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--forest-soft); color: var(--forest); }
.info-points { list-style: none; margin: var(--s2) 0 0; padding: var(--s3) var(--s4); display: grid; gap: var(--s2); background: var(--cream); border-radius: var(--r-sm); font-size: var(--t-sm); color: var(--ink-2); }
.info-points li { display: grid; grid-template-columns: auto 1fr; gap: var(--s2); align-items: start; }
.info-points .ic { margin-top: 3px; color: var(--forest); }
.switch-row small { margin-top: 2px; }

/* Felder mit Symbol + Beispieltext (Datum, Uhrzeit, Zahl, Auswahl) */
.ic-field { position: relative; min-width: 0; }
.ic-field > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--forest); pointer-events: none; z-index: 1; }
.ic-field > input, .ic-field > select { padding-left: 42px; width: 100%; }
.ic-ph { position: absolute; left: 42px; right: 12px; top: 50%; transform: translateY(-50%); color: #A39A8C; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.ic-field.filled .ic-ph, .ic-field:focus-within .ic-ph { display: none; }
/* Browser-eigene Platzhalter („tt.mm.jjjj“, „--:--“) und Kalender-Knöpfe ausblenden; ein Tipp aufs Feld öffnet die Auswahl */
.ic-field:not(.filled):not(:focus-within) input::-webkit-datetime-edit { color: transparent; }
/* Safari zeigt in leeren Datums- und Zeitfeldern das heutige Datum bzw. die Uhrzeit in Grau – das würde den eigenen Platzhalter überlagern */
.ic-field:not(.filled):not(:focus-within) input[type=date],
.ic-field:not(.filled):not(:focus-within) input[type=time],
.ic-field:not(.filled):not(:focus-within) input[type=month] { color: transparent; -webkit-text-fill-color: transparent; }
.ic-field:not(.filled):not(:focus-within) input::-webkit-datetime-edit,
.ic-field:not(.filled):not(:focus-within) input::-webkit-datetime-edit-fields-wrapper,
.ic-field:not(.filled):not(:focus-within) input::-webkit-datetime-edit-text,
.ic-field:not(.filled):not(:focus-within) input::-webkit-datetime-edit-day-field,
.ic-field:not(.filled):not(:focus-within) input::-webkit-datetime-edit-month-field,
.ic-field:not(.filled):not(:focus-within) input::-webkit-datetime-edit-year-field,
.ic-field:not(.filled):not(:focus-within) input::-webkit-datetime-edit-hour-field,
.ic-field:not(.filled):not(:focus-within) input::-webkit-datetime-edit-minute-field,
.ic-field:not(.filled):not(:focus-within) input::-webkit-datetime-edit-ampm-field { color: transparent; -webkit-text-fill-color: transparent; opacity: 0; }
.ic-field input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }
.ic-field input[type=date], .ic-field input[type=time], .ic-field input[type=month] { position: relative; min-height: 48px; }
.invalid .ic-field > .ic { color: var(--danger); }

/* Noch nichts gewählt: „Bitte wählen“ grau wie ein Platzhalter */
select:has(option[value=""]:checked) { color: #A39A8C; }
select option { color: var(--ink); }
/* Leaflet-Karten bringen eigene Ebenen (z-index bis 1000) mit – in einen eigenen Stapel einschließen, damit Kopf-, Tab- und Speichern-Leiste darüber liegen */
.leaflet-container, #map, .minimap { position: relative; z-index: 0; isolation: isolate; }

/* Dubletten-Hinweis */
.dup-box { display: grid; gap: var(--s3); padding: var(--s4); border-radius: var(--r-md); background: #FFF4D6; border: 1.5px solid #F1D48A; }
.dup-head { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; }
.dup-head > .ic { color: #8A6100; margin-top: 2px; }
.dup-head p { margin: 2px 0 0; }
.dup-list { display: grid; gap: var(--s2); }
.dup-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s3); background: var(--paper); border-radius: var(--r-sm); border-left: 4px solid var(--c-dot, var(--line-strong)); }
.dup-text { display: grid; gap: 2px; min-width: 0; }
.dup-box > .btn { justify-self: start; }
@media (max-width: 480px) { .dup-item { grid-template-columns: 1fr; } .dup-item .btn { justify-self: start; } }
.dup-hint { margin-top: 4px; padding: 4px var(--s2); border-radius: var(--r-sm); background: #FFF4D6; color: #6E4E00; font-size: var(--t-sm); font-weight: 600; }
.dup-hint a { color: inherit; }
[hidden] { display: none !important; }
.dup-box { grid-template-columns: minmax(0, 1fr); }
.dup-head > div { min-width: 0; }

/* Anbieter-Konten */
.who-pick, .org-pick { display: grid; gap: var(--s2); }
.org-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.who-pick button, .org-pick button { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; text-align: left; padding: var(--s3) var(--s4); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--paper); color: var(--ink); cursor: pointer; font: inherit; }
.who-pick button > span, .org-pick button > span { display: grid; gap: 2px; }
.who-pick small, .org-pick small { color: var(--ink-2); font-size: var(--t-xs); line-height: 1.35; }
.who-pick .ic, .org-pick .ic { color: var(--forest); margin-top: 2px; }
.who-pick button[aria-checked="true"], .org-pick button[aria-checked="true"] { border-color: var(--forest); background: var(--forest-soft); box-shadow: inset 0 0 0 1px var(--forest); }
.invalid .who-pick button, .invalid .org-pick button { border-color: var(--danger); }
@media (max-width: 360px) { .org-pick { grid-template-columns: 1fr; } }
.org-badge { display: inline-flex; align-items: center; gap: 3px; margin-left: var(--s2); padding: 2px 8px; border-radius: var(--r-pill); background: var(--sand); color: var(--ink-2); font-family: var(--f-text); font-size: var(--t-xs); font-weight: 700; vertical-align: middle; white-space: nowrap; }
.org-badge.verified { background: var(--forest-soft); color: var(--forest); }
.org-badge .ic { width: 13px; height: 13px; }
.org-meta { display: flex; flex-wrap: wrap; gap: 4px var(--s4); font-size: var(--t-sm); color: var(--ink-2); }
.org-meta a { color: var(--forest); font-weight: 600; text-decoration: none; }
.org-meta .ic { vertical-align: -2px; }
@media (max-width: 480px) { .org-pick { grid-template-columns: 1fr; } .org-pick button { padding: var(--s2) var(--s3); } }
.org-pick b, .who-pick b { overflow-wrap: anywhere; }

/* Liste ohne Vorschaubild: Farbstreifen + Symbol in der Kategoriezeile */
.l-card { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); padding: var(--s3) var(--s3) var(--s3) var(--s4); border-left: 5px solid var(--c-dot, var(--line-strong)); }
.l-card .meta-top { gap: 6px; }
.l-card .meta-top .cat-ic { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c-bg); color: var(--c-fg); }
.l-card .meta-top .cat-ic .ic { width: 13px; height: 13px; }
.l-card .meta-top span.cat-ic + span { overflow: hidden; text-overflow: ellipsis; color: var(--c-fg); flex: 0 1 auto; }

/* Suchfeld + Kategorie-Filter in Merkliste und Profil */
.list-filter { display: grid; gap: var(--s3); }
.list-filter > * { min-width: 0; }
.search-field { position: relative; }
.search-field > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.search-field input { padding-left: 42px; border-radius: var(--r-pill); }
.list-filter .chips { margin: 0 calc(var(--s4) * -1); padding: 2px var(--s4) var(--s1); }
.list-filter-status:empty { display: none; }
.list-filter-status { margin: 0; }
.chip-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); display: inline-grid; place-items: center; background: var(--sand); color: var(--ink-2); font-size: 11px; font-weight: 800; }
.chip[aria-pressed="true"] .chip-count { background: rgba(255, 255, 255, .22); color: #fff; }
.search-row { display: flex; gap: var(--s2); align-items: center; }
.search-row .search-field { flex: 1; min-width: 0; }
.search-row .view-toggle { flex: none; }
.fav-map { height: 60vh; min-height: 320px; border-radius: var(--r-lg); overflow: hidden; background: #E7E0D2; position: relative; z-index: 0; isolation: isolate; }
@media (min-width: 1024px) { .search-row .view-toggle { display: inline-flex; } }

/* Einträge übernehmen */
.claim-box, .claim-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); align-items: start; }
.claim-box { padding: var(--s4); border-radius: var(--r-md); background: var(--forest-soft); }
.claim-box > .ic, .claim-head > .ic { color: var(--forest); margin-top: 2px; }
.claim-box p, .claim-head p { margin: 2px 0 var(--s2); }
.claim-panel { padding: var(--s4); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-1); border: 1.5px solid var(--forest-soft); }

/* Darstellung (Hell/Dunkel) in den Einstellungen */
.theme-pick { display: flex; width: 100%; }
.theme-pick button { flex: 1 1 0; justify-content: center; min-height: 40px; }

/* Hinweis nach den ersten 10 Vorschlägen (ohne Konto) */
.more-teaser { display: grid; grid-template-columns: auto 1fr; gap: var(--s3) var(--s4); align-items: center; padding: var(--s5); border-radius: var(--r-lg); background: var(--accent-soft); }
.more-teaser h3 { margin: 0 0 var(--s1); }
.more-teaser p { margin: 0; }
.more-teaser .mt-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--accent); }
.more-teaser .row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (max-width: 600px) { .more-teaser .row .btn { flex: 1 1 100%; } }

/* Statistik für Anbieter */
.st-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
@media (max-width: 600px) { .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-tile { display: grid; gap: 2px; align-content: start; padding: var(--s4); border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-1); }
.st-tile strong { font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st-tile > span:not(.st-ic):not(.st-trend) { color: var(--ink); font-weight: 600; font-size: var(--t-sm); }
.st-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--forest-soft); color: var(--forest); margin-bottom: var(--s2); }
.st-trend { font-size: var(--t-xs); color: var(--ink-2); }
.st-trend.up { color: var(--forest); font-weight: 600; }
.st-chart-wrap { position: relative; }
.st-tip { font-weight: 600; font-size: var(--t-sm); color: var(--ink); min-height: 1.4em; margin-bottom: var(--s2); font-variant-numeric: tabular-nums; }
.st-chart { width: 100%; height: auto; display: block; overflow: visible; }
.st-bar { fill: var(--forest); }
.st-grid { stroke: var(--line); stroke-width: 1; }
.st-axis { fill: var(--ink-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.st-hit { fill: transparent; cursor: pointer; outline: none; }
.st-hit.on, .st-hit:focus-visible { fill: color-mix(in srgb, var(--forest) 12%, transparent); }
.table-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--s2)); }
.st-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.st-table th, .st-table td { padding: var(--s2); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.st-table thead th { color: var(--ink-2); font-weight: 600; font-size: var(--t-xs); }
.st-table tbody th { font-weight: 600; }
.st-table .num-col { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Eigene Rückfrage (ask) */
.ask-row { justify-content: flex-end; gap: var(--s2); flex-wrap: wrap; }
.ask-row .btn { flex: 1 1 140px; }
.btn.danger-fill, .btn.danger-fill:hover { background: #B42318; border-color: #B42318; color: #fff; }

/* Eigene Einträge im Profil: Status-Hinweis nicht umbrechen, Knöpfe rechts */
/* Eigene Einträge im Profil: Karte + Fußleiste mit Status und kleinen Knöpfen als eine Einheit */
.my-item { background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-1); overflow: hidden; }
.my-item .l-card { border-radius: 0; box-shadow: none; border: 0; }
.my-item .my-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: var(--s1); padding: var(--s1) var(--s2) var(--s2) var(--s4); border-top: 1px solid var(--line); }
.my-actions .chip-mini { white-space: nowrap; margin-right: auto; }
.my-actions .icon-btn { width: 40px; height: 40px; box-shadow: none; background: var(--fill, var(--sand)); color: var(--ink); }
.my-actions .icon-btn.danger-text { color: var(--danger); }

/* Admin: Herkunft eines Eintrags */
.origin { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: var(--t-sm); font-weight: 600; margin: 2px 0; }
.origin .ic { color: var(--forest); }
.origin-auto .ic, .origin-import .ic { color: var(--accent); }
.origin-filter { margin-bottom: var(--s3); }

/* Eigenes Profil: Zugang zum Admin-Bereich */
.admin-entry { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--forest-bg, var(--forest)); color: #fff; text-decoration: none; }
.admin-entry:hover { color: #fff; filter: brightness(1.06); }
.admin-entry > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.admin-entry small { color: rgba(255, 255, 255, .88); font-size: var(--t-sm); }
.admin-entry-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); flex: 0 0 auto; }
.admin-entry .nav-badge { background: #fff; color: #1E2B27; }

/* Admin: Skala Familien-Eignung */
.fscore { margin: var(--s1) 0; }
.fscore summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px var(--s2); cursor: pointer; list-style: none; font-size: var(--t-sm); }
.fscore summary::-webkit-details-marker { display: none; }
.fscore-label { color: var(--ink-2); font-weight: 600; }
.fscore-track { position: relative; flex: 1 1 120px; max-width: 220px; height: 10px; border-radius: 99px; background: var(--fill, var(--sand)); overflow: hidden; box-shadow: inset 0 0 0 1px var(--field-edge, var(--line-strong)); }
.fscore-fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--fc); }
.fscore strong { font-variant-numeric: tabular-nums; color: var(--ink); }
.fscore-text { color: var(--ink-2); }
.fscore-text::after { content: " ▾"; }
.fscore[open] .fscore-text::after { content: " ▴"; }
.fscore-sicher { --fc: #248A3D; } .fscore-hoch { --fc: var(--forest); } .fscore-mittel { --fc: #B07A00; } .fscore-niedrig { --fc: #B42318; }
html[data-theme="dark"] .fscore-sicher { --fc: #30D158; } html[data-theme="dark"] .fscore-mittel { --fc: #F4CE6A; } html[data-theme="dark"] .fscore-niedrig { --fc: #FF6961; }
.fscore-why { margin: var(--s2) 0 0; padding: var(--s2) var(--s3); list-style: none; display: grid; gap: 2px; font-size: var(--t-sm); background: var(--fill, var(--sand)); border-radius: var(--r-sm); }
.fscore-why b { display: inline-block; min-width: 3.2em; color: #1E6B3A; font-variant-numeric: tabular-nums; }
.fscore-why .neg b { color: var(--danger); }
html[data-theme="dark"] .fscore-why b { color: #30D158; }


/* Kartenebene „Für unterwegs“ */
.svc-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 13px/1 var(--f-text, system-ui); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: pointer; }
.svc-toggle .ic { width: 16px; height: 16px; }
.svc-toggle[aria-pressed="true"] { background: var(--forest-bg, var(--forest)); color: #fff; }
.svc-pin { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.svc-pin .ic { width: 14px; height: 14px; }
.svc-wickeln { background: #8A4B00; } .svc-wasser { background: #2D5F84; } .svc-stillen { background: #A73A62; }

/* Angebots-Kacheln einheitlich: Hinweis-Zeile (optional), darunter immer genau eine Zeile Alter · Preis · Bewertung */
.l-card .status-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--s2); }
.l-card .status-row .chip-mini { display: inline-flex; align-items: center; gap: 5px; }
.l-card .facts-row { display: flex; align-items: center; gap: var(--s3); font-size: var(--t-sm); color: var(--ink); min-width: 0; white-space: nowrap; }
.l-card .facts-row > span { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.l-card .facts-row .f-price { flex: 1 1 auto; min-width: 0; }
.l-card .facts-row .price { overflow: hidden; text-overflow: ellipsis; }
.l-card .facts-row .ic { width: 15px; height: 15px; color: var(--ink-2); flex: 0 0 auto; }
.l-card .facts-row .stars { order: 3; }

/* ---------- Kinderschutz: E-Mail-Hinweis, Melden, Freigabe, Abzeichen ---------- */
.verify-banner { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s3) var(--s4); margin-bottom: var(--s4); border-radius: var(--r-md); background: color-mix(in srgb, var(--sun, #FFC14D) 22%, var(--paper)); border: 1px solid color-mix(in srgb, var(--sun, #FFC14D) 60%, transparent); }
.verify-banner > .ic { width: 22px; height: 22px; color: var(--forest); flex: 0 0 auto; }
.verify-banner > div { flex: 1 1 220px; min-width: 0; }
.verify-banner p { margin: 2px 0 0; font-size: var(--t-sm); color: var(--ink-2); }
.report-btn { width: 32px; height: 32px; min-height: 0; background: transparent; box-shadow: none; color: var(--ink-2); }
.report-btn:hover { color: var(--accent); background: var(--sand); }
.report-btn .ic { width: 15px; height: 15px; }
.msg-report { margin-left: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: .75rem; text-decoration: underline; opacity: .75; cursor: pointer; }
.pending-tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; font-size: .6875rem; font-weight: 700; background: rgba(0, 0, 0, .65); color: #fff; }
.rev-thumb, .photo-strip figure { position: relative; }
.photo-strip figure .report-btn { position: absolute; top: 6px; right: 6px; background: rgba(255, 255, 255, .85); }
.trust-notes { display: grid; gap: var(--s2); padding: var(--s4); border-radius: var(--r-md); background: var(--forest-soft, #DDE9E1); }
.trust-notes p { margin: 0; display: flex; gap: var(--s2); align-items: flex-start; font-size: var(--t-sm); }
.trust-notes p > .ic { width: 18px; height: 18px; color: var(--forest); flex: 0 0 auto; margin-top: 2px; }
.auth-art .auth-bloom { width: min(70%, 320px); margin: 0 auto var(--s4); animation: bloom-turn 120s linear infinite; }
html[data-theme="dark"] .auth-art .auth-bloom { content: url("/img/logo-blume-dark.svg"); }
@keyframes bloom-turn { to { transform: rotate(360deg); } }
.mod-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s3); }
.mod-photos figure { margin: 0; display: grid; gap: var(--s2); padding: var(--s2); }
.mod-photos img, .mod-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--r-sm); }
.mod-preview { max-width: 280px; }
.notice-card { background: color-mix(in srgb, var(--accent, #B03B21) 10%, var(--paper)); }
.melden-btn { margin-top: var(--s2); }
