/* Licht und Wort – Feinschliff (neu in Version 1.3.0)
   Alles nur zusätzlich: Lichtschein in den Seitenköpfen, gleichmäßige Kachelreihen, Einladung zum Schreiben,
   „Gottes Zusage für Dich“-Fenster. Das Theme bleibt unverändert. */

/* ---------- Knopf mit funkelndem Lichtschein ---------- */
.lw-funkel{position:relative;display:inline-block;vertical-align:middle}
.lw-funkel>.btn{position:relative}
.lw-funkel>.btn::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;
  background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.62) 50%,transparent 62%);background-size:260% 100%;background-position:140% 0}
.lw-funkel>i{position:absolute;display:block;width:12px;height:12px;pointer-events:none;opacity:0;z-index:3;
  background:radial-gradient(circle,#fff 0,#fff2c4 35%,#f0d98f 70%);
  -webkit-clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%)}
.lw-funkel>i:nth-of-type(1){left:6%;top:-9px;width:11px;height:11px}
.lw-funkel>i:nth-of-type(2){left:27%;bottom:-10px;width:9px;height:9px}
.lw-funkel>i:nth-of-type(3){left:50%;top:-12px;width:14px;height:14px}
.lw-funkel>i:nth-of-type(4){left:71%;bottom:-11px;width:12px;height:12px}
.lw-funkel>i:nth-of-type(5){right:5%;top:-8px;width:10px;height:10px}
.lw-funkel>i:nth-of-type(6){right:-9px;top:46%;width:9px;height:9px}
.lw-funkel>.btn{transition:transform .3s ease-out,color .4s,box-shadow .5s}
.lw-funkel:hover>.btn,.lw-funkel:focus-within>.btn{box-shadow:0 0 0 4px rgba(240,217,143,.22),0 14px 38px -8px rgba(240,217,143,.55)}
@media (prefers-reduced-motion:no-preference){
  .lw-funkel>.btn::after{animation:lw-streif 7s ease-in-out 1.8s infinite}
  .lw-funkel:hover>.btn::after,.lw-funkel:focus-within>.btn::after{animation:lw-streif 1.1s ease-out 1}
  .lw-funkel:hover>i,.lw-funkel:focus-within>i{animation:lw-stern 1.7s ease-in-out infinite}
  .lw-funkel:hover>i:nth-of-type(2),.lw-funkel:focus-within>i:nth-of-type(2){animation-delay:.28s}
  .lw-funkel:hover>i:nth-of-type(3),.lw-funkel:focus-within>i:nth-of-type(3){animation-delay:.56s}
  .lw-funkel:hover>i:nth-of-type(4),.lw-funkel:focus-within>i:nth-of-type(4){animation-delay:.84s}
  .lw-funkel:hover>i:nth-of-type(5),.lw-funkel:focus-within>i:nth-of-type(5){animation-delay:1.1s}
  .lw-funkel:hover>i:nth-of-type(6),.lw-funkel:focus-within>i:nth-of-type(6){animation-delay:1.35s}
}
@media (prefers-reduced-motion:reduce){
  .lw-funkel:hover>i,.lw-funkel:focus-within>i{opacity:.9}
}
@keyframes lw-streif{0%{background-position:140% 0}60%,100%{background-position:-40% 0}}
@keyframes lw-stern{0%,100%{opacity:0;transform:scale(.2) rotate(0deg)}45%{opacity:1;transform:scale(1.15) rotate(70deg)}70%{opacity:.8;transform:scale(.8) rotate(110deg)}}

