/* =========================================================
   Wir sind Wördern – Pastell: Apricot · Rosé · Flieder auf weichem Weiß
   ========================================================= */
:root {
  --bg: #fdf8f6;
  --bg-soft: #f8f0f1;
  --surface: #ffffff;
  --ink: #2b2230;
  --ink-soft: #66596b;
  --ink-leise: #8a7e8e;
  --line: #ebdfe4;
  --line-stark: #dccbd3;

  --apricot: #f7a072;
  --apricot-soft: #fdeee4;
  --apricot-text: #9c4a27;
  --rose: #ef8ba6;
  --rose-soft: #fcebf0;
  --rose-text: #a8385a;
  --flieder: #b89cef;
  --flieder-soft: #f1ebfd;
  --flieder-text: #5f48a6;
  --stern: #e39a1c;
  --gut: #2c7a47;
  --schlecht: #b3263e;

  --auf-verlauf: #2e1d33;
  --verlauf: linear-gradient(100deg, #f7a072 0%, #f29bb0 52%, #c3a6ef 100%);
  --fokus: #a8385a;
  --schatten: 0 1px 2px rgba(60, 30, 70, .05), 0 4px 14px rgba(60, 30, 70, .06);
  --schatten-hoch: 0 2px 6px rgba(60, 30, 70, .07), 0 16px 36px rgba(60, 30, 70, .12);
  --radius: 16px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", "P052", 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: #151218; --bg-soft: #1b171f; --surface: #221d27; --ink: #f3edf5; --ink-soft: #bcb0c1; --ink-leise: #988c9d; --line: #352d3b; --line-stark: #4a3f52;
    --apricot-soft: #3a2a25; --apricot-text: #ffbf9b; --rose-soft: #3b2430; --rose-text: #f6abc0; --flieder-soft: #2b2540; --flieder-text: #cfbcff;
    --stern: #f2b544; --gut: #7fd39a; --schlecht: #ff8fa0; --fokus: #f6abc0;
    --schatten: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.25); --schatten-hoch: 0 2px 6px rgba(0,0,0,.45), 0 16px 36px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151218; --bg-soft: #1b171f; --surface: #221d27; --ink: #f3edf5; --ink-soft: #bcb0c1; --ink-leise: #988c9d; --line: #352d3b; --line-stark: #4a3f52;
  --apricot-soft: #3a2a25; --apricot-text: #ffbf9b; --rose-soft: #3b2430; --rose-text: #f6abc0; --flieder-soft: #2b2540; --flieder-text: #cfbcff;
  --stern: #f2b544; --gut: #7fd39a; --schlecht: #ff8fa0; --fokus: #f6abc0;
  --schatten: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.25); --schatten-hoch: 0 2px 6px rgba(0,0,0,.45), 0 16px 36px rgba(0,0,0,.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }
