.lz-karte {
    width: 100%;
    min-height: 300px;
    background: #e8e8e8;
}

.lz-karte-hinweis {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: #555;
}

.lz-popup-ort {
    margin-bottom: .5rem;
    font-weight: 600;
    font-size: .9em;
}

/* Nadel mit Zahl, wenn an einem Ort mehrere Videos liegen.
   Tropfenform, damit sie sich von den runden Gruppenblasen unterscheidet,
   die Leaflet beim Herauszoomen setzt.
   Die Groesse setzt karte.js je Nadel als --lz-groesse: je mehr Videos an
   der Stelle, desto dicker der Tropfen. */
.lz-nadel-zahl span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--lz-groesse, 30px);
    height: var(--lz-groesse, 30px);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
    color: #fff;
    font-size: calc(var(--lz-groesse, 30px) * .32);
    font-weight: 600;
}

/* Je kräftiger, desto neuer das letzte Video an dieser Stelle. */
.lz-nadel-zahl.lz-frisch span { background: #1b4f87; }
.lz-nadel-zahl.lz-mittel span { background: #5a8cc0; }
.lz-nadel-zahl.lz-alt    span { background: #9db9d4; }

.lz-nadel-zahl b {
    transform: rotate(45deg);
}

/* Die Videoliste im Kästchen */
.lz-popup-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;      /* bei 77 Videos sonst laenger als der Bildschirm */
    overflow-y: auto;
}

.lz-popup-liste li + li {
    border-top: 1px solid #e3e3e3;
}

.lz-popup-liste a,
.lz-popup-liste button {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: .6rem;
    align-items: center;
    padding: .45rem 0;
    text-decoration: none;
    color: inherit;
}

/* Der Knopf soll wie die Zeile daneben aussehen, nicht wie ein Knopf. */
.lz-popup-liste button {
    width: 100%;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: zoom-in;
}

.lz-popup-liste img {
    grid-row: 1 / 3;
    width: 80px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #ddd;
}

.lz-popup-liste span {
    align-self: end;
    font-size: .85rem;
    line-height: 1.3;
}

.lz-popup-liste time {
    align-self: start;
    font-size: .75rem;
    color: #666;
}

.lz-popup-liste a:hover span,
.lz-popup-liste a:focus-visible span {
    text-decoration: underline;
}

.lz-karte-zahlen {
    margin: .7rem 0 0;
    font-size: .9rem;
    opacity: .75;
}

.lz-karte-jahr {
    margin: 0 0 .7rem;
    font-size: .9rem;
}

.lz-karte-jahr select {
    font-family: inherit;
    font-size: .9rem;
    padding: .3rem .5rem;
    margin-left: .3rem;
}

.lz-karte-jahr .lz-legende {
    margin-left: 1rem;
    opacity: .7;
}

/* Das neueste Foto — [leipzigzoom_neuestes]. Haelt sich an die Breite des
   Platzes, an den es gesetzt wird: ueber der Karte ein Band, in der
   Seitenleiste eine Karteikarte. */
.lz-neuestes {
    margin: 0 0 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Der Link um das Bild ist das Flex-Kind, nicht das Bild selbst. Er schrumpft
   auf die Groesse des Bildes, damit die Bildunterschrift daneben Platz hat. */
.lz-neuestes > a {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    display: block;
}

/* Kein festes Fenster, sondern zwei Grenzen: die Breite bremst das
   Querformat, die Hoehe das Hochformat. Welche von beiden greift,
   entscheidet das Bild selbst — so bleibt in beiden Faellen Platz fuer
   die Bildunterschrift daneben und fuer die Karte darunter. */
.lz-neuestes img {
    max-width: min(100%, 30rem);
    max-height: 60vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    display: block;
}

.lz-neuestes figcaption {
    flex: 1 1 14rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.lz-neuestes-marke {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .7;
}

.lz-neuestes strong {
    font-size: 1.15rem;
    line-height: 1.3;
}

.lz-neuestes-wo {
    font-size: .9rem;
    opacity: .75;
}

/* -------------------------------------------------------------------------
 * Die Lupe: ein Foto gross ueber der ganzen Seite
 * ---------------------------------------------------------------------- */

.lz-lupe {
    position: fixed;
    inset: 0;
    z-index: 10000;             /* ueber Leaflet, dessen Steuerung bei 1000 liegt */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, .88);
    cursor: zoom-out;
}

.lz-lupe[hidden] {
    display: none;              /* sonst setzt das Flex das hidden ausser Kraft */
}

/* Dieselben zwei Grenzen wie beim neuesten Bild: die eine bremst das
   Querformat, die andere das Hochformat. */
.lz-lupe img {
    max-width: 92vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    display: block;
}

.lz-lupe-text {
    margin: 0;
    max-width: 92vw;
    color: #fff;
    font-size: .95rem;
    line-height: 1.4;
    text-align: center;
}

.lz-lupe-zu {
    position: absolute;
    top: .5rem;
    right: .8rem;
    border: 0;
    background: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    padding: .2rem .6rem;
    cursor: pointer;
}
