/* ============================================================
   FAHRENDE KIRCHE — WEBSITE (UI-Kit / Produktionsseiten)
   Vanilla layout layer on top of the design-system tokens +
   components.css. Mobile-first (360px), no framework.
   ============================================================ */

/* ---------- STICKY HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--night-900);
  border-bottom: 1px solid var(--night-700);
}
.nav {
  max-width: var(--wide-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px var(--gutter);
  min-height: 64px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.nav__brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 10px rgba(244, 183, 64, 0.4));
}
.nav__wm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--paper-50);
  line-height: 1;
  letter-spacing: -0.01em;
}
.nav__sub {
  display: block;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-top: 2px;
}
.nav__spacer {
  flex: 1;
}
.nav__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--paper-50);
  text-decoration: none;
  background: var(--night-800);
  border: 1px solid var(--night-600);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  min-height: 38px;
}
.nav__chip:hover {
  border-color: var(--amber-400);
  color: var(--amber-300);
}
.nav__chip .bulb {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--amber-400);
  box-shadow: var(--glow-bulb);
  flex: none;
}
.nav__chip .bulb {
  animation: fk-twinkle 2.4s ease-in-out infinite;
}
/* Schmale Viewports: Chip erst ohne Ort, dann ganz weg — Header darf nie überlaufen */
@media (max-width: 759px) {
  .nav__chip-ort {
    display: none;
  }
}
@media (max-width: 479px) {
  .nav__chip {
    display: none;
  }
}
.nav__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--night-600);
  background: transparent;
  border-radius: var(--r-md);
  color: var(--paper-50);
  cursor: pointer;
  flex: none;
}
.nav__burger:hover {
  border-color: var(--amber-400);
}
.nav__menu {
  display: none;
}
.nav__links {
  display: flex;
  gap: 4px;
}
.nav__links a {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--paper-50);
  text-decoration: none;
  padding: 9px 13px;
  border-radius: var(--r-sm);
}
.nav__links a:hover {
  background: var(--night-800);
  color: var(--amber-300);
}
.nav__links a[aria-current="page"] {
  color: var(--amber-400);
}

/* mobile drawer */
@media (max-width: 1024px) {
  .nav__links.desktop {
    display: none;
  }
  .nav__menu {
    display: block;
    overflow: hidden;
    max-height: 0;
    /* Zugeklappt auch aus der Tab-Reihenfolge nehmen (nicht nur 0px hoch) —
       sonst fokussieren Tastaturnutzer 8 unsichtbare Links. Die visibility
       wechselt erst NACH der Zuklapp-Animation (transition-delay). */
    visibility: hidden;
    background: var(--night-900);
    border-bottom: 1px solid var(--night-700);
    transition:
      max-height var(--dur-slow) var(--ease-out),
      visibility 0s linear var(--dur-slow);
  }
  .nav__menu[data-open="true"] {
    max-height: 420px;
    visibility: visible;
    transition: max-height var(--dur-slow) var(--ease-out);
  }
  .nav__menu ul {
    list-style: none;
    margin: 0;
    padding: var(--sp-3) var(--gutter) var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .nav__menu a {
    display: flex;
    align-items: center;
    min-height: var(--touch);
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--paper-50);
    text-decoration: none;
    padding: 8px 4px;
    border-bottom: 1px solid var(--night-800);
  }
  .nav__menu a:hover,
  .nav__menu a[aria-current="page"] {
    color: var(--amber-400);
  }
}
@media (min-width: 1025px) {
  .nav__burger {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--night-900);
  color: var(--paper-50);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      60% 50% at 78% 12%,
      rgba(244, 183, 64, 0.22),
      transparent 60%
    ),
    radial-gradient(
      55% 45% at 10% 95%,
      rgba(223, 74, 46, 0.16),
      transparent 60%
    );
}
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.8) 1px,
    transparent 1px
  );
  background-size: 4px 4px;
  pointer-events: none;
}
.hero__kette {
  position: relative;
  width: 100%;
  height: 40px;
  color: var(--paper-300);
  display: block;
}
.hero__inner {
  position: relative;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--sp-5) var(--gutter) var(--sp-8);
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
.hero__poster .kicker {
  color: var(--amber-400);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-mega);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: var(--sp-3) 0 var(--sp-4);
}
.hero__title em {
  font-style: normal;
  color: var(--amber-400);
}
.hero__lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-lead);
  color: var(--text-on-night-muted);
  max-width: 40ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.hero__media {
  position: relative;
}
.hero__media .frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--night-600);
  box-shadow: var(--glow-amber-soft);
}
.hero__mark {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 0 18px rgba(244, 183, 64, 0.5));
}
@media (min-width: 861px) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    padding-block: var(--sp-8) var(--sp-9);
  }
}

