body {
    background-color: var(--cream);
    padding-bottom: 6.25rem; /* 100px -> 6.25rem */
    font-size: 1rem;
}

main {
    flex-grow: 0; /* Reset flex-grow */
}

.page-header {
    min-height: 40vh;
    background: url('massage.html-hintergrund.png') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Adjust height of the fade effect */
    background: linear-gradient(to top, var(--cream), transparent);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: 'Playfair Display', serif;
}

.page-header p {
    font-size: 1.2rem;
}

.massage-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.massage-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
}

.massage-category h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 1.25rem;
    border-bottom: 0.125rem solid #C5A267;
    padding-bottom: 0.625rem;
}

.massage-category ul {
    list-style: none;
    padding: 0;
}

.massage-category ul li details {
    padding: 10px 0;
    border-bottom: 1px solid var(--cream);
}

.massage-category ul li:last-child details {
    border-bottom: none;
}

.massage-category ul li summary {
    font-size: 1rem;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
    padding-right: 1.25rem; /* Space for the arrow */
}

.massage-category ul li summary::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0);
    width: 0; 
    height: 0; 
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--ink);
    transition: transform 0.3s ease;
}

details[open] > summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.massage-category ul li summary::-webkit-details-marker {
    display: none; /* Remove default marker for Chrome/Safari */
}

.massage-details {
    padding: 1rem;
    margin-top: 0.625rem;
    background-color: var(--cream);
    border-radius: 0.625rem;
}

.massage-details p {
    margin-bottom: 10px;
}

.price {
    font-weight: bold;
    color: var(--sage);
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: #25D366;
    color: white;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-fab svg {
    width: 2rem;
    height: 2rem;
}

.content-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, picture, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Layouts */
@media (min-width: 600px) {
    .massage-categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    .massage-category h2 {
        font-size: 1.8rem;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 1.1rem;
    }
    .massage-categories {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    .massage-category {
        padding: 2.5rem;
    }
}
