/* ==========================================================
   Christliche Bücherstube Opladen
   Licht · Weiß · Gold
   ========================================================== */

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("../fonts/mulish.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}

:root {
  --white: #ffffff;
  --ivory: #fdfbf6;
  --paper: #f7f2e7;
  --linen: #efe7d6;
  --gold: #b08a3e;
  --gold-deep: #8c6a28;
  --gold-soft: #dcc48f;
  --gold-glow: rgba(232, 196, 120, .55);
  --ink: #2c2823;
  --text: #4a443b;
  --muted: #7d7466;
  --line: rgba(176, 138, 62, .28);

  --serif: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --radius: 4px;
  --shadow: 0 30px 60px -30px rgba(90, 70, 30, .28), 0 10px 24px -14px rgba(90, 70, 30, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font: 400 1.0625rem/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.5rem; }
h1 em, h2 em { font-style: italic; color: var(--gold-deep); font-weight: 400; }
p { margin: 0 0 1.1em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.center { text-align: center; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.eyebrow {
  font: 600 .74rem/1 var(--sans);
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.3rem;
  display: inline-flex; align-items: center; gap: .9em;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.9em;
  font: 600 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: #fff; text-decoration: none;
  background: linear-gradient(180deg, #c29d52, var(--gold-deep));
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  box-shadow: 0 10px 24px -12px rgba(140, 106, 40, .7), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(140, 106, 40, .75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { background: rgba(255,255,255,.6); color: var(--gold-deep); border-color: var(--gold-soft); box-shadow: none; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: var(--gold); box-shadow: 0 10px 24px -14px rgba(140, 106, 40, .5); }
.btn-small { padding: .8em 1.4em; font-size: .72rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 246, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, box-shadow .4s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(90,70,30,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 46px; height: 37px; flex: none; }
.mark path { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linejoin: miter; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand small { font: 600 .62rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.brand b { font: 500 1.65rem/1 var(--serif); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  position: relative;
  font: 500 .86rem/1 var(--sans); letter-spacing: .06em;
  color: var(--text); text-decoration: none; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--gold);
  transition: left .35s var(--ease), right .35s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { left: 0; right: 0; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 7px 0; transition: transform .35s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(60px, 8vw, 100px) 0 0;
  text-align: center;
  background:
    radial-gradient(60% 55% at 50% 0%, #fff 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, var(--ivory) 0%, var(--paper) 100%);
}
.rays {
  position: absolute; inset: -40% -30% auto; height: 150%; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 0%,
    rgba(232, 200, 130, .14) 0deg 2deg, rgba(255, 255, 255, 0) 5deg 9deg);
  filter: blur(10px);
  -webkit-mask-image: radial-gradient(55% 60% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(55% 60% at 50% 0%, #000 0%, transparent 75%);
  animation: rays 80s linear infinite;
  transform-origin: 50% 0%;
}
@keyframes rays { from { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } to { transform: rotate(-6deg); } }

.motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.motes i {
  position: absolute; bottom: -10px; width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(240, 210, 140, .9) 40%, rgba(240,210,140,0) 70%);
  opacity: 0;
  animation: mote var(--d, 18s) linear var(--delay, 0s) infinite;
}
@keyframes mote {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: .9; }
  85% { opacity: .7; }
  100% { transform: translate(var(--x, 30px), -80vh); opacity: 0; }
}

.hero-inner { position: relative; }
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 400; line-height: .98; letter-spacing: -.01em;
  margin-bottom: .32em;
}
.hero h1 em { display: block; }
.hero .lead { max-width: 600px; margin: 0 auto 2.2rem; font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 3.4rem; }

.hero-verse { margin: 0 auto 4rem; max-width: 680px; }
.hero-verse blockquote { margin: 0; font: italic 400 clamp(1.25rem, 2.2vw, 1.55rem)/1.4 var(--serif); color: var(--ink); }
.hero-verse figcaption { margin-top: .6rem; font: 600 .7rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

.hero-arch {
  width: min(980px, 100% - 40px); margin: 0 auto;
  border-radius: 999px 999px 0 0 / 420px 420px 0 0;
  overflow: hidden; position: relative;
  box-shadow: var(--shadow);
  border: 8px solid #fff; border-bottom: 0;
}
.hero-arch::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,250,235,.35), rgba(255,255,255,0) 45%);
  pointer-events: none;
}
.hero-arch img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 60%; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(48px, 6vw, 72px); }
.section-head h2 { margin-bottom: .45em; }
.section-head p:last-child { color: var(--muted); margin: 0; }

/* Welcome */
.welcome { background: var(--white); }
.welcome-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.welcome-text h2 { margin-bottom: .7em; }
.welcome-text p { max-width: 54ch; }
.welcome-text p:first-of-type::first-letter {
  float: left; font: 500 4.1em/.8 var(--serif); color: var(--gold); padding: .1em .12em 0 0;
}

.arch {
  border-radius: 999px 999px var(--radius) var(--radius) / 360px 360px var(--radius) var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  outline: 1px solid var(--line); outline-offset: 12px;
}
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.6s var(--ease); }
.arch:hover img { transform: scale(1.03); }

.pillars { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; }
.pillars li { display: flex; flex-direction: column; gap: 6px; }
.pillars b { font: 500 1.55rem/1 var(--serif); color: var(--gold-deep); }
.pillars span { font-size: .82rem; line-height: 1.5; color: var(--muted); }

/* Divider */
.divider { display: flex; justify-content: center; padding: 0 20px; margin: -20px 0; position: relative; z-index: 2; }
.rosary-divider { width: min(520px, 100%); height: auto; overflow: visible; }

/* Books */
.books { background: linear-gradient(180deg, var(--ivory), var(--paper)); }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 52px) clamp(24px, 3vw, 40px); margin-bottom: 64px; }
.book { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cover {
  position: relative; width: 100%; height: clamp(300px, 28vw, 380px); margin-bottom: 26px;
  display: block; padding: 34px 16% 24px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 40%, #fff 0%, rgba(255,255,255,.5) 60%, rgba(255,255,255,0) 100%);
  border-radius: 999px 999px var(--radius) var(--radius) / 280px 280px var(--radius) var(--radius);
  border: 1px solid var(--line);
}
.cover::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 14px; height: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90,70,30,.28), transparent);
  z-index: 0;
}
.cover img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  mix-blend-mode: multiply;
  transition: transform .8s var(--ease);
}
.cover { cursor: pointer; perspective: 900px; }
.cover img { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform .5s var(--ease); }
.book:hover .cover img { --ty: -8px; }
.tag { font: 600 .68rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.book h3 { margin-bottom: .6rem; font-size: 1.6rem; }
.book p { font-size: .95rem; color: var(--muted); max-width: 34ch; }
.more { margin-top: auto; font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid var(--gold-soft); }
.more:hover { border-color: var(--ink); }

/* Verse band */
.verse-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(90px, 12vw, 150px) 0; text-align: center;
  background: radial-gradient(60% 80% at 50% 0%, #fffdf7 0%, var(--linen) 100%);
  border-block: 1px solid var(--line);
}
.rays-soft { opacity: .9; }
.verse-band .cross { width: 26px; height: 40px; margin: 0 auto 28px; display: block; overflow: visible; }
.verse-band .cross path { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 8px var(--gold-glow)); }
.verse-band blockquote { margin: 0 auto; max-width: 860px; font: italic 400 clamp(1.7rem, 3.6vw, 2.75rem)/1.3 var(--serif); color: var(--ink); }
.verse-band .ref { margin: 1.6rem 0 0; font: 600 .72rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }

