/* =========================================
   CSS RESET & BASE STYLES
   ========================================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  background: #F2F7F5;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Georgia, 'Times New Roman', Times, serif;
  color: #20425A;
  background: #F2F7F5;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: break-word;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  font-weight: 600;
  color: #20425A;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2.1rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.1rem;
  font-weight: 500;
}
p {
  margin-bottom: 14px;
  color: #37506B;
  font-size: 1rem;
}
ul, ol {
  margin-left: 22px;
  margin-bottom: 16px;
}
ul {
  list-style-type: disc;
}
li {
  margin-bottom: 8px;
  color: #3a4353;
}
a {
  color: #20425A;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #BBCE43;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

/* Spacing Containers */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 700px;
  margin: 0 auto;
}

/* ====================
   HEADER/NAVIGATION
   ==================== */
header {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 10px;
}
.logo img {
  max-height: 44px;
  width: auto;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  margin: 0 12px 0 36px;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, serif;
  color: #20425A;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #BBCE43;
  background: #eceede;
}
.cta-btn {
  color: #fff;
  background: #20425A;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 11px 32px;
  border-radius: 28px;
  box-shadow: 0 2px 12px 0 rgba(32, 66, 90, 0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.19s;
  border: 1px solid #20425A;
  outline: none;
  margin-left: 20px;
  display: inline-block;
  cursor: pointer;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #BBCE43;
  color: #20425A;
  box-shadow: 0 8px 24px rgba(187, 206, 67, 0.18);
  border-color: #BBCE43;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  color: #20425A;
  border: none;
  cursor: pointer;
  padding: 0 9px;
  z-index: 2100;
}

/* ===============
   MOBILE NAV MENU
   =============== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(242, 247, 245, 0.97);
  z-index: 2050;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  width: 100vw;
  max-width: 100vw;
  padding: 0 0;
  box-shadow: 4px 0 32px 0 rgba(32,66,90,0.09);
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 4px 0 32px 0 rgba(32,66,90,0.19);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #20425A;
  background: none;
  border: none;
  padding: 17px 17px 10px 28px;
  align-self: flex-start;
  cursor: pointer;
  transition: color 0.18s;
  outline: none;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #BBCE43;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 32px 32px 32px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #20425A;
  text-decoration: none;
  padding: 13px 0 13px 2px;
  border-bottom: 1px solid #eceede;
  width: 100%;
  transition: color 0.2s, background 0.2s;
  border-radius: 4px 4px 0 0;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #BBCE43;
  color: #fff;
}

@media (max-width: 1110px) {
  .main-nav { gap: 12px; }
  .cta-btn { padding: 11px 23px; }
}
@media (max-width: 991px) {
  .main-nav { gap: 9px; font-size: 0.95rem; }
}
@media (max-width: 870px) {
  header .container { flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ==========================
   MAIN CONTENT & TYPOGRAPHY
   ========================== */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  width: 100%;
  border-radius: 0;
}
.hero, .hero-prozessoptimierung, .hero-mitarbeiterentwicklung, .hero-businessanalyse {
  padding-top: 50px;
  padding-bottom: 40px;
  background: #fff;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 5px 38px -11px rgba(32,66,90,0.06);
  margin-bottom: 48px;
}
.subheadline {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #BBCE43;
  margin-bottom: 10px;
}

