/* Design-Tokens (hell; Dunkel über light-dark(), Fallback = hell) */
:root{
  --bg:#f6f7fb;--surface:#fff;--surface-2:#eef1f7;--text:#14182b;--muted:#5b6380;--line:#dfe3ee;
  --brand:#3a5bff;--brand-2:#14b8c4;--ok:#1f9d63;--err:#d83a52;--glow-1:#3a5bff22;--glow-2:#14b8c422;
  --radius:18px;--shadow:0 10px 30px -12px #1b235066;--tab-h:68px;
  color-scheme:light dark;
}
@supports (color:light-dark(#000,#fff)){
  :root{
    --bg:light-dark(#f6f7fb,#0e1120);--surface:light-dark(#fff,#171b30);--surface-2:light-dark(#eef1f7,#20253f);
    --text:light-dark(#14182b,#eef0fa);--muted:light-dark(#5b6380,#9aa3c4);--line:light-dark(#dfe3ee,#2a3050);
    --brand:light-dark(#3a5bff,#7c93ff);--ok:light-dark(#1f9d63,#43d18d);--err:light-dark(#d83a52,#ff7b90);
    --glow-1:light-dark(#3a5bff22,#3a5bff40);--glow-2:light-dark(#14b8c422,#14b8c433);
    --shadow:0 12px 32px -14px light-dark(#1b235080,#000c);
  }
}
:root[data-theme=light]{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:80px}
body{
  margin:0;min-height:100dvh;color:var(--text);font:400 1.0625rem/1.55 ui-rounded,"SF Pro Rounded",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  background:var(--bg) radial-gradient(60rem 30rem at 0% -10%,var(--glow-1),transparent 60%),radial-gradient(50rem 30rem at 100% 0%,var(--glow-2),transparent 55%) no-repeat;
}
h1{font-size:clamp(1.6rem,4vw,2.1rem);line-height:1.15;margin:.2em 0 .5em;letter-spacing:-.02em}
a{color:var(--brand)}
.muted{color:var(--muted)}
.center{text-align:center}
.eyebrow{margin:0;font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--brand)}
.i{width:1.5rem;height:1.5rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.skip{position:absolute;left:-999px;top:8px;background:var(--surface);padding:.6rem 1rem;border-radius:12px;z-index:100}
.skip:focus{left:8px}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:8px}
[hidden]{display:none!important}

/* Topbar */
.topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:calc(env(safe-area-inset-top) + 10px) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));
  background:color-mix(in srgb,var(--bg) 72%,transparent);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.15rem;letter-spacing:-.02em;color:var(--text);text-decoration:none}
.brand-dot{width:14px;height:14px;border-radius:50%;background:linear-gradient(135deg,var(--brand),var(--brand-2));box-shadow:0 0 0 4px var(--glow-1)}
.topbar-actions{display:flex;gap:8px}
.icon-btn{display:grid;place-items:center;width:46px;height:46px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);cursor:pointer;transition:transform .15s}
.icon-btn:hover{transform:translateY(-1px)}
.theme-btn .ic-sun{display:none}
:root[data-theme=dark] .theme-btn .ic-sun{display:block}
:root[data-theme=dark] .theme-btn .ic-moon{display:none}
@media (prefers-color-scheme:dark){
  :root:not([data-theme]) .theme-btn .ic-sun{display:block}
  :root:not([data-theme]) .theme-btn .ic-moon{display:none}
}

/* Menü */
.menu{position:fixed;z-index:45;top:calc(env(safe-area-inset-top) + 66px);right:max(12px,env(safe-area-inset-right));width:min(300px,calc(100% - 24px));
  display:flex;flex-direction:column;gap:2px;padding:10px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);animation:pop .18s ease-out}
.menu a,.menu-btn{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;color:var(--text);text-decoration:none;font:inherit;font-weight:600;background:none;border:0;width:100%;text-align:left;cursor:pointer}
.menu a:hover,.menu-btn:hover{background:var(--surface-2)}
.menu-foot{display:flex;gap:6px;margin-top:6px;padding-top:8px;border-top:1px solid var(--line)}
.menu-foot a{font-size:.9rem;font-weight:500;color:var(--muted);padding:8px 10px;width:auto}
@keyframes pop{from{opacity:0;transform:translateY(-6px) scale(.98)}}

