:root {
  color-scheme: light;
  --ink: #10243d;
  --muted: #60758c;
  --line: #d8e9f6;
  --soft: #f4faff;
  --panel: #ffffff;
  --brand: #2387c9;
  --brand-dark: #145f92;
  --accent: #d92f2f;
  --accent-soft: #eef8ff;
  --gold: #f2c94c;
  --wine: #8f2347;
  --leaf: #2aa876;
  --blue: #1d5f9e;
  --danger: #a34040;
  --shadow: 0 18px 44px rgba(33, 112, 168, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(242, 201, 76, 0.14), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(42, 168, 118, 0.12), transparent 24%),
    #f4faff;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.home-screen,
.login-screen {
  display: grid;
  min-height: 100vh;
}

.home-screen {
  background:
    linear-gradient(180deg, rgba(244, 250, 255, 0.32), #f4faff 72%),
    #f4faff;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 560px;
  align-content: space-between;
  padding: 24px clamp(18px, 4vw, 54px) 56px;
  place-items: center;
  overflow: hidden;
  background: #f7fcff;
  color: var(--ink);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.87) 42%, rgba(255, 255, 255, 0.36) 72%),
    url("assets/hero-ministry-light.png") center / cover no-repeat;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, #f4faff);
}

.home-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100%);
  gap: 18px;
}

.home-brand span {
  color: var(--muted);
}

.home-brand,
.home-menu {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(35, 135, 201, 0.1);
  backdrop-filter: blur(12px);
}

.home-menu {
  position: relative;
  z-index: 30;
  padding: 0;
}

.home-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  gap: 5px;
  border-radius: 8px;
  list-style: none;
  cursor: pointer;
}

.home-menu summary::-webkit-details-marker {
  display: none;
}

.home-menu summary span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink);
}

.home-actions {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  display: flex;
  min-width: 220px;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(216, 233, 246, 0.9);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(16, 36, 61, 0.16);
  backdrop-filter: blur(14px);
}

.home-actions button {
  justify-content: flex-start;
  width: 100%;
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: center;
  width: min(1180px, 100%);
  gap: clamp(22px, 4vw, 56px);
}

.home-copy {
  width: 100%;
}

.home-copy h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 0.95;
  text-wrap: balance;
  text-shadow: 0 14px 42px rgba(35, 135, 201, 0.16);
}

.home-copy p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.08rem;
}

.home-copy .eyebrow {
  color: var(--brand);
}

.faith-symbols {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.cross-symbol,
.spark-symbol,
.arc-symbol {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.cross-symbol {
  width: 34px;
  height: 44px;
}

.cross-symbol::before,
.cross-symbol::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--brand);
}

.cross-symbol::before {
  left: 14px;
  top: 0;
  width: 7px;
  height: 44px;
}

.cross-symbol::after {
  left: 0;
  top: 14px;
  width: 34px;
  height: 7px;
}

.spark-symbol {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 22px -9px 0 rgba(143, 35, 71, 0.9), 45px 5px 0 rgba(42, 168, 118, 0.9);
}

.arc-symbol {
  width: 86px;
  height: 42px;
  border-top: 5px solid rgba(35, 135, 201, 0.28);
  border-radius: 90px 90px 0 0;
}

.hero-image-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 54px rgba(16, 36, 61, 0.18);
  backdrop-filter: blur(14px);
}

.hero-image-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(35, 135, 201, 0.12), transparent 48%),
    radial-gradient(circle at 82% 12%, rgba(242, 201, 76, 0.18), transparent 28%);
}

.hero-image-panel img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 18px;
}

.home-main {
  padding: 26px clamp(18px, 4vw, 54px) 54px;
}

.home-content {
  width: min(1180px, 100%);
  min-width: 0;
  margin: 0 auto;
}

.home-visionaries {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(232, 246, 255, 0.9)),
    #ffffff;
  box-shadow: 0 8px 24px rgba(35, 135, 201, 0.08);
}

.home-visionaries img {
  width: 110px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(35, 135, 201, 0.22);
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
}

