/* ============================================================
   Kindertagespflege Kunterbunt – Stylesheet
   ============================================================ */

/* === Variables === */
:root {
  --primary:        #28b4d6;
  --primary-dark:   #1a95b5;
  --primary-light:  #e8f8fd;
  --text:           #333;
  --text-light:     #666;
  --white:          #ffffff;
  --gray-bg:        #f7fbfd;

  --r-red:    #f56565;
  --r-orange: #f9a76a;
  --r-yellow: #fde68a;
  --r-green:  #86c86e;
  --r-teal:   #28b4d6;
  --r-blue:   #6baae0;
  --r-purple: #b49ed4;

  --rainbow: linear-gradient(90deg,
    var(--r-red), var(--r-orange), var(--r-yellow),
    var(--r-green), var(--r-teal), var(--r-blue), var(--r-purple)
  );

  --radius:    1rem;
  --radius-sm: 0.5rem;
  --shadow:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.14);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: 'Caveat', cursive;
  line-height: 1.2;
  color: var(--primary);
}
h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem);   }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p  { margin-bottom: 1rem; color: var(--text-light); }
p:last-child { margin-bottom: 0; }

/* === Utilities === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 1.5rem;
}

.section--gray {
  background: var(--gray-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 0.4rem; }
.section-header p  { max-width: 600px; margin: 0 auto; }

.rainbow-bar {
  height: 5px;
  background: var(--rainbow);
}

.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(40,180,214,.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* === Navigation === */
.site-nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: 'Caveat', cursive;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.nav-logo:hover { color: var(--primary-dark); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width .25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .nav-links.open { display: flex; }
}

/* === Hero (index.html) === */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background: var(--primary-light);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../IMG-20230421-WA0005.jpg') center / cover no-repeat;
  opacity: 0.18;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 4rem 0;
}
.hero-content h1 {
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-badges {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.badge {
  background: var(--white);
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  color: var(--text);
}

/* === Feature Cards === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; }

/* Color accents for cards */
.card--red    { border-top: 4px solid var(--r-red);    }
.card--orange { border-top: 4px solid var(--r-orange);  }
.card--yellow { border-top: 4px solid var(--r-yellow);  }
.card--green  { border-top: 4px solid var(--r-green);   }
.card--teal   { border-top: 4px solid var(--r-teal);    }
.card--blue   { border-top: 4px solid var(--r-blue);    }
.card--purple { border-top: 4px solid var(--r-purple);  }

/* === Gallery Grid === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--primary-light);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40,180,214,.15);
  opacity: 0;
  transition: opacity .25s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}
.gallery-placeholder span { font-size: 2.5rem; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-text strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.contact-info-text span { font-size: 0.95rem; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--text);
  transition: border-color .2s;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.8rem;
}

/* === Page Header === */
.page-header {
  background: var(--primary-light);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.page-header h1 { margin-bottom: 0.4rem; }
.page-header p { max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

/* === Über uns === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}
.value-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.value-item .value-icon { font-size: 2.2rem; margin-bottom: 0.7rem; }
.value-item h4 { font-size: 1.15rem; color: var(--primary); margin-bottom: 0.3rem; }
.value-item p  { font-size: 0.9rem; margin: 0; }

/* === Legal Pages === */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
  color: var(--primary);
}
.legal-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.placeholder {
  background: #fff3cd;
  border: 1px dashed #f9a76a;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-style: italic;
  color: #856404;
}

/* === CTA Section === */
.cta-section {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,.85); margin-bottom: 2rem; font-size: 1.1rem; }
.btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* === Footer === */
.site-footer {
  background: #1a2a35;
  color: rgba(255,255,255,.75);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}
.footer-col h4 {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 0.5rem;
  display: block;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--primary); }

/* === Team Placeholder === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--primary-light);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  border: 3px solid var(--primary);
}
.team-card h4 { color: var(--text); margin-bottom: 0.2rem; font-size: 1rem; }
.team-card p  { font-size: 0.88rem; color: var(--text-light); }

/* === Responsive Misc === */
@media (max-width: 480px) {
  .section { padding: 3.5rem 1rem; }
  .hero-content { padding: 2.5rem 0; }
  .contact-form { padding: 1.5rem; }
}
