/* Fermentierlust Adventskalender 2026: Regal mit 24 Gläsern (Frederik 13.11.2026).
   Farben aus css/variables.css, Glas-Inhalte als SVG-fill. Keine Inline-Styles (CSP). */
.fl-advent { background: var(--fl-surface, #FFFDF8); padding: calc(var(--nav-height, 68px) + 28px) 0 64px; }
.fl-advent .container { width: min(var(--container, 1080px), calc(100% - 2 * var(--gutter, 24px))); margin-inline: auto; }

.fl-advent__hero { padding: 18px 0 8px; text-align: center; }
.fl-advent__hero .display { margin: 6px auto 10px; max-width: 16ch; }
.fl-advent__hero--small { padding-top: 40px; }
.fl-advent__h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin: 6px 0 10px; color: var(--fl-purple-dark); }
.fl-advent__intro { max-width: 560px; margin: 0 auto 14px; font-size: 18px; line-height: 1.55; color: var(--fl-ink-soft); }
.fl-advent__note { display: inline-block; margin: 4px 0 0; padding: 8px 16px; border-radius: var(--radius-pill); background: var(--fl-action-accent-soft); color: var(--fl-purple-dark); font-size: 15px; }
.fl-advent__actions { margin: 10px 0 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Regal: Gläser stehen auf Brettern (Brett = Unterkante jeder Zelle, Zellen ohne Zwischenraum nebeneinander) */
.fl-advent__shelf { margin-top: 26px; }
.fl-shelf { list-style: none; margin: 0; padding: 18px 18px 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 0; row-gap: 26px;
  background: linear-gradient(180deg, rgba(245, 241, 197, .55), rgba(176, 200, 153, .22)); border-radius: var(--radius-card, 20px); }
.fl-shelf__item { position: relative; display: flex; justify-content: center; align-items: flex-end; padding: 0 6px 14px; }
.fl-shelf__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--fl-green); box-shadow: 0 6px 0 rgba(92, 102, 82, .25); }
.fl-shelf__item:nth-child(6n+1)::after { border-radius: 6px 0 0 6px; left: -10px; }
.fl-shelf__item:nth-child(6n)::after { border-radius: 0 6px 6px 0; right: -10px; }

.fl-jar { position: relative; display: block; width: 100%; max-width: 132px; color: var(--fl-purple-dark); text-decoration: none; text-align: center; transition: transform var(--transition-base, .3s); }
.fl-jar__svg { display: block; width: 100%; height: auto; overflow: visible; }
.fl-jar__num { font-family: var(--font-display); font-size: 24px; }
.fl-jar__cap { display: block; margin: 2px 0 0; font-family: var(--font-accent); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; min-height: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-jar--zu { cursor: default; }
.fl-jar--zu .fl-jar__svg { opacity: .78; }
.fl-jar--zu .fl-jar__cap { color: var(--fl-ink-soft); opacity: .8; }
a.fl-jar:hover, a.fl-jar:focus-visible { transform: translateY(-6px); }
a.fl-jar:focus-visible { outline: 3px solid var(--fl-purple); outline-offset: 4px; border-radius: 12px; }
.fl-jar.is-current .fl-jar__cap { color: var(--fl-purple); }
.fl-jar.is-visited:not(.fl-jar--heute) .fl-jar__cap::before { content: "✓ "; }

/* Heute: Glas leuchtet, Bläschen steigen */
.fl-jar--heute { transform: scale(1.08); transform-origin: 50% 100%; }
.fl-jar--heute::before { content: ""; position: absolute; inset: 0 -14% 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(186, 120, 168, .55), rgba(186, 120, 168, 0)); z-index: -1; animation: flGlow 2.6s ease-in-out infinite; }
.fl-jar--heute .fl-jar__cap { display: inline-block; width: auto; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--fl-purple-dark); color: #fff; font-weight: 600; }
a.fl-jar--heute:hover, a.fl-jar--heute:focus-visible { transform: scale(1.08) translateY(-6px); }
@keyframes flGlow { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
.fl-jar__bubbles circle { animation: flBubble 2.6s ease-in infinite; transform-box: fill-box; }
.fl-jar__bubbles circle:nth-child(2) { animation-delay: .9s; }
.fl-jar__bubbles circle:nth-child(3) { animation-delay: 1.7s; }
@keyframes flBubble { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-46px); opacity: 0; } }