/* ---------- SECTIONS ---------- */
.section {
  padding-block: var(--section-y);
}
.section--sunk {
  background: var(--bg-sunk);
}
.section--night {
  background: var(--night-900);
  color: var(--paper-50);
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  letter-spacing: -0.01em;
  margin: 4px 0 0;
}
.section--night .section__title {
  color: var(--paper-50);
}
.section__link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--text-link);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.section--night .section__link {
  color: var(--amber-400);
}

/* grids */
.grid-termine {
  display: grid;
  gap: var(--sp-4);
}
.grid-posts {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .grid-posts {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 920px) {
  .grid-posts {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-termine {
    gap: var(--sp-4);
  }
}

/* ---------- CHANNELS ---------- */
.channels {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .channels {
    grid-template-columns: 1fr 1fr;
  }
}
.channel {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  text-decoration: none;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--night-800);
  border: 1px solid var(--night-700);
  color: var(--paper-50);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base);
}
.channel:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-amber-soft);
  color: var(--paper-50);
}
.channel__ic {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--night-900);
  color: var(--amber-400);
}
.channel b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.channel span {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--text-on-night-muted);
}

/* ---------- DONATE STRIP ---------- */
.donate {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
}
@media (min-width: 720px) {
  .donate {
    grid-template-columns: 1fr auto;
  }
}
.donate__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  margin: 0 0 6px;
}

/* ---------- CALL CTA ---------- */
.callout {
  text-align: center;
  max-width: 40ch;
  margin-inline: auto;
}
.callout__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--sp-5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1rem + 3vw, 2.6rem);
  color: var(--paper-50);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.callout__phone:hover {
  color: var(--amber-300);
}
.callout__phone .ring {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--accent-fill);
  color: var(--paper-50);
  display: grid;
  place-items: center;
  box-shadow: var(--glow-fair);
  flex: none;
}
.callout__phone {
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--night-950);
  color: var(--text-on-night-muted);
  padding-block: var(--sp-7) var(--sp-5);
}
.site-footer .wrap {
  display: grid;
  gap: var(--sp-6);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  justify-content: space-between;
  align-items: flex-start;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__brand img {
  width: 40px;
  height: 40px;
}
.footer__brand b {
  font-family: var(--font-display);
  color: var(--paper-50);
  font-size: 1.15rem;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-5);
}
.footer__nav a {
  color: var(--text-on-night-muted);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
}
.footer__nav a:hover {
  color: var(--amber-300);
}
.footer__persistent {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.footer__legal {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  border-top: 1px solid var(--night-800);
  padding-top: var(--sp-4);
}
.footer__legal a {
  color: var(--ink-500);
  text-decoration: none;
}

/* ---------- MOBILE STICKY ACTION BAR ---------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  display: none;
  gap: var(--sp-2);
  padding: 10px var(--sp-3);
  background: color-mix(in srgb, var(--night-950) 92%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--night-700);
}
.action-bar .fk-btn {
  flex: 1;
}
@media (max-width: 640px) {
  .action-bar {
    display: flex;
  }
  body {
    padding-bottom: 72px;
  }
}

/* utility */
.ic {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: -0.15em;
  flex: none;
}
.lichtrad-spin {
  animation: fk-spin var(--dur-wheel) linear infinite;
  transform-origin: center;
}
.eyebrow-kette {
  width: 220px;
  max-width: 60%;
  height: 30px;
  color: var(--paper-300);
}
