/* Sanduhr e.V. — schlichtes, professionelles Stylesheet */
:root {
  --green: #3C6E3F;
  --green-dark: #2E5430;
  --gold: #F2B705;
  --gold-soft: #f8d97a;
  --cream: #FBF6EC;
  --cream-2: #f4ecdb;
  --ink: #2b2b2b;
  --muted: #5c5c54;
  --card: #ffffff;
  --shadow: 0 8px 30px rgba(46, 84, 48, .08);
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 18px;
}

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

a { color: var(--green); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 236, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-2);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav .brand img { height: 46px; width: auto; }
.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--cream-2); }
.nav-links a.active { background: var(--green); color: #fff; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--green-dark);
  transition: transform .3s ease, opacity .2s ease;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  min-height: 760px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-image:
    linear-gradient(180deg, rgba(251,246,236,.97) 0%, rgba(251,246,236,.82) 26%, rgba(251,246,236,.45) 52%, rgba(251,246,236,.12) 100%),
    url("hero.png");
  background-size: cover;
  background-position: center 32%;
}
.hero-inner {
  max-width: 660px;
  margin: 64px 16px 0;
  padding: 44px 40px;
  background: rgba(251, 246, 236, .74);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-radius: 26px;
  box-shadow: 0 12px 44px rgba(46, 84, 48, .14);
}
.hero .lead { color: #4a4a42; }
.hero img.logo-big { height: 110px; width: auto; margin: 0 auto 28px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  color: var(--green-dark);
  margin: 0 0 14px;
  font-weight: 800;
  line-height: 1.15;
}
.hero p.lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero .tagline {
  display: inline-block;
  font-style: italic;
  font-weight: 700;
  color: var(--gold);
  font-size: 1.15rem;
  margin: 0 0 24px;
}
.brand-tagline { font-style: italic; color: var(--gold); font-weight: 700; }
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform .2s, background .2s;
  box-shadow: var(--shadow);
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn.gold { background: var(--gold); color: var(--green-dark); }
.btn.gold:hover { background: #e0a900; }
.btn.ghost {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--green); color: #fff; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Seiten-Banner (Unterseiten) ---------- */
.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background-size: cover;
  background-position: center 38%;
  color: #fff;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,84,48,.55) 0%, rgba(46,84,48,.68) 100%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.page-hero p {
  color: rgba(255,255,255,.95);
  max-width: 600px;
  margin: 0;
  font-size: 1.1rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--cream-2); }
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  color: var(--green-dark);
  margin: 0 0 12px;
  font-weight: 800;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 44px;
}

/* ---------- Cards / focus areas ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(46,84,48,.06);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(46,84,48,.14); }
.card .icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(60, 110, 63, .10);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; }

/* Foto-Karten (Schwerpunkte) */
.card.photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.photo .card-media { aspect-ratio: 3 / 2; overflow: hidden; }
.card.photo .card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.card.photo:hover .card-media img { transform: scale(1.05); }
.card.photo .card-body { padding: 24px 26px 30px; }
.card.photo .card-body h3 { margin-top: 0; }
.card h3 { margin: 0 0 8px; color: var(--green-dark); font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Aktionen-Galerie ---------- */
.gallery {
  display: flex;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
  align-items: flex-start;
}
.gallery .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}
.gallery figure:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(46,84,48,.16); }
.gallery img { width: 100%; height: auto; display: block; }

/* ---------- Prose (text pages) ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { color: var(--green-dark); font-size: 1.4rem; margin: 32px 0 10px; display: flex; align-items: center; gap: 10px; }
.prose h2 svg { width: 24px; height: 24px; color: var(--green); flex: none; }
.prose p { margin: 0 0 18px; }
.prose .pull {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
  text-align: center;
  margin: 36px 0;
  line-height: 1.4;
}
.prose .small { font-size: .92rem; color: var(--muted); }

/* ---------- Kindergarten list ---------- */
.kg-banner {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 999px;
  font-weight: 700;
  max-width: 560px;
  margin: 0 auto 36px;
}
.kg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 28px;
}
.kg-grid ul { list-style: none; margin: 0; padding: 0; }
.kg-grid li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(46,84,48,.18);
  font-size: .95rem;
}
.kg-grid li strong { color: var(--green-dark); display: block; }
.kg-grid li span { color: var(--muted); font-size: .88rem; }
.kg-grid li {
  padding-left: 22px;
  position: relative;
}
.kg-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--card);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-card img { height: 88px; margin: 0 auto 24px; }
.contact-card a.mail { font-size: 1.2rem; font-weight: 800; }
.contact-card address { font-style: normal; color: var(--muted); margin-top: 18px; line-height: 1.9; }

/* ---------- Formular ---------- */
.form-card {
  background: var(--card);
  max-width: 640px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  color: var(--green-dark);
  font-size: .95rem;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2dccd;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fdfbf6;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(60,110,63,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field.check { display: flex; align-items: flex-start; gap: 10px; }
.field.check input { width: auto; margin-top: 5px; }
.field.check label { font-weight: 400; color: var(--muted); font-size: .9rem; margin: 0; }
.form-card .btn { width: 100%; border: none; cursor: pointer; font-size: 1.05rem; }
.form-note { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 14px; }
.form-hint { color: var(--muted); margin-bottom: 28px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: #e8f0e6;
  padding: 40px 24px;
  text-align: center;
}
.site-footer a { color: var(--gold-soft); text-decoration: none; margin: 0 10px; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .small { font-size: .85rem; color: #b9cab6; margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cards, .kg-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 10px 20px 18px;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-2);
    box-shadow: 0 14px 26px rgba(46,84,48,.12);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 14px; font-size: 1.05rem; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { min-height: 560px; background-position: center 30%; }
  .hero-inner { margin-top: 32px; padding: 30px 22px; }
  .page-hero { min-height: 220px; padding: 36px 20px; }
  .cards, .kg-grid { grid-template-columns: 1fr; }
  .gallery { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 28px 22px; }
}