/* Flex Layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 21px 0 rgba(32,66,90,0.07);
  position: relative;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
}
.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  padding: 20px 30px 16px 30px;
  margin-bottom: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 16px 0 rgba(32,66,90,0.08);
  border-left: 4px solid #BBCE43;
  position: relative;
  min-width: 0;
}
.testimonial-card p {
  color: #20425A;
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 7px;
}
.testimonial-card .customer {
  font-size: 0.98rem;
  color: #55687a;
  font-style: normal;
  margin-top: -5px;
  font-family: 'Open Sans', serif;
}
.feature-item, .benefit-item, .program-item, .service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(32,66,90,0.05);
  border-radius: 9px;
  padding: 26px 19px 19px 19px;
  margin-bottom: 20px;
  min-width: 210px;
  flex: 1 1 270px;
  max-width: 330px;
}
.feature-item img,
.benefit-item img,
.program-item img,
.service-item img {
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  border-radius: 7px;
  background: #eceede;
  padding: 7px;
}
.feature-grid, .benefit-grid, .program-list, .service-list, .team-bios, .solution-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.team-bios {
  gap: 24px;
}
.team-member {
  background: #fff;
  border-radius: 9px;
  padding: 20px 16px;
  box-shadow: 0 2px 11px 0 rgba(32,66,90,0.05);
  margin-bottom: 20px;
  flex: 1 1 250px;
  min-width: 200px;
  max-width: 310px;
}
.case-study {
  background: #fff;
  border-left: 4px solid #20425A;
  border-radius: 9px;
  box-shadow: 0 2px 16px 0 rgba(32,66,90,0.06);
  margin-bottom: 24px;
  padding: 18px 22px;
}
.optimization-process {
  background: #F2F7F5;
  border-radius: 8px;
  padding: 19px 17px;
  margin-top: 16px;
  margin-bottom: 30px;
}

/* Contact Page */
.contact-details {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 50px;
  margin-bottom: 20px;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  margin-bottom: 9px;
}
.contact-info a {
  color: #20425A;
}
.contact-info img {
  width: 19px;
  height: 19px;
  margin-right: 2px;
  opacity: 0.85;
}
.map-placeholder {
  background: #eceede;
  border-radius: 8px;
  padding: 26px 16px;
  color: #20425A;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

/* Footer Styles */
footer {
  background: #20425A;
  color: #fff;
  padding: 36px 0 24px 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  min-width: 180px;
}
.footer-branding img {
  height: 44px;
  width: auto;
  filter: brightness(1.5);
}
.tagline {
  font-size: 0.97rem;
  color: #BBCE43;
  letter-spacing: 0.01em;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 19px;
  font-size: 1rem;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  font-family: 'Montserrat', serif;
}
.footer-links a:hover,
.footer-links a:focus {
  color: #BBCE43;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  filter: grayscale(0) brightness(1.1) contrast(1.2);
  transition: filter 0.22s;
  border-radius: 6px;
  box-shadow: 0 2px 7px rgba(32,66,90,0.11);
}
.footer-social a:hover img,
.footer-social a:focus img {
  filter: grayscale(0) brightness(1.45) sepia(0.4) hue-rotate(22deg);
  background: #BBCE43;
}

/* ===============
   COOKIE CONSENT
   =============== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  background: #fff;
  border-top: 2px solid #BBCE43;
  box-shadow: 0 -2px 30px rgba(32,66,90,0.07);
  padding: 22px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  z-index: 4000;
  gap: 26px;
  transition: transform 0.25s cubic-bezier(.61,0,.51,1);
}
.cookie-banner.hide {
  transform: translateY(120%) !important;
}
.cookie-banner__content {
  color: #20425A;
  font-size: 1rem;
  font-family: 'Open Sans', serif;
  margin-right: 36px;
  flex: 1 1 240px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  border-radius: 20px;
  border: 1px solid #20425A;
  padding: 7px 21px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  margin-bottom: 0;
}
.cookie-banner .accept {
  background: #BBCE43;
  color: #20425A;
  border-color: #BBCE43;
  font-weight: 600;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #20425A;
  color: #fff;
}
.cookie-banner .reject {
  background: #fff;
  color: #20425A;
  border-color: #20425A;
  font-weight: 500;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #eceede;
  color: #BA2F25;
  border-color: #BA2F25;
}
.cookie-banner .settings {
  background: #fff;
  color: #20425A;
  border-color: #20425A;
  font-weight: 500;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #BBCE43;
  color: #20425A;
  border-color: #BBCE43;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  z-index: 4100;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  background: #fff;
  min-width: 340px;
  max-width: 95vw;
  border-radius: 18px;
  box-shadow: 0 8px 34px rgba(32,66,90,0.18);
  padding: 30px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s, transform 0.24s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal__title {
  font-family: 'Montserrat', serif;
  font-size: 1.33rem;
  color: #20425A;
  margin-bottom: 19px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 5px 0;
}
.cookie-category span {
  font-size: 1rem;
  color: #20425A;
  font-weight: 500;
}
.cookie-category .switch {
  margin-left: 15px;
}
/* Toggle Switch */
.switch {
  display: inline-block;
  width: 38px;
  height: 22px;
  position: relative;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #eceede;
  border-radius: 22px;
  transition: background 0.2s;
}
.slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #BBCE43;
  transition: transform 0.18s, background 0.2s;
  border-radius: 50%;
}
input:checked + .slider {
  background: #BBCE43;
}
input:checked + .slider:before {
  background: #20425A;
  transform: translateX(16px);
}
.cookie-modal__actions {
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-size: 1rem;
  border-radius: 20px;
  border: 1px solid #20425A;
  padding: 7px 19px;
  font-family: 'Montserrat', serif;
  cursor: pointer;
  margin-right: 0;
  background: #fff;
  color: #20425A;
  transition: 0.18s;
}
.cookie-modal .close-modal {
  color: #BA2F25;
  border-color: #BA2F25;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #20425A;
  color: #fff;
}
.cookie-modal .save-cookies {
  background: #BBCE43;
  color: #20425A;
  border-color: #BBCE43;
  font-weight: 600;
}
.cookie-modal .save-cookies:hover,
.cookie-modal .save-cookies:focus {
  background: #20425A;
  color: #fff;
}

