/* =========================================================
   Zentrum Heilig Geist Feuer — Stylesheet
   Warm flame palette, big ALL-CAPS section headings,
   red underline accent — inspired by the original site.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --color-bg:            #ffffff;
  --color-bg-soft:       #faf7f2;
  --color-surface:       #ffffff;
  --color-text:          #1a1a1a;
  --color-text-muted:    #000000;
  --color-border:        #e7e4df;

  --color-flame-yellow:  #f4c430;
  --color-flame-orange:  #e87722;
  --color-flame-red:     #c8352c;   
  --color-accent:        #e05a55;   /* red underline on headings */
  --color-accent-strong: #c8352c;
  --color-link:          #1b3d8a;
  --color-dove-blue:     #9fc0e8;

  --font-head: "Oswald", "Oswald Fallback", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Open Sans", "Open Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max-width: 1200px;
  --max-width-narrow: 860px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 520ms;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.05);
  --shadow-md: 0 6px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 18px 40px rgba(0,0,0,.14), 0 8px 16px rgba(0,0,0,.07);
}

/* ---------- Font fallback metrics (reduce CLS on web-font swap) ---------- */
/* size-adjust/ascent/descent values calibrated so Arial(-Narrow) approximates
   Oswald and Open Sans metrics, preventing layout shift when the web fonts
   load. Used as second item in --font-head / --font-body. */
@font-face {
  font-family: "Oswald Fallback";
  src: local("Arial Narrow"), local("Arial");
  size-adjust: 88.5%;
  ascent-override: 113%;
  descent-override: 28%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Open Sans Fallback";
  src: local("Arial");
  size-adjust: 105.55%;
  ascent-override: 101.16%;
  descent-override: 27.71%;
  line-gap-override: 0%;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-link); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--color-accent-strong); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

:focus-visible {
  outline: 3px solid var(--color-flame-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--color-accent-strong);
  color: #fff; border-radius: var(--radius-sm); z-index: 1000;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container--narrow { max-width: var(--max-width-narrow); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .7rem;
  gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--color-text); }
.brand__mark {
  width: 48px; height: 48px;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}
.brand:hover .brand__mark { transform: scale(1.05) rotate(-3deg); }

:lang(bg) .brand { font-size: .95rem; }
:lang(bg) .brand span { white-space: nowrap; }
@media (min-width: 961px) {
  :lang(bg) .nav__link { font-size: .88rem; padding: .55rem .7rem; }
}

.nav__menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: .25rem;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem;
  font-weight: 500; font-size: .97rem;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--color-accent-strong); }
.nav__link[aria-current="page"] {
  background: var(--color-text);
  color: #fff;
}
.nav__link--cta {
  background: var(--color-accent-strong); color: #fff;
  margin-inline-start: .5rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .9rem;
}
.nav__link--cta:hover { background: var(--color-flame-orange); color: #fff; }

/* Flag link (Bulgarian) — small, top-right-ish, pill */
.nav__flag {
  display: inline-flex; align-items: center;
  width: 38px; height: 26px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  transition: transform var(--dur-fast) var(--ease);
}
.nav__flag:hover { transform: scale(1.06); }

/* Dropdown */
.nav__item--has-menu > .nav__link::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-inline-start: .3rem;
  transition: transform var(--dur-fast) var(--ease);
}
.nav__submenu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 280px;
  list-style: none; margin: 0; padding: .5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
  max-height: 70vh; overflow-y: auto;
}
.nav__item--has-menu:hover .nav__submenu,
.nav__item--has-menu:focus-within .nav__submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__submenu .nav__link {
  display: block; padding: .55rem .75rem; border-radius: var(--radius-sm);
  font-size: .94rem;
}
.nav__submenu .nav__link:hover {
  background: var(--color-bg-soft);
  color: var(--color-accent-strong);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--color-text); border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 28px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 68px 0 0 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 2rem;
    background: #fff;
    border-top: 1px solid var(--color-border);
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
    overflow-y: auto;
  }
  .nav.is-open .nav__menu { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__item { width: 100%; }
  .nav__link { padding: 1.1rem 1rem; font-size: 1.35rem; }
  .nav__link--cta { margin-inline-start: 0; margin-top: .75rem; justify-content: center; font-size: 1.25rem; padding: 1rem 1.25rem; }
  .nav__submenu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 .5rem 1.25rem;
    display: none;
    max-height: none;
  }
  .nav__submenu .nav__link { font-size: 1.1rem; padding: .85rem 1rem; }
  .nav__item--open > .nav__submenu { display: block; }
}

/* ---------- Big section hero ("ÜBER UNS", etc.) ---------- */
/* Used both as the page hero on subpages and as section dividers on the homepage. */
.section-hero {
  position: relative;
  min-height: clamp(260px, 52vh, 520px);
  display: grid; place-items: center;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #111;
  background: var(--bg-img, linear-gradient(180deg, #e8e6e1, #cbc7c0));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}
.section-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,.25) 100%);
  z-index: -1;
}
.section-hero--dark { color: #fff; }
.section-hero--dark::before {
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.25) 100%);
}

.section-hero__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  letter-spacing: .02em;
  line-height: 1;
  margin: 0;
  text-shadow: 0 2px 10px rgba(255,255,255,.25);
}
.section-hero--dark .section-hero__title { text-shadow: 0 2px 20px rgba(0,0,0,.4); }

.section-hero__title .u-underline {
  display: inline-block;
  padding-bottom: .1em;
  background: linear-gradient(180deg, transparent 88%, var(--color-accent) 88%, var(--color-accent) 96%, transparent 96%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.section-hero__subtitle {
  margin-top: 1rem;
  margin-inline: auto;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  text-transform: none;
  letter-spacing: 0.01em;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
  max-width: 38ch;
}

/* Entry animation */
.section-hero__title { opacity: 0; transform: translateY(14px); animation: fadeUp var(--dur-slow) var(--ease) .2s forwards; }
.section-hero__subtitle { opacity: 0; transform: translateY(14px); animation: fadeUp var(--dur-slow) var(--ease) .45s forwards; }

/* As "scroll section" on the homepage — reusable link-like block */
.section-hero--link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}
.section-hero--link:hover .section-hero__title .u-underline { background-size: 100% 100%; }
.section-hero--link:hover .section-hero__title { transform: scale(1.01); color: inherit; }

/* Water-flow sections — shorter tiles, GPU-accelerated drift + shimmer on scroll-in */
.section-hero--water {
  min-height: clamp(180px, 32vh, 320px);
  padding: 2rem 1.5rem;
  background-color: #0a1a2a;
  background-image: none;          /* image lives on ::before so we can transform it */
  color: #fff;
}
.section-hero--water::before {     /* replaces the default .section-hero::before */
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center var(--bg-y, 50%);
  background-repeat: no-repeat;
  z-index: -2;
}
.section-hero--water::after {      /* darkening + soft light highlights */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.38) 100%),
    radial-gradient(55% 30% at 28% 22%, rgba(255,255,255,.18), transparent 70%),
    radial-gradient(45% 24% at 72% 78%, rgba(150,205,235,.16), transparent 70%);
  will-change: transform;
  z-index: -1;
}
.section-hero--water > * { position: relative; z-index: 1; }

