/* --------------------
   CSS RESET & BASELINE
 ----------------------*/

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #1B263B;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a {
  color: #21A179;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #177C5C;
  outline: none;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
ul, ol {
  padding-left: 1.5em;
  margin-top: 12px;
}
li + li {
  margin-top: 8px;
}
strong, b {
  font-weight: 700;
}

/* ---------------------------------------------------
   TYPOGRAPHY: Brand Display & Hierarchy
 ---------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1B263B;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #263143;
}

/* -----------------------------------------------------------------------
   GENERAL CONTAINER LAYOUTS & SPACING  (CRITICAL: Flexbox Only)
 -----------------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* for section spacing, use .section */
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* -----------------------------------------------------------------
   FLEX LAYOUTS (MANDATORY! Never use grid, only flex)
 -----------------------------------------------------------------*/
.features-grid,
.card-container,
.card-grid,
.content-grid,
.testimonials-wrapper,
.contact-grid,
.workshop-highlights,
.blog-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid {
  gap: 32px;
}
.content-grid, .contact-grid {
  gap: 32px;
  justify-content: space-between;
  align-items: stretch;
}
.card-container, .card-grid {
  gap: 24px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonials-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --------------------------------------------------
   CARDS, SECTIONS, HIGHLIGHTS
-----------------------------------------------------*/
.feature-block {
  flex: 1 1 240px;
  min-width: 220px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(27,38,59,0.06);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.25s, transform 0.15s;
}
.feature-block:hover {
  box-shadow: 0 6px 24px 0 rgba(33,161,121,0.15);
  transform: translateY(-4px) scale(1.015);
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 10px 0 rgba(27,38,59,0.08);
  padding: 24px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 6px 18px 0 rgba(27,38,59,0.12);
  transform: translateY(-3px) scale(1.01);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: #f8fafb;
  border-radius: 16px;
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 360px;
  box-shadow: 0 1px 8px 0 rgba(27,38,59,0.07);
  font-size: 1.05rem;
  color: #222b3a;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #384767;
  margin-top: 6px;
}

/* -------------------------------------------
   BUTTONS & CTA
 ---------------------------------------------*/
.cta-button {
  display: inline-block;
  background: #21A179;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  border: none;
  border-radius: 32px;
  padding: 14px 36px;
  margin: 12px 0 0 0;
  box-shadow: 0 2px 8px 0 rgba(33,161,121,0.08);
  transition: background 0.18s, box-shadow 0.22s, transform 0.14s;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus {
  background: #177C5C;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(33,161,121,0.12);
  transform: translateY(-2px) scale(1.03);
}

button {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  transition: color .15s, background .2s;
}

/* ------------------------------------------
   HEADER & NAVIGATION
 -------------------------------------------*/
header {
  background: #fff;
  border-bottom: 1px solid #e6e8ec;
  position: relative;
  box-shadow: 0 1.5px 10px 0 rgba(27,38,59,0.05);
  z-index: 900;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 18px 20px;
  gap: 16px;
}
.header-container a img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #1B263B;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 2px;
  border-radius: 3px;
  transition: background .12s, color .18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #21A1791a;
  color: #21A179;
}

.mobile-menu-toggle {
  display: none;
  background: #1B263B;
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  padding: 8px 14px 6px 14px;
  margin-left: 8px;
  z-index: 1100;
  border: none;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #21A179;
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27,38,59,0.92);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 64px;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.64,0.04,0.35,1), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 32px;
  background: transparent;
  color: #fff;
  font-size: 2.1rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #21A17998;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 500;
  padding: 10px 0;
  border-radius: 4px;
  width: 100vw;
  max-width: 330px;
  text-align: center;
  transition: background .12s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #21A179;
  color: #fff;
}

@media (max-width: 1000px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 880px) {
  .header-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 0;
  }
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta-button {
    font-size: 1rem;
    padding: 12px 20px;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .header-container {
    padding: 16px 12px 14px 12px;
  }
  .header-container a img {
    height: 36px;
  }
}

/* ------------------------------------------
   FOOTER
 ------------------------------------------*/