/* ---------- Lichtschein in den Seitenköpfen: gleicht die leere rechte Seite edel aus ---------- */
body.lw-ausgleich .phead::after{content:"";position:absolute;z-index:1;pointer-events:none;
  right:max(-6%,calc(50% - 780px));top:54%;width:min(54vw,660px);aspect-ratio:1;border-radius:50%;transform:translateY(-50%);
  background:
    radial-gradient(circle at 50% 50%,rgba(240,217,143,.26) 0,rgba(240,217,143,.10) 20%,transparent 52%),
    repeating-radial-gradient(circle at 50% 50%,transparent 0 70px,rgba(240,217,143,.055) 70px 71px);
  -webkit-mask-image:radial-gradient(circle at 50% 50%,#000 0,#000 34%,transparent 71%);mask-image:radial-gradient(circle at 50% 50%,#000 0,#000 34%,transparent 71%)}
@media (prefers-reduced-motion:no-preference){
  body.lw-ausgleich .phead::after{animation:lw-schein 12s ease-in-out infinite}
}
@keyframes lw-schein{0%,100%{opacity:.8;transform:translateY(-50%) scale(1)}50%{opacity:1;transform:translateY(-50%) scale(1.045)}}
@media (max-width:760px){body.lw-ausgleich .phead::after{right:-30%;width:90vw;opacity:.55}}
/* Jahresbibel: Seitenkopf bündig mit dem Leser */
body.lw-ausgleich:has(.lw-jb) .phead .wrap{max-width:1120px}
body.lw-ausgleich:has(.lw-ta) .phead .wrap{max-width:1120px}

/* ---------- Gleichmäßige Kachelreihen ---------- */
/* Privat-Seite (ab 1.7.1): Kacheln bleiben handlich, auch wenn es nur zwei oder drei sind (es kommen weitere Bücher dazu); die Schrift darin ist etwas größer */
body.lw-ausgleich #p-extras .kacheln{grid-template-columns:repeat(auto-fill,minmax(min(100%,208px),232px));justify-content:start;gap:18px}
body.lw-ausgleich #p-extras .kachel{padding:20px;justify-content:flex-start;gap:12px}
body.lw-ausgleich #p-extras .kachel .kfoot{margin-top:auto}
body.lw-ausgleich #p-extras .kachel h3{font-size:clamp(1.5rem,2.2vw,1.7rem);line-height:1.1}
body.lw-ausgleich #p-extras .kachel .kst{font-size:.74rem;line-height:1.5}
body.lw-ausgleich #p-extras .kachel .go{font-size:1rem}
@media (max-width:480px){
  body.lw-ausgleich #p-extras .kacheln{grid-template-columns:minmax(0,1fr)}
  body.lw-ausgleich #p-extras .kachel{aspect-ratio:auto;min-height:168px}
}
/* 1.11.0 (a11s): Kacheln wachsen mit ihrem Inhalt – nichts wird mehr abgeschnitten, „Öffnen →“ steht immer ganz unten mit
   gleichem Abstand; alle Kacheln einer Seite sind gleich hoch (so hoch wie die längste), Schrift eine Spur kleiner */
body.lw-ausgleich #p-extras .kacheln{grid-auto-rows:1fr}
body.lw-ausgleich #p-extras .kachel{aspect-ratio:auto;min-height:216px;padding:20px 20px 18px;gap:10px}
body.lw-ausgleich #p-extras .kachel h3{font-size:clamp(1.35rem,2vw,1.55rem);line-height:1.12;display:block;-webkit-line-clamp:unset;overflow:visible}
body.lw-ausgleich #p-extras .kachel .kst{display:block;margin-top:6px;font-size:.7rem;line-height:1.5;letter-spacing:.13em}
body.lw-ausgleich #p-extras .kachel .kfoot{padding-top:4px}
@media (max-width:480px){
  body.lw-ausgleich #p-extras .kachel{min-height:168px}
}
body.lw-ausgleich .cards:has(>:nth-child(6):last-child),body.lw-ausgleich .cards:has(>:nth-child(5):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){body.lw-ausgleich .cards:has(>:nth-child(6):last-child),body.lw-ausgleich .cards:has(>:nth-child(5):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){body.lw-ausgleich .cards:has(>:nth-child(6):last-child),body.lw-ausgleich .cards:has(>:nth-child(5):last-child){grid-template-columns:minmax(0,1fr)}}
/* Verse in Kacheln: Fundstelle immer unten */
body.lw-ausgleich .vgrid .vitem{grid-template-rows:1fr auto;align-content:stretch}

/* ---------- Kontaktseite: warme Karte in der linken Spalte ---------- */
.lw-herz{position:relative;overflow:hidden;margin-top:30px;padding:26px 28px 30px;border:1px solid rgba(240,217,143,.34);border-radius:10px;display:grid;gap:10px;justify-items:start;
  background:linear-gradient(160deg,rgba(240,217,143,.11),rgba(240,217,143,.025) 58%),rgba(30,6,14,.3)}
.lw-herz>*{position:relative;z-index:1}
.lw-herz-licht{position:absolute!important;z-index:0!important;right:-70px;top:-70px;width:230px;height:230px;border-radius:50%;pointer-events:none;background:radial-gradient(circle,rgba(240,217,143,.30),rgba(240,217,143,.08) 45%,transparent 68%)}
@media (prefers-reduced-motion:no-preference){.lw-herz-licht{animation:lw-schein-klein 9s ease-in-out infinite}}
@keyframes lw-schein-klein{0%,100%{transform:scale(1);opacity:.8}50%{transform:scale(1.14);opacity:1}}
.lw-herz-k{margin:0;font-size:.72rem;letter-spacing:.26em;text-transform:uppercase;color:var(--gold-soft,#f0d98f)}
.lw-herz-t{margin:0;font-family:var(--font-display,serif);font-size:clamp(1.55rem,3vw,1.95rem);line-height:1.15;color:#fbefcf}
.lw-herz-p{margin:0 0 8px;line-height:1.65;color:var(--ivory,#f3e6c8);max-width:48ch}
.kform.lw-puls{animation:lw-puls 1.6s ease-out 1}
@keyframes lw-puls{0%{box-shadow:0 0 0 0 rgba(240,217,143,.65)}100%{box-shadow:0 0 0 26px rgba(240,217,143,0)}}
@media (min-width:861px){.lw-herz .lw-funkel{display:none}.lw-herz-p{margin-bottom:0}}

/* ---------- Band „Fragen oder Sorgen? Schreibe uns jederzeit“ am Ende der Seiten ---------- */
.lw-schreib{position:relative;overflow:hidden;padding:clamp(54px,8vw,92px) 0;text-align:center;border-top:1px solid var(--line,rgba(243,230,200,.16));
  background:radial-gradient(760px 300px at 50% 0,rgba(240,217,143,.13),transparent 70%),linear-gradient(180deg,rgba(30,6,13,.55),rgba(45,10,20,.92))}
.lw-schreib-in{position:relative;z-index:1;display:grid;gap:14px;justify-items:center;max-width:760px}
.lw-schreib-k{margin:0;font-size:.74rem;letter-spacing:.3em;text-transform:uppercase;color:var(--gold-soft,#f0d98f)}
.lw-schreib h2{margin:0;font-size:clamp(1.8rem,4.6vw,2.7rem);line-height:1.1;text-wrap:balance}
.lw-schreib-p{margin:0 0 10px;max-width:56ch;line-height:1.7;color:rgba(243,230,200,.9);font-size:1.05rem}
.lw-schreib-licht{position:absolute;left:50%;top:-140px;width:520px;height:520px;margin-left:-260px;border-radius:50%;pointer-events:none;
  background:repeating-radial-gradient(circle at 50% 50%,transparent 0 46px,rgba(240,217,143,.07) 46px 47px);
  -webkit-mask-image:radial-gradient(circle,#000 0,transparent 68%);mask-image:radial-gradient(circle,#000 0,transparent 68%)}
@media (prefers-reduced-motion:no-preference){
  .lw-schreib>.wrap>*{opacity:0;transform:translateY(18px);transition:opacity .9s ease,transform 1s cubic-bezier(.2,.8,.2,1)}
  .lw-schreib.lw-ein>.wrap>*{opacity:1;transform:none}
  .lw-schreib.lw-ein>.wrap>*:nth-child(3){transition-delay:.08s}
  .lw-schreib.lw-ein>.wrap>*:nth-child(4){transition-delay:.16s}
  .lw-schreib.lw-ein>.wrap>*:nth-child(5){transition-delay:.26s}
  .lw-schreib.lw-ein>.wrap>*:nth-child(6){transition-delay:.36s}
}

/* ---------- „Gottes Zusage für Dich“ rechts bei „Deine Chance“ ---------- */
.lw-fgruppe{display:grid;gap:22px;align-content:start}
.lw-fgruppe[hidden]{display:none}
.lw-f{position:relative;overflow:hidden;margin:0;padding:20px 24px 20px 26px;border:1px solid rgba(240,217,143,.26);border-radius:10px;display:grid;gap:8px;justify-items:start;
  background:linear-gradient(155deg,rgba(240,217,143,.10),rgba(240,217,143,.02) 62%),rgba(26,5,12,.34);
  transition:border-color .4s,box-shadow .6s,transform .9s var(--lw-feder,cubic-bezier(.34,1.56,.64,1))}
.lw-f::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,transparent,var(--gold,#c9a24d) 30%,var(--gold-soft,#f0d98f) 50%,var(--gold,#c9a24d) 70%,transparent);opacity:.85}
.lw-f:hover{transform:translateY(-4px);border-color:rgba(240,217,143,.6);box-shadow:0 26px 48px -28px rgba(0,0,0,.85),0 0 0 1px rgba(240,217,143,.14)}
.lw-f[hidden]{display:none}
.lw-f-k{margin:0;font-size:.7rem;letter-spacing:.26em;text-transform:uppercase;color:var(--gold-soft,#f0d98f)}
.lw-f-t{margin:0;font-family:var(--font-display,serif);font-style:italic;font-size:clamp(1.2rem,2vw,1.4rem);line-height:1.32;color:#fbefcf}
.lw-f-r{margin:0;font-size:.76rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold-soft,#f0d98f)}
.lw-f-l{font-size:.9rem;color:var(--gold-soft,#f0d98f);text-underline-offset:4px;text-decoration-color:rgba(240,217,143,.4);transition:text-decoration-color .3s}
.lw-f-l:hover,.lw-f-l:focus-visible{text-decoration-color:var(--gold-soft,#f0d98f)}
.lw-f-h{margin:0;font-family:var(--font-display,serif);font-size:clamp(1.4rem,2.4vw,1.7rem);line-height:1.15;color:#fbefcf}
.lw-f-p{margin:0;line-height:1.6;color:var(--ivory,#f3e6c8);opacity:.92;font-size:.98rem}
.lw-f-liste{margin:2px 0 4px;padding:0;list-style:none;display:grid;gap:10px}
.lw-f-liste li{position:relative;padding-left:20px;line-height:1.5;font-size:.94rem;color:var(--ivory,#f3e6c8)}
.lw-f-liste li::before{content:"";position:absolute;left:0;top:.6em;width:7px;height:7px;border:1px solid var(--gold-soft,#f0d98f);transform:rotate(45deg)}
.lw-f-liste b{color:#fbefcf;font-weight:600}
.lw-f.kontakt{background:linear-gradient(155deg,rgba(240,217,143,.16),rgba(240,217,143,.04) 62%),rgba(26,5,12,.4);border-color:rgba(240,217,143,.4)}
@media (prefers-reduced-motion:no-preference){
  .lw-f{opacity:0;transform:translateY(24px) scale(.985);transition:opacity .9s ease,border-color .4s,box-shadow .6s,transform 1.1s var(--lw-feder,cubic-bezier(.34,1.56,.64,1))}
  .lw-f.ein{opacity:1;transform:none}
  .lw-f.ein:hover{transform:translateY(-4px)}
}

/* ---------- Druck: Zierrat weglassen ---------- */
@media print{.lw-schreib,.lw-fgruppe,.lw-herz-licht,body.lw-ausgleich .phead::after{display:none!important}}
