/* Kindergarten theme for ProcessWire
   No external fonts, frameworks or trackers.
*/

:root {
  --bg: #fffaf2;
  --surface: #ffffff;
  --surface-soft: #f5f8f1;
  --ink: #24312b;
  --muted: #627068;
  --line: #dde4dd;
  --green: #2f6f58;
  --green-dark: #245343;
  --peach: #f7d5bd;
  --mint: #d9eadf;
  --blue: #dce9f2;
  --yellow: #f3dc8f;
  --shadow: 0 18px 50px rgba(41, 62, 51, .09);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 38px;
  --container: 1160px;
  --narrow: 760px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: ui-rounded, "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

button,
input,
textarea,
select { font: inherit; }

h1, h2, h3, .h3 {
  margin: 0 0 .6em;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

h1 { font-size: clamp(2.7rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3, .h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }

p { margin: 0 0 1.1em; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow { max-width: var(--narrow); }
.center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  left: 1rem;
  top: 1rem;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--green-dark);
  border-radius: 10px;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #a45e16;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 250, 242, .94);
  border-bottom: 1px solid rgba(221, 228, 221, .8);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-block;
  flex: 0 0 auto;
}

.brand-mark span {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.brand-mark span:nth-child(1) {
  width: 25px; height: 25px; left: 2px; top: 15px; background: var(--green);
}

.brand-mark span:nth-child(2) {
  width: 21px; height: 21px; right: 2px; top: 3px; background: var(--yellow);
}

.brand-mark span:nth-child(3) {
  width: 18px; height: 18px; right: 3px; bottom: 2px; background: #e39b70;
}

.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 1.02rem; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .76rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav ul a {
  display: block;
  padding: .65rem .7rem;
  border-radius: 9px;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 700;
}

.main-nav ul a:hover,
.main-nav ul a[aria-current="page"] {
  color: var(--green-dark);
  background: var(--mint);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .8rem 1.2rem;
  color: #fff;
  background: var(--green);
  border: 2px solid var(--green);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding: .65rem 1rem;
  font-size: .9rem;
}

.button-secondary {
  color: var(--green-dark);
  background: transparent;
  border-color: #9ab7a8;
}

.button-secondary:hover {
  color: #fff;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.button-light {
  color: var(--green-dark);
  background: #fff;
  border-color: #fff;
}

.button-light:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.text-link {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 8vw, 104px) 0 clamp(70px, 9vw, 120px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(1px);
}

.hero::before {
  width: 260px; height: 260px; left: -130px; top: 90px; background: rgba(247, 213, 189, .45);
}

.hero::after {
  width: 190px; height: 190px; right: -80px; bottom: 35px; background: rgba(217, 234, 223, .8);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(40px, 7vw, 86px);
  align-items: center;
}

.hero-copy h1 { max-width: 720px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lead {
  color: #47554e;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.hero-copy .lead { max-width: 650px; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 0;
  margin: 40px 0 0;
  list-style: none;
}

.hero-facts li { display: grid; }
.hero-facts strong { font-size: .98rem; }
.hero-facts span { color: var(--muted); font-size: .85rem; }

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-visual > img,
.hero-placeholder {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 42% 58% 45% 55% / 42% 45% 55% 58%;
  box-shadow: var(--shadow);
}

.hero-placeholder {
  position: relative;
  overflow: hidden;
  background: #cfe5d5;
}

.shape {
  position: absolute;
  display: grid;
  place-items: center;
}

.shape-sun {
  width: 104px;
  height: 104px;
  top: 54px;
  right: 54px;
  border-radius: 50%;
  background: var(--yellow);
}

.shape-hill {
  width: 115%;
  height: 48%;
  left: -10%;
  bottom: -8%;
  border-radius: 50% 50% 0 0;
  background: #6f9d77;
  transform: rotate(-4deg);
}

.shape-house {
  left: 22%;
  bottom: 25%;
  width: 150px;
  height: 145px;
  color: #fff;
  background: #db8b64;
  border-radius: 40px 40px 18px 18px;
  font-size: 4rem;
}

.shape-flower {
  right: 15%;
  bottom: 17%;
  color: #fff7d7;
  font-size: 6rem;
}

.scribble {
  position: absolute;
  right: -22px;
  top: 8%;
  color: #c77756;
  font-family: Georgia, serif;
  font-size: 4rem;
  transform: rotate(18deg);
}

/* Sections */
.section { padding: clamp(66px, 8vw, 104px) 0; }
.section-intro { padding-top: 35px; }
.section-tinted { background: #f2f6f0; }

.intro-prose { max-width: 690px; margin: 0 auto; }
.intro-prose p { font-size: 1.12rem; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading h2 { margin-bottom: 0; }
.section-copy { color: var(--muted); max-width: 520px; }

/* Quick links */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quick-card {
  min-height: 185px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quick-card-peach { background: var(--peach); }
.quick-card-mint { background: var(--mint); }
.quick-card-blue { background: var(--blue); }

.quick-card > span:nth-child(2) { display: grid; gap: 5px; }
.quick-card strong { font-size: 1.18rem; }
.quick-card small { color: #4e5d55; line-height: 1.45; }
.quick-card > span:last-child { font-size: 1.4rem; font-weight: 900; }

.quick-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.65);
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.15rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(41, 62, 51, .04);
}

.card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mint);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.card:hover .card-image img { transform: scale(1.025); }

.card-body { padding: 26px; }
.card-body h2, .card-body h3 { margin-top: 7px; }
.card-body h2 a, .card-body h3 a { text-decoration: none; }
.card-body p { color: var(--muted); }

.card-meta {
  color: var(--green);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Events */
.split {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.event-list { display: grid; gap: 12px; }

.event-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.event-row:hover { transform: translateX(4px); border-color: #a9c2b4; }

.event-date {
  min-height: 68px;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--mint);
  border-radius: 14px;
}

.event-date strong { font-size: 1.5rem; line-height: 1; }
.event-date small { margin-top: 5px; color: var(--green-dark); font-weight: 800; text-transform: uppercase; }
.event-copy { display: grid; }
.event-copy strong { font-size: 1.03rem; }
.event-copy small { margin-top: 4px; color: var(--muted); line-height: 1.45; }

.event-list-large .event-row { padding: 22px; }

/* CTA */
.cta-section { padding-top: 10px; }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: clamp(36px, 6vw, 64px);
  color: #fff;
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cta h2 { max-width: 720px; }
.cta p { max-width: 660px; color: #dceae3; }
.cta .eyebrow { color: #f5d99c; }

/* Interior pages */
.page-hero {
  padding: clamp(70px, 9vw, 120px) 0 clamp(48px, 6vw, 82px);
  background: linear-gradient(180deg, rgba(217, 234, 223, .58), rgba(255,250,242,0));
}

.page-hero h1 { font-size: clamp(2.7rem, 5vw, 4.6rem); }
.article-hero { padding-bottom: 55px; }

.back-link {
  display: block;
  width: fit-content;
  margin-bottom: 28px;
  color: var(--green-dark);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.article-image {
  margin-top: -20px;
}

.article-image img,
.profile-image {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.profile-image { margin-bottom: 40px; }

.prose {
  color: #35433b;
  font-size: 1.04rem;
}

.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.5em; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.prose h3 { margin-top: 1.5em; }
.prose a { color: var(--green-dark); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote {
  margin: 2em 0;
  padding: 1.4em 1.6em;
  background: var(--mint);
  border-left: 5px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.empty-state {
  padding: 42px;
  text-align: center;
  background: #fff;
  border: 1px dashed #b7c4bc;
  border-radius: var(--radius);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.team-card img,
.team-placeholder {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.team-placeholder {
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--mint);
  font-size: 5rem;
}

.team-copy { padding: 24px; }
.team-copy p:last-child { margin-bottom: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(35px, 7vw, 84px);
  align-items: start;
}

.contact-card {
  padding: clamp(26px, 4vw, 40px);
  background: var(--mint);
  border-radius: var(--radius);
}

.contact-list {
  display: grid;
  gap: 20px;
  margin: 28px 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}

.contact-list dt { font-weight: 850; }
.contact-list dd { margin: 0; color: #44554c; }
.contact-list a { color: var(--green-dark); font-weight: 750; }

/* Footer */
.site-footer {
  margin-top: 30px;
  padding: 68px 0 28px;
  color: #eaf2ed;
  background: #203a30;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .8fr .95fr;
  gap: 50px;
}

.brand-footer { color: #fff; }
.brand-footer .brand-copy small { color: #c7d8cf; }
.footer-note { max-width: 320px; margin-top: 22px; color: #c7d8cf; }

.footer-heading {
  margin: 0 0 18px;
  color: #fff;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a,
.site-footer p a,
.footer-bottom a { color: #dce9e2; }

.site-footer .text-link { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 55px;
  padding-top: 24px;
  color: #a9beb3;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: .86rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 1000px) {
  .main-nav { gap: 12px; }
  .main-nav ul a { padding-inline: .5rem; font-size: .88rem; }
  .quick-grid, .card-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open { display: flex; }
  .main-nav ul { align-items: stretch; flex-direction: column; }
  .main-nav ul a { padding: .8rem .9rem; font-size: 1rem; }
  .main-nav .button { width: 100%; }

  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual { min-height: 420px; }
  .hero-visual > img, .hero-placeholder { height: 420px; }
  .hero-copy { max-width: 760px; }
  .split { gap: 36px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 72px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy small { display: none; }
  .main-nav { top: 66px; left: 14px; right: 14px; }

  .hero { padding-top: 44px; }
  .hero-grid { gap: 45px; }
  .hero-visual { min-height: 350px; }
  .hero-visual > img, .hero-placeholder { height: 350px; }
  .shape-house { width: 110px; height: 108px; font-size: 3rem; }
  .shape-sun { width: 80px; height: 80px; }
  .scribble { right: 2px; }

  .quick-grid,
  .card-grid,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child { grid-column: auto; }

  .quick-card { min-height: 150px; padding: 22px; }

  .section-heading,
  .cta,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta { border-radius: 26px; }
  .cta .button { width: 100%; }

  .event-row { grid-template-columns: 62px 1fr auto; gap: 12px; padding: 14px; }
  .event-date { min-height: 62px; }

  .contact-list div { grid-template-columns: 1fr; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Einrichtung / Bildergalerie */

.facility-section {
  overflow: hidden;
}

.facility-heading {
  margin-bottom: 55px;
}

.facility-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.facility-photo {
  position: relative;
  grid-column: span 4;
  margin: 0;
  transition: transform .25s ease;
}

.facility-photo:nth-child(6n + 1) {
  grid-column: span 7;
  transform: rotate(-1.5deg);
}

.facility-photo:nth-child(6n + 2) {
  grid-column: span 5;
  margin-top: 55px;
  transform: rotate(1.8deg);
}

.facility-photo:nth-child(6n + 3) {
  grid-column: span 4;
  margin-top: 15px;
  transform: rotate(1deg);
}

.facility-photo:nth-child(6n + 4) {
  grid-column: span 5;
  margin-top: 45px;
  transform: rotate(-1.3deg);
}

.facility-photo:nth-child(6n + 5) {
  grid-column: span 3;
  margin-top: -15px;
  transform: rotate(2deg);
}

.facility-photo:nth-child(6n + 6) {
  grid-column: span 7;
  transform: rotate(-.8deg);
}

.facility-photo:hover {
  z-index: 2;
  transform: rotate(0deg) translateY(-6px);
}

.facility-photo-link {
  display: block;
  overflow: hidden;
  padding: 9px;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.facility-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 15px;
}

.facility-photo:nth-child(3n + 1) img {
  aspect-ratio: 5 / 3;
}

.facility-photo:nth-child(4n + 2) img {
  aspect-ratio: 4 / 5;
}

.facility-photo figcaption {
  width: fit-content;
  max-width: 88%;
  margin: -12px 18px 0 auto;
  padding: 8px 14px;
  position: relative;

  color: var(--green-dark);
  background: var(--mint);
  border-radius: 10px;

  font-size: .85rem;
  font-weight: 750;

  transform: rotate(-1deg);
}


/* Tablet */

@media (max-width: 900px) {

  .facility-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .facility-photo,
  .facility-photo:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }

  .facility-photo:nth-child(3n + 2) {
    margin-top: 35px;
  }
  
  .facility-photo-link {
    display: block;
    overflow: hidden;
    padding: 9px;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

}


/* Smartphone */

@media (max-width: 600px) {

  .facility-gallery {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .facility-photo,
  .facility-photo:nth-child(n) {
    margin-top: 0;
    transform: none;
  }

  .facility-photo img,
  .facility-photo:nth-child(n) img {
    aspect-ratio: auto;
  }
  
  .facility-photo-link {
    display: block;
    overflow: hidden;
    padding: 9px;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

}