/* Seite: children – Premium-Layout (eigene Datei je Seite) */
/* Ruhig, warm, fotogetragen: Einleitung mit Foto, Termine aus dem Kalender,
   drei Zusagen als redaktionelle Spalten, breites Foto, Abschluss-Aufruf. */

/* ── 1. Einleitung: Text + Foto ─────────────────────────────── */
#children .ch-intro { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 6vw, 80px); }
#children .ch-intro__grid:not(.has-photo) .ch-intro__text { max-width: 760px; margin-inline: auto; }
#children .ch-intro__grid.has-photo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
#children .ch-intro__text .body-text { max-width: 60ch; margin: 0; color: var(--p-body); font-size: 1.06rem; line-height: 1.8; }
#children .ch-intro__text .body-text + .body-text { margin-top: var(--s-5); }
#children .ch-intro__text .ch-lead {
  font-family: var(--font-display); color: var(--p-ink);
  font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.5; letter-spacing: -.01em; font-weight: 500;
}
html[dir="rtl"] #children .ch-intro__text .ch-lead { letter-spacing: 0; line-height: 1.8; }
html[dir="rtl"] #children .ch-intro__text .body-text { line-height: 1.95; }
#children .ch-intro__text .content-para { display: block; }
#children .ch-intro__text .content-para + .content-para { margin-top: 1em; }

/* Fotos */
#children .ch-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--p-surface); }
#children .ch-photo[hidden] { display: none; }
#children .ch-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
#children .ch-photo--intro { aspect-ratio: 4 / 3; }
#children .ch-photo--intro img { object-position: 62% 40%; }

/* ── 2. Wann: Kinder-Termine aus dem Kalender ───────────────── */
#children .ch-when[hidden] { display: none; }
#children .ch-when { padding-bottom: clamp(48px, 7vw, 96px); }
#children .ch-when__inner {
  background: var(--p-surface); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
}
#children .ch-when__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3) var(--s-5); flex-wrap: wrap;
  padding-bottom: var(--s-5); border-bottom: 1px solid var(--line-strong);
}
#children .ch-when__title { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; color: var(--green-dark); }
html[dir="rtl"] #children .ch-when__title { letter-spacing: 0; line-height: 1.5; }
#children .ch-when__more {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--green-primary); font-weight: 700; font-size: .95rem;
  text-decoration: underline; text-decoration-color: rgba(0, 102, 51, .3); text-underline-offset: 5px;
  transition: text-decoration-color .2s var(--ease);
}
#children .ch-when__more:hover { text-decoration-color: currentColor; }
#children .ch-when__more::after { content: "\2192"; margin-inline-start: 8px; text-decoration: none; display: inline-block; }
html[dir="rtl"] #children .ch-when__more::after { content: "\2190"; }
#children .ch-when__list { list-style: none; margin: 0; padding: 0; }
#children .ch-when__item {
  display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: var(--s-3) var(--s-6);
  padding-block: var(--s-5); border-bottom: 1px solid var(--line);
}
#children .ch-when__item:last-child { border-bottom: 0; padding-bottom: 0; }
#children .ch-when__when { display: flex; flex-direction: column; gap: 2px; }
#children .ch-when__day { color: var(--p-ink); font-weight: 700; font-size: 1.02rem; }
#children .ch-when__time { color: var(--green-primary); font-variant-numeric: tabular-nums; font-size: 1rem; direction: ltr; unicode-bidi: isolate; text-align: start; }
html[dir="rtl"] #children .ch-when__time { text-align: right; }
#children .ch-when__what h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 700; color: var(--p-ink); line-height: 1.35; }
#children .ch-when__what p { margin: 0; color: var(--p-muted); font-size: .98rem; line-height: 1.65; max-width: 60ch; }

/* ── 3. Drei Zusagen: redaktionelle Spalten statt Kästen ────── */
#children .children-features-bar { background: transparent; border: 0; padding: 0 0 clamp(56px, 8vw, 104px); }
#children .children-features-bar .section-label {
  display: inline-flex; justify-content: flex-start; text-align: start;
  background: none; border: 0; padding: 0; margin: 0 0 var(--s-6);
}
#children .children-features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
#children .children-feat-card,
#children .children-feat-card:hover {
  display: block !important; text-align: start; background: none; border: 0; border-radius: 0; box-shadow: none; transform: none;
  padding: var(--s-5) 0 0; border-top: 1px solid var(--line-strong);
}
#children .children-feat-icon {
  width: 44px; height: 44px; margin: 0 0 var(--s-4); border-radius: 12px;
  background: var(--green-pale); border: 0; color: var(--green-primary);
}
#children .children-feat-icon svg { width: 22px; height: 22px; }
#children .children-feat-card h4 { font-size: 1.15rem; color: var(--p-ink); margin: 0 0 var(--s-2); line-height: 1.35; }
#children .children-feat-card p { font-size: 1rem; color: var(--p-body); line-height: 1.7; margin: 0; }

/* ── 4. Breites Foto ────────────────────────────────────────── */
#children .ch-band-wrap:not(.has-photo) { display: none; }
#children .ch-photo--band { aspect-ratio: 21 / 9; }
#children .ch-photo--band img { object-position: 50% 45%; }

/* ── 5. Abschluss-Aufruf ────────────────────────────────────── */
#children .ch-cta-section { padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px); }
#children .children-cta-block {
  margin: 0; text-align: start; position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6) var(--s-7); align-items: center;
  background: var(--green-dark); border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 64px) clamp(28px, 5vw, 72px);
}
#children .children-cta-block::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--green-lime);
}
#children .children-cta-block .section-label {
  display: inline-flex; background: none !important; border: 0; padding: 0; margin: 0 0 var(--s-3);
  color: var(--green-lime) !important; font-size: .78rem; letter-spacing: .18em;
}
html[dir="rtl"] #children .children-cta-block .section-label { letter-spacing: 0; font-size: .95rem; }
#children .children-cta-block h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.015em; line-height: 1.2; margin: 0 0 var(--s-3); color: #fff; }
html[dir="rtl"] #children .children-cta-block h3 { letter-spacing: 0; line-height: 1.5; }
#children .children-cta-block p { margin: 0; color: rgba(255, 255, 255, .84); font-size: 1.04rem; max-width: 52ch; }
#children .children-cta-actions { justify-content: flex-end; flex-wrap: nowrap; }

/* ── Tablet ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  #children .ch-intro__grid.has-photo { grid-template-columns: 1fr; }
  #children .ch-photo--intro { order: -1; aspect-ratio: 16 / 10; }
  #children .children-cta-block { grid-template-columns: 1fr; }
  #children .children-cta-actions { justify-content: flex-start; flex-wrap: wrap; }
}

/* ── Handy ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  #children .ch-intro { padding-top: 40px; }
  #children .ch-intro__grid.has-photo { gap: 28px; }
  #children .ch-when__item { grid-template-columns: 1fr; gap: 6px; }
  #children .ch-when__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  #children .children-features-grid { grid-template-columns: 1fr; gap: 0; }
  #children .children-feat-card,
  #children .children-feat-card:hover {
    display: grid !important; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s-4);
    align-items: start !important; text-align: start; padding: var(--s-5) 0;
  }
  #children .children-feat-icon { grid-row: span 2; margin: 0; }
  #children .ch-photo--band { aspect-ratio: 4 / 3; }
  #children .children-cta-actions { flex-direction: column; align-items: stretch; }
  #children .children-cta-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  #children .ch-when__more { transition: none; }
}