.section-hero--water.is-visible::after {
  animation: waterShimmer 16s ease-in-out infinite alternate;
}

@keyframes waterShimmer {
  0%   { transform: translate3d(-1%, -0.6%, 0); }
  100% { transform: translate3d( 1%,  0.6%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .section-hero--water.is-visible::before,
  .section-hero--water.is-visible::after { animation: none; }
}

/* ---------- Homepage hero — the big "ZHGF" ---------- */
.home-hero {
  position: relative;
  min-height: clamp(460px, 80vh, 720px);
  display: grid; place-items: center;
  padding: 4rem 1.5rem;
  text-align: center;
  color: #fff;
  background: url("/assets/img/world-map2.png") center/cover no-repeat, linear-gradient(180deg, #8a5a30, #4a2e18);
  overflow: hidden;
  isolation: isolate;
}
.home-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 100%);
  z-index: -1;
}
.home-hero__flame {
  width: clamp(110px, 16vw, 180px);
  height: auto;
  margin: 0 auto 1.25rem;
  animation: flicker 4.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(232,119,34,.4));
}
.home-hero__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(3.2rem, 10vw, 8rem);
  letter-spacing: .04em;
  line-height: 1;
  margin: 0;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.home-hero__title .u-underline {
  display: inline-block;
  padding-bottom: .08em;
  background: linear-gradient(180deg, transparent 86%, var(--color-accent) 86%, var(--color-accent) 94%, transparent 94%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.home-hero__welcome {
  margin-top: 1.4rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.9rem);
  letter-spacing: .02em;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
  color: #fff;
}
.home-hero__bg-flag {
  position: absolute; top: 1.5rem; right: 1.5rem;
  display: inline-flex; align-items: center;
  width: 70px; height: 44px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.4);
  z-index: 2;
  transition: transform var(--dur) var(--ease);
}
.home-hero__bg-flag:hover { transform: scale(1.08); }