/* Range */
.range { background: var(--white); }
.range-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.range-grid li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.range-grid a {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  height: 100%; padding: 38px 18px 34px; text-decoration: none; color: var(--text);
  transition: background .5s var(--ease);
  position: relative;
}
.range-grid a::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(70% 70% at 50% 0%, rgba(240, 214, 150, .35), transparent 70%);
}
.range-grid a:hover::before { opacity: 1; }
.range-grid svg { width: 40px; height: 40px; margin-bottom: 8px; position: relative; }
.range-grid svg * { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.range-grid b { font: 500 1.35rem/1.15 var(--serif); color: var(--ink); position: relative; }
.range-grid span { font-size: .8rem; line-height: 1.5; color: var(--muted); position: relative; }

/* Gallery */
.gallery { background: linear-gradient(180deg, var(--ivory), var(--paper)); }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1.6s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.04); }
.g-wide { grid-column: 1 / -1; border-radius: 999px 999px var(--radius) var(--radius) / 300px 300px var(--radius) var(--radius) !important; }
.g-wide img { aspect-ratio: 21 / 9; }

/* Visit */
.visit { background: var(--white); }
.visit-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.visit-card h2 { margin-bottom: .5em; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .8rem/1 var(--sans); letter-spacing: .06em;
  padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--text); margin-bottom: 28px;
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #b9ae9b; }
.status.open::before { background: #d6a83c; box-shadow: 0 0 0 4px rgba(214,168,60,.2), 0 0 12px rgba(214,168,60,.8); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 7px rgba(214,168,60,.08), 0 0 18px rgba(214,168,60,.9); } }

.info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 44px; padding: 34px 0; border-block: 1px solid var(--line); margin-bottom: 32px; }
.info h3 { font: 600 .7rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.info p { margin: 0 0 .6em; font-size: .95rem; }
.info a { word-break: break-word; }
.link { font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold-soft); padding-bottom: 3px; }
.hours { display: grid; grid-template-columns: auto auto; gap: 4px 18px; margin: 0; font-size: .95rem; }
.hours dt { color: var(--muted); white-space: nowrap; }
.hours dd { white-space: nowrap; }
.nowrap { white-space: nowrap; }
.hours dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours .today { color: var(--gold-deep); font-weight: 600; }