.home-visionaries h2,
.home-visionaries p {
  margin-bottom: 4px;
}

.home-section {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.info-section {
  margin-bottom: 28px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-panel,
.leader-profile-card,
.theme-banner {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(35, 135, 201, 0.08);
}

.info-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
}

.info-panel h2,
.info-panel p {
  margin-bottom: 0;
}

.member-finder {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(35, 135, 201, 0.08);
}

.member-finder h2,
.member-finder p {
  margin-bottom: 0;
}

.public-search-field {
  margin: 0;
}

.member-search-results {
  display: grid;
  gap: 8px;
}

.member-result-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.member-result-button:hover {
  border-color: var(--brand);
  background: #eef8ff;
}

.member-result-button span {
  font-weight: 800;
}

.member-result-button small,
.helper-text {
  color: var(--muted);
  font-weight: 700;
}

.helper-text {
  margin: 0;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.link-button:hover {
  background: var(--brand-dark);
}

.assemblies-screen,
.leadership-screen,
.events-screen {
  min-height: 100vh;
  background: #f4faff;
}

.leadership-nav {
  width: 100%;
  padding: 24px clamp(18px, 4vw, 54px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.assemblies-page,
.leadership-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px clamp(18px, 4vw, 54px) 54px;
}

.events-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px clamp(18px, 4vw, 54px) 54px;
}

.assemblies-intro,
.leadership-intro,
.events-intro {
  max-width: 760px;
  margin-bottom: 24px;
}

.assemblies-intro h1,
.leadership-intro h1,
.events-intro h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.assemblies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.assembly-card {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(35, 135, 201, 0.08);
}

.assembly-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.assembly-mark.berlin {
  background: #10243d;
}

.assembly-mark.bremen {
  background: #2387c9;
}

.assembly-mark.hamburg {
  background: #0f766e;
}

.assembly-mark.hannover {
  background: #8b1e3f;
}

.assembly-mark.frankfurt {
  background: #2d7d46;
}

.assembly-mark.rheinland {
  background: #6f4fb3;
}

.assembly-mark.south {
  background: #d88b28;
}

.assembly-card h2,
.assembly-card p {
  margin-bottom: 0;
}

.assembly-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.assembly-card dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.assembly-card dd {
  margin: 0;
  font-weight: 800;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.event-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(35, 135, 201, 0.08);
}

.featured-event {
  grid-template-columns: 190px 116px minmax(0, 1fr);
  border-color: rgba(35, 135, 201, 0.34);
  background:
    linear-gradient(135deg, rgba(35, 135, 201, 0.08), rgba(242, 201, 76, 0.12)),
    #ffffff;
}

.event-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.event-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.event-date {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 116px;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  text-align: center;
}

.event-date span {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.event-date strong {
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.15;
}

.event-body {
  display: grid;
  align-content: start;
  gap: 8px;
}

.event-body h2,
.event-body p {
  margin-bottom: 0;
}

.event-body .link-button,
.event-body .small-button {
  justify-self: start;
  margin-top: 6px;
}

.event-status {
  justify-self: start;
  margin-top: 6px;
  border-radius: 999px;
  padding: 7px 11px;
  background: #e7f8ef;
  color: #1f7a4e;
  font-size: 0.82rem;
  font-weight: 900;
}

.event-body .small-button:disabled {
  cursor: default;
  opacity: 0.78;
}

.visionaries-feature,
.pastors-feature {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(35, 135, 201, 0.08), rgba(42, 168, 118, 0.1)),
    #ffffff;
  box-shadow: 0 8px 24px rgba(35, 135, 201, 0.08);
}

.visionaries-feature {
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  background:
    linear-gradient(105deg, rgba(16, 36, 61, 0.04), rgba(242, 201, 76, 0.12)),
    #ffffff;
}

.visionaries-photo,
.pastors-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.visionaries-photo img,
.pastors-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.visionaries-photo img {
  aspect-ratio: 1 / 1;
}

.visionaries-copy h2,
.pastors-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.visionaries-copy p,
.pastors-copy p {
  max-width: 520px;
}

.leadership-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.board-section {
  margin-top: 28px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.leader-profile-card {
  position: relative;
  display: grid;
  gap: 8px;
  overflow: hidden;
  padding: 18px;
}

.leader-profile-card::before {
  content: "";
  position: absolute;
  right: -22px;
  top: -22px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(35, 135, 201, 0.12);
}

.leader-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(35, 135, 201, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.9), rgba(232, 246, 255, 0.25) 34%, transparent 58%),
    linear-gradient(180deg, #e8f6ff 0%, #d7edf9 100%);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.38);
}

.leader-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(232, 246, 255, 0.1), rgba(232, 246, 255, 0.2)),
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.22), transparent 42%);
  mix-blend-mode: soft-light;
}