/* ---------- Homepage hero — full-bleed world map + fire animation + centered brand ---------- */
.hero-map {
  position: relative;
  width: 100%;
  min-height: clamp(440px, 72vh, 760px);
  aspect-ratio: 756 / 472;
  max-height: 85vh;
  background: radial-gradient(80% 55% at 50% 45%, #1a0f06 0%, #0a0503 55%, #000 100%);
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-map__bg-flag {
  position: absolute; top: 1.5rem; right: 1.5rem;
  display: inline-flex; align-items: center;
  width: 70px; height: 44px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.4);
  z-index: 5;
  transition: transform var(--dur) var(--ease);
}
.hero-map__bg-flag:hover { transform: scale(1.08); }

.hero-map__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.95) contrast(1.02);
  pointer-events: none;
  z-index: 0;
}
.hero-map::before {
  /* subtle vignette for text legibility without dimming the map */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at 50% 50%, rgba(0,0,0,.30), rgba(0,0,0,.05) 70%, transparent),
    linear-gradient(180deg, rgba(0,0,0,.12), transparent 30%, transparent 70%, rgba(0,0,0,.18));
  pointer-events: none;
  z-index: 1;
}
.hero-map__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.hero-map__content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 1.5rem;
}
.hero-map__flame {
  display: block;
  width: clamp(380px, 48vw, 680px);
  height: auto;
  margin: 0 auto 1.25rem;
  transform-origin: center bottom;
  animation: flameBreath 5.2s ease-in-out infinite;
  will-change: transform, filter;
}
@keyframes flameBreath {
  0%, 100% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 12px 36px rgba(232,119,34,.42))
            drop-shadow(0 0 18px rgba(244,196,48,.35));
  }
  50% {
    transform: scale(1.08) translateY(-4px);
    filter: drop-shadow(0 20px 60px rgba(232,119,34,.70))
            drop-shadow(0 0 32px rgba(244,196,48,.55));
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-map__flame { animation: none !important; }
}
.hero-map__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(3.2rem, 10vw, 8rem);
  letter-spacing: .04em;
  line-height: 1;
  margin: 0;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.hero-map__title .u-underline {
  display: inline-block;
  padding-bottom: .08em;
  background: linear-gradient(180deg, transparent 86%, var(--color-accent) 86%, var(--color-accent) 94%, transparent 94%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.hero-map__welcome {
  margin: 1.4rem 0 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.9rem);
  letter-spacing: .02em;
  text-shadow: 0 2px 10px rgba(0,0,0,.65);
  color: #fff;
}

.hero-map .trail {
  fill: none;
  stroke: url(#fireLine);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: .7;
}
.hero-map .trail-dash {
  stroke-dasharray: 4 6;
  animation: heroMapDashMarch 40s linear infinite;
}
@keyframes heroMapDashMarch { to { stroke-dashoffset: -200; } }

.hero-map .spark {
  fill: #fff6c8;
  stroke: #f4c430;
  stroke-width: .8;
  opacity: .95;
}

.hero-map .pin-outer { opacity: 0; }
.hero-map .pin-outer.lit { opacity: 1; }
.hero-map .pin {
  transform-origin: center bottom;
  transform-box: fill-box;
  animation: heroMapDrop .65s cubic-bezier(.2,1.5,.4,1) both;
  will-change: transform;
}
@keyframes heroMapDrop {
  0%   { transform: translateY(-18px) scale(.4);  opacity: 0; }
  55%  { transform: translateY(3px)   scale(1.12); opacity: 1; }
  100% { transform: translateY(0)     scale(1);    opacity: 1; }
}

.hero-map .halo {
  fill: none;
  stroke: rgba(244,196,48,.55);
  stroke-width: 1;
  transform-origin: center;
  transform-box: fill-box;
  animation: heroMapHalo 2.8s ease-out infinite;
}
@keyframes heroMapHalo {
  0%   { transform: scale(.4);  opacity: .9; }
  100% { transform: scale(2.6); opacity: 0;  }
}

.hero-map .flame-wrap {
  transform-origin: center bottom;
  transform-box: fill-box;
  animation: heroMapFlicker 3.2s ease-in-out infinite;
  will-change: transform;
}
@keyframes heroMapFlicker {
  0%, 100% { transform: scaleY(1)    scaleX(1)   rotate(-.5deg); }
  50%      { transform: scaleY(1.08) scaleX(.96) rotate( .5deg); }
}
.hero-map .pin--anchor .flame-wrap {
  animation-duration: 2.6s;
}

.hero-map__embers {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.hero-map__embers span {
  position: absolute; display: block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #f4c430;
  box-shadow: 0 0 6px #f4c430, 0 0 14px #e87722;
  opacity: 0;
  animation: heroMapEmberFloat 7s linear infinite;
}
@keyframes heroMapEmberFloat {
  0%   { transform: translate(0, 0) scale(.6); opacity: 0; }
  10%  { opacity: .9; }
  60%  { opacity: .7; }
  100% { transform: translate(var(--dx, 20px), -220px) scale(.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-map .pin,
  .hero-map .halo,
  .hero-map .trail-dash,
  .hero-map__embers span,
  .hero-map .flame-wrap,
  .hero-map__flame { animation: none !important; }
  .hero-map .pin-outer { opacity: 1; }
}

/* On narrow viewports the city pins (calibrated for the landscape map) fall
   outside the visible cropped strip — hide the SVG fire-spread layer and let
   the map show at its real aspect ratio with just the flame + title on top. */
@media (max-width: 760px) {
  .hero-map {
    min-height: 0;
    max-height: none;
    aspect-ratio: 756 / 472;
  }
  .hero-map__img { object-fit: cover; object-position: center; }
  .hero-map__svg,
  .hero-map__embers { display: none; }
  .hero-map__content { padding: 1rem; }
  .hero-map__flame {
    width: clamp(140px, 40vw, 240px);
    margin-bottom: .75rem;
  }
  .hero-map__welcome { margin-top: .75rem; }
  .hero-map__bg-flag {
    top: .75rem; right: .75rem;
    width: 44px; height: 28px;
  }
}

/* ---------- Sections & layout ---------- */
.section { padding: clamp(2.5rem, 7vh, 5rem) 0; }
.section--alt { background: var(--color-bg-soft); }

/* Heading-with-underline treatment for inner headings */
.h-underline {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: .02em;
  line-height: 1;
  padding-bottom: .15em;
  background: linear-gradient(180deg, transparent 82%, var(--color-accent) 82%, var(--color-accent) 92%, transparent 92%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  margin-bottom: 1.25em;
}
.section__head { text-align: center; margin-bottom: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 500; font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-accent-strong); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-flame-orange); color: #fff; }
.btn--ghost { background: transparent; color: var(--color-text); border: 2px solid var(--color-text); }
.btn--ghost:hover { background: var(--color-text); color: #fff; }
.btn--dark { background: var(--color-text); color: #fff; }
.btn--dark:hover { background: var(--color-accent-strong); }

/* ---------- Leader / person cards ---------- */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.leader-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.leader-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.leader-card__label {
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .15em;
  color: var(--color-accent-strong);
  margin-bottom: .75rem;
}
.leader-card h3 {
  font-size: 1.35rem;
  margin: 0 0 .4rem;
  letter-spacing: .02em;
}
.leader-card p { color: var(--color-text-muted); font-size: .95rem; margin: 0; }

/* ---------- Contact directory ---------- */
.directory {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}
.directory__group h3 {
  font-size: 1.5rem;
  letter-spacing: .1em;
  padding-bottom: .35em;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
  margin-bottom: 1.25rem;
}
.directory__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .75rem;
}
.directory__item {
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  line-height: 1.45;
}
.directory__item--leader {
  border-left: 4px solid var(--color-accent-strong);
  background: linear-gradient(90deg, rgba(224,90,85,.05), #fff 40%);
}
.directory__item--clickable {
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.directory__item--clickable:hover,
.directory__item--clickable:focus-visible {
  transform: translateY(-1px);
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  outline: none;
}
.directory__item strong { display: block; font-size: 1rem; margin-bottom: .2rem; }
.directory__item .tag {
  display: inline-block;
  padding: 2px 8px;
  margin-top: .35rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--color-text);
  color: #fff;
  border-radius: 3px;
}
.directory__item .tag a { color: #fff; text-decoration: underline; }
.directory__item .tag a:hover { color: #fff; opacity: .85; }
.directory__item .muted { color: var(--color-text-muted); font-size: .87rem; }

/* ---------- Service times (Gottesdienst) ---------- */
.service-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.service-card {
  padding: 1.75rem;
  background: #fff;
  border-top: 4px solid var(--color-accent-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.service-card__day {
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: .1em;
  color: var(--color-accent-strong);
  margin-bottom: .35rem;
}
.service-card__when {
  font-family: var(--font-head);
  font-size: 1.6rem;
  letter-spacing: .03em;
  margin: .25rem 0 .6rem;
}
.service-card__where { color: var(--color-text-muted); font-size: .92rem; margin: 0; }

/* ---------- Bank / donation panel ---------- */
.donate-panel {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  max-width: 640px;
  margin-inline: auto;
}
.donate-panel__row {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  align-items: baseline;
  padding: .6rem 0;
  border-bottom: 1px solid var(--color-border);
}
.donate-panel__row:last-of-type { border-bottom: 0; }
.donate-panel__label {
  font-family: var(--font-head);
  letter-spacing: .1em;
  color: var(--color-accent-strong);
  min-width: 110px;
  font-size: .92rem;
}
.donate-panel__value {
  font-family: monospace, monospace;
  font-size: 1rem;
  word-break: break-all;
}

/* ---------- Document category grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.cat-tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 160px;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  overflow: hidden;
}
.cat-tile::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--color-flame-yellow), var(--color-flame-orange), var(--color-flame-red));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.cat-tile:hover::before { transform: scaleX(1); }
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  color: var(--color-text);
}
.cat-tile__icon { width: 40px; height: 40px; color: var(--color-accent-strong); margin-bottom: .75rem; }
.cat-tile h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: .05em;
  margin: 0 0 .3rem;
}
.cat-tile p { margin: 0; font-size: .88rem; color: var(--color-text-muted); }
.cat-tile__arrow {
  align-self: flex-end;
  margin-top: .5rem;
  font-family: var(--font-head);
  font-size: .82rem;
  letter-spacing: .15em;
  color: var(--color-accent-strong);
}
.cat-tile__arrow::after { content: " →"; transition: transform var(--dur-fast) var(--ease); display: inline-block; }
.cat-tile:hover .cat-tile__arrow::after { transform: translateX(4px); }

/* ---------- Document library (search + filters + doc cards) ---------- */
.docs-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  padding: 1rem; margin-bottom: 2rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 72px; z-index: 20;
}
.docs-search {
  flex: 1 1 260px;
  position: relative; display: flex; align-items: center;
}
.docs-search svg {
  position: absolute; left: .85rem; width: 18px; height: 18px;
  color: var(--color-text-muted); pointer-events: none;
}
.docs-search input {
  width: 100%;
  padding: .7rem 1rem .7rem 2.5rem;
  font: inherit; font-size: .97rem;
  background: var(--color-bg-soft);
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.docs-search input:focus {
  outline: none; background: #fff;
  border-color: var(--color-accent);
}
.docs-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  padding: .45rem .85rem;
  font-size: .85rem; font-weight: 500;
  font-family: var(--font-body);
  background: var(--color-bg-soft);
  color: var(--color-text);
  border-radius: 100px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chip:hover { background: var(--color-border); }
.chip.is-active { background: var(--color-accent-strong); color: #fff; }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.doc-card[hidden] { display: none; }
.doc-card {
  display: flex; flex-direction: column;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.doc-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-flame-yellow), var(--color-flame-orange), var(--color-flame-red));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.doc-card:hover::before { transform: scaleX(1); }
.doc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: transparent; }
.doc-card__type {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .55rem;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  background: rgba(232,119,34,.12);
  color: var(--color-accent-strong);
  border-radius: 3px;
  margin-bottom: .75rem;
  align-self: flex-start;
}
.doc-card h3 {
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 700;
  margin: 0 0 .35rem; text-transform: none; letter-spacing: 0;
}
.doc-card p { font-size: .9rem; color: var(--color-text-muted); margin: 0 0 1rem; }
.doc-card__footer {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem;
  font-size: .82rem; color: var(--color-text-muted);
}
.doc-card__btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .8rem;
  font-size: .82rem; font-weight: 600;
  color: #fff; background: var(--color-text);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background var(--dur-fast) var(--ease);
}
.doc-card__btn:hover { background: var(--color-accent-strong); color: #fff; }

.doc-empty {
  display: none;
  padding: 3rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.doc-empty.is-visible { display: block; }

/* ---------- Book order form ---------- */
.order-form .order-form__section {
  margin-bottom: 2rem;
}
.order-form__heading {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 .75rem;
}
.order-form__hint {
  font-size: .9rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}
.order-form__books {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.order-form__book {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem .9rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.order-form__book.has-qty {
  border-color: var(--color-accent-strong);
  background: #fff8f0;
}
.order-form__book-main {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex: 1 1 auto;
  cursor: pointer;
  min-width: 0;
}
.order-form__thumb {
  flex: 0 0 auto;
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 3px;
  background: #f3efe6;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.order-form__book-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.order-form__book-title {
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.25;
}
.order-form__book-note {
  font-size: .78rem;
  color: var(--color-text-muted);
}
.order-form__qty {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  flex: 0 0 auto;
}
.order-form__qty-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  padding: 0;
  background: var(--color-bg-soft, #f5f2eb);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.order-form__qty-btn:hover {
  background: #fff;
  border-color: var(--color-text);
}
.order-form__qty input[type="number"] {
  width: 56px;
  height: 32px;
  text-align: center;
  padding: 0 .25rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: .95rem;
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
}
.order-form__qty input[type="number"]::-webkit-outer-spin-button,
.order-form__qty input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
@media (max-width: 560px) {
  .order-form__book { flex-wrap: wrap; padding: .65rem; gap: .65rem; }
  .order-form__book-main { width: 100%; }
  .order-form__qty { margin-left: auto; }
  .order-form__thumb { width: 40px; height: 54px; }
}

/* ---------- Books page CTAs ---------- */
.book-actions {
  display: flex; flex-wrap: wrap;
  gap: 1rem 1.5rem; align-items: center;
  margin: 1.5rem 0 2.5rem;
}
.book-actions__folder {
  font-weight: 500;
  color: var(--color-accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.book-actions__folder:hover { color: var(--color-flame-orange); }

/* ---------- Interactive bookshelf ---------- */
.bookshelf {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fbf8f2;
  padding: 1.75rem 1.5rem 1.25rem;
  /* Offset for sticky .site-header so scrollIntoView (called when a book
     is opened) lands the widget below the header, not under it. */
  scroll-margin-top: 90px;
}
.bookshelf__hint {
  margin: 0 0 1.25rem;
  font-size: .85rem;
  color: var(--color-text-muted);
  text-align: center;
}
.bookshelf__shelf-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding-bottom: 0;
  min-height: 400px;
}
.bookshelf__floor {
  height: 6px;
  background: #5a3a25;
  border-radius: 2px;
  margin-top: -2px;
  box-shadow: 0 6px 12px -8px rgba(0,0,0,.35);
}
.bookshelf__spine {
  position: relative;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border: 0.5px solid rgba(0,0,0,.25);
  border-radius: 3px 3px 0 0;
  padding: 0;
  cursor: pointer;
  background-color: currentColor;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.bookshelf__spine:hover,
.bookshelf__spine:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px -10px rgba(0,0,0,.45);
  outline: none;
}
.bookshelf__spine:focus-visible { box-shadow: 0 0 0 2px var(--color-accent-strong), 0 8px 16px -10px rgba(0,0,0,.45); }
.bookshelf__spine-label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 14px 0;
  box-sizing: border-box;
  pointer-events: none;
  color: inherit;
}
.bookshelf__spine-title {
  writing-mode: vertical-rl;
  font-family: Georgia, "EB Garamond", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  max-height: 78%;
  overflow: hidden;
  text-shadow: 0 0 4px rgba(0,0,0,.4), 0 1px 0 rgba(0,0,0,.3);
}
.bookshelf__spine-author {
  writing-mode: vertical-rl;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: nowrap;
  opacity: .9;
  text-shadow: 0 0 4px rgba(0,0,0,.4), 0 1px 0 rgba(0,0,0,.3);
}
/* When the spine has no background image, the solid bgColor backdrop is enough — drop shadow weight */
.bookshelf__spine:not(.bookshelf__spine--has-image) .bookshelf__spine-title,
.bookshelf__spine:not(.bookshelf__spine--has-image) .bookshelf__spine-author {
  text-shadow: none;
  font-size: 15px;
}
.bookshelf__spine:not(.bookshelf__spine--has-image) .bookshelf__spine-author {
  font-size: 12px;
}

/* ---------- Bookshelf — face-out cover grid (front cover only) ---------- */
.bookshelf__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.75rem 1.25rem;
  padding: 0.5rem 0 0.5rem;
}
.bookshelf__cover-tile {
  position: relative;
  aspect-ratio: 3 / 4.4;
  /* Cover images are the full print spread (back | spine | front cover).
     Anchor to the right edge so only the front cover is visible. */
  background: #ddd right center / cover no-repeat;
  border: 0;
  border-radius: 2px 5px 5px 2px;
  box-shadow:
    -2px 2px 0 rgba(0,0,0,.08),
    -4px 3px 0 rgba(0,0,0,.05),
    4px 8px 18px -8px rgba(0,0,0,.4);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bookshelf__cover-tile:hover,
.bookshelf__cover-tile:focus-visible {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow:
    -2px 2px 0 rgba(0,0,0,.08),
    -4px 3px 0 rgba(0,0,0,.05),
    6px 14px 24px -10px rgba(0,0,0,.45);
  outline: none;
}
.bookshelf__cover-tile:focus-visible {
  box-shadow:
    -2px 2px 0 rgba(0,0,0,.08),
    -4px 3px 0 rgba(0,0,0,.05),
    0 0 0 2px var(--color-accent-strong),
    6px 14px 24px -10px rgba(0,0,0,.45);
}
/* Faux spine shadow on the left edge */
.bookshelf__cover-tile::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: rgba(0,0,0,.18);
  border-radius: 2px 0 0 2px;
  pointer-events: none;
}
.bookshelf__cover-tile-text {
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.bookshelf__cover-tile--has-image > .bookshelf__cover-tile-text {
  display: none;
}
.bookshelf__cover-tile-title {
  font-family: Georgia, "EB Garamond", serif;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.bookshelf__cover-tile-author {
  font-family: Georgia, serif;
  font-size: 0.78rem;
  opacity: 0.9;
  margin-top: 0.35rem;
}
@media (prefers-reduced-motion: reduce) {
  .bookshelf__cover-tile,
  .bookshelf__cover-tile:hover,
  .bookshelf__cover-tile:focus-visible { transition: none; transform: none; }
}

/* Spread view */
.bookshelf__spread-view { display: none; }
.bookshelf.is-open .bookshelf__shelf-view { display: none; }
.bookshelf.is-open .bookshelf__spread-view {
  display: block;
  animation: bookshelf-fade-up 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes bookshelf-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.bookshelf__back {
  display: inline-flex; align-items: center; gap: .4rem;
  margin: 0 0 1.25rem;
  padding: .55rem 1rem .55rem .75rem;
  font-family: var(--font-head);
  font-size: .85rem; letter-spacing: .05em;
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.bookshelf__back:hover,
.bookshelf__back:focus-visible {
  background: #fff;
  border-color: var(--color-text);
  outline: none;
}
.bookshelf__spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
}
.bookshelf__spread::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 0.5px;
  background: rgba(0,0,0,.15);
}
.bookshelf__cover {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.75rem 1.5rem;
  min-height: 480px;
  overflow: hidden;
}
.bookshelf__cover-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #f6f4f0;
  display: block;
}
.bookshelf__cover--has-image > :not(.bookshelf__cover-img) { display: none; }
.bookshelf__kind {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: none;
  opacity: .75;
}
.bookshelf__cover-main {
  margin-top: auto;
  display: flex; flex-direction: column;
  gap: .5rem;
}
.bookshelf__title {
  font-family: Georgia, "EB Garamond", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
}
.bookshelf__author {
  font-size: 14px;
  margin: 0;
  opacity: .85;
}
.bookshelf__year {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  font-size: 11px;
  letter-spacing: 0.15em;
  opacity: .75;
}
.bookshelf__page {
  position: relative;
  padding: 1.75rem 1.75rem 2.25rem;
  background: #fffdf8;
  color: var(--color-text);
  min-height: 480px;
  display: flex; flex-direction: column;
}
.bookshelf__chapter-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #767065;
  margin: 0 0 .35rem;
}
.bookshelf__chapter-title {
  font-family: Georgia, "EB Garamond", serif;
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text);
}
.bookshelf__excerpt {
  font-family: Georgia, "EB Garamond", serif;
  font-size: 15px;
  line-height: 1.7;
  color: #2b2b2b;
  margin: 0;
}
.bookshelf__excerpt--has-text::first-letter {
  float: left;
  font-size: 42px;
  line-height: 0.9;
  margin: 4px 6px 0 0;
  font-weight: 500;
}
.bookshelf__page-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem;
}
.bookshelf__page-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--color-accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bookshelf__page-link:hover { color: var(--color-flame-orange); }
.bookshelf__page-number {
  font-family: Georgia, serif;
  font-size: 12px;
  color: #767065;
}

@media (max-width: 520px) {
  .bookshelf { padding: 1.25rem 1rem 1rem; }
  .bookshelf__shelf-row {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .25rem;
  }
  .bookshelf__spread { grid-template-columns: 1fr; }
  .bookshelf__spread::before {
    top: auto; left: 0; right: 0;
    width: auto; height: 0.5px;
    top: 50%;
  }
  .bookshelf__cover { min-height: 240px; }
  .bookshelf__page { min-height: 280px; padding: 1.25rem 1.25rem 1.75rem; }
  .bookshelf__year { bottom: 1rem; right: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bookshelf__spine,
  .bookshelf__spine:hover,
  .bookshelf__spine:focus-visible { transition: none; transform: none; }
  .bookshelf.is-open .bookshelf__spread-view { animation: none; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; gap: .3rem;
  font-family: var(--font-head);
  font-size: .82rem; letter-spacing: .08em;
  color: var(--color-text-muted);
}
.crumbs a { color: var(--color-text-muted); }
.crumbs a:hover { color: var(--color-accent-strong); }
.crumbs span:not(:last-child)::after { content: "/"; margin-inline-start: .35rem; opacity: .5; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; margin-inline: auto; }
.prose h2, .prose h3 {
  font-family: var(--font-head);
  margin-top: 2rem;
}
.prose blockquote {
  margin: 1.5rem 0;
  text-align: center;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--color-accent-strong);
  background: var(--color-bg-soft);
  font-style: italic;
  color: var(--color-text);
}
.prose ul li, .prose ol li { margin-bottom: .4rem; }

/* ---------- Verse / pullquote block ---------- */
.verse {
  max-width: 780px; margin: 2rem auto;
  text-align: center;
  padding: 2rem 2.5rem;
  background: #fff;
  border-left: 5px solid var(--color-accent-strong);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
  font-style: italic;
}
.verse cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-head);
  letter-spacing: .1em;
  color: var(--color-accent-strong);
  font-style: normal;
  font-size: .95rem;
}

/* ---------- Emoji ministries strip ---------- */
.pillars {
  max-width: 900px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  line-height: 2;
  text-align: center;
  color: var(--color-text);
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #5e4528; color: #e9d9bf;
  padding: 3rem 0 1.5rem;
  font-size: .93rem;
}
.site-footer .muted { color: #d8cba9; }
.site-footer a { color: #f0c989; }
.site-footer a:hover { color: var(--color-flame-orange); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4,
.footer-grid .footer-heading {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .15em;
  color: #fff; margin-bottom: 1rem;
  margin-top: 0;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .85rem; color: #d8cba9;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* ---------- Animations ---------- */
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-0.3deg); filter: brightness(1); }
  45%      { transform: scale(1.04) rotate(0.6deg); filter: brightness(1.1); }
  70%      { transform: scale(0.98) rotate(-0.4deg); filter: brightness(0.95); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .section-hero__title, .section-hero__subtitle { opacity: 1; transform: none; animation: none; }
}
                                                                                                                                                                                                               
  /* Flame icon sizing overrides */
  .brand__mark { width: auto; height: 48px; }
  .home-hero__flame { width: auto; height: 360px; }

/* ---------- Interactive leader map (Netzwerk) ---------- */
.leader-map-hint {
  text-align: center;
  font-size: .92rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}
.leader-map-wrap {
  position: relative;
  margin: 0 0 2.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  background: #f3eee5;
}
.leader-map-wrap::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--color-flame-yellow), var(--color-flame-orange), var(--color-flame-red));
  z-index: 401;
  pointer-events: none;
}
.leader-map {
  width: 100%;
  height: clamp(420px, 62vh, 640px);
  background: #f3eee5;
  font-family: var(--font-body);
}
.leader-map .leaflet-tile-pane {
  filter: sepia(.42) saturate(.78) brightness(1.02) hue-rotate(-6deg);
}
.leader-map .leaflet-control-attribution {
  font-family: var(--font-body);
  font-size: .7rem;
  background: rgba(255,255,255,.85);
  color: #555;
}
.leader-map .leaflet-control-attribution a { color: var(--color-link); }
.leader-map .leaflet-bar a {
  font-family: var(--font-head);
  color: var(--color-text);
  background: #fff;
  border-bottom-color: var(--color-border);
}
.leader-map .leaflet-bar a:hover {
  color: var(--color-accent-strong);
  background: var(--color-bg-soft);
}

/* Flame marker (uses flamme.svg) */
.flame-marker {
  position: relative;
  pointer-events: auto;
  cursor: pointer;
  background: transparent !important;
  border: 0 !important;
}
.flame-marker img {
  display: block;
  width: 28px;
  height: 36px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)) drop-shadow(0 0 6px rgba(244,196,48,.55));
  transform-origin: center bottom;
  animation: flameMarkerFlicker 3.6s ease-in-out infinite;
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.flame-marker:hover img,
.flame-marker:focus img {
  transform: scale(1.18);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)) drop-shadow(0 0 14px rgba(244,196,48,.85));
}
.flame-marker__halo {
  position: absolute;
  left: 50%; bottom: 0;
  width: 28px; height: 14px;
  transform: translate(-50%, 50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244,196,48,.55), rgba(232,119,34,.2) 60%, transparent 80%);
  pointer-events: none;
  animation: flameMarkerHalo 2.6s ease-out infinite;
}
.flame-marker--anchor img { width: 40px; height: 52px; }
.flame-marker--anchor .flame-marker__halo { width: 38px; }

@keyframes flameMarkerFlicker {
  0%, 100% { transform: scaleY(1) rotate(-.6deg); }
  50%      { transform: scaleY(1.06) rotate(.6deg); }
}
@keyframes flameMarkerHalo {
  0%   { transform: translate(-50%, 50%) scale(.7); opacity: .9; }
  100% { transform: translate(-50%, 50%) scale(2.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flame-marker img, .flame-marker__halo { animation: none !important; }
}

/* ---------- Mobile: tighten oversized section blocks ---------- */
@media (max-width: 720px) {
  /* Subpage hero (Über uns, Gottesdienst, Kontakt, Impressum, Dokumente …) */
  .section-hero {
    min-height: clamp(140px, 26vh, 220px);
    padding: 1.75rem 1rem;
  }
  .section-hero__title {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }
  .section-hero__subtitle {
    margin-top: .6rem;
    font-size: clamp(.95rem, 3.4vw, 1.15rem);
    max-width: 28ch;
  }

  /* Homepage scroll-tiles (ÜBER UNS, UNSER GOTTESDIENST, …) */
  .section-hero--water {
    min-height: clamp(120px, 18vh, 180px);
    padding: 1.25rem 1rem;
  }

  /* Inner content sections — less cavernous vertical padding */
  .section { padding: clamp(1.75rem, 5vh, 2.75rem) 0; }
  .section__head { margin-bottom: 1.5rem; }
  .h-underline {
    font-size: clamp(1.55rem, 6.5vw, 2.2rem);
    margin-bottom: 1em;
  }

  /* Donate / contact panel — labels were too wide for narrow screens, pushing values off */
  .donate-panel { padding: 1.25rem; }
  .donate-panel__row {
    gap: .15rem .75rem;
    padding: .5rem 0;
  }
  .donate-panel__label { min-width: 0; }
  .donate-panel__value { font-size: .95rem; }

  /* Service cards — center on narrow column for visual balance */
  .service-card { padding: 1.25rem; text-align: center; }
  .service-card__when { font-size: 1.4rem; }
  .service-times { gap: 1rem; margin-top: 1.5rem; }

  /* Leader cards */
  .leader-card { padding: 1.25rem; }
  .leader-grid { gap: 1rem; margin-top: 1.5rem; }

  /* Verse pullquote */
  .verse {
    padding: 1.25rem 1.25rem;
    font-size: 1rem;
    margin: 1.5rem auto;
  }

  /* Pillars strip */
  .pillars {
    padding: .85rem 1rem;
    font-size: .98rem;
    line-height: 1.85;
  }

  /* Homepage hero — keep welcome text from looking oversized */
  .hero-map__welcome { font-size: 1.05rem; }
  .home-hero__welcome { font-size: 1.05rem; }
}

/* Cluster icon — flame-themed */
.flame-cluster-wrap { background: transparent !important; border: 0 !important; }
.flame-cluster {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, var(--color-flame-yellow), var(--color-flame-orange) 55%, var(--color-flame-red) 100%);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,255,255,.7), 0 4px 14px rgba(200,53,44,.35);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  letter-spacing: .02em;
  transition: transform var(--dur-fast) var(--ease);
}
.flame-cluster-wrap:hover .flame-cluster { transform: scale(1.08); }

/* Popup */
.leaflet-popup.flame-popup-wrap .leaflet-popup-content-wrapper {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--color-accent-strong);
  padding: 0;
  overflow: hidden;
}
.leaflet-popup.flame-popup-wrap .leaflet-popup-content {
  margin: 0;
  width: 280px !important;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.5;
}
.leaflet-popup.flame-popup-wrap .leaflet-popup-tip {
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,.18);
}
.leaflet-popup.flame-popup-wrap .leaflet-popup-close-button {
  font-size: 18px;
  padding: 0;
  width: 24px; height: 24px;
  line-height: 22px;
  text-align: center;
  color: #fff;
  background: rgba(0,0,0,.45);
  border-radius: 50%;
  top: 8px; right: 8px;
  transition: background var(--dur-fast) var(--ease);
}
.leaflet-popup.flame-popup-wrap .leaflet-popup-close-button:hover {
  background: var(--color-accent-strong);
  color: #fff;
}

.flame-popup__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-bg-soft);
}
.flame-popup__photo--contain {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}
.flame-popup__photo--missing {
  display: grid;
  place-items: center;
  height: 110px;
  background: linear-gradient(135deg, rgba(244,196,48,.18), rgba(232,119,34,.18));
  color: var(--color-accent-strong);
  font-family: var(--font-head);
  letter-spacing: .12em;
  font-size: .85rem;
  text-transform: uppercase;
}
.flame-popup__body { padding: .9rem 1rem 1rem; }
.flame-popup__country {
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
  margin-bottom: .25rem;
}
.flame-popup__body h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin: 0 0 .25rem;
  color: var(--color-text);
}
.flame-popup__where {
  font-size: .85rem;
  color: var(--color-text-muted);
  margin: 0 0 .5rem;
}
.flame-popup__contact {
  list-style: none; margin: 0 0 .5rem; padding: 0;
  font-size: .85rem;
  display: grid; gap: .2rem;
}
.flame-popup__contact a { word-break: break-all; }
.flame-popup__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.flame-popup__tag {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-head);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--color-text);
  color: #fff;
  border-radius: 3px;
}
.flame-popup__tag--leader { background: var(--color-accent-strong); }
.flame-popup__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .65rem;
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}
.flame-popup__link::after { content: " ↓"; }

