/* =========================================================
   Wir sind Wördern – Weiß · Orange · Rot
   ========================================================= */
:root {
  /* Pastell: Apricot · Rosé · Flieder auf weichem Weiß */
  --bg: #ffffff;
  --bg-soft: #fbf7fb;
  --surface: #ffffff;
  --ink: #2e2433;
  --ink-soft: #6f6475;
  --line: #ece3ef;
  --rot: #c4506d;
  --rot-tief: #3d2d48;
  --orange: #d9774a;
  --orange-hell: #ffd0b3;
  --orange-soft: #fcf0ec;
  --auf-verlauf: #33203a;
  --verlauf: linear-gradient(100deg, #f7a072 0%, #f29bb0 52%, #c3a6ef 100%);
  --verlauf-titel: linear-gradient(100deg, #ffe0cc 0%, #ffb896 20%, #ffa3bd 45%, #d9c2ff 70%, #ffcfb3 88%, #ffe0cc 100%);
  --schatten: 0 1px 2px rgba(60, 30, 70, .06), 0 8px 24px rgba(60, 30, 70, .08);
  --schatten-gross: 0 4px 10px rgba(60, 30, 70, .08), 0 22px 50px rgba(60, 30, 70, .16);
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16131a; --bg-soft: #1d1922; --surface: #24202a; --ink: #f4eef7; --ink-soft: #b5aabc; --line: #3a3242;
    --rot: #f4a3b8; --rot-tief: #3d2d48; --orange: #ffb48a; --orange-hell: #ffd0b0; --orange-soft: #33283a; --auf-verlauf: #2a1a30;
    --schatten: 0 1px 2px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.35); --schatten-gross: 0 4px 10px rgba(0,0,0,.5), 0 22px 50px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16131a; --bg-soft: #1d1922; --surface: #24202a; --ink: #f4eef7; --ink-soft: #b5aabc; --line: #3a3242;
  --rot: #f4a3b8; --rot-tief: #3d2d48; --orange: #ffb48a; --orange-hell: #ffd0b0; --orange-soft: #33283a; --auf-verlauf: #2a1a30;
  --schatten: 0 1px 2px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.35); --schatten-gross: 0 4px 10px rgba(0,0,0,.5), 0 22px 50px rgba(0,0,0,.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background-color .4s var(--ease), color .4s var(--ease); }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Banner ---------- */
.hero { position: relative; min-height: clamp(540px, 82vh, 780px); display: flex; flex-direction: column; color: #fff; overflow: hidden; isolation: isolate; background: #2e2433; }
.hero-foto { position: absolute; inset: 0; z-index: -2; }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform-origin: 60% 70%; animation: kamera 28s var(--ease) both; }
@keyframes kamera { from { transform: scale(1.16); } to { transform: scale(1.02); } }
/* Foto ohne Farbverlauf – nur eine gleichmäßige, leichte Abdunkelung für die Lesbarkeit */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .22); }
.hero > .wrap { width: 100%; }
.hero-oben { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 20px 28px 0; }
.ortmarke { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.ortmarke img { width: 44px; height: auto; flex: none; filter: drop-shadow(0 3px 8px rgba(0,0,0,.45)); }
.glas { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 15px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, transform .2s var(--ease); }
.glas:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); }
.glas svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.glas:hover svg { transform: rotate(40deg); }
.hero-inhalt { margin-top: auto; padding-bottom: 92px; }
.hero h1 {
  font-family: var(--serif); font-weight: 800; font-size: clamp(52px, 10.5vw, 128px); line-height: .95; margin: 0 0 18px; letter-spacing: -.02em;
  background: var(--verlauf-titel); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)) drop-shadow(0 6px 24px rgba(0,0,0,.55)); animation: einblenden .9s var(--ease) .1s both, glanz 9s ease-in-out 1s infinite;
}
@keyframes glanz { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero p { margin: 0; max-width: 620px; font-size: clamp(17px, 2vw, 20px); font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 2px 16px rgba(0,0,0,.6); animation: einblenden .9s var(--ease) .3s both; }
.zahlen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; animation: einblenden .9s var(--ease) .5s both; }
.zahlen span { background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 6px 14px; font-size: 14.5px; }
.zahlen b { font-weight: 800; margin-right: 4px; color: var(--orange-hell); }
.fotonachweis { position: absolute; right: 14px; bottom: 14px; font-size: 11px; color: rgba(255,255,255,.75); text-decoration: none; z-index: 2; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.fotonachweis:hover { color: #fff; text-decoration: underline; }
@keyframes einblenden { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Suchleiste (schwebt über dem Bannerrand) ---------- */
.werkzeug { position: sticky; top: 10px; z-index: 20; margin-top: -58px; }
.panel { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--schatten-gross); padding: 14px; display: grid; gap: 12px; }
.suchzeile { display: flex; gap: 10px; }
.suchfeld { position: relative; flex: 1; min-width: 0; }
.suchfeld svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--orange); pointer-events: none; }
.suche, .ortwahl { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; transition: border-color .2s, box-shadow .2s; }
.suche { width: 100%; font-size: 17px; padding-left: 46px; }
.suche:focus, .ortwahl:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 22%, transparent); }
.ortwahl { flex: none; max-width: 40%; cursor: pointer; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.chip { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px 7px 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .25s, color .25s; }
.chip .e { font-size: 17px; line-height: 1; transition: transform .35s var(--ease); }
.chip:hover { border-color: var(--orange); transform: translateY(-1px); }
.chip:hover .e { transform: scale(1.25) rotate(-8deg); }
.chip:active { transform: scale(.96); }
.chip small { font-weight: 500; opacity: .6; }
.chip[aria-pressed="true"] { background: var(--verlauf); border-color: transparent; color: var(--auf-verlauf); box-shadow: 0 6px 16px color-mix(in srgb, var(--rot) 35%, transparent); }
.chip[aria-pressed="true"] small { opacity: .85; }

/* ---------- Inhalt ---------- */
main { padding: 48px 0 80px; }
.trefferinfo { margin: 0 0 28px; font-size: 17px; color: var(--ink-soft); animation: einblenden .4s var(--ease) both; }
.trefferinfo b { color: var(--ink); }
.kategorie { margin-bottom: 64px; scroll-margin-top: 170px; }
.kat-kopf { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.kat-emoji { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: var(--orange-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 25%, transparent); transition: transform .5s var(--ease); }
.kategorie:hover .kat-emoji { transform: rotate(-8deg) scale(1.06); }
.kat-titel { flex: 1 1 280px; min-width: 0; }
.kat-titel h2 { font-family: var(--serif); font-weight: 800; font-size: 32px; line-height: 1.1; margin: 0; }
.kat-titel p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }
.anzahl { font-size: 13.5px; font-weight: 700; color: var(--rot); background: color-mix(in srgb, var(--rot) 10%, transparent); padding: 5px 12px; border-radius: 999px; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 20px; }

.kachel {
  --i: 0; position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--schatten);
  opacity: 0; transform: translateY(26px) scale(.98);
  transition: opacity .6s var(--ease) calc(var(--i) * 55ms), transform .6s var(--ease) calc(var(--i) * 55ms), box-shadow .3s var(--ease), border-color .3s;
}
.kachel.da { opacity: 1; transform: none; }
.kachel.da:hover { transform: translateY(-6px); box-shadow: var(--schatten-gross); border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); transition-delay: 0s; }
.kachel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--verlauf); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.kachel:hover::after { transform: scaleX(1); }
.kachel-bild { position: relative; aspect-ratio: 16 / 10; background: var(--orange-soft); overflow: hidden; }
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.kachel:hover .kachel-bild img { transform: scale(1.07); }
.platzhalter { position: absolute; inset: 0; display: grid; place-items: center; }
.platzhalter::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 15%, rgba(255,255,255,.35), transparent 50%), repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 14px, transparent 14px 28px); }
.platzhalter span { position: relative; font-size: 58px; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0,0,0,.18)); transition: transform .5s var(--ease); }
.kachel:hover .platzhalter span { transform: scale(1.15) rotate(-6deg); }
.kachel-ort { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.94); color: #5a3a63; padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.kachel-text { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.kachel h3 { margin: 0; font-size: 16.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.branche { font-size: 13.5px; color: var(--orange); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kachel .text { font-size: 14px; color: var(--ink-soft); margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.domain { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--ink-soft); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.domain span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfeil { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--rot); font-weight: 800; transition: transform .35s var(--ease), background .3s, color .3s; }
.kachel:hover .pfeil { background: var(--verlauf); color: var(--auf-verlauf); transform: rotate(45deg); }