/* Seite & Karten */
.page{width:min(100%,1100px);margin:0 auto;padding:20px max(16px,env(safe-area-inset-left)) calc(var(--tab-h) + env(safe-area-inset-bottom) + 40px)}
.card{background:color-mix(in srgb,var(--surface) 86%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid var(--line);border-radius:calc(var(--radius) + 6px);padding:clamp(20px,5vw,32px);box-shadow:var(--shadow);animation:rise .35s ease-out}
.narrow{max-width:460px;margin:clamp(8px,4vh,48px) auto}
@keyframes rise{from{opacity:0;transform:translateY(10px)}}

/* Formulare */
.field{margin:0 0 16px}
.field label{display:block;margin:0 0 6px;font-weight:600;font-size:.95rem}
.input-wrap{position:relative}
input[type=text],input[type=email],input[type=password]{width:100%;min-height:50px;padding:12px 14px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);font:inherit;transition:border-color .15s,box-shadow .15s}
input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px var(--glow-1)}
.has-err input{border-color:var(--err)}
.err{margin:6px 0 0;color:var(--err);font-size:.9rem}
.pw-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:42px;height:42px;display:grid;place-items:center;border:0;background:none;color:var(--muted);cursor:pointer;border-radius:12px}
.input-wrap:has(.pw-toggle) input{padding-right:50px}
.check label{display:flex;gap:10px;align-items:flex-start;font-weight:400;font-size:.95rem}
.check input{width:22px;height:22px;margin-top:2px;accent-color:var(--brand);flex:none}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:12px 24px;border:0;border-radius:14px;font:inherit;font-weight:700;color:#fff;text-decoration:none;cursor:pointer;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));box-shadow:0 8px 20px -8px var(--brand);transition:transform .15s,filter .15s}
.btn:hover{transform:translateY(-1px);filter:brightness(1.05)}
.btn:active{transform:none}
.btn-ghost{background:var(--surface-2);color:var(--text);box-shadow:none;border:1px solid var(--line)}
.btn-block{width:100%}
.stack{margin-top:12px}
.links{margin:18px 0 0;text-align:center;font-size:.95rem;color:var(--muted)}
.alert{margin:0 0 16px;padding:12px 16px;border-radius:14px;font-weight:600;border:1px solid}
.alert-ok{color:var(--ok);background:color-mix(in srgb,var(--ok) 12%,transparent);border-color:color-mix(in srgb,var(--ok) 35%,transparent)}
.alert-err{color:var(--err);background:color-mix(in srgb,var(--err) 12%,transparent);border-color:color-mix(in srgb,var(--err) 35%,transparent)}

/* Untere Navigation */
.tabbar{position:fixed;z-index:50;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom) + 12px);width:min(560px,calc(100% - 24px));height:var(--tab-h);
  display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:6px;border-radius:26px;background:color-mix(in srgb,var(--surface) 82%,transparent);
  backdrop-filter:blur(20px) saturate(1.5);-webkit-backdrop-filter:blur(20px) saturate(1.5);border:1px solid var(--line);box-shadow:var(--shadow)}
.tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:20px;color:var(--muted);text-decoration:none;font-size:.74rem;font-weight:700;transition:background .2s,color .2s}
.tabbar a:hover{color:var(--text)}
.tabbar a.is-active{color:var(--brand);background:var(--glow-1)}
.tabbar a.is-active .i{transform:translateY(-1px) scale(1.08)}
.tabbar .i{transition:transform .2s}

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

/* ===== Karte ===== */
:root{--map-filter:none;--icon-filter:none}
:root[data-theme=dark]{--map-filter:invert(.92) hue-rotate(180deg) saturate(.85) brightness(.95);--icon-filter:invert(1)}
@media (prefers-color-scheme:dark){:root:not([data-theme]){--map-filter:invert(.92) hue-rotate(180deg) saturate(.85) brightness(.95);--icon-filter:invert(1)}}

