/* 
 * Pirates Park FKK Saunaclub
 * Zusätzliches Styling für dynamische Seiten
 */

/* ======= ALLGEMEINE SEITEN-STILE ======= */
.page-header {
    text-align: center;
    margin: 3rem 0 4rem;
}

.page-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--silver);
    font-size: 1.2rem;
    line-height: 1.6;
}

/* ======= RÄUMLICHKEITEN DETAILSEITE ======= */
.facilities-detailed {
    margin: 3rem 0;
}

.facility-item {
    display: flex;
    margin-bottom: 4rem;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.facility-item:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.6);
}

.facility-left {
    flex-direction: row;
}

.facility-right {
    flex-direction: row-reverse;
}

.facility-image {
    flex: 0 0 40%;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.facility-item:hover .facility-image img {
    transform: scale(1.05);
}

.facility-content {
    flex: 0 0 60%;
    padding: 2rem 3rem;
}

.facility-content h2 {
    color: var(--gold);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
}

.facility-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--gold-gradient);
    box-shadow: 0 1px 3px rgba(212, 175, 55, 0.5);
}

.facility-description {
    color: var(--silver);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ======= GALERIE SEITE ======= */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-button {
    background: transparent;
    color: var(--silver);
    border: 1px solid var(--gold);
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 30px;
}

.filter-button:hover,
.filter-button.active {
    background: var(--gold-gradient);
    color: var(--black);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.full-gallery .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--mahogany);
    border-radius: 10px;
    transition: all 0.3s ease;
    animation: rockShip 10s infinite ease-in-out;
    cursor: pointer;
}

.gallery-item:hover {
    border-color: var(--gold);
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--gold);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Lightbox Styling */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border: 3px solid var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--gold);
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--gold);
    text-align: center;
    border-radius: 0 0 5px 5px;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--gold);
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s ease;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

/* ======= EVENTS SEITE ======= */
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.event-card {
    background-image: url('../img/backgrounds/pergament.png');
    background-size: cover;
    background-position: top;
    padding: 2rem;
    border-radius: 10px;
    color: #5A3921;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    
    /* Maske für den Transparenzverlauf */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
}

.event-card:nth-child(even) {
    transform: rotate(1deg);
}

.event-card.ghost-effect {
    animation: scrollFloat 8s infinite ease-in-out;
}

.event-card:hover {
    transform: translateY(-5px) rotate(0deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.event-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.event-header h3 {
    color: #5A3921;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    flex: 1 0 60%;
    text-shadow: 1px 1px 1px rgba(139, 69, 19, 0.3);
}

.event-schedule {
    background-color: rgba(248, 240, 221, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
}

.event-schedule.recurring {
    background-color: rgba(212, 175, 55, 0.2);
    border: 1px dashed #5A3921;
}

.event-content {
    line-height: 1.6;
    font-family: 'MedievalSharp', cursive;
    background-color: rgba(248, 240, 221, 0.4);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.event-special-info {
    font-style: italic;
    border-top: 1px dashed #5A3921;
    padding-top: 1rem;
    opacity: 0.9;
}

/* Kalender Styling */
.calendar-section {
    margin: 4rem 0;
}

.calendar-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-nav-button {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav-button:hover {
    background: var(--gold-gradient);
    color: var(--black);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.current-month {
    color: var(--gold);
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.calendar {
    width: 100%;
}

.calendar-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 3px;
}

.calendar-cell {
    aspect-ratio: 1.2;
    background-color: rgba(50, 50, 50, 0.5);
    color: var(--silver);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0.5rem;
    position: relative;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.calendar-cell.empty {
    background-color: rgba(30, 30, 30, 0.3);
    cursor: default;
}

.calendar-cell.weekday {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    font-weight: bold;
    border-bottom: 2px solid var(--gold);
}

.calendar-cell.today {
    background-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.calendar-cell.has-events {
    background-color: rgba(94, 39, 35, 0.4);
    color: #FFD700;
}

.calendar-cell:hover:not(.empty):not(.weekday) {
    background-color: rgba(212, 175, 55, 0.2);
    transform: scale(1.03);
}

.day-events {
    margin-top: 0.3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
}

.event-marker {
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 50%;
    margin: 0 1px;
}

/* Event-Modal */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-image: url('../img/backgrounds/pergament.png');
    background-size: cover;
    width: 90%;
    max-width: 500px;
    max-height: 80%;
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    color: #5A3921;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #5A3921;
    font-size: 30px;
    cursor: pointer;
}

.close-modal:hover {
    color: #C04000;
}

.modal-event {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed #5A3921;
}

.modal-event:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-event h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #5A3921;
}

/* ======= RESPONSIVE ANPASSUNGEN ======= */
@media screen and (max-width: 768px) {
    .facilities-detailed .facility-item {
        flex-direction: column;
    }

    .facility-image,
    .facility-content {
        flex: 0 0 100%;
    }

    .facility-image {
        height: 250px;
    }

    .events-container {
        grid-template-columns: 1fr;
    }

    .calendar-cell {
        padding: 0.3rem;
        font-size: 0.9rem;
    }

    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}