:root {
  --pfad-gruen: #3B7A3E;
  --moos-gruen: #234E20;
  --wiesen-gruen: #7BB861;
  --sand-beige: #E4D2A8;
  --holz-braun: #7A5230;
  --sonnen-orange: #E27522;
  --creme: #FBF6E8;
  --text-body: #2E2A22;
  --max-w: 1180px;
}

@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Bree Serif';
  src: url('../fonts/BreeSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--text-body);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  font-size: 17px;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}
h1, h2, h3 { font-family: 'Bree Serif', serif; color: var(--moos-gruen); font-weight: 400; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p, li { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
svg { max-width: 100%; }
.pillar-icon svg { display: block; width: 100%; height: 100%; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--pfad-gruen);
}
.lead { font-size: 1.05rem; }

/* Scroll-Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.pillar-grid > .reveal:nth-child(1), .partner-grid > .reveal:nth-child(1), .gallery-grid > .reveal:nth-child(1), .faq-list > .reveal:nth-child(1) { transition-delay: 0s; }
.pillar-grid > .reveal:nth-child(2), .partner-grid > .reveal:nth-child(2), .gallery-grid > .reveal:nth-child(2), .faq-list > .reveal:nth-child(2) { transition-delay: .1s; }
.pillar-grid > .reveal:nth-child(3), .partner-grid > .reveal:nth-child(3), .gallery-grid > .reveal:nth-child(3), .faq-list > .reveal:nth-child(3) { transition-delay: .2s; }
.pillar-grid > .reveal:nth-child(4), .partner-grid > .reveal:nth-child(4), .gallery-grid > .reveal:nth-child(4), .faq-list > .reveal:nth-child(4) { transition-delay: .3s; }
.faq-list > .reveal:nth-child(5) { transition-delay: .4s; }

/* Scroll-Fortschritt */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; pointer-events: none; }
.scroll-progress-bar { height: 100%; width: 0%; background: var(--sonnen-orange); }

/* Nach oben */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 25;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sonnen-orange); color: var(--moos-gruen);
  border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 8px 20px rgba(35,78,32,.28);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); background: var(--wiesen-gruen); }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251,246,232,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(35,78,32,.12);
  transition: box-shadow .25s ease;
}
header.site.is-scrolled { box-shadow: 0 4px 18px rgba(35,78,32,.1); }
header.site .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; transition: padding .25s ease; }
header.site.is-scrolled .wrap { padding-top: 8px; padding-bottom: 8px; }
.logo-mark { height: 44px; width: auto; transition: height .25s ease; }
header.site.is-scrolled .logo-mark { height: 36px; }
nav.main { display: flex; align-items: center; gap: 28px; }
nav.main a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--moos-gruen); }
nav.main a:hover { color: var(--pfad-gruen); }
.back-link { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--moos-gruen); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--moos-gruen);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  padding: 12px 26px; border-radius: 999px;
  text-decoration: none; font-size: 1rem;
  border: 2px solid transparent;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sonnen-orange); color: var(--moos-gruen); }
.btn-ghost { border-color: var(--creme); color: var(--creme); }
.btn-ghost:hover { border-color: var(--sonnen-orange); }
nav.main .btn-primary { padding: 10px 20px; font-size: .92rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: var(--creme);
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
  animation: hero-kenburns 18s ease-in-out infinite alternate;
}
.hero-slide.is-active { opacity: 1; }
@keyframes hero-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(35,78,32,.25) 0%, rgba(20,40,18,.78) 100%);
}
.hero-path { position: absolute; z-index: 2; pointer-events: none; }
.hero-path-desktop { inset: 0; width: 100%; height: 100%; }
.hero-path-mobile { display: none; top: 0; left: 0; width: 100%; height: 130px; }
.hero-path-reveal { fill: none; stroke: #fff; stroke-width: 46; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hero-path-draw 2.6s .4s cubic-bezier(.65,0,.35,1) forwards; }
.hero-path-visible { fill: none; stroke: var(--sonnen-orange); stroke-width: 3.5; stroke-dasharray: 2.5 14; stroke-linecap: round; opacity: .85; animation: hero-path-march 7s linear 3s infinite; }
.hero-path-mobile .hero-path-reveal { stroke-width: 26; }
.hero-path-mobile .hero-path-visible { stroke-width: 4.5; stroke-dasharray: 3 15; }
@keyframes hero-path-draw { to { stroke-dashoffset: 0; } }
@keyframes hero-path-march { to { stroke-dashoffset: -200; } }
.hero .wrap { position: relative; z-index: 3; padding-bottom: 64px; padding-top: 120px; }
.hero h1 { color: var(--creme); max-width: 19ch; }
.hero .lead { max-width: 46ch; font-size: 1.1rem; color: rgba(251,246,232,.92); }
.hero .cta-row { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* Pfad signature */
.pfad-signature { position: relative; }
.pfad-signature svg.pfad-line {
  position: absolute; left: 50%; top: 0; height: 100%; width: 120px;
  transform: translateX(-50%);
  pointer-events: none; opacity: .35;
  z-index: 0;
}
.pfad-line path { transition: stroke-dashoffset .1s linear; }

/* Stats */
.stats { background: var(--moos-gruen); color: var(--creme); padding: 56px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--sonnen-orange); line-height: 1; }
.stat-label { font-size: .95rem; color: rgba(251,246,232,.85); margin-top: 8px; }

/* Pillars */
.pillars { padding: 90px 0 70px; position: relative; }
.pillars-head { max-width: 60ch; margin-bottom: 48px; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; z-index: 1; }
.pillar-card { background: var(--sand-beige); border-radius: 20px; padding: 28px 24px; transition: transform .25s ease, box-shadow .25s ease; }
.pillar-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(35,78,32,.16); }
.pillar-icon { width: 40px; height: 40px; margin-bottom: 16px; transition: transform .25s ease; }
.pillar-card:hover .pillar-icon { transform: scale(1.12) rotate(-4deg); }
.pillar-card h3 { margin-bottom: 10px; }
.pillar-card p { font-size: .92rem; color: var(--text-body); margin: 0; }

