/* ==========================================================================
   BRAND NEW LIFE CHURCH — Stylesheet
   Palette: white / baby blue / navy, warm gold + coral accents
   Type: Fraunces (display) · Work Sans (body) · Caveat (accent/slogan)
   ========================================================================== */

:root {
  --white: #ffffff;
  --tint: #F2FAFF;
  --baby-blue: #B9E3F7;
  --baby-blue-soft: #DCF1FC;
  --sky: #57AEDA;
  --navy: #1E3A56;
  --navy-deep: #142A3E;
  --ink: #2B3440;
  --ink-soft: #5B6672;
  --gold: #E7B24C;
  --coral: #E2573D;
  --coral-dark: #C6432B;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --font-accent: "Caveat", cursive;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px -20px rgba(30, 58, 86, 0.35);
  --max-w: 1180px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.15;
  font-weight: 600;
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

/* ---------- Language toggle logic ----------
   Every bilingual element appears twice in the HTML, once tagged
   lang-de and once lang-en. We simply hide whichever one doesn't
   match the current html[data-lang] state, and let the shown
   element keep its own natural display (block, inline, etc.). */
html[data-lang="de"] [lang-en] { display: none !important; }
html[data-lang="en"] [lang-de] { display: none !important; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 58, 86, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
}
.brand .mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(30,58,86,.15);
  overflow: hidden;
}
.brand .mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
footer .brand .mark, footer .footer-brand .mark {
  background: var(--white);
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--coral-dark); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: flex;
  border: 1.5px solid var(--baby-blue);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  color: var(--navy);
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(226, 87, 61, .55);
}
.btn-coral:hover { background: var(--coral-dark); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 24px 26px;
    box-shadow: var(--shadow-soft);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { width: 100%; padding: 10px 0; }
  .nav-toggle { display: block; }
  .nav-right .btn-outline.only-desktop { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.62;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,42,62,.35) 0%, rgba(20,42,62,.55) 55%, rgba(20,42,62,.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px 76px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.eyebrow {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--baby-blue);
  margin-bottom: 4px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  max-width: 16ch;
  margin-bottom: 18px;
}
.hero .lead {
  font-size: 1.15rem;
  max-width: 46ch;
  color: rgba(255,255,255,.9);
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -2px;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head .kicker {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  color: var(--coral-dark);
  display: block;
  margin-bottom: 4px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.lang-block { margin-bottom: 28px; }
.lang-block h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sky);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 10px;
}

.rounded-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.rounded-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Info strip */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .info-strip { grid-template-columns: 1fr; } }
.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--baby-blue);
}
.info-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--baby-blue-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.info-card .icon svg { width: 22px; height: 22px; color: var(--navy); }
.info-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.info-card p { color: var(--ink-soft); margin-bottom: 0; font-size: .95rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-grid a { border-radius: var(--radius-md); overflow: hidden; display: block; aspect-ratio: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid .tall { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .tall { grid-row: span 1; aspect-ratio: 1; }
}

/* Schedule table (Programme) */
.schedule {
  display: grid;
  gap: 14px;
}
.schedule-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 26px;
  box-shadow: var(--shadow-soft);
  border-left: 5px solid var(--coral);
}
.schedule-item:nth-child(2n) { border-left-color: var(--sky); }
.schedule-item:nth-child(3n) { border-left-color: var(--gold); }
.schedule-item .day {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
}
.schedule-item .what { font-weight: 600; }
.schedule-item .when {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  color: var(--coral-dark);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .schedule-item { grid-template-columns: 1fr; text-align: left; }
  .schedule-item .when { font-size: 1.15rem; }
}

/* Event card */
.event-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.event-card .photo { min-height: 340px; }
.event-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.event-card .body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.event-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--baby-blue-soft);
  color: var(--navy);
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .85rem;
  margin-bottom: 16px;
}
@media (max-width: 800px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card .photo { min-height: 240px; }
  .event-card .body { padding: 30px; }
}
.event-card.no-photo {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}
.event-card.no-photo .body { padding: 52px; }
.no-events {
  text-align: center;
  padding: 60px 24px;
  color: var(--ink-soft);
  font-style: italic;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }
