/* ═══════════════════════════════════════════════════════════════════
   Startseite (#home) — redaktionelles Premium-Layout
   Lädt nach premium.css. Alles hier ist unter #home geschachtelt.

   Rhythmus der Flächen:
   Hero (Foto, dunkel) → Willkommen (weiß, Text + Foto + 4 Eckpunkte)
   → Gottesdienste (Elfenbein, Kopf links, Wochenplan als Liste)
   → Erster Besuch (Markengrün, 4 nummerierte Zusagen)
   → Gemeindeleben (weiß, Moment photo-chapters) → eigene Abschnitte
   → Abschluss „Zum ersten Mal hier?“ (Fotokachel) → Fußzeile.

   Schrift: Überschriften in Myriad Regular, groß und eng gesetzt
   (das „Bold“ der Marke ist Arial Bold und wirkt in Displaygröße hart).
═══════════════════════════════════════════════════════════════════ */

#home {
  --h-ground: #0b2a19;                 /* dunkles Markengrün (Hero-Grund, Zusagen, Abschluss) */
  --h-on-dark: rgba(255, 255, 255, .8);
  --h-rule-dark: rgba(255, 255, 255, .2);
  --h-display: clamp(2.3rem, 4.4vw, 3.6rem);
}

/* Gemeinsame Display-Überschrift der Startseite */
#home .section-header h2,
#home .p-chapters .mo-ph__head h2,
#home .p-visit h2 {
  font-family: var(--font-display);
  font-size: var(--h-display);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.04;
}
html[dir="rtl"] #home .section-header h2,
html[dir="rtl"] #home .p-chapters .mo-ph__head h2,
html[dir="rtl"] #home .p-visit h2 { letter-spacing: 0; line-height: 1.3; font-weight: 700; }

#home .section-header p { font-size: 1.1rem; line-height: 1.6; }
#home .section-header { margin-bottom: clamp(40px, 5vw, 72px); }

/* ════ 1. Hero ═════════════════════════════════════════════════════ */
#home .hero { align-items: stretch; }
#home .hero .hero-content {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(88px, 13vh, 150px) 24px clamp(24px, 4vh, 40px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(40px, 8vh, 96px);
}
#home .p-hero-main { align-self: end; max-width: 900px; }

/* Foto: unten dunkel für den Text, oben ein Hauch für die Navigation */
#home .hero.has-photo .hero-bg {
  background:
    linear-gradient(0deg, rgba(3, 25, 13, .94) 0%, rgba(3, 25, 13, .72) 32%, rgba(3, 25, 13, .2) 68%, rgba(3, 25, 13, .42) 100%),
    linear-gradient(90deg, rgba(3, 25, 13, .55) 0%, rgba(3, 25, 13, 0) 60%),
    var(--hero-photo) center 38% / cover no-repeat;
}
html[dir="rtl"] #home .hero.has-photo .hero-bg {
  background:
    linear-gradient(0deg, rgba(3, 25, 13, .94) 0%, rgba(3, 25, 13, .72) 32%, rgba(3, 25, 13, .2) 68%, rgba(3, 25, 13, .42) 100%),
    linear-gradient(270deg, rgba(3, 25, 13, .55) 0%, rgba(3, 25, 13, 0) 60%),
    var(--hero-photo) center 38% / cover no-repeat;
}

#home .hero .hero-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  margin-bottom: 18px;
}
html[dir="rtl"] #home .hero .hero-eyebrow { font-size: 1.05rem; letter-spacing: 0; }
#home .hero .hero-sub { font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1.1; }
#home .hero .hero-name-divider { width: 88px; height: 2px; margin: 18px 0 20px; }
#home .hero .hero-title {
  font-size: clamp(2.9rem, 8vw, 7rem);
  line-height: .92;
  letter-spacing: -.02em;
  margin: 0;
}
html[dir="rtl"] #home .hero .hero-title { line-height: 1; letter-spacing: -.01em; }
#home .hero .hero-actions { margin: clamp(32px, 5vh, 48px) 0 0; gap: 12px; }

/* Fußzeile des Heros: Haarlinie, links der Termin, rechts der Vers */
#home .p-hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--p-hairline-strong);
}
#home .hero.has-photo .p-hero-foot { border-top-color: var(--h-rule-dark); }
#home .hero .hero-event-badge,
#home .hero.has-photo .hero-event-badge {
  margin: 0; padding: 0; background: none; border: 0; border-radius: 0; backdrop-filter: none;
  font-size: 1rem; font-weight: 400; letter-spacing: .01em; gap: 12px;
}
#home .hero.has-photo .hero-event-badge { color: #fff; }
#home .hero.has-photo .hero-event-badge svg { color: var(--green-lime); }
html[dir="rtl"] #home .hero .hero-event-badge { flex-direction: row; }
#home .hero .hero-verse,
html[dir="rtl"] #home .hero .hero-verse {
  margin: 0; padding: 0; border: 0; max-width: 46ch;
  font-size: 1rem; line-height: 1.6; text-align: end;
}
#home .hero .hero-verse cite { display: block; margin-top: 6px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
html[dir="rtl"] #home .hero .hero-verse cite { letter-spacing: 0; font-size: .9rem; }

