body {
    background-color: #DFDFDF;
}

.main-content {
    padding: 140px 1rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: bolder;
    text-align: center;
    color: #ff0000;
    margin-bottom: 1.5rem;
}

.page-intro {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: #333;
    max-width: 900px;
    margin: 0 auto 3rem;
}

/* Sakrament Box (uses <details>) */
.sakrament-box {
    background: white;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.sakrament-box:hover {
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.15);
}

.sakrament-header {
    padding: 1.75rem 2.5rem;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #ff0000;
    list-style: none;
}

.sakrament-header::-webkit-details-marker {
    display: none;
}

.sakrament-header h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: #333;
    margin: 0;
}

.toggle-icon {
    display: none;
}

.sakrament-content {
    padding: 2rem 2.5rem 2.5rem;
}

.sakrament-content > p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.25rem;
}

.info-block {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(240, 240, 240, 0.7);
    border-radius: 10px;
    border-left: 4px solid #ff0000;
}

.info-block h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: #ff0000;
    margin-bottom: 0.75rem;
}

.info-block h4 {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #555;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.info-block p {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    line-height: 1.7;
    color: #333;
    margin-bottom: 0.75rem;
}

.info-block ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.info-block ul li {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    line-height: 1.7;
    color: #333;
    margin-bottom: 0.25rem;
}

.sakrament-link {
    display: inline-block;
    color: #ff0000;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.sakrament-link:hover {
    color: #cc0000;
    text-decoration: underline;
}

/* Footer */
#ganzunten {
    width: 100%;
    padding: 2rem 0;
    background-color: #2E2E2E;
    text-align: center;
    margin-top: 4rem;
}

#ganzunten a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

#ganzunten a:hover {
    color: #ff0000;
}

/* Desktop: boxes are always open, no toggle visible */
@media (min-width: 1024px) {
    .sakrament-header {
        cursor: default;
        pointer-events: none;
    }

    .toggle-icon {
        display: none;
    }
}

/* Mobile: foldable accordion behavior */
@media (max-width: 1023px) {
    .main-content {
        padding-top: 100px;
    }

    .sakrament-header {
        cursor: pointer;
        pointer-events: auto;
    }

    .toggle-icon {
        display: block;
        width: 24px;
        height: 24px;
        position: relative;
        flex-shrink: 0;
    }

    .toggle-icon::before,
    .toggle-icon::after {
        content: '';
        position: absolute;
        background: #ff0000;
        border-radius: 2px;
        transition: transform 0.3s ease;
    }

    /* Horizontal bar */
    .toggle-icon::before {
        width: 24px;
        height: 3px;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }

    /* Vertical bar (becomes + when closed) */
    .toggle-icon::after {
        width: 3px;
        height: 24px;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    /* When open, rotate vertical bar to form a minus */
    .sakrament-box[open] .toggle-icon::after {
        transform: translateX(-50%) rotate(90deg);
    }

    .sakrament-content {
        padding: 1.5rem;
    }

    .info-block {
        padding: 1rem;
    }
}
