/* === 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,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,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 { font-size: 16px; scroll-behavior: smooth; }
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #FAFAFB;
  color: #25365C;
  min-height: 100vh;
}
ul,ol {
  margin-left: 1.5rem;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #336B8D;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #6EB7C2;
  text-decoration: underline;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  outline: none;
}


/* === UNIVERSAL SPACING + LAYOUT === */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section { max-width: 900px; margin: 0 auto; }
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(70,110,150,0.10);
  margin-bottom: 24px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FCFDFE;
  border-radius: 16px;
  padding: 24px 20px;
  /* subtle pastel shadow */
  box-shadow: 0 1px 10px 0 rgba(120,180,200,0.07);
  min-width: 220px;
  flex: 1 1 260px;
  transition: box-shadow .2s;
}
.feature-item:hover {
  box-shadow: 0 4px 24px 0 rgba(180,180,220,0.17);
}

/* Custom Grids Based on HTML
   index, unternehmensoptimierung, unternehmensanalyse: .feature-grid
   leistungen, mitarbeiterentwicklung: .service-list
*/
.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 10px;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F4FBFE;
  border-radius: 16px;
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 260px;
  box-shadow: 0 1px 10px 0 rgba(110,183,194,0.07);
  transition: box-shadow .2s;
}
.service-item:hover {
  box-shadow: 0 4px 24px 0 rgba(110,183,194,0.16);
}

/* Partner Logos Row */
.partner-logos {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
}
.partner-logos img {
  height: 38px;
  background: #F4FBFE;
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 1px 4px rgba(110,183,194,0.07);
}

