/* Startseite: Film-Hero und reduzierte Inhalte. Gemeinsame Grundlagen stehen in theme.css. */
.home-page {
    margin: 0;
    background: var(--ral-night);
    font-size: 17px;
    line-height: 1.55;
}
.home-page::before { display: none; }
.home-page .page-shell { padding: 0; }
.home-page main { display: block; }
.home-page h1, .home-page h2, .home-page h3, .home-page p { margin: 0; }
.home-page a { color: inherit; }
/* ------------------------------------------------------------ film */
.film { position: relative; height: 560svh; background: var(--ral); }
.film-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.film-poster, .film-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.film-canvas { opacity: 0; transition: opacity .6s ease; }
.film.is-ready .film-canvas { opacity: 1; }
.film-shade {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(31, 35, 38, .55) 0%, rgba(31, 35, 38, 0) 22%),
        linear-gradient(0deg, rgba(31, 35, 38, .7) 0%, rgba(31, 35, 38, 0) 34%);
}
.film-chapter {
    position: absolute; left: var(--gutter); right: var(--gutter);
    opacity: 0; will-change: opacity, transform; pointer-events: none;
}
.film-chapter.is-live { pointer-events: auto; }
.film-title { bottom: clamp(56px, 12vh, 120px); }
.film-title h1 {
    margin-top: 10px;
    font-family: var(--display); font-weight: 500;
    font-size: clamp(56px, min(12vw, 24vh), 176px); line-height: .9; letter-spacing: -.01em;
}
.film-place { margin-top: 14px; color: var(--muted); font-size: 15px; letter-spacing: .04em; }
.film-line { top: 50%; transform: translateY(-50%); text-align: center; }
.film-line p {
    font-family: var(--display); font-style: italic; font-weight: 500;
    font-size: clamp(40px, min(8vw, 17vh), 120px); line-height: 1;
    text-shadow: 0 2px 40px rgba(0, 0, 0, .45);
}
.film-finale { bottom: clamp(48px, 10vh, 104px); text-align: center; }
.film-finale h2 {
    font-family: var(--display); font-weight: 500;
    font-size: clamp(38px, min(7vw, 15vh), 104px); line-height: 1;
    text-shadow: 0 2px 40px rgba(0, 0, 0, .5);
}
.film-finale .actions { justify-content: center; margin-top: 28px; }
.film-hint {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
    display: grid; justify-items: center; gap: 10px;
    color: var(--muted); font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
    transition: opacity .4s ease;
}
.film-hint span { width: 1px; height: 34px; background: linear-gradient(var(--ink), transparent); animation: hint 2.2s ease-in-out infinite; }
.is-scrolled .film-hint { opacity: 0; }
@keyframes hint { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }
.film-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(244, 242, 238, .08); }
.film-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--warm); }

/* static mode (reduced motion / no JS): one frame, title and finale */
.film.is-static { height: 100svh; }
.film.is-static .film-title { opacity: 1; }

/* ------------------------------------------------------------ sections */

.year,
.rhythm,
.dates,
.join { position: relative; padding: clamp(64px, 10vh, 120px) var(--gutter); }
.section-title { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.6vw, 56px); line-height: 1.02; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 32px; }
.muted { color: var(--muted); }
.muted a { color: var(--warm); }

/* ---- manifest: words light up while scrolling */
.manifest { position: relative; height: 230svh; background: var(--ral-night); }
.manifest::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 56px 56px;
}
.manifest-sticky {
    position: sticky; top: 0; height: 100svh; display: grid; place-content: center; justify-items: center; gap: 28px;
    padding: 0 var(--gutter); text-align: center;
    background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(241, 196, 143, .07), transparent 70%);
}
.manifest-text {
    max-width: 24ch; font-family: var(--display); font-weight: 500;
    font-size: clamp(32px, 4.6vw, 72px); line-height: 1.12;
}
.manifest-text span { color: rgba(244, 242, 238, .14); transition: color .5s ease, text-shadow .5s ease; }
.manifest-text span.is-lit { color: var(--ink); text-shadow: 0 0 40px rgba(241, 196, 143, .18); }
.manifest.is-static { height: auto; }
.manifest.is-static .manifest-sticky { position: static; height: auto; padding-block: 120px; }
.manifest.is-static .manifest-text span { color: var(--ink); }