.mehr { display: flex; align-items: center; gap: 8px; margin: 26px auto 0; font: inherit; font-weight: 700; font-size: 15px; color: var(--rot); background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--rot) 45%, var(--line)); border-radius: 999px; padding: 10px 22px; cursor: pointer; transition: transform .2s var(--ease), background .25s, color .25s; }
.mehr:hover { background: var(--verlauf); color: var(--auf-verlauf); border-color: transparent; transform: translateY(-2px); }

.leer { text-align: center; color: var(--ink-soft); padding: 70px 0; font-size: 18px; }
.leer .gross { display: block; font-size: 54px; margin-bottom: 10px; animation: wackeln 2.4s ease-in-out infinite; }
@keyframes wackeln { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }

/* ---------- Fuß ---------- */
footer { position: relative; background: var(--bg-soft); padding: 40px 0 46px; color: var(--ink-soft); font-size: 14px; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--verlauf); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer .marke { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; font-size: 15px; }
footer .marke img { width: 34px; }
footer a { color: var(--rot); }
.oben-knopf { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--verlauf); color: var(--auf-verlauf); font-size: 22px; cursor: pointer; box-shadow: var(--schatten-gross); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.oben-knopf.zeigen { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .hero-oben { padding: 14px 14px 0; }
  .ortmarke { font-size: 14px; }
  .ortmarke img { width: 36px; }
  .hero { min-height: 560px; }
  .hero-foto img { object-position: 40% 60%; }
  .hero-inhalt { padding-bottom: 84px; }
  .glas .label { display: none; }
  .werkzeug { top: 6px; margin-top: -50px; }
  .panel { padding: 10px; border-radius: 18px; gap: 10px; }
  .suchzeile { flex-direction: column; gap: 8px; }
  .ortwahl { max-width: none; padding: 10px 14px; }
  .suche { font-size: 16px; padding-top: 11px; padding-bottom: 11px; }
  main { padding-top: 34px; }
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kachel-text { padding: 10px 12px 12px; }
  .kachel h3 { font-size: 15px; }
  .kachel .text { display: none; }
  .platzhalter span { font-size: 42px; }
  .kat-emoji { width: 48px; height: 48px; font-size: 25px; border-radius: 15px; }
  .kat-titel h2 { font-size: 25px; }
  .pfeil { width: 24px; height: 24px; }
}
@media (max-width: 360px) { .raster { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .kachel { opacity: 1; transform: none; }
}

/* ---------- Karte ---------- */
.kartenbereich { margin-bottom: 64px; }
.karten-kopf { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.mehr.klein { margin: 0; padding: 8px 16px; font-size: 14px; }
.karte-rahmen { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--schatten-gross); transition: height .5s var(--ease), opacity .4s; height: min(62vh, 560px); position: relative; }
.karte-rahmen.zu { height: 0; opacity: 0; border-width: 0; }
.karte { width: 100%; height: 100%; background: var(--orange-soft); }
.leaflet-container { font-family: var(--sans); }
.pin-huelle { background: none; border: 0; }
.pin { --f: #f7a072; position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--f); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); transition: transform .25s var(--ease); transform-origin: 50% 125%; animation: pinFall .5s var(--ease) both; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); border: 7px solid transparent; border-top: 9px solid #fff; }
.pin::before { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 5px solid transparent; border-top: 6px solid var(--f); z-index: 1; }
.pin span { font-size: 19px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.pin-huelle:hover .pin, .pin-huelle:focus .pin { transform: translateY(-4px) scale(1.12); }
.pin-huelle:hover { z-index: 9999 !important; }
@keyframes pinFall { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: none; } }
.legende { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 14px; padding: 8px; box-shadow: var(--schatten-gross); max-height: 230px; overflow-y: auto; display: grid; gap: 2px; }
.legende-zeile { display: flex; align-items: center; gap: 8px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); background: none; border: 0; border-radius: 8px; padding: 4px 8px; cursor: pointer; text-align: left; white-space: nowrap; }
.legende-zeile:hover { background: var(--orange-soft); }
.legende-zeile i { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.legende-zeile small { margin-left: auto; padding-left: 8px; color: var(--ink-soft); }
@media (max-width: 640px) { .legende { max-height: 140px; } .legende-zeile { font-size: 11.5px; } }
.cluster { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--auf-verlauf); font-weight: 800; background: var(--verlauf); border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.leaflet-popup-content-wrapper { border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--schatten-gross); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 12px 14px; min-width: 190px; }
.popup b { display: block; font-size: 15px; margin-bottom: 2px; }
.popup small { color: var(--ink-soft); display: block; margin-bottom: 8px; }
.popup button { font: inherit; font-weight: 700; font-size: 14px; color: var(--auf-verlauf); background: var(--verlauf); border: 0; border-radius: 10px; padding: 7px 12px; cursor: pointer; width: 100%; }
.leaflet-control-attribution { font-size: 10px; }
:root[data-theme="dark"] .leaflet-control-attribution, :root[data-theme="dark"] .leaflet-bar a { background: #221814; color: #bea99c; }

/* ---------- Detailansicht ---------- */
.detail { border: 0; padding: 0; width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 20px); border-radius: 26px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,.45); overflow: hidden auto; }
.detail[open] { animation: detailAuf .45s var(--ease) both; }
.detail::backdrop { background: rgba(25, 10, 4, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: dunkelAuf .3s both; }
@keyframes detailAuf { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dunkelAuf { from { opacity: 0; } to { opacity: 1; } }
.detail-bild { position: relative; aspect-ratio: 16 / 8; background: var(--orange-soft); overflow: hidden; }
.detail-bild img { width: 100%; height: 100%; object-fit: cover; animation: kamera 14s var(--ease) both; }
.detail-bild .platzhalter span { font-size: 84px; }
.zu-knopf { position: absolute; right: 14px; top: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 20px; cursor: pointer; backdrop-filter: blur(6px); transition: transform .25s var(--ease), background .2s; }
.zu-knopf:hover { background: rgba(0,0,0,.65); transform: rotate(90deg); }
.detail-text { padding: 22px 26px 26px; display: grid; gap: 18px; }
.detail-marken { display: flex; flex-wrap: wrap; gap: 8px; }
.marke-kat, .marke-ort { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.marke-kat { background: var(--orange-soft); color: var(--orange); }
.marke-ort { background: color-mix(in srgb, var(--rot) 10%, transparent); color: var(--rot); }
.detail h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(26px, 5vw, 34px); line-height: 1.1; margin: 0; }
.detail .branche { white-space: normal; font-size: 15px; margin-top: 6px; }
.detail .beschr { margin: 0; font-size: 16px; color: var(--ink-soft); }
.block h3 { margin: 0 0 10px; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 14px; padding: 5px 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); }
.tag-neu { animation: einblenden .4s var(--ease) both; }
.sterne { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.stern { font-size: 30px; line-height: 1; border: 0; background: none; padding: 2px; cursor: pointer; color: var(--line); transition: transform .2s var(--ease), color .2s; }
.stern.an { color: #f5a300; }
.stern:hover { transform: scale(1.25) rotate(-8deg); }
.sterne-info { margin-left: 10px; font-size: 14.5px; color: var(--ink-soft); }
.sterne-info b { color: var(--ink); font-size: 18px; }
.danke { font-size: 14px; color: #2b8a3e; font-weight: 600; animation: einblenden .4s var(--ease) both; }
.kontakt { display: grid; gap: 10px; }
.kontakt a, .kontakt div { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
.kontakt a:hover { border-color: var(--orange); transform: translateX(3px); }
.kontakt .ic { font-size: 20px; }
.mini-karte { height: 200px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.detail-aktionen { display: flex; gap: 10px; flex-wrap: wrap; }
.knopf-gross { flex: 1 1 200px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border-radius: 14px; padding: 14px 18px; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.knopf-gross.haupt { color: var(--auf-verlauf); background: var(--verlauf); border: 0; box-shadow: 0 10px 24px color-mix(in srgb, var(--rot) 35%, transparent); }
.knopf-gross.zweit { color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); }
.knopf-gross:hover { transform: translateY(-2px); }
.kachel-sterne { font-size: 12.5px; font-weight: 700; color: #c08a2e; }
@media (max-width: 640px) {
  .karte-rahmen { height: 56vh; border-radius: 18px; }
  .detail { width: 100vw; max-height: 92vh; border-radius: 24px 24px 0 0; margin: auto 0 0; }
  .detail[open] { animation-name: detailHoch; }
  @keyframes detailHoch { from { transform: translateY(100%); } to { transform: none; } }
  .detail-text { padding: 18px 18px 24px; }
}

/* ---------- Hinweis (Live-Aktualisierung) ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 50; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14.5px; padding: 10px 18px; border-radius: 999px; box-shadow: var(--schatten-gross); transition: opacity .3s, transform .45s var(--ease); }
.toast.zeigen { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Kartenstil (hell & dunkel) ---------- */
.leaflet-tile-pane { filter: saturate(.85) sepia(.08) contrast(1.02); transition: filter .4s; }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) sepia(.35) saturate(1.3) hue-rotate(-12deg) brightness(.82) contrast(.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) sepia(.35) saturate(1.3) hue-rotate(-12deg) brightness(.82) contrast(.92); } }
.karte, .mini-karte, .ort-karte { background: var(--bg-soft); }
.leaflet-bar { border: 0 !important; border-radius: 14px !important; overflow: hidden; box-shadow: var(--schatten-gross) !important; }
.leaflet-bar a { width: 38px !important; height: 38px !important; line-height: 38px !important; font-size: 20px !important; background: var(--surface) !important; color: var(--ink) !important; border-bottom: 1px solid var(--line) !important; transition: background .2s, color .2s; }
.leaflet-bar a:hover { background: var(--verlauf) !important; color: var(--auf-verlauf) !important; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 85%, transparent) !important; color: var(--ink-soft) !important; border-radius: 8px 0 0 0; backdrop-filter: blur(6px); }
.leaflet-control-attribution a { color: var(--rot) !important; }
.karte-rahmen::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 18%, transparent), inset 0 0 40px rgba(0,0,0,.06); z-index: 500; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface) !important; color: var(--ink) !important; }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-soft); }

/* Breite Detailansicht: zweispaltig */
.mini-karte { height: 240px; }
@media (min-width: 860px) {
  .detail-bild { aspect-ratio: 16 / 6; }
  .detail-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 32px; padding: 26px 32px 30px;
    grid-template-areas: "marken marken" "titel titel" "beschr beschr" "tags wo" "bew wo" "akt akt"; }
  .detail-marken { grid-area: marken; } .d-titel { grid-area: titel; } .detail .beschr { grid-area: beschr; }
  .b-tags { grid-area: tags; } .b-bew { grid-area: bew; } .b-wo { grid-area: wo; } .detail-aktionen { grid-area: akt; }
  .b-wo { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; padding: 16px; align-self: start; }
  .b-wo .kontakt a { background: var(--surface); }
  .detail-aktionen { justify-content: flex-end; } .detail-aktionen .knopf-gross { flex: 0 1 240px; }
}