/* Highlight directory entry when navigated from a popup */
@keyframes directoryFlash {
  0%   { box-shadow: 0 0 0 0 rgba(200,53,44,0); }
  25%  { box-shadow: 0 0 0 5px rgba(200,53,44,.28); background-color: #fff7f3; }
  100% { box-shadow: 0 0 0 0 rgba(200,53,44,0); }
}
.directory__item--flash { animation: directoryFlash 1.6s ease-out both; }

/* ---------- Prayer-request form ---------- */
.prayer-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
/* Panel holds all interactive fields. Transforms separately from the form
   so the dove overlay (also a child of form) stays at full size. */
.prayer-form__panel {
  display: grid;
  gap: 1.1rem;
}
.prayer-form__row { display: grid; gap: .35rem; }
.prayer-form label {
  font-family: var(--font-head);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text);
}
.prayer-form .optional,
.prayer-form .required {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .03em;
  text-transform: none;
  margin-left: .35rem;
}
.prayer-form .optional {
  color: var(--color-text-muted);
  opacity: .7;
}
.prayer-form .required {
  color: var(--color-accent-strong);
}
.prayer-form input[type="text"],
.prayer-form input[type="email"],
.prayer-form textarea {
  width: 100%;
  font: inherit;
  padding: .7rem .85rem;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.prayer-form input[type="text"]:focus,
.prayer-form input[type="email"]:focus,
.prayer-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-flame-orange);
  box-shadow: 0 0 0 3px rgba(232,119,34,.18);
}
.prayer-form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.55;
}
.prayer-form__check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-family: var(--font-body);
  font-size: .9rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  cursor: pointer;
}
.prayer-form__check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.1rem; height: 1.1rem;
  margin-top: .15rem;
  accent-color: var(--color-accent-strong);
  cursor: pointer;
}
.prayer-form__check span { color: var(--color-text); }
.prayer-form__check small {
  display: block;
  color: var(--color-text-muted);
  opacity: .75;
  font-size: .82rem;
  margin-top: .15rem;
}
.prayer-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}
.prayer-form__actions {
  display: flex;
  justify-content: center;
  margin-top: .35rem;
}
.prayer-form__note {
  font-size: .85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0 0 .5rem;
  opacity: .8;
}
.prayer-form__status {
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  text-align: center;
  margin-bottom: 1rem;
}
.prayer-form__status--ok {
  background: #ecf7ec;
  border: 1px solid #b6dcb6;
  color: #245f24;
}
.prayer-form__status--error,
.prayer-form__status--invalid {
  background: #fdecec;
  border: 1px solid #f0b6b6;
  color: #8a2222;
}