.team-card { text-align: center; }
.avatar {
  width: 168px; height: 168px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(150deg, var(--baby-blue), var(--sky));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: var(--shadow-soft);
  border: 5px solid var(--white);
  outline: 2px dashed rgba(30,58,86,.25);
  outline-offset: 6px;
}
.avatar span {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--white);
  font-weight: 600;
}
.avatar-photo {
  outline: none;
  background: var(--white);
}
.avatar-photo .photo-clip {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}
.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CMS-controlled photo framing: pos_x/pos_y = focal point, zoom = scale */
.cms-photo {
  object-position: var(--cms-pos-x, 50%) var(--cms-pos-y, 50%);
  transform-origin: var(--cms-pos-x, 50%) var(--cms-pos-y, 50%);
  transform: scale(var(--cms-zoom, 1));
}
.gallery-grid a:hover .cms-photo { transform: scale(calc(var(--cms-zoom, 1) * 1.06)); }
.avatar .cross-badge {
  position: absolute;
  bottom: 6px; right: 6px;
  width: 30px; height: 30px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: .95rem;
  border: 3px solid var(--white);
}
.team-card h3 { margin-bottom: 4px; font-size: 1.3rem; }
.team-card .role {
  color: var(--coral-dark);
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 10px;
}
.team-card .tag {
  display: inline-block;
  font-size: .78rem;
  color: var(--ink-soft);
  background: var(--tint);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 2px 3px;
}
.cross-icon { vertical-align: -1px; margin-right: 2px; }
.team-card p.bio { color: var(--ink-soft); font-size: .92rem; margin-top: 12px; }

.tribute {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-soft);
  margin-top: 60px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 760px) { .tribute { grid-template-columns: 1fr; text-align: center; padding: 32px; } }
.tribute .avatar { width: 180px; height: 180px; margin: 0 auto; }

/* Spenden */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) { .donate-grid { grid-template-columns: 1fr; } }
.donate-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border-top: 6px solid var(--baby-blue);
}
.donate-card.nigeria { border-top-color: var(--gold); }
.donate-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.donate-card .amount-tag {
  font-family: var(--font-accent);
  color: var(--coral-dark);
  font-size: 1.4rem;
  margin-bottom: 16px;
  display: block;
}
.bank-details {
  background: var(--tint);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 18px 0;
  font-size: .95rem;
}
.bank-details div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(30,58,86,.15); }
.bank-details div:last-child { border-bottom: none; }
.bank-details .label { color: var(--ink-soft); }
.bank-details .value { font-weight: 600; font-family: monospace; letter-spacing: .02em; }
.placeholder-note {
  font-size: .78rem;
  color: var(--sky);
  background: var(--baby-blue-soft);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 14px;
}

/* Impressum */
.legal { max-width: 760px; }
.legal h2 { margin-top: 1.6em; font-size: 1.3rem; }
.legal p, .legal li, .legal div { color: var(--ink-soft); }
.legal div p { margin: 0 0 0.6em; }
.legal .placeholder-block {
  background: var(--tint);
  border: 1.5px dashed var(--baby-blue);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

/* Footer */
footer.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.82);
  padding: 68px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
}
.footer-grid a, .footer-grid p { color: rgba(255,255,255,.72); font-size: .92rem; }
.footer-grid li span { color: rgba(255,255,255,.5); font-size: .82rem; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--baby-blue); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand span { font-family: var(--font-display); color: var(--white); font-size: 1.15rem; }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--coral); }
.social-row svg { width: 17px; height: 17px; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.7); }

/* Page banner (non-home pages) */
.page-banner {
  position: relative;
  padding: 150px 0 70px;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}
.page-banner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,42,62,.55), rgba(20,42,62,.92));
}
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner .kicker { font-family: var(--font-accent); color: var(--baby-blue); font-size: 1.4rem; }
.page-banner h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 20ch; }

/* Admin note banner (dev helper, remove once CMS is wired up) */
.admin-note {
  background: var(--gold);
  color: var(--navy-deep);
  text-align: center;
  font-size: .82rem;
  padding: 6px 12px;
}