body.is-map{overflow:hidden}
body.is-map .page{max-width:none;margin:0;padding:0}
body.is-map .topbar{position:fixed;left:0;right:0}
body.is-map .alert{position:fixed;z-index:60;top:calc(env(safe-area-inset-top) + 170px);left:12px;right:12px;max-width:480px;margin:0 auto}
/* #map schlägt .maplibregl-map{position:relative} der Bibliothek (sonst Höhe 0 = unsichtbare Karte) */
#map.map{position:fixed;inset:0;width:100%;height:100%;z-index:0;background:var(--surface-2)}
.map-error{margin:30vh auto 0;max-width:420px;padding:0 20px;text-align:center;color:var(--muted)}
.maplibregl-canvas{filter:var(--map-filter)}
.maplibregl-ctrl-group{background:var(--surface)!important;border:1px solid var(--line);border-radius:14px!important;box-shadow:var(--shadow)!important}
.maplibregl-ctrl-group button{width:40px;height:40px}
.maplibregl-ctrl-group button+button{border-top:1px solid var(--line)!important}
.maplibregl-ctrl-icon{filter:var(--icon-filter)}
.maplibregl-ctrl-attrib{background:color-mix(in srgb,var(--surface) 80%,transparent)!important;color:var(--muted)!important;border-radius:10px;font-size:.7rem}
.maplibregl-ctrl-attrib a{color:var(--muted)!important}
.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right{margin-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 24px)}

/* Filter-Chips */
.filters{position:fixed;z-index:30;left:0;right:0;top:calc(env(safe-area-inset-top) + 108px);display:flex;gap:8px;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}
.filters::-webkit-scrollbar{display:none}
@media (min-width:900px){.filters{justify-content:center}}
.chip{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 16px 8px 12px;border-radius:999px;border:1px solid var(--line);
  background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:var(--text);font:inherit;font-size:.92rem;font-weight:700;cursor:pointer;box-shadow:var(--shadow);transition:transform .15s,background .2s,color .2s}