/* Partner */
.partner { padding: 20px 0 90px; }
.partner-head { max-width: 60ch; margin-bottom: 40px; }
.partner-lead { color: var(--text-body); font-size: 1.05rem; max-width: 55ch; }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner-slot {
  aspect-ratio: 16/10; border-radius: 16px;
  border: 2px dashed rgba(35,78,32,.25);
  display: flex; align-items: center; justify-content: center;
  background: rgba(228,210,168,.25);
}
.partner-slot-cta {
  border-style: solid; border-color: var(--sonnen-orange); background: var(--sand-beige);
  text-decoration: none; color: var(--moos-gruen); font-family: 'Fredoka', sans-serif; font-weight: 600;
  text-align: center; flex-direction: column; gap: 6px; font-size: .92rem; line-height: 1.3;
  transition: transform .15s ease;
}
.partner-slot-cta:hover { transform: translateY(-3px); }
.partner-plus { font-size: 2rem; line-height: 1; color: var(--sonnen-orange); }
.partner-slot-real {
  background: var(--creme); border-style: solid; border-color: rgba(35,78,32,.15);
  padding: 18px; transition: transform .15s ease, border-color .15s ease;
  overflow: hidden;
}
.partner-slot-real:hover { transform: translateY(-3px); border-color: var(--pfad-gruen); }
.partner-slot-real img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
.partner-slot-real img.logo-lg { max-height: 132px; }
.partner-slot-real img.logo-md { max-height: 100px; }

/* Gallery */
.gallery { padding: 0 0 90px; }
.gallery-head { max-width: 60ch; margin-bottom: 32px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3/4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(0deg, rgba(35,78,32,.88), rgba(35,78,32,0));
  color: var(--creme); font-size: .82rem; font-weight: 600;
}

/* Foerdern */
.foerdern { background: var(--moos-gruen); color: var(--creme); padding: 90px 0; }
.foerdern .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.foerdern h2 { color: var(--creme); }
.foerdern .lead { color: rgba(251,246,232,.88); font-size: 1.05rem; max-width: 50ch; }
.foerdern-badge {
  display: inline-block; background: var(--wiesen-gruen); color: var(--moos-gruen);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.foerdern-card { background: rgba(251,246,232,.06); border: 1px solid rgba(251,246,232,.22); border-radius: 20px; padding: 32px; transition: border-color .25s ease, transform .25s ease; }
.foerdern-card:hover { border-color: rgba(251,246,232,.4); }
.foerdern-card dl { margin: 0 0 24px; }
.foerdern-card dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--wiesen-gruen); margin-top: 14px; }
.foerdern-card dd { margin: 2px 0 0; font-size: 1.05rem; }
.iban-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(251,246,232,.12); border: 1px solid rgba(251,246,232,.32);
  color: var(--creme); font-family: 'Inter', sans-serif; font-size: .74rem; font-weight: 600;
  padding: 4px 11px; border-radius: 999px; cursor: pointer; line-height: 1.6;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.copy-btn:hover { background: rgba(251,246,232,.22); border-color: var(--sonnen-orange); }
.copy-btn.is-copied { background: var(--wiesen-gruen); color: var(--moos-gruen); border-color: var(--wiesen-gruen); }
.foerdern-note { font-size: .82rem; color: rgba(251,246,232,.65); margin-top: 18px; }
.foerdern-card .btn-primary { width: 100%; justify-content: center; margin-top: 8px; }

