/* DTC Lageplan 3D */
.lp-root {
    --lp-green: #0e6b3c;
    --lp-green-dark: #0a4f2c;
    --lp-ink: #1d2a22;
    --lp-glass: rgba(255, 255, 255, 0.86);
    --lp-line: rgba(20, 40, 28, 0.12);
    --lp-bg-top: #f4f3ec;
    --lp-bg-bottom: #dfe6d6;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 82vh;
    min-height: 420px;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(120% 90% at 50% 35%, var(--lp-bg-top), var(--lp-bg-bottom));
    color: var(--lp-ink);
    font-family: inherit;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
@media (max-width: 700px) {
    .lp-root { aspect-ratio: 4 / 5; border-radius: 14px; min-height: 380px; }
}
.lp-root.lp-is-dark { --lp-glass: rgba(24, 32, 44, 0.82); --lp-ink: #eef2ea; --lp-line: rgba(255, 255, 255, 0.14); }

.lp-stage, .lp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lp-stage canvas { outline: none; }
.lp-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; }

/* ---------- Labels ---------- */
.lp-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; transition: opacity .3s; }
.lp-labels.lp-hidden { opacity: 0; }
.lp-label {
    position: absolute; left: 0; top: 0;
    transform-origin: 50% 100%;
    white-space: nowrap;
    font-size: 13px; line-height: 1;
    will-change: transform;
}
.lp-label-court {
    pointer-events: auto; cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 8px 4px 4px;
    background: var(--lp-green); color: #fff;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25), 0 0 0 2px rgba(255, 255, 255, .85);
    transition: background .2s;
}
.lp-label-court:not(:has(.lp-court-icon)) { padding-right: 4px; }
.lp-label-court:hover, .lp-label-court:focus-visible { background: var(--lp-green-dark); outline: none; }
.lp-court-num {
    display: grid; place-items: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff; color: var(--lp-green);
    font-weight: 700; font-size: 13px;
}
.lp-court-icon svg { width: 15px; height: 15px; display: block; }
.lp-label::after { /* kleiner Pin */
    content: ''; position: absolute; left: 50%; bottom: -6px; width: 2px; height: 6px;
    background: rgba(255, 255, 255, .85); transform: translateX(-50%);
}
.lp-label-place {
    padding: 6px 10px; border-radius: 8px;
    background: var(--lp-glass); color: var(--lp-ink);
    font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    backdrop-filter: blur(6px);
}
.lp-label-parking b {
    display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px;
    background: #1f62b0; color: #fff; font: 700 15px/1 Arial, sans-serif;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .25), 0 0 0 2px #fff;
}
.lp-label-street, .lp-label-area, .lp-label-pointer {
    font-size: 12px; font-weight: 600; letter-spacing: .02em;
    color: rgba(30, 45, 35, .8); text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
.lp-is-dark .lp-label-street, .lp-is-dark .lp-label-area, .lp-is-dark .lp-label-pointer { color: rgba(235, 240, 230, .8); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.lp-label-street::after, .lp-label-area::after, .lp-label-pointer::after, .lp-label-parking::after { display: none; }
.lp-label-pointer::before {
    content: 'P'; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 5px;
    border-radius: 4px; background: #1f62b0; color: #fff; font: 700 11px/1 Arial, sans-serif; vertical-align: -3px;
}

/* ---------- UI ---------- */
.lp-ui { position: absolute; inset: 0; pointer-events: none; z-index: 3; font-size: 13px; }
.lp-ui button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.lp-ui > * { pointer-events: auto; }
.lp-ui svg { width: 16px; height: 16px; display: block; flex: none; }

.lp-brand {
    position: absolute; top: 14px; left: 14px;
    display: flex; align-items: center; gap: 10px;
    padding: 7px 14px 7px 8px; border-radius: 14px;
    background: var(--lp-glass); backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .1);
    pointer-events: none;
}
.lp-brand img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.lp-brand strong { display: block; font-size: 14px; }
.lp-brand span { display: block; font-size: 12px; opacity: .7; margin-top: 2px; }

.lp-panel {
    position: absolute; top: 14px; right: 14px;
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.lp-row { display: flex; align-items: stretch; gap: 8px; }
.lp-fs {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0 13px; border-radius: 12px; font-weight: 600;
    background: var(--lp-glass) !important; backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .1);
    transition: background .2s, color .2s;
}
.lp-fs:hover { background: var(--lp-green) !important; color: #fff; }
.lp-fs[aria-pressed="true"] { background: var(--lp-green) !important; color: #fff; }
.lp-seg, .lp-toggles {
    display: flex; gap: 2px; padding: 3px; border-radius: 12px;
    background: var(--lp-glass); backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .1);
}
.lp-seg button, .lp-tg {
    padding: 7px 11px; border-radius: 9px; font-weight: 600;
    transition: background .2s, color .2s;
}
.lp-seg button:hover, .lp-tg:hover { background: var(--lp-line); }
.lp-seg button[aria-checked="true"] { background: var(--lp-green); color: #fff; }
.lp-tg { display: inline-flex; align-items: center; gap: 6px; opacity: .55; }
.lp-tg[aria-pressed="true"] { opacity: 1; }
.lp-tg em { font-style: normal; font-weight: 500; font-size: 11px; opacity: .7; }
.lp-ui button:focus-visible { outline: 2px solid var(--lp-green); outline-offset: 2px; }

.lp-corner {
    position: absolute; right: 14px; bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.lp-round, .lp-compass {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--lp-glass); backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}
.lp-round svg { width: 18px; height: 18px; }
.lp-needle { position: relative; width: 6px; height: 26px; }
.lp-needle::before {
    content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    border: 4px solid transparent; border-bottom: 13px solid #c9473d; border-top: 0;
}
.lp-needle::after {
    content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    border: 4px solid transparent; border-top: 13px solid currentColor; border-bottom: 0; opacity: .35;
}
.lp-needle span { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 700; }

.lp-hint {
    position: absolute; left: 14px; bottom: 14px;
    font-size: 12px; opacity: .75;
}
.lp-hint > span { padding: 6px 10px; border-radius: 8px; background: var(--lp-glass); backdrop-filter: blur(8px); }
.lp-explore {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 13px !important; border-radius: 999px;
    background: var(--lp-glass) !important; backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12); font-weight: 600 !important;
}
.lp-exploring .lp-explore { background: var(--lp-green) !important; color: #fff; }
.lp-hint:has(.lp-explore) { opacity: 1; }

/* ---------- Info-Karte ---------- */
.lp-card {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
    width: min(320px, calc(100% - 28px));
    padding: 16px 18px; border-radius: 16px;
    background: var(--lp-glass); backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    animation: lp-pop .25s ease-out;
}
.lp-card[hidden] { display: none; }
@keyframes lp-pop { from { opacity: 0; transform: translate(-50%, 8px); } }
.lp-card h3 { margin: 0 0 8px; padding: 0; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: normal; text-transform: none; color: inherit; }
.lp-card p { line-height: 1.45; }
.lp-card-close { position: absolute; top: 10px; right: 10px; padding: 4px; border-radius: 6px; opacity: .6; }
.lp-card-close:hover { opacity: 1; background: var(--lp-line); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-chips span {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: rgba(200, 106, 64, .15); color: #a24c26;
}
.lp-chips .lp-chip-lit { background: rgba(240, 198, 74, .25); color: #7a5a00; }
.lp-is-dark .lp-chips span { color: #f1b089; }
.lp-is-dark .lp-chips .lp-chip-lit { color: #f5d77a; }
.lp-chips svg { width: 13px; height: 13px; }
.lp-card-text { margin: 10px 0 0; font-size: 13px; opacity: .8; }

/* ---------- Fullscreen (Modal) ---------- */
html.lp-noscroll, html.lp-noscroll body { overflow: hidden !important; }
.lp-backdrop {
    position: fixed; inset: 0; z-index: 100000;
    background: rgba(8, 14, 10, .74);
    backdrop-filter: blur(3px);
    animation: lp-fade .2s ease-out;
}
.lp-root.lp-fullscreen {
    position: fixed; top: 2vh; bottom: 2vh; left: 2vw; right: 2vw;
    width: auto; height: auto; min-height: 0; max-height: none; aspect-ratio: auto;
    z-index: 100001;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
    animation: lp-fade .2s ease-out;
}
@keyframes lp-fade { from { opacity: 0; } }
.lp-fullscreen .lp-explore { display: none !important; }

/* ---------- Mobil ---------- */
@media (max-width: 700px) {
    .lp-brand { display: none; }
    .lp-panel { top: 10px; right: 10px; left: 10px; flex-direction: row; align-items: stretch; gap: 6px; }
    .lp-row { flex: 1; min-width: 0; gap: 6px; }
    .lp-seg { flex: 1; min-width: 0; }
    .lp-fs { padding: 0 10px; }
    .lp-fs span { display: none; }
    .lp-seg button { flex: 1; padding: 8px 2px; font-size: 12px; }
    .lp-toggles { gap: 0; }
    .lp-tg { padding: 8px 7px; }
    .lp-tg span, .lp-tg em { display: none; }
    .lp-corner { right: 10px; bottom: 10px; }
    .lp-round, .lp-compass { width: 38px; height: 38px; }
    .lp-hint { left: 10px; bottom: 10px; }
    .lp-card { bottom: 60px; }
    .lp-label { font-size: 12px; }
    .lp-label-pointer, .lp-label-area { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-card, .lp-backdrop, .lp-root.lp-fullscreen { animation: none; }
}
