/* === CSS RESET & NORMALIZE === */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,hr,button,section,article,aside,footer,header,nav,figure,figcaption {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
  vertical-align: baseline;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #181818;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.16s;
}
ul, ol {
  padding-left: 24px;
}
b, strong {
  font-weight: 700;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* === MONOCHROME SOPHISTICATED PALETTE === */
:root {
  --mono-bg: #fff;
  --mono-bg-soft: #f8f8f8;
  --mono-paper: #fcfcfc;
  --mono-text: #181818;
  --mono-text-light: #353535;
  --mono-text-soft: #404040;
  --mono-border: #e2e2e2;
  --mono-gray: #aaa;
  --mono-dark: #000;
  --mono-accent: #eee;
  --primary: #181818;
  --primary-hover: #212121;
  --secondary: #505050;
  --focus: #4a4a4a;
  --outline: #9a9a9a;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: -0.03em;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 18px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.2;
}
h3 {
  font-size: 1.33rem;
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
h4, h5 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--mono-text-light);
  font-size: 1.25rem;
  margin-bottom: 28px;
  line-height: 1.36;
  font-weight: 400;
}
p, li {
  color: var(--mono-text-soft);
  font-size: 1rem;
  letter-spacing: 0.01em;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* === CONTAINER & SPACING === */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* === FLEXBOX LAYOUTS === */
.feature-grid,
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-grid > div, .card {
  background: var(--mono-bg-soft);
  border: 1px solid var(--mono-border);
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06);
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 310px;
  transition: box-shadow 0.2s, background 0.24s;
  position: relative;
}
.feature-grid > div:hover, .card:hover {
  background: #fafafa;
  box-shadow: 0 8px 24px 0 rgba(0,0,0,0.12);
}
.card {
  margin-bottom: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1.5px solid var(--mono-border);
  border-left: 5px solid var(--primary);
  border-radius: 13px;
  box-shadow: 0 2px 10px 0 rgba(24,24,24,0.07);
  margin-bottom: 20px;
  color: var(--mono-text);
  font-size: 1.07rem;
  transition: box-shadow 0.18s, border-color 0.23s;
  max-width: 650px;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
  margin-left: 10px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px 0 rgba(32,32,32,0.13);
  border-left-color: var(--mono-dark);
}

/* === FEATURES === */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* === BUTTONS & CTA === */
.cta-btn, .cookie-btn, .mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.14rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 30px;
  min-width: 120px;
  cursor: pointer;
  margin-top: 16px;
  box-shadow: 0 2px 8px 0 rgba(24,24,24,0.04);
  transition: background 0.16s, transform 0.12s, box-shadow 0.2s;
}
.cta-btn:hover, .cookie-btn:hover, .mobile-menu-close:hover {
  background: var(--primary-hover);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 12px 0 rgba(24,24,24,0.10);
}
.cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}


/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 20px 0 rgba(40,40,40,0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 70px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 30px;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  display: inline-block;
  padding: 8px 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  border-radius: 5px;
  position: relative;
  transition: background 0.13s, color 0.14s;
}
header nav a:hover, header nav a:focus {
  background: var(--mono-accent);
  color: var(--secondary);
}
header img[alt="NaturWissen Dresden"] {
  height: 38px;
  margin-right: 7px;
}
.mobile-menu-toggle {
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  padding: 9px 17px;
  border-radius: 8px;
  display: none;
  border: none;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
  color: #fff;
}

/* === MOBILE NAV MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(246,246,246,0.99);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.37s cubic-bezier(0.77,0,0.18,1);
  display: flex;
  flex-direction: column;
  gap: 32px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  color: var(--primary);
  font-size: 2rem;
  align-self: flex-end;
  padding: 13px 14px 6px 14px;
  margin: 18px 24px 6px 0;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.1s, color 0.15s;
  box-shadow: none;
  min-width: 48px;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--mono-accent);
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin: 18px 0;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 6px;
  transition: background 0.11s, color 0.13s;
  width: 100%;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--mono-accent);
  color: var(--secondary);
}

/* Show hamburger ONLY on small screens */
@media (max-width: 1000px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 1000px) {
  .mobile-menu {
    display: flex;
  }
}

/* === MAIN SECTIONS === */
main {
  width: 100%;
  padding-bottom: 60px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--mono-paper);
  border-radius: 18px;
  box-shadow: 0 1.5px 13px 0 rgba(24,24,24,0.04);
}
section:last-child {
  margin-bottom: 0;
}

