/* Jugend Style CSS for Kesälä */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

/* Jugend Color Palette */
:root {
    --jugend-gold: #EDCC68;
    --jugend-green: #2C4F36;
    --jugend-blue: #B4D3E0;
    --jugend-brown: #8b4513;
    --jugend-cream: #f5f5dc;
    --jugend-dark: #2C4F36;
    --jugend-light: #ffffff;
    --jugend-accent: #EDCC68;
    --paavari-1: #B4D3E0;
    --paavari-2: #2C4F36;
    --korostusvari: #EDCC68;
    --jugend-oliivi: #90B372
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--jugend-dark);
}

h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--jugend-green);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--korostusvari);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--jugend-blue);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: justify;
}

/* Navigation */
.navbar {
    background: #2C4F36 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo .logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--jugend-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--jugend-light);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    margin-top: 100px;
    min-height: calc(100vh - 200px);
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Strips */
.strip {
    padding: 4rem 0;
    position: relative;
}

.strip:nth-child(odd) {
    background: linear-gradient(135deg, var(--jugend-cream), var(--jugend-light));
}

.strip:nth-child(even) {
    background: linear-gradient(135deg, var(--jugend-light), var(--jugend-cream));
}

.strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--korostusvari);
}

.strip-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.text-half {
    padding: 2rem;
}

.image-half {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.strip-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strip-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.main-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.open-content {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: rgba(180, 211, 224, 0.1);
    border-radius: 15px;
    border: 2px dashed var(--korostusvari);
    margin: 2rem 0;
}

/* Footer */
.footer {
    background: var(--paavari-2);
    color: var(--jugend-light);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo .footer-logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--jugend-cream);
    font-style: italic;
    margin-bottom: 0.5rem;
    text-align: center;
}

.footer-map {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--jugend-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--korostusvari);
    text-decoration: underline;
}

.footer-address {
    display: flex;
    flex-direction: column;
}

.footer-address p {
    margin-bottom: 0.3rem;
    color: var(--jugend-cream);
    text-align: left;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: var(--jugend-cream);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--jugend-green);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-logo .logo-image {
        height: 45px;
        max-width: 180px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .strip-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .text-half,
    .image-half {
        padding: 1rem;
    }

    .main-image {
        height: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-map {
        order: -1;
        height: 200px;
    }

    .footer-links {
        align-items: center;
    }
    
    .footer-logo .footer-logo-image {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    
    .footer-address p {
        text-align: center;
    }

    .strip {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-logo .logo-image {
        height: 40px;
        max-width: 150px;
    }

    .strip-content {
        padding: 0 0.5rem;
    }

    .text-half,
    .image-half {
        padding: 0.5rem;
    }

    .main-image {
        height: 150px;
    }

    .open-content {
        padding: 2rem 1rem;
    }
}

/* Jugend Decorative Elements */
.strip:nth-child(1)::after {
    content: '❦';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--korostusvari);
    opacity: 0.3;
}

.strip:nth-child(2)::after {
    content: '❋';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: var(--korostusvari);
    opacity: 0.3;
}

.strip:nth-child(3)::after {
    content: '✿';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--korostusvari);
    opacity: 0.3;
}

/* Events Section */
.events-section {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: var(--jugend-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--jugend-cream);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-color: var(--jugend-green);
}

.event-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--jugend-brown);
    position: relative;
}

.event-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.3), rgba(139, 69, 19, 0.3));
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    color: var(--jugend-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.event-details {
    margin-bottom: 1rem;
}

.event-details p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--jugend-dark);
}