/* ---- marquee */
.marquee {
    overflow: hidden; padding: 26px 0; background: var(--ral-deep);
    border-block: 1px solid var(--line); display: grid; gap: 4px;
}
.marquee-row { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-row.is-reverse { animation-direction: reverse; animation-duration: 75s; }
.marquee-row span {
    flex: none; white-space: nowrap; padding-right: .3em;
    font-family: var(--display); font-weight: 500; font-size: clamp(36px, 5vw, 76px); line-height: 1.1;
}
.marquee-row:first-child span { font-style: italic; color: var(--ink); }
.marquee-row.is-reverse span { color: transparent; -webkit-text-stroke: 1px rgba(241, 196, 143, .6); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- liturgical year */
.year {
    --lit: #4f8a5b;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px);
    background:
        radial-gradient(circle at 72% 50%, color-mix(in srgb, var(--lit) 16%, transparent), transparent 42%),
        var(--ral-night);
}
.year-copy { display: grid; gap: 18px; max-width: 560px; justify-self: end; }
.year-lead { color: var(--muted); }
.year-legend { display: grid; gap: 12px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.year-legend li { position: relative; padding-left: 28px; }
.year-legend li::before { content: ""; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(244, 242, 238, .15); }
.year-legend b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.year-wheel { position: relative; width: min(100%, 520px); aspect-ratio: 1; justify-self: start; }
.year-wheel svg { width: 100%; height: 100%; overflow: visible; }
.year-track { fill: none; stroke: rgba(244, 242, 238, .05); stroke-width: 44; }
.year-seg { fill: none; stroke-width: 34; cursor: pointer; transition: stroke-width .25s ease, opacity .25s ease, stroke-dashoffset 1.6s cubic-bezier(.3, .7, .2, 1); opacity: .82; outline: none; }
.year-seg.is-now { opacity: 1; }
.year-seg.is-hover, .year-seg:focus-visible { stroke-width: 44; opacity: 1; }
.year.is-waiting .year-seg { stroke-dasharray: 1; stroke-dashoffset: 1; }
.year.is-drawn .year-seg { stroke-dasharray: 1; stroke-dashoffset: 0; }
.year-special { stroke: var(--ral-night); stroke-width: 2; pointer-events: none; }
.year-label { fill: var(--muted); font-family: var(--sans); font-size: 12px; letter-spacing: .04em; }
.year-tick { stroke: rgba(244, 242, 238, .35); stroke-width: 1; }
.year-today { fill: var(--ink); }
.year-today-halo { fill: var(--ink); opacity: .18; transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-in-out infinite; }
.year-today-line { stroke: var(--ink); stroke-width: 2; }
@keyframes halo { 50% { transform: scale(1.6); opacity: .05; } }
.year-center {
    position: absolute; inset: 24%; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; pointer-events: none;
}
.year-center-label { color: var(--warm); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.year-center strong { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; }
.year-center [data-year-color] { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.year-center [data-year-color] i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(244, 242, 238, .25); }
.year-countdown { color: var(--muted); font-size: 13px; }

/* ---- rhythm */
.rhythm { background: var(--ral); }
.rhythm-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.rhythm-list li {
    display: grid; align-content: start; gap: 10px; padding: clamp(24px, 2.6vw, 36px);
    border: 1px solid var(--line); border-radius: 22px; background: rgba(31, 35, 38, .35);
    transition: transform .4s ease, border-color .4s ease, background .4s ease;
}
.rhythm-list li:hover { transform: translateY(-4px); border-color: rgba(241, 196, 143, .35); background: rgba(31, 35, 38, .55); }
.rhythm-word {
    font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(40px, 4.4vw, 68px); line-height: 1;
    background: linear-gradient(100deg, var(--warm), var(--ink) 70%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rhythm-list h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.rhythm-list p { color: var(--ink); opacity: .82; max-width: 36ch; }

/* ---- dates */
.dates { background: var(--ral-night); }
.date-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.date-cards a {
    position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto auto auto auto; column-gap: 16px; align-items: end;
    padding: 24px 26px 26px; min-height: 240px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
    background: linear-gradient(160deg, rgba(56, 62, 66, .55), rgba(31, 35, 38, .4)); text-decoration: none;
    transition: transform .35s ease, border-color .35s ease;
}
.date-cards a:hover { transform: translateY(-4px); border-color: rgba(241, 196, 143, .4); }
.date-when {
    grid-column: 1 / -1; justify-self: start; align-self: start; margin-bottom: auto; padding: 5px 12px; border-radius: 999px;
    background: rgba(241, 196, 143, .14); color: var(--warm); font-size: 12px; font-weight: 600; letter-spacing: .06em;
}
.date-day { grid-row: span 2; font-family: var(--display); font-size: 92px; line-height: .78; }
.date-month { align-self: end; padding-bottom: 8px; color: var(--warm); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.date-title { grid-column: 1 / -1; margin-top: 18px; font-size: 20px; font-weight: 500; }
.date-meta { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }

/* ---- join: a real candle */
.join {
    display: grid; grid-template-columns: auto minmax(0, 620px); justify-content: center; align-items: center; gap: clamp(40px, 8vw, 120px);
    padding-block: clamp(80px, 14vh, 160px); overflow: hidden;
    background: radial-gradient(circle at 34% 52%, rgba(241, 196, 143, .16), transparent 38%), var(--ral-night);
}
.join-copy { display: grid; gap: 20px; }
.join-copy h2 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 5vw, 76px); line-height: 1; }
.join-copy > p:not(.eyebrow) { color: var(--muted); max-width: 44ch; }
.join-people { font-size: 14px; }
.candle { position: relative; width: 120px; height: 360px; }
.candle-body {
    position: absolute; left: 30px; bottom: 0; width: 60px; height: 250px; border-radius: 6px 6px 3px 3px;
    background: linear-gradient(90deg, #cfc6b4 0%, #f6f0e2 35%, #fffaf0 50%, #e9e0cc 75%, #b9ae98 100%);
    box-shadow: inset 0 10px 18px rgba(255, 196, 120, .35), 0 30px 60px rgba(0, 0, 0, .45);
}
.candle-body::before { /* melted rim */
    content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 12px; border-radius: 50%;
    background: radial-gradient(ellipse at 50% 30%, #fff6e2, #e5d9bf 70%);
}
.candle-wick { position: absolute; left: 58px; bottom: 246px; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(#2a1d12, #5a4330); }
.candle-flame {
    position: absolute; left: 44px; bottom: 256px; width: 32px; height: 76px; border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%;
    background: radial-gradient(ellipse 40% 55% at 50% 78%, #fff 0%, #fff4d6 25%, #ffc56b 55%, rgba(255, 140, 40, .0) 75%);
    transform-origin: 50% 90%; animation: flicker 3.2s ease-in-out infinite; filter: blur(.4px);
}
.candle-flame::before { /* blue base */
    content: ""; position: absolute; left: 10px; bottom: 6px; width: 12px; height: 18px; border-radius: 50%;
    background: radial-gradient(rgba(120, 160, 255, .55), transparent 70%);
}
.candle-glow {
    position: absolute; left: 50%; bottom: 290px; width: 420px; height: 420px; margin-left: -210px; margin-bottom: -210px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 196, 110, .32), rgba(255, 170, 80, .08) 55%, transparent);
    animation: glow 3.2s ease-in-out infinite; pointer-events: none;
}
@keyframes flicker {
    0%, 100% { transform: scale(1, 1) rotate(-1deg); }
    20% { transform: scale(.96, 1.04) rotate(1.5deg); }
    40% { transform: scale(1.03, .97) rotate(-2deg); }
    60% { transform: scale(.98, 1.06) rotate(1deg); }
    80% { transform: scale(1.02, .98) rotate(-.5deg); }
}
@keyframes glow { 0%, 100% { opacity: .9; transform: scale(1); } 45% { opacity: 1; transform: scale(1.05); } 70% { opacity: .82; transform: scale(.97); } }

/* ------------------------------------------------------------ small screens */
@media (max-width: 860px) {
    .year { grid-template-columns: 1fr; }
    .year-copy, .year-wheel { justify-self: center; }
    .year-wheel { width: min(100%, 440px); }
    .rhythm-list { grid-template-columns: 1fr; }
    
    .join { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; }
    .join .actions { justify-content: center; }
    .join-copy > p:not(.eyebrow) { margin-inline: auto; }
    .candle { transform: scale(.75); margin: -40px 0 -50px; }
}
@media (max-width: 760px) {
    .date-day { font-size: 76px; }
}
@media (prefers-reduced-motion: reduce) {
    .film-hint span, .marquee-row, .candle-flame, .candle-glow, .year-today-halo { animation: none; }
    .date-cards a,
.rhythm-list li,
.manifest-text span { transition: none; }
}