/* Cards, Testimonials, Case Studies */
.case-study {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 1px 10px 0 rgba(110,183,194,0.07);
  padding: 22px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #183153;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 6px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
h4 {
  font-size: 1.1rem;
}
p, ul, ol, li, span {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #25365C;
  line-height: 1.7;
}
strong {
  font-weight: bold;
}
small {
  font-size: 0.85rem;
  color: #939AAD;
}


/* === BRAND & SOFT PASTEL COLORS === */
:root {
  --primary: #183153;
  --secondary: #6EB7C2;
  --accent: #ECEDED;
  --pastel-blue: #D3E6F5;
  --pastel-cyan: #E4FAF7;
  --pastel-lavender: #EFECFF;
  --pastel-pink: #FCF0F5;
  --pastel-yellow: #FFF7E7;
  --pastel-mint: #E9FBF3;
  --white: #FFF;
  --shadow: 0 1px 12px 0 rgba(110,183,194,0.07);
  --shadow-hover: 0 2px 24px 0 rgba(110,183,194,0.12);
}

body {
  background: linear-gradient(180deg, #F9FAFB 0%, #F4FBFE 100%);
}

/* === HEADER === */
header {
  background: #FAFAFB;
  box-shadow: 0 2px 14px rgba(183,197,234,0.06);
  position: relative;
  z-index: 100;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
header a img {
  height: 44px;
  margin-right: 26px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #25365C;
  border-radius: 8px;
  padding: 7px 13px;
  transition: background .2s, color .2s;
}
header nav a.cta-primary {
  background: linear-gradient(90deg, #E4FAF7 40%, #EFECFF 100%);
  color: #183153;
  font-weight: bold;
  margin-left: 10px;
  box-shadow: 0 2px 8px rgba(110,183,194,0.07);
  border-radius: 14px;
  padding: 8px 22px;
  transition: background .18s, box-shadow .18s;
}
header nav a.cta-primary:hover,
header nav a.cta-primary:focus {
  background: linear-gradient(90deg, #D3E6F5 20%, #FCF0F5 100%);
  box-shadow: 0 4px 20px rgba(110,183,194,0.17);
  color: #25365C;
}
header nav a:hover,
header nav a:focus {
  background: #EEF6FA;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: #E4FAF7;
  border-radius: 12px;
  padding: 6px 14px;
  margin-left: 18px;
  color: #25365C;
  border: 1px solid #C3EAF2;
  transition: background .2s;
  z-index: 120;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #D3E6F5;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(120deg, #E4FAF7 0%, #EFECFF 100%);
  border-radius: 0 0 48px 48px;
  box-shadow: 0 8px 36px -12px rgba(110,183,194,0.07);
  margin-bottom: 48px;
  padding: 60px 0 44px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
}
.hero h1 {
  font-size: 2.7rem;
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(90deg, #25365C 50%, #6EB7C2 100%);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  letter-spacing: -1.3px;
  text-shadow: 0 4px 44px #DFEFFF22;
}
.hero p {
  font-size: 1.18rem;
  color: #25365CCC;
  max-width: 550px;
}
.hero .cta-primary {
  margin-top: 8px;
  font-size: 1.12rem;
}

/* === BUTTONS / CTA === */
.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(110,183,194,0.08);
  padding: 12px 36px;
  margin-top: 10px;
  outline: none;
  border: none;
  transition: background .22s, color .22s, box-shadow .2s, transform .1s;
  cursor: pointer;
}
.cta-primary {
  background: linear-gradient(90deg, #E4FAF7 40%, #EFECFF 100%);
  color: #183153;
}
.cta-primary:hover,
.cta-primary:focus {
  background: linear-gradient(65deg, #D3E6F5 20%, #FCF0F5 100%);
  color: #183153;
  box-shadow: 0 5px 20px 0 rgba(110,183,194,0.18);
  transform: translateY(-2px) scale(1.03);
}
.cta-secondary {
  background: #FFF7E7;
  color: #183153;
  padding: 10px 30px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #FCF0F5;
  color: #183153;
  box-shadow: 0 3px 15px 0 rgba(252,240,245,.16);
}

/* === SECTIONS, FEATURE GRIDS, LISTS === */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
  border-radius: 36px; /* for dreaminess */
}
section:last-of-type {
  margin-bottom: 0;
}

ul, ol {
  margin-top: 6px;
  margin-bottom: 18px;
  padding-left: 19px;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 1px;
}
li strong {
  color: #25365C;
}

/* === TESTIMONIALS === */
.testimonial-card {
  background: #FFFFFF;
  color: #183153;
  border-left: 5px solid #6EB7C2;
  box-shadow: 0 2px 13px 0 rgba(80,140,163,0.10);
  border-radius: 18px;
  min-width: 240px;
  margin-bottom: 24px;
  transition: box-shadow .18s;
}
.testimonial-card p {
  color: #222247;
  font-size: 1.03rem;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-card span {
  margin-left: 30px;
  font-size: 0.95rem;
  color: #617982;
  font-style: normal;
}
.testimonial-card:hover {
  box-shadow: 0 4px 32px rgba(110,183,194,0.15);
}


/* === FOOTER === */
footer {
  background: linear-gradient(180deg, #F4FBFE 60%, #ECEDED 100%);
  font-size: 0.97rem;
  box-shadow: 0 -2px 14px rgba(183,197,234,0.05);
  border-top-left-radius: 38px;
  border-top-right-radius: 38px;
  margin-top: 30px;
  padding-top: 38px;
  padding-bottom: 18px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
footer nav a {
  font-size: 1rem;
  color: #567EA3;
  padding: 5px 8px;
}
footer nav a:hover, footer nav a:focus {
  color: #6EB7C2;
  background: #F4FBFE;
  border-radius: 8px;
}
.footer-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 1rem;
  color: #354870;
  justify-content: center;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img {
  height: 22px;
  width: 22px;
  object-fit: contain;
  opacity: 0.7;
}
footer small {
  text-align: center;
  margin-top: 8px;
  color: #8A9BB1;
}


/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(120deg, #FFFFFF 70%, #F4FBFE 100%);
  box-shadow: 0 4px 44px 0 rgba(110,183,194,0.21);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.65,.02,.91,.65);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.42s cubic-bezier(.36,1.03,.6,1), opacity 0.26s;
}
.mobile-menu-close {
  font-size: 2.0rem;
  position: absolute;
  top: 18px;
  right: 22px;
  color: #183153;
  background: #E4FAF7;
  border-radius: 10px;
  padding: 4px 18px;
  border: 1px solid #C3EAF2;
  z-index: 1209;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #D3E6F5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 80px 0 0 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  color: #222247;
  padding: 12px 0 9px 0;
  transition: color .19s, background .19s;
  border-radius: 8px;
  min-width: 170px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #6EB7C2;
  background: #E4FAF7;
}
.mobile-nav a.cta-primary {
  background: linear-gradient(90deg, #E4FAF7 40%, #EFECFF 100%);
  color: #183153;
  font-weight: bold;
  margin-top: 16px;
  box-shadow: 0 2px 8px rgba(110,183,194,0.07);
  border-radius: 14px;
  padding: 13px 32px;
  transition: background .17s, box-shadow .13s;
}


/* === COOKIE CONSENT BANNER === */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1333;
  width: 100vw;
  background: linear-gradient(90deg, #FFF7E7 80%, #FCF0F5 100%);
  box-shadow: 0 -2px 22px 0 rgba(110,183,194,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 10px 20px 10px;
  gap: 20px;
  font-size: 1rem;
  transition: transform 0.4s, opacity 0.2s;
}
#cookie-banner.hide {
  pointer-events: none;
  opacity: 0;
  transform: translateY(120%);
}
#cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  margin-left: 18px;
}
#cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 14px;
  padding: 9px 19px;
  border: none;
  cursor: pointer;
  margin: 0 2px;
  transition: background .16s, box-shadow .16s;
}
#cookie-banner button.accept {
  background: linear-gradient(90deg, #E9FBF3 55%, #E4FAF7 100%);
  color: #183153;
  font-weight: 600;
  box-shadow: 0 1px 7px 0 rgba(110,183,194,0.03);
}
#cookie-banner button.accept:hover {
  background: linear-gradient(90deg, #D3E6F5 55%, #FFF7E7 100%);
}
#cookie-banner button.reject {
  background: #EFECFF;
  color: #183153;
  font-weight: 400;
  box-shadow: 0 1px 7px 0 rgba(126,140,190,0.07);
}
#cookie-banner button.reject:hover {
  background: #FCF0F5;
}
#cookie-banner button.settings {
  background: #F4FBFE;
  color: #25365C;
  box-shadow: 0 1px 6px rgba(174,218,222,0.07);
}
#cookie-banner button.settings:hover {
  background: #E4FAF7;
}

/* Cookie Modal */
#cookie-modal-bg {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24,49,83,0.32);
  z-index: 2002;
  align-items: center;
  justify-content: center;
}
#cookie-modal-bg.active {
  display: flex;
}
#cookie-modal {
  background: #FFFFFF;
  border-radius: 26px;
  box-shadow: 0 4px 40px rgba(110,183,194,0.19);
  padding: 38px 34px;
  min-width: 300px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInCookieModal .35s cubic-bezier(.25,.8,.25,1);
}
@keyframes fadeInCookieModal {
  0% { opacity: 0; transform: translateY(30px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
#cookie-modal h2 {
  font-size: 1.38rem;
  margin-bottom: 6px;
  color: #183153;
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.04rem;
  gap: 14px;
}
#cookie-modal .cookie-category input[type=checkbox] {
  width: 22px; height: 22px;
  accent-color: #6EB7C2;
}
#cookie-modal .cookie-category label {
  color: #25365C;
  cursor: pointer;
}
#cookie-modal .cookie-category.essential input[type=checkbox] {
  accent-color: #BFDDEE;
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
#cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 14px;
  padding: 9px 19px;
  border: none;
  cursor: pointer;
  background: #E4FAF7;
  color: #183153;
  font-weight: 500;
}
#cookie-modal button.apply {
  background: #6EB7C2;
  color: #FFF;
  font-weight: 600;
}
#cookie-modal button.apply:hover {
  background: #183153;
  color: #E4FAF7;
}
#cookie-modal button.cancel {
  background: #EFECFF;
  color: #25365C;
}
#cookie-modal-close {
  position: absolute;
  top: 24px;
  right: 30px;
  background: transparent;
  font-size: 1.6rem;
  color: #C8CBDD;
  cursor: pointer;
}
#cookie-modal-close:hover { color: #6EB7C2; }