.event-description {
    color: var(--jugend-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
}

.register-btn {
    background: var(--jugend-green);
    color: var(--jugend-light);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.register-btn:hover {
    background: var(--jugend-oliivi);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Sold-out button styling */
.sold-out-btn {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.sold-out-btn:hover {
    background: #ccc !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Availability text styling */
.availability {
    margin: 0.5rem 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--jugend-green);
    background: rgba(45, 80, 22, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid rgba(45, 80, 22, 0.2);
}

.availability.sold-out {
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid rgba(211, 47, 47, 0.2);
}

/* Sold-out event card styling */
.event-card.sold-out {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.event-card.sold-out:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Sold-out overlay on image */
.sold-out-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(211, 47, 47, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Registration Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--jugend-light);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 2px solid var(--jugend-gold);
}

.close {
    color: var(--jugend-brown);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close:hover {
    color: var(--jugend-green);
    background: rgba(139, 69, 19, 0.1);
}

#modal-event-title {
    color: #2C4F36; /* Pääväri 2 */
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.event-detailed-description {
    background: rgba(45, 80, 22, 0.1);
    border-left: 4px solid var(--jugend-green);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--jugend-dark);
}

.event-detailed-description p {
    margin-bottom: 0.5rem;
}

.event-detailed-description p:last-child {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--jugend-dark);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--jugend-cream);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--jugend-light);
}

.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--jugend-cream);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--jugend-light);
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--jugend-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, var(--jugend-green), var(--jugend-brown));
    color: var(--jugend-light);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--jugend-brown), var(--jugend-green));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.success-message {
    color: var(--jugend-green);
    background: rgba(45, 80, 22, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

.success-message-large {
    color: var(--jugend-green);
    background: rgba(45, 80, 22, 0.15);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    border: 2px solid var(--jugend-green);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.2);
}

.success-message-large small {
    display: block;
    margin-top: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Elegant success overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease-in-out;
    cursor: pointer;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-content {
    text-align: center;
    color: var(--jugend-dark);
    max-width: 400px;
    padding: 2rem;
    background: var(--jugend-light);
    border-radius: 15px;
    border: 2px solid var(--jugend-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: slideInSuccess 0.4s ease-out;
    position: relative;
}

@keyframes slideInSuccess {
    from { 
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon {
    font-size: 2.5rem;
    color: var(--jugend-green);
    margin-bottom: 1rem;
    animation: gentleBounce 0.8s ease-in-out;
}

@keyframes gentleBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-2px); }
}

.success-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--jugend-green);
    font-family: 'Playfair Display', serif;
}

.success-content p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--jugend-dark);
}

.success-details {
    font-size: 0.9rem !important;
    opacity: 0.8;
    font-style: italic;
    color: var(--jugend-brown);
}

.success-countdown {
    margin-top: 1.5rem;
    padding: 0.8rem;
    background: rgba(45, 80, 22, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--jugend-green);
}

#countdown-timer {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--jugend-green);
}

/* Mobile responsiveness for success overlay */
@media (max-width: 768px) {
    .success-content {
        margin: 2rem;
        padding: 1.5rem;
        max-width: 350px;
    }
    
    .success-content h1 {
        font-size: 1.5rem;
    }
    
    .success-content p {
        font-size: 0.9rem;
    }
    
    .success-icon {
        font-size: 2rem;
    }
}

/* Admin Interface Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-section {
    background: var(--jugend-light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid var(--jugend-cream);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--jugend-cream);
}

.admin-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--jugend-cream);
}

.admin-card h4 {
    color: var(--jugend-green);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logout-btn {
    background: var(--jugend-brown);
    color: var(--jugend-light);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--jugend-green);
    transform: translateY(-2px);
}

.admin-link {
    background: rgba(139, 69, 19, 0.1) !important;
    border: 1px solid var(--jugend-brown) !important;
}

.admin-link:hover {
    background: rgba(139, 69, 19, 0.2) !important;
}

/* Event management list */
.event-admin-item {
    background: var(--jugend-light);
    border: 1px solid var(--jugend-cream);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-admin-info h5 {
    color: var(--jugend-green);
    margin-bottom: 0.5rem;
}

.event-admin-info p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: var(--jugend-dark);
}

.event-admin-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-edit {
    background: var(--jugend-gold);
    color: var(--jugend-dark);
}