#home .hero.has-photo :focus-visible { outline-color: var(--green-lime); }

@media (max-width: 640px) {
  #home .hero .hero-content { padding: 64px 20px 24px; gap: 40px; }
  #home .hero .hero-title { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  #home .hero .hero-sub { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  #home .p-hero-foot { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 18px; }
  #home .hero .hero-verse, html[dir="rtl"] #home .hero .hero-verse { text-align: start; font-size: .95rem; }
}

/* ════ 2. Willkommen ═══════════════════════════════════════════════ */
#home .p-home-welcome { background: #fff; padding-block: clamp(80px, 10vw, 144px); }
#home .p-home-welcome .welcome-text {
  margin: 22px 0 0; max-width: 30ch; text-align: start;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem); line-height: 1.38; letter-spacing: -.012em;
  color: var(--p-ink);
}
html[dir="rtl"] #home .p-home-welcome .welcome-text { line-height: 1.75; letter-spacing: 0; }
#home .p-home-welcome .welcome-text .content-para { margin-bottom: .7em; }
#home .p-home-welcome .welcome-text .content-para + .content-para { font-size: .7em; line-height: 1.65; color: var(--p-body); }

/* mit Foto (premium.js setzt .p-welcome und hängt das Foto an) */
#home .p-home-welcome .p-welcome {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(48px, 7vw, 120px);
}
#home .p-home-welcome .p-welcome > .welcome-text { grid-row: 2; margin-top: 22px; font-size: clamp(1.45rem, 2.5vw, 2.1rem); line-height: 1.38; }
html[dir="rtl"] #home .p-home-welcome .p-welcome > .welcome-text { line-height: 1.75; }
#home .p-home-welcome .p-welcome > .trust-pillars { grid-column: 1; grid-row: 3; align-self: end; }
#home .p-home-welcome .p-welcome-photo {
  grid-column: 2; grid-row: 1 / span 3; align-self: stretch;
  width: 100%; min-height: 480px; aspect-ratio: auto; border-radius: var(--r-lg); box-shadow: none;
}

/* vier Eckpunkte: Haarlinien statt Kästen */
#home .trust-pillars {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px;
  margin-top: clamp(40px, 6vw, 72px);
}
#home .trust-pillars .trust-pillar,
html[dir="rtl"] #home .trust-pillars .trust-pillar {
  flex-direction: row; text-align: start; gap: 14px;
  padding: 20px 0 22px; background: none;
  border: 0 !important; border-top: 1px solid var(--p-hairline) !important;
}
#home .trust-pillars .trust-pillar:hover { background: none; }
#home .trust-pillars .trust-pillar-icon {
  width: auto; height: auto; padding-top: 2px; background: none !important; border-radius: 0; color: var(--green-primary);
}
#home .trust-pillars .trust-pillar-title { font-size: 1rem; color: var(--p-ink); margin-bottom: 4px; }
#home .trust-pillars .trust-pillar-desc { font-size: .94rem; line-height: 1.5; color: var(--p-muted); }

@media (max-width: 820px) {
  #home .p-home-welcome .p-welcome { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  #home .p-home-welcome .p-welcome > * { grid-column: 1 !important; grid-row: auto !important; }
  #home .p-home-welcome .p-welcome-photo { aspect-ratio: 4 / 3; min-height: 0; margin-top: 12px; }
}
@media (max-width: 520px) {
  #home .trust-pillars { grid-template-columns: 1fr; }
}

/* ════ 3. Gottesdienste & Termine: Wochenplan ══════════════════════ */
#home .p-home-services { background: var(--p-surface); }
#home .p-home-split {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 104px); align-items: start;
}
#home .p-home-split__head { position: sticky; top: calc(var(--nav-h) + 40px); margin: 0; text-align: start; }
#home .p-home-split__head p { margin-top: 18px; color: var(--p-muted); }
#home .p-home-split__head .btn { margin-top: 32px; }

