/* Herzkinder Afrika – Moyo Mission */
/* Fonts – lokal eingebunden (keine Verbindung zu Google) */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/baloo2-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }

:root {
  --red: #d2474b;
  --red-dark: #b53a3e;
  --navy: #1e3a5f;
  --cream: #f4efe4;
  --mauve: #8a6a82;
  --plum: #6b4c66;
  --text: #3a3a3a;
  --muted: #6b6b6b;
  --white: #ffffff;
  --radius: 6px;
  --max: 1100px;
  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section--cream { background: var(--cream); }
.section-title { font-family: var(--font-head); color: var(--navy); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.4rem); text-align: center; line-height: 1.2; margin-bottom: 18px; }
.lead { max-width: 640px; margin: 0 auto 40px; text-align: center; color: var(--muted); }

/* Buttons */
.btn { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: .8rem; padding: 7px 22px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--plum { background: var(--plum); color: var(--white); }
.btn--plum:hover { background: #573d53; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--dark { background: #2b2b2b; color: var(--white); }
.btn--wide { min-width: 140px; text-align: left; }

/* Image placeholder – replace with <img> later */
.ph { position: relative; background: linear-gradient(135deg, #c9d6e3, #9fb3c8); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: flex-end; }
.ph::after { content: attr(data-label); position: absolute; inset: auto 0 0 0; padding: 6px 10px; font-size: .7rem; color: #fff; background: rgba(30,58,95,.55); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--round { border-radius: 50%; aspect-ratio: 1; }

/* Header */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.header--solid { position: relative; background: var(--white); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: var(--max); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; line-height: .9; color: var(--navy); }
.logo__mark { width: 30px; height: 30px; }
.logo__text { font-size: 1.15rem; letter-spacing: .5px; }
.logo__sub { display: block; font-size: .6rem; color: var(--red); letter-spacing: 1px; }
.header:not(.header--solid) .logo { color: var(--white); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: .85rem; font-weight: 500; }
.header:not(.header--solid) .nav a:not(.btn) { color: var(--white); }
.nav a.active:not(.btn) { background: var(--navy); color: var(--white) !important; padding: 3px 12px; border-radius: 999px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 26px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 3px; background: var(--red); border-radius: 2px; }

/* Hero */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); overflow: hidden; }
.hero--small { min-height: 380px; }
.hero__bg { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.hero__bg::after { display: none; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45)); z-index: 1; }
.hero__content { position: relative; z-index: 2; padding: 0 20px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.05; margin-bottom: 8px; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.hero p { max-width: 460px; margin: 0 auto 16px; font-size: .9rem; }

/* Cards grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card .ph { aspect-ratio: 4/5; margin-bottom: 12px; }
.card p { font-size: .82rem; color: var(--muted); }

/* Timeline */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-top: 40px; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 8px; margin-left: -4px; background: var(--red); border-radius: 4px; }
.timeline::after { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 8px; margin-left: -35px; background: var(--red); border-radius: 4px; }
.tl-item { position: relative; width: 50%; padding: 0 50px 50px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 50px 50px; }
.tl-item::before { content: ""; position: absolute; top: 40px; right: 0; width: 40px; height: 8px; background: var(--red); border-radius: 4px; }
.tl-item:nth-child(even)::before { right: auto; left: 0; }
.tl-item h3 { font-family: var(--font-head); color: var(--navy); font-size: 1.15rem; margin: 10px 0 4px; }
.tl-item p { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.tl-item .ph { aspect-ratio: 1/1; max-width: 300px; }
.tl-item:nth-child(odd) .ph { margin-left: auto; }
.stat { font-family: var(--font-head); color: var(--red); font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 700; line-height: 1; }
.tl-item--stat p { max-width: 240px; }
.tl-item--stat:nth-child(odd) { text-align: right; }
.tl-item--stat:nth-child(odd) p { margin-left: auto; }

/* Mission banner */
.banner { position: relative; min-height: 440px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); overflow: hidden; }
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.4); z-index: 1; }
.banner .hero__bg { position: absolute; inset: 0; }
.banner__content { position: relative; z-index: 2; padding: 0 20px; }
.banner h2 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin-bottom: 8px; }
.banner p { max-width: 460px; margin: 0 auto 16px; font-size: .9rem; }

/* Team carousel */
.carousel { position: relative; display: flex; align-items: center; gap: 12px; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; }
.carousel__track::-webkit-scrollbar { display: none; }
.member { scroll-snap-align: start; }
.member .ph { aspect-ratio: 4/5; margin-bottom: 8px; }
.member strong { display: block; font-size: .85rem; color: var(--navy); }
.member span { font-size: .75rem; color: var(--muted); }
.carousel__btn { background: none; border: 0; font-size: 1.8rem; color: var(--muted); cursor: pointer; padding: 0 4px; }