.btn-delete {
    background: #d32f2f;
    color: white;
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Registration list */
.registration-item {
    background: var(--jugend-light);
    border: 1px solid var(--jugend-cream);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.registration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.registration-name {
    font-weight: 600;
    color: var(--jugend-green);
}

.registration-date {
    font-size: 0.8rem;
    color: var(--jugend-brown);
}

.registration-details {
    font-size: 0.9rem;
    color: var(--jugend-dark);
}

/* Responsive admin */
@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .event-admin-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .event-admin-actions {
        justify-content: center;
    }
}

.error-message {
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

/* Responsive Design for Events */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-card {
        margin: 0 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .events-section {
        padding: 2rem 1rem;
    }
}

/* Time Slot Management Styles */
.pricing-info {
    background: rgba(45, 80, 22, 0.1);
    border-left: 4px solid var(--jugend-green);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.pricing-info h3 {
    color: var(--jugend-green);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.pricing-info ul {
    list-style: none;
    padding: 0;
}

.pricing-info li {
    padding: 0.3rem 0;
    color: var(--jugend-dark);
    font-weight: 500;
}

.pricing-info li:before {
    content: '•';
    color: var(--jugend-gold);
    font-weight: bold;
    margin-right: 0.5rem;
}

.calendar-section {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(180, 211, 224, 0.05), rgba(45, 80, 22, 0.05));
    border-radius: 20px;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(45, 80, 22, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.back-to-today-btn {
    background: linear-gradient(135deg, var(--jugend-gold), rgba(237, 204, 104, 0.8));
    color: var(--jugend-dark);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(237, 204, 104, 0.2);
}

.back-to-today-btn:hover {
    background: linear-gradient(135deg, rgba(237, 204, 104, 0.9), var(--jugend-gold));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 204, 104, 0.3);
}

.calendar-nav-btn {
    background: linear-gradient(135deg, var(--jugend-green), var(--jugend-oliivi));
    color: var(--jugend-light);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.2);
}

.calendar-nav-btn:hover {
    background: linear-gradient(135deg, var(--jugend-oliivi), var(--jugend-green));
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 80, 22, 0.3);
}

.calendar-nav-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#current-week-display {
    color: var(--jugend-green);
    font-family: 'Playfair Display', serif;
    margin: 0;
}

.weekly-calendar {
    display: grid;
    grid-template-columns: 120px repeat(7, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-header {
    background: linear-gradient(135deg, var(--jugend-green), var(--jugend-oliivi));
    color: var(--jugend-light);
    padding: 1.2rem 0.8rem;
    text-align: center;
    font-weight: 600;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day-header {
    background: linear-gradient(135deg, var(--jugend-brown), rgba(139, 69, 19, 0.8));
    color: var(--jugend-light);
    padding: 1.2rem 0.8rem;
    text-align: center;
    font-weight: 600;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-time-slot {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem 0.8rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--jugend-dark);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.calendar-slot {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1rem 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--jugend-dark);
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.calendar-slot:hover {
    background: rgba(45, 80, 22, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 80, 22, 0.15);
}

.calendar-slot.available {
    background: rgba(76, 175, 80, 0.15);
    color: #1b5e20;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.calendar-slot.available:hover {
    background: rgba(76, 175, 80, 0.25);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.calendar-slot.selected {
    background: linear-gradient(135deg, var(--jugend-gold), rgba(237, 204, 104, 0.8));
    color: var(--jugend-dark);
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(237, 204, 104, 0.3);
    transform: translateY(-1px);
    border: 1px solid rgba(237, 204, 104, 0.6);
}

.calendar-slot.selected:hover {
    background: linear-gradient(135deg, var(--jugend-gold), rgba(237, 204, 104, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 204, 104, 0.4);
}

.calendar-slot.unavailable,
.calendar-slot.rented,
.calendar-slot.personal-use {
    background: rgba(128, 128, 128, 0.1);
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

.calendar-slot.unavailable:hover,
.calendar-slot.rented:hover,
.calendar-slot.personal-use:hover {
    background: rgba(128, 128, 128, 0.1);
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.slot-time {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.slot-status {
    font-size: 0.7rem;
    font-weight: 500;
}

.selection-summary {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.selection-summary h3 {
    color: var(--jugend-green);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

#selected-slots-display {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.05), rgba(45, 80, 22, 0.02));
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--jugend-green);
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.1);
}

.selected-slot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(45, 80, 22, 0.1);
}

.selected-slot-item:last-child {
    border-bottom: none;
}

.pricing-breakdown {
    background: linear-gradient(135deg, rgba(180, 211, 224, 0.05), rgba(180, 211, 224, 0.02));
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(180, 211, 224, 0.1);
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.price-item.total-price {
    border-top: 2px solid var(--jugend-gold);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--jugend-dark);
}

.price-item.savings-item {
    color: var(--jugend-green);
    font-weight: 600;
}

.savings-amount {
    color: var(--jugend-green);
    font-weight: 600;
}

.reserve-btn {
    background: linear-gradient(135deg, var(--jugend-green), var(--jugend-oliivi));
    color: var(--jugend-light);
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    box-shadow: 0 4px 16px rgba(45, 80, 22, 0.2);
}

.reserve-btn:hover {
    background: linear-gradient(135deg, var(--jugend-oliivi), var(--jugend-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(45, 80, 22, 0.3);
}

/* Time Slot Modal Styles */
.selected-slots-display {
    background: rgba(45, 80, 22, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--jugend-green);
}

.additional-services {
    background: rgba(180, 211, 224, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.additional-services h3 {
    color: var(--jugend-green);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.service-option {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.service-option input[type="checkbox"] {
    margin-right: 0.8rem;
    transform: scale(1.2);
    accent-color: var(--jugend-green);
}

.service-option label {
    font-weight: 500;
    color: var(--jugend-dark);
    cursor: pointer;
}

.modal-price-summary {
    background: rgba(180, 211, 224, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

/* Mobile Calendar Optimization */
@media (max-width: 768px) {
    .calendar-section {
        padding: 2rem 1rem;
    }
    
    .calendar-navigation {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .calendar-navigation h3 {
        order: -1;
        font-size: 1rem;
    }
    
    .calendar-nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Mobile: Show single day view */
    .weekly-calendar {
        grid-template-columns: 80px 1fr;
        gap: 1px;
        padding: 1rem;
        overflow-x: auto;
    }
    
    .calendar-day-header {
        display: none;
    }
    
    .calendar-day-header.mobile-active {
        display: block;
        background: linear-gradient(135deg, var(--jugend-brown), rgba(139, 69, 19, 0.8));
        color: var(--jugend-light);
        padding: 1rem 0.8rem;
        text-align: center;
        font-weight: 600;
        border-radius: 12px;
        font-size: 0.9rem;
        box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
        margin-bottom: 1rem;
    }
    
    .calendar-slot {
        padding: 0.8rem 0.6rem;
        font-size: 0.8rem;
        min-height: 60px;
    }
    
    .slot-time {
        font-size: 0.7rem;
    }
    
    .slot-status {
        font-size: 0.6rem;
    }
    
    /* Mobile day navigation */
    .mobile-day-nav {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin: 1rem 0;
        flex-wrap: wrap;
    }
    
    .mobile-day-btn {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(45, 80, 22, 0.2);
        color: var(--jugend-dark);
        padding: 0.5rem 0.8rem;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: 60px;
        text-align: center;
    }
    
    .mobile-day-btn:hover,
    .mobile-day-btn.active {
        background: var(--jugend-green);
        color: var(--jugend-light);
        border-color: var(--jugend-green);
    }
    
    .mobile-day-btn.today {
        border-color: var(--jugend-gold);
        background: rgba(237, 204, 104, 0.1);
    }
}

@media (max-width: 480px) {
    .weekly-calendar {
        grid-template-columns: 60px 1fr;
        font-size: 0.7rem;
        padding: 0.5rem;
    }
    
    .calendar-slot {
        padding: 0.6rem 0.4rem;
        font-size: 0.7rem;
        min-height: 50px;
    }
    
    .slot-time {
        font-size: 0.6rem;
    }
    
    .slot-status {
        font-size: 0.5rem;
    }
    
    .mobile-day-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-width: 50px;
    }
}

/* Venue Information Strip */
.venue-info-strip {
    background: linear-gradient(135deg, rgba(180, 211, 224, 0.05), rgba(45, 80, 22, 0.05));
    padding: 3rem 0;
}

.venue-info-strip .strip-content {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 2rem;
    align-items: stretch;
    min-height: 500px;
    padding: 0 1rem;
}

/* Photo Carousel */
.photo-carousel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: var(--jugend-light);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 400px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem 1.5rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--jugend-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: var(--jugend-gold);
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--jugend-gold);
    transform: scale(1.2);
}

/* Venue Specifications */
.venue-specs {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.venue-specs h3 {
    color: var(--jugend-green);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(45, 80, 22, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--jugend-green);
    box-shadow: none;
}

.spec-icon {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
}

.spec-content h4 {
    color: var(--jugend-dark);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.spec-content p {
    color: var(--jugend-brown);
    font-size: 0.8rem;
    margin: 0;
}

.equipment-section {
    border-top: 1px solid var(--jugend-gold);
    padding-top: 1.5rem;
    flex-shrink: 0;
}

.equipment-section h3 {
    color: var(--jugend-green);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(180, 211, 224, 0.05);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--jugend-dark);
    box-shadow: none;
}

.equipment-icon {
    font-size: 1rem;
    min-width: 1.2rem;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .venue-info-strip .strip-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .venue-specs {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.page {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.page.active {
    opacity: 1;
    transform: translateY(0);
}
