#nmw-popup-inner * {
    /*border: 1px solid;*/
}

/* ------------------ Button ---------------- */
.nmw-popup-action-button {
    isplay: block;
    width: calc(100% - 10px); /* volle Breite minus 10px links/rechts */
    max-width: 500px;
    margin: 10px 5px;
    padding:10px 15px;
    border-radius:7px;
    border: none;
    background: #E3000f;
    color:#fff;
    text-transform: uppercase;
    text-align:center;
}

.nmw-popup-action-button:hover{
    background: #007757;
    color:#fff;
}

/* -------------- popup ----------- */
.nmw-popup {
    position: fixed;
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 60px 20px;
    background: rgba(0,0,0,.6);
    z-index: 99999;
    box-sizing: border-box;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    -ms-overflow-style: none;
    scrollbar-width: none !important;
    scrollbar-color: transparent transparent;

    opacity:0;
    visibility:hidden;
    transition:opacity .3s ease, visibility .3s ease;
}

html.nmw-popup-open,
body.nmw-popup-open {
    overflow: hidden !important;
    -ms-overflow-style: none;
    scrollbar-width: none !important;
}

html.nmw-popup-open::-webkit-scrollbar,
body.nmw-popup-open::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.nmw-popup::-webkit-scrollbar,
#nmw-popup::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.nmw-popup-snap-start {
    display: none;
}

.nmw-popup.active{
    opacity:1;
    visibility:visible;
}

.nmw-popup-content {
    position: relative;
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    background:rgba(255,255,255,.8);
    backdrop-filter:blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    padding: 12px;
    box-sizing: border-box;
    z-index: 2;
    transform: translateY(100%);
    opacity: 0;
    will-change: transform;
    transition:
            transform .45s cubic-bezier(0.22, 1, 0.36, 1),
            opacity .3s ease;
}

.nmw-popup-content::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 70px;
    height: 3px;
    border-radius: 999px;
    background: rgba(80, 80, 80, .55);
    transform: translateX(-50%);
    z-index: 6;
}

#nmw-popup-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 0;
    gap: 12px;
    box-sizing: border-box;
}

#nmw-popup-inner h5, #nmw-popup-inner h2 {
    font-family: "Segoe UI", sans-serif;
    color: black;
}

#nmw-popup-inner h5 {
    font-size: 17px
}

.nmw-popup.active .nmw-popup-content{
    transform:translateY(0);
    opacity:1;
}

.nmw-popup.hidden {
    display: none;
}