footer {
  background: #fafbfc;
  border-top: 1px solid #e6e8ec;
  margin-top: 48px;
  padding-top: 32px;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 32px 20px;
  text-align: center;
}
.footer-container a img {
  height: 37px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin: 10px 0;
}
.footer-nav a {
  color: #1B263B;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.90;
  letter-spacing: 0.01em;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #21A179;
}
.footer-contact {
  font-size: 1rem;
  color: #384767;
  margin-top: 6px;
  word-break: break-word;
}
.footer-contact a {
  color: #21A179;
  text-decoration: underline;
}

/* --------------------------------------------
   BLOG POSTS & CONTENT EXTRAS
 ---------------------------------------------*/
.blog-posts {
  gap: 24px;
}
.blog-posts article {
  flex: 1 1 280px;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 8px 0 rgba(27,38,59,0.07);
  padding: 22px 20px 18px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .18s, transform .15s;
}
.blog-posts article:hover {
  box-shadow: 0 6px 18px 0 rgba(33,161,121,0.12);
  transform: translateY(-3px) scale(1.01);
}
.blog-posts h4 {
  font-size: 1.13rem;
  margin-bottom: 4px;
}
.blog-posts p {
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: #344057;
}
.blog-posts a {
  align-self: flex-start;
  margin-top: 8px;
  font-weight: 500;
  color: #21A179;
}
.blog-posts a:hover {
  color: #177C5C;
  text-decoration: underline;
}

/* ------------------------------------------
   CONTACT GRID
 -------------------------------------------*/
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: flex-start;
}
.contact-details, .contact-info-text {
  flex: 1 1 240px;
  min-width: 220px;
  background: #F8FAFB;
  border-radius: 14px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px 0 rgba(27,38,59,0.06);
}
.contact-details h3, .contact-info-text h3 {
  font-size: 1.13rem;
  color: #1B263B;
  margin-bottom: 8px;
}
.contact-details img, .contact-details svg {
  margin-right: 8px;
  vertical-align: middle;
  height: 18px;
  width: 18px;
}
.contact-details p {
  margin-bottom: 10px;
}
.contact-info-text p {
  margin-bottom: 8px;
}

/* -----------------------------------------
   TEXT SECTIONS
 ------------------------------------------*/