.leader-profile-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.96) contrast(1.02);
}

.leader-profile-card img.chairman-photo {
  object-position: center 16%;
  transform: scale(1.35);
  transform-origin: center 16%;
}

.leader-profile-card span {
  position: relative;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leader-profile-card strong {
  position: relative;
  font-size: 1.15rem;
}

.leader-profile-card em {
  position: relative;
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 900;
}

.placeholder-photo {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(35, 135, 201, 0.12), rgba(242, 201, 76, 0.22)),
    #ffffff;
}

.placeholder-photo span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
}

.theme-banner {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(35, 135, 201, 0.08), rgba(242, 201, 76, 0.14)),
    #ffffff;
}

.theme-banner::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 18px;
  width: 38px;
  height: 50px;
  opacity: 0.12;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 8px 50px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center 16px / 38px 8px no-repeat;
}

.theme-banner blockquote {
  position: relative;
  max-width: 900px;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.35;
}

.theme-banner cite {
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 900;
}

.theme-note {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

.theme-note strong {
  color: var(--brand-dark);
}

.theme-note span {
  color: var(--muted);
}

.login-screen {
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.64), rgba(219, 241, 255, 0.72)),
    linear-gradient(115deg, #ffffff, #d7efff 58%, #f4fbff);
}

.login-card {
  display: grid;
  width: min(520px, 100%);
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.login-brand {
  color: var(--ink);
}

.login-brand span {
  color: var(--muted);
}

.brand-logo {
  display: block;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid rgba(35, 135, 201, 0.3);
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
}

.germany-flag {
  display: grid;
  grid-template-rows: repeat(3, 10px);
  width: 74px;
  overflow: hidden;
  border: 1px solid rgba(16, 36, 61, 0.16);
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(16, 36, 61, 0.08);
}

.germany-flag span:nth-child(1) {
  background: #000000;
}

.germany-flag span:nth-child(2) {
  background: #dd0000;
}

.germany-flag span:nth-child(3) {
  background: #ffce00;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--danger);
  font-weight: 700;
}

.form-message.success-message {
  color: #1f7a4e;
  font-weight: 500;
}

.login-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: #1f6b58;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.current-user label {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-tabs {
  display: grid;
  gap: 8px;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.nav-button span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.nav-button.active {
  border-color: rgba(35, 135, 201, 0.42);
  background: #e9f6ff;
}

.current-user {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.signed-in-panel span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.signed-in-panel strong {
  color: var(--ink);
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

select,
input {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  padding: 10px 12px;
  resize: vertical;
}

.current-user select {
  border-color: rgba(255, 255, 255, 0.18);
}

main {
  min-width: 0;
  padding: 26px;
}

.topbar,
.admin-toolbar,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

h2 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

p {
  color: var(--muted);
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  min-height: 180px;
  margin: 24px 0;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(13, 92, 145, 0.94), rgba(35, 135, 201, 0.86) 48%, rgba(42, 168, 118, 0.76)),
    url("assets/hero-ministry-light.png") center / cover no-repeat;
  box-shadow: var(--shadow);
  color: #ffffff;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 30px;
}

.hero-copy p {
  max-width: 520px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-copy strong {
  display: block;
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 1.1;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 180px;
  opacity: 0.82;
}

.window-shape {
  position: absolute;
  right: 88px;
  top: 20px;
  width: 88px;
  height: 122px;
  border: 8px solid rgba(255, 255, 255, 0.82);
  border-bottom-width: 16px;
  border-radius: 60px 60px 8px 8px;
}

.window-shape::before,
.window-shape::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
}

.window-shape::before {
  left: 33px;
  top: 0;
  width: 8px;
  height: 98px;
}

.window-shape::after {
  left: 0;
  top: 52px;
  width: 72px;
  height: 8px;
}

.light-beam {
  position: absolute;
  width: 150px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(-24deg);
}

.light-beam.one {
  right: 10px;
  top: 112px;
}

.light-beam.two {
  right: 36px;
  top: 144px;
  width: 210px;
}

.pew {
  position: absolute;
  right: 34px;
  bottom: 24px;
  width: 190px;
  height: 18px;
  border-radius: 4px;
  background: rgba(16, 36, 61, 0.36);
}

.pew.short {
  right: 0;
  bottom: 52px;
  width: 112px;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.metric,
.project-card,
.admin-panel,
.member-row,
.pledge-row {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(35, 135, 201, 0.08);
}

.metric::before,
.project-card::before,
.admin-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--leaf), var(--gold));
}