.nmw-popup-icon-row {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.nmw-popup-icon-buttons {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    text-align: center;
    border-radius: 30%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 1px 1px 3px rgba(0,0,0,.15);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    color: rgba(0, 0, 0, 0.8);
    font-size: 0;
}

.nmw-popup-icon-buttons .material-symbols-outlined {
    font-size: 23px;
}

.nmw-popup-icon-buttons:hover {
    transform: scale(1.03);
    box-shadow: 1px 1px 10px rgba(0,0,0,.15);
    transition-duration: 0.2s
}

.nmw-popup-header {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    box-sizing: border-box;
}

.nmw-popup-scroll-content {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

.nmw-popup-scroll-content > * {
    flex: 0 0 auto;
}

.nmw-popup-heading-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.nmw-popup-heading-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.nmw-popup-title {
    margin: 0;
    line-height: 1.1;
    text-align: left;
}

.nmw-popup-overtitle {
    color: #d10b17;
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nmw-popup-event-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: 10px;
    padding: 18px 10px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 18px;
    background: rgba(255, 255, 255, .5);
    box-shadow: 1px 1px 3px rgba(0, 0, 0, .12);
    backdrop-filter: blur(2px);
    box-sizing: border-box;
}

.nmw-popup-event-fact {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 4px 14px;
}

.nmw-popup-event-fact-main {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

.nmw-popup-event-fact + .nmw-popup-event-fact {
    border-left: 1px solid rgba(0, 0, 0, .11);
}

.nmw-popup-event-fact-icon.material-symbols-outlined {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: rgba(227, 0, 15, .09);
    color: #d10b17;
    font-size: 24px;
    line-height: 1;
    text-align: center;
}

.nmw-popup-event-fact-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.nmw-popup-event-fact-label {
    color: rgba(0, 0, 0, .55);
    font-size: 13px;
}

.nmw-popup-event-fact-value {
    margin-top: 2px;
    color: #d10b17;
    font-size: 18px;
    line-height: 1.15;
}

.nmw-popup-event-fact-note {
    display: block;
    width: 100%;
    color: rgba(0, 0, 0, .58);
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
}

.nmw-popup-quick-actions {
    display: flex;
    width: calc(100% + 24px);
    gap: 9px;
    margin-left: -12px;
    margin-right: -12px;
    margin-top: 8px;
    padding: 2px 12px 5px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    box-sizing: border-box;
}

.nmw-popup-quick-actions::-webkit-scrollbar {
    display: none;
}

.nmw-popup-quick-action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 12px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, .12);
    background: rgba(255, 255, 255, .7);
    color: rgba(0, 0, 0, .82);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.nmw-popup-quick-action:hover {
    background: rgba(255, 255, 255, .95);
    color: #000;
}

.nmw-popup-quick-action .material-symbols-outlined {
    font-size: 20px;
}

button.nmw-popup-quick-action {
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.nmw-popup-quick-action--primary,
.nmw-popup-quick-action--primary:hover {
    border-color: #e3000f;
    background: #e3000f;
    color: #fff;
}

.nmw-popup-image-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    height: auto;
    max-height: 500px;
    padding: 0 5px;
}

.nmw-popup-image {
    width: auto;
    height: auto;
    max-height: 400px;
    border-radius: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.nmw-popup-map {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nmw-popup-google-maps {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 18px;
    margin: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nmw-popup-details {
    width: 100%;
    padding: 4px 0;
    box-sizing: border-box;
}

.nmw-popup-details-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
}

.nmw-popup-details-icon.material-symbols-outlined {
    color: #d10b17;
    font-size: 25px;
}

.nmw-popup-details-description {
    margin: 0;
    line-height: 1.55;
}

.nmw-popup-event-info-list {
    display: grid;
    width: 100%;
    overflow: hidden;
    gap: 2px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

.nmw-popup-additional-info {
    display: contents;
}

.nmw-popup-event-info-row--loading span {
    width: min(65%, 240px);
    height: 12px;
    margin-left: 38px;
    border-radius: 3px;
    background: linear-gradient(100deg, rgba(0, 0, 0, .06) 30%, rgba(255, 255, 255, .35) 50%, rgba(0, 0, 0, .06) 70%);
    background-size: 250% 100%;
    animation: nmw-gallery-loading 1.3s infinite linear;
}

.nmw-popup-event-info-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    min-height: 5px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 3px;
    background: rgba(255, 255, 255, .6);
    color: rgba(0, 0, 0, .82);
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    box-sizing: border-box;
}

a.nmw-popup-event-info-row:hover {
    background: rgba(255, 255, 255, .3);
    color: #d10b17;
}

.nmw-popup-event-info-row:first-child {
    border-radius: 18px 18px 3px 3px;
}

.nmw-popup-event-info-row:last-child {
    border-radius: 3px 3px 18px 18px;
}

.nmw-popup-additional-info .nmw-popup-event-info-row:first-child,
.nmw-popup-additional-info .nmw-popup-event-info-row:last-child {
    border-radius: 3px;
}

.nmw-popup-event-info-icon.material-symbols-outlined {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 34px;
    place-items: center;
    background: transparent;
    color: #d10b17;
    font-size: 22px;
    line-height: 1;
}

.nmw-popup-event-info-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
}

.nmw-popup-event-info-arrow.material-symbols-outlined {
    flex: 0 0 auto;
    margin-left: auto;
    color: rgba(0, 0, 0, .5);
    font-size: 22px;
}

.nmw-calendar-button {
    display: inline-block;
    color: #B30000;
    cursor: pointer;
}

.nmw-calendar-button:hover {
    text-decoration: underline;
    color: #B30000;
}

#nmw-toast{
    position:fixed;
    left:50%;
    bottom:32px;
    transform:translateX(-50%) translateY(30px);
    background: rgb(34 34 34 / 0.7);
    color:#fff;
    padding:14px 18px;
    border-radius:18px;
    font-size:14px;
    line-height:1.5;
    white-space:pre-line;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
    opacity:0;
    pointer-events:none;
    transition:.25s;
    z-index:999999;
    max-width:90%;
}

#nmw-toast.show{
    opacity:1;
    transform:translateX(-50%) translateY(0);
}

/* ------------------ Galerie ---------------- */
.nmw-popup-gallery {
    --nmw-gallery-height: clamp(250px, 40vw, 350px);
    --nmw-gallery-stack-gap: 12px;
    position: relative;
    width: calc(100% + 24px);
    margin-left: -12px;
    margin-right: -12px;
}

.nmw-popup-gallery-controls {
    display: flex;
    position: absolute;
    top: 8px;
    right: 12px;
    gap: 7px;
    z-index: 2;
}

.nmw-popup-gallery-button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0 12px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 50%;
    background: rgba(255, 255, 255, .78);
    color: #222;
    cursor: pointer;
}

