/* selbsterleuchtung.de – main stylesheet
   Cosmic violet frame (header, hero, footer) around calm, light reading surfaces. */

/* ---------- fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/Literata-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/Literata-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/Literata-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/Literata-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/NunitoSans-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/NunitoSans-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/NunitoSans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Sacramento"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/Sacramento-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Sacramento"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/Sacramento-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  --night: #12081f;
  --violet-950: #1b0b33;
  --violet-900: #251247;
  --violet-800: #2e1a5c;
  --violet-600: #473c95;
  --violet-500: #5a3fb0;
  --violet-200: #ddd5f3;
  --violet-100: #ebe6f8;
  --violet-50: #f5f2fb;
  --plum: #360036;
  --gold: #f0b54a;
  --gold-soft: #fbeccd;
  --gold-ink: #7f4d00;
  --paper: #fbf8f3;
  --card: #ffffff;
  --ink: #231b33;
  --muted: #564c68;
  --line: #e4ddd2;
  --on-dark: #f5f0fd;
  --on-dark-muted: #cfc4ea;
  --link: #5a3fb0;
  --link-hover: #2e1a5c;
  --focus: #f0b54a;

  --font-text: "Literata", Georgia, "Times New Roman", serif;
  --font-ui: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Sacramento", "Segoe Script", cursive;

  --measure: 42rem;
  --wide: 76rem;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(35 27 51 / .06), 0 8px 24px rgb(35 27 51 / .07);
  --gutter: clamp(1rem, 4vw, 2rem);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3, h4 { font-family: var(--font-ui); line-height: 1.25; color: var(--violet-950); letter-spacing: -.01em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--night); padding: .6rem 1rem; border-radius: 8px;
  font-family: var(--font-ui); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(27 11 51 / .96);
  color: var(--on-dark);
  border-bottom: 1px solid rgb(240 181 74 / .25);
  font-family: var(--font-ui);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgb(27 11 51 / .85); backdrop-filter: blur(10px); }
}
.site-header__inner {
  width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.25rem;
}
.brand { display: flex; flex-direction: column; color: var(--on-dark); text-decoration: none; line-height: 1; padding-block: .4rem; }
.brand:hover { color: #fff; }
.brand__script { font-family: var(--font-script); font-size: 2.1rem; font-weight: 400; color: var(--gold); line-height: 1; margin: 0; }
.brand__sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: .2rem; }

.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.main-nav a {
  display: block; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: .55rem .75rem; border-radius: 8px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgb(255 255 255 / .09); color: #fff; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.main-nav__item { position: relative; }
.sub-nav {
  list-style: none; margin: 0; padding: .4rem; min-width: 15rem;
  background: var(--violet-900); border: 1px solid rgb(240 181 74 / .25); border-radius: 12px;
  box-shadow: 0 16px 40px rgb(0 0 0 / .35);
}
.sub-nav a { font-weight: 500; }

/* desktop: hover/focus dropdown */
@media (min-width: 62rem) {
  .sub-nav { position: absolute; left: 0; top: 100%; display: none; }
  .has-sub:hover > .sub-nav, .has-sub:focus-within > .sub-nav, .has-sub.is-open > .sub-nav { display: block; }
  .has-sub > a::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg); opacity: .7; }
}