.metric {
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
}

.search-field {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-field input,
.search-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.search-field input:focus,
.search-field select:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(35, 135, 201, 0.14);
}

.registration-note {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(35, 135, 201, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(35, 135, 201, 0.06);
  color: var(--ink);
}

.registration-note span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.project-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.public-project-card {
  align-content: start;
}

.project-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.project-card h3 {
  margin-bottom: 5px;
}

.badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--accent-soft);
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6f3fc;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.amount-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pledge-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.bank-box {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

.bank-box span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bank-box p {
  margin-bottom: 2px;
}

.bank-box dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.bank-box div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
}

.bank-box dt {
  color: var(--muted);
  font-weight: 800;
}

.bank-box dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.bank-details {
  display: grid;
  gap: 10px;
}

.bank-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.bank-details summary::-webkit-details-marker {
  display: none;
}

.bank-details summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 900;
}

.bank-details[open] summary::after {
  content: "-";
}

.bank-details .bank-box {
  margin-top: 10px;
}

.subscription-enroll {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 10px;
  margin: 0 0 14px;
}

.subscription-list {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.subscription-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(35, 135, 201, 0.08);
}

.subscription-card p {
  margin-bottom: 0;
}

.subscription-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.subscription-amounts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-pill {
  justify-self: end;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e6f3fc;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: capitalize;
}

.status-pill.paid {
  background: #e7f8ef;
  color: #1f7a4e;
}

.status-pill.partial {
  background: #fff7dc;
  color: #8a6600;
}

.status-pill.unpaid {
  background: #fff0f0;
  color: #a34040;
}

.compact-toolbar {
  align-items: center;
}

.compact-toolbar input {
  max-width: 190px;
}

.subscription-bank {
  box-shadow: none;
}

.primary-button,
.ghost-button,
.icon-button,
.small-button,
.confirm-button,
.danger-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 800;
}

.primary-button {
  background: var(--brand);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--brand-dark);
}

