/* ============================================================
   HARDTWALDBATTERIE – Jahreskreis Page Styles
   Visual storytelling for the Wheel of the Year
   ============================================================ */

/* Override legal-page defaults for richer layout */
.legal-page {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.04) 0%, transparent 50%),
        var(--bg-void, #050300);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-container > h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: 0.1em;
    text-align: center;
    color: var(--accent-gold, #c9a227);
    margin-bottom: 3rem;
    position: relative;
}

.legal-container > h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold, #c9a227), transparent);
    margin: 1.5rem auto 0;
}

/* Each festival section */
.legal-section {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(201, 162, 39, 0.08);
    position: relative;
    text-align: center;
}

.legal-section:last-child {
    border-bottom: none;
}

/* Festival headings with symbol */
.legal-section h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    letter-spacing: 0.08em;
    color: var(--text-light, #f5f0e8);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 0;
    text-align: center;
}

/* Decorative line under each heading */
.legal-section h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(201, 162, 39, 0.3);
    margin: 1rem auto 0;
}

/* Text styling */
.legal-section p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-muted, #999);
    margin-bottom: 1rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* HWB connection paragraphs (italic) - highlighted */
.legal-section em {
    color: var(--text-light, #f5f0e8);
    font-style: italic;
}

/* First section (intro) - special treatment */
.legal-section:first-child {
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

/* Last section ("Was wir sind") - special treatment */
.legal-section:last-child {
    padding-top: 4rem;
    border-top: 1px solid rgba(201, 162, 39, 0.15);
}

.legal-section:last-child strong {
    color: var(--accent-gold, #c9a227);
    font-size: 1.1em;
}

/* Festival sections alternate subtle background glow — full viewport width */
.legal-section:nth-child(odd)::before,
.legal-section:nth-child(even)::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: -1;
}

.legal-section:nth-child(odd)::before {
    background: radial-gradient(ellipse at 0% 50%, rgba(139, 37, 0, 0.04) 0%, transparent 50%);
}

.legal-section:nth-child(even)::before {
    background: radial-gradient(ellipse at 100% 50%, rgba(201, 162, 39, 0.04) 0%, transparent 50%);
}

/* Photo teasers in festival sections */
.jahreskreis-photos {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.jahreskreis-photos img {
    height: 120px;
    width: auto;
    object-fit: cover;
    border-radius: 2px;
    opacity: 0.7;
    filter: grayscale(30%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.jahreskreis-photos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Responsive */
@media (max-width: 768px) {
    .legal-section {
        padding: 2rem 0;
    }

    .legal-section p {
        font-size: 0.95rem;
    }
}

@media (max-width: 540px) {
    .jahreskreis-photos {
        overflow-x: auto;
    }

    .jahreskreis-photos img {
        height: 80px;
    }
}