/* mobile: JS turns the nav into a disclosure; without JS it simply stays visible */
.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: transparent; color: var(--on-dark); border: 1px solid rgb(255 255 255 / .3);
  border-radius: 10px; padding: .5rem .8rem; font: 700 .95rem var(--font-ui); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 61.99rem) {
  .site-header__inner { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; }
  .main-nav { width: 100%; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: block; padding-bottom: 1rem; max-height: calc(100vh - 4.5rem); overflow-y: auto; }
  .main-nav__list { flex-direction: column; }
  .main-nav a { padding: .75rem .5rem; font-size: 1.05rem; }
  .sub-nav { background: transparent; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
  .sub-toggle { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  color: var(--on-dark);
  background-color: var(--violet-950);
  background-image:
    linear-gradient(180deg, rgb(18 8 31 / .55) 0%, rgb(27 11 51 / .72) 55%, rgb(18 8 31 / .92) 100%),
    url("/media/2021/03/teal-patterned-going-away-facebook-cover-800.webp");
  background-size: cover; background-position: center 35%;
}
@media (min-width: 50rem) {
  .hero { background-image:
    linear-gradient(180deg, rgb(18 8 31 / .5) 0%, rgb(27 11 51 / .7) 55%, rgb(18 8 31 / .92) 100%),
    url("/media/2021/03/teal-patterned-going-away-facebook-cover.webp"); }
}
.hero a { color: var(--gold); }
.hero a:hover { color: #fff; }
.hero h1, .hero h2 { color: #fff; }
.hero .meta { color: var(--on-dark-muted); }

.hero--home { padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(3.5rem, 9vw, 6rem); text-align: center; }
.hero__title {
  font-family: var(--font-script); font-weight: 400; letter-spacing: 0;
  font-size: clamp(3rem, 10vw, 6.25rem); line-height: 1.05; margin: 0;
  color: #fff; text-shadow: 0 2px 30px rgb(90 63 176 / .6);
}
.hero__claim {
  font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .22em;
  font-size: clamp(.8rem, 2.2vw, 1rem); color: var(--gold); margin: 1.25rem 0 0; font-weight: 700;
}
.hero__lead { max-width: 38rem; margin: 1.5rem auto 0; color: var(--on-dark); font-size: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

.hero--compact { padding: 1.25rem 0 2.5rem; }
.page-title { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin: .75rem 0 .5rem; max-width: 48rem; }
.meta { font-family: var(--font-ui); font-size: .92rem; color: var(--muted); margin: .25rem 0 0; }

/* breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; font: 600 .85rem var(--font-ui); }
.breadcrumbs li { display: flex; align-items: center; gap: .25rem; color: var(--on-dark-muted); }
.breadcrumbs li + li::before { content: "›"; opacity: .7; }
.breadcrumbs a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--on-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: 700 1rem var(--font-ui); text-decoration: none; cursor: pointer;
  background: var(--gold); color: var(--night); border: 2px solid var(--gold);
  padding: .75rem 1.35rem; border-radius: 999px; min-height: 48px;
  transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #ffd07a; border-color: #ffd07a; color: var(--night); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgb(255 255 255 / .55); }
.btn--ghost:hover { background: rgb(255 255 255 / .1); color: #fff; border-color: #fff; }
.btn--small { padding: .45rem 1rem; font-size: .92rem; min-height: 40px; }
.prose .btn, .section .btn { color: var(--night); }
.prose .btn-row { margin: 1.5rem 0; }

/* ---------- article layout ---------- */
.layout-single { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.layout-single .prose { max-width: var(--measure); margin-inline: auto; }
.layout-article {
  display: grid; gap: 2rem; padding: clamp(2rem, 5vw, 3.5rem) 0 4rem;
  grid-template-columns: minmax(0, 1fr);
}
.layout-article .prose { max-width: var(--measure); min-width: 0; }
@media (min-width: 64rem) {
  .layout-article { grid-template-columns: 16.5rem minmax(0, var(--measure)); justify-content: center; gap: 3.5rem; }
  .layout-article__aside { position: sticky; top: 5.5rem; align-self: start; max-height: calc(100vh - 7rem); overflow-y: auto; padding-right: .25rem; }
}

/* table of contents */
.toc { font-family: var(--font-ui); font-size: .92rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); }
.toc__title { font-weight: 800; color: var(--violet-950); cursor: pointer; list-style-position: inside; }
.toc__list { margin: .6rem 0 0; padding-left: 1.2rem; line-height: 1.45; }
.toc__list li { margin: .35rem 0; }
.toc__list a { color: var(--muted); text-decoration: none; }
.toc__list a:hover, .toc__list a[aria-current="true"] { color: var(--link); text-decoration: underline; }
.toc__list a[aria-current="true"] { font-weight: 700; }
.aside-card { font-family: var(--font-ui); font-size: .92rem; margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius); background: var(--violet-50); border: 1px solid var(--violet-100); }

/* ---------- prose ---------- */
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 2.5em 0 .7em; }
.prose h3 { font-size: 1.3rem; margin: 2em 0 .5em; }
.prose h4 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--violet-600); }
.prose blockquote { margin: 1.5em 0; padding: .5em 0 .5em 1.25em; border-left: 3px solid var(--gold); font-style: italic; color: var(--muted); }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); margin-inline: auto; max-height: 36rem; width: auto; }
.prose figcaption { font: .9rem var(--font-ui); color: var(--muted); text-align: center; margin-top: .6rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.prose strong { font-weight: 700; color: var(--violet-950); }
.lead { font-size: 1.12em; color: var(--ink); }
.lead p:first-child::first-letter { font-family: var(--font-script); float: left; font-size: 4.2em; line-height: .8; padding: .08em .12em 0 0; color: var(--violet-600); }

.ad-label { font-family: var(--font-ui); font-size: .78em; font-weight: 600; color: var(--muted); white-space: nowrap; }
.hero .ad-label, .btn .ad-label { color: inherit; opacity: .85; }
.back-link { font-family: var(--font-ui); font-weight: 700; margin-top: 3rem !important; }

/* ---------- Genschlüssel page ---------- */
.gk-head { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 4vw, 2.5rem); align-items: center; margin-top: 1.25rem; }
.gk-head__hex { width: clamp(6.5rem, 18vw, 9.5rem); height: auto; background: #fff; border-radius: 18px; padding: .6rem; box-shadow: 0 10px 40px rgb(0 0 0 / .35); }
.gk-head__num { font: 800 clamp(4rem, 14vw, 7rem) / 1 var(--font-ui); color: var(--gold); }
.gk-head__text { flex: 1 1 20rem; min-width: 0; }
.gk-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 0; }
.gk-head__kicker { display: block; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.triad { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 0; font-family: var(--font-ui); }
.triad__item { background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .18); border-radius: 12px; padding: .4rem .8rem; }
.triad dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--on-dark-muted); }
.triad dd { margin: 0; font-weight: 700; color: #fff; }
.triad__item--siddhi { border-color: rgb(240 181 74 / .55); }
.triad__item--siddhi dd { color: var(--gold); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 0; padding: 0; font: 600 .85rem var(--font-ui); }
.chips li { border: 1px solid rgb(255 255 255 / .28); border-radius: 999px; padding: .15rem .7rem; color: var(--on-dark); }
.gk-head .meta { margin-top: .9rem; }

.sec { scroll-margin-top: 5.5rem; }
.prose .sec > h2:first-child { margin-top: 2.2em; }
.gk-archetyp > h2 { font-family: var(--font-ui); }
.gk-facts { margin: 2.5rem 0; }
.gk-facts dl { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 0; }
.gk-fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow); }
.gk-fact dt { font: 800 .8rem var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--violet-600); margin-bottom: .3rem; }
.gk-fact dd { margin: 0; font-size: .98rem; line-height: 1.6; }
.gk-fact dd p { margin: 0 0 .5em; }
.gk-fact dd p:last-child { margin-bottom: 0; }