html.dialog-offen { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--fokus); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 10px; box-shadow: var(--schatten-hoch); font-weight: 600; }
.skip:focus { top: 12px; }
mark.fehlt { background: #fff1c2; color: #6b4b00; padding: 1px 6px; border-radius: 5px; font-weight: 600; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: 15px; line-height: 1.2; text-decoration: none; border-radius: 12px; padding: 12px 18px; cursor: pointer; border: 1px solid transparent; transition: background-color .15s, border-color .15s, transform .15s var(--ease); min-height: 46px; }
.knopf:active { transform: translateY(1px); }
.knopf.haupt { background: var(--verlauf); color: var(--auf-verlauf); }
.knopf.haupt:hover { filter: saturate(1.15) brightness(1.02); }
.knopf.zweit { background: var(--surface); color: var(--ink); border-color: var(--line-stark); }
.knopf.zweit:hover { border-color: var(--rose-text); }
.knopf:disabled { opacity: .6; cursor: wait; }
.link-knopf { background: none; border: 0; padding: 0; color: var(--rose-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; text-align: left; }
.link-knopf:hover { text-decoration-thickness: 2px; }

/* ---------- Kopf mit Banner ---------- */
.kopf { position: relative; display: flex; flex-direction: column; min-height: clamp(360px, 46vh, 440px); color: #fff; isolation: isolate; background: #3a2a40; overflow: hidden; }
.kopf-foto { position: absolute; inset: 0; z-index: -2; }
.kopf-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }
.kopf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28, 16, 34, .38) 0%, rgba(28, 16, 34, .08) 30%, rgba(28, 16, 34, .2) 55%, rgba(28, 16, 34, .72) 100%); }
.kopf-leiste { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; max-width: 1200px; margin: 0 auto; padding: 18px 24px 0; }
.ortmarke { display: inline-flex; align-items: center; gap: 11px; font-weight: 650; font-size: 15px; text-decoration: none; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.ortmarke img { width: 38px; height: auto; flex: none; filter: drop-shadow(0 2px 5px rgba(0,0,0,.35)); }
.kopf-knoepfe { display: flex; gap: 8px; }
.glas { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(30, 18, 36, .32); border: 1px solid rgba(255,255,255,.34); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .15s; }
.glas:hover { background: rgba(30, 18, 36, .5); }
.glas .ic { width: 18px; height: 18px; }
.thema-ic { display: inline-flex; }
.kopf-inhalt { width: 100%; margin-top: auto; padding-top: 28px; padding-bottom: 76px; }
.kopf h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 6.2vw, 74px); line-height: 1; letter-spacing: -.015em; margin: 0 0 14px; text-shadow: 0 2px 18px rgba(20, 8, 26, .45); }
.einleitung { margin: 0; max-width: 600px; font-size: clamp(16.5px, 1.7vw, 19px); line-height: 1.5; font-weight: 500; text-shadow: 0 1px 10px rgba(20, 8, 26, .6); }
.kennzahlen { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; font-size: 14.5px; color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.kennzahlen b { font-weight: 750; color: #fff; }
.kennzahlen span + span::before { content: "·"; margin-right: 18px; opacity: .7; }
.fotonachweis { position: absolute; right: 14px; bottom: 50px; font-size: 11px; color: rgba(255,255,255,.72); text-decoration: none; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.fotonachweis:hover { color: #fff; text-decoration: underline; }

/* ---------- Suche & Filter (klebt oben) ---------- */
.werkzeug { position: sticky; top: 0; z-index: 30; margin-top: -40px; padding-top: 10px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--schatten-hoch); padding: 12px; display: grid; gap: 10px; margin: 0; }
.panel > * { min-width: 0; }
.suchzeile { display: flex; gap: 8px; }
.suchfeld { position: relative; flex: 1; min-width: 0; display: block; }
.such-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--rose-text); pointer-events: none; display: flex; }
.such-ic .ic { width: 20px; height: 20px; }
.suche, .ortwahl { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-stark); border-radius: 12px; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
.suche { width: 100%; font-size: 17px; padding: 11px 44px 11px 46px; -webkit-appearance: none; appearance: none; }
.suche::-webkit-search-cancel-button { display: none; }
.suche::placeholder { color: var(--ink-leise); }
.suche:focus, .ortwahl:focus { border-color: var(--rose-text); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 30%, transparent); }
.leeren { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--ink-soft); cursor: pointer; }
.leeren:hover { background: var(--bg-soft); color: var(--ink); }
.ortwahl-huelle { flex: none; display: block; }
.ortwahl { padding: 0 34px 0 14px; cursor: pointer; font-size: 15px; height: 100%; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23887a8c' 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 10px center; background-size: 16px; }
.karten-knopf { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-stark); background: var(--bg); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.karten-knopf .kk-ic { display: flex; color: var(--flieder-text); }
.karten-knopf:hover { border-color: var(--flieder-text); }
.karten-knopf[aria-pressed="true"] { background: var(--flieder-soft); border-color: color-mix(in srgb, var(--flieder-text) 45%, transparent); color: var(--flieder-text); }
.chips-huelle { position: relative; margin: 0 -12px; }
.chips-huelle::after { content: ""; position: absolute; right: 0; top: 0; bottom: 4px; width: 36px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--surface)); border-radius: 0 20px 20px 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 36px 4px 12px; scrollbar-width: none; scroll-padding: 0 40px; }
.chips::-webkit-scrollbar { display: none; }
.chip { --f: #c3a6ef; flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; padding: 6px 12px 6px 10px; min-height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s; white-space: nowrap; }
.chip .ic { width: 17px; height: 17px; color: color-mix(in srgb, var(--f) 55%, var(--ink)); }
.chip:hover { border-color: var(--line-stark); background: var(--bg-soft); }
.chip small { font-weight: 500; font-size: 12.5px; color: var(--ink-leise); }
.chip[aria-pressed="true"] { background: var(--rose-soft); border-color: color-mix(in srgb, var(--rose-text) 50%, transparent); color: var(--rose-text); }
.chip[aria-pressed="true"] .ic { color: var(--rose-text); }
.chip[aria-pressed="true"] small { color: var(--rose-text); opacity: .8; }

/* ---------- Ergebnis & Inhalt ---------- */
main { padding: 26px 0 72px; min-height: 60vh; }
.ergebnis-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 26px; }
.ergebnis-text { margin: 0; font-size: 15.5px; color: var(--ink-soft); min-height: 1.5em; }
.ergebnis-text b { color: var(--ink); font-weight: 700; }
.hinweis-woerter { color: var(--flieder-text); }
.zuruecksetzen { background: none; border: 0; padding: 4px 0; color: var(--rose-text); font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.kategorie { margin-bottom: 56px; scroll-margin-top: 170px; }
.kat-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.kat-ic { --f: #c3a6ef; flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--f) 26%, var(--surface)); color: color-mix(in srgb, var(--f) 45%, var(--ink)); }
.kat-ic .ic { width: 24px; height: 24px; }
.kat-titel { flex: 1; min-width: 0; }
.kat-titel h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(23px, 2.6vw, 28px); line-height: 1.15; margin: 0; letter-spacing: -.005em; }
.kat-titel p { margin: 3px 0 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; }
.anzahl { flex: none; align-self: flex-start; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.schlau .kat-ic { background: var(--flieder-soft); color: var(--flieder-text); }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.kachel { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--schatten); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.kachel:hover { border-color: var(--line-stark); box-shadow: var(--schatten-hoch); transform: translateY(-2px); }
.kachel:focus-visible { outline-offset: 3px; }
.kachel-bild { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; border-bottom: 1px solid var(--line); }
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; }
.platzhalter { --f: #c3a6ef; position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--f) 22%, var(--surface)); color: color-mix(in srgb, var(--f) 50%, var(--ink)); }
.platzhalter .mono { font-family: var(--serif); font-weight: 700; font-size: 46px; line-height: 1; letter-spacing: .02em; color: color-mix(in srgb, var(--f) 38%, var(--ink)); opacity: .85; }
.platzhalter .ic { position: absolute; left: 12px; bottom: 11px; width: 20px; height: 20px; opacity: .75; }
.kachel-text { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.kachel h3 { margin: 0; font-size: 16.5px; line-height: 1.3; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.branche { margin: 0; font-size: 13.5px; color: var(--apricot-text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kachel .text { font-size: 14px; color: var(--ink-soft); margin: 4px 0 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kachel-meta { margin: auto 0 0; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-leise); }
.meta-ort { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.meta-ort .ic { width: 14px; height: 14px; }
.mini-sterne { display: inline-flex; align-items: center; gap: 3px; font-weight: 650; color: var(--ink-soft); flex: none; }
.mini-sterne .ic { width: 14px; height: 14px; color: var(--stern); fill: currentColor; }
.mini-sterne small { font-weight: 500; color: var(--ink-leise); font-size: 12px; }

.mehr { display: flex; align-items: center; gap: 8px; margin: 22px auto 0; font-weight: 600; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-stark); border-radius: 999px; padding: 10px 20px; min-height: 44px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.mehr:hover { border-color: var(--rose-text); color: var(--rose-text); }
.mehr .ic { width: 18px; height: 18px; }

/* Ladezustand */
.skelett .sk-kopf { height: 46px; width: min(360px, 70%); border-radius: 12px; margin-bottom: 18px; }
.sk-kopf, .sk-karte { background: linear-gradient(90deg, var(--bg-soft) 0%, color-mix(in srgb, var(--line) 70%, var(--bg-soft)) 50%, var(--bg-soft) 100%); background-size: 200% 100%; animation: schimmer 1.4s linear infinite; }
.sk-karte { height: 290px; border-radius: var(--radius); }
@keyframes schimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.schlau-lade { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); margin: 0 0 28px; font-size: 15px; }
.dreher { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-stark); border-top-color: var(--flieder-text); animation: drehen .8s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* Leere Zustände */
.leer { text-align: center; color: var(--ink-soft); padding: 48px 16px 56px; max-width: 560px; margin: 0 auto; }
.leer-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--flieder-soft); color: var(--flieder-text); }
.leer-ic .ic { width: 30px; height: 30px; }
.leer h2 { font-family: var(--serif); color: var(--ink); font-size: 24px; line-height: 1.2; margin: 0 0 8px; overflow-wrap: anywhere; }
.leer p { margin: 0 0 18px; }
.leer-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.leer-klein { margin-top: 22px !important; font-size: 15px; }
.ohne-js { padding: 10px 0; }
.ohne-js h2 { font-family: var(--serif); font-size: 22px; margin: 28px 0 8px; }
.ohne-js ul { padding-left: 20px; }

/* ---------- Karte ---------- */
.kartenbereich { margin: -8px 0 40px; }
.kartenbereich[hidden] { display: none; }
.karte-rahmen { position: relative; height: min(62vh, 540px); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--schatten); }
.karte { width: 100%; height: 100%; background: var(--bg-soft); }
.karten-info { margin: 10px 2px 0; font-size: 14px; color: var(--ink-soft); }
.leaflet-container { font-family: var(--sans); background: var(--bg-soft); }
.pin-huelle { background: none; border: 0; }
.pin { --f: #f7a072; position: relative; width: 36px; height: 36px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; background: color-mix(in srgb, var(--f) 55%, #fff); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(40, 20, 50, .35); transition: transform .15s var(--ease); margin-top: 2px; }
.pin .ic { width: 18px; height: 18px; transform: rotate(45deg); color: #2e2233; }
.pin-huelle:hover .pin, .pin-huelle:focus-visible .pin { transform: rotate(-45deg) scale(1.12); }
.cluster { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 3px solid #f2a7bc; box-shadow: 0 2px 8px rgba(40, 20, 50, .3); color: var(--ink); font-weight: 750; font-size: 14px; }
.pin-huelle:hover .cluster { border-color: #c3a6ef; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--schatten-hoch); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface) !important; color: var(--ink) !important; }
.leaflet-popup-content { margin: 12px 14px; min-width: 200px; line-height: 1.4; }
.popup b { display: block; font-size: 15px; margin-bottom: 2px; }
.popup small { color: var(--ink-soft); display: block; margin-bottom: 10px; font-size: 13px; }
.popup-knopf { font-weight: 650; font-size: 14px; color: var(--rose-text); background: var(--rose-soft); border: 0; border-radius: 9px; padding: 8px 12px; cursor: pointer; width: 100%; }
.popup-liste { display: grid; gap: 2px; max-height: 240px; overflow: auto; }
.popup-liste b { margin-bottom: 6px; }
.popup-zeile { text-align: left; background: none; border: 0; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink); }
.popup-zeile:hover { background: var(--bg-soft); }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-soft); }
.leaflet-bar { border: 1px solid var(--line) !important; border-radius: 12px !important; overflow: hidden; box-shadow: var(--schatten) !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; }
.leaflet-bar a:hover { background: var(--bg-soft) !important; }
.leaflet-control-attribution { font-size: 10.5px; background: color-mix(in srgb, var(--surface) 88%, transparent) !important; color: var(--ink-soft) !important; }
.leaflet-control-attribution a { color: var(--rose-text) !important; }
.leaflet-tile-pane { filter: saturate(.8) sepia(.06); }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); } }

/* ---------- Detailansicht ---------- */
.detail { border: 0; padding: 0; width: min(980px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(20, 8, 26, .4); overflow: hidden auto; overscroll-behavior: contain; }
.detail[open] { animation: detailAuf .28s var(--ease) both; }
.detail::backdrop { background: rgba(28, 14, 34, .5); }
@keyframes detailAuf { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.d-leiste { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 12px 24px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.marke-kat { --f: #c3a6ef; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 650; padding: 5px 12px 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--f) 24%, var(--surface)); color: color-mix(in srgb, var(--f) 40%, var(--ink)); }
.marke-kat .ic { width: 16px; height: 16px; }
.zu-knopf { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.zu-knopf:hover { background: var(--bg-soft); }
.zu-knopf .ic { width: 20px; height: 20px; }
.d-raster { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "haupt seite" "rest seite"; grid-template-rows: auto 1fr; gap: 22px 28px; padding: 24px 26px 28px; }
.d-haupt { grid-area: haupt; display: grid; gap: 18px; align-content: start; min-width: 0; }
.d-rest { grid-area: rest; display: grid; gap: 22px; align-content: start; min-width: 0; }
.d-seite { grid-area: seite; }
.d-bild { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); max-width: 520px; }
.d-bild img { width: 100%; height: 100%; object-fit: cover; }
.d-titel h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 4vw, 34px); line-height: 1.12; margin: 0; overflow-wrap: anywhere; }
.d-titel .branche { white-space: normal; font-size: 15px; margin-top: 6px; }
.d-ort { display: flex; align-items: center; gap: 5px; margin: 6px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.d-ort .ic { width: 15px; height: 15px; }
.beschr { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 62ch; }
.block h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tag { font-size: 14px; padding: 5px 11px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); cursor: pointer; transition: border-color .15s; }
.tag:hover { border-color: var(--rose-text); color: var(--rose-text); }
.sterne-zeile { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.sterne { display: flex; gap: 2px; }
.stern { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; padding: 0; cursor: pointer; color: var(--line-stark); border-radius: 10px; transition: color .12s, transform .12s; }
.stern .ic { width: 28px; height: 28px; fill: transparent; stroke-width: 1.6; }
.stern.an { color: var(--stern); }
.stern.an .ic { fill: currentColor; }
.stern:hover { transform: scale(1.1); }
.sterne-info { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.sterne-info b { color: var(--ink); font-size: 17px; }
.bew-meldung { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); min-height: 1.4em; }
.bew-meldung.gut { color: var(--gut); font-weight: 600; }
.bew-meldung.schlecht { color: var(--schlecht); font-weight: 600; }
.d-seite { display: grid; gap: 14px; align-content: start; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.kontakt { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kontakt a { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; min-height: 56px; }
.kontakt a:hover { border-color: var(--rose-text); }
.kontakt .ic { width: 20px; height: 20px; color: var(--rose-text); }
.kontakt a > span { display: grid; min-width: 0; }
.k-wert { font-weight: 600; overflow-wrap: anywhere; line-height: 1.35; }
.k-sub { font-size: 13px; color: var(--ink-soft); }
.mini-karte { height: 210px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.d-aktionen { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.d-aktionen .ic { width: 18px; height: 18px; }
.d-melden { font-size: 13.5px; justify-self: start; color: var(--ink-soft); font-weight: 500; }
.d-klein { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- Formular (Vorschlag) ---------- */
.formular-dlg { border: 0; padding: 0; width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(20, 8, 26, .4); overflow: auto; }
.formular-dlg::backdrop { background: rgba(28, 14, 34, .5); }
.formular-dlg[open] { animation: detailAuf .25s var(--ease) both; }
.formular { display: flex; flex-direction: column; margin: 0; }
.fd-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 6px 22px; }
.fd-kopf h2 { font-family: var(--serif); font-size: 24px; margin: 0; }
.fd-inhalt { padding: 6px 22px 8px; display: grid; gap: 14px; }
.fd-hinweis { margin: 0; color: var(--ink-soft); font-size: 15px; }
.art-wahl { border: 0; margin: 0; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg-soft); border-radius: 12px; }
.art-wahl label { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 42px; padding: 6px 10px; border-radius: 9px; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--ink-soft); }
.art-wahl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.art-wahl label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--schatten); }
.art-wahl label:has(input:focus-visible) { outline: 2.5px solid var(--fokus); }
.feld { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.feld em { color: var(--rose-text); font-style: normal; }
.feld small { font-weight: 400; color: var(--ink-soft); }
.feld input, .feld select, .feld textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-stark); border-radius: 10px; padding: 10px 12px; min-height: 46px; width: 100%; }
.feld textarea { resize: vertical; min-height: 96px; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--rose-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 30%, transparent); }
.feld [aria-invalid="true"] { border-color: var(--schlecht); }
.feld-reihe { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fd-klein { margin: 0; font-size: 13px; color: var(--ink-soft); }
.fd-klein a { color: var(--rose-text); }
.fd-meldung { margin: 0; font-size: 14.5px; font-weight: 600; min-height: 0; }
.fd-meldung.schlecht { color: var(--schlecht); }
.fd-fuss { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 20px; border-top: 1px solid var(--line); margin-top: 8px; position: sticky; bottom: 0; background: var(--surface); }

/* ---------- Fuß ---------- */
.fuss { position: relative; background: var(--bg-soft); border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--ink-soft); font-size: 14.5px; }
.fuss::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--verlauf); }
.fuss-raster { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.fuss-marke { display: flex; gap: 16px; align-items: flex-start; max-width: 460px; }
.fuss-marke img { width: 48px; flex: none; }
.fuss-marke strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1.2; margin-bottom: 4px; }
.fuss-marke p { margin: 0; }
.fuss-links p { margin: 0 0 6px; }
.fuss-links a { color: var(--rose-text); }
.fuss-links nav { display: flex; gap: 18px; margin-top: 12px; }
.fuss-links nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.fuss-links nav a:hover { color: var(--rose-text); text-decoration: underline; }
.oben-knopf { position: fixed; right: 18px; bottom: 18px; z-index: 25; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-stark); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--schatten-hoch); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.oben-knopf .ic { width: 22px; height: 22px; }
.oben-knopf.zeigen { opacity: 1; transform: none; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14.5px; padding: 11px 18px; border-radius: 12px; box-shadow: var(--schatten-hoch); transition: opacity .2s, transform .3s var(--ease); max-width: calc(100vw - 32px); }
.toast.zeigen { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Unterseiten (Impressum, Datenschutz, Eintrag, 404) ---------- */
.unter-kopf { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); }
.unter-kopf::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--verlauf); }
.unter-kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.unter-kopf .ortmarke { text-shadow: none; color: var(--ink); }
.unter-kopf .ortmarke img { width: 34px; filter: none; }
.unter-kopf .ortmarke strong { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.zurueck-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--rose-text); text-decoration: none; }
.zurueck-link:hover { text-decoration: underline; }
.text-seite { max-width: 760px; padding-top: 40px; padding-bottom: 72px; }
.text-seite h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 8px; }
.text-seite .unterzeile { color: var(--ink-soft); margin: 0 0 32px; }
.text-seite h2 { font-family: var(--serif); font-size: 23px; line-height: 1.25; margin: 36px 0 10px; }
.text-seite h3 { font-size: 16px; margin: 22px 0 6px; }
.text-seite p, .text-seite li { color: var(--ink); max-width: 68ch; }
.text-seite a { color: var(--rose-text); overflow-wrap: anywhere; }
.text-seite .karte-info { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.text-seite .karte-info p { margin: 0; }
.hinweis-box { background: #fff8e1; color: #5a4100; border: 1px solid #f0d98a; border-radius: 12px; padding: 12px 16px; font-size: 14.5px; }
:root[data-theme="dark"] .hinweis-box, :root[data-theme="dark"] mark.fehlt { background: #3b3218; color: #f5dc94; border-color: #6b5a24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hinweis-box, :root:not([data-theme="light"]) mark.fehlt { background: #3b3218; color: #f5dc94; border-color: #6b5a24; } }
.eintrag-seite { padding-top: 32px; padding-bottom: 72px; }
.eintrag-seite .brotkrumen { font-size: 14px; color: var(--ink-soft); margin: 0 0 22px; }
.eintrag-seite .brotkrumen a { color: var(--rose-text); }
.eintrag-raster { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.e-bild { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 22px; max-width: 560px; }
.eintrag-seite h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 42px); line-height: 1.1; margin: 10px 0 6px; overflow-wrap: anywhere; }
.eintrag-raster .d-seite { grid-area: auto; }
.e-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.e-liste li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; }
.e-liste .k { font-size: 13px; color: var(--ink-soft); }
.e-liste a { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .d-raster { grid-template-columns: 1fr; grid-template-areas: "haupt" "seite" "rest"; grid-template-rows: auto; gap: 22px; padding: 18px 16px 24px; }
  .d-bild { max-width: none; aspect-ratio: 16 / 8; }
  .eintrag-raster { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 190px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .unter-kopf .ortmarke strong { font-size: 17px; }
  .zurueck-link { font-size: 13.5px; text-align: right; }
  .kopf { min-height: 330px; }
  .kopf-leiste { padding: 14px 16px 0; }
  .ortmarke { font-size: 14px; gap: 9px; }
  .ortmarke img { width: 32px; }
  .glas .label, .nur-breit { display: none; }
  .glas { padding: 8px 10px; }
  .kopf-inhalt { padding-bottom: 64px; }
  .kopf h1 { margin-bottom: 10px; }
  .einleitung { font-size: 16px; }
  .kennzahlen { font-size: 13.5px; margin-top: 12px; gap: 4px 12px; }
  .kennzahlen span + span::before { margin-right: 12px; }
  .fotonachweis { bottom: 44px; right: 10px; font-size: 10px; }
  .werkzeug { margin-top: -34px; padding-top: 8px; }
  .panel { padding: 10px; border-radius: 18px; gap: 8px; }
  .suchzeile { flex-wrap: wrap; gap: 8px; }
  .suchfeld { flex: 1 1 100%; }
  .suche { font-size: 16px; min-height: 46px; }
  .ortwahl-huelle { flex: 1 1 auto; }
  .ortwahl { width: 100%; min-height: 42px; }
  .karten-knopf { min-height: 42px; }
  .chips-huelle { margin: 0 -10px; }
  .chips { padding: 2px 36px 2px 10px; }
  .chip { min-height: 36px; font-size: 13.5px; }
  main { padding-top: 22px; }
  .ergebnis-kopf { margin-bottom: 20px; }
  .ergebnis-text { font-size: 14.5px; }
  .kategorie { margin-bottom: 44px; }
  .kat-kopf { gap: 12px; margin-bottom: 14px; align-items: flex-start; }
  .kat-ic { width: 40px; height: 40px; border-radius: 11px; }
  .kat-ic .ic { width: 21px; height: 21px; }
  .kat-titel p { font-size: 14px; }
  .anzahl { display: none; }
  .raster { grid-template-columns: 1fr; gap: 10px; }
  /* Am Handy: kompakte Zeilen mit kleinem Bild links – schneller zu überfliegen */
  .kachel { flex-direction: row; border-radius: 14px; }
  .kachel:hover { transform: none; }
  .kachel-bild { flex: none; width: 104px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .kachel-bild img { position: absolute; inset: 0; }
  .platzhalter .mono { font-size: 30px; }
  .platzhalter .ic { display: none; }
  .kachel-text { padding: 11px 13px; gap: 2px; min-width: 0; }
  .kachel h3 { font-size: 15.5px; }
  .branche { font-size: 13px; }
  .kachel .text { display: none; }
  .kachel-meta { padding-top: 6px; font-size: 12.5px; }
  .mehr { width: 100%; justify-content: center; }
  .sk-karte { height: 96px; }
  .karte-rahmen { height: 64vh; border-radius: 16px; }
  .detail { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .detail[open] { animation-name: detailHoch; }
  .d-leiste { padding: 12px 12px 10px 18px; }
  .formular-dlg { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .formular-dlg[open] { animation-name: detailHoch; }
  .fd-inhalt, .fd-kopf { padding-left: 18px; padding-right: 18px; }
  .fd-fuss { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); }
  .fd-fuss .knopf { flex: 1; }
  .feld-reihe { grid-template-columns: 1fr; }
  .fuss-raster { flex-direction: column; }
  .text-seite { padding-top: 28px; }
}
@keyframes detailHoch { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .werkzeug, .oben-knopf, .kopf-knoepfe, .kartenbereich, .fotonachweis { display: none !important; }
  .kopf { min-height: 0; color: var(--ink); background: none; }
  .kopf-foto, .kopf::before { display: none; }
}
