/* ===========================================================
   WissensWunder München – CSS Reset & Base Styles
   =========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
  background: #F7F5EF;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #23395B;
  background-color: #F7F5EF;
  font-size: 16px;
  line-height: 1.7;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1D8348;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #14532d;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #F2E205;
  outline-offset: 2px;
}

/* ===========================================================
   Typography
   =========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #23395B;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p, li {
  font-size: 1rem;
  margin-bottom: 10px;
}

/* Color Palette (nature_organic-inspired) */
:root {
  --ww-primary: #23395B;
  --ww-secondary: #1D8348;
  --ww-accent: #F2E205;
  --ww-earth-1: #A3A380; /* Sage green */
  --ww-earth-2: #F7F5EF; /* Sand/Canvas */
  --ww-earth-3: #E6DDC6; /* Banana leaf light */
  --ww-earth-4: #41644A; /* Deep Leaf Green */
  --ww-earth-5: #B7B597; /* Mossy */
  --ww-brown: #6E5849;  /* Earth Brown */
  --ww-error: #ab2323;
}

/* ===========================================================
   Containers & Layout
   =========================================================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Section Spacing Patterns (Nature/Organic) */
.section,
.hero-section,
.features-section,
.about-preview-section,
.cta-section,
.testimonials-section,
.facts-section,
.learn-more-section,
.mission-section,
.team-section,
.history-section,
.timeline-section,
.impact-section,
.contact-details-section,
.legal-section,
.thank-you-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #F7F5EF;
  border-radius: 32px;
  box-shadow: 0 3px 16px 0 rgba(34,57,91,0.08);
}

@media (max-width: 768px) {
.section,
.hero-section,
.features-section,
.about-preview-section,
.cta-section,
.testimonials-section,
.facts-section,
.learn-more-section,
.mission-section,
.team-section,
.history-section,
.timeline-section,
.impact-section,
.contact-details-section,
.legal-section,
.thank-you-section {
    margin-bottom: 32px;
    padding: 28px 10px;
    border-radius: 16px;
  }
}

/* Card container & grid patterns */
.card-container,
.feature-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 12px 0 rgba(65,100,74,0.08);
  padding: 24px 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(65,100,74,0.18);
  transform: translateY(-5px) scale(1.01);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 8px 0 rgba(65,100,74,0.07);
  margin-bottom: 20px;
  padding: 22px 20px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Testimonial cards (High contrast) */
.testimonials-section .testimonial-card,
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fffefb;
  color: #23395B;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(65,100,74,0.15);
  padding: 20px;
  margin-bottom: 20px;
  border-left: 7px solid var(--ww-secondary);
  transition: box-shadow 0.15s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(29,131,72,0.13);
  border-color: var(--ww-earth-4);
}
.testimonial-card p {
  font-size: 1.09rem;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--ww-brown);
  font-weight: 600;
}

/* Feature grids & highlights */
.feature-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #E6DDC6;
  border-radius: 20px 40px 32px 22px;
  box-shadow: 0 2px 8px 0 rgba(36,61,77,0.07);
  padding: 22px 19px 18px 19px;
  flex: 1 1 238px;
  min-width: 220px;
  max-width: 320px;
  transition: box-shadow 0.2s, background 0.15s;
  margin-bottom: 16px;
}
.feature-grid li:hover {
  background: #F7F5EF;
  box-shadow: 0 6px 30px 0 rgba(65,100,74,0.12);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 7px;
}

/* "Fun fact" or highlight entries */
.fun-fact, .invention-highlight, .featured-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #B7B59733;
  border-radius: 16px 28px 16px 16px;
  color: #23395B;
  padding: 14px 22px 14px 18px;
  font-weight: 600;
  margin: 20px 0 0 0;
  box-shadow: 0 1px 5px 0 rgba(34,57,91,0.07);
}
.fun-fact img, .invention-highlight img, .featured-entry img {
  width: 34px;
  height: 34px;
}

/* Lists inside sections */
.section ul:not(.feature-grid),
.section ol:not(.feature-grid) {
  margin: 12px 0 10px 20px;
  padding-left: 12px;
}
.section ul:not(.feature-grid) li,
.section ol:not(.feature-grid) li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--ww-earth-4);
}

