[hidden] { display: none !important; }
.popup {
position: fixed; z-index: 85; left: 1.5rem; bottom: 1.5rem; width: min(26rem, calc(100vw - 3rem));
display: grid; grid-template-columns: auto 1fr; gap: 0.9rem 1rem; align-items: start;
background: var(--flaeche); color: var(--text); border-radius: calc(var(--rund) + 0.4rem);
box-shadow: var(--schatten-hoch); border: 2px solid var(--akzent-hell);
padding: 1rem 1.1rem 1.2rem;
}
.popup .schliessen { grid-column: 1 / -1; justify-self: end; padding: 0 0.9rem 0 0.75rem; min-height: 2.75rem; }
.popup-bild { width: 5.5rem; align-self: center; }
.popup-bild .bild { aspect-ratio: 1; }
.popup:not(:has(.popup-bild)) .popup-text { grid-column: 1 / -1; }
.popup-text { min-width: 0; }
.popup-titel { margin: 0 0 0.3rem; font-family: var(--schrift-hand); font-size: clamp(1.8rem, 1.5rem + 0.8vw, 2.2rem); font-weight: 600; line-height: 1.05; text-wrap: balance; }
.popup-text p { max-width: none; }
.popup-text p:not(.popup-titel) { margin-bottom: 0.9rem; }
.popup .knopf { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
.popup { opacity: 0; translate: 0 1.2rem; transition: opacity 0.4s ease, translate 0.4s ease; }
.popup.sichtbar { opacity: 1; translate: 0 0; }
}
@media (max-width: 40rem) {
.popup {
left: 0; right: 0; bottom: 0; width: auto; max-height: 55dvh; overflow: auto;
border-radius: 1.4rem 1.4rem 0 0; border-width: 2px 0 0;
padding: 0.6rem 1rem calc(1rem + env(safe-area-inset-bottom));
grid-template-columns: 1fr; gap: 0.2rem;
}
.popup-bild { display: none; }
.popup .knopf { width: auto; justify-self: start; }
}
@media print { .popup { display: none; } }