/* Licht und Wort – Tageskalender „Heute“ (neu in Version 1.4.0)
 * Knopf in der Kopfleiste + Fenster, das wie ein Rollo von oben herabkommt. Farben und Schriften kommen vom Theme. */

/* ------------------------------------------------------------------ Knopf */
.pill.lw-heute-btn{display:inline-flex;align-items:center;gap:8px;padding:5px 14px 5px 8px;font-family:var(--font-display,Times New Roman,serif);font-size:.95rem;font-weight:600;letter-spacing:.02em;line-height:1}
.lw-heute-btn[aria-expanded="true"]{border-color:var(--gold-soft,#f0d98f);background:rgba(240,217,143,.12)}
.lw-hb-ico{display:inline-grid;grid-template-rows:7px 1fr;width:24px;height:25px;border-radius:5px;overflow:hidden;border:1px solid rgba(240,217,143,.55);background:rgba(255,255,255,.05);box-sizing:border-box;transition:border-color .3s,box-shadow .3s}
.lw-heute-btn:hover .lw-hb-ico,.lw-heute-btn:focus-visible .lw-hb-ico,.lw-heute-btn[aria-expanded="true"] .lw-hb-ico{border-color:var(--gold-soft,#f0d98f);box-shadow:0 0 12px rgba(240,200,110,.35)}
.lw-hb-mon{display:block;font:700 5.6px/7px var(--font-body,system-ui,sans-serif);letter-spacing:.14em;text-transform:uppercase;text-align:center;font-style:normal;color:#2d0a14;background:linear-gradient(180deg,#f6e3a6,#cfa653)}
.lw-hb-tag{display:grid;place-items:center;font:600 12.5px/1 var(--font-display,Times New Roman,serif);color:var(--ivory,#f3e6c8);font-variant-numeric:lining-nums tabular-nums}
@media(max-width:1260px){
  .lw-hb-txt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .pill.lw-heute-btn{padding:4px 7px}
}

/* ------------------------------------------------------------------ Fenster (Rollo) */
.lw-heute{--lw-h-top:64px;position:fixed;left:0;right:0;top:var(--lw-h-top);z-index:49;pointer-events:none;visibility:hidden;
  clip-path:inset(0 -60px -90px -60px);transition:visibility 0s linear .8s;outline:none;font-family:var(--font-body,system-ui,sans-serif);color:var(--ivory,#f3e6c8)}
.lw-heute.on{pointer-events:auto;visibility:visible;transition-delay:0s}
.lw-h-rollo{transform:translateY(-102%);transition:transform .78s cubic-bezier(.65,0,.25,1);will-change:transform}
.lw-heute.on .lw-h-rollo{transform:none}
#lw-heute:focus,#lw-heute:focus-visible,.lw-heute:focus,.lw-heute:focus-visible{outline:none}
.lw-h-tuch{position:relative;max-height:calc(100vh - var(--lw-h-top) - 96px);max-height:calc(100dvh - var(--lw-h-top) - 96px);overflow:auto;overscroll-behavior:contain;
  padding:clamp(22px,3.4vw,40px) clamp(18px,4vw,48px) 20px;
  background:radial-gradient(ellipse 60% 46% at 72% 100%,rgba(240,217,143,.16),transparent 72%),
    repeating-linear-gradient(180deg,rgba(255,255,255,.03) 0 2px,transparent 2px 10px),
    linear-gradient(180deg,#2d0a14,#4d1322 62%,#5e1a2b)}
.lw-h-tuch.mehr{-webkit-mask-image:linear-gradient(#000 calc(100% - 38px),transparent);mask-image:linear-gradient(#000 calc(100% - 38px),transparent)}
.lw-h-wrap{max-width:1080px;margin:0 auto;display:grid;grid-template-columns:minmax(250px,.78fr) minmax(0,1.5fr);gap:clamp(22px,4vw,56px);align-items:start}

/* Hinter dem Tuch: der goldene Saum mit Zugband (wie beim Rollo des Themes) */
.lw-h-saum{position:relative;height:15px;background:linear-gradient(180deg,#e0bc66,#8a6420);box-shadow:0 12px 28px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,244,200,.55)}
.lw-h-zug{all:unset;box-sizing:border-box;cursor:pointer;position:absolute;left:50%;top:100%;width:48px;height:56px;margin-left:-24px;display:grid;justify-items:center;align-content:start;-webkit-tap-highlight-color:transparent}
.lw-h-zug span{display:block;position:relative;width:1px;height:20px;margin-top:-1px;background:linear-gradient(180deg,#b88c3c,#e6c677)}
.lw-h-zug span::after{content:"";position:absolute;left:50%;top:100%;width:12px;height:16px;margin-left:-6px;border-radius:50% 50% 55% 55%;background:radial-gradient(circle at 35% 30%,#fff1bd,#d9b25c 55%,#8a6420);box-shadow:0 3px 8px rgba(0,0,0,.5);transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .3s}
.lw-h-zug:hover span::after,.lw-h-zug:focus-visible span::after{transform:translateY(3px);box-shadow:0 5px 12px rgba(0,0,0,.55),0 0 14px rgba(240,200,110,.4)}
.lw-h-zug:focus-visible{outline:2px solid var(--gold-soft,#f0d98f);outline-offset:-4px;border-radius:10px}

/* ------------------------------------------------------------------ Links: Datum, Uhr, Lesung */
.lw-h-links{display:grid;gap:4px;align-content:center;align-self:center;min-width:0}
.lw-h-gruss{margin:0 0 10px;font-size:.72rem;letter-spacing:.3em;text-transform:uppercase;color:var(--gold-soft,#f0d98f)}
.lw-h-wt{margin:0;font-family:var(--font-display,Times New Roman,serif);font-style:italic;font-size:1.25rem;color:var(--muted,#d6c6a2)}
.lw-h-datum{margin:0;font-family:var(--font-display,Times New Roman,serif);font-weight:600;font-size:clamp(1.9rem,3.2vw,2.5rem);line-height:1.1;color:var(--ivory,#f3e6c8);text-wrap:balance}
.lw-h-uhr{margin:6px 0 0;font-family:var(--font-display,Times New Roman,serif);font-size:1.7rem;font-weight:500;color:var(--gold-soft,#f0d98f);font-variant-numeric:lining-nums tabular-nums;letter-spacing:.04em}
.lw-h-sek{font-size:.95rem;opacity:.55;margin-left:1px}
.lw-h-jahr{margin:10px 0 0;display:flex;align-items:center;gap:12px;font-size:.82rem;letter-spacing:.06em;color:var(--muted,#d6c6a2)}
.lw-h-jahrleiste{flex:1;max-width:150px;height:2px;border-radius:2px;background:rgba(243,230,200,.16);overflow:hidden}
.lw-h-jahrleiste i{display:block;height:100%;width:0;background:linear-gradient(90deg,#b88c3c,#f0d98f);transition:width .9s cubic-bezier(.2,.8,.2,1) .35s}
.lw-h-fest{margin:12px 0 0;display:inline-block;justify-self:start;padding:5px 14px;border-radius:99px;border:1px solid rgba(240,217,143,.5);background:rgba(240,217,143,.1);font-family:var(--font-display,Times New Roman,serif);font-style:italic;font-size:1.02rem;color:var(--gold-soft,#f0d98f)}
.lw-h-fest[hidden]{display:none}
.lw-h-jb{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 32px;align-items:end;margin-top:4px;padding-top:20px;border-top:1px solid rgba(243,230,200,.16)}
.lw-h-jb[hidden]{display:none}
.lw-h-jb .lw-h-k{grid-column:1/-1;margin:0}
.lw-h-k{margin:0 0 10px;font-size:.7rem;letter-spacing:.28em;text-transform:uppercase;color:var(--gold-soft,#f0d98f)}
.lw-h-liste{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 24px}
.lw-h-liste li{display:grid;gap:2px;align-content:start;font-size:.98rem;line-height:1.3;min-width:0}
.lw-h-lk{font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted,#d6c6a2);opacity:.9}
.lw-h-lt{min-width:0;color:var(--ivory,#f3e6c8);overflow-wrap:anywhere}
.lw-h-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 18px;border-radius:99px;border:1px solid rgba(240,217,143,.55);font-size:.86rem;letter-spacing:.05em;color:var(--ivory,#f3e6c8);text-decoration:none;transition:border-color .3s,background .3s,color .3s}
.lw-h-btn:hover,.lw-h-btn:focus-visible{border-color:var(--gold-soft,#f0d98f);background:rgba(240,217,143,.14);color:#fff5d6}
.lw-h-btn[hidden]{display:none}
.lw-h-btn span{transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.lw-h-ta{grid-column:1/-1;justify-self:start}
.lw-h-ohnevers .lw-h-ta{display:none}
.lw-h-btn:hover span,.lw-h-btn:focus-visible span{transform:translateX(4px)}

/* ------------------------------------------------------------------ Rechts: Tageswort */
.lw-h-rechts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,2.2vw,26px);align-content:start;min-width:0}
.lw-h-vers{position:relative;margin:0;padding:20px 22px 18px;border-radius:8px;border:1px solid rgba(243,230,200,.16);background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.02));display:flex;flex-direction:column;min-width:0;
  opacity:0;transform:translateY(8px);transition:opacity .6s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
.lw-h-vers::before{content:"";position:absolute;left:22px;right:22px;top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(240,217,143,.7),transparent)}
.lw-heute.on .lw-h-vers{opacity:1;transform:none;transition-delay:.42s}
.lw-heute.on .lw-h-vers.nt{transition-delay:.55s}
.lw-h-vers[hidden]{display:none}
.lw-h-text{margin:0 0 14px;padding:0;font-family:var(--font-display,Times New Roman,serif);font-size:1.16rem;line-height:1.5;color:var(--ivory,#f3e6c8);hyphens:auto;-webkit-hyphens:auto;overflow-wrap:anywhere;flex:1}
.lw-h-lade .lw-h-text{min-height:5.4em;background:linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,.11),rgba(255,255,255,.04));background-size:220% 100%;animation:lwHSchimmer 1.4s linear infinite;border-radius:4px;color:transparent}
.lw-h-lade .lw-h-text *{color:transparent}
@keyframes lwHSchimmer{from{background-position:120% 0}to{background-position:-120% 0}}
.lw-h-herr{font-variant-caps:all-small-caps;letter-spacing:.07em;font-size:1.04em}
.lw-h-refzeile{margin:0}
.lw-h-ref{font-size:.74rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold-soft,#f0d98f);text-decoration:none;border-bottom:1px solid rgba(240,217,143,.35);padding-bottom:2px;transition:border-color .3s,color .3s}
a.lw-h-ref:hover,a.lw-h-ref:focus-visible{border-color:var(--gold-soft,#f0d98f);color:#fff5d6}
.lw-h-meld{grid-column:1/-1;margin:0;font-size:.9rem;color:var(--muted,#d6c6a2)}
/* 1.11.8 (Franks Wunsch): die beiden Kacheln untereinander, jede in voller Breite – nie ein Leerraum.
   Damit das Fenster auf Laptops nicht höher wird als vorher: die Spalte etwas breiter (weniger Zeilen) und die Abstände
   in den Kacheln etwas enger. Gemessen an allen 365 Tagen: der Knopf „Tagesandacht zu diesen Versen“ steht bei 1536 × 730
   an 359 Tagen ganz sichtbar (vorher nebeneinander 355), bei 1366 × 768 und größer an allen Tagen. */
.lw-h-rechts{grid-template-columns:minmax(0,1fr)}
@media(min-width:901px){.lw-heute:not(.lw-h-ohnevers) .lw-h-wrap,.lw-heute:not(.lw-h-ohnevers) .lw-h-fuss{max-width:1180px}}
@media(min-width:561px){.lw-h-rechts{row-gap:16px}.lw-h-vers{padding:16px 22px 14px}.lw-h-text{margin-bottom:10px}}
.lw-h-meld:empty{display:none}
.lw-h-ohnevers .lw-h-rechts{display:none}
.lw-h-ohnevers .lw-h-wrap{grid-template-columns:minmax(0,520px)}

/* ------------------------------------------------------------------ Fuß */
/* Bibelsuche im Fenster */
.lw-h-suche{display:grid;gap:8px;margin-top:14px;max-width:340px}
.lw-h-sz{position:relative}
.lw-h-sq{box-sizing:border-box;width:100%;height:42px;padding:0 46px 0 18px;border:1px solid rgba(243,230,200,.3);border-radius:99px;background:rgba(20,4,10,.42);color:var(--ivory,#f3e6c8);font:.92rem var(--font-body,inherit);transition:border-color .3s,box-shadow .3s,background .3s;-webkit-appearance:none;appearance:none}
.lw-h-sq::placeholder{color:rgba(214,198,162,.72)}
.lw-h-sq:focus{outline:none;border-color:var(--gold-soft,#f0d98f);box-shadow:0 0 0 3px rgba(240,217,143,.2);background:rgba(20,4,10,.6)}
.lw-h-sq::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.lw-h-sgo{all:unset;box-sizing:border-box;position:absolute;right:5px;top:5px;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--gold-soft,#f0d98f);color:#2d0a14;font-size:1rem;cursor:pointer;transition:transform .35s cubic-bezier(.2,.8,.2,1),background .3s}
.lw-h-sgo:hover,.lw-h-sgo:focus-visible{background:#fff;transform:translateX(2px)}
.lw-h-sgo:focus-visible{outline:2px solid var(--gold-soft,#f0d98f);outline-offset:2px}
.lw-h-bsp{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0;font-size:.78rem;color:var(--muted,#d6c6a2)}
.lw-h-bsp-k{letter-spacing:.16em;text-transform:uppercase;font-size:.66rem;opacity:.85}
.lw-h-bsp a{color:var(--gold-soft,#f0d98f);text-decoration:none;border-bottom:1px solid rgba(240,217,143,.3);transition:border-color .3s,color .3s}
.lw-h-bsp a:hover,.lw-h-bsp a:focus-visible{border-color:var(--gold-soft,#f0d98f);color:#fff}
@media (max-width:760px){.lw-h-suche{max-width:none}.lw-h-sq{height:46px;font-size:1rem}.lw-h-sgo{top:6px;right:6px}}
.lw-h-fuss{margin:22px auto 0;max-width:1080px;padding-top:14px;border-top:1px solid rgba(243,230,200,.12);font-size:.8rem;letter-spacing:.04em;color:var(--muted,#d6c6a2);text-align:center}
.lw-h-losung{color:var(--muted,#d6c6a2);text-decoration:none;border-bottom:1px solid rgba(214,198,162,.3);padding-bottom:1px;transition:color .3s,border-color .3s}
.lw-h-losung:hover,.lw-h-losung:focus-visible{color:var(--gold-soft,#f0d98f);border-color:var(--gold-soft,#f0d98f)}
.lw-h-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.lw-heute a:focus-visible{outline:2px solid var(--gold-soft,#f0d98f);outline-offset:3px;border-radius:3px}

/* ------------------------------------------------------------------ Schmale Bildschirme */
@media(max-width:900px){
  .lw-h-wrap{grid-template-columns:minmax(0,1fr)}
  .lw-h-uhr{font-size:1.5rem}
  .lw-h-jb{grid-template-columns:minmax(0,1fr)}
  .lw-h-liste{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lw-h-jb .lw-h-btn{justify-self:start}
}
@media(max-width:560px){
  .lw-h-rechts{grid-template-columns:minmax(0,1fr)}
  .lw-h-text{font-size:1.1rem}
  .lw-h-tuch{padding-top:24px}
}

/* Reduzierte Bewegung: ohne Rollo-Fahrt, nur sanftes Einblenden */
@media(prefers-reduced-motion:reduce){
  .lw-h-rollo{transform:none;opacity:0;transition:opacity .25s ease}
  .lw-heute.on .lw-h-rollo{opacity:1}
  .lw-h-vers{opacity:1;transform:none;transition:none}
  .lw-h-jahrleiste i{transition:none}
  .lw-h-lade .lw-h-text{animation:none}
  .lw-heute{transition-duration:0s}
}
@media print{.lw-heute,.lw-heute-btn{display:none!important}}

/* Platz in der Kopfleiste: zwischen 1021 und 1300 Pixeln die Menüpunkte etwas enger setzen, damit der neue Knopf das Menü nicht früher einklappen lässt */
@media(min-width:1021px) and (max-width:1300px){
  html.lw-heute-da .links a{padding-left:9px;padding-right:9px}
  html.lw-heute-da .links a::after{left:9px;right:9px}
  html.lw-heute-da .bar{gap:8px}
}