/* Children timeline */
.child .btn { margin-top: 10px; min-width: 160px; text-align: left; }

/* Trust */
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; margin: 30px 0; }
.check svg { width: 34px; height: 34px; color: #2f6b3a; margin: 0 auto 6px; }
.check strong { display: block; color: var(--navy); font-size: .9rem; }
.check p { font-size: .8rem; color: var(--muted); }
.wide-img { aspect-ratio: 16/7; max-width: 760px; margin: 0 auto; }

/* Organisation */
.org { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; padding-top: 180px; }
.org__lines { position: absolute; top: 0; left: 0; width: 100%; height: 180px; }
.org__item .icon { width: 56px; height: 56px; border-radius: 50%; background: #e7dccb; display: grid; place-items: center; margin: 0 auto 10px; color: var(--plum); }
.org__item strong { display: block; color: var(--navy); font-size: .9rem; margin-bottom: 4px; }
.org__item p { font-size: .78rem; color: var(--muted); }

.check-list { list-style: none; max-width: 560px; margin: 0 auto; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; font-size: .9rem; }
.check-list svg { flex: none; width: 28px; height: 28px; color: #2f6b3a; }

.certs { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.cert { width: 90px; height: 90px; border-radius: 50%; border: 3px solid #e7dccb; display: grid; place-items: center; color: var(--plum); }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 0 auto; }
.mv-grid .ph { aspect-ratio: 4/3; }
.mv-grid .btn { margin-top: -40px; position: relative; z-index: 3; margin-left: 50%; transform: translateX(-50%); }
.mv-grid > div { text-align: center; }

/* Get involved rows */
.involve-row { padding: 40px 0; }
.involve-row:nth-child(even) { background: var(--cream); }
.involve { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.involve--reverse .involve__img { order: 2; }
.involve .ph { aspect-ratio: 16/9; }
.involve h3 { font-family: var(--font-head); color: var(--navy); font-size: 1.3rem; margin-bottom: 6px; }
.involve p { color: var(--muted); font-size: .88rem; margin-bottom: 12px; }

/* Footer */
.footer { background: var(--mauve); color: var(--white); padding: 50px 0 30px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer h4 { font-weight: 400; font-size: .9rem; margin-bottom: 12px; }
.socials { display: flex; gap: 14px; }
.socials a svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.socials a:hover svg { opacity: .75; }
.footer__links { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 90px; font-size: .75rem; }
.footer__links a:hover { text-decoration: underline; }
.footer__copy { text-align: center; font-size: .7rem; opacity: .7; margin-top: 24px; }

/* Responsive */
@media (max-width: 860px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(280px, 80vw); flex-direction: column; align-items: flex-start; padding: 80px 28px; background: var(--white); box-shadow: -4px 0 20px rgba(0,0,0,.15); transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; z-index: 60; }
  .nav.open { transform: none; visibility: visible; }
  .nav a:not(.btn) { color: var(--navy) !important; font-size: 1rem; }
  .nav-toggle { display: flex; position: relative; z-index: 70; }
  .grid-3, .checks { grid-template-columns: 1fr; }
  .grid-3 { max-width: 380px; margin: 0 auto; }
  .carousel__track { grid-auto-columns: 70%; }
  .org { grid-template-columns: 1fr 1fr; padding-top: 0; }
  .org__lines { display: none; }
  .involve, .mv-grid { grid-template-columns: 1fr; }
  .involve--reverse .involve__img { order: 0; }

  .timeline { padding-left: 0; }
  .timeline::before { left: 14px; }
  .timeline::after { left: 14px; margin-left: -4px; width: 40px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 40px 50px; }
  .tl-item::before, .tl-item:nth-child(even)::before { left: 14px; right: auto; width: 26px; }
  .tl-item:nth-child(odd) .ph { margin-left: 0; }
  .tl-item--stat:nth-child(odd) { text-align: left; }
  .tl-item--stat:nth-child(odd) p { margin-left: 0; }
}

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { text-align: left; }
.legal h2 { font-family: var(--font-head); color: var(--navy); font-size: 1.3rem; margin: 32px 0 8px; }
.legal h3 { font-size: 1rem; color: var(--navy); margin: 20px 0 6px; }
.legal p, .legal li { font-size: .9rem; margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--red); text-decoration: underline; }
.todo { background: #fff3b0; padding: 0 4px; border-radius: 3px; }