/* Inline field error states (client-side validation) */
.prayer-form__row.has-error label { color: var(--color-accent-strong); }
.prayer-form__row.has-error input[type="text"],
.prayer-form__row.has-error input[type="email"],
.prayer-form__row.has-error textarea {
  border-color: var(--color-accent-strong);
  background: #fff5f5;
}
.prayer-form__row.has-error input[type="text"]:focus,
.prayer-form__row.has-error input[type="email"]:focus,
.prayer-form__row.has-error textarea:focus {
  border-color: var(--color-accent-strong);
  box-shadow: 0 0 0 3px rgba(200, 53, 44, .18);
}
.prayer-form__field-error {
  display: block;
  font-size: .82rem;
  color: var(--color-accent-strong);
  margin-top: .35rem;
}
.prayer-form__check.has-error span { color: var(--color-accent-strong); }
.prayer-form__check.has-error input[type="checkbox"] {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}

/* ---------- Type toggle (Gebetsanliegen / Allgemeiner Kontakt) ---------- */
.prayer-form__type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  padding: .35rem;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.prayer-form__type input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.prayer-form__type label {
  display: block;
  text-align: center;
  padding: .65rem .75rem;
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.prayer-form__type label:hover { color: var(--color-text); }
.prayer-form__type input[type="radio"]:checked + label {
  background: #fff;
  color: var(--color-accent-strong);
  box-shadow: var(--shadow-sm);
}
.prayer-form__type input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--color-flame-orange);
  outline-offset: 2px;
}