.gk-level { position: relative; margin: 3rem 0; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 20px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.gk-level > h2:first-child { margin-top: 0 !important; }
.gk-schatten { background: linear-gradient(180deg, #f1edf6 0%, var(--card) 40%); border-top: 4px solid #5c4d73; }
.gk-gabe { background: linear-gradient(180deg, var(--violet-50) 0%, var(--card) 40%); border-top: 4px solid var(--violet-600); }
.gk-siddhi { background: linear-gradient(180deg, #fdf5e4 0%, var(--card) 40%); border-top: 4px solid var(--gold); }
.gk-books ul, .gk-books p a { }
.gk-level figure { margin: 1.5rem 0; }
.gk-level figure img, .gk-archetyp figure img { max-height: 22rem; }

.yt { margin: 2rem 0; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--violet-950); color: var(--on-dark); font-family: var(--font-ui); font-size: .95rem; }
.yt a { color: var(--gold); }
.yt__note { margin: 0 0 .8rem; }
.yt__actions { margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.yt iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; }

.ebook-cta { margin: 3.5rem 0 2rem; padding: 1.5rem; border-radius: 20px; color: var(--on-dark);
  background: radial-gradient(circle at 85% 15%, rgb(240 181 74 / .25), transparent 45%), var(--violet-900); }
.prose .ebook-cta__title { font-family: var(--font-script); font-weight: 400; font-size: 2.4rem; color: var(--gold); margin: 0 0 .25rem; }
.ebook-cta p { margin: .5rem 0; }

.pager { display: grid; gap: .75rem; grid-template-columns: 1fr; margin-top: 2.5rem; font-family: var(--font-ui); }
@media (min-width: 40rem) { .pager { grid-template-columns: 1fr auto 1fr; align-items: stretch; } }
.pager__link { display: block; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; font-weight: 700; line-height: 1.35; }
.pager__link:hover { border-color: var(--violet-500); }
.pager__link--next { text-align: right; }
.pager__link--all { display: flex; align-items: center; justify-content: center; text-align: center; }
.pager__dir { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }

/* ---------- home sections ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--tint { background: var(--violet-50); }
.section--dark { background: var(--violet-950); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a:not(.btn) { color: var(--gold); }
.section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 1rem; }
.section__script { font-family: var(--font-script); font-weight: 400; font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--violet-600); margin: 0; line-height: 1.1; }
.section--dark .section__script { color: var(--gold); }
.narrow { max-width: var(--measure); margin-inline: auto; }
.center { text-align: center; }

.ebooks { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 56rem) { .ebooks { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.ebooks__covers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ebooks__covers figure { margin: 0; }
.ebooks__covers img { border-radius: 10px; box-shadow: 0 20px 50px rgb(0 0 0 / .45); }
.ebooks__covers figcaption { font: .88rem var(--font-ui); color: var(--on-dark-muted); margin-top: .6rem; text-align: center; }
.price-note { font-family: var(--font-ui); background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .16); border-radius: var(--radius); padding: 1rem 1.2rem; }
.peek { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .75rem; margin-top: 2rem; }
.peek img { border-radius: 8px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; background: #fff; }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card__body > * { margin: 0; }
.card h3 { font-size: 1.35rem; }
.card--book { flex-direction: row; gap: 1rem; padding: 1rem; align-items: flex-start; }
.card--book img { width: 6.5rem; flex: none; border-radius: 6px; }
.card--book .card__body { padding: 0; }
.card--book h3 { font-size: 1.1rem; }

.teach { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.teach > div { border-top: 3px solid var(--gold); padding-top: 1rem; }
.teach h3 { margin: 0 0 .4rem; font-size: 1.25rem; }
.teach p { margin: 0; }

.about { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56rem) { .about { grid-template-columns: 17rem minmax(0, 1fr); } }
.about__logo { background: #fff; border-radius: 20px; padding: 1rem; box-shadow: var(--shadow); }
.affirm { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .6rem; }
.affirm li { font-style: italic; font-weight: 700; color: var(--violet-800); padding-left: 1.4rem; position: relative; }
.affirm li::before { content: "✦"; position: absolute; left: 0; color: var(--gold-ink); font-style: normal; }

/* ---------- Genschlüssel grid ---------- */
.gk-filter { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin: 0 0 1.5rem; font-family: var(--font-ui); }
.gk-filter label { display: grid; gap: .3rem; font-weight: 700; font-size: .9rem; color: var(--violet-950); }
.gk-filter input, .gk-filter select {
  font: 1rem var(--font-ui); padding: .65rem .8rem; border: 1px solid #b9aecb; border-radius: 10px; background: #fff; color: var(--ink); min-height: 44px; min-width: 14rem;
}
.gk-filter__count { font-size: .92rem; color: var(--muted); margin: 0 0 0 auto; }
.gk-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); }
.gk-tile a {
  display: grid; grid-template-columns: auto 1fr; gap: .15rem .9rem; align-items: center; height: 100%;
  padding: 1rem 1.1rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.gk-tile a:hover { border-color: var(--violet-500); }
@media (prefers-reduced-motion: no-preference) { .gk-tile a:hover { transform: translateY(-2px); } }
.gk-tile__num { grid-row: span 2; font: 800 2.2rem/1 var(--font-ui); color: var(--violet-600); min-width: 2.6rem; text-align: center; }
.gk-tile__name { font: 700 1.02rem/1.3 var(--font-ui); color: var(--violet-950); }
.gk-tile__triad { font: .84rem/1.4 var(--font-ui); color: var(--muted); }
.gk-tile[hidden] { display: none; }
.gk-empty { font-family: var(--font-ui); }

/* ---------- legal ---------- */
.review-note {
  font-family: var(--font-ui); font-size: .95rem; border: 2px dashed #b85c00; background: #fff6e8; color: #5a2d00;
  border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 2rem;
}
.review-note strong { color: #5a2d00; }
.legal address { font-style: normal; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark-muted); font-family: var(--font-ui); font-size: .95rem; padding: 3rem 0 2rem; border-top: 1px solid rgb(240 181 74 / .25); }
.site-footer__inner { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; display: grid; gap: 1.5rem; }
@media (min-width: 50rem) { .site-footer__inner { grid-template-columns: 1fr auto; } .site-footer__note, .site-footer__copy { grid-column: 1 / -1; } }
.site-footer p { margin: 0; }
.site-footer .brand__script { font-size: 2.2rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-nav a { color: var(--on-dark); }
.footer-nav a:hover { color: var(--gold); }
.site-footer__note { font-size: .85rem; max-width: 60rem; }
.site-footer__copy { font-size: .85rem; }

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .layout-article__aside, .pager, .ebook-cta, .yt, .skip-link { display: none !important; }
  .hero { background: none; color: #000; } .hero h1, .hero .meta { color: #000; }
  body { background: #fff; font-size: 11pt; }
  .layout-article { display: block; }
}

/* ---------- utilities ---------- */
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 3rem; }
.layout-grid { padding: 2.5rem 0 4rem; }

/* ---------- fixes: link colours inside dark areas must not override buttons ---------- */
.hero a.btn, .section--dark a.btn, .ebook-cta a.btn { color: var(--night); }
.hero a.btn--ghost { color: var(--on-dark); }
.hero a.btn--ghost:hover { color: #fff; }
.section--dark .ad-label, .ebook-cta .ad-label, .yt .ad-label, .price-note .ad-label { color: var(--on-dark-muted); }
.card__body { min-width: 0; }
.card h3, .card p { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 26rem) { .card--book { flex-direction: column; } .card--book img { width: 7rem; } }

/* ---------- lists: blog / categories / topics ---------- */
.hero__lead--left { margin-left: 0; text-align: left; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.post-card__link { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.post-card__link:hover { border-color: var(--violet-500); }
.post-card__img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card__body { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.3rem 1.4rem; }
.post-card__meta { font: 600 .82rem var(--font-ui); color: var(--muted); }
.post-card__title { font: 700 1.2rem/1.3 var(--font-ui); color: var(--violet-950); }
.post-card__desc { font-size: .95rem; color: var(--muted); }
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.topic-grid a { display: block; height: 100%; padding: 1.2rem 1.3rem; border-radius: 16px; background: var(--violet-950); color: var(--on-dark); text-decoration: none; }
.topic-grid a:hover { background: var(--violet-800); }
.topic-grid__label { display: block; font: 800 1.15rem var(--font-ui); color: var(--gold); margin-bottom: .3rem; }
.topic-grid__text { font: .92rem var(--font-ui); color: var(--on-dark-muted); }

/* ---------- motion (only when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* twinkling stars over the hero image */
  .hero::before, .hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-repeat: repeat;
  }
  .hero::before {
    background-image:
      radial-gradient(1.5px 1.5px at 12% 22%, #fff 55%, transparent 60%),
      radial-gradient(1px 1px at 33% 68%, #fff 55%, transparent 60%),
      radial-gradient(2px 2px at 57% 31%, #fff 55%, transparent 60%),
      radial-gradient(1px 1px at 74% 76%, #fff 55%, transparent 60%),
      radial-gradient(1.5px 1.5px at 88% 18%, #fff 55%, transparent 60%),
      radial-gradient(1px 1px at 45% 88%, #fff 55%, transparent 60%);
    background-size: 900px 700px;
    animation: twinkle 6s ease-in-out infinite;
  }
  .hero::after {
    background-image:
      radial-gradient(1px 1px at 22% 44%, #f0b54a 55%, transparent 60%),
      radial-gradient(1.5px 1.5px at 66% 58%, #fff 55%, transparent 60%),
      radial-gradient(1px 1px at 81% 36%, #fff 55%, transparent 60%),
      radial-gradient(2px 2px at 8% 84%, #fff 55%, transparent 60%),
      radial-gradient(1px 1px at 50% 12%, #fff 55%, transparent 60%);
    background-size: 1100px 800px;
    animation: twinkle 9s ease-in-out infinite 3s;
  }
  @keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }

  /* hero copy floats in */
  .hero--home .hero__title, .hero--home .hero__claim, .hero--home .hero__lead, .hero--home .hero__actions {
    animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
  }
  .hero--home .hero__claim { animation-delay: .15s; }
  .hero--home .hero__lead { animation-delay: .3s; }
  .hero--home .hero__actions { animation-delay: .45s; }
  .gk-head__hex, .gk-head__text { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .gk-head__text { animation-delay: .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  /* sections reveal on scroll (JS adds .reveal / .is-visible; without JS nothing is hidden) */
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  .btn { transition: background-color .15s, color .15s, transform .15s, box-shadow .15s; }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgb(240 181 74 / .35); }
  .card, .post-card__link, .pager__link, .topic-grid a { transition: transform .2s ease, border-color .2s, box-shadow .2s; }
  .card:hover, .post-card__link:hover, .pager__link:hover, .topic-grid a:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgb(35 27 51 / .12); }
  .gk-tile a { transition: border-color .2s, transform .2s, box-shadow .2s; }
  .gk-tile a:hover { box-shadow: 0 12px 28px rgb(71 60 149 / .18); }
  .gk-level { transition: box-shadow .3s; }
  .toc__list a { transition: color .15s; }
  .brand__script { transition: text-shadow .3s; }
  .brand:hover .brand__script { text-shadow: 0 0 18px rgb(240 181 74 / .6); }
}

/* ---------- domain-for-sale notice (toggle: site.domainNotice) ---------- */
.notice-bar { background: var(--gold-soft); color: #4a2f00; border-bottom: 1px solid #e6c98a; font: .95rem/1.5 var(--font-ui); padding: .6rem 0; text-align: center; }
.notice-bar strong { color: #3a2400; }
.notice-bar a { color: #4a2f00; font-weight: 700; white-space: nowrap; }
.notice-bar a:hover { color: #000; }

/* ---------- home hero: living night sky & sacred geometry ---------- */
.hero--home {
  overflow: hidden;
  padding-bottom: clamp(6.5rem, 15vw, 10rem);
  background-position: center 40%;
}
.hero--home .hero__content { position: relative; z-index: 2; }
.hero__sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem 1.1rem; border-radius: 999px;
  background: rgb(240 181 74 / .12); border: 1px solid rgb(240 181 74 / .35);
  font: 700 .82rem var(--font-ui); color: var(--gold);
  text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 1.25rem; backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgb(0 0 0 / .25);
}
.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
  animation: badgePulse 2s infinite ease-in-out;
}
@keyframes badgePulse { 0%, 100% { opacity: .5; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }

/* sacred geometry rotating rings */
.hero__sacred-ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  left: 50%; top: 48%; transform: translate(-50%, -50%);
}
.hero__sacred-ring--1 {
  width: clamp(280px, 46vw, 620px); height: clamp(280px, 46vw, 620px);
  border: 1px dashed rgb(240 181 74 / .26);
  box-shadow: inset 0 0 40px rgb(90 63 176 / .2), 0 0 30px rgb(240 181 74 / .1);
}
.hero__sacred-ring--2 {
  width: clamp(380px, 62vw, 840px); height: clamp(380px, 62vw, 840px);
  border: 1px solid rgb(221 213 243 / .14);
}

/* multi-layer vibrant auroras */
.hero__aurora { position: absolute; border-radius: 50%; filter: blur(65px); mix-blend-mode: screen; }
.hero__aurora--1 {
  width: 62vw; height: 62vw; max-width: 780px; max-height: 780px; left: -10vw; top: -18%;
  background: radial-gradient(circle, rgb(135 90 240 / .85) 0%, rgb(71 60 149 / .35) 45%, transparent 70%);
  opacity: .55;
}
.hero__aurora--2 {
  width: 58vw; height: 58vw; max-width: 720px; max-height: 720px; right: -12vw; bottom: -28%;
  background: radial-gradient(circle, rgb(240 181 74 / .55) 0%, rgb(180 84 195 / .35) 40%, transparent 70%);
  opacity: .55;
}
.hero__aurora--3 {
  width: 45vw; height: 45vw; max-width: 580px; max-height: 580px; left: 26%; top: 20%;
  background: radial-gradient(circle, rgb(245 105 180 / .35) 0%, rgb(90 63 176 / .22) 45%, transparent 70%);
  opacity: .45;
}

/* stars and constellations */
.hero__stars { position: absolute; inset: -20% -10%; background-repeat: repeat; }
.hero__stars--far {
  background-image:
    radial-gradient(1px 1px at 8% 15%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 22% 78%, #fff 60%, transparent 62%),
    radial-gradient(1px 1px at 37% 40%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 51% 88%, #fff 60%, transparent 62%),
    radial-gradient(1px 1px at 63% 26%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 79% 64%, #fff 60%, transparent 62%),
    radial-gradient(1px 1px at 92% 12%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 15% 52%, #fff 60%, transparent 62%);
  background-size: 620px 520px; opacity: .55;
}
.hero__stars--near {
  background-image:
    radial-gradient(2px 2px at 12% 32%, #fff 55%, transparent 60%), radial-gradient(1.5px 1.5px at 44% 12%, #fff 55%, transparent 60%),
    radial-gradient(2.5px 2.5px at 70% 70%, #fff 50%, transparent 58%), radial-gradient(1.5px 1.5px at 86% 38%, #ffe9b8 55%, transparent 60%),
    radial-gradient(2px 2px at 28% 84%, #fff 55%, transparent 60%), radial-gradient(1.5px 1.5px at 58% 52%, #fff 55%, transparent 60%);
  background-size: 980px 760px; opacity: .8;
}
.hero__stars--twinkle {
  background-image:
    radial-gradient(1.5px 1.5px at 18% 28%, #f0b54a 60%, transparent 65%),
    radial-gradient(2px 2px at 82% 48%, #fff 60%, transparent 65%),
    radial-gradient(1.5px 1.5px at 48% 76%, #fbeccd 60%, transparent 65%),
    radial-gradient(2px 2px at 90% 88%, #ddd5f3 60%, transparent 65%);
  background-size: 800px 650px; opacity: .7;
}

.hero__moon {
  position: absolute; right: 4%; top: 9%; width: clamp(56px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7e3 0%, #f1dfb0 45%, #d9c48f 100%);
  box-shadow: 0 0 45px 12px rgb(255 240 200 / .35), 0 0 120px 40px rgb(240 181 74 / .18);
  -webkit-mask: radial-gradient(circle at 68% 30%, transparent 0 58%, #000 60%);
  mask: radial-gradient(circle at 68% 30%, transparent 0 58%, #000 60%);
}

.hero__shoot { position: absolute; width: 140px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgb(255 255 255 / 0) 0%, #fff 60%, #fff 100%); transform: rotate(-28deg); }
.hero__shoot--1 { left: 55%; top: 18%; }
.hero__shoot--2 { left: 15%; top: 42%; width: 100px; }
.hero__shoot--3 { left: 68%; top: 32%; width: 120px; }

/* live canvas sky (drawn by main.js) */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero__divider { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 7vw, 90px); display: block; z-index: 1; }

/* audio trigger button in hero */
.btn--audio {
  background: rgb(90 63 176 / .4); color: var(--gold); border: 2px solid rgb(240 181 74 / .55);
  backdrop-filter: blur(8px);
}
.btn--audio:hover {
  background: rgb(90 63 176 / .7); border-color: var(--gold); color: #fff;
  box-shadow: 0 0 25px rgb(240 181 74 / .35);
}
.btn--audio.is-active {
  background: var(--gold); color: var(--night); border-color: #ffd07a;
  box-shadow: 0 0 30px rgb(240 181 74 / .55);
  animation: pulseAudio 2s infinite ease-in-out;
}
@keyframes pulseAudio {
  0%, 100% { box-shadow: 0 0 15px rgb(240 181 74 / .4); }
  50% { box-shadow: 0 0 32px rgb(240 181 74 / .75); }
}

/* ---------- Genschlüssel Tages-Impuls / Orakel ---------- */
.section--oracle {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: linear-gradient(180deg, var(--night) 0%, rgb(27 11 51 / .9) 50%, var(--violet-50) 100%);
  position: relative;
}
.oracle-card {
  max-width: 52rem; margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: 26px;
  background: linear-gradient(135deg, rgb(27 11 51 / .94), rgb(46 26 92 / .88));
  border: 1px solid rgb(240 181 74 / .35);
  box-shadow: 0 24px 60px rgb(18 8 31 / .45), 0 0 35px rgb(90 63 176 / .22);
  color: var(--on-dark); text-align: center;
  position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.oracle-card__badge {
  display: inline-block; font: 800 .8rem var(--font-ui);
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem;
}
.oracle-card__title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; margin: 0 0 .6rem; }
.oracle-card__subtitle { color: var(--on-dark-muted); max-width: 38rem; margin: 0 auto 2rem; font-size: 1.05rem; }

.oracle-display {
  display: grid; gap: 1.5rem; align-items: center;
  background: rgb(255 255 255 / .05); border: 1px solid rgb(240 181 74 / .25);
  border-radius: 20px; padding: 1.5rem; margin-bottom: 2rem;
}
@media (min-width: 44rem) {
  .oracle-display { grid-template-columns: 8rem 1fr; text-align: left; }
}
.oracle-display__num-col {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgb(240 181 74 / .12); border: 1px solid rgb(240 181 74 / .35);
  border-radius: 16px; padding: 1.1rem;
}
.oracle-display__tag { font: 800 .72rem var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.oracle-display__num { font: 800 3.8rem/1 var(--font-ui); color: var(--gold); text-shadow: 0 0 20px rgb(240 181 74 / .4); }
.oracle-display__meta { margin-bottom: 1rem; }
.oracle-display__name { font-size: 1.6rem; color: #fff; margin: 0 0 .25rem; }
.oracle-display__archetyp { font: 700 .88rem var(--font-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--on-dark-muted); }

.oracle-triad { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.oracle-triad__item { flex: 1 1 7.5rem; padding: .65rem .9rem; border-radius: 12px; font-family: var(--font-ui); text-align: center; }
.oracle-triad__item--schatten { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .16); color: var(--on-dark-muted); }
.oracle-triad__item--gabe { background: rgb(90 63 176 / .3); border: 1px solid rgb(120 84 220 / .45); color: #fff; }
.oracle-triad__item--siddhi { background: rgb(240 181 74 / .18); border: 1px solid rgb(240 181 74 / .6); color: var(--gold); box-shadow: 0 0 15px rgb(240 181 74 / .25); }
.oracle-triad__label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.oracle-triad__val { display: block; font-weight: 700; font-size: 1.05rem; margin-top: .15rem; }
.oracle-triad__step { color: var(--gold); opacity: .75; font-weight: 700; font-size: 1.2rem; }

.oracle-card__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.oracle-card.is-shuffling { animation: oracleShuffle .3s ease infinite; }
.oracle-card.has-rolled { animation: oracleGlow .8s ease; }
@keyframes oracleShuffle { 0% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(.99); filter: brightness(1.15); } 100% { transform: scale(1); filter: brightness(1); } }
@keyframes oracleGlow { 0% { box-shadow: 0 0 50px rgb(240 181 74 / .65); } 100% { box-shadow: 0 24px 60px rgb(18 8 31 / .45), 0 0 35px rgb(90 63 176 / .22); } }

/* ---------- E-Books 3D presentation ---------- */
.ebook-card-wrap { position: relative; perspective: 1000px; margin: 0; }
.ebook-card-wrap img {
  border-radius: 12px;
  box-shadow: -10px 20px 40px rgb(0 0 0 / .5), 0 0 25px rgb(90 63 176 / .25);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s cubic-bezier(.2, .8, .2, 1);
  transform: rotateY(-6deg) rotateX(2deg);
}
.ebook-card-wrap:hover img {
  transform: rotateY(0deg) rotateX(0deg) translateY(-8px) scale(1.02);
  box-shadow: 0 28px 60px rgb(0 0 0 / .6), 0 0 35px rgb(240 181 74 / .35);
}
.ebook-tag {
  position: absolute; top: -.6rem; right: -.6rem; z-index: 3;
  background: var(--gold); color: var(--night); font: 800 .75rem var(--font-ui);
  text-transform: uppercase; letter-spacing: .1em; padding: .3rem .75rem; border-radius: 999px;
  box-shadow: 0 4px 15px rgb(0 0 0 / .35);
}
.ebook-tag--new { background: linear-gradient(135deg, #ffd782, #f0b54a); }

/* ---------- home quick filter ---------- */
.home-filter { justify-content: center; margin-bottom: 2rem; }
.home-filter label { font-size: 1rem; }
.home-filter input { min-width: min(100%, 26rem); border: 2px solid var(--violet-200); }
.home-filter input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 15px rgb(240 181 74 / .35); }

/* ---------- floating ambient meditation player ---------- */
.ambient-player {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  max-width: min(calc(100vw - 2rem), 400px); width: 100%;
  font-family: var(--font-ui);
}
.ambient-player__inner {
  background: rgb(23 10 43 / .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgb(240 181 74 / .35); border-radius: 20px;
  box-shadow: 0 16px 45px rgb(0 0 0 / .5), 0 0 25px rgb(90 63 176 / .3);
  padding: .85rem 1.15rem; color: #fff;
  transition: border-color .3s, box-shadow .3s;
}
.ambient-player:hover .ambient-player__inner {
  border-color: rgb(240 181 74 / .6); box-shadow: 0 20px 50px rgb(0 0 0 / .6), 0 0 35px rgb(240 181 74 / .3);
}
.ambient-player__head { display: flex; align-items: center; gap: .75rem; }

/* prominent quick-play button */
.ambient-player__quick-play {
  width: 44px; height: 44px; min-width: 44px; border-radius: 50%;
  background: var(--gold); color: var(--night); border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; cursor: pointer; flex: none;
  transition: transform .15s, background-color .15s, box-shadow .15s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px rgb(240 181 74 / .4);
}
.ambient-player__quick-play:hover { background: #ffd07a; transform: scale(1.06); }
.ambient-player__quick-play:active { transform: scale(.93); }
.ambient-player.is-playing .ambient-player__quick-play {
  box-shadow: 0 0 22px rgb(240 181 74 / .65);
  animation: quickPulse 2.2s infinite ease-in-out;
}
@keyframes quickPulse {
  0%, 100% { box-shadow: 0 0 12px rgb(240 181 74 / .45); }
  50% { box-shadow: 0 0 28px rgb(240 181 74 / .8); }
}

.ambient-player__info-btn {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .65rem;
  cursor: pointer; padding: .25rem .5rem; border-radius: 12px;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s;
}
.ambient-player__info-btn:hover { background: rgb(255 255 255 / .08); }
.ambient-player__info-btn:active { background: rgb(255 255 255 / .15); }

.ambient-visualizer { display: flex; align-items: flex-end; gap: 3px; height: 22px; width: 22px; flex: none; }
.ambient-visualizer__bar { width: 3px; height: 5px; background: var(--gold); border-radius: 2px; transition: height .2s; }
.ambient-player.is-playing .ambient-visualizer__bar:nth-child(1) { animation: soundwave .8s ease-in-out infinite alternate; }
.ambient-player.is-playing .ambient-visualizer__bar:nth-child(2) { animation: soundwave 1.1s ease-in-out infinite alternate .2s; }
.ambient-player.is-playing .ambient-visualizer__bar:nth-child(3) { animation: soundwave .9s ease-in-out infinite alternate .4s; }
.ambient-player.is-playing .ambient-visualizer__bar:nth-child(4) { animation: soundwave 1.2s ease-in-out infinite alternate .1s; }
@keyframes soundwave { 0% { height: 4px; } 100% { height: 21px; } }

.ambient-player__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ambient-player__badge { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-weight: 700; }
.ambient-player__title { font-size: .92rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }

.ambient-player__toggle-panel {
  background: transparent; border: 0; color: var(--on-dark-muted); cursor: pointer; padding: .5rem;
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; min-width: 40px; min-height: 40px;
}
.ambient-player__toggle-panel:hover { color: #fff; background: rgb(255 255 255 / .1); }
.ambient-player__toggle-panel:active { transform: scale(.95); }
.ambient-player__chevron {
  display: inline-block; width: .5rem; height: .5rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .25s; margin-bottom: 2px;
}
.ambient-player.is-expanded .ambient-player__chevron { transform: rotate(-135deg); margin-top: 4px; }

.ambient-player__controls {
  display: none; flex-direction: column; gap: .75rem;
  margin-top: .85rem; padding-top: .85rem; border-top: 1px solid rgb(255 255 255 / .12);
}
.ambient-player.is-expanded .ambient-player__controls { display: flex; }

.ambient-player__buttons { display: flex; gap: .6rem; align-items: center; }
.ambient-player__play-btn {
  background: var(--gold); color: var(--night); border: 0; border-radius: 999px;
  padding: .55rem 1.15rem; font: 700 .9rem var(--font-ui); cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem; min-height: 42px;
  transition: background-color .15s, transform .15s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ambient-player__play-btn:hover { background: #ffd07a; transform: scale(1.03); }
.ambient-player__play-btn:active { transform: scale(.95); }
.ambient-player__select-wrap { flex: 1; min-width: 0; }
.ambient-player__select {
  width: 100%; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2);
  border-radius: 8px; color: #fff; font: .84rem var(--font-ui); padding: .55rem .6rem;
  cursor: pointer; outline: none; min-height: 42px;
}
.ambient-player__select option { background: var(--violet-950); color: #fff; }
.ambient-player__volume { display: flex; align-items: center; gap: .6rem; }
.ambient-player__mute-btn {
  background: transparent; border: 0; cursor: pointer; color: var(--gold); font-size: 1.25rem;
  padding: .4rem; min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
}
.ambient-player__slider { flex: 1; accent-color: var(--gold); height: 8px; cursor: pointer; }

/* ---------- button shimmer effect ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgb(255 255 255 / .35) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform .6s ease; pointer-events: none;
}
.btn:hover::after { transform: translateX(100%); }

/* ---------- motion animations (only when allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__sacred-ring--1 { animation: sacredRotate1 65s linear infinite; }
  .hero__sacred-ring--2 { animation: sacredRotate2 90s linear infinite reverse; }
  @keyframes sacredRotate1 { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
  @keyframes sacredRotate2 { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

  .hero__aurora--1 { animation: aurora1 22s ease-in-out infinite alternate; }
  .hero__aurora--2 { animation: aurora2 26s ease-in-out infinite alternate; }
  .hero__aurora--3 { animation: aurora3 18s ease-in-out infinite alternate; }
  @keyframes aurora1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vw, 6vh) scale(1.15); } }
  @keyframes aurora2 { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-7vw, -8vh) scale(.95); } }
  @keyframes aurora3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(5vw, -6vh) scale(1.2); } }

  .hero__stars--far { animation: drift 120s linear infinite; }
  .hero__stars--near { animation: drift 70s linear infinite reverse, twinkle 7s ease-in-out infinite; }
  .hero__stars--twinkle { animation: twinkle 5s ease-in-out infinite alternate 1.5s; }
  @keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-120px, 60px, 0); } }

  .hero__moon { animation: moon 12s ease-in-out infinite alternate; translate: calc(var(--par-x, 0) * -30px) calc(var(--par-y, 0) * -20px); }
  .hero__aurora { translate: calc(var(--par-x, 0) * 60px) calc(var(--par-y, 0) * 40px); }
  .hero__sacred-ring { translate: calc(var(--par-x, 0) * -18px) calc(var(--par-y, 0) * -12px); }
  .hero--home .hero__content { translate: calc(var(--par-x, 0) * -8px) calc(var(--par-y, 0) * -6px); }
  @keyframes moon { from { transform: translateY(0); } to { transform: translateY(-10px); } }

  .hero__shoot--1 { animation: shoot 9s ease-in 3s infinite; }
  .hero__shoot--2 { animation: shoot 13s ease-in 7.5s infinite; }
  .hero__shoot--3 { animation: shoot 16s ease-in 11s infinite; }
  @keyframes shoot {
    0% { opacity: 0; transform: translate(0, 0) rotate(-28deg); }
    3% { opacity: 1; }
    12% { opacity: 0; transform: translate(-420px, 220px) rotate(-28deg); }
    100% { opacity: 0; transform: translate(-420px, 220px) rotate(-28deg); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__shoot { display: none; }
  .hero__sacred-ring { animation: none !important; }
}

/* ---------- mobile touch optimization ---------- */
@media (max-width: 48rem) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
    margin: 1.75rem auto 0;
    gap: .85rem;
  }
  .hero__actions .btn {
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem;
    padding: .85rem 1.4rem;
    touch-action: manipulation;
  }
  .btn--audio {
    order: -1;
    min-height: 54px;
    font-weight: 800;
    font-size: 1.08rem;
    box-shadow: 0 0 24px rgb(240 181 74 / .35);
  }
  .hero__moon { right: 6%; top: 5%; width: 48px; }
  .hero__aurora { filter: blur(40px); }
  .ambient-player {
    bottom: max(.75rem, env(safe-area-inset-bottom, .75rem));
    right: max(.65rem, env(safe-area-inset-right, .65rem));
    left: max(.65rem, env(safe-area-inset-left, .65rem));
    max-width: none;
    width: auto;
    z-index: 1000;
  }
  .ambient-player__inner {
    padding: .65rem .85rem;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgb(0 0 0 / .65), 0 0 25px rgb(240 181 74 / .25);
  }
  .ambient-player__quick-play {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1.3rem;
  }
  .ambient-player__title { font-size: .88rem; }
}