.chip .i{width:1.15rem;height:1.15rem;color:var(--c,var(--brand))}
.chip:hover{transform:translateY(-1px)}
.chip[aria-pressed=true]{background:var(--c,var(--brand));border-color:transparent;color:#fff}
.chip[aria-pressed=true] .i{color:#fff}

/* Pins */
.pin{all:unset;display:block;position:relative;width:44px;height:48px;cursor:pointer}
.pin.is-hidden{display:none}
.pin:focus-visible .pin-bubble{outline:3px solid var(--brand);outline-offset:3px}
.pin-bubble{position:absolute;left:2px;top:0;width:40px;height:40px;display:grid;place-items:center;rotate:-45deg;border-radius:50% 50% 50% 0;
  background:var(--c);border:2px solid #fff;box-shadow:0 8px 16px -6px #000a;transition:transform .2s cubic-bezier(.3,1.6,.5,1);animation:drop .55s cubic-bezier(.2,1.4,.4,1) both}
.pin-bubble .i{rotate:45deg;width:20px;height:20px;color:#fff}
.pin:hover .pin-bubble{transform:scale(1.14)}
.pin.is-selected{z-index:5}
.pin.is-selected .pin-bubble{transform:scale(1.3)}
.pin.is-selected::after{content:"";position:absolute;left:12px;bottom:-5px;width:20px;height:10px;border-radius:50%;background:var(--c);opacity:.5;animation:ring 1.6s ease-out infinite}
@keyframes drop{from{opacity:0;transform:translateY(-22px) scale(.3)}}
@keyframes ring{from{transform:scale(.4);opacity:.6}to{transform:scale(2.4);opacity:0}}

/* Detail-Sheet */
.sheet{position:fixed;z-index:35;left:12px;right:12px;bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 24px);max-height:52dvh;overflow:auto;overscroll-behavior:contain;
  background:var(--surface);border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow);animation:sheetUp .32s cubic-bezier(.2,.9,.3,1);outline:none;transition:max-height .25s}
.sheet.is-full{max-height:calc(100dvh - 190px)}
@keyframes sheetUp{from{opacity:0;transform:translateY(24px)}}
.sheet-bar{position:sticky;top:0;z-index:3;display:flex;justify-content:center;align-items:center;height:44px;background:linear-gradient(var(--surface) 60%,transparent)}
.sheet-grip{all:unset;cursor:pointer;width:100px;height:44px;display:grid;place-items:center}
.sheet-grip::before{content:"";width:44px;height:5px;border-radius:3px;background:var(--line)}
.icon-btn.sm{position:absolute;right:8px;top:4px;width:38px;height:38px;border-radius:12px}
.sheet-body{padding:0 20px 24px}
.sheet h2{margin:.2em 0 .4em;font-size:1.45rem;line-height:1.2;letter-spacing:-.01em}
.sheet h3{margin:1.4em 0 .5em;font-size:1.05rem}
.sheet h4{margin:.8em 0 .1em;font-size:1rem}
.lead{margin:.4em 0 1em;font-size:1.05rem}
.small{font-size:.88rem}
.badges{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.badge{display:inline-block;padding:3px 11px;border-radius:999px;font-size:.8rem;font-weight:700;color:var(--c,var(--brand));background:color-mix(in srgb,var(--c,var(--brand)) 14%,transparent)}
.badge.is-ok{--c:var(--ok)}.badge.is-off{--c:var(--err)}
.gallery{display:flex;gap:10px;margin:0 -20px 12px;padding:0 20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.gallery figure{flex:none;width:82%;margin:0;scroll-snap-align:center;position:relative}
.gallery img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:18px;background:var(--surface-2)}
.gallery figcaption{position:absolute;right:8px;bottom:8px;padding:2px 8px;border-radius:8px;font-size:.7rem;color:#fff;background:#0009}
.info{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}
.info li{display:flex;gap:12px;align-items:center}
.info .i{color:var(--brand);width:1.25rem;height:1.25rem}
.hours{margin:0 0 14px;border:1px solid var(--line);border-radius:16px;padding:4px 14px}
.hours summary{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:700;cursor:pointer;list-style:none}
.hours summary::-webkit-details-marker{display:none}
.hours .i{color:var(--brand);width:1.25rem;height:1.25rem}
.hours dl{margin:0 0 8px}
.hours dl div{display:flex;justify-content:space-between;gap:12px;padding:5px 8px;border-radius:10px}
.hours dt,.hours dd{margin:0}
.hours .is-today{background:var(--glow-1);font-weight:700}
.prose p{margin:0 0 .9em}
.pnews article{padding:12px 14px;margin:0 0 10px;border-radius:16px;background:var(--surface-2)}
.pnews time{display:block;font-size:.8rem;color:var(--muted)}
.pnews p{margin:.4em 0 0;white-space:pre-line}
.skeleton{height:120px;border-radius:18px;background:linear-gradient(90deg,var(--surface-2),var(--line),var(--surface-2));background-size:200% 100%;animation:shimmer 1.2s infinite}
@keyframes shimmer{to{background-position:-200% 0}}
@media (min-width:900px){
  .sheet{left:16px;right:auto;width:400px;top:176px;bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 28px);max-height:none}
  .sheet-grip{display:none}
  .maplibregl-ctrl-bottom-left{margin-left:432px}
}
.toast{position:fixed;z-index:70;left:50%;transform:translateX(-50%);bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 28px);display:flex;gap:12px;align-items:center;max-width:calc(100% - 24px);padding:10px 12px 10px 18px;border-radius:16px;background:var(--text);color:var(--bg);font-weight:600;box-shadow:var(--shadow)}
.toast button{min-height:38px;padding:6px 14px;border:0;border-radius:10px;font:inherit;font-weight:700;background:var(--brand);color:#fff;cursor:pointer}

/* ===== Verwaltung ===== */
body.is-admin .page{max-width:900px}
.admin{margin:0 auto 20px}
.admin h2{margin:.2em 0 .6em;font-size:1.3rem}
.admin fieldset{border:1px solid var(--line);border-radius:18px;margin:0 0 18px;padding:12px 16px 6px;min-width:0}
.admin legend{font-weight:800;padding:0 8px}
.form-grid{display:grid;gap:0 16px}
@media (min-width:700px){.form-grid{grid-template-columns:1fr 1fr}}
textarea,select,input[type=time],input[type=number],input[type=file]{width:100%;min-height:50px;padding:12px 14px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);font:inherit}
textarea{resize:vertical;min-height:120px}
textarea:focus,select:focus,input[type=time]:focus,input[type=number]:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px var(--glow-1)}
.radio-row,.cat-list{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.radio-row label,.cat-list label,.chk{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-weight:600;font-size:.95rem;cursor:pointer}
.radio-row input,.cat-list input,.chk input{width:20px;height:20px;accent-color:var(--brand)}
.cat-dot{width:12px;height:12px;border-radius:50%;background:var(--c,var(--brand))}
.cat-list.has-err{outline:2px solid var(--err);border-radius:16px;outline-offset:4px}
.picker{height:300px;border-radius:18px;overflow:hidden;border:1px solid var(--line);margin:0 0 8px}
.picker .maplibregl-ctrl-bottom-left,.picker .maplibregl-ctrl-bottom-right{margin:0}
.hours-row{display:grid;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.hours-row.has-err{outline:2px solid var(--err);border-radius:12px}
.hours-day{font-weight:800}
.hours-times{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.hours-times input{width:7.2rem;min-height:44px;padding:8px 10px}
@media (min-width:760px){.hours-row{grid-template-columns:100px 150px 1fr auto}}
.img-row{display:grid;grid-template-columns:96px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.img-row img{width:96px;height:72px;object-fit:cover;border-radius:12px;background:var(--surface-2)}
.img-row input[type=text]{width:100%;min-height:44px;padding:8px 12px;margin:0 0 6px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit}
.img-meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.img-meta input[type=number]{width:5rem;min-height:40px;padding:6px 10px}
.btn.sm{min-height:42px;padding:6px 16px;font-size:.92rem}
.btn-danger{background:var(--err);box-shadow:none}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}
.stat{padding:16px;border-radius:18px;background:var(--surface-2);text-align:center}
.stat strong{display:block;font-size:2rem;line-height:1.1}
.stat span{color:var(--muted);font-size:.9rem}
.search{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.search input{flex:1;min-width:160px}
.list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.row-main{display:grid;gap:4px;color:var(--text);text-decoration:none;flex:1;min-width:0}
.row-main strong{overflow-wrap:anywhere}
.pnews-admin{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.pnews-admin p{margin:.3em 0 0;white-space:pre-line}
.alert ul{margin:6px 0 0;padding-left:20px;font-weight:500}

/* ===== Eventticker ===== */
.ticker{position:fixed;z-index:31;left:0;right:0;top:calc(env(safe-area-inset-top) + 66px);height:38px;display:flex;align-items:center;overflow:hidden;
  background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-block:1px solid var(--line)}
.ticker-label{flex:none;display:flex;align-items:center;gap:6px;height:100%;padding:0 14px;z-index:1;color:#fff;text-decoration:none;font-weight:800;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;
  background:linear-gradient(135deg,var(--brand),var(--brand-2))}
.ticker-label .i{width:1rem;height:1rem}
.ticker-track{display:flex;width:max-content;animation:tick var(--dur,40s) linear infinite}
.ticker:hover .ticker-track,.ticker:focus-within .ticker-track{animation-play-state:paused}
.ticker-track a,.ticker-empty{flex:none;padding:0 26px;white-space:nowrap;color:var(--text);text-decoration:none;font-size:.92rem}
.ticker-empty{color:var(--muted);font-weight:600}
@keyframes tick{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.ticker{overflow-x:auto}}

/* ===== Eventliste ===== */
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 8px}
.month{margin:28px 0 12px;font-size:1.15rem;color:var(--muted)}
.events{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.event{display:flex;gap:16px;padding:16px;scroll-margin-top:90px}
.event:target{outline:3px solid var(--brand);outline-offset:3px}
.date{flex:none;width:62px;height:70px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:18px;color:#fff;background:linear-gradient(135deg,var(--brand),var(--brand-2))}
.date strong{font-size:1.6rem;line-height:1}
.date span{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.event-body{min-width:0;flex:1}
.event-body h3{margin:0 0 2px;font-size:1.15rem;overflow-wrap:anywhere}
.event-body p{margin:.2em 0}
.event-desc{white-space:pre-line}
.event-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px!important}
.wide-form{max-width:560px}
.pevents ul{list-style:none;margin:0 0 6px;padding:0;display:grid;gap:6px}
.pevents li{padding:10px 14px;border-radius:14px;background:var(--surface-2)}
.pevents a{color:var(--text);text-decoration:none}

/* ===== News & Artikel ===== */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.tagbar{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
a.chip{text-decoration:none}
.chip[aria-current=page]{background:var(--c,var(--brand));border-color:transparent;color:#fff}
.news-grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.news-card{border:1px solid var(--line);border-radius:22px;background:var(--surface);overflow:hidden;box-shadow:var(--shadow);transition:transform .2s}
.news-card:hover{transform:translateY(-3px)}
.news-card-link{display:block;color:inherit;text-decoration:none;height:100%}
.news-card img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;background:var(--surface-2)}
.news-card-body{padding:14px 18px 18px}
.news-card h2{margin:.5em 0 .3em;font-size:1.2rem;line-height:1.25;overflow-wrap:anywhere}
.news-card p{margin:.3em 0}
.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:28px 0 0}
.article{max-width:760px;margin:0 auto}
.crumbs{margin:0 0 14px;font-size:.9rem;color:var(--muted)}
.crumbs a{color:var(--muted)}
.article-head h1{font-size:clamp(1.8rem,5vw,2.6rem);margin:.3em 0 .35em}
.article .lead{font-size:1.2rem;color:var(--muted);margin:0 0 .6em}
.byline{margin:0 0 20px}
.cover{margin:0 0 26px}
.cover img{display:block;width:100%;height:auto;border-radius:24px;background:var(--surface-2)}
.cover figcaption,.prose figcaption{margin-top:6px;font-size:.85rem;color:var(--muted)}
.article-body{font-size:1.12rem;line-height:1.75}
.prose h2{margin:1.6em 0 .5em;font-size:1.5rem}
.prose h3{margin:1.4em 0 .4em;font-size:1.25rem}
.prose p,.prose ul,.prose ol{margin:0 0 1.1em}
.prose img,.prose video{display:block;max-width:100%;height:auto;border-radius:18px}
.prose figure{margin:1.4em 0}
.prose blockquote{margin:1.4em 0;padding:.4em 0 .4em 1.2em;border-left:4px solid var(--brand);color:var(--muted);font-style:italic}
.prose hr{border:0;border-top:1px solid var(--line);margin:2em 0}
.embed{position:relative;aspect-ratio:16/9;margin:1.4em 0;border-radius:18px;overflow:hidden;background:var(--surface-2)}
.embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.embed-btn{all:unset;box-sizing:border-box;position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:16px;cursor:pointer;color:#fff;background:linear-gradient(135deg,#1b2350,var(--brand))}
.embed-btn:focus-visible{outline:3px solid #fff;outline-offset:-6px}
.embed-play{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#fff;color:var(--brand);font-size:1.5rem;padding-left:4px}
.embed-btn small{opacity:.85}
.embed noscript{position:absolute;left:12px;bottom:12px;color:#fff}
.source{margin:1.5em 0 0;padding-top:1em;border-top:1px solid var(--line)}
.article-foot{margin-top:24px}
.foot-label{margin:14px 0 6px;font-size:.8rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.related{margin:44px 0 0}
.related h2{font-size:1.4rem}

/* ===== Editor ===== */
.editor{border:1.5px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden}
.editor:focus-within{border-color:var(--brand);box-shadow:0 0 0 4px var(--glow-1)}
.ed-toolbar{position:sticky;top:68px;z-index:5;display:flex;flex-wrap:wrap;gap:6px;padding:8px;border-bottom:1px solid var(--line);background:var(--surface-2)}
.ed-toolbar button{min-width:40px;min-height:40px;padding:4px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;font-weight:700;font-size:.9rem;cursor:pointer}
.ed-toolbar button:hover{border-color:var(--brand)}
.ed-toolbar button[aria-pressed=true]{background:var(--brand);color:#fff}
.ed-toolbar .i{margin:auto}
.ed-sep{width:1px;background:var(--line);margin:2px 2px}
.ed-status{margin:0;padding:0 12px}
.ed-status:empty{display:none}
.ed-area{min-height:340px;padding:16px 18px;outline:none;font-size:1.05rem;line-height:1.7}
.ed-area[hidden],.ed-source[hidden]{display:none}
.ed-source{display:block;width:100%;min-height:340px;padding:14px;border:0;background:var(--surface);color:var(--text);font:.9rem/1.5 ui-monospace,Consolas,monospace;resize:vertical}
.ed-area .embed::before{content:"▶ " attr(data-provider) "-Video · " attr(data-id);position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-weight:700}
.ed-area img,.ed-area video{outline:2px solid transparent}
.ed-area img:hover{outline-color:var(--brand)}
.ed-dialog{border:1px solid var(--line);border-radius:22px;padding:22px;background:var(--surface);color:var(--text);box-shadow:var(--shadow);width:min(92vw,440px)}
.ed-dialog::backdrop{background:#0008;backdrop-filter:blur(3px)}
.ed-dialog h3{margin:0 0 12px}
.ed-dialog label{display:block;margin:0 0 12px;font-weight:600;font-size:.95rem}
.ed-dialog input{display:block;width:100%;min-height:46px;margin-top:6px;padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit}
.ed-dialog-row{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}
.cover-prev{display:block;margin:0 0 12px;border-radius:14px;object-fit:cover}
.place-pick{display:flex;flex-wrap:wrap;gap:8px;max-height:220px;overflow:auto;padding:6px 2px}
.place-pick label[hidden]{display:none}
input[type=search]{width:100%;min-height:50px;padding:12px 14px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);font:inherit}
input[type=search]:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px var(--glow-1)}

/* ===== Navigation verwalten ===== */
.nav-row{gap:10px}
.move{display:flex;flex-direction:column;gap:4px}
.move form{margin:0}
.move .btn.sm{min-height:34px;padding:2px 12px;line-height:1}
.cms h1{margin:.3em 0 .6em}

/* ===== Events auf der Karte ===== */
.pin-event{width:60px;height:58px}
.pin-bubble.ev{left:8px;top:0;width:44px;height:44px;rotate:0;border-radius:15px;border-width:3px;background:linear-gradient(135deg,#ff3d81,#ff9f1c);box-shadow:0 10px 22px -6px #ff3d81aa}
.pin-bubble.ev .i{rotate:0;width:24px;height:24px}
.pin-bubble.ev::before{content:"";position:absolute;inset:-5px;border-radius:19px;border:2px solid #ff3d81;opacity:.8;animation:evring 1.8s ease-out infinite}
@keyframes evring{to{transform:scale(1.45);opacity:0}}
.pin-tag{position:absolute;left:50%;top:38px;transform:translateX(-50%);padding:1px 9px;border-radius:999px;background:#14182b;color:#fff;border:2px solid #fff;font:800 .62rem/1.5 system-ui,sans-serif;letter-spacing:.08em;box-shadow:0 4px 10px -3px #0008}
.pin-event.is-selected::after{display:none}
.pin-event.is-selected .pin-bubble.ev{transform:scale(1.15)}
.badge.is-event{--c:#ff3d81}
a.plain{color:inherit;text-decoration:none}
a.plain:hover{text-decoration:underline}
.event-facts{margin:14px 0 18px}

/* ===== Editor (überarbeitet): feste Höhe, eigene Scrollbar, Werkzeugleiste bleibt oben, Vollbild ===== */
.editor{display:flex;flex-direction:column;height:min(70vh,720px);min-height:360px;max-height:92vh;resize:vertical;overflow:hidden}
.ed-toolbar{position:static;flex:none;max-height:130px;overflow-y:auto}
.ed-status{flex:none;padding:4px 12px}
.ed-area{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;overflow-wrap:anywhere}
.ed-source{flex:1 1 auto;min-height:0;overflow:auto;resize:none}
.ed-toolbar button.b{font-weight:900}.ed-toolbar button.i{font-style:italic}.ed-toolbar button.u{text-decoration:underline}.ed-toolbar button.s{text-decoration:line-through}
.editor.is-full{position:fixed;inset:10px;z-index:90;height:auto;max-height:none;resize:none;box-shadow:0 0 0 100vmax #000a;border-radius:18px}
body.ed-lock{overflow:hidden}
.ed-dialog.wide{width:min(94vw,720px)}
.ed-dialog textarea{display:block;width:100%;margin-top:6px;padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:.9rem/1.5 ui-monospace,Consolas,monospace;resize:vertical}
.ed-area .embed::before{content:"▶ " attr(data-provider) " · " attr(data-id) attr(data-src)}
.prose table{border-collapse:collapse;width:100%;margin:1.2em 0;display:block;overflow-x:auto}
.prose th,.prose td{border:1px solid var(--line);padding:8px 12px;text-align:left;vertical-align:top}
.prose th{background:var(--surface-2)}
.prose pre{overflow:auto;padding:12px 14px;border-radius:12px;background:var(--surface-2)}
.prose code{font-family:ui-monospace,Consolas,monospace;font-size:.92em;background:var(--surface-2);padding:1px 6px;border-radius:6px}
.prose pre code{background:none;padding:0}
.prose details{margin:1em 0;padding:8px 14px;border:1px solid var(--line);border-radius:12px}
.prose summary{cursor:pointer;font-weight:700}

/* ===== Filterleiste (Events) ===== */
.filter-bar{margin:0 0 16px;padding:16px 18px}
.filter-bar .tagbar{margin:0 0 10px}
.filter-grid{display:grid;gap:0 14px}
@media (min-width:700px){.filter-grid{grid-template-columns:1.2fr 1.2fr 1fr 1fr}}
.filter-grid .field{margin:0 0 10px}
.filter-actions{display:flex;gap:8px;flex-wrap:wrap}
input[type=date]{width:100%;min-height:50px;padding:12px 14px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);font:inherit}

/* ===== Gemeinschaft, Nachrichten, Marktplatz ===== */
.avatar{width:56px;height:56px;border-radius:50%;object-fit:cover;flex:none;background:var(--surface-2)}
.avatar.initials{display:inline-grid;place-items:center;font-weight:800;font-size:1.3rem;color:#fff;background:linear-gradient(135deg,var(--brand),var(--brand-2))}
.avatar-lg{width:88px;height:88px;font-size:2rem}
.profile-head{display:flex;gap:12px;align-items:center;margin-bottom:6px}
.profile-head h2{margin:.1em 0 0;font-size:1.15rem}
.profile-hero{display:flex;gap:18px;align-items:center;margin:0 0 14px}
.profile-hero h1{margin:.1em 0 .1em}
.badge.is-soft{--c:var(--muted)}
.count{display:inline-block;min-width:22px;padding:0 7px;border-radius:999px;background:var(--err);color:#fff;font-size:.75rem;font-weight:800;text-align:center;line-height:22px}
.report{margin:18px 0 0;padding:8px 14px;border:1px solid var(--line);border-radius:14px}
.report summary{cursor:pointer;font-weight:600;color:var(--muted)}
.report form{display:grid;gap:8px;margin:10px 0 4px}
.report input{width:100%;min-height:46px;padding:8px 12px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit}
.thread{display:flex;flex-direction:column;gap:10px;max-height:55vh;overflow-y:auto;padding:6px 2px;margin:0 0 14px}
.bubble{max-width:82%;padding:10px 14px;border-radius:18px;overflow-wrap:anywhere}
.bubble.mine{align-self:flex-end;background:var(--brand);color:#fff;border-bottom-right-radius:6px}
.bubble.theirs{align-self:flex-start;background:var(--surface-2);border-bottom-left-radius:6px}
.bubble .muted{display:block;margin-top:4px;color:inherit;opacity:.7}
.price{display:inline-block;font-weight:800;color:var(--brand);font-size:1.1rem}
.price-lg{font-size:1.6rem;margin:.2em 0}
.ph{display:grid;place-items:center;aspect-ratio:16/10;background:var(--surface-2);color:var(--muted)}
.ph .i{width:2.6rem;height:2.6rem}
.row-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.row-actions form{margin:0}
.head-actions{display:flex;gap:8px;flex-wrap:wrap}
.search select{min-height:50px;width:auto;padding:12px 14px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);font:inherit}
