/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #9e2050;
  --primary-dark: #7d1940;
  --secondary: #2d6b4a;
  --accent: #2d6b4a;
  --text: #2d2d2d;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f4f8f5;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.12);
  /* wurden verwendet, waren aber nie definiert */
  --rosa: var(--primary);
  --gruen: var(--secondary);
  --white: #fff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.2rem; font-weight: 800;
  color: var(--primary); text-decoration: none;
}
.logo-icon { font-size: 1.5rem; }
.logo-img { height: 64px; width: auto; object-fit: contain; }
.highlight-green { color: var(--secondary); }
.footer-logo-img { height: 64px; width: auto; background: #fff; border-radius: 10px; padding: 6px 12px; }

.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--text);
  font-weight: 600; padding: 8px 14px;
  border-radius: 8px; transition: all .2s;
  font-size: .95rem;
}
.nav-links a:hover { color: var(--primary); background: rgba(158,32,80,.06); }
.btn-nav {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 24px !important;
  padding: 8px 20px !important;
}
.btn-nav:hover { background: var(--primary-dark) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: .3s;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 48px; padding: 100px 24px 60px;
  max-width: 1140px; margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(158,32,80,.1);
  color: var(--primary);
  font-size: .85rem; font-weight: 700;
  padding: 6px 16px; border-radius: 24px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 20px;
}
.highlight { color: var(--primary); }
.hero-logo { width: 320px; max-width: 100%; height: auto; display: block; }
.hero p {
  font-size: 1.1rem; color: var(--text-light);
  margin-bottom: 32px; max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px;
  border-radius: 50px; font-weight: 700;
  text-decoration: none; transition: all .2s;
  font-size: 1rem; border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(158,32,80,.3); }
.btn-outline {
  border-color: var(--primary); color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-full { width: 100%; text-align: center; }

/* Hero Visual */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; height: 420px; }
.hero-blob {
  width: 340px; height: 340px; border-radius: 60% 40% 55% 45% / 50% 60% 40% 55%;
  background: linear-gradient(135deg, #f5e8ed, #e8f2ec);
  position: absolute;
  animation: blob 8s ease-in-out infinite alternate;
}
@keyframes blob {
  from { border-radius: 60% 40% 55% 45% / 50% 60% 40% 55%; }
  to   { border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%; }
}
.hero-cards { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.hero-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  font-weight: 700; font-size: .95rem;
  animation: float 4s ease-in-out infinite;
}
.hero-card small { font-weight: 400; color: var(--text-light); font-size: .8rem; }
.card-icon { font-size: 1.6rem; }
.card-1 { animation-delay: 0s; transform: translateX(-20px); }
.card-2 { animation-delay: .5s; }
.card-3 { animation-delay: 1s; transform: translateX(20px); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.card-1 { animation-name: float1; }
.card-3 { animation-name: float3; }
@keyframes float1 {
  0%, 100% { transform: translateX(-20px) translateY(0); }
  50% { transform: translateX(-20px) translateY(-8px); }
}
@keyframes float3 {
  0%, 100% { transform: translateX(20px) translateY(0); }
  50% { transform: translateX(20px) translateY(-8px); }
}

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-label {
  display: inline-block;
  color: var(--primary); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; margin-bottom: 48px;
}
.section-subtitle {
  color: var(--text-light); font-size: 1.05rem;
  max-width: 560px; margin: -32px auto 48px;
  text-align: center;
}
.section h2 { text-align: center; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 32px; transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: .95rem; }

/* Gruppen */
.gruppen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.gruppe-card {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s;
  background: #fff;
}
.gruppe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gruppe-header {
  padding: 28px 24px 20px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.gruppe-emoji { font-size: 2.8rem; margin-bottom: 8px; }
.gruppe-header h3 { color: #fff; font-size: 1.2rem; text-shadow: 0 1px 4px rgba(0,0,0,.15); }
.gruppe-body { padding: 20px 24px; }
.gruppe-alter { font-size: .85rem; font-weight: 700; color: var(--text-light); margin-bottom: 10px; }
.gruppe-body p { color: var(--text-light); font-size: .93rem; line-height: 1.6; }

/* Timeline */
.timeline { max-width: 680px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 100px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--primary), var(--secondary));
}
.timeline-item {
  display: grid; grid-template-columns: 90px 24px 1fr;
  gap: 0 16px; align-items: start; margin-bottom: 40px;
}
.timeline-time {
  font-weight: 700; font-size: .95rem; color: var(--primary);
  padding-top: 4px; text-align: right;
}
.timeline-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
  margin-top: 6px; position: relative; z-index: 1;
  flex-shrink: 0;
}
.timeline-content h4 { font-size: 1rem; margin-bottom: 4px; }
.timeline-content p { color: var(--text-light); font-size: .9rem; }

/* Instagram */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 40px;
}
.ig-post {
  aspect-ratio: 1; border-radius: var(--radius);
  overflow: hidden; position: relative;
  cursor: pointer; background: #f0f0f0;
}
.ig-post img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ig-post:hover img { transform: scale(1.05); }
.ig-overlay {
  position: absolute; inset: 0;
  background: rgba(158,32,80,.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  color: #fff; font-size: .85rem; padding: 16px; text-align: center;
}
.ig-post:hover .ig-overlay { opacity: 1; }
.ig-overlay p { margin: 0; line-height: 1.4; }
.ig-loading {
  grid-column: 1/-1; display: flex; flex-direction: column;
  align-items: center; gap: 16px; padding: 48px; color: var(--text-light);
}
.ig-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid rgba(158,32,80,.2);
  border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ig-error {
  grid-column: 1/-1; text-align: center; padding: 48px;
  color: var(--text-light);
}
.ig-follow { text-align: center; }
.btn-instagram {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff; padding: 14px 28px; border-radius: 50px;
  text-decoration: none; font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}
.btn-instagram:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(220,39,67,.35); }