/* === FORMS (if ever added) === */
input, textarea, select {
  font-size: 1rem;
  padding: 10px 9px;
  border-radius: 10px;
  border: 1px solid #DAE9F1;
  background: #FCFDFE;
  margin-bottom: 14px;
  transition: border .16s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: #6EB7C2;
  background: #FFF;
}


/* === RESPONSIVE DESIGN === */
@media (max-width: 1020px) {
  .container {
    max-width: 97vw;
    padding: 0 8vw;
  }
  .hero {
    padding: 44px 0 36px;
    border-radius: 0 0 28px 28px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature-item, .service-item {
    min-width: 0;
    width: 100%;
  }
  .partner-logos {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
@media (max-width: 799px) {
  header .container {
    height: auto;
    flex-direction: row;
    gap: 12px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .hero {
    padding: 32px 0 24px;
    border-radius: 0 0 14px 14px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 16px;
  }
  .content-wrapper.text-section {
    padding-left: 0;
    padding-right: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  footer .container {
    align-items: flex-start;
    gap: 12px;
    font-size: 0.93rem;
  }
  .footer-contact {
    gap: 11px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .hero h1 {
    font-size: 1.63rem;
  }
  .hero {
    padding: 18px 0 12px;
  }
}
@media (max-width: 440px) {
  #cookie-modal { padding: 18px 6px; }
  .hero .content-wrapper { gap: 15px; }
  section { padding: 28px 0; margin-bottom: 36px; }
}


/* === MICRO-INTERACTIONS ETC === */
.feature-item, .service-item, .card, .testimonial-card {
  transition: box-shadow .19s, transform .12s;
}
.feature-item:hover, .service-item:hover, .testimonial-card:hover {
  transform: translateY(-3px) scale(1.016);
  box-shadow: 0 6px 25px 0 rgba(110,183,194,0.17);
}
.cta-primary:focus-visible, .cta-secondary:focus-visible {
  outline: 2px solid #6EB7C2;
  outline-offset: 2px;
}

/* === VISUAL HIERARCHY HELPERS === */
hr {
  border: none;
  border-top: 1px solid #ECEDED;
  margin: 36px 0 22px 0;
}

/* --- Specific utility classes (if needed) --- */
.mt-32 { margin-top: 32px; }
.mb-28 { margin-bottom: 28px; }
.center { text-align: center; }

/* Prevent overlapping everywhere; cards margin already set per requirements. */
.card, .feature-item, .service-item, .testimonial-card, .case-study {
  margin-bottom: 20px;
}

/* Hide elements visually but keep for screen readers (for skip links/privacy) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  border: 0;
}

/* == Hide scroll on body when modal/menu open == */
body.menu-open, body.cookie-modal-open { overflow: hidden!important; }