/* CTA Buttons */
.cta-button, .cta-wrapper .cta-button, .cookie-btn, .cookie-btn-alt, .cookie-btn-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(90deg,#1D8348 40%,#23395B 100%);
  color: #fff !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 14px 30px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(36,61,77,0.09);
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.18s, transform 0.13s, color 0.13s;
  margin-top: 8px;
}
.cta-button:hover, .cta-button:focus,
.cookie-btn:hover, .cookie-btn:focus {
  background: linear-gradient(90deg,#41644A 20%,#1D8348 90%);
  box-shadow: 0 5px 18px 0 rgba(29,131,72,0.18);
  transform: translateY(-2px) scale(1.03);
}
.cookie-btn-alt {
  background: #E6DDC6;
  color: #23395B;
  border: 1px solid #BDC097;
  font-weight: 600;
  transition: background 0.15s, color 0.13s;
}
.cookie-btn-alt:hover, .cookie-btn-alt:focus {
  background: #B7B597;
  color: #23395B;
}
.cookie-btn-settings {
  background: none;
  color: #1D8348 !important;
  border: none;
  font-weight: 600;
  text-decoration: underline;
  padding: 8px 12px;
  transition: color 0.2s;
}
.cookie-btn-settings:hover {
  color: #23395B;
}


/* ===================
   HEADER / NAVIGATION
   =================== */
header {
  background: #E6DDC6;
  box-shadow: 0 1px 6px 0 rgba(36, 61, 77, 0.07);
  padding: 0;
  border-radius: 0 0 32px 32px;
}
header .container {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 32px;
  justify-content: space-between;
  min-height: 90px;
  position: relative;
}
header a img {
  height: 55px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-left: 34px;
}
.main-nav a {
  color: #23395B;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  padding: 7px 9px;
  border-radius: 15px;
  transition: background 0.17s, color 0.13s;
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  background: #B7B59740;
  color: var(--ww-secondary);
}

/* Mobile Burger Button */
.mobile-menu-toggle {
  background: none;
  color: var(--ww-primary);
  font-size: 2.2rem;
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  line-height: 1;
  display: none;
  margin-left: 10px;
  transition: background 0.1s, color 0.13s;
  z-index: 121;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #B7B59755;
  color: var(--ww-secondary);
}

/* ===============
   MOBILE MENU NAV
   =============== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #E6DDC6ee;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.42,0,0.43,1.08);
  box-shadow: 10px 0 18px -10px #23395B11, 0 3px 18px 0 #41644A11;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  font-size: 2.5rem;
  align-self: flex-end;
  margin: 25px 30px 16px 0;
  background: none;
  color: #23395B;
  transition: color 0.15s;
  padding: 8px 12px;
  border-radius: 9px;
  z-index: 10001;
}
.mobile-menu-close:hover {
  color: var(--ww-secondary);
  background: #F2E20522;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 15px 40px 0 40px;
  margin-top: 10px;
}
.mobile-nav a {
  font-size: 1.17rem;
  color: #1D8348;
  background: none;
  padding: 10px 2px;
  border-radius: 4px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  transition: background 0.16s, color 0.13s;
  width: 100%;
}
.mobile-nav a:hover {
  background: #B7B59733;
  color: #23395B;
}


/* ===========================
   RESPONSIVE NAVIGATION RULES
   =========================== */
@media (max-width: 1050px) {
  .main-nav {
    gap: 15px;
    margin-left: 14px;
  }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 14px;
  }
  .main-nav a {
    font-size: 1rem;
    padding: 5px 6px;
  }
}
@media (max-width: 780px) {
  .main-nav, .cta-button {
    display: none!important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    min-height: 70px;
    padding: 0 7px;
  }
}
@media (min-width: 781px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===========
   HERO SECTION
   =========== */
.hero-section {
  background: var(--ww-earth-3);
  box-shadow: 0 1px 10px 0 rgba(29,131,72,0.05);
  border-radius: 34px;
}
@media (max-width: 768px) {
  .hero-section {
    border-radius: 18px;
    padding-top: 32px;
    padding-bottom: 24px;
  }
}
.hero-section h1 {
  font-size: 2.3rem;
  color: var(--ww-secondary);
  margin-bottom: 14px;
}
.hero-section p {
  font-size: 1.08rem;
  color: var(--ww-primary);
}

/* ===========
   CTA WRAPPER
   =========== */
.cta-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
  align-items: center;
}
@media (max-width: 600px) {
  .cta-wrapper {
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }
}

/* ===================
   FOOTER SECTION
   =================== */
footer {
  background: #A3A380;
  color: #23395B;
  padding: 0;
  border-radius: 30px 30px 0 0;
}
footer .container {
  display: flex;
  flex-direction: row;
  gap: 28px;
  padding: 38px 28px 10px 28px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 170px;
}
.footer-brand img {
  width: 42px;
  height: 42px;
}
.footer-brand span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 150px;
}
.footer-nav a {
  color: #23395B;
  font-size: 1rem;
  padding: 3px 0;
  transition: color 0.14s;
}
.footer-nav a:hover {
  color: #1D8348;
}
.footer-contact {
  flex: 2 0 220px;
}
.footer-contact h4 {
  margin-bottom: 7px;
  font-family: 'Montserrat';
  font-weight: 600;
  font-size: 1.04rem;
}
.footer-contact p {
  font-size: 0.97rem;
  color: #3A3A32;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.footer-social img {
  width: 27px;
  height: 27px;
  transition: filter 0.18s, transform 0.14s;
  filter: grayscale(0.23);
}
.footer-social img:hover {
  filter: none;
  transform: scale(1.12) rotate(-4deg);
}
.privacy-note {
  width: 100%;
  text-align: center;
  margin-top: 12px;
  color: #466e63;
  font-size: 0.99rem;
}

@media (max-width: 950px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
    padding: 28px 10px 10px 10px;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  footer .container {
    gap: 6px;
  }
  .footer-social {
    gap: 8px;
  }
  .privacy-note {
    font-size: 0.91rem;
  }
}