/* FAQ */
.faq { padding: 90px 0; }
.faq-head { max-width: 60ch; margin-bottom: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 780px; }
.faq-item { background: var(--sand-beige); border-radius: 16px; padding: 18px 24px; transition: box-shadow .25s ease; }
.faq-item:hover { box-shadow: 0 10px 24px rgba(35,78,32,.1); }
.faq-item summary {
  cursor: pointer; font-family: 'Fredoka', sans-serif; font-weight: 600;
  color: var(--moos-gruen); font-size: 1.02rem; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.4rem; line-height: 1; color: var(--sonnen-orange);
  flex-shrink: 0; transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-panel { overflow: hidden; transition: height .3s ease; }
.faq-panel p { margin: 12px 0 0; color: var(--text-body); font-size: .95rem; }

/* Footer */
footer.site { background: var(--holz-braun); color: var(--creme); padding: 56px 0 28px; }
footer.site .foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
footer.site .logo-mark { margin-bottom: 16px; }
footer.site h3 { color: var(--creme); font-size: 1rem; font-family: 'Inter'; font-weight: 700; margin-bottom: 14px; }
footer.site a { text-decoration: none; color: rgba(251,246,232,.85); display: block; margin-bottom: 8px; font-size: .92rem; }
footer.site a:hover { color: var(--sonnen-orange); }
.foot-bottom { border-top: 1px solid rgba(251,246,232,.18); padding-top: 20px; font-size: .8rem; color: rgba(251,246,232,.85); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Legal pages */
main.legal { max-width: 68ch; margin: 0 auto; padding: 64px 28px 90px; }
.placeholder { display: inline-block; background: var(--sonnen-orange); color: var(--moos-gruen); font-weight: 700; font-size: .78rem; letter-spacing: .02em; padding: 2px 10px; border-radius: 999px; }

/* Kontakt */
.kontakt-main { padding: 64px 0 100px; }
.kontakt-main .wrap { max-width: 900px; }
.kontakt-lead { font-size: 1.05rem; max-width: 55ch; }
.kontakt-error {
  background: rgba(226,117,34,.12); border: 1px solid var(--sonnen-orange);
  color: var(--moos-gruen); padding: 14px 18px; border-radius: 12px; font-size: .92rem; margin: 0 0 24px;
}
.kontakt-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; margin-top: 32px; align-items: start; }
.kontakt-form { display: flex; flex-direction: column; gap: 18px; }
.kontakt-form label {
  display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--moos-gruen);
}
.kontakt-form input[type="text"],
.kontakt-form input[type="email"],
.kontakt-form textarea {
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 400; color: var(--text-body);
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid rgba(35,78,32,.25);
  background: var(--creme); resize: vertical;
}
.kontakt-form input:focus, .kontakt-form textarea:focus {
  outline: none; border-color: var(--pfad-gruen);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.kontakt-checkbox { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: .88rem !important; color: var(--text-body) !important; }
.kontakt-checkbox input { margin-top: 3px; accent-color: var(--pfad-gruen); }
.kontakt-form button { align-self: flex-start; margin-top: 4px; }
.kontakt-info {
  background: var(--sand-beige); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.kontakt-info h3 { margin-bottom: 4px; }
.kontakt-info a { text-decoration: none; color: var(--moos-gruen); font-weight: 600; }
.kontakt-info a:hover { color: var(--pfad-gruen); }
.kontakt-danke { text-align: left; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  nav.main {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--creme);
    border-bottom: 1px solid rgba(35,78,32,.12);
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  nav.main.is-open { max-height: 320px; padding: 8px 28px 20px; }
  nav.main a { display: block; width: 100%; padding: 10px 0; }
  nav.main a.btn-primary { width: auto; justify-content: center; margin-top: 8px; }
  .partner-slot-real img.logo-lg { max-height: 84px; }
  .partner-slot-real img.logo-md { max-height: 68px; }
  .stats .wrap { grid-template-columns: 1fr; gap: 32px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .foerdern .grid { grid-template-columns: 1fr; }
  footer.site .foot-grid { grid-template-columns: 1fr 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  svg.hero-path-desktop { display: none; }
  svg.hero-path-mobile { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-item img, .btn, .pfad-line path { transition: none; }
  .hero-slide { animation: none; transition: none; }
  .hero-path-reveal { animation: none; stroke-dashoffset: 0; }
  .hero-path-visible { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pillar-card, .pillar-icon, .faq-panel, .back-to-top, header.site, header.site .wrap, .logo-mark { transition: none; }
}
