/* ==========================================================================
   Jakobs-Freunde – Förderverein der Kita St. Jakob Hilpoltstein
   Farben aus dem Kita-Logo abgeleitet, bewusst blasser gehalten.
   Logo-Original: Rot #990000 · Gelb #FFB200 · Blau #0033FF
   ========================================================================== */

@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-display: swap; src: url("../fonts/jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Akzente (gedämpfte Logo-Farben) */
  --berry: #b0524c;        /* aus Logo-Rot */
  --berry-dark: #8a4440;
  --sun: #f1c15d;          /* aus Logo-Gelb */
  --sky: #7593d6;          /* aus Logo-Blau */

  /* Flächen (sehr blass) */
  --bg-white: #fffdfa;
  --bg-sand: #fdf3de;
  --bg-sky: #eaf0fb;
  --bg-rose: #f8e8e5;
  --bg-footer: #8a4a46;

  /* Wellen-Zwischentöne */
  --sand-mid: #f8e2b2;
  --sky-mid: #cfdcf4;
  --rose-mid: #efcdc8;

  --text: #3b302e;
  --text-soft: #6b5d5a;
  --line: #eadfd8;

  --radius: 18px;
  --shadow: 0 6px 24px rgba(80, 50, 40, 0.07);
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-white);
}

h1, h2, h3 { font-family: "Jost", system-ui, sans-serif; font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--berry-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-family: "Jost", sans-serif; font-weight: 500; font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--berry); margin-bottom: .6em;
}
.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 46rem; }
.placeholder { background: rgba(241, 193, 93, .25); border-radius: 4px; padding: 0 .25em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 250, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { height: 42px; width: auto; border-radius: 6px; }
.brand-name { font-family: "Jost", sans-serif; font-weight: 600; font-size: 1.2rem; line-height: 1.1; }
.brand-name small { display: block; font-weight: 400; font-size: .75rem; color: var(--text-soft); }

.nav { display: flex; gap: 4px; }
.nav a {
  font-family: "Jost", sans-serif; font-size: .98rem; text-decoration: none; color: var(--text);
  padding: 8px 12px; border-radius: 999px; transition: background .2s;
}
.nav a:hover, .nav a:focus-visible { background: var(--bg-rose); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--bg-white); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    display: none;
  }
  .nav.open { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Jost", sans-serif; font-weight: 500; font-size: 1rem;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--berry); color: #fff; }
.btn-primary:hover { background: var(--berry-dark); }
.btn-ghost { border-color: var(--berry); color: var(--berry-dark); background: transparent; }
.btn-paypal { background: #ffd56b; color: #253b80; }
.btn-paypal:hover { background: #ffcb45; }

/* ---------- Sections ---------- */
section { padding: 72px 0 56px; }
.bg-white { background: var(--bg-white); }
.bg-sand { background: var(--bg-sand); }
.bg-sky { background: var(--bg-sky); }
.bg-rose { background: var(--bg-rose); }

/* Hero */
.hero { padding: 64px 0 32px; }
.hero .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-logo {
  background: #fff; padding: 14px; border-radius: 24px; box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.hero-logo img { border-radius: 14px; }
@media (max-width: 760px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-logo { max-width: 320px; }
}

/* ---------- Wellen-Trenner ----------
   Hintergrund = Farbe des Abschnitts darüber,
   letzte Welle = Farbe des Abschnitts darunter. */
.wave { display: block; line-height: 0; margin-top: -1px; background: var(--top); }
/* Farben je Trenner über Custom Properties: --top, --w1, --w2, --next
   (werden an die Pfade im <symbol id="wave"> vererbt) */
.wave svg { display: block; width: 100%; height: clamp(60px, 9vw, 130px); }
.wave--flip svg { transform: scaleX(-1); }

/* Grid & Karten */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card .icon {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
}
.icon-sun { background: var(--bg-sand); color: #c08a1c; }
.icon-sky { background: var(--bg-sky); color: #4a6bb8; }
.icon-berry { background: var(--bg-rose); color: var(--berry); }

/* Aktuelles */
.news-card { display: flex; flex-direction: column; }
.news-img {
  aspect-ratio: 16 / 10; border-radius: 12px; margin: -6px -6px 16px;
  display: grid; place-items: center; font-family: "Jost", sans-serif; color: var(--text-soft);
}
.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; align-self: flex-start;
}
.tag-done { background: #e3f1e4; color: #3f7246; }
.tag-goal { background: var(--bg-sand); color: #9a6b10; }
.progress { height: 10px; background: var(--bg-sky); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.progress span { display: block; height: 100%; background: var(--sky); border-radius: inherit; }
.muted { color: var(--text-soft); font-size: .92rem; }

/* Formular */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: 4px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px var(--bg-sky); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 5px; }
.form-note { padding: 12px 16px; border-radius: 12px; background: var(--bg-sand); display: none; }
.form-note.show { display: block; }

/* Spenden */
.donate-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.chip {
  font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); color: var(--text);
}
.chip[aria-pressed="true"] { border-color: var(--berry); background: var(--bg-rose); }

/* Satzung */
details {
  background: #fff; border-radius: 14px; padding: 4px 20px; box-shadow: var(--shadow); margin-bottom: 12px;
}
summary { cursor: pointer; font-family: "Jost", sans-serif; font-weight: 500; font-size: 1.08rem; padding: 14px 0; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

/* Footer / Kontakt */
.site-footer { background: var(--bg-footer); color: #fbeeea; padding: 40px 0 28px; }
.site-footer a { color: #fff; }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-bottom {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: .9rem;
}
.footer-bottom nav { display: flex; gap: 16px; }