/* ===================
   RESPONSIVE LAYOUTS
   =================== */
@media (max-width: 1080px) {
  .feature-grid {
    gap: 16px;
  }
}
@media (max-width: 860px) {
  .feature-grid li {
    min-width: 170px;
    max-width: 100%;
  }
  .card-container, .content-grid {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 19px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* Extra Card and Section Patterns */
.about-preview-section, .cta-section {
  background: #E6DDC6;
  border-radius: 30px 38px 26px 40px;
}
.mission-section, .team-section, .history-section, .timeline-section, .impact-section, .contact-details-section {
  background: #F7F5EF;
  border-radius: 32px;
}

/* ===================
   COOKIE CONSENT BANNER
   =================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10990;
  background: #fffefb;
  color: #23395B;
  box-shadow: 0 -2px 32px 0 rgba(68,98,65,0.18);
  border-top: 4px solid #1D8348;
  width: 100vw;
  max-width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 40px;
  padding: 19px 30px 19px 28px;
  font-size: 1.05rem;
  animation: fadeInUp 0.5s;
}
.cookie-banner .cookie-message {
  flex: 5 1 380px;
  min-width: 0;
  margin-right: 7px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 18px 7px;
    text-align: center;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 7px;
  }
  .cookie-banner .cookie-message {
    margin-right: 0;
  }
}

@keyframes fadeInUp {
  0% { transform: translateY(40px); opacity: 0; }
  75% { opacity: 0.8; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 19000;
  background: rgba(36,61,77,0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInBg 0.24s;
}
@keyframes fadeInBg {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal .modal-content {
  background: #F7F5EF;
  max-width: 420px;
  width: 92vw;
  padding: 28px 21px 18px 21px;
  border-radius: 28px 36px 24px 20px;
  box-shadow: 0 6px 32px 0 rgba(68,98,65,0.12);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalIn 0.33s;
  position: relative;
}
@keyframes modalIn {
  0% { transform: scale(0.93); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal .modal-header {
  font-size: 1.3rem;
  font-family: 'Montserrat';
  font-weight: 700;
  color: #1D8348;
  margin-bottom: 7px;
}
.cookie-modal .modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 3px;
}
.cookie-modal .modal-section label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.08rem;
  cursor: pointer;
  color: #23395B;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #1D8348;
  width: 18px;
  height: 18px;
  margin: 0 4px 0 0;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 8px;
}
@media (max-width: 560px) {
  .cookie-modal .modal-content {
    min-width: 95vw;
    padding: 17px 6px 14px 6px;
    border-radius: 12px 20px 13px 18px;
  }
}

/* Cookie essential info */
.cookie-essential {
  color: #6E5849;
  font-size: 0.97rem;
  margin-top: 4px;
  font-style: italic;
  background: #B7B59722;
  padding: 4px 8px;
  border-radius: 9px;
}

/* ===================
   FORM & INPUT
   =================== */
input, select, textarea {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 10px;
  padding: 8px 11px;
  border: 1.3px solid #B7B597;
  background: #fff;
  margin-bottom: 13px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid #1D8348;
  border-color: #1D8348;
}

/* ===================
   MISC / UTILITY
   =================== */
::-webkit-scrollbar {
  width: 11px;
  background: #B7B59733;
}
::-webkit-scrollbar-thumb {
  background: #41644A77;
  border-radius: 32px;
}

/* Organic/leaf-like decorative elements (add shapes on :before/:after as needed for accent) */
/* Example for organic imagery on hero sections */
.hero-section::before {
  content: '';
  display: block;
  position: absolute;
  left: 4%;
  bottom: -44px;
  width: 94px;
  height: 46px;
  background: url('../assets/leaf-accent.svg') no-repeat center/contain;
  z-index: 0;
  opacity: 0.12;
}
@media (max-width: 900px) {
  .hero-section::before { display: none; }
}

/* ===================
   SPECIALS & EXTRAS
   =================== */
/* Thank you, legal, cta, and other notes */
.legal-section {
  box-shadow: 0 1px 12px 0 rgba(34,57,91,0.07);
  background: #fff;
  border-left: 7px solid #A3A380;
}
@media (max-width: 768px) {
  .legal-section {
    border-radius: 12px;
    padding-left: 8px;
  }
}
.thank-you-section {
  text-align: center;
  background: #B7B59711;
  border-radius: 26px 42px 28px 30px;
}

/* Utility Space Classes (e.g. for custom spacing) */
.mt-32 { margin-top: 32px; }
.mb-20 { margin-bottom: 20px; }
.mt-0 { margin-top: 0; }

/* Hide visually but keep for screen readers */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Highlight links for accessibility */
a:focus-visible {
  outline: 3px dashed #F2E205;
  background: #E6DDC6;
}

/* ===================
   ANIMATIONS
   =================== */
@media (hover: hover) {
  .card, .feature-grid li, .feature-item,
  .cta-button, .main-nav a, .footer-social img {
    transition: box-shadow 0.18s, background 0.15s, transform 0.13s, color 0.13s;
  }
}

/* ===================
   END – WissensWunder München
   =================== */