/* Hide confidential check + change label when in Kontakt mode (toggled via class) */
.prayer-form.is-kontakt .prayer-form__only-gebet { display: none; }

/* ---------- Ascend animation: form transforms into dove ---------- */
.prayer-form { position: relative; }

.prayer-form__panel {
  transform-origin: 50% 50%;
  transition:
    transform 700ms cubic-bezier(.5, 0, .8, .15),
    opacity   600ms ease,
    filter    600ms ease;
}
.prayer-form.is-sending .prayer-form__panel {
  transform: scale(.4);
  opacity: 0;
  filter: blur(3px);
  pointer-events: none;
}

/* Overlay layer holding the dove — sits centered over the form's box */
.prayer-ascend {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}

.prayer-ascend { overflow: visible; }

/* Outer wrap: handles emergence (scale 0 → 1) and ascent out of the form.
   Width is set HERE (not on the img) so the wrap has a deterministic box
   that the flex parent can center correctly. */
.prayer-ascend__dove-wrap {
  display: block;
  width: clamp(150px, 36%, 220px);
  transform-origin: 50% 70%;
  animation: dove-rise 2.9s cubic-bezier(.3, 0, .2, 1) forwards;
  will-change: transform, opacity;
}

/* Inner img: fills the wrap, keeps aspect ratio, handles wing-flap rotation. */
.prayer-ascend__dove {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 22px rgba(159, 192, 232, .8))
    drop-shadow(0 10px 26px rgba(159, 192, 232, .45));
  animation: dove-flap .55s 0.45s ease-in-out infinite alternate;
  transform-origin: 50% 80%;
}

