/* ---------------------------------------
   CSS RESET & BASE
------------------------------------------*/
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, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F5F6FA;
  color: #20426E;
  line-height: 1.5;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #27705B;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #20426E;
  text-decoration: underline;
}
ul {
  list-style: none;
}
strong { font-weight: 700; }

/* -- Typography Scale -- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  color: #20426E;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; letter-spacing: -1px; }
h2 { font-size: 2rem; letter-spacing: -0.5px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
p, li, blockquote {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #20426E;
  margin-bottom: 15px;
  font-weight: 500;
}
blockquote {
  border-left: 5px solid #27705B;
  padding-left: 18px;
  margin-left: 0;
  font-size: 1.12rem;
  font-style: italic;
  color: #20426E;
  background: #F5F6FA;
}

/* -- Containers and Layouts -- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container, .content-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 4px 18px rgba(32,66,110,0.07), 0 1.5px 8px rgba(39,112,91,0.04);
  transition: box-shadow 0.2s;
  padding: 28px 24px;
  flex: 1 1 320px;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(32,66,110,0.16);
  z-index: 2;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 30px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3.5px 12px rgba(32,66,110,0.11);
  margin-bottom: 24px;
  border: 2.5px solid #27705B;
  max-width: 600px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 7px 28px rgba(32,66,110,0.16);
}
.testimonial-meta {
  font-size: 1rem;
  color: #409F87;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Critical spacing */
.card, .testimonial-card, .feature-item, .section, .content-wrapper > * {
  margin-bottom: 20px;
  margin-right: 0;
}