.text-section {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* === FOOTER === */
footer {
  background: #181818;
  color: #fff;
  padding: 40px 0 32px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  padding: 8px 8px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.14s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: #fff;
  color: #181818;
}
footer .contact-info {
  font-size: 0.98rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.55;
}
footer .contact-info img {
  display: inline;
  height: 1.08em;
  margin-right: 5px;
  vertical-align: middle;
}
footer .social-links {
  display: flex;
  gap: 15px;
}
footer .social-links a img {
  height: 29px;
  filter: grayscale(100%) brightness(2);
  opacity: 0.83;
  transition: filter 0.13s, opacity 0.16s;
}
footer .social-links a:hover img {
  filter: grayscale(5%) brightness(1.2);
  opacity: 1;
}


/* === CONTACT INFO / DETAILS (Shared) === */
.contact-info p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  font-size: 1rem;
  color: var(--mono-text-soft);
}
.contact-info span {
  color: var(--mono-text-light);
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: var(--mono-text);
  border-top: 2px solid var(--mono-border);
  box-shadow: 0 -2px 12px 0 rgba(40, 40, 40, 0.10);
  z-index: 1500;
  padding: 26px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.38s cubic-bezier(0.85,0,0.15,1), opacity 0.24s;
  opacity: 1;
  transform: translateY(0%);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cookie-btn {
  padding: 11px 25px;
  font-size: 0.93rem;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 1px 4px 0 rgba(40,40,40,.04);
  transition: background 0.13s, transform 0.11s;
}
.cookie-btn.secondary {
  background: #fff;
  color: var(--primary);
  border: 1.3px solid var(--primary);
}
.cookie-btn.secondary:hover {
  background: var(--mono-accent);
  color: var(--secondary);
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,36,36, 0.37);
  z-index: 1800;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.44s cubic-bezier(0.76,0,0.24,1);
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: var(--mono-text);
  border-radius: 13px;
  width: 95%;
  max-width: 420px;
  padding: 32px 27px;
  box-shadow: 0 10px 48px 0 rgba(32, 32, 32, 0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-content h3 {
  color: var(--primary);
  font-size: 1.22rem;
  margin-bottom: 8px;
  font-weight: 600;
}
.cookie-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0;
  font-size: 1.01rem;
}
/* Cookie toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 23px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 23px;
  transition: background .2s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.switch input:checked + .slider {
  background-color: var(--primary);
}
.switch input:checked + .slider:before {
  transform: translateX(23px);
}
.cookie-modal-content .cookie-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.cookie-modal-content .cookie-btn {
  font-size: 0.99rem;
  padding: 10px 20px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.4rem;
  color: var(--secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--mono-accent);
  color: var(--primary);
}

/* === VISUAL ELEMENTS === */
.card {
  background: #fff;
  border: 1.1px solid var(--mono-border);
  border-radius: 13px;
  box-shadow: 0 2px 13px 0 rgba(24,24,24,0.06);
  padding: 28px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.18s;
}
.card:hover {
  box-shadow: 0 5px 18px 0 rgba(40,40,40,0.11);
  border-color: var(--mono-gray);
}


/* === LISTS, LINKS, AND OL/UL === */
ul, ol {
  margin-bottom: 12px;
  color: var(--mono-text);
}
ul li, ol li {
  margin-bottom: 9px;
  padding-left: 2px;
}
nav ul, nav li {
  list-style: none;
}

/* === TABLES, BLOCKQUOTES === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}
th, td {
  border: 1px solid var(--mono-border);
  padding: 12px 16px;
  font-size: 1rem;
}
blockquote {
  border-left: 3px solid var(--primary);
  background: var(--mono-accent);
  padding: 10px 18px;
  margin: 15px 0;
  color: var(--primary);
  font-style: italic;
  border-radius: 6px;
}

/* === RESPONSIVENESS (Mobile-first) === */
@media (max-width: 1000px) {
  .container, .footer .container { max-width: 98vw; padding-left: 17px; padding-right: 17px; }
  .feature-grid, .card-container, .card-grid {
    gap: 15px;
  }
  .feature-grid > div, .card {
    min-width: 180px;
    max-width: 100%;
    padding: 22px 14px 15px 14px;
  }
  .content-wrapper { max-width: 100vw; padding: 0 4px; }
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .section,
  section { padding: 25px 5px; margin-bottom: 38px; border-radius: 12px; }
  .content-wrapper { gap: 11px; }
  .feature-grid, .card-container, .card-grid {
    flex-direction: column;
    gap: 13px;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    font-size: 1rem;
  }
  .cta-btn, .cookie-btn { font-size: 0.98rem; padding: 10px 16px; }
  .cookie-banner {
    padding: 15px 6px 12px 6px;
  }
  .cookie-modal-content {
    padding: 22px 9px;
  }
}

/* Avoid overlap and ensure min spacing */
.card, .testimonial-card, .feature-item, section, .section {
  margin-bottom: 20px;
}

/* ======= MICRO-INTERACTIONS & TRANSITIONS ======= */
.cta-btn, .cookie-btn, .mobile-menu-close, .card, .testimonial-card, header nav a, .mobile-nav a {
  transition: background 0.17s, color 0.14s, box-shadow 0.18s, border-color 0.12s, transform 0.13s;
}
.card:active, .cta-btn:active, .cookie-btn:active, .mobile-menu-close:active {
  transform: scale(0.97);
}

/* Highlight focus for accessibility */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid var(--outline);
  outline-offset: 2px;
  z-index: 10;
}

/* Hide visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ======= PRINT STYLES ======= */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, .container, .content-wrapper { box-shadow: none !important; padding: 0 !important; margin: 0 !important; background: #fff !important; }
}