.nmw-popup-gallery-button:hover {
    background: #fff;
    color: #333 !important;
    transform: translateY(-1px);
}

.nmw-popup-gallery-button:hover.material-symbols-outlined {
    color: #333 !important;
}

.nmw-popup-gallery-track {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    scrollbar-width: none;
}

.nmw-popup-gallery-track::-webkit-scrollbar {
    display: none;
}

.nmw-popup-gallery-track--single {
    justify-content: center;
    padding: 0 12px;
}

.nmw-popup-gallery-controls[hidden] {
    display: none;
}

.nmw-popup-gallery-group {
    flex: 0 0 auto;
    height: var(--nmw-gallery-height);
}

.nmw-popup-gallery-group--large {
    width: clamp(260px, 73%, 430px);
}

.nmw-popup-gallery-group--stack {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: var(--nmw-gallery-stack-gap);
    width: calc((var(--nmw-gallery-height) - var(--nmw-gallery-stack-gap)) / 2);
}

.nmw-popup-gallery-group--featured {
    width: auto;
}

.nmw-popup-gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
    cursor: zoom-in;
    transition: transform .2s ease, box-shadow .2s ease;
}

.nmw-popup-gallery-item:hover {
    box-shadow: 0 6px 17px rgba(0, 0, 0, .2);
}

.nmw-popup-gallery-group--large:nth-child(even) .nmw-popup-gallery-item {
    transform: rotate(-.7deg);
}

.nmw-popup-gallery-group--large:nth-child(odd) .nmw-popup-gallery-item {
    transform: rotate(.65deg);
}

.nmw-popup-gallery-group--stack .nmw-popup-gallery-item:first-child {
    transform: rotate(.9deg);
}

.nmw-popup-gallery-group--stack .nmw-popup-gallery-item:last-child {
    transform: rotate(-1deg);
}

.nmw-popup-gallery-item--first,
.nmw-popup-gallery-item--first:hover {
    transform: none !important;
}

.nmw-popup-gallery-item--small {
    aspect-ratio: 1;
}

.nmw-popup-gallery-item--first img {
    object-fit: contain;
}

.nmw-popup-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nmw-popup-gallery-item figcaption {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: 13px;
    backdrop-filter: blur(5px);
}

.nmw-popup-gallery-loading {
    display: flex;
    gap: 14px;
    overflow: hidden;
    padding: 0 12px;
}

.nmw-popup-gallery-loading span:not(.screen-reader-text) {
    flex: 0 0 68%;
    height: 245px;
    border-radius: 18px;
    background: linear-gradient(100deg, #e4e4e4 30%, #f5f5f5 50%, #e4e4e4 70%);
    background-size: 250% 100%;
    animation: nmw-gallery-loading 1.3s infinite linear;
}

/* ------------------ Lightbox ---------------- */
.nmw-lightbox {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 55px 70px;
    background: rgba(8, 8, 8, .92);
    backdrop-filter: blur(8px);
    z-index: 100000;
    box-sizing: border-box;
}

.nmw-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 110px);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .45);
    object-fit: contain;
}

.nmw-lightbox-caption {
    position: absolute;
    bottom: 18px;
    left: 50%;
    max-width: min(700px, 80vw);
    padding: 8px 13px;
    border-radius: 9px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    transform: translateX(-50%);
}

.nmw-lightbox-close,
.nmw-lightbox-previous,
.nmw-lightbox-next {
    position: absolute;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
    color: #fff;
    cursor: pointer;
}

.nmw-lightbox-close {
    top: 18px;
    right: 18px;
}

.nmw-lightbox-previous {
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}

.nmw-lightbox-next {
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
}

@keyframes nmw-gallery-loading {
    to { background-position-x: -250%; }
}

@media (prefers-reduced-motion: reduce) {
    .nmw-popup-gallery-loading span:not(.screen-reader-text) { animation: none; }
    .nmw-popup-event-info-row--loading span { animation: none; }
    .nmw-popup-gallery-item { transform: none !important; }
}