@media (max-width: 900px) {
  .card-container, .content-grid, .features {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    max-width: 100%;
  }
  .section {
    padding: 30px 10px;
    margin-bottom: 40px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .section {
    padding: 20px 5px;
    margin-bottom: 28px;
  }
  .content-grid, .card-container, .features {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}


/* ---------------------------------------
   HEADER, NAV & MOBILE MENU
------------------------------------------*/
header {
  background: #fff;
  box-shadow: 0 5px 22px rgba(32,66,110,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  height: 83px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #20426E;
  padding: 9px 14px;
  border-radius: 9px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}
.main-nav a.cta.primary {
  background: #27705B;
  color: #fff;
  margin-left: 18px;
  box-shadow: 0 3.5px 14px rgba(39,112,91,0.13);
  font-size: 1.05rem;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #F5F6FA;
  color: #27705B;
}
.main-nav a.cta.primary:hover,
.main-nav a.cta.primary:focus {
  background: #409F87;
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: #20426E;
  border: none;
  font-size: 2rem;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.18s, color 0.15s;
  z-index: 120;
}
.mobile-menu-toggle:focus { outline: 2px solid #27705B; }

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #20426E;
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.49,.13,.38,.9);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  background: none;
  border: none;
  font-size: 2rem;
  margin: 32px 0 24px 26px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 10001;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 10px 32px;
  margin-top: 0;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 13px 0;
  border-radius: 9px;
  transition: background 0.15s, color 0.15s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #409F87;
  color: #fff;
}

@media (max-width: 1100px) {
  .main-nav a { font-size: 0.98rem; }
  header .container { gap: 18px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 16px; }
  .main-nav a.cta.primary { margin-left: 9px; }
  header .container { height: 68px; gap: 10px; }
}
@media (max-width: 800px) {
  .main-nav { gap: 11px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    z-index: 120;
  }
  header .container { min-height: 56px; height: 56px; }
}

/* ---------------------------------------
   HERO SECTIONS & CTAs
------------------------------------------*/
.hero {
  background: linear-gradient(90deg, #20426E 68%, #409F87 100%);
  color: #fff;
  padding: 62px 0 48px 0;
  margin-bottom: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1, .hero p { color: #fff; }
.hero .cta.primary {
  background: #fff;
  color: #20426E;
  border-radius: 11px;
  padding: 15px 36px;
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 10px;
  letter-spacing: 0.03em;
  box-shadow: 0 3.5px 22px rgba(32,66,110,0.16);
  text-transform: uppercase;
  transition: background 0.18s, color 0.15s, transform 0.16s;
  border: none;
  display: inline-block;
}
.hero .cta.primary:hover, .hero .cta.primary:focus {
  background: #409F87;
  color: #fff;
  transform: scale(1.03);
}
.hero a.cta.primary:active { transform: scale(0.98); }

/* ---------------------------------------
   FEATURE LISTS, SERVICES, CARDS
------------------------------------------*/
.features ul,
.services ul,
.about ul,
.faq ul,
.partnerships ul,
.team ul,
.contact-details ul,
.form-section ul,
.thank-you ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 18px 0;
}
.features ul li, .services ul li, .about ul li,
.partnerships ul li, .team ul li, .faq ul li, .contact-details ul li, .form-section ul li, .thank-you ul li {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 1.5px 6px rgba(32,66,110,0.07);
  padding: 14px 18px 14px 12px;
  color: #20426E;
  gap: 14px;
  line-height: 1.5;

}
.features ul li img, .services ul li img, .about ul li img, .partnerships ul li img, .team ul li img, .faq ul li img, .contact-details ul li img, .form-section ul li img, .thank-you ul li img {
  width: 38px;
  height: 38px;
  background: #F5F6FA;
  border-radius: 50%;
  margin-right: 11px;
  box-shadow: 0 1.5px 4px rgba(39,112,91,0.07);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .features ul, .services ul, .about ul, .faq ul, .partnerships ul, .team ul, .contact-details ul, .form-section ul, .thank-you ul {
    gap: 11px;
  }
  .features ul li, .services ul li, .about ul li,
  .partnerships ul li, .team ul li, .faq ul li, .contact-details ul li, .form-section ul li, .thank-you ul li {
    padding: 11px 8px 11px 6px;
    font-size: 0.97rem;
  }
  .features ul li img, .services ul li img, .about ul li img, .partnerships ul li img, .team ul li img, .faq ul li img, .contact-details ul li img, .form-section ul li img, .thank-you ul li img {
    width: 32px; height: 32px; margin-right: 8px;
  }
}

/* BONUS: table styling for Zertifizierungen */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(32,66,110,0.07);
}
thead {
  background: #20426E;
  color: #fff;
}
th, td {
  padding: 15px 18px;
  font-size: 1rem;
}
th {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
tbody tr {
  border-bottom: 2px solid #F5F6FA;
}
tbody tr:nth-child(even) { background: #F5F6FA; }

/* ---------------------------------------
   BUTTONS & CTAS
------------------------------------------*/
.cta, .cta.primary {
  display: inline-block;
  background: #27705B;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  cursor: pointer;
  margin-top: 7px;
  box-shadow: 0 2.5px 10px rgba(39,112,91,0.09);
  letter-spacing: 0.06em;
  transition: background 0.16s, color 0.13s, box-shadow 0.2s, transform 0.13s;
}
.cta:hover, .cta:focus {
  background: #409F87;
  color: #fff;
  transform: scale(1.03);
  box-shadow: 0 4px 18px rgba(39,112,91,0.17);
}
.cta:active { transform: scale(0.98); }

/* ---------------------------------------
   FOOTER
------------------------------------------*/
footer {
  background: #20426E;
  color: #fff;
  padding: 0;
  margin-top: 64px;
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px 46px;
  max-width: 1200px;
  padding: 44px 0 26px 0;
}
.footer-logo img {
  width: 60px; height: auto;
  margin-bottom: 21px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-nav a, .legal-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.92;
  transition: color 0.17s, text-decoration 0.13s;
}
.footer-nav a:hover, .legal-nav a:hover,
.footer-nav a:focus, .legal-nav a:focus {
  color: #409F87;
  text-decoration: underline;
}
.footer-contact-details {
  color: #F5F6FA;
  font-size: 0.96rem;
  max-width: 320px;
}
.footer-contact-details a {
  color: #fff;
  opacity: 0.96;
}
.footer-contact-details p{
  color: #fff;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a img {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  transition: background 0.17s;
}
.footer-social a:hover img { background: #409F87; }

@media (max-width: 1100px) {
  footer .content-wrapper {
    gap: 18px;
    padding: 32px 0 20px 0;
  }
}
@media (max-width: 800px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 23px 0 15px 0;
  }
  .footer-logo { margin-bottom: 12px; }
  .footer-contact-details { margin-bottom: 12px; }
}

/* ---------------------------------------
   TABLES (Legal + Zertifizierung)
------------------------------------------*/
table, th, td {
  border: none;
}

/* ---------------------------------------
   COOKIE CONSENT BANNER
------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #20426E;
  color: #fff;
  padding: 18px 30px 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 6000;
  box-shadow: 0 -4px 20px rgba(32,66,110,0.13);
  font-size: 1rem;
  animation: cc-slide-up 0.45s cubic-bezier(.52,.1,.2,.93);
  border-radius: 20px 20px 0 0;
}
@keyframes cc-slide-up {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  background: #409F87;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.17s, color 0.15s, box-shadow 0.1s;
  box-shadow: 0 2px 8px rgba(64,159,135,0.12);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fff;
  color: #20426E;
}
.cookie-btn.accept {
  background: #27705B;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus{
  background: #409F87;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #20426E;
  border: 2px solid #409F87;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #409F87;
  color: #fff;
}
@media (max-width:768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.97rem;
    padding: 12px 10px 15px 10px;
  }
  .cookie-banner .cookie-actions { gap: 7px; }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 10000;
  background: rgba(32,66,110,.88);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: cc-modal-fadein 0.32s;
}
@keyframes cc-modal-fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #20426E;
  padding: 36px 32px 28px 32px;
  border-radius: 16px;
  max-width: 410px;
  width: 95vw;
  box-shadow: 0 4px 32px rgba(32,66,110,0.24);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cc-modal-scalein 0.26s cubic-bezier(.27,.99,.36,.97);
}
@keyframes cc-modal-scalein {
  0% { opacity: 0; transform: scale(0.91); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.5rem;
  color: #20426E;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px;
  background: #F5F6FA;
  border-radius: 8px;
  margin-bottom: 9px;
  font-size: 1rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: #27705B;
  width: 22px; height: 22px;
}
.cookie-category.essential label {
  font-weight: 700;
  opacity: 0.65;
}
.cookie-category.essential input[type='checkbox'] {
  display: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 19px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #20426E;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:hover { color: #27705B; }
@media(max-width:600px){
  .cookie-modal{padding:22px 7px 17px 7px;}
}

/* ---------------------------------------
   RESPONSIVE MEDIA QUERIES
------------------------------------------*/
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; letter-spacing: -1px; }
  h2 { font-size: 1.2rem; letter-spacing: -0.5px; }
  h3 { font-size: 1.07rem; letter-spacing: 0; }
  body { font-size: 15px; }
  .container { padding: 0 2vw; }
  .card, .testimonial-card { padding: 13px 6px; }
}

/* ---------------------------------------
   FORM SECTION (Kontakt, Thank you)
------------------------------------------*/
.form-section .cta, .contact .cta {
  margin-top: 24px;
}

/* ---------------------------------------
   SPECIAL: LEGAL PAGE TEXT FLOW
------------------------------------------*/
.legal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2.5px 15px rgba(32,66,110,0.09);
  padding: 40px 34px;
  margin: 36px 0 44px 0;
}
@media (max-width: 700px) {
  .legal { padding: 16px 6px; margin: 15px 0 24px 0; }
}

/* ---------------------------------------
   UTILITIES
------------------------------------------*/
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mr-0 { margin-right: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------------------------------------
   MODERN_BOLD GEOMETRIC DECORATION
------------------------------------------*/
.section {
  /* geometric decorations via pseudo elements on big screens */
  position: relative;
}
.section::before, .section::after {
  content: '';
  display: none;
}
@media (min-width:1025px) {
  .hero::after {
    content: '';
    position: absolute;
    right: -60px;
    top: 32px;
    width: 114px; height: 114px;
    background: #fff;
    border-radius: 32% 68% 40% 60% / 37% 49% 51% 63%;
    z-index: 1;
    opacity: 0.13;
    display: block;
    pointer-events: none;
  }
  .about::before {
    content: '';
    position: absolute;
    left: -66px;
    bottom: -28px;
    width: 97px; height: 97px;
    background: #409F87;
    border-radius: 48% 52% 62% 38% / 63% 43% 57% 37%;
    opacity: 0.10;
    z-index: 0;
    display: block;
  }
}

/* ---------------------------------------
   ACCESSIBILITY
------------------------------------------*/
:focus {
  outline: 2px solid #27705B;
  outline-offset: 2px;
}
.btn:focus, .cta:focus { outline: 2px solid #409F87; outline-offset: 2px; }

/* Hide skip nav visually but keep it accessible */
.skip-nav {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-nav:focus {
  position: static;
  width: auto; height: auto;
  background: #20426E;
  color: #fff;
  padding: 7px 17px;
  z-index: 10001;
}
