/* ═══════════════════════════════════════════════
   elia – Kirche für Lippe
   Shared Stylesheet
   Colors: #8d9ca3 · #444242 · #a1a185 · #c0b1a0 · #f8f8f6
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  /* Core Palette – Corporate Design */
  --cream:       #EDE7DC;   /* warm cream */
  --cream-dark:  #C0B1A0;   /* brand: warm taupe */
  --stone:       #A1A185;   /* brand: olive stone */
  --stone-dark:  #7A7A65;   /* derived: darker stone */
  --sage:        #A1A185;   /* brand: olive stone */
  --sage-light:  #BFBFAA;   /* derived: lighter stone */
  --blue-grey:   #8D9CA3;   /* brand: blue-grey */
  --blue-dark:   #6A7D86;   /* derived: deeper blue-grey */
  --charcoal:    #444242;   /* brand: dark charcoal */
  --charcoal-mid:#676363;   /* derived: mid charcoal */
  --white:       #F8F8F6;   /* brand: near white */
  --off-white:   #F2EDE4;   /* warm off-white */

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'Montserrat', sans-serif;
  --font-accent:  'The Seasons', 'Playfair Display', Georgia, serif; /* self-host The Seasons font file to activate */

  /* Spacing */
  --nav-h: 76px;
  --max-w: 1200px;
  --section-pad: 5rem 4rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(4rem, calc((100% - var(--max-w)) / 2));
  background: rgba(242, 237, 228, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(122,122,106,0.15);
  transition: background 0.3s;
}

.nav-logo {
  text-decoration: none;
  display: flex; align-items: center;
}
.nav-logo-img {
  height: 36px; width: auto;
  display: block;
  filter: brightness(0) opacity(0.62);
}

.nav-menu {
  display: flex; align-items: center; gap: 0; list-style: none;
}
.nav-item { position: relative; }

.nav-link {
  display: block; padding: 0 1rem; height: var(--nav-h);
  line-height: var(--nav-h);
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--charcoal-mid); text-decoration: none;
  transition: color 0.2s; white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 1rem; right: 1rem;
  height: 1px; background: var(--stone-dark);
  transform: scaleX(0); transition: transform 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--charcoal); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Dropdown */
.nav-dropdown {
  display: none; position: absolute; top: var(--nav-h); left: 0;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-top: 2px solid var(--stone);
  min-width: 220px; padding: 0.6rem 0;
  box-shadow: 0 12px 40px rgba(58,53,48,0.08);
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 0.7rem 1.4rem;
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--charcoal-mid); text-decoration: none;
  transition: all 0.15s;
}
.nav-dropdown a:hover {
  background: var(--cream); color: var(--charcoal);
  padding-left: 1.8rem;
}

.nav-cta {
  margin-left: 1rem;
  padding: 0.65rem 1.6rem !important;
  height: auto !important; line-height: normal !important;
  background: var(--charcoal) !important;
  color: var(--cream) !important;
  font-size: 0.7rem !important; font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  border-radius: 0 !important;
  transition: background 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--stone-dark) !important; color: var(--white) !important; }

/* Burger button */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 0; flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--charcoal);
  transition: all 0.25s ease;
  transform-origin: center;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav panel */
.nav-mobile {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(242,237,228,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--cream-dark);
  z-index: 199;
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
.nav-mobile.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-mobile-list {
  list-style: none;
  padding: 1rem 1.8rem 2rem;
}
.nav-mobile-list > li > a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--cream-dark);
  transition: color 0.15s;
}
.nav-mobile-list > li > a:hover { color: var(--stone-dark); }
.nav-mobile-group { border-bottom: 1px solid var(--cream-dark); }
.nav-mobile-label {
  display: block;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--stone-dark);
  padding: 1rem 0 0.5rem;
}
.nav-mobile-sub {
  list-style: none;
  padding: 0 0 0.6rem 0.5rem;
}
.nav-mobile-sub li a {
  display: block;
  font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--charcoal-mid); text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.15s;
}
.nav-mobile-sub li a:hover { color: var(--charcoal); }
.nav-mobile-cta-wrap {
  padding: 1.5rem 0 0.5rem;
}
.nav-mobile-cta-wrap a {
  display: inline-block;
  background: var(--charcoal); color: var(--cream);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  transition: background 0.2s;
}
.nav-mobile-cta-wrap a:hover { background: var(--stone-dark); }
.nav-mobile-dev {
  padding: 0.8rem 0 0;
}
.nav-mobile-dev a {
  font-size: 0.72rem; color: var(--sage);
  text-decoration: none; letter-spacing: 0.1em;
  text-transform: uppercase; opacity: 0.85;
}

/* ══════════════════════════════════════════════
   PAGE HERO
══════════════════════════════════════════════ */
.page-hero {
  padding-top: var(--nav-h);
  min-height: 52vh;
  background: var(--charcoal);
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
}
.page-hero-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 70%, rgba(143,160,168,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(142,158,136,0.12) 0%, transparent 50%);
}
.page-hero-inner {
  position: relative; z-index: 2;
  padding: 4rem 4rem 3.5rem;
  max-width: var(--max-w); width: 100%;
  animation: heroIn 0.9s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes heroIn {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}
.hero-eyebrow {
  display: block; margin-bottom: 1.2rem;
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--sage-light);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400; line-height: 1.08;
  color: var(--cream); margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}
.page-hero h1 em { font-style: normal; color: rgba(242,237,228,0.55); }
.page-hero p {
  font-size: 0.95rem; font-weight: 300;
  color: rgba(242,237,228,0.55); line-height: 1.8;
  max-width: 520px;
}

