/* Karte nicht verfügbar und Attribution. Tokens aus tokens.css. Kein Lu. */
#mainMap .leaflet-control-attribution { position: fixed; left: 0; right: 0; bottom: var(--ld-safe-bottom, 0px); margin: 0 !important; width: auto; text-align: center; z-index: 1200; border-radius: 0; }
.ld-cp-map .leaflet-bottom { bottom: 0 !important; left: 0; right: 0; }
.ld-cp-map .leaflet-control-attribution { position: absolute; left: 0; right: 0; bottom: 0 !important; margin: 0 !important; text-align: center; border-radius: 0; background: rgba(255, 248, 236, .94); color: #23263A; }
:root[data-theme="dark"] .ld-cp-map .leaflet-control-attribution { background: rgba(35, 38, 58, .92); color: #FDECD0; }
.leaflet-container .leaflet-control-attribution {
    font: 600 11px/14px Nunito, "Nunito Fallback", system-ui, sans-serif;
    color: var(--ld-text-2, #5B5E72);
    background: var(--ld-sheet-glass, rgba(255, 248, 236, .95)) !important;
    padding: 2px 6px; margin: 0 4px 4px 0; border-radius: 6px;
}
.leaflet-container .leaflet-control-attribution a { color: var(--ld-text, #23263A) !important; text-decoration: underline; text-underline-offset: 2px; }
.leaflet-bottom.leaflet-right { bottom: var(--ld-map-inset-bottom, 0px); }
.leaflet-container .leaflet-control-attribution:empty { display: none; }

.ld-map-unavailable {
    position: absolute; inset: 0; z-index: 900;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; padding-bottom: calc(24px + var(--ld-map-inset-bottom, 0px));
    background: var(--ld-sky, #CFE8F0);
    background-image: radial-gradient(var(--ld-map-dot, rgba(35, 38, 58, .07)) 1.2px, transparent 1.3px);
    background-size: 18px 18px;
    opacity: 1;
}
:root[data-theme="dark"] .ld-map-unavailable { --ld-map-dot: rgba(255, 248, 236, .06); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ld-map-unavailable { --ld-map-dot: rgba(255, 248, 236, .06); }
}
/* Abgemeldet liegt die Login-Karte über der Kartenmitte. Der Platzhalter beginnt erst darunter
   (--ld-hero-clear setzt index.html), damit „Erneut versuchen“ und „Liste anzeigen“ beide frei bleiben. */
body:not(.ld-signed-in) .ld-map-unavailable {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    box-sizing: border-box;
    padding-top: var(--ld-hero-clear, 0px);
    padding-right: 128px;
    padding-bottom: calc(12px + var(--ld-safe-bottom, 0px));
    padding-left: 12px;
    overflow: hidden;
}
body:not(.ld-signed-in) .ld-mu-card {
    flex: 0 1 auto;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 14px 16px 12px;
}
body:not(.ld-signed-in) .ld-mu-icon,
body:not(.ld-signed-in) .ld-mu-title,
body:not(.ld-signed-in) .ld-mu-body { display: none; }
body:not(.ld-signed-in) .ld-mu-actions,
body:not(.ld-signed-in) .ld-mu-hint { flex: 0 0 auto; }
.ld-map-unavailable[hidden] { display: none; }
.ld-map-unavailable.is-leaving { opacity: 0; }
.ld-mu-card {
    width: 100%; max-width: 342px; box-sizing: border-box; text-align: center;
    background: var(--ld-surface-2, #FFFFFF); color: var(--ld-text, #23263A);
    border: 2px solid var(--ld-border, #23263A); border-radius: 20px; padding: 24px 24px 20px;
    box-shadow: var(--ld-shadow-sticker, 3px 5px 0 0 #23263A);
}
.ld-mu-icon { width: 64px; height: 64px; margin: 0 auto 12px; display: block; }
.ld-mu-title { font: 700 20px/1.15 var(--ld-font-display, "Baloo 2"), system-ui, sans-serif; margin: 0 0 8px; }
.ld-mu-body { font: 400 15px/1.35 var(--ld-font-body, Nunito), system-ui, sans-serif; color: var(--ld-text-2, #5B5E72); margin: 0 0 20px; }
.ld-mu-actions { display: flex; flex-direction: column; gap: 12px; }
.ld-mu-btn {
    min-height: 50px; border-radius: 14px; font: 800 18px/1 var(--ld-font-display, "Baloo 2"), system-ui, sans-serif;
    border: 2px solid var(--ld-border, #23263A); box-shadow: var(--ld-shadow-sticker, 3px 5px 0 0 #23263A); cursor: pointer;
}
.ld-mu-btn:active { transform: translateY(3px); box-shadow: var(--ld-shadow-sticker-pressed, 0 1px 0 0 #23263A); }
.ld-mu-retry { background: var(--ld-caramel, #A0612A); color: var(--ld-on-color, #FFFFFF); }
.ld-mu-list { background: var(--ld-bg, #FFF8EC); color: var(--ld-text, #23263A); }
.ld-mu-retry[aria-busy="true"] { opacity: .75; pointer-events: none; }
.ld-mu-hint { font: 600 13px/1.35 var(--ld-font-body, Nunito), system-ui, sans-serif; color: var(--ld-text-2, #5B5E72); margin: 14px 0 0; }
@media (prefers-reduced-motion: no-preference) {
    .ld-map-unavailable { transition: opacity 200ms ease-out; }
}
