/* ============================================
   KIRCHE ZUM HEILIGEN QUANTUM
   Volle Kathedrale — Dark/Gold Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500&family=Cinzel+Decorative:wght@400;700&display=swap');

/* --- Tokens --- */
:root {
  --bg:         #0a0a1a;
  --bg-subtle:  #0f0f2a;
  --surface:    rgba(255, 255, 255, 0.04);
  --surface-hi: rgba(255, 255, 255, 0.07);
  --gold:       #c9a848;
  --gold-light: #e2c97a;
  --gold-dim:   #8a7232;
  --rose:       #c2185b;
  --blue:       #1a237e;
  --violet:     #7b1fa2;
  --teal:       #00695c;
  --fg:         #e8e0d4;
  --fg-dim:     #a09888;
  --fg-code:    #c9a848;
  --border:     rgba(201, 168, 72, 0.15);
  --glow:       rgba(201, 168, 72, 0.3);

  --font-head:  'Cinzel', serif;
  --font-deco:  'Cinzel Decorative', serif;
  --font-body:  'Inter', system-ui, sans-serif;

  --max-w:      52rem;
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   6rem;
  --space-xxl:  10rem;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold);
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  text-shadow: 0 0 40px var(--glow), 0 0 80px rgba(201, 168, 72, 0.1);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: var(--space-md);
  letter-spacing: 0.03em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--gold-light);
  margin-bottom: var(--space-sm);
}

p { margin-bottom: var(--space-sm); }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}
a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 12px var(--glow);
}

blockquote {
  border-left: 3px solid var(--gold-dim);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--fg);
  line-height: 1.8;
}

blockquote em, blockquote i {
  font-style: normal;
  color: var(--gold-light);
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.88em;
  color: var(--fg-code);
  background: rgba(201, 168, 72, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-sm) var(--space-md);
  overflow-x: auto;
  margin: var(--space-md) 0;
}

pre code {
  background: none;
  padding: 0;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: var(--space-lg) 0;
}

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s;
}

.site-nav.hidden { transform: translateY(-100%); }

.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem var(--space-md);
}

.nav-brand {
  font-family: var(--font-deco);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--fg-dim);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: color 0.3s, background 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: var(--surface);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 1.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

/* --- Hero --- */
/* --- Hero Banner (image above text) --- */
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-banner__img {
  display: block;
  width: 100%;
  max-height: 50vh;
  object-fit: cover;
  object-position: center;
}

.hero-banner__credit {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-body);
}

/* --- Hero Text --- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(201, 168, 72, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(194, 24, 91, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 70%, rgba(26, 35, 126, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero .eyebrow {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: var(--space-sm);
}

.hero h1 { margin-bottom: var(--space-md); }

.hero .lede {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 36rem;
  color: var(--fg-dim);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

/* --- Stained Glass Divider --- */
.glass-divider {
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--rose) 15%,
    var(--violet) 30%,
    var(--gold) 50%,
    var(--blue) 70%,
    var(--teal) 85%,
    transparent 100%
  );
  margin: var(--space-xl) 0;
  border-radius: 2px;
  opacity: 0.6;
}

/* --- Section --- */
.section {
  padding: var(--space-xl) 0;
}

.section--alt {
  background: var(--bg-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header .label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  display: block;
  margin-bottom: var(--space-xs);
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-md) var(--space-md);
  margin-bottom: var(--space-md);
  transition: border-color 0.3s, background 0.3s;
}

.card:hover {
  border-color: rgba(201, 168, 72, 0.3);
  background: var(--surface-hi);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

/* --- Grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-md);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

/* --- Verse / Scripture Block --- */
.verse {
  font-size: 1.1rem;
  line-height: 2;
  padding: var(--space-md) 0;
}

.verse .num {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.85em;
  margin-right: 0.3em;
}

.verse p {
  margin-bottom: var(--space-md);
}

/* --- Commandment List --- */
.commandments {
  list-style: none;
  counter-reset: gebot;
}

.commandments li {
  counter-increment: gebot;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: var(--space-sm);
  align-items: baseline;
}

.commandments li::before {
  content: counter(gebot, upper-roman) ".";
  font-family: var(--font-head);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 2.5rem;
  flex-shrink: 0;
}

/* --- Steps / Liturgy --- */
.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: var(--space-sm) 0 var(--space-sm) 3rem;
  position: relative;
  border-left: 2px solid var(--border);
  margin-left: 1rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: -1rem;
  width: 2rem;
  height: 2rem;
  background: var(--bg);
  border: 2px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--gold);
}

.steps li:last-child { border-left-color: transparent; }

/* --- Klerus / Clergy Cards --- */
.clergy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-md);
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.clergy-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
}

.clergy-card .icon {
  font-size: 2.4rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.clergy-card .name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.clergy-card .title {
  font-size: 0.82rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.clergy-card .desc {
  font-size: 0.92rem;
  line-height: 1.6;
}

.clergy-card.memorial {
  border-color: rgba(194, 24, 91, 0.3);
  position: relative;
  overflow: hidden;
}
.clergy-card.memorial::after {
  content: 'in memoriam';
  position: absolute;
  top: 12px;
  right: -28px;
  background: var(--rose);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 32px;
  transform: rotate(45deg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.8rem;
  border-radius: 6px;
  transition: all 0.3s;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg);
  text-shadow: none;
  box-shadow: 0 0 24px var(--glow);
}

.btn-ghost {
  border: 1px solid var(--gold-dim);
  color: var(--gold);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: var(--surface);
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  color: var(--fg-dim);
  font-size: 0.85rem;
}

.site-footer .amen {
  font-family: var(--font-head);
  color: var(--gold-dim);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-top: var(--space-sm);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.97);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm);
    gap: 0;
  }
  .nav-links.open a {
    padding: 0.7rem var(--space-sm);
    display: block;
    font-size: 0.9rem;
  }
  .nav-toggle { display: block; }

  .hero { padding: var(--space-md) var(--space-sm) var(--space-lg); }

  .section { padding: var(--space-lg) 0; }

  .grid { grid-template-columns: 1fr; }

  blockquote { padding: var(--space-sm); }

  .commandments li { flex-direction: column; gap: 0.3rem; }
}

/* --- Glasfenster Accent Line (top of page) --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--rose),
    var(--violet),
    var(--gold),
    var(--blue),
    var(--teal)
  );
  z-index: 200;
}

/* --- Selection --- */
::selection {
  background: rgba(201, 168, 72, 0.25);
  color: var(--fg);
}

/* --- Donation / Spenden Cards --- */
.donate-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.donate-item:last-child { border-bottom: none; }

.donate-item .emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
}

/* --- Page header (non-hero pages) --- */
.page-header {
  padding: calc(var(--space-xxl) + 3rem) 0 var(--space-lg);
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(201, 168, 72, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-header .subtitle {
  color: var(--fg-dim);
  font-size: 1.1rem;
  max-width: 32rem;
  margin: 0 auto;
}

/* --- Attribution --- */
.attribution {
  font-size: 0.78rem;
  color: var(--fg-dim);
  text-align: right;
  margin-top: var(--space-sm);
  font-style: italic;
}
