/* assets/css/studio.css */

/* Hero Section */
.studio-hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
    position: relative;
}

.studio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--moonflow-gradient);
    opacity: 0.1;
    z-index: -1;
}

.studio-hero-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.studio-description {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Gallery */
.studio-gallery {
    overflow: hidden;
}

.gallery-grid {
    justify-content: center;
}

.gallery-item {
    display: block;
    position: relative;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Ensure items don't exceed 250px while maintaining grid layout */
@media (min-width: 768px) {
    .gallery-grid .col-featured,
    .gallery-grid .col-standard {
        max-width: 250px;
    }
}

/* Equipment */
.equipment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.equipment-item {
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.equipment-item:last-child {
    border-bottom: none;
}

.equipment-name {
    font-size: 1.1rem;
    color: var(--moonflow-purple);
    margin: 0 0 0.5rem 0;
}

.equipment-description {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* Calendar */
.calendar-wrapper {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    margin: 0;
    color: var(--moonflow-purple);
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px;
    table-layout: fixed;
}

.calendar th {
    text-align: center;
    padding: 0.5rem;
    color: var(--moonflow-purple);
    font-weight: 500;
}

.calendar td {
    text-align: center;
    padding: 0.5rem;
    border-radius: 10px;
    position: relative;
    height: 80px;
    vertical-align: top;
    background: #f8f9fa;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar td:hover:not(.past) {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.calendar td.available {
    background: #e8f5e9;
}

.calendar td.pending {
    background: #fff3e0;
}

.calendar td.booked {
    background: #ffebee;
}

.calendar td.blocked {
    background: #eeeeee;
}

.calendar td.past {
    opacity: 0.5;
    cursor: default;
}

.date {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.status-badge {
    font-size: 0.8rem;
    display: block;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.legend-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.legend-item::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 0.5rem;
}

.legend-item.available::before {
    background: #e8f5e9;
}

.legend-item.pending::before {
    background: #fff3e0;
}

.legend-item.booked::before {
    background: #ffebee;
}

.legend-item.blocked::before {
    background: #eeeeee;
}

/* Booking Form */
.booking-form {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.booking-form .card-title {
    color: var(--moonflow-purple);
    margin-bottom: 1.5rem;
}

/* Modal Anpassungen */
.modal-content {
    border-radius: 15px;
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--moonflow-purple);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .studio-hero {
        padding: 3rem 0;
        text-align: center;
        place-self: center;

    }
    
    .studio-hero-image {
        margin-top: 2rem;
    }
    
    .calendar td {
        height: 60px;
        font-size: 0.9rem;
    }
    
    .calendar tr {
        height: 60px;
        font-size: 0.9rem;
    }

    .calendar-legend {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        padding: 1rem;
    }

    .carousel-item .col-12, .carousel-item .col-md-6, .carousel-item .col-md-4 {
        flex: 0 0 80%;
        max-width: 80%;
        margin: 0 auto; /* Zentriert die Bilder */
    }

    .img-fixed-size {
        height: 150px; /* Höhe für mobile Geräte anpassen */
    }

    .card {
        margin-bottom: 15px;
    }
}

.img-fixed-size {
    width: 100%;
    height: 200px; /* Höhe anpassen, wie benötigt */
    object-fit: cover;
}

.accordion-button:not(.collapsed) {
    color: white;
    background-color: var(--moonflow-purple);
    box-shadow: inset 0 calc(-1* var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
}