/* Waldwichtel Waldkindergarten - Hauptstylesheet */

@font-face {
  font-family: "Comic Neue";
  src: url("fonts/ComicNeue-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Comic Neue";
  src: url("fonts/ComicNeue-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Comic Neue";
  src: url("fonts/ComicNeue-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Comic Neue";
  src: url("fonts/ComicNeue-LightItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Comic Neue";
  src: url("fonts/ComicNeue-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Comic Neue";
  src: url("fonts/ComicNeue-BoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  --green: #50a336;
  --dark: #222222;
  --white: #ffffff;
  --light-bg: #f9f9f9;
  --border: #dcebd7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: "Comic Neue", sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Comic Neue", sans-serif;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}

p {
  font-size: 1rem;
  color: var(--dark);
  margin: 0 0 1rem;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #408a2a;
}

/* ====== TOP NAVIGATION ====== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  display: block;
}

.nav-menu {
  display: none;
  position: fixed;
  top: 94px;
  left: 0;
  right: 0;
  flex-direction: column;
  list-style: none;
  gap: 0;
  align-items: stretch;
  padding: 20px 0;
  background: var(--white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.nav-menu.active {
  display: flex;
}

.nav-menu li {
  width: 100%;
  padding: 12px 24px;
}

.nav-menu a {
  display: block;
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-menu a:hover {
  background: rgba(80, 163, 54, 0.1);
  color: var(--green);
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--dark);
}

/* ====== HERO SECTION ====== */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-image: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(80, 163, 54, 0.15)),
    url("img/Waldi_header_vorlage_2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 60px;
  padding-left: 100px;
}

.hero-content {
  max-width: 800px;
  width: 100%;
  z-index: 10;
  padding-right: 150px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--green);
  margin-bottom: 24px;
  line-height: 1.5;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.2);
}

.cta-button {
  display: inline-block;
  background: rgba(80, 163, 54, 0.85);
  color: var(--dark);
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.cta-button:hover {
  background: var(--green);
  color: var(--white);
}

/* ====== MAIN CONTENT ====== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 60px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
}

/* ====== FEATURE BLOCKS (3 SPALTEN) ====== */
.blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.block {
  text-align: center;
}

.block-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.block h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--green);
}

.block p {
  color: var(--dark);
  line-height: 1.6;
}

/* ====== HIGHLIGHT BLOCK (GRÜNER HINTERGRUND) ====== */
.highlight-block {
  background: var(--green);
  color: var(--white);
  padding: 60px 40px;
  border-radius: 8px;
  text-align: center;
  margin: 60px 0;
}

.highlight-block h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 20px;
}

.highlight-block p {
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ====== BILDERGALERIE SLIDER ====== */
.gallery-section {
  margin: 60px 0;
}

.slider-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.slider {
  display: flex;
  transition: transform 0.3s ease;
}

.slide {
  min-width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(80, 163, 54, 0.8);
  color: white;
  border: none;
  font-size: 24px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--green);
}

.slider-btn.prev {
  left: 12px;
}

.slider-btn.next {
  right: 12px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  background: var(--light-bg);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s;
}

.dot.active {
  background: var(--green);
}

/* ====== INFO BLOCK (TEXT + BILD) ====== */
.info-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 60px 0;
}

.info-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--green);
}

.info-text p {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.7;
}

.info-image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ====== CTA SECTION ====== */
.cta-section {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    url("img/forest-6765636_1920.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  padding: 60px 40px;
  margin: 60px 0;
}

.cta-section h2 {
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--dark);
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-link {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 14px 40px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.cta-link:hover {
  background: #408a2a;
  color: var(--white);
}

/* ====== LEGAL PAGES (weiße Seiten) ====== */
.legal-page main {
  padding: 80px 24px 60px;
  padding-top: 140px;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--green);
}

.legal-page h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--green);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

.legal-page ul, .legal-page ol {
  margin-left: 24px;
  margin-bottom: 16px;
  color: var(--dark);
}

.legal-page li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ====== FOOTER ====== */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 54px 24px 26px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.35fr 1fr 1.35fr;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto 44px;
}

.footer-box {
  min-width: 0;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 12px;
}

.footer-box h2 {
  color: var(--green);
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.footer-box p {
  font-size: 0.9rem;
  color: var(--white);
  margin: 0 0 16px;
  line-height: 1.6;
}

.footer-box a {
  color: var(--white);
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-nav a {
  color: var(--white);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--green);
}

/* ====== COOKIE BANNER ====== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: 20px;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: none;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.cookie-banner.show {
  display: block;
}

.cookie-banner h3 {
  color: var(--green);
  margin: 0 0 10px;
  font-size: 1rem;
}

.cookie-banner p {
  font-size: 0.9rem;
  color: var(--dark);
  margin: 0 0 12px;
}

.cookie-close {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  transition: background 0.2s;
}

.cookie-close:hover {
  background: #408a2a;
}

/* ====== MOBILE RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: 100px 24px 40px;
    padding-left: 24px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding-right: 24px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .blocks-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .info-block {
    grid-template-columns: 1fr;
  }

  .info-image {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .highlight-block {
    padding: 40px 20px;
  }

  .highlight-block h2 {
    font-size: 1.5rem;
  }

  .cookie-banner {
    max-width: none;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  section {
    padding: 40px 0;
  }

  .legal-page main {
    padding: 80px 16px 60px;
    padding-top: 140px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 16px 40px;
    padding-left: 16px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .block-image {
    height: 180px;
  }

  .slider-btn {
    font-size: 18px;
    padding: 8px 12px;
  }

  .cta-section {
    padding: 40px 20px;
    min-height: 40vh;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }
}
