/* Licht und Wort – feiner Goldglanz und Markierung beim Darüberfahren (neu in Version 1.3.0)
 * Nur für Geräte mit Maus (hover:hover, pointer:fine). Auf Handy und Tablet ändert sich nichts.
 * Alles liegt ÜBER dem Theme und überschreibt keinen vorhandenen Effekt (Federkacheln, Knöpfe, Bücher bleiben wie sie sind). */

body.lw-glanz{
  --lw-hl:rgba(240,217,143,.10);          /* Markierung auf dunklem Grund */
  --lw-hl-bar:rgba(240,217,143,.85);
  --lw-spur:255,226,150;                  /* Farbe des Lichts (R,G,B) */
}
body.lw-glanz .paper{
  --lw-hl:rgba(176,124,32,.115);          /* Markierung auf hellem Papier */
  --lw-hl-bar:rgba(165,112,24,.9);
}

@media (hover:hover) and (pointer:fine){

  /* ---------------------------------------------------------------- 1. Markierung wichtiger Textbereiche
   * A) Absätze, Zitate, Frage-Antwort-Zeilen: zarter Goldton mit Randlinie links. Der Kasten ragt links/rechts etwas über den Text hinaus
   *    (Innenabstand und gleich großer negativer Außenabstand) – der Text selbst bleibt exakt an seinem Platz.
   * B) Listenpunkte und Texte in Bändern: nur zarter Goldton. */
  body.lw-glanz .essay > p,
  body.lw-glanz .prose > p,
  body.lw-glanz .step-box p,
  body.lw-glanz details.wp-block-details > p,
  body.lw-glanz p.ref,
  body.lw-glanz p.pull,
  body.lw-glanz .essay blockquote.pull{
    padding-inline:.7rem;margin-inline:-.7rem;
    transition:background-color .45s ease,box-shadow .45s ease;
  }
  body.lw-glanz .kvrow,
  body.lw-glanz .essay li,
  body.lw-glanz .lw-schreib-p,
  body.lw-glanz .lw-herz-p{transition:background-color .45s ease;border-radius:4px}

  body.lw-glanz .essay > p:hover,
  body.lw-glanz .prose > p:hover,
  body.lw-glanz .step-box p:hover,
  body.lw-glanz details.wp-block-details > p:hover,
  body.lw-glanz p.ref:hover,
  body.lw-glanz p.pull:hover,
  body.lw-glanz .essay blockquote.pull:hover{
    background-color:var(--lw-hl);
    box-shadow:inset 3px 0 0 var(--lw-hl-bar);
  }
  body.lw-glanz .kvrow:hover,
  body.lw-glanz .essay li:hover,
  body.lw-glanz .lw-schreib-p:hover,
  body.lw-glanz .lw-herz-p:hover{background-color:var(--lw-hl)}
  /* Aufklapp-Schritte (Gottes Plan): Text liegt in einem beschnittenen Kasten – dort nur zarter Goldton, ohne Überstand */
  body.lw-glanz .steps .rin p{padding-inline:0;margin-inline:0;border-radius:4px;transition:background-color .45s ease}
  body.lw-glanz .steps .rin p:hover{background-color:var(--lw-hl);box-shadow:none}

  /* Überschriften in Texten: feine Goldlinie wächst darunter */
  body.lw-glanz .essay h2,
  body.lw-glanz .prose h2{
    background-image:linear-gradient(90deg,var(--lw-hl-bar),rgba(255,236,170,.0));
    background-repeat:no-repeat;background-position:0 100%;background-size:0 1px;
    padding-bottom:.18em;transition:background-size .7s cubic-bezier(.2,.8,.2,1);
  }
  body.lw-glanz .essay h2:hover,
  body.lw-glanz .prose h2:hover{background-size:min(100%,7em) 1px}

  /* ---------------------------------------------------------------- 2. Links im Text: sanftes Goldleuchten */
  body.lw-glanz .essay a:not(.btn):not(.wp-block-button__link),
  body.lw-glanz .prose a:not(.btn):not(.wp-block-button__link),
  body.lw-glanz .lw-f-l,
  body.lw-glanz .lw-weiter a:not(.card){
    transition:text-shadow .4s ease,color .3s ease,text-decoration-color .3s ease;
  }
  body.lw-glanz .essay a:not(.btn):not(.wp-block-button__link):hover,
  body.lw-glanz .prose a:not(.btn):not(.wp-block-button__link):hover,
  body.lw-glanz .lw-f-l:hover,
  body.lw-glanz .lw-weiter a:not(.card):hover{
    text-shadow:0 0 14px rgba(var(--lw-spur),.55),0 0 2px rgba(var(--lw-spur),.45);
    text-decoration-color:var(--lw-hl-bar);
  }

  /* ---------------------------------------------------------------- 3. Lichtspur: warmes Licht folgt der Maus – nur innerhalb der Karte */
  .lw-spur{position:fixed;inset:0;z-index:40;pointer-events:none;opacity:0;transition:opacity .38s ease;
    background:radial-gradient(260px circle at var(--lw-x,50%) var(--lw-y,50%),rgba(var(--lw-spur),.24),rgba(var(--lw-spur),.09) 46%,rgba(var(--lw-spur),0) 74%);
    clip-path:inset(0 0 100% 0)}
  .lw-spur.an{opacity:1}
}

@media (prefers-reduced-motion:reduce){
  body.lw-glanz .essay h2{transition:none}
  .lw-spur{display:none}
}
