:root{font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#1e293b;background:#f1f5f9}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#102b42;color:white;padding:12px 22px;min-height:60px}header nav{display:flex;align-items:center;gap:16px;flex-wrap:wrap}header a{color:#e0f2fe}a{color:#0369a1}button{background:#0369a1;color:white;border:0;border-radius:7px;padding:10px 14px;cursor:pointer;font:inherit}button:hover{filter:brightness(1.12)}button.secondary{background:#64748b}button.danger{background:#b91c1c}label{display:flex;flex-direction:column;gap:5px;font-size:14px;font-weight:600}input,select,textarea{border:1px solid #94a3b8;border-radius:6px;padding:9px;font:inherit;width:100%;background:white}textarea{min-height:90px}form{display:flex;flex-direction:column;gap:14px}header form{display:block}header button{padding:6px 10px}.panel{max-width:530px;margin:35px auto;padding:26px;border-radius:12px;background:white;box-shadow:0 3px 20px #0001}.toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:14px;padding:12px 20px;background:#e2e8f0}.toolbar select{min-width:150px}.toolbar #hint{font-size:13px;color:#475569}#panorama{width:100%;height:calc(100dvh - 155px);min-height:380px;background:#1e293b}.detail{position:absolute;right:20px;top:170px;z-index:5;background:white;box-shadow:0 5px 28px #0004;border-radius:12px;padding:20px;width:min(360px,calc(100% - 40px));max-height:65vh;overflow:auto}.detail p{white-space:pre-wrap;overflow-wrap:anywhere}.detail a,.detail button{display:inline-block;margin:5px 5px 5px 0}dialog{border:0;border-radius:12px;box-shadow:0 15px 60px #0006;width:min(560px,95vw);max-height:90vh;overflow:auto}dialog::backdrop{background:#0f172a99}.coords{display:grid;grid-template-columns:1fr 1fr;gap:12px}.actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.actions .danger{margin-right:auto}.small{font-size:13px;color:#475569}.error{color:#b91c1c}.success{color:#166534}.admin{padding:24px;max-width:1200px;margin:auto}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:18px}.admin .panel{margin:0;max-width:none}.check{display:flex;flex-direction:row;align-items:center}.check input{width:auto}.grant{display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd;padding:7px 0;font-size:13px}.grant button{font-size:12px;padding:6px}@media(max-width:600px){.toolbar{gap:8px}.toolbar label{flex:1 1 120px}.toolbar select{min-width:0}#panorama{height:calc(100dvh - 225px)}.admin{padding:12px}.admin-grid{grid-template-columns:1fr}}

/* Eigene, auswählbare Hotspot-Symbole */
.pnlm-hotspot-base.custom-spot{background:none!important;width:38px!important;height:38px!important;border-radius:50%;cursor:pointer!important}
.custom-spot .spot-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:2px solid #fff;border-radius:50%;background:#075985;color:white;font-size:22px;font-weight:700;box-shadow:0 2px 10px #0008;line-height:1}
.custom-spot:hover .spot-icon{background:#0284c7;transform:scale(1.12)}

.hotspot-appearance{display:grid;grid-template-columns:1fr 1.6fr auto;gap:12px;align-items:center}.hotspot-appearance input[type=color]{height:43px;padding:3px}.hotspot-appearance output{font-size:12px}.hotspot-appearance #spotPreview{display:grid;place-items:center;border-radius:50%;border:2px solid white;color:white;font-weight:bold;box-shadow:0 2px 8px #0005}.custom-spot.drag-ready,.custom-spot.drag-ready *{cursor:grab!important;touch-action:none!important}.custom-spot.dragging,.custom-spot.dragging *{cursor:grabbing!important}.custom-spot .spot-icon{width:var(--spot-size,38px);height:var(--spot-size,38px);font-size:calc(var(--spot-size,38px) * .55);background:var(--spot-color,#075985)}.custom-spot:hover .spot-icon{background:var(--spot-color,#075985);filter:brightness(1.1)}.pnlm-hotspot-base.custom-spot{width:var(--spot-size,38px)!important;height:var(--spot-size,38px)!important}

/* Bildeditor */
.image-editor{width:min(92vw,860px);max-height:92vh;overflow:auto}.image-editor canvas{display:block;width:100%;height:auto;aspect-ratio:2/1;background:#111;border-radius:8px;margin:12px 0}.image-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.image-controls label{display:flex;flex-direction:column}.image-controls input{width:100%}@media(max-width:600px){.image-controls{grid-template-columns:1fr}}

/* 1.2.2: marker appearance is applied to the actual Pannellum hotspot element */
.pnlm-hotspot-base.custom-spot { background:transparent!important; border:0!important; display:flex!important;align-items:center;justify-content:center; transform-origin:center center; touch-action:none; }
.pnlm-hotspot-base.custom-spot .spot-icon { box-sizing:border-box; flex:none; width:var(--spot-size,38px)!important;height:var(--spot-size,38px)!important;background:var(--spot-color,#075985)!important;display:flex;align-items:center;justify-content:center; font-size:calc(var(--spot-size,38px) * .55)!important; border:2px solid white;border-radius:50%;color:#fff;line-height:1;user-select:none; }
.custom-spot.drag-ready { touch-action:none!important; }