.text-section {
  background: #fff;
  border-radius: 10px;
  padding: 24px 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px 0 rgba(33,161,121,0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------------------------------
   UL/LIST STYLING
-----------------------------------*/
ul, ol {
  margin: 0 0 16px 0;
  padding-left: 1.5em;
}
ul li {
  font-size: 1rem;
  color: #263143;
  line-height: 1.8;
}

/* -------------------------------------
   ACCORDION DETAILS (Forschung-Details)
--------------------------------------*/
.accordion-details {
  background: #F8FAFB;
  border-radius: 10px;
  padding: 20px 18px;
  margin-top: 8px;
  box-shadow: 0 1px 6px 0 rgba(33,161,121,0.07);
}
.accordion-details h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #1B263B;
}

/* --------------------------------------------------------------
   ANIMATIONS/MICRO-INTERACTIONS
 ------------------------------------------------------------*/
.cta-button, .card, .feature-block, .testimonial-card, .blog-posts article {
  transition: box-shadow 0.2s, transform 0.15s, background 0.14s;
}
a, .main-nav a, .footer-nav a, .cta-button {
  transition: color 0.16s, background 0.16s;
}

/* ------------------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
 -------------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #1B263B;
  color: #fff;
  box-shadow: 0 -2px 24px 0 rgba(27,38,59,0.13);
  z-index: 9999;
  padding: 24px 20px 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 32px;
  animation: fadeInBanner 0.46s;
}
@keyframes fadeInBanner {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  flex: 1 1 300px;
  font-size: 1.03rem;
  color: #fff;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  background: #21A179;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 28px;
  padding: 9px 26px;
  border: none;
  margin: 0;
  box-shadow: 0 1px 4px 0 rgba(33,161,121,0.07);
  font-weight: 600;
  transition: background 0.17s, color 0.14s;
}
.cookie-banner button.cookie-settings {
  background: #fff;
  color: #1B263B;
  border: 1px solid #21A179;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #177C5C;
  color: #fff;
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: #21A17918;
  color: #1B263B;
}

.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  z-index: 10001;
  background: #fff;
  color: #1B263B;
  border-radius: 20px;
  box-shadow: 0 6px 32px 0 rgba(33,161,121,0.21);
  width: 94vw;
  max-width: 400px;
  padding: 38px 30px 24px 30px;
  animation: revealModal 0.31s;
}
@keyframes revealModal {
  0% { opacity: 0; transform: translate(-50%,-48%) scale(0.98); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal.open {
  display: block;
}
.cookie-modal h2 {
  font-size: 1.45rem;
  margin-bottom: 16px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1rem;
  color: #344057;
  cursor: pointer;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cookie-modal input[type='checkbox'], .cookie-modal input[type='radio'] {
  accent-color: #21A179;
}
.cookie-modal .modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.cookie-modal .modal-buttons button {
  background: #21A179;
  color: #fff;
  border-radius: 22px;
  padding: 8px 20px;
  box-shadow: 0 1px 4px 0 rgba(33,161,121,0.07);
  font-weight: 600;
  border: none;
}
.cookie-modal .modal-buttons button:last-child {
  background: #fff;
  color: #1B263B;
  border: 1px solid #21A179;
}
.cookie-modal .modal-buttons button:hover {
  background: #177C5C;
  color: #fff;
}
.cookie-modal .modal-buttons button:last-child:hover {
  background: #21A17918;
  color: #1B263B;
}
.cookie-modal .category-desc {
  font-size: 0.97rem;
  color: #666F86;
}

@media (max-width: 600px) {
  .cookie-modal {
    min-width: unset;
    padding: 24px 10vw 18px 10vw;
  }
}

@media (max-width: 540px) {
  .cookie-modal {
    padding: 18px 2vw 14px 2vw;
    max-width: 99vw;
  }
}

/* Overlay for cookie modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(27,38,59,0.55);
  z-index: 10000;
  display: none;
  animation: fadeInOverlay .2s;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal.open ~ .cookie-modal-overlay {
  display: block;
}

/* ------------------------------------------------------------
   RESPONSIVE DESIGN (mobile-first, then up)
 ------------------------------------------------------------*/
@media (max-width: 1080px) {
  .container {max-width: 96vw;}
}
@media (max-width: 960px) {
  .container {max-width: 99vw;}
  .card, .feature-block, .testimonial-card, .contact-details, .contact-info-text {
    min-width: 55vw;
    max-width: 95vw;
  }
}
@media (max-width: 820px) {
  .feature-block, .testimonial-card {
    min-width:260px;
    max-width: 97vw;
  }
  .content-grid, .features-grid, .contact-grid {
    flex-direction: column;
    gap: 22px !important;
  }
}
@media (max-width: 768px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.23rem;}
  .section, section {
    margin-bottom: 40px;
    padding: 26px 6px;
  }
  .container {
    padding: 0 8px;
  }
  .feature-block, .blog-posts article {
    padding: 20px 12px;
  }
  .card, .testimonial-card, .contact-details, .contact-info-text {
    padding: 14px 9px;
  }
  .footer-container {
    padding: 0 6px 22px 6px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .contact-grid, .features-grid, .testimonials-wrapper, .blog-posts {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
}
@media (max-width: 520px) {
  h1 {font-size: 1.35rem;}
  h2 {font-size: 1.05rem;}
  .cta-button {padding: 10px 14px;}
  .testimonial-card, .feature-block, .card, .contact-details, .contact-info-text {
    min-width: unset;
    padding: 10px 4px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 8px 12px 8px;
  }
}

/* -------------------------------
   EXTRAS
---------------------------------*/
::-webkit-input-placeholder { color: #bcc0cd; }
::-moz-placeholder { color: #bcc0cd; }
:-ms-input-placeholder { color: #bcc0cd; }
::placeholder { color: #bcc0cd; }

hr {
  border-color: #e6e8ec;
  margin: 36px 0 24px 0;
}

/* Hide default outline, add custom focus states */
button:focus, .cta-button:focus, a:focus, input:focus, textarea:focus {
  outline: 2px solid #21A179;
  outline-offset: 2px;
}

/* --------------
   PRINT
---------------*/
@media print {
  * { background: #fff !important; color: #000 !important; }
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu {display:none!important;}
  .container, .section, section { padding:0 !important; margin:0 !important; }
}

/*--------------
  End of CSS
--------------*/