.ghost-button,
.small-button {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.danger-button {
  border-color: #f0c6c6;
  background: #fff0f0;
  color: var(--danger);
}

.danger-button:hover {
  background: #ffe3e3;
}

.confirm-button {
  border-color: #b7e4c7;
  background: #e7f8ef;
  color: #1f7a4e;
}

.confirm-button:hover {
  background: #d5f1e1;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-button {
  width: 38px;
  padding: 0;
  border-color: var(--line);
  background: #ffffff;
}

.admin-toolbar {
  margin-bottom: 16px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.export-menu {
  position: relative;
}

.export-menu summary {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--brand-strong);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.export-menu summary::-webkit-details-marker {
  display: none;
}

.export-menu summary::after {
  content: " v";
  color: var(--muted);
  font-size: 0.78rem;
}

.export-menu[open] summary {
  border-color: var(--brand);
  outline: 3px solid rgba(35, 135, 201, 0.12);
}

.export-menu-panel {
  position: absolute;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  min-width: 190px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.export-menu-panel button {
  justify-content: flex-start;
}

.admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.admin-action-card {
  display: grid;
  gap: 7px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 24px rgba(35, 135, 201, 0.08);
}

.admin-action-card:hover,
.admin-action-card:focus-visible {
  border-color: var(--brand);
  outline: 3px solid rgba(35, 135, 201, 0.12);
}

.admin-action-card span {
  color: var(--brand-strong);
  font-weight: 900;
}

.admin-action-card strong {
  font-size: 1.65rem;
  line-height: 1;
}

.admin-action-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
}

.pending-panel {
  margin-top: 16px;
}

.admin-helper {
  margin: 4px 0 14px;
  color: var(--muted);
}

.admin-panel {
  padding: 18px;
}

.admin-detail-page,
.admin-focus-page {
  display: grid;
  gap: 14px;
}

.admin-detail-page.hidden,
.admin-focus-page.hidden {
  display: none;
}

.admin-detail-page > button,
.admin-focus-page > button {
  justify-self: start;
}

.member-preview {
  display: grid;
  gap: 14px;
}

.member-preview p {
  color: var(--muted);
}

.member-preview dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.member-preview dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.member-preview dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.member-list-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.member-list-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.member-list-table th,
.member-list-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.member-list-table th {
  background: rgba(35, 135, 201, 0.07);
  color: var(--brand-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.member-list-table tbody tr {
  cursor: default;
}

.member-list-table tbody tr:hover,
.member-list-table tbody tr.active {
  background: rgba(35, 135, 201, 0.08);
}

.member-list-table tbody tr:last-child td {
  border-bottom: 0;
}

.member-list-table td strong,
.member-list-table td span,
.member-list-table td small {
  display: block;
}

.member-list-table td small {
  margin-top: 2px;
  color: var(--muted);
}

.admin-assembly-page {
  display: grid;
  gap: 16px;
}

.admin-assembly-page.hidden {
  display: none;
}

.admin-assembly-page > button {
  justify-self: start;
}

#adminAssemblyMembersPanel > button {
  margin-bottom: 14px;
}

.admin-assembly-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-assembly-tile {
  display: grid;
  gap: 8px;
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 24px rgba(35, 135, 201, 0.08);
}

.admin-assembly-tile:hover,
.admin-assembly-tile.active {
  border-color: var(--brand);
  outline: 3px solid rgba(35, 135, 201, 0.12);
}

.admin-assembly-tile span {
  color: var(--brand-strong);
  font-weight: 900;
}

.admin-assembly-tile strong {
  font-size: 2rem;
}

.admin-assembly-tile small {
  color: var(--muted);
  font-weight: 800;
}

.admin-assembly-tile dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0 0;
}

.admin-assembly-tile dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-assembly-tile dd {
  margin: 3px 0 0;
  font-weight: 900;
}

.compact-search {
  min-width: min(280px, 100%);
  margin: 0;
}

.member-row,
.pledge-row {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  padding: 14px;
  box-shadow: none;
}

.member-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.member-row p {
  margin-top: 3px;
  color: var(--muted);
}

.member-row span {
  display: block;
  margin-top: 4px;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.member-row.active {
  outline: 2px solid var(--brand);
}

.member-row button,
.pledge-row button {
  justify-self: start;
}

.member-row button + button {
  margin-left: 8px;
}

.pledge-row {
  grid-template-columns: minmax(0, 1fr) 130px 130px 150px;
  align-items: end;
}

.pledge-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-member-profile {
  display: grid;
  gap: 16px;
}

.member-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(35, 135, 201, 0.05);
}

.member-profile-header h3 {
  margin-top: 3px;
  font-size: 1.35rem;
}

.member-profile-header p:last-child {
  margin-top: 4px;
  color: var(--muted);
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-metrics .metric {
  padding: 14px;
}

.profile-metrics .metric strong {
  font-size: 1.2rem;
}

.profile-section {
  display: grid;
  gap: 10px;
}

.profile-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-section-heading h4 {
  font-size: 1rem;
}

.profile-section-heading span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.compact-table-wrap {
  padding: 0;
}

.project-contribution-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.project-contribution-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  cursor: pointer;
  font-weight: 800;
}

.project-contribution-card summary span {
  display: grid;
  gap: 4px;
}

.project-contribution-card summary small {
  color: var(--muted);
  font-size: 0.78rem;
}

.project-contribution-card .progress-track {
  margin: 0 14px 14px;
}

.contribution-table-wrap {
  padding: 0 14px 14px;
  overflow-x: auto;
}

.contribution-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.contribution-table th,
.contribution-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: right;
  white-space: nowrap;
}

.contribution-table th:first-child,
.contribution-table td:first-child {
  text-align: left;
}

.contribution-table thead th {
  background: rgba(35, 135, 201, 0.08);
  color: var(--ink);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.contribution-table tbody tr:nth-child(even) {
  background: rgba(35, 135, 201, 0.035);
}

.contribution-table td strong {
  display: block;
}

.contribution-table td span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.contribution-table tfoot th {
  background: rgba(16, 37, 31, 0.06);
}

.subscription-admin-table th,
.subscription-admin-table td {
  vertical-align: middle;
}

.table-amount-input {
  width: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  font: inherit;
  font-weight: 800;
  text-align: right;
}

.table-amount-input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(35, 135, 201, 0.14);
}

.paid-amount {
  color: #1f7a3f;
  font-weight: 900;
}

.balance-amount {
  color: #b43333;
  font-weight: 900;
}

dialog {
  width: min(520px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(16, 37, 31, 0.48);
}

dialog form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-header h2 {
  margin-bottom: 0;
}

dialog label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(35, 135, 201, 0.08);
}

.privacy-note strong {
  color: var(--brand-dark);
  white-space: nowrap;
}

.privacy-note span {
  color: var(--muted);
}

.empty-state {
  align-content: center;
  min-height: 150px;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(35, 135, 201, 0.06), rgba(242, 201, 76, 0.08)),
    #ffffff;
}