.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hint { font-size: .9rem; color: var(--muted); margin: 0; }
.light-arch {
  position: relative; isolation: isolate; aspect-ratio: 3 / 4.1;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 18% 12% 12%;
  background: radial-gradient(80% 60% at 50% 0%, #fffdf6 0%, var(--paper) 70%, var(--linen) 100%);
}
.light-arch .rays { inset: -20% -40% auto; }
.light-arch .cross { width: 22px; height: 34px; margin-bottom: 26px; overflow: visible; }
.light-arch .cross path { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 8px var(--gold-glow)); }
.light-arch blockquote { margin: 0; font: italic 400 clamp(1.4rem, 2.2vw, 1.8rem)/1.35 var(--serif); color: var(--ink); }
.light-arch .ref { margin: 1.2rem 0 0; font: 600 .68rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 70px 0 34px; font-size: .88rem; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.blessing { margin: 0; font: italic 400 1.4rem/1.3 var(--serif); color: var(--ink); }
.blessing span { display: block; text-align: right; font: 600 .66rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-top: 8px; font-style: normal; }
.funding { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 0; text-align: center; }
.funding img { width: min(520px, 100%); mix-blend-mode: multiply; }
.funding p { margin: 0; font-size: .8rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8rem; }
.footer-bottom a { color: var(--text); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-deep); }