/* Galerie */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.galerie-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  display: block; cursor: pointer;
}
.galerie-wide { grid-column: span 2; }
.galerie-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.galerie-item:hover img { transform: scale(1.06); }
.galerie-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff; font-size: .82rem; font-weight: 600;
  padding: 24px 14px 12px;
  opacity: 0; transition: opacity .3s;
}
.galerie-item:hover .galerie-caption { opacity: 1; }

@media (max-width: 900px) {
  .galerie-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .galerie-wide { grid-column: span 2; }
}
@media (max-width: 480px) {
  .galerie-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
}

/* Leitbild */
.leitbild-center { margin-bottom: 48px; }
.leitbild-kern {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius);
  padding: 40px 48px; text-align: center;
  max-width: 760px; margin: 0 auto;
  box-shadow: 0 8px 32px rgba(158,32,80,.25);
}
.leitbild-kern-icon { font-size: 2.8rem; margin-bottom: 16px; }
.leitbild-kern h3 { font-size: 1.4rem; margin-bottom: 16px; }
.leitbild-kern p { font-size: .97rem; line-height: 1.75; opacity: .92; }

.leitbild-grid { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }

.leitbild-item {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.leitbild-toggle {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 18px 24px; background: none; border: none;
  cursor: pointer; text-align: left; font-family: inherit;
}
.leitbild-toggle:hover { background: rgba(158,32,80,.04); }
.leitbild-icon { font-size: 1.4rem; flex-shrink: 0; }
.leitbild-title { font-size: 1.05rem; font-weight: 700; flex: 1; color: var(--text); }
.leitbild-arrow {
  color: var(--primary); font-size: 1rem; transition: transform .3s;
  flex-shrink: 0;
}
.leitbild-item.open .leitbild-arrow { transform: rotate(180deg); }
.leitbild-item.open .leitbild-toggle { color: var(--primary); border-bottom: 1px solid rgba(158,32,80,.1); }

.leitbild-body {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  padding: 0 24px;
}
.leitbild-item.open .leitbild-body {
  max-height: none; /* Hoehe setzt main.js passend zum Text */
  padding: 20px 24px;
}
.leitbild-body p { color: var(--text-light); line-height: 1.75; font-size: .95rem; }

/* Kontakt */
.kontakt-hero-img {
  display: block; width: 260px; height: 200px;
  object-fit: cover; object-position: center;
  border-radius: var(--radius); margin-bottom: 10px;
}
.kontakt-leitung {
  font-size: 0.9rem; color: var(--gruen); font-weight: 600;
  margin-top: 0; margin-bottom: 32px; letter-spacing: 0.02em;
}

.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 64px; align-items: start;
}
.kontakt-grid-wide {
  grid-template-columns: 1fr 1fr 1.2fr;
}
.kontakt-map { display: flex; flex-direction: column; gap: 10px; }
#kita-map { height: 220px; border-radius: var(--radius); z-index: 0; }
.map-link {
  font-size: .85rem; font-weight: 700; color: var(--primary);
  text-decoration: none; text-align: right;
}
.map-link:hover { text-decoration: underline; }
.kontakt-item {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 32px;
}
.kontakt-icon { font-size: 1.5rem; flex-shrink: 0; }
.kontakt-item h4 { font-size: .9rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.kontakt-item a { color: var(--primary); text-decoration: none; }

.kontakt-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 700; font-size: .9rem; }
.form-group input, .form-group textarea {
  padding: 12px 16px; border: 2px solid #e5e7eb;
  border-radius: 10px; font-family: inherit; font-size: 1rem;
  transition: border-color .2s; outline: none; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-note { font-size: .85rem; color: var(--text-light); text-align: center; margin-top: -8px; }

/* Footer */
.footer {
  background: var(--text); color: rgba(255,255,255,.7);
  padding: 48px 0;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.1rem; font-weight: 800; color: #fff;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .85rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr; text-align: center;
    padding: 90px 24px 48px; gap: 32px;
  }
  .hero p { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-visual { height: 280px; }
  .hero-blob { width: 240px; height: 240px; }
  .hero-cards { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .card-1, .card-3 { transform: none; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 16px; border-bottom: 1px solid #eee; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .kontakt-grid, .kontakt-grid-wide { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .timeline::before { left: 70px; }
  .timeline-item { grid-template-columns: 60px 20px 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

/* FELSENBLUME Akronym */
.akronym-grid {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: center; margin-top: 40px;
}
.akronym-item {
  display: flex; align-items: baseline; gap: 4px;
}
.akronym-letter {
  font-size: 2.2rem; font-weight: 800;
  color: var(--rosa); line-height: 1;
}
.akronym-word {
  font-size: 1.1rem; font-weight: 500;
  color: var(--gruen);
}
@media (max-width: 600px) {
  .akronym-letter { font-size: 1.7rem; }
  .akronym-word { font-size: 0.95rem; }
}

/* Kooperationspartner */
.partner-grid {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-top: 40px;
}
.partner-item {
  background: var(--white); border: 2px solid var(--gruen);
  color: var(--gruen); font-weight: 600; font-size: 0.9rem;
  padding: 10px 20px; border-radius: 100px;
  transition: background .2s, color .2s;
}
.partner-item:hover {
  background: var(--gruen); color: var(--white);
}

/* Leitbild-Blume mit klickbaren Bluetenblaettern */
.leitbild-blume { position: relative; max-width: 440px; margin: 0 auto 48px; }
.leitbild-blume img { width: 100%; height: auto; display: block; }
.blume-spot {
  position: absolute; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
/* Markierung nur beim Ueberfahren mit der Maus bzw. per Tastatur - auf dem
   Handy blieb sie sonst nach dem Antippen stehen (Rueckmeldung 18.10.2026) */
.blume-spot:focus { outline: none; }
@media (hover: hover) {
  .blume-spot:hover { background: rgba(158,32,80,.12); box-shadow: 0 0 0 3px rgba(158,32,80,.35); }
}
.blume-spot:focus-visible { background: rgba(158,32,80,.12); box-shadow: 0 0 0 3px rgba(158,32,80,.35); }
.blume-spot { -webkit-tap-highlight-color: transparent; }
.blume-hinweis { text-align: center; color: var(--text-light); font-size: .9rem; margin-top: 8px; }
.leitbild-kern.hervor, .leitbild-item.hervor { animation: hervor 1.6s ease; }
@keyframes hervor { 0%,100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 4px var(--primary); } }
.timeline-content p + p { margin-top: 6px; }

/* Kontaktformular: Spamfalle unsichtbar, Statusmeldung */
.kontakt-form .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; text-align: center; min-height: 1.4em; margin: -8px 0 0; }
.form-status.ok { color: var(--secondary); font-weight: 700; }
.form-status.fehler { color: var(--primary); font-weight: 700; }