/* ══════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════ */
.breadcrumb {
  padding: 1rem 4rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--stone-dark);
}
.breadcrumb a { color: var(--stone-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--charcoal); }
.breadcrumb span { opacity: 0.5; margin: 0 0.5rem; }

/* ══════════════════════════════════════════════
   SECTION UTILITIES
══════════════════════════════════════════════ */
.section { padding: var(--section-pad); position: relative; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-inner--narrow { max-width: 800px; margin: 0 auto; }

.section-bg-cream  { background: var(--cream); }
.section-bg-white  { background: var(--white); }
.section-bg-off    { background: var(--off-white); }
.section-bg-dark   { background: var(--charcoal); }
.section-bg-stone  { background: var(--stone); }
.section-bg-sage   { background: #EEF0EC; }  /* very light sage */

.eyebrow {
  display: block; margin-bottom: 1rem;
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone-dark);
}
.eyebrow--light { color: var(--sage-light); }

h2.display {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400; line-height: 1.2;
  color: var(--charcoal); margin-bottom: 1.2rem;
}
h2.display--light { color: var(--cream); }
h2.display em { font-style: normal; color: var(--stone-dark); }

.lead {
  font-size: 0.95rem; font-weight: 300;
  line-height: 1.85; color: var(--charcoal-mid);
  max-width: 620px;
}
.lead--light { color: rgba(242,237,228,0.6); }

.rule {
  width: 40px; height: 1px;
  background: var(--stone);
  margin: 1.4rem 0;
}
.rule--light { background: rgba(242,237,228,0.3); }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: none; transition: all 0.22s ease;
  padding: 0.9rem 2rem;
}
.btn-dark {
  background: var(--charcoal); color: var(--cream);
}
.btn-dark:hover { background: var(--stone-dark); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--cream); }

.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(242,237,228,0.4);
  color: var(--cream);
}
.btn-outline-light:hover { background: rgba(242,237,228,0.1); }

.btn-stone {
  background: var(--stone); color: var(--white);
}
.btn-stone:hover { background: var(--stone-dark); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
  background: var(--charcoal);
  padding: 4rem 4rem 2rem;
  border-top: 1px solid rgba(242,237,228,0.06);
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(242,237,228,0.06);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 400;
  color: var(--cream); margin-bottom: 0.4rem;
}
.footer-tagline {
  font-size: 0.62rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--stone);
  margin-bottom: 1.2rem;
}
.footer-desc {
  font-size: 0.83rem; font-weight: 300;
  color: rgba(242,237,228,0.35); line-height: 1.8;
}
.footer-col h4 {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
  font-size: 0.85rem; font-weight: 300;
  color: rgba(242,237,228,0.4); text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: rgba(242,237,228,0.9); }
.footer-bottom {
  max-width: var(--max-w); margin: 2rem auto 0;
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: rgba(242,237,228,0.2);
}

/* ══════════════════════════════════════════════
   DIENSTE PHOTO PAIR
══════════════════════════════════════════════ */
.photo-pair-section {
  background: var(--off-white);
  padding: 3rem 4rem;
  border-bottom: 1px solid var(--cream-dark);
}
.photo-pair {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.photo-tile {
  height: 360px;
  background-color: var(--cream-dark);
  background-size: cover;
  background-position: center;
}
.photo-tile--empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(68,66,66,0.3);
}

/* ══════════════════════════════════════════════
   DIENSTE LEADER SECTION
══════════════════════════════════════════════ */
.leader-section {
  padding: 5rem 4rem;
  background: var(--cream);
  border-top: 1px solid var(--cream-dark);
}
.leader-section-inner { max-width: var(--max-w); margin: 0 auto; }
.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.leader-card {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.5rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  transition: border-color 0.2s;
}
.leader-card:hover { border-color: var(--stone); }
.leader-photo {
  width: 150px; height: 200px; flex-shrink: 0;
  background: var(--cream-dark);
  position: relative; overflow: hidden;
}
.leader-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(161,161,133,0.15));
}
.leader-body { flex: 1; min-width: 0; }
.leader-group {
  display: block;
  font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 0.35rem;
}
.leader-name {
  display: block;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--charcoal); margin-bottom: 0.6rem; line-height: 1.4;
}
.leader-contact {
  display: block;
  font-size: 0.78rem; font-weight: 300;
  color: var(--stone-dark);
  text-decoration: none; line-height: 1.75;
  word-break: break-word;
}
a.leader-contact:hover { color: var(--charcoal); }

/* ══════════════════════════════════════════════
   CHURCHTOOLS IFRAME
══════════════════════════════════════════════ */
.ct-embed-wrap {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}
.ct-embed-wrap iframe {
  width: 100%; min-height: 600px;
  border: none; display: block;
}
.ct-embed-label {
  background: var(--off-white);
  border-bottom: 1px solid var(--cream-dark);
  padding: 0.8rem 1.5rem;
  font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--stone-dark);
  display: flex; align-items: center; gap: 0.6rem;
}
.ct-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 960px) {
  :root { --section-pad: 3.5rem 1.8rem; }
  .site-nav { padding: 0 1.8rem; }
  .nav-menu { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: block; }
  .page-hero-inner { padding: 3rem 1.8rem 2.5rem; }
  .breadcrumb { padding: 1rem 1.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .site-footer { padding: 3rem 1.8rem 1.5rem; }
  .leader-section { padding: 3.5rem 1.8rem; }
  .leader-grid { grid-template-columns: 1fr; gap: 1rem; }
  .photo-pair-section { padding: 2rem 1.8rem; }
  .photo-pair { grid-template-columns: 1fr; gap: 1rem; }
  .photo-tile { height: 240px; }
}