/* Deckel: offen = leicht angehoben und gekippt; beim Öffnen klappt er auf */
.fl-jar__lid { transform-box: fill-box; transform-origin: 0% 100%; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.fl-jar__lid.is-open { transform: translate(-3px, -7px) rotate(-14deg); }
.fl-jar.is-popping .fl-jar__lid { transform: translate(-6px, -18px) rotate(-32deg); }
.fl-advent__door-jar .fl-jar__lid.is-open { animation: flLidPop .8s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes flLidPop { from { transform: none; } to { transform: translate(-3px, -7px) rotate(-14deg); } }

/* Vorschau: alle Gläser untereinander */
.fl-advent__all { margin-top: 56px; text-align: center; }
.fl-advent__all .fl-advent__door { text-align: left; margin-top: 24px; }
.fl-advent__all .fl-advent__title { font-size: clamp(30px, 3.6vw, 40px); }

/* Das geöffnete Glas oben */
.fl-advent__door { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 36px; align-items: start; background: #fff; border-radius: var(--radius-card, 20px); box-shadow: var(--shadow-card); padding: 36px 40px; margin-top: 8px; scroll-margin-top: calc(var(--nav-height, 68px) + 16px); }
.fl-advent__door-jar { position: sticky; top: calc(var(--nav-height, 68px) + 24px); }
.fl-advent__door-jar .fl-jar__svg { width: 100%; height: auto; display: block; overflow: visible; }
.fl-advent__eyebrow { font-family: var(--font-accent); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--fl-purple); margin: 0 0 8px; }
.fl-advent__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.05; color: var(--fl-purple-dark); margin: 0 0 14px; text-wrap: balance; }
.fl-advent__lead { font-size: 19px; line-height: 1.55; margin: 0 0 16px; color: var(--fl-ink); }
.fl-advent__dauer { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(176, 200, 153, .3); font-size: 15px; color: var(--fl-green); }
.fl-advent__dauer span { font-weight: 600; }
.fl-advent__text p { margin: 0 0 12px; font-size: 17px; line-height: 1.65; color: var(--fl-ink); }
.fl-advent__steps { margin: 4px 0 16px; padding: 0; list-style: none; counter-reset: step; }
.fl-advent__steps li { counter-increment: step; position: relative; padding: 10px 0 10px 44px; border-bottom: 1px solid var(--fl-line-light); font-size: 17px; line-height: 1.55; }
.fl-advent__steps li::before { content: counter(step); position: absolute; left: 0; top: 9px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fl-cream); color: var(--fl-purple-dark); font-family: var(--font-display); font-size: 18px; }
.fl-advent__tipp { margin: 14px 0 0; padding: 14px 18px; border-radius: var(--radius-small, 14px); background: var(--fl-action-accent-soft); font-size: 16px; line-height: 1.55; }
.fl-advent__tipp span { display: block; font-family: var(--font-accent); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fl-purple-dark); margin-bottom: 4px; }
.fl-advent__more { margin: 18px 0 0; }

@media (max-width: 900px) {
  .fl-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fl-shelf__item:nth-child(6n+1)::after, .fl-shelf__item:nth-child(6n)::after { border-radius: 0; left: 0; right: 0; }
  .fl-shelf__item:nth-child(4n+1)::after { border-radius: 6px 0 0 6px; left: -10px; }
  .fl-shelf__item:nth-child(4n)::after { border-radius: 0 6px 6px 0; right: -10px; }
}
@media (max-width: 720px) {
  .fl-advent__door { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 8px; }
  .fl-advent__door-jar { position: static; width: 120px; margin: 0 auto; }
  .fl-advent__lead { font-size: 18px; }
}
@media (max-width: 520px) {
  .fl-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 12px 0; row-gap: 22px; }
  .fl-shelf__item:nth-child(4n+1)::after, .fl-shelf__item:nth-child(4n)::after { border-radius: 0; left: 0; right: 0; }
  .fl-shelf__item:nth-child(3n+1)::after { border-radius: 6px 0 0 6px; left: -8px; }
  .fl-shelf__item:nth-child(3n)::after { border-radius: 0 6px 6px 0; right: -8px; }
  .fl-jar__cap { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-jar__bubbles circle, .fl-jar--heute::before, .fl-advent__door-jar .fl-jar__lid.is-open { animation: none; }
  .fl-jar, .fl-jar__lid { transition: none; }
}