.empty-state > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 900;
}

@media (max-width: 980px) {
  .app-shell,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-assembly-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
    padding: 18px;
  }

  .assemblies-grid,
  .summary-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leadership-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

}

@media (max-width: 680px) {
  .home-hero {
    min-height: 520px;
    place-items: stretch;
  }

  .home-nav,
  .login-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-nav {
    align-items: stretch;
  }

  .home-menu {
    width: 100%;
  }

  .home-menu summary {
    width: 100%;
  }

  .home-actions {
    position: static;
    left: 0;
    right: 0;
    margin-top: 10px;
    min-width: 0;
  }

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

  .home-copy h1 {
    font-size: clamp(2.2rem, 12vw, 3.8rem);
  }

  .visionaries-feature,
  .pastors-feature {
    grid-template-columns: 1fr;
  }

  .hero-image-panel {
    max-width: 320px;
  }

  .germany-flag {
    width: 100%;
  }

  main {
    padding: 18px;
  }

  .topbar,
  .admin-toolbar,
  .toolbar-actions,
  .privacy-note,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-panel,
  .assemblies-grid,
  .home-visionaries,
  .info-grid,
  .leadership-page-grid,
  .board-grid,
  .event-card,
  .featured-event,
  .summary-grid,
  .profile-metrics,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

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

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

  .member-profile-header,
  .profile-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-preview dl {
    grid-template-columns: 1fr;
  }

  .admin-assembly-grid,
  .admin-quick-actions,
  .admin-assembly-tile dl {
    grid-template-columns: 1fr;
  }

  .subscription-enroll,
  .subscription-main {
    grid-template-columns: 1fr;
  }

  .subscription-amounts,
  .status-pill {
    justify-self: stretch;
  }
}
