:root{--bg:#100d15;--panel:#211c2a;--panel2:#2d2535;--line:#493b52;--text:#f8f4fa;--muted:#c4b8cb;--orange:#ff914d;--gold:#ffd08f;--app-w:min(100vw,calc(100dvh * 9 / 16));--app-h:min(100dvh,calc(100vw * 16 / 9));font-family:Arial,Helvetica,sans-serif;color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{display:grid;place-items:center}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.app-frame{position:relative;width:var(--app-w);height:var(--app-h);max-height:100dvh;overflow:hidden;background:var(--panel);box-shadow:0 0 50px #0008}.topbar{height:73px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;border-bottom:1px solid #39313f;background:#17141d}.brand{display:flex;align-items:center;gap:7px;color:var(--orange);text-decoration:none;font-size:18px}.brand span{color:var(--text);font-size:13px;font-weight:900;letter-spacing:.06em}.brand small{display:block;margin-top:3px;color:#c2b9cc;font-size:9px;font-weight:500;letter-spacing:.28em}.topbar nav{display:flex;align-items:center;gap:5px}.topbar button{height:39px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--text);font-size:12px}.primary{border:1px solid var(--orange)!important;background:var(--orange)!important;color:#211710!important;font-weight:800}.primary:disabled{opacity:.45}.collection-tabs{height:52px;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:6px 14px;background:#1e1925}.collection-tabs button{border:0;border-radius:9px;background:transparent;color:#d6cadc}.collection-tabs .active{background:#40304d;color:#fff}.workspace{height:calc(100% - 125px);position:relative}.sidebar,.map-view{display:none;width:100%;height:100%}.mobile-visible{display:flex}.sidebar{flex-direction:column;overflow:auto;padding-bottom:100px}.intro{padding:27px 30px 24px;background:radial-gradient(ellipse at top left,#49304c66,transparent 80%)}.kicker{margin:0;color:#ffad78;font-size:12px;font-weight:800;letter-spacing:.14em}.intro h1{margin:18px 0 14px;font-size:36px;line-height:1.08;letter-spacing:-1.1px}.intro h1 span{display:block}.intro h1 em{display:block;margin-top:10px;color:#ffab71;font:italic 500 24px/1.15 Georgia,serif;letter-spacing:-.3px}.intro>p:not(.kicker){margin:0 0 17px;color:var(--muted);font-size:15px;line-height:1.55}.intro>small{color:#a99bb4}.filters{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line)}input,select,textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid #5a4a64;border-radius:9px;background:#2a2332;color:#fff}textarea{min-height:90px;resize:vertical}.results{padding:20px 18px}.results-head{display:flex;justify-content:space-between;color:#c9bdd0;font-size:13px}.station{position:relative;display:grid;grid-template-columns:44px 1fr auto;gap:11px;padding:17px 4px;border-bottom:1px solid #403448}.station.recommended{margin:8px -7px;padding:16px 10px;border:1px solid #8b683e;border-radius:11px;background:linear-gradient(110deg,#3a2a2a,#2b2135)}.station-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:var(--orange);font-size:21px}.station.party .station-icon{background:#8d6bd2}.station button.open{all:unset;display:block;cursor:pointer}.station h3{margin:5px 0;font-size:16px}.station p{margin:0;color:#bdaec7;font-size:12px}.station .meta{display:flex;gap:10px;margin-top:10px;color:#e7d8ed;font-size:12px}.recommendation-label{display:block;margin-bottom:4px;color:var(--gold);font-size:11px;font-weight:800}.favorite{align-self:center;border:0;background:transparent;color:#ffb787;font-size:23px}.empty{padding:34px 8px;text-align:center;color:#b9adc3}.host-callout{margin:4px 18px 22px;padding:16px;border:1px solid #594250;border-radius:12px;background:#302436}.host-callout p{margin:6px 0;color:#c4b7cb;font-size:13px}.host-callout button{border:0;background:transparent;color:#ffb280;font-weight:700}.map-view{position:relative;background:#c9d4c5}.map-view.mobile-visible{display:block}.map-consent{position:absolute;z-index:4;inset:22% 20px auto;padding:20px;border-radius:13px;background:#251e2d;color:#fff;text-align:center;box-shadow:0 15px 35px #0005}.map-consent p{color:#c9bdcf;line-height:1.5}.map-consent button{padding:10px 16px;border-radius:8px}.map-view #map{width:100%;height:100%}.map-title{position:absolute;z-index:3;top:16px;left:14px;padding:12px 15px;border-radius:10px;background:#fff;color:#312538;box-shadow:0 5px 18px #0002}.map-title strong,.map-title small{display:block}.map-title small{margin-top:3px;color:#76677d}.gps{position:absolute;z-index:3;bottom:96px;left:14px;padding:11px 13px;border:0;border-radius:9px;background:#211a29;color:#fff}.view-tabs{position:absolute;z-index:10;bottom:19px;left:50%;display:flex;gap:3px;transform:translateX(-50%);padding:5px;border:1px solid #655271;border-radius:14px;background:#211a2b;white-space:nowrap}.view-tabs button{height:39px;padding:0 17px;border:0;border-radius:9px;background:transparent;color:#fff}.view-tabs .active{background:var(--orange);color:#261a11}.legal{position:absolute;z-index:9;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:12px;padding:6px;background:#17141d;font-size:11px}.legal a{color:#d7cbdc;text-decoration:none}.install-banner{position:absolute;z-index:20;left:12px;right:12px;bottom:82px;display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:14px;border:1px solid #755a7e;border-radius:14px;background:#28202f;box-shadow:0 12px 40px #0009}.install-banner>[data-install-close]{position:absolute;top:-10px;right:-7px;width:27px;height:27px;border:1px solid #755a7e;border-radius:50%;background:#211925;color:#fff}.install-banner span{color:#cbbfd2;font-size:12px}.install-banner .primary{grid-column:2;grid-row:1/3;padding:0 11px;border-radius:8px}dialog{width:min(520px,calc(var(--app-w) - 24px));max-height:calc(var(--app-h) - 28px);overflow:auto;padding:22px;border:1px solid #675371;border-radius:14px;background:#1f1927;color:#fff}dialog::backdrop{background:#0b0810c9}.dialog-close{position:absolute;right:12px;top:10px;border:0;background:transparent;color:#d6cadc;font-size:26px}dialog h2{padding-right:30px}dialog form{display:grid;gap:14px}label{display:grid;gap:6px;color:#e6dce9;font-size:14px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.check{display:flex;align-items:flex-start;gap:9px;line-height:1.45}.check input{width:18px;min-height:18px}.pick-map{height:220px;border:1px solid #675371;border-radius:9px;overflow:hidden;background:#c9d4c5}.error{color:#ffad9e}.fine{color:#b8acbf;font-size:12px;line-height:1.5}.recommendation{padding:12px;border:1px solid #8b683e;border-radius:9px;color:var(--gold);background:#35272e}.detail-badges{display:flex;gap:8px;flex-wrap:wrap}.detail-badges span{padding:8px 10px;border-radius:7px;background:#3a2d45;color:#ffc29a;font-size:13px}.dialog-actions{display:grid;gap:8px;margin-top:18px}.dialog-actions button,.dialog-actions a{padding:11px;border:1px solid #65536f;border-radius:8px;background:#2d2535;color:#fff;text-align:center;text-decoration:none}.editorial-detail{padding:12px;border:1px solid #8b683e;border-radius:9px;background:#35272e;color:var(--gold)}.install-page{min-height:100dvh;display:grid;place-items:center;padding:18px;background:radial-gradient(circle at top,#422b47,#100d15 60%)}.install-card{width:min(540px,100%);padding:30px;border:1px solid #5e4b68;border-radius:18px;background:#211b29;box-shadow:0 20px 60px #0007}.install-card h1{font-size:34px}.install-card form{display:grid;gap:16px}.install-card .primary{height:48px;border-radius:9px}.requirements{padding:0;list-style:none}.requirements li{padding:5px}.requirements .ok{color:#a9f0c8}.requirements .bad{color:#ffaaaa}.ghost-mark{font-size:42px;color:var(--orange)}.document{overflow:auto;padding-bottom:60px}.document header{position:sticky;top:0;display:flex;justify-content:space-between;padding:20px;background:#17141d}.document article{padding:25px}.document h1{font-size:34px}.document h2{margin-top:26px;color:#ffb681}.document p,.document address{color:#d2c7d7;line-height:1.65}.document .legal{position:fixed;width:var(--app-w);left:50%;transform:translateX(-50%)}.admin-app{overflow:auto}.admin-login{padding:45px 25px}.admin-login form{display:grid;gap:16px}.admin-panel{padding-bottom:30px}.admin-summary{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;padding:14px}.admin-summary>div{padding:10px;border:1px solid var(--line);border-radius:9px;background:#2a2232}.admin-summary strong,.admin-summary span{display:block}.admin-summary strong{color:#ffad78;font-size:23px}.admin-summary span{font-size:12px}.admin-summary button{border:1px solid var(--line);border-radius:8px;background:#2a2232;color:#fff}.search{margin:0 14px 12px}.admin-list{padding:0 14px}.admin-card{display:grid;grid-template-columns:1fr auto;gap:10px;padding:15px 0;border-bottom:1px solid var(--line)}.admin-card h3{margin:0}.admin-card p{grid-column:1/-1;margin:0;color:#bfaec8;font-size:13px}.admin-card .badges{grid-column:1/-1}.badge{display:inline-block;margin-right:6px;padding:4px 7px;border-radius:6px;background:#3a2d45;font-size:11px}.badge.gold{color:var(--gold);border:1px solid #8b683e}.admin-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}.admin-actions button{height:38px;border:1px solid var(--line);border-radius:8px;background:#2e2537;color:#fff}.admin-actions .delete{color:#ffaaaa}.notice{margin:0 14px;color:#ffbf96}
@media(max-width:360px){.intro{padding-left:22px;padding-right:22px}.intro h1{font-size:31px}.intro h1 em{font-size:21px}.topbar [data-info]{display:none}.legal{gap:8px;font-size:10px}}
.photo-consent span strong,.photo-consent span small{display:block}.photo-consent span strong{color:#ffc39b}.photo-consent span small{margin-top:5px;color:#bcaec6}.admin-summary{grid-template-columns:1fr 1fr 1fr auto}.admin-photo-heading{margin:20px 14px 4px;color:#ffc39b;font-size:18px}.photo-files{grid-column:1/-1;display:grid;gap:7px}.photo-files a{display:flex;justify-content:space-between;gap:8px;padding:9px;border:1px solid #4d3d57;border-radius:7px;background:#282130;text-decoration:none;font-size:13px}.photo-files small{color:#b8acbf;white-space:nowrap}.photo-admin-card .admin-actions{grid-template-columns:1fr}
@media(min-width:700px) and (min-aspect-ratio:9/16){.app-frame{border:1px solid #3a3042;border-radius:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}
.legal{z-index:9}.station-map-pin{display:grid!important;place-items:center;border:3px solid #fff;border-radius:50% 50% 50% 6px;color:#201620;box-shadow:0 5px 15px #0005;font-weight:900;transform:rotate(-8deg)}.station-map-pin.household-pin{background:#ff914d}.station-map-pin.party-pin{background:#8d6bd2}.station-map-pin svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transform:rotate(8deg)}.station-map-pin .marker-done{font-size:21px;transform:rotate(8deg)}.station-map-pin small{position:absolute;right:-7px;bottom:-5px;padding:2px 4px;border-radius:5px;background:#302437;color:#fff;font-size:10px}.station-map-pin.recommended-pin{border-color:#ffd08f;box-shadow:0 0 0 2px #8b683e,0 5px 15px #0005}.pick-pin{display:grid!important;place-items:center;border:3px solid #fff;border-radius:50%;background:#ff914d;color:#291a12;box-shadow:0 4px 12px #0005}
.brand>img{width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 5px 7px #0009)}.intro{position:relative;isolation:isolate;background:radial-gradient(ellipse at top left,#75304f70,transparent 74%),linear-gradient(145deg,#261c31,#211c2a)}.intro>*:not(.intro-spirit){position:relative;z-index:1}.intro-spirit{position:absolute;right:-23px;top:-8px;width:145px;height:145px;object-fit:contain;opacity:.3;filter:drop-shadow(0 12px 20px #0008)}.review-teaser{display:flex;align-items:center;gap:7px;width:max-content;margin-top:16px;padding:8px 10px;border:1px solid #7c4b68;border-radius:999px;background:#391f3bcc;color:#ffd1b4;text-decoration:none;font-size:12px;font-weight:700}.review-teaser span{padding:3px 6px;border-radius:999px;background:#ff914d;color:#24160f;text-transform:uppercase;font-size:9px;letter-spacing:.08em}.host-callout{display:flex;align-items:center;gap:7px}.host-callout>img{width:62px;height:62px;object-fit:contain;margin:-8px 0 -6px -8px;filter:drop-shadow(0 6px 8px #0007)}.host-callout>div{min-width:0}.review-lead{font-size:17px!important}.review-card{position:relative;margin:28px -7px 36px;padding:12px 12px 22px;border:1px solid #654465;border-radius:18px;background:linear-gradient(155deg,#33213d,#241d2c);overflow:hidden;box-shadow:0 18px 35px #100a1666}.review-card figure{margin:0}.review-card figure img{display:block;width:100%;height:235px;object-fit:cover;border-radius:12px}.review-card figcaption{padding:7px 3px 0;color:#9f90aa;font-size:11px}.review-card h2{margin:18px 4px 7px}.review-card p{margin:7px 4px 15px}.review-year{position:absolute;z-index:2;top:24px;left:24px;display:grid;padding:8px 11px;border:1px solid #ffffff55;border-radius:10px;background:#170f1ccc;backdrop-filter:blur(8px)}.review-year span{text-transform:uppercase;color:#ffc299;font-size:9px;font-weight:800;letter-spacing:.13em}.review-year strong{font-family:Georgia,serif;color:#fff;font-size:24px;line-height:1}.review-next{display:flex;align-items:center;gap:6px;margin-bottom:25px;padding:14px;border:1px solid #734c67;border-radius:15px;background:#3b253e}.review-next img{width:90px;height:90px;object-fit:contain}.review-next strong{color:#ffc39b;font-size:18px}.review-next p{margin:4px 0 8px;font-size:13px}.document article a{color:#ffc59e}
.halloween-intro-screen{position:absolute;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:34px 24px 38px;overflow:hidden;background:radial-gradient(circle at 50% 33%,#74295a 0,#29182f 35%,#0d0912 76%);text-align:center}.halloween-intro-screen:after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,transparent 35%,#0d0912aa 70%,#0d0912 100%);pointer-events:none}.intro-house{position:absolute;z-index:1;top:6%;left:50%;width:min(92%,430px);height:auto;transform:translateX(-50%);filter:drop-shadow(0 24px 34px #000c);animation:house-breathe 5s ease-in-out infinite}.intro-screen-copy,.loading-area,.intro-actions,.halloween-intro-screen>small{position:relative;z-index:4}.intro-screen-copy p{margin:0;color:#ffae77;font-size:11px;font-weight:900;letter-spacing:.2em}.intro-screen-copy h1{margin:8px 0 6px;font-family:Georgia,serif;font-size:36px}.intro-screen-copy em{display:block;color:#ffc39b;font:italic 15px/1.35 Georgia,serif}.loading-area{width:100%;margin-top:24px}.loading-label{display:flex;justify-content:space-between;margin-bottom:8px;color:#d9cbdc;font-size:11px}.loading-label strong{color:#ffb17b}.loading-track{height:7px;overflow:hidden;border:1px solid #704e72;border-radius:99px;background:#17101d}.loading-track i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#a94370,#ff914d,#ffd28f);box-shadow:0 0 14px #ff914d;transition:width .22s}.intro-actions{display:grid;grid-template-columns:1fr auto;gap:8px;width:100%;margin-top:15px}.intro-actions button{min-height:46px;padding:8px 12px;border:1px solid #715276;border-radius:10px;background:#251a2d;color:#eee5f2;font-size:12px;font-weight:700}.intro-actions .start-sound{border-color:#ff914d;background:#ff914d;color:#21140e}.intro-actions button:disabled{opacity:.45}.halloween-intro-screen>small{margin-top:10px;color:#8f8198;font-size:10px}.fog{position:absolute;z-index:3;left:-70%;bottom:-9%;width:240%;height:32%;border-radius:50%;background:radial-gradient(ellipse,#eee8f0cc 0,#b9a9c577 28%,transparent 69%);filter:blur(18px);opacity:.65;animation:fog-drift 12s ease-in-out infinite alternate}.fog-two{bottom:5%;animation-duration:17s;animation-direction:alternate-reverse;opacity:.34}.sound-toggle{position:absolute;z-index:45;right:12px;bottom:94px;width:42px;height:42px;border:1px solid #705475;border-radius:50%;background:#241b2cdd;color:#ffb27f}.user-direction{position:relative!important;display:grid!important;place-items:center}.user-direction i{position:absolute;width:18px;height:18px;border:3px solid #fff;border-radius:50%;background:#5379ff;box-shadow:0 2px 8px #13255988}.user-direction span{position:absolute;bottom:27px;left:17px;width:18px;height:31px;color:#5379ff;font-size:26px;line-height:1;transform-origin:50% 29px;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 2px 3px #1b2b66aa)}@keyframes fog-drift{from{transform:translateX(-8%) scaleY(.85)}to{transform:translateX(9%) scaleY(1.1)}}@keyframes house-breathe{0%,100%{transform:translateX(-50%) scale(1)}50%{transform:translateX(-50%) scale(1.025)}}
@media(prefers-reduced-motion:reduce){.fog,.intro-house{animation:none}}
[hidden]{display:none!important}
/* Keep Leaflet tiles below the app's map controls and status fields. */
.map-view{isolation:isolate;overflow:hidden}
.map-view #map{position:absolute;inset:0;z-index:0}
.map-view>.map-title,.map-view>.map-legend,.map-view>.gps,.map-view>.map-consent{z-index:20}
/* Mobile readability pass for the standalone LAMP build. */
@media(max-width:430px){.topbar{height:68px;padding:0 10px;gap:6px}.brand{min-width:0;gap:4px;font-size:12px}.brand span{min-width:0;font-size:12px}.brand b{white-space:nowrap}.brand small{font-size:8px;letter-spacing:.1em}.brand>img{width:34px;height:34px;flex:0 0 34px}.topbar nav{min-width:0;gap:3px}.topbar-action{min-width:38px!important;width:38px!important;padding:0!important;justify-content:center}.topbar-action span:last-child{display:none}.topbar [data-info]{display:none}.topbar .primary{width:43px;min-width:43px!important;padding:0!important;font-size:0}.topbar .primary::first-letter{font-size:20px}.intro{padding:19px 16px 18px}.intro-spirit{width:105px;height:105px;right:-22px;top:-6px;opacity:.22}.intro h1{max-width:80%;margin:11px 0 10px;font-size:clamp(27px,8vw,34px)}.intro h1 em{font-size:21px}.intro>p:not(.kicker){max-width:82%;font-size:14px;line-height:1.45;margin-bottom:11px}.review-teaser{margin-top:12px;font-size:11px}.filters{padding:10px 16px 12px}.results{padding:14px 16px}.map-title{top:12px}.map-legend{bottom:133px}.map-age-tip{bottom:177px}.gps{bottom:91px}.install-banner{left:10px;right:10px;bottom:86px}}
.quest-status{margin-left:auto}
@media(max-width:430px){.quest-status{display:none!important}.quest-panel{margin:0 16px}}
@media(max-width:330px){.brand>span{display:none}.topbar-action{display:none!important}.topbar .primary{display:block!important;width:40px;min-width:40px!important}.collection-tabs{height:48px;padding:5px 8px}.collection-tabs button{font-size:13px}}
/* Final control spacing: no overlap and consistent touch targets. */
.sound-toggle{position:absolute!important;right:auto!important;left:12px;bottom:4px!important;width:auto!important;height:auto!important;padding:3px 0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#d7cbdc;font-size:11px!important;font-weight:400!important;box-shadow:none!important}
.topbar nav{gap:6px!important}
.topbar-action{width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;border:1px solid #5b4964!important;border-radius:8px!important;justify-content:center}
.topbar .primary{width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;border:1px solid #5b4964!important;border-radius:8px!important;justify-content:center;background:#241d2b!important;color:var(--orange)!important;font-size:0!important}
.topbar .primary::before{content:'+';font-size:28px;line-height:1}
.public-app .workspace{height:calc(100% - 155px)}
.public-app .results{padding-bottom:90px}
.public-app .results .empty{min-height:150px}
.public-app .legal{padding-left:82px}
.install-banner{z-index:60}
.sound-toggle{z-index:45}
.results [data-station-list] .empty{margin:26px 0 18px;padding:28px 18px;border:1px solid #59465f;border-radius:14px;background:linear-gradient(145deg,#2a2032,#211b29);box-shadow:inset 0 1px #ffffff0a;color:#cfc1d4}
.topbar-action{display:inline-flex!important;align-items:center;gap:5px!important;border:1px solid #5b4964!important;background:#241d2b!important;color:#f4eaf6!important;font-weight:700}
.topbar-action span:first-child{display:grid;place-items:center;width:18px;height:18px;border-radius:5px;background:#ff914d;color:#24160f;font-size:13px;line-height:1}
.topbar-action span:first-child svg{width:15px;height:15px;fill:currentColor}
.install-banner{animation:install-pulse 2.6s ease-in-out infinite}
@keyframes install-pulse{0%,100%{box-shadow:0 12px 40px #0009,0 0 0 0 #ff914d00}50%{box-shadow:0 12px 40px #0009,0 0 0 5px #ff914d2e}}
@media(max-width:560px){.topbar-action span:last-child{display:none}.topbar-action{min-width:48px!important;padding:0 8px!important}}
@media(prefers-reduced-motion:reduce){.install-banner{animation:none}}
html,body{width:100%;max-width:100%;overflow-x:hidden;overscroll-behavior-x:none}
.app-frame{max-width:100vw;min-width:0;touch-action:pan-y;overscroll-behavior-x:none;overflow-x:hidden}
.topbar,.workspace,.sidebar,.map-view,.collection-tabs{max-width:100%;min-width:0;overflow-x:hidden}
.topbar nav{min-width:0;max-width:52%;overflow:hidden}
.intro,.filters,.results,.host-callout{max-width:100%;min-width:0;overflow-wrap:anywhere}
.topbar-action{min-width:78px!important;height:44px!important;padding:0 11px!important;font-size:13px!important}
.topbar-action span:first-child{width:24px;height:24px;border-radius:7px}
/* Einheitliche rechteckige Interaktionsflächen auf allen Seiten. */
button,a,input,select,textarea{border-radius:8px}
.review-teaser{border-radius:8px}.review-teaser span{border-radius:6px}
.review-card{border-radius:10px}.review-card figure img{border-radius:8px}.review-next{border-radius:10px}
.collection-tabs button,.view-tabs,.view-tabs button,.topbar-action,.header-add,.menu-toggle,.header-menu,.document-icon-link,.near-filter,.gps,.dialog-actions button,.dialog-actions a,.install-banner,.install-banner>[data-install-close]{border-radius:8px}
.install-banner>[data-install-close]{top:-8px;right:-5px}
.map-view .gps{font-size:12px!important;font-weight:700;line-height:1}
.event-lock{margin:0 14px 12px;padding:17px 15px;border:1px solid #80506a;border-radius:8px;background:linear-gradient(135deg,#38223f,#292030);text-align:center}.event-lock h2{margin:5px 0 7px;color:#fff;font-size:18px}.event-lock p:not(.kicker){margin:0;color:#cdbfd2;font-size:12px;line-height:1.45}.event-countdown{display:block;margin-top:12px;color:#ffc39b;font-size:18px;letter-spacing:.04em}.event-locked .collection-tabs{pointer-events:none;opacity:.55}.event-locked .filters,.event-locked .results,.event-locked .quest-panel{display:none}.event-lock-map{position:absolute;inset:0;z-index:30;display:grid;place-content:center;margin:0;padding:24px;background:#1e1625eF;backdrop-filter:blur(3px);border:0;border-radius:0}.event-lock-map[hidden]{display:none!important}
.event-locked .collection-tabs{pointer-events:auto;opacity:1}.event-locked .filters,.event-locked .results{display:grid}.event-locked .quest-panel{display:flex}
.map-view .map-legend{display:grid!important;grid-template-columns:1fr!important;gap:4px!important}.map-view .map-legend>span{display:block!important;padding:0!important;border:0!important;background:transparent!important}
.live-stats{height:38px;display:grid;grid-template-columns:repeat(3,1fr);align-items:center;gap:6px;padding:4px 14px;border-bottom:1px solid #39313f;background:#1e1925;color:#bfb1c6;font-size:10px;text-align:center}.live-stats span{display:flex;justify-content:center;gap:4px;white-space:nowrap}.live-stats strong{color:#ffc39b;font-size:12px}.public-app .workspace{height:calc(100% - 163px)}
@media(max-width:430px){.public-app .workspace{height:calc(100% - 158px)}.live-stats{padding-left:8px;padding-right:8px;font-size:9px}.live-stats strong{font-size:11px}}
.public-app .topbar{z-index:80;overflow:visible!important}.header-actions{flex:0 0 auto}.topbar .header-add{padding:0 17px!important;white-space:nowrap;line-height:1}.menu-toggle{align-items:center;justify-items:center;line-height:1}.menu-toggle>span:first-child{display:block;line-height:1}.header-menu{z-index:100;overflow:visible}.header-menu .menu-link{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:44px;padding:0 12px;border:1px solid #5b4964;background:#241d2b;color:#f4eaf6;font-size:13px;font-weight:700;text-align:left}.header-menu .menu-link+.menu-link{margin-top:6px}.header-menu .menu-link:hover,.header-menu .menu-link:focus-visible{border-color:var(--orange);background:#3a2940;color:#fff}
.topbar .header-menu{max-width:none!important;min-width:220px!important;width:max-content;overflow:visible!important;white-space:nowrap}.header-menu .menu-link span:first-child{display:inline!important;width:auto!important;height:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important}.header-menu .menu-link svg{display:none!important}
.header-menu .topbar-action+.topbar-action,.header-menu .topbar-action+.menu-link,.header-menu .menu-link+.topbar-action{margin-top:6px}
.map-legend{display:grid;grid-template-columns:1fr;gap:4px}.map-legend>span{display:block;padding:0;border:0;background:transparent;color:#4f4356!important;line-height:1.35}.map-legend>span:first-child{color:#b85e2d!important}.map-legend>span:nth-child(2){color:#7655b4!important}
.topbar-action span:first-child svg{width:19px;height:19px}
.view-tabs{bottom:43px}
.sound-toggle{width:50px;height:50px;font-size:16px;font-weight:800}
dialog{position:fixed;inset:50% auto auto 50%;margin:0;transform:translate(-50%,-50%);touch-action:none;overscroll-behavior:contain}
.option-group{display:grid;gap:8px;margin:0;padding:12px;border:1px solid #5a4a64;border-radius:9px;background:#282131}
.option-group legend{padding:0 5px;color:#ffc39b;font-weight:700}
.option-group .check{display:flex;align-items:center}
.party-options{margin-top:4px;padding:4px 0 0;border:0;background:transparent}
.option-heading{margin:3px 0;color:#ffc39b;font-weight:700}
.feature-badges{grid-column:2/-1;display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
.feature-badges span{padding:4px 7px;border-radius:6px;background:#49344f;color:#ffd0ad;font-size:10px}
.station.quest-complete{opacity:.82}.station.quest-complete h3{color:#cbb8d1}.station.quest-complete small{color:#9ee2bd}
.station-map-pin.quest-done{background:#52b980;color:#10251b;border-color:#d7ffe5;box-shadow:0 5px 15px #153d2b88}
.station-map-pin.quest-done small{background:#174b35;color:#e5ffef}
.quest-status{display:inline-flex!important;align-items:center;justify-content:center;width:44px!important;min-width:44px!important;max-width:44px!important;padding:0!important;font-size:21px!important;line-height:1}
.quest-panel{display:flex;align-items:center;gap:11px;margin:0 14px;padding:11px 13px;border:1px solid #735276;border-radius:12px;background:linear-gradient(110deg,#38223f,#282031);box-shadow:0 8px 20px #100a1644}
.quest-avatar{display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:12px;background:#ff914d;font-size:25px;cursor:pointer;filter:drop-shadow(0 4px 5px #10091299);transition:transform .2s,filter .2s}.quest-avatar:hover,.quest-avatar:focus-visible{transform:scale(1.08);filter:drop-shadow(0 5px 8px #ff914d88)}
.quest-copy{min-width:0;flex:1}.quest-copy strong,.quest-copy span,.quest-copy small{display:block}.quest-copy strong{color:#fff;font-size:13px}.quest-copy span{margin-top:2px;color:#ffc39b;font-size:11px;font-weight:700}.quest-copy small{margin-top:5px;color:#bfaec8;font-size:10px}.quest-track{height:5px;margin-top:6px;overflow:hidden;border-radius:9px;background:#19131f}.quest-track i{display:block;width:0;height:100%;border-radius:9px;background:linear-gradient(90deg,#a94370,#ff914d,#ffd28f);transition:width .3s}
.document header{align-items:center}
.document-icon-link{display:grid!important;place-items:center;width:42px;height:42px;border:1px solid #655171;border-radius:11px;background:#2a2032;color:#ffc39b;text-decoration:none;transition:background .2s,color .2s,transform .2s}
.document-icon-link:hover,.document-icon-link:focus-visible{background:#ff914d;color:#24160f;transform:translateY(-1px)}
.document-icon-link svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.avatar-dialog{text-align:center}.avatar-dialog .kicker{margin-top:4px}.avatar-portrait{display:grid;place-items:center;width:190px;height:190px;margin:12px auto;border:1px solid #8b5e79;border-radius:50%;background:radial-gradient(circle,#633454,#281c32 68%,#15101c);filter:drop-shadow(0 18px 25px #100811aa);animation:avatar-float 3s ease-in-out infinite;overflow:hidden}.avatar-portrait img{width:100%;height:100%;object-fit:contain}.quest-avatar img{width:100%;height:100%;object-fit:contain}.avatar-dialog h2{margin:12px 0 4px;color:#ffc39b}.avatar-dialog>p:not(.kicker):not(.fine){margin:0;color:#d8c7dc}.avatar-stats{display:flex;justify-content:center;gap:9px;margin:16px 0}.avatar-stats>*{padding:9px 12px;border-radius:8px;background:#382a43;color:#fff}.avatar-stats strong{color:#ffd09c}@keyframes avatar-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.gallery-dialog{width:min(92vw,620px);max-height:min(84vh,760px);overflow:auto;background:#211a29;color:#f4eaf6}.gallery-dialog h2{margin:5px 0 8px}.gallery-dialog .dialog-close{position:absolute;top:10px;right:10px}.gallery-upload{margin:16px 0;padding:12px;border:1px solid #5a4564;border-radius:12px;background:#2b2034}.gallery-upload strong,.gallery-upload small{display:block}.gallery-upload small{margin-top:3px;color:#b9a9c1;font-size:11px}.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.gallery-grid a{display:block;overflow:hidden;border:1px solid #654b6e;border-radius:9px;background:#1a1421;color:#d9c9df;text-decoration:none}.gallery-grid img{display:block;width:100%;aspect-ratio:9/16;object-fit:cover;background:#140f19}.gallery-grid span{display:block;overflow:hidden;padding:5px 6px;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.gallery-dialog>.primary{width:100%;margin-top:8px}
.topbar{position:relative}.header-actions{display:flex;align-items:center;gap:7px}.header-add{display:inline-flex!important;align-items:center;gap:4px!important;width:auto!important;min-width:0!important;padding:0 13px!important;font-size:13px!important;background:var(--orange)!important;color:#211710!important}.header-add span:first-child{font-size:22px;line-height:1}.menu-toggle{display:grid;place-items:center;width:44px;height:44px;padding:0!important;border:1px solid #5b4964!important;border-radius:9px!important;background:#241d2b!important;color:#f4eaf6!important;font-size:24px!important;line-height:1}.header-menu{position:absolute;z-index:70;top:calc(100% + 7px);right:12px;display:grid!important;min-width:190px;padding:8px;border:1px solid #665071;border-radius:12px;background:#211a2b;box-shadow:0 15px 35px #000b}.header-menu[hidden]{display:none!important}.header-menu .topbar-action{width:100%!important;min-width:0!important;justify-content:flex-start!important}.header-menu .quest-status{justify-content:flex-start!important}.header-menu [data-info]{display:flex;align-items:center;gap:5px;width:100%;height:44px;padding:0 11px;border:1px solid #5b4964;border-radius:8px;background:#241d2b;color:#f4eaf6;font-weight:700}.header-menu [data-info] span:first-child{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#ff914d;color:#24160f}
.topbar .header-add{font-size:13px!important;width:auto!important;min-width:0!important;background:var(--orange)!important;color:#211710!important}.topbar .header-add::before{content:none!important}.topbar .header-add span:first-child{display:inline!important;width:auto!important;height:auto!important;background:transparent!important;color:inherit!important}
.public-app .workspace{height:calc(100% - 125px)}.brand b{display:block;line-height:1.02}.brand small{letter-spacing:.15em;text-transform:none}.filters .near-filter,.filters .radius{grid-column:1/-1}.filters .near-filter{min-height:42px;border:1px solid #5a4a64;border-radius:9px;background:#30263a;color:#f1e6f5}.filters .near-filter.active{border-color:var(--orange);background:var(--orange);color:#211710;font-weight:800}.station p strong{color:#ffbd92;font-weight:700}.map-legend{position:absolute;z-index:3;left:14px;bottom:148px;display:flex;gap:11px;padding:10px 12px;border-radius:9px;background:#fffdf9;color:#4f4356;font-size:11px;box-shadow:0 3px 16px #23142c22}.map-legend span:first-child{color:#b85e2d}.map-legend span:last-child{color:#7655b4}.map-age-tip{position:absolute;z-index:3;left:14px;bottom:196px;max-width:235px;padding:10px 12px;border-radius:9px;background:#fffdf5eF;color:#69566e;font-size:11px;line-height:1.45;box-shadow:0 3px 16px #23142c22}.map-age-tip strong{color:#443548}.map-hints-toggle{position:absolute;z-index:3;right:14px;bottom:101px;min-height:34px;padding:0 10px;border:1px solid #655371;border-radius:8px;background:#241c2ddd;color:#fff;font-size:11px}
.header-menu .menu-link,.header-menu .topbar-action,.header-menu [data-info]{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 12px!important;border:1px solid #5b4964!important;border-radius:8px!important;background:#241d2b!important;color:#f4eaf6!important;font-size:13px!important;font-weight:700!important;line-height:1!important;text-align:left!important;white-space:nowrap!important}
.header-menu .menu-link+.menu-link,.header-menu .topbar-action+.topbar-action,.header-menu .menu-link+.topbar-action,.header-menu .topbar-action+.menu-link{margin-top:6px!important}
.header-menu .topbar-action>span:first-child,.header-menu [data-info]::before,.header-menu .quest-status::before{display:grid!important;place-items:center!important;flex:0 0 24px!important;width:24px!important;height:24px!important;margin:0!important;border:0!important;border-radius:7px!important;background:#ff914d!important;color:#24160f!important;font-size:15px!important;font-weight:900!important;line-height:1!important}
.header-menu .topbar-action>span:first-child svg{display:block!important;width:17px!important;height:17px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.header-menu .topbar-action>span:last-child{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important}
.header-menu [data-info]::before{content:'i'}
.header-menu .quest-status::before{content:'🎃';font-size:14px}
.public-app .map-view .map-legend{top:86px!important;bottom:auto!important;left:14px!important;right:14px!important;max-width:calc(100% - 28px);width:max-content}
.public-app .map-view .gps{left:auto!important;right:14px!important;bottom:136px!important;width:auto!important;min-width:148px}
.public-app .map-view{padding-bottom:0!important}
.public-app .view-tabs{bottom:43px!important}
.public-app .legal{height:30px;align-items:center;overflow:hidden;white-space:nowrap}
@media(max-width:430px){.public-app .map-view .map-legend{top:84px!important;font-size:10px}.public-app .map-view .gps{bottom:135px!important;min-width:138px}.public-app .legal{gap:9px;padding-left:8px;font-size:10px}}
.public-app .workspace{height:calc(100% - 190px)!important;min-height:0}
.public-app .map-view{height:100%!important;min-height:0}
.public-app .legal{bottom:0!important;height:30px!important}
@media(max-width:430px){.public-app .workspace{height:calc(100% - 190px)!important}}
.public-app .map-view .map-legend{top:86px!important;bottom:auto!important;left:14px!important;right:auto!important;max-width:calc(100% - 28px);width:max-content}
.public-app .map-view .gps{left:auto!important;right:10px!important;bottom:78px!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;display:grid!important;place-items:center!important;border:1px solid #aaa!important;border-radius:4px!important;background:#fff!important;color:#222!important;box-shadow:0 1px 5px #0005!important;font-size:0!important;line-height:1!important}
.public-app .map-view .gps::before{content:'⌖';font-size:22px;line-height:1;color:#333}
.public-app .map-view .leaflet-control-zoom{margin:12px 10px 0 0;border:1px solid #6b5573;border-radius:8px;overflow:hidden;box-shadow:0 4px 14px #0006}
.public-app .map-view .leaflet-control-zoom a{width:34px;height:34px;line-height:32px;border:0;background:#241c2d;color:#ffc39b;font-size:24px;font-weight:700}
.public-app .map-view .leaflet-control-zoom a+a{border-top:1px solid #6b5573}
.public-app .map-view .gps{border-color:#6b5573!important;background:#241c2d!important;color:#ffc39b!important;box-shadow:0 4px 14px #0006!important}
.public-app .map-view .gps::before{color:#ffc39b}
.public-app .map-view .gps{bottom:90px!important}
.version-meta{display:flex;flex-wrap:wrap;gap:8px 14px;margin:0 0 18px;padding:10px 12px;border:1px solid #6f4f70;border-radius:9px;background:#2a2032;color:#ffc39b;font-size:12px}.version-meta span{color:#c9b9cf}
.public-app .content-view{width:100%;height:100%;min-width:0;overflow-y:auto;overflow-x:hidden;padding:22px 18px 90px;background:var(--panel);color:var(--text);-webkit-overflow-scrolling:touch;overscroll-behavior-x:none;touch-action:pan-y}.public-app .content-view[hidden]{display:none!important}.public-app .content-view article{max-width:680px;margin:0 auto}.public-app .content-view h1{margin:8px 0 20px;font-size:30px}.public-app .content-view h2{margin-top:26px;color:#ffb681}.public-app .content-view p,.public-app .content-view address{color:#d2c7d7;line-height:1.65}.public-app .content-view a{color:#ffc59e}
.avatar-stats{flex-wrap:wrap}
.station-locality{margin:-8px 0 12px;color:#cdbfd2;font-size:13px}
.share-posters{display:grid;gap:14px;margin:18px 0 8px}
.share-poster{display:grid;grid-template-columns:112px 1fr;gap:10px;padding:10px;border:1px solid #5c4768;border-radius:10px;background:#2a2033}
.share-poster>img{grid-row:1/3;display:block;width:112px;aspect-ratio:9/16;object-fit:cover;border-radius:7px;background:#17111f}
.share-poster-copy{display:grid;align-content:center;gap:4px;min-width:0}
.share-poster-copy strong{color:#ffd0ad;font-size:14px}
.share-poster-copy span{color:#c9bcd0;font-size:11px;line-height:1.35}
.share-poster-copy small{color:#ffc39b;font-size:10px;font-weight:700}
.share-poster-actions{display:flex;align-items:end;gap:7px;flex-wrap:wrap}
.share-poster-actions a,.share-poster-actions button{flex:1;padding:9px 7px;border:1px solid #65536f;border-radius:7px;background:#352941;color:#fff;font-size:11px;font-weight:700;text-align:center;text-decoration:none;white-space:nowrap}
.share-poster-actions button{cursor:pointer;font-family:inherit}
.share-poster-actions .share-download{border-color:#8d6bd2;background:#df884d;color:#24170f}
.share-poster-actions .native-character-share{border-color:#8d6bd2;background:#493572;color:#fff}
.map-fullscreen-toggle{position:absolute;z-index:24;top:14px;right:14px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #6b5573;border-radius:8px;background:#241c2d;color:#ffc39b;font-size:24px;font-weight:700;line-height:1;box-shadow:0 4px 14px #0006}
.map-fullscreen-toggle:hover,.map-fullscreen-toggle:focus-visible{border-color:var(--orange);background:#38263f;color:#fff}
.map-view:fullscreen{width:100vw!important;height:100vh!important;max-width:none!important;max-height:none!important}
.map-view.map-fullscreen-fallback{position:fixed!important;z-index:9999!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important}
body.map-fullscreen-open{overflow:hidden!important}
@media(max-width:699px){.map-fullscreen-toggle{top:12px;right:12px;width:42px;height:42px}}
.share-poster>img{cursor:zoom-in}
.share-poster>img:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.share-preview-dialog{width:min(96vw,760px);height:min(96dvh,1180px);max-width:none;max-height:none;padding:14px;background:#110d18;border-color:#765681;overflow:hidden;text-align:center}
.share-preview-dialog::backdrop{background:#07050bcc}
.share-preview-dialog img{display:block;width:100%;height:100%;max-width:100%;max-height:calc(100dvh - 32px);object-fit:contain;cursor:zoom-out}
.share-preview-dialog .dialog-close{z-index:2;top:7px;right:10px;width:36px;height:36px;border:1px solid #765681;border-radius:8px;background:#241c2d;color:#fff;font-size:25px}

/* Teilen und Charakter werden als Seiteninhalt geführt. Der zentrale content-view scrollt auf allen Geräten. */
.public-app .content-view > dialog.share-inline,
.public-app .content-view > dialog.avatar-inline {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: 680px !important;
  max-height: none !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 4px 0 72px !important;
  overflow: visible !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text);
  touch-action: auto !important;
}
.public-app .content-view > dialog.share-inline::backdrop,
.public-app .content-view > dialog.avatar-inline::backdrop { display: none !important; }
.public-app .content-view > dialog.share-inline > .dialog-close,
.public-app .content-view > dialog.avatar-inline > .dialog-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  margin: -2px 0 0;
  border: 1px solid #675371;
  border-radius: 8px;
  background: #2a2032;
  color: #fff;
  font-size: 26px;
}
.public-app .content-view > dialog.share-inline h2,
.public-app .content-view > dialog.avatar-inline h2 { clear: both; }
.public-app .content-view > dialog.share-inline .share-posters { clear: both; }
.public-app .content-view > dialog.share-inline .share-poster { min-width: 0; }
.public-app .content-view > dialog.avatar-inline { text-align: center; }
.public-app .content-view > dialog.avatar-inline .avatar-portrait { margin-top: 22px; }


/* Das Update steht bewusst an erster Stelle und nutzt dieselbe Icon-Fläche wie die übrigen Menüaktionen. */
.header-menu [data-app-update]::before {
  content: '↻';
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #ff914d;
  color: #24160f;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

/* Die eigenständige Teilen-Seite nutzt die volle Breite des Hauptbereichs. */
.public-app .content-view:has(> dialog.share-inline) {
  padding-left: 10px;
  padding-right: 10px;
}
.public-app .content-view > dialog.share-inline {
  max-width: 860px !important;
}
.public-app .content-view > dialog.share-inline .share-poster {
  grid-template-columns: clamp(128px, 24vw, 180px) 1fr;
  gap: 14px;
  padding: 12px;
}
.public-app .content-view > dialog.share-inline .share-poster > img {
  width: 100%;
  min-width: 0;
}
.public-app .content-view > dialog.share-inline .share-poster-copy strong { font-size: 16px; }
.public-app .content-view > dialog.share-inline .share-poster-copy span { font-size: 12px; }
.public-app .content-view > dialog.share-inline .share-poster-actions { gap: 8px; }
.public-app .content-view > dialog.share-inline .share-poster-actions a { font-size: 12px; padding: 10px 8px; }
@media(max-width:460px){
  .public-app .content-view > dialog.share-inline .share-poster {
    grid-template-columns: 128px 1fr;
    gap: 12px;
  }
  .public-app .content-view > dialog.share-inline .share-poster-actions a { font-size: 10px; }
}


/* Anmeldung als scrollbare Hauptseite statt festem Dialog. */
.public-app .content-view > dialog.form-inline {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: 760px !important;
  max-height: none !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 4px 0 72px !important;
  overflow: visible !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  touch-action: auto !important;
}
.public-app .content-view > dialog.form-inline::backdrop { display: none !important; }
.public-app .content-view > dialog.form-inline > .dialog-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  margin: -2px 0 0;
  border: 1px solid #675371;
  border-radius: 8px;
  background: #2a2032;
  color: #fff;
  font-size: 26px;
}
.public-app .content-view > dialog.form-inline > .dialog-close { display: none !important; }

/* Desktop map mode gets a taller canvas; zoom clicks stay inside Leaflet. */
.public-app .map-view #map{touch-action:none;overscroll-behavior:contain}
@media(min-width:700px){
  .public-app.map-mode{overflow:visible!important}
  .public-app.map-mode .workspace{height:calc(100% - 191px + 33%)!important;overflow:visible!important}
  .public-app.map-mode .map-view{height:100%!important;min-height:133%!important}
}
.public-app .content-view > dialog.form-inline form {
  clear: both;
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: visible !important;
  padding-bottom: 12px;
  touch-action: auto !important;
}
.public-app .content-view > dialog.form-inline .pick-map { height: 280px; }


/* Alle Inhaltsdialoge werden im Hauptbereich geführt und besitzen dasselbe Schließen-X. */
.public-app .content-view > dialog.gallery-inline,
.public-app .content-view > dialog.photo-inline,
.public-app .content-view > dialog.success-inline,
.public-app .content-view > dialog.station-inline {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: 760px !important;
  max-height: none !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 4px 0 72px !important;
  overflow: visible !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  touch-action: auto !important;
}
.public-app .content-view > dialog.gallery-inline::backdrop,
.public-app .content-view > dialog.photo-inline::backdrop,
.public-app .content-view > dialog.success-inline::backdrop,
.public-app .content-view > dialog.station-inline::backdrop { display: none !important; }
.public-app .content-view > dialog.gallery-inline > .dialog-close,
.public-app .content-view > dialog.photo-inline > .dialog-close,
.public-app .content-view > dialog.success-inline > .dialog-close,
.public-app .content-view > dialog.station-inline > .dialog-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  margin: -2px 0 0;
  border: 1px solid #675371;
  border-radius: 8px;
  background: #2a2032;
  color: #fff;
  font-size: 26px;
}
.public-app .content-view > dialog.gallery-inline > h2,
.public-app .content-view > dialog.photo-inline > h2,
.public-app .content-view > dialog.success-inline > h2,
.public-app .content-view > dialog.station-inline > h2 { clear: both; }
.public-app .content-view > dialog.photo-inline form {
  clear: both;
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: visible !important;
  padding-bottom: 12px;
  touch-action: auto !important;
}
.public-app .content-view > dialog.photo-inline .dialog-close { margin-bottom: 8px; }
.public-app .content-view > dialog.gallery-inline .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.public-app .content-view > dialog.success-inline { text-align: center; }
.public-app .content-view > dialog.success-inline .dialog-close { text-align: initial; }
.public-app .content-view > dialog.station-inline .dialog-actions { clear: both; }

.public-app .content-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  margin: -2px 0 0;
  border: 1px solid #675371;
  border-radius: 8px;
  background: #2a2032;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}
.public-app .content-view > .content-close + article { clear: both; }

.public-app .content-view > dialog.hot-inline { position:static; transform:none; width:100%; max-width:680px; min-height:100%; margin:0 auto; padding:22px 0 90px; border:0; border-radius:0; overflow:visible; background:transparent; color:var(--text); }
.public-app .content-view > dialog.hot-inline::backdrop { display:none !important; }
.public-app .content-view > dialog.hot-inline > .dialog-close { position:relative; float:right; top:auto; right:auto; width:40px; height:40px; margin:-2px 0 0; border:1px solid #675371; border-radius:8px; background:#2a2032; color:#fff; font-size:26px; line-height:1; }
.hot-dialog h1 { margin:8px 0 10px; padding-right:48px; font-size:30px; }
.hot-intro { color:#cfc0d4; line-height:1.5; }
.hot-ranking { margin:22px 0 28px; }
.hot-ranking h2 { margin:0 0 10px; color:#ffb681; font-size:21px; }
.hot-ranking ol,.admin-ranking ol { display:grid; gap:7px; margin:0; padding:0; list-style:none; }
.hot-ranking li,.admin-ranking-group li { display:grid; grid-template-columns:30px minmax(0,1fr) auto; align-items:center; gap:9px; padding:10px 8px; border:1px solid #4e3e59; border-radius:9px; background:#2a2133; }
.hot-ranking li>div,.admin-ranking-group li>div { min-width:0; }
.hot-ranking strong,.hot-ranking small,.admin-ranking-group strong,.admin-ranking-group small { display:block; }
.hot-ranking strong,.admin-ranking-group strong { overflow:hidden; color:#fff; text-overflow:ellipsis; white-space:nowrap; }
.hot-ranking small,.admin-ranking-group small { margin-top:3px; color:#c5b6cc; font-size:11px; }
.hot-rank,.admin-rank { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:#ff914d; color:#24160f; font-weight:800; }
.hot-open { padding:7px 8px; border:1px solid #6b5573; border-radius:7px; background:#362940; color:#ffc39b; font-size:11px; white-space:nowrap; }
.hot-empty,.admin-empty { grid-template-columns:1fr !important; color:#b8acbf; font-size:12px; }
.admin-panel>h2 { margin:18px 14px 4px; color:#ffc39b; font-size:18px; }
.admin-panel>.fine { margin:0 14px 10px; }
.admin-ranking { display:grid; gap:18px; padding:0 14px 18px; }
.admin-ranking-group h3 { margin:0 0 7px; color:#ffb681; font-size:15px; }
.admin-ranking-group li { grid-template-columns:30px minmax(0,1fr); }
.admin-ranking-group li small { color:#ffc39b; }
.admin-summary{grid-template-columns:repeat(4,minmax(0,1fr)) auto}
.header-menu [data-hot]::before{content:'🔥';display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:7px;background:#ff914d;color:#24160f;font-size:15px;line-height:1}
@media (max-width:520px){.admin-summary{grid-template-columns:1fr 1fr}.admin-summary button{min-height:42px}.hot-ranking li{grid-template-columns:28px minmax(0,1fr);}.hot-open{grid-column:2;justify-self:start}.hot-ranking li>div{min-width:0}}

/* Keep the live-stat heading readable without squeezing the values on mobile. */
.live-stats{height:66px;display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;grid-template-areas:"heading" "values";gap:4px;padding:7px 14px}
.live-stats h2{grid-area:heading;margin:0;color:#c9bdd0;font-size:clamp(12px,3.5vw,14px);font-weight:600;line-height:1.15;text-align:center;white-space:nowrap}
.live-stat-items{grid-area:values;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:4px;font-size:clamp(11px,3.2vw,13px)}
.live-stat-items span{display:flex;justify-content:center;gap:4px;white-space:nowrap}
.live-stat-items strong{color:#ffc39b;font-size:clamp(13px,3.5vw,15px)}
.public-app .workspace{height:calc(100% - 191px)!important}

/* Admin summary: four metrics in the first row and the reload action below. */
.admin-summary{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
.admin-summary>div{min-width:0;overflow-wrap:anywhere}
.admin-summary>div span{overflow-wrap:anywhere}
.admin-summary>button{grid-column:1/-1;justify-self:end;min-height:42px;padding:0 16px}

/* Use the same dark monochrome menu-symbol treatment for quest and rankings. */
.header-menu .quest-status::before{content:'♟';font-size:15px}
.header-menu [data-hot]::before{content:'♨';font-size:15px}

@media(max-width:430px){
  .live-stats{height:66px;padding-left:8px;padding-right:8px;font-size:10px}
  .live-stats h2{font-size:clamp(12px,3.8vw,14px)}
  .live-stat-items strong{font-size:13px}
  .public-app .workspace{height:calc(100% - 191px)!important}
}
@media(max-width:520px){
  .admin-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-summary>button{grid-column:1/-1;justify-self:stretch}
}

/* Keep the footer navigation clear of the sound control on narrow screens. */
.public-app .legal {
  justify-content: flex-end !important;
  padding-right: 10px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
@media (max-width: 430px) {
  .public-app .legal {
    left: 0 !important;
    right: 0 !important;
    height: auto !important;
    min-height: 30px;
    max-height: 44px;
    align-content: center;
    justify-content: flex-end !important;
    flex-wrap: wrap;
    gap: 0 7px !important;
    padding: 3px 8px 3px 76px !important;
    font-size: 10px !important;
    line-height: 16px;
    white-space: normal !important;
  }
  .public-app .legal a { flex: 0 0 auto; }
  .public-app .sound-toggle { left: 10px !important; z-index: 50; }
}

/* Keep paired time fields inside the dialog on narrow screens. */
.form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.form-row > label { min-width: 0; }
.form-row input { min-width: 0; max-width: 100%; }

.household-name-picker{display:grid;gap:8px;padding:14px;border:1px solid #8b683e;border-radius:10px;background:linear-gradient(135deg,#35272e,#2a2032)}
.household-name-picker .kicker{margin:0;color:#ffb681;font-size:11px}
.household-name-picker output{display:block;color:#fff;font-size:clamp(20px,5vw,26px);font-weight:800;line-height:1.15}
.household-name-picker button{min-height:42px;border:1px solid #8b683e;border-radius:8px;background:#ff914d;color:#24160f;font-weight:800}
.household-name-picker button:disabled{cursor:not-allowed;opacity:.58}
.household-name-picker small{color:#d3c2d8;line-height:1.45}

/* Prevent Firefox/iOS from exposing an empty overscroll area above inline pages. */
.public-app .content-view{overscroll-behavior-y:none;overflow-anchor:none}
.public-app .content-view > dialog.form-inline,
.public-app .content-view > dialog.gallery-inline,
.public-app .content-view > dialog.photo-inline,
.public-app .content-view > dialog.success-inline,
.public-app .content-view > dialog.station-inline,
.public-app .content-view > dialog.hot-inline{margin-block-start:0!important;margin-block-end:0!important}

/* Final readability and safe-area corrections for long inline pages. */
.public-app .content-view .share-poster-actions .share-download{color:#24170f}
.public-app .content-view{padding-bottom:120px}