/* ---------- Rosenkranz am Rand ---------- */
.rosary {
  position: fixed; z-index: 40; right: clamp(14px, 2vw, 34px); top: 96px; bottom: 18px;
  width: 64px; pointer-events: none; display: none;
}
.rosary svg { width: 100%; height: 100%; overflow: visible; }
.rosary .chain { fill: none; stroke: var(--gold); stroke-width: .9; opacity: .55; }
.bead { fill: #fbf5e6; stroke: var(--gold); stroke-width: 1; transition: fill .9s var(--ease), stroke .9s var(--ease), filter .9s var(--ease); }
.bead.big { stroke: var(--gold); }
.bead.lit { fill: url(#beadLight); stroke: var(--gold); filter: url(#beadGlow); }
.medal { fill: #fff; stroke: var(--gold); stroke-width: 1.2; transition: fill .9s var(--ease), filter .9s var(--ease); }
.medal.lit { fill: url(#beadLight); filter: url(#beadGlow); }
.crucifix path { fill: #fff; stroke: var(--gold); stroke-width: 1.4; stroke-linejoin: round; transition: fill 1.2s var(--ease), filter 1.2s var(--ease); }
.crucifix.lit path { fill: url(#crossLight); filter: url(#beadGlow); }

/* Divider-Rosenkranz */
.rosary-divider .chain { fill: none; stroke: var(--gold-soft); stroke-width: 1; }
.rosary-divider circle { fill: #fff; stroke: var(--gold); stroke-width: 1; }
.rosary-divider circle.big { fill: url(#dvLight); }
.rosary-divider .crucifix path { fill: url(#dvLight); stroke: var(--gold); stroke-width: 1.2; filter: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(60px, 9vw, 110px) 0; background: var(--white); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: .6em; }
.legal h2 { font-size: 1.8rem; margin: 2em 0 .6em; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }

/* ---------- Responsive ---------- */
@media (min-width: 1300px) { .rosary { display: block; } }

@media (max-width: 1080px) {
  .range-grid { grid-template-columns: repeat(3, 1fr); }
  .range-grid li:last-child { grid-column: span 3; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 78px 0 auto; flex-direction: column; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(90,70,30,.35);
    padding: 12px 20px 28px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { width: 100%; text-align: center; padding: 16px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 22px; }

  .welcome-grid, .visit-grid { grid-template-columns: 1fr; }
  .welcome-media { max-width: 460px; margin-inline: auto; width: 100%; }
  .visit-media { display: none; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .eyebrow { letter-spacing: .2em; font-size: .68rem; gap: .7em; }
  .eyebrow::before, .eyebrow::after { width: 16px; }
  .hero-verse { margin-bottom: 3rem; }
  .brand b { font-size: 1.4rem; }
  .brand small { font-size: .56rem; letter-spacing: .2em; }
  .hero-arch { border-width: 5px; border-radius: 999px 999px 0 0 / 200px 200px 0 0; }
  .hero-arch img { aspect-ratio: 4 / 3; }
  .book-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .range-grid { grid-template-columns: 1fr 1fr; }
  .range-grid li:last-child { grid-column: span 2; }
  .range-grid a { padding: 28px 12px 24px; }
  .pillars { grid-template-columns: 1fr; gap: 22px; }
  .info { grid-template-columns: 1fr; gap: 26px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-wide { border-radius: 999px 999px var(--radius) var(--radius) / 140px 140px var(--radius) var(--radius) !important; }
  .g-wide img { aspect-ratio: 4 / 3; }
  .blessing span { text-align: left; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Extras
   ========================================================== */

/* Lichtschein folgt der Maus im Hero */
.glow {
  position: absolute; z-index: -1; pointer-events: none;
  left: var(--mx, 50%); top: var(--my, 30%);
  width: 720px; height: 720px; margin: -360px 0 0 -360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 240, 205, .75), rgba(255, 236, 190, .25) 55%, transparent);
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero:hover .glow { opacity: 1; }

/* Statuspille im Header */
.open-pill {
  margin: 0 auto 0 22px; display: inline-flex; align-items: center; gap: 8px;
  font: 600 .68rem/1 var(--sans); letter-spacing: .08em; text-decoration: none;
  color: var(--muted); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.6);
  white-space: nowrap;
}
.open-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b9ae9b; }
.open-pill.open { color: var(--gold-deep); }
.open-pill.open::before { background: #d6a83c; box-shadow: 0 0 10px rgba(214,168,60,.9); animation: glow 2.4s ease-in-out infinite; }
.open-pill:hover { color: var(--ink); border-color: var(--gold-soft); }

/* Button-Reset für "more" */
button.more { background: none; border: 0; border-bottom: 1px solid var(--gold-soft); cursor: pointer; color: var(--gold-deep); padding: 0 0 4px; }
button.more:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Ein Wort für heute ---------- */
.word { background: radial-gradient(70% 60% at 50% 0%, #fffdf8 0%, var(--paper) 100%); overflow: hidden; isolation: isolate; }
.word .rays { opacity: .8; }
.word-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }

.daily {
  position: relative; text-align: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px 999px var(--radius) var(--radius) / 260px 260px var(--radius) var(--radius);
  padding: 70px clamp(24px, 5vw, 56px) 54px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.daily-date { font: 600 .7rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 26px 0 18px; }
.daily blockquote { margin: 0; font: italic 400 clamp(1.5rem, 2.6vw, 2.05rem)/1.35 var(--serif); color: var(--ink); transition: opacity .6s; }
.daily-ref { margin: 1.1rem 0 0; font: 600 .7rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }

/* Kerze */
.candle { position: relative; width: 70px; height: 128px; }
.candle .wax {
  position: absolute; left: 50%; bottom: 0; width: 30px; height: 74px; margin-left: -15px; border-radius: 4px 4px 3px 3px;
  background: linear-gradient(90deg, #efe4cc 0%, #fffaf0 35%, #fff 50%, #f3e9d3 80%, #e6d7b8 100%);
  box-shadow: inset 0 6px 8px -6px rgba(176,138,62,.5), 0 8px 14px -8px rgba(90,70,30,.35);
}
.candle .wax::before { content: ""; position: absolute; left: 3px; right: 3px; top: -3px; height: 7px; border-radius: 50%; background: #fbf4e3; box-shadow: inset 0 -2px 3px rgba(176,138,62,.25); }
.candle .wick { position: absolute; left: 50%; bottom: 72px; width: 2px; height: 9px; margin-left: -1px; background: #4a3b28; border-radius: 1px; }
.candle .flame {
  position: absolute; left: 50%; bottom: 78px; width: 14px; height: 32px; margin-left: -7px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 80%, #fff 0%, #fff4c4 25%, #ffd36b 55%, rgba(255, 160, 40, .85) 80%, rgba(255,140,30,0) 100%);
  transform-origin: 50% 90%;
  animation: flicker 3.2s ease-in-out infinite;
  filter: blur(.3px);
}
.candle .halo {
  position: absolute; left: 50%; bottom: 60px; width: 150px; height: 150px; margin-left: -75px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 120, .45), rgba(255, 214, 120, 0));
  animation: halo 3.2s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) rotate(-1deg); }
  20% { transform: scale(.96, 1.06) rotate(1.5deg); }
  40% { transform: scale(1.04, .95) rotate(-2deg); }
  60% { transform: scale(.98, 1.04) rotate(1deg); }
  80% { transform: scale(1.02, .98) rotate(-.5deg); }
}
@keyframes halo { 0%, 100% { opacity: .85; transform: scale(1); } 40% { opacity: 1; transform: scale(1.06); } 70% { opacity: .75; transform: scale(.97); } }

/* Verheißungskästchen */
.promise { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; }
.box-stage { position: relative; width: 100%; max-width: 380px; height: 400px; }
.box { position: absolute; left: 50%; bottom: 0; width: 280px; height: 150px; margin-left: -140px; }
.box-cards { position: absolute; left: 14px; right: 14px; top: -26px; height: 60px; display: flex; justify-content: center; gap: 3px; }
.box-cards i {
  flex: 1; height: 56px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #fff, #f6eedb);
  border: 1px solid var(--gold-soft); border-bottom: 0;
  transform: translateY(calc(var(--o, 0) * 1px)) rotate(calc(var(--r, 0) * 1deg));
}
.box-cards i:nth-child(1) { --o: 10; --r: -3; }
.box-cards i:nth-child(2) { --o: 4; --r: -1; }
.box-cards i:nth-child(3) { --o: 8; --r: 1; }
.box-cards i:nth-child(4) { --o: 0; }
.box-cards i:nth-child(5) { --o: 6; --r: -1; }
.box-cards i:nth-child(6) { --o: 2; --r: 2; }
.box-cards i:nth-child(7) { --o: 9; --r: 3; }
.box-front {
  position: absolute; inset: 0; z-index: 2; border-radius: 6px;
  background: linear-gradient(180deg, #fffdf7 0%, #f4ead4 100%);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px var(--gold-soft), 0 26px 40px -24px rgba(90,70,30,.5);
  display: grid; place-items: center;
}
.box-front span { font: italic 500 1.7rem/1 var(--serif); color: var(--gold-deep); letter-spacing: .02em; }
.box-front span::before, .box-front span::after { content: "✦"; font-size: .55em; color: var(--gold-soft); margin: 0 .6em; vertical-align: middle; font-style: normal; }

.drawn {
  position: absolute; z-index: 1; left: 50%; top: 10px; width: min(340px, 100%); height: 200px;
  transform: translate(-50%, 240px) scale(.45); opacity: 0;
  transition: transform 1.1s var(--ease), opacity .6s var(--ease);
  perspective: 1200px;
}
.drawn.show { transform: translate(-50%, 0) scale(1); opacity: 1; }
.drawn-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s var(--ease) .15s; }
.drawn.flip .drawn-inner { transform: rotateY(180deg); }
.drawn-front, .drawn-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 6px; border: 1px solid var(--gold-soft);
  background: linear-gradient(160deg, #fff 0%, #fbf5e6 100%);
  box-shadow: 0 30px 50px -26px rgba(90,70,30,.45), 0 0 50px rgba(255, 220, 150, .35);
}
.drawn-front { display: grid; place-items: center; }
.drawn-front svg { width: 26px; height: 40px; }
.drawn-front path { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; }
.drawn-back { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; padding: 22px 26px; }
.drawn-back::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); border-radius: 3px; pointer-events: none; }
.drawn-back p { margin: 0; font: italic 400 1.28rem/1.35 var(--serif); color: var(--ink); }
.drawn-back span { margin-top: 12px; font: 600 .64rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.promise-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.promise-note { min-height: 1.4em; margin: 12px 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Filter ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -24px 0 54px; }
.chip {
  font: 600 .74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: 11px 18px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.7); color: var(--text); border: 1px solid var(--line);
  transition: background .35s, color .35s, border-color .35s, box-shadow .35s;
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.active { background: linear-gradient(180deg, #c29d52, var(--gold-deep)); border-color: var(--gold-deep); color: #fff; box-shadow: 0 8px 20px -10px rgba(140,106,40,.7); }
.book.is-hidden { display: none; }
.book.pop { animation: pop .7s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Leuchtende Worte ---------- */
.glow-words .w { color: rgba(44, 40, 35, .2); transition: color .7s var(--ease), text-shadow .9s var(--ease); }
.glow-words .w.lit { color: var(--ink); text-shadow: 0 0 22px rgba(232, 190, 100, .55); }
.glow-words .w.key.lit { color: var(--gold-deep); }

/* ---------- Kirchenjahr ---------- */
.feasts { background: linear-gradient(180deg, var(--white), var(--ivory)); padding-bottom: clamp(40px, 6vw, 70px); }
.feast-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feast {
  position: relative; display: flex; flex-direction: column; text-align: center; align-items: center;
  padding: 40px 22px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.feast:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feast.next {
  border-color: var(--gold-soft);
  background: radial-gradient(90% 70% at 50% 0%, #fff6dd 0%, #fff 70%);
  box-shadow: 0 0 0 1px var(--gold-soft), 0 24px 50px -28px rgba(176,138,62,.6);
}
.feast.next::before {
  content: "Als Nächstes"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font: 700 .6rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #fff;
  background: var(--gold); padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.feast .days { font: 400 3.6rem/1 var(--serif); color: var(--gold-deep); font-variant-numeric: lining-nums; }
.feast .unit { font: 600 .66rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 8px 0 20px; }
.feast h3 { font-size: 1.45rem; margin-bottom: 4px; }
.feast time { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.feast p { font-size: .88rem; line-height: 1.6; color: var(--text); margin: 0 0 18px; }
.feast a { margin-top: auto; font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold-soft); padding-bottom: 3px; }

/* ---------- Geschenkfinder ---------- */
.finder { background: var(--ivory); }
.finder-card {
  max-width: 880px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(32px, 5vw, 60px); box-shadow: var(--shadow); text-align: center; position: relative; overflow: hidden;
}
.finder-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 220px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(240, 214, 150, .28), transparent 70%);
}
.finder-steps { list-style: none; display: flex; justify-content: center; gap: 46px; margin: 0 0 34px; padding: 0; position: relative; }
.finder-steps::before { content: ""; position: absolute; top: 50%; left: calc(50% - 70px); width: 140px; height: 1px; background: var(--line); }
.finder-steps li {
  position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 500 1.05rem/1 var(--serif); color: var(--muted); background: #fff; border: 1px solid var(--line);
  transition: all .5s var(--ease);
}
.finder-steps li.on { color: #fff; background: var(--gold); border-color: var(--gold); box-shadow: 0 0 16px var(--gold-glow); }
.finder-step { display: none; position: relative; }
.finder-step.active { display: block; animation: pop .6s var(--ease) both; }
.finder-step h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 28px; }
.options { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.options button {
  font: 500 .95rem/1.2 var(--sans); color: var(--ink); cursor: pointer;
  padding: 16px 22px; min-width: 170px; border-radius: 6px;
  background: linear-gradient(180deg, #fff, #fcf8ef); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.options button:hover, .options button:focus-visible { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 14px 26px -16px rgba(176,138,62,.7), 0 0 0 4px rgba(240, 214, 150, .25); }
.back { margin-top: 24px; background: none; border: 0; color: var(--muted); font: 500 .85rem/1 var(--sans); cursor: pointer; }
.back:hover { color: var(--ink); }
.ideas { list-style: none; padding: 0; margin: 0 auto 30px; max-width: 560px; text-align: left; display: grid; gap: 12px; }
.ideas li { position: relative; padding: 12px 16px 12px 46px; background: var(--ivory); border-radius: 4px; border: 1px solid var(--line); font-size: .97rem; }
.ideas li::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 12px; height: 18px; margin-top: -9px;
  background:
    linear-gradient(var(--gold), var(--gold)) 50% 0 / 2px 100% no-repeat,
    linear-gradient(var(--gold), var(--gold)) 50% 30% / 100% 2px no-repeat;
}
.finder-books { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 34px; }
.finder-books button {
  background: none; border: 0; cursor: pointer; padding: 0; width: 120px; text-align: center;
  font: 500 .95rem/1.2 var(--serif); color: var(--ink);
}
.finder-books img { height: 150px; width: auto; margin: 0 auto 10px; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.finder-books button:hover img { transform: translateY(-6px); }
.finder-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Galerie klickbar ---------- */
.gallery-grid figure { cursor: zoom-in; }

/* ---------- Dialoge ---------- */
dialog { border: 0; padding: 0; color: var(--text); background: var(--ivory); }
dialog::backdrop { background: rgba(44, 40, 35, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: dlg .55s var(--ease) both; }
@keyframes dlg { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: 300 1.6rem/1 var(--sans); cursor: pointer;
}
.dlg-close:hover { border-color: var(--gold); color: var(--gold-deep); }

.book-dialog { width: min(900px, calc(100% - 32px)); max-height: calc(100% - 32px); border-radius: 8px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); }
.bd-grid { display: grid; grid-template-columns: .85fr 1.15fr; }
.bd-cover {
  display: grid; place-items: center; padding: 48px 36px;
  background: radial-gradient(70% 60% at 50% 35%, #fff 0%, var(--paper) 100%);
}
.bd-cover img { max-height: 420px; width: auto; mix-blend-mode: multiply; }
.bd-text { padding: 56px 48px 44px; }
.bd-text h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 18px; }
.bd-text p { font-size: .98rem; }
.bd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }

.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(28, 25, 21, .86); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(1200px, 88vw); max-height: 80vh; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { margin-top: 14px; color: #f3ead6; font: italic 400 1.15rem/1.3 var(--serif); }
.lb-nav {
  position: fixed; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font: 300 2rem/1 var(--sans);
}
.lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }

/* ---------- Nach oben ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--gold-soft);
  box-shadow: 0 14px 30px -14px rgba(90,70,30,.5);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { box-shadow: 0 0 0 5px rgba(240, 214, 150, .35), 0 14px 30px -14px rgba(90,70,30,.5); }
@media (min-width: 1300px) { .to-top { right: 112px; } }

/* ---------- Responsive Extras ---------- */
@media (max-width: 1080px) {
  .feast-list { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .nav { gap: 22px; }
}
@media (max-width: 900px) {
  .word-grid { grid-template-columns: 1fr; }
  .open-pill { margin-left: 14px; }
  .bd-grid { grid-template-columns: 1fr; }
  .bd-cover { padding: 40px 30px 24px; }
  .bd-cover img { max-height: 260px; }
  .bd-text { padding: 26px 26px 32px; }
}
@media (max-width: 640px) {
  .feast-list { grid-template-columns: 1fr; }
  .options button { min-width: 0; flex: 1 1 140px; padding: 14px 12px; }
  .box-stage { height: 380px; }
  .box { width: 250px; margin-left: -125px; }
  .drawn-back p { font-size: 1.15rem; }
  .filters { margin-top: -16px; }
  .chip { padding: 10px 14px; font-size: .68rem; }
}
@media (max-width: 420px) { .open-pill { display: none; } }
@media (hover: none) { .glow { display: none; } }
.open-pill[hidden] { display: none; }
@media (min-width: 901px) and (max-width: 1320px) { .open-pill { display: none; } }
.brand { flex: none; }
.nav a { white-space: nowrap; }
@media (min-width: 901px) { .nav { gap: 26px; } }
@media (min-width: 901px) and (max-width: 1080px) { .nav { gap: 18px; } .nav a:not(.btn) { font-size: .8rem; } }
.lightbox img { margin: 0 auto; }
@media (max-width: 640px) { .lb-nav { top: auto; bottom: 28px; margin-top: 0; } .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); } }