/* ================
   CARD/GRID STYLES
   ================ */
@media (max-width: 1050px) {
  .feature-grid, .benefit-grid, .program-list, .service-list, .team-bios, .solution-grid {
    gap: 15px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .benefit-grid, .program-list, .service-list, .team-bios, .solution-grid {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  .feature-item, .benefit-item, .program-item, .service-item, .team-member {
    max-width: 100%;
    flex: 1 1 85vw;
  }
}
@media (max-width: 720px) {
  .footer-branding img { height: 31px; }
  .footer-social { gap: 9px; }
}
@media (max-width: 570px) {
  .team-bios, .feature-grid, .benefit-grid, .service-list, .solution-grid, .program-list {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item, .benefit-item, .program-item, .service-item, .team-member {
    min-width: unset;
    max-width: 100%;
    padding: 16px 10px;
  }
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 800px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .footer-links { margin: 0 7px; font-size: 0.93rem; }
  .footer-social { margin-top: 5px; }
}
@media (max-width: 700px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.35rem; }
  .section, section { padding: 28px 8px; }
  .hero, .hero-prozessoptimierung, .hero-mitarbeiterentwicklung, .hero-businessanalyse {
    padding: 28px 4px 22px 4px;
  }
  .content-wrapper { gap: 16px; }
  footer {
    padding: 25px 0 13px 0;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
  .contact-details { flex-direction: column; gap: 11px; }
  .contact-info p { font-size: 0.98rem; }
}
@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; gap: 16px; padding: 13px 7px; align-items: flex-start; }
  .cookie-banner__content { margin-right: 0; }
  .cookie-modal { min-width: 95vw; padding: 15px 4px 16px 4px; border-radius: 11px; }
}
@media (max-width: 420px) {
  .footer-links { font-size: 0.89rem; }
  h1 { font-size: 1.30rem; }
  h2 { font-size: 1.08rem; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 17px; align-items: flex-start; }
}

/* ========================
   UTILITY/INTERACTIVE
   ======================== */
::-webkit-input-placeholder { color: #6e8595; }
::-moz-placeholder { color: #6e8595; }
:-ms-input-placeholder { color: #6e8595; }
::placeholder { color: #6e8595; }

button:focus, .cta-btn:focus, a:focus {
  outline: 2px solid #BBCE43;
  outline-offset: 2px;
}

/* Card Hover */
.feature-item:hover, .benefit-item:hover, .program-item:hover, .service-item:hover, .team-member:hover {
  box-shadow: 0 6px 26px 0 rgba(32,66,90,0.13);
  border-color: #BBCE43;
  transform: translateY(-2px);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(35px); }
  to   { opacity: 1; transform: none; }
}
.section, section, .hero, .card, .feature-item, .testimonial-card {
  animation: fadeInUp 0.66s cubic-bezier(.52,1.6,.46,.98) both;
}

/* =============================
   MISC/ELEGANT CLASSIC DETAILS
   ============================= */
hr {
  border: none;
  border-top: 1px solid #eceede;
  margin: 36px 0;
}
table { border-collapse: collapse; width: 100%; margin-bottom: 16px; }
th, td { border: 1px solid #eceede; padding: 8px 12px; text-align: left; font-size: 1rem; }

/* Special List Style */
ul {
  list-style-type: disc;
  padding-left: 18px;
}
ol {
  list-style-type: decimal;
  padding-left: 20px;
}

/* Hide elements for accessibility where appropriate */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* =============================
   ENSURE SPACING BETWEEN CARDS
   ============================= */
.card, .feature-item, .benefit-item, .program-item, .service-item, .team-member, .testimonial-card, .case-study {
  margin-bottom: 20px !important;
}
.section, section {
  margin-bottom: 60px !important;
}

/* END OF CSS */