@keyframes dove-rise {
  /* Phase 1 — emerge from form center */
  0%   { transform: translate(0, 0)        scale(.08); opacity: 0; }
  14%  { transform: translate(0, 0)        scale(1);   opacity: 1; }
  /* Phase 2 — gentle climb still inside form */
  32%  { transform: translate(8px, -60px)  scale(1);   opacity: 1; }
  /* Phase 3 — pierce the top of the form, swerving softly */
  55%  { transform: translate(-14px, -220px) scale(.95); opacity: 1; }
  /* Phase 4 — soar away, shrinking into the sky */
  80%  { transform: translate(20px, -440px) scale(.7);  opacity: .8; }
  100% { transform: translate(-6px, -640px) scale(.35); opacity: 0; }
}

@keyframes dove-flap {
  0%   { transform: rotate(-5deg) scaleY(1); }
  100% { transform: rotate( 5deg) scaleY(.93); }
}

@media (prefers-reduced-motion: reduce) {
  .prayer-form { transition: opacity 300ms ease; }
  .prayer-form.is-sending { transform: none; filter: none; }
  .prayer-ascend__dove-wrap {
    animation: dove-rise-soft 1.4s ease-out forwards;
  }
  .prayer-ascend__dove { animation: none; }
  @keyframes dove-rise-soft {
    0%   { opacity: 0; transform: scale(.6); }
    25%  { opacity: 1; transform: scale(1);  }
    100% { opacity: 0; transform: scale(.7) translateY(-60px); }
  }
}

/* ---------- Document search iframe ---------- */
.suche-frame {
  display: block;
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* ---------- Anniversary ribbon (20 Jahre / 20 години) ---------- */
.anniversary-ribbon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .85rem 2rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, var(--color-flame-yellow), var(--color-flame-orange), var(--color-flame-red));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(232,119,34,.5), inset 0 1px 0 rgba(255,255,255,.28);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  animation: anniversaryPulse 2.8s ease-in-out infinite;
}
.anniversary-ribbon__main {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.1;
}
.anniversary-ribbon__dates {
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .95;
}
.anniversary-ribbon__mark {
  font-size: 1.4rem;
  line-height: 1;
}
@keyframes anniversaryPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(232,119,34,.5),  inset 0 1px 0 rgba(255,255,255,.28); }
  50%      { box-shadow: 0 8px 34px rgba(232,119,34,.75), inset 0 1px 0 rgba(255,255,255,.4); }
}
@media (max-width: 600px) {
  .anniversary-ribbon { padding: .65rem 1.25rem; }
  .anniversary-ribbon__main { font-size: 1.2rem; }
  .anniversary-ribbon__dates { font-size: .8rem; }
  .anniversary-ribbon__mark { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .anniversary-ribbon { animation: none; }
}