#home #homeServicesGrid { display: block; border-top: 1px solid var(--p-hairline-strong); }
#home #homeServicesGrid .service-card {
  display: grid;
  grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr) auto;
  column-gap: 28px; row-gap: 6px; align-items: baseline;
  padding: 26px 12px; margin: 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--p-hairline-strong); border-radius: 0; box-shadow: none;
  transform: none;
  transition: background-color var(--m-out, 120ms) var(--ease);
}
#home #homeServicesGrid .service-day { grid-column: 1; grid-row: 1; margin: 0; font-size: .74rem; letter-spacing: .14em; color: var(--green-primary); }
html[dir="rtl"] #home #homeServicesGrid .service-day { letter-spacing: 0; font-size: .95rem; }
#home #homeServicesGrid .service-title { grid-column: 2; grid-row: 1; margin: 0; font-size: clamp(1.2rem, 1.7vw, 1.45rem); font-weight: 400; color: var(--p-ink); letter-spacing: -.01em; line-height: 1.25; }
#home #homeServicesGrid .service-time { grid-column: 3; grid-row: 1; font-size: 1rem; color: var(--p-body); white-space: nowrap; }
#home #homeServicesGrid .service-desc { grid-column: 2 / span 2; grid-row: 2; margin: 2px 0 0; max-width: 60ch; font-size: .98rem; line-height: 1.6; color: var(--p-muted); }
html[dir="rtl"] #home #homeServicesGrid .service-time { direction: ltr; }

@media (hover: hover) and (pointer: fine) {
  #home #homeServicesGrid .service-card:hover { background: #fff; transform: none; box-shadow: none; transition-duration: 180ms; }
  #home #homeServicesGrid .service-card:hover .service-title { color: var(--green-dark); }
}
#home #homeServicesGrid .service-card:focus-visible { outline: 2px solid var(--green-primary); outline-offset: -2px; background: #fff; }

@media (max-width: 960px) {
  #home .p-home-split { grid-template-columns: 1fr; }
  #home .p-home-split__head { position: static; }
}
@media (max-width: 640px) {
  #home #homeServicesGrid .service-card { grid-template-columns: minmax(0, 1fr) auto; padding: 22px 4px; }
  #home #homeServicesGrid .service-day { grid-column: 1; grid-row: 1; }
  #home #homeServicesGrid .service-time { grid-column: 2; grid-row: 1; font-size: .92rem; }
  #home #homeServicesGrid .service-title { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; }
  #home #homeServicesGrid .service-desc { grid-column: 1 / -1; grid-row: 3; }
  #home .p-home-split__head .btn { width: 100%; justify-content: center; }
}

/* ════ 4. Dein erster Besuch: Markengrün, nummeriert ═══════════════ */
#home .p-home-expect { background: var(--h-ground); color: #fff; }
#home .p-home-expect .section-header { text-align: start; max-width: 760px; margin-inline: 0; }
#home .p-home-expect .section-header .section-label { justify-content: flex-start; color: var(--green-lime); }
#home .p-home-expect .section-header h2 { color: #fff; }
#home .p-home-expect .section-header p { color: var(--h-on-dark); margin-inline: 0; }

#home .p-home-expect .expect-grid {
  counter-reset: expect;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--h-rule-dark);
}
#home .p-home-expect .expect-card,
html[dir="rtl"] #home .p-home-expect .expect-card {
  counter-increment: expect;
  position: relative; display: block !important; text-align: start;
  padding: 36px 28px 8px; margin: 0;
  background: none; border: 0; border-radius: 0; box-shadow: none; transform: none;
  border-inline-start: 1px solid var(--h-rule-dark);
}
html #home .p-home-expect .expect-card:first-child { border-inline-start: 0; padding-inline-start: 0; }
#home .p-home-expect .expect-card::before {
  content: counter(expect, decimal-leading-zero);
  position: absolute; top: 36px; inset-inline-end: 28px;
  font-size: .8rem; letter-spacing: .14em; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums;
  font-family: var(--font-main);
}
#home .p-home-expect .expect-card-icon {
  display: flex; justify-content: flex-start; width: auto; height: auto; margin: 0 0 40px; border-radius: 0;
  background: none !important; color: var(--green-lime);
}
#home .p-home-expect .expect-card-title { font-size: 1.25rem; font-weight: 400; color: #fff; margin-bottom: 12px; line-height: 1.3; letter-spacing: -.005em; }
html[dir="rtl"] #home .p-home-expect .expect-card-title { font-weight: 700; }
#home .p-home-expect .expect-card-desc { font-size: 1rem; line-height: 1.65; color: var(--h-on-dark); }

