/* ==========================================================================
   PROCHOR LIVE-INHALTE (Ergänzung, ändert keine bestehenden Regeln)
   Nächstes Event + Fotoleiste „Rückblick“ aus der Verwaltung (/intern)
   ========================================================================== */

/* ---- Aktuelles ---------------------------------------------------------- */
/* Ohne Termin bleibt der Bereich ganz weg (auch wenn style.css display setzt) */
#aktuelles[hidden] {
    display: none !important;
}

.pcl-event-name {
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
}

.pcl-text {
    white-space: pre-line;
}

.aktuelles-grid.pcl-no-flyer {
    grid-template-columns: 1fr;
    max-width: 760px;
}

.pcl-flyer-btn {
    display: block;
    width: 100%;
    max-width: 450px;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.pcl-pdf {
    display: grid;
    place-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}

.pcl-pdf svg {
    width: 64px;
    height: 64px;
}

/* ---- Datum / Uhrzeit / Ort / Eintritt – untereinander ------------------- */
.aktuelles-meta.pcl-facts {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
    color: #333333;
}

.pcl-fact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

.pcl-fact svg {
    flex: 0 0 auto;
    width: 1.3rem;
    height: 1.3rem;
    margin-top: 0.08rem;
    color: #777777;
}

.pcl-fact-sub {
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    color: #777777;
}

@media (max-width: 900px) {
    .aktuelles-meta.pcl-facts {
        align-items: flex-start;
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---- Countdown ---------------------------------------------------------- */
.pcl-countdown {
    margin: 0 0 2rem;
}

.pcl-countdown [hidden],
.pcl-actions[hidden] {
    display: none !important;
}

.pcl-cd-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pcl-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 5.4rem;
    padding: 0.85rem 0.75rem 0.7rem;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.pcl-cd-num {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
}

.pcl-cd-label {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #777777;
}

.pcl-cd-done {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    color: #1a1a1a;
}

/* ---- Knöpfe: Flyer / Kalender / Route ---------------------------------- */
.pcl-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.pcl-actions .apple-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.95rem 1.6rem;
    border: 0;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
}

.pcl-actions svg {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
}

.apple-button.pcl-btn-secondary {
    background-color: transparent;
    color: #1a1a1a;
    box-shadow: inset 0 0 0 1.5px #1a1a1a;
}

.apple-button.pcl-btn-secondary:hover,
.apple-button.pcl-btn-secondary[aria-expanded="true"] {
    background-color: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.pcl-cal {
    position: relative;
}

.pcl-cal-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 0.5rem);
    z-index: 5;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0.4rem;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.pcl-cal-menu[hidden] {
    display: none;
}

.pcl-cal-menu a {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
}

.pcl-cal-menu a:hover,
.pcl-cal-menu a:focus-visible {
    background: #f4f2ee;
    outline: none;
}

@media (max-width: 900px) {
    .pcl-cd-tiles,
    .pcl-actions {
        justify-content: center;
    }
    .pcl-cal-menu {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 420px) {
    .pcl-cd-unit {
        min-width: 0;
        flex: 1 1 0;
        padding: 0.7rem 0.3rem 0.6rem;
    }
    .pcl-cd-tiles {
        width: 100%;
        max-width: 22rem;
        margin: 0 auto;
        flex-wrap: nowrap;
        gap: 0.45rem;
    }
    .pcl-cd-label {
        font-size: 0.72rem;
    }
    .pcl-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .pcl-actions .apple-button {
        justify-content: center;
        width: 100%;
    }
}

/* ---- Großansicht -------------------------------------------------------- */
.pcl-lb {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: rgba(10, 10, 10, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    touch-action: pan-y;
}

.pcl-lb.is-open {
    opacity: 1;
    visibility: visible;
}

.pcl-lb img {
    max-width: min(92vw, 1600px);
    max-height: 86vh;
    border-radius: 8px;
    object-fit: contain;
    user-select: none;
}

.pcl-lb-btn {
    position: absolute;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(244, 242, 238, 0.12);
    color: #f4f2ee;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.pcl-lb-btn:hover { background: rgba(244, 242, 238, 0.24); }
.pcl-lb-close { top: 1.25rem; right: 1.25rem; }
.pcl-lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.pcl-lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

.pcl-lb-count {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(244, 242, 238, 0.7);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .pcl-lb-prev, .pcl-lb-next { display: none; }
}