@media (max-width: 960px) {
  #home .p-home-expect .expect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html #home .p-home-expect .expect-card:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  html #home .p-home-expect .expect-card:nth-child(n+3) { border-top: 1px solid var(--h-rule-dark); margin-top: 32px; }
}
@media (max-width: 560px) {
  #home .p-home-expect .expect-grid { grid-template-columns: 1fr; border-top: 0; }
  html #home .p-home-expect .expect-grid .expect-card,
  html[dir="rtl"] #home .p-home-expect .expect-grid .expect-card {
    border-inline-start: 0; padding: 28px 0 26px; margin: 0; border-top: 1px solid var(--h-rule-dark);
  }
  #home .p-home-expect .expect-card::before { top: 30px; inset-inline-end: 0; }
  #home .p-home-expect .expect-card-icon { margin-bottom: 20px; }
}

/* ════ 5. Gemeindeleben (Moment photo-chapters, premium.js) ════════ */
#home .p-chapters { background: #fff; }
#home .p-chapters .mo-ph__head p { color: var(--p-muted); font-size: 1.1rem; }
#home .p-chapters .mo-ph__ch h3 { font-weight: 400; }
/* Der Moment ist für main > section geschrieben; hier steckt er in #home: gleiche Höhe setzen,
   sonst ist die Haltestrecke nur ein paar Pixel lang */
#home > .p-chapters[data-moment].is-live {
  height: calc((var(--mo-hold, 2) + 1) * 100vh);
  height: calc((var(--mo-hold, 2) + 1) * 100svh);
  min-height: 0; padding: 0; display: block;
}
#home > .p-chapters[data-moment]:not(.is-live) { min-height: 0; }
#home .p-chapters.is-live .mo-ph__more { margin-top: 0; }
@media (max-width: 639px) {
  #home .p-chapters.is-live .mo-ph__panel { padding: 16px 18px; gap: 8px; }
  #home .p-chapters.is-live .mo-ph__ch p { font-size: .95rem; line-height: 1.55; }
}

/* ════ 6. Abschluss: Zum ersten Mal hier? ═════════════════════════ */
#home .p-home-visit { background: #fff; padding-block: clamp(24px, 4vw, 56px) clamp(48px, 6vw, 88px); }
#home .p-visit {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: end;
  min-height: clamp(460px, 64vh, 640px);
  padding: clamp(32px, 5.5vw, 80px);
  border-radius: var(--r-lg);
  background: var(--h-ground);
  color: #fff;
}
#home .p-visit.p-has-photo::before {
  background:
    linear-gradient(0deg, rgba(3, 25, 13, .94) 0%, rgba(3, 25, 13, .72) 50%, rgba(3, 25, 13, .3) 100%),
    linear-gradient(90deg, rgba(3, 25, 13, .5) 0%, rgba(3, 25, 13, 0) 65%),
    var(--p-photo) center 45% / cover no-repeat;
}
html[dir="rtl"] #home .p-visit.p-has-photo::before {
  background:
    linear-gradient(0deg, rgba(3, 25, 13, .94) 0%, rgba(3, 25, 13, .72) 50%, rgba(3, 25, 13, .3) 100%),
    linear-gradient(270deg, rgba(3, 25, 13, .5) 0%, rgba(3, 25, 13, 0) 65%),
    var(--p-photo) center 45% / cover no-repeat;
}
#home .p-visit__text { max-width: 720px; }
#home .p-visit .section-label { color: var(--green-lime); justify-content: flex-start; }
#home .p-visit h2 { color: #fff; margin-top: 16px; }
#home .p-visit p { color: rgba(255, 255, 255, .86); font-size: 1.1rem; margin-top: 16px; max-width: 48ch; }
#home .p-visit__facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px;
  margin: 36px 0 0; padding: 0;
}
#home .p-visit__facts > div { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .28); }
#home .p-visit__facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-lime); }
html[dir="rtl"] #home .p-visit__facts dt { letter-spacing: 0; font-size: .95rem; }
#home .p-visit__facts dd { margin: 6px 0 0; font-size: 1.05rem; color: #fff; font-variant-numeric: tabular-nums; }
#home .p-visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
/* auf dunklem Grund: Primär weiß gefüllt, Sekundär weiße Linie (wie im Hero) */
#home .p-visit .btn-primary { background: #fff; color: var(--green-dark); border-color: #fff; }
#home .p-visit .btn-primary:hover { background: var(--green-pale); border-color: var(--green-pale); }
#home .p-visit .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
#home .p-visit .btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
#home .p-visit .btn:focus-visible { outline-color: var(--green-lime); }

@media (max-width: 640px) {
  #home .p-visit { min-height: 0; padding: 120px 22px 26px; }
  #home .p-visit__facts { grid-template-columns: 1fr; gap: 16px; }
  #home .p-visit__actions .btn { width: 100%; justify-content: center; }
}

/* Weniger Bewegung: Listenzeilen ohne Übergang */
@media (prefers-reduced-motion: reduce) {
  #home #homeServicesGrid .service-card { transition: none; }
}
