/* 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, 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 {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #232323;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Brand Colors */
:root {
  --color-primary: #264653;
  --color-secondary: #2A9D8F;
  --color-accent: #F4F3EE;
  --color-dark: #232323;
  --color-white: #fff;
  --color-border: #e6e6e6;
  --color-shadow: rgba(38, 70, 83, 0.07);
  --button-shadow: rgba(42, 157, 143, 0.12);
}


/* Typography Hierarchy */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.15;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 9px;
}
p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-dark);
  font-size: 1rem;
  line-height: 1.6;
}
p {
  margin-bottom: 18px;
}
strong {
  font-weight: 600;
  color: var(--color-primary);
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 7px;
}
a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color .15s;
}
a:hover,
a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}

/* General Container & Sections */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header Styles */
header {
  background: var(--color-white);
  box-shadow: 0 2px 6px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 15;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 8px 0;
  opacity: 0.85;
  position: relative;
  transition: color .13s;
}
header nav a:hover,
header nav a.active {
  color: var(--color-secondary);
}

.button {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 7px;
  padding: 12px 26px;
  margin: 0 0 0 18px;
  cursor: pointer;
  box-shadow: 0 2px 14px var(--button-shadow);
  transition: background .18s, color .14s, box-shadow .18s, transform .15s;
}
.button.primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.button.primary:hover,
.button.primary:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.03);
}
.button.secondary {
  background: var(--color-secondary);
  color: var(--color-white);
}
.button.secondary:hover,
.button.secondary:focus {
  background: #188878;
  color: var(--color-white);
}
.button.tertiary {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.button.tertiary:hover,
.button.tertiary:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Mobile Burger Button */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: background .15s;
  display: none;
  line-height: 1;
  z-index: 30;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(38, 70, 83, .89);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.65,.04,.36,1);
  padding-top: 28px;
  padding-left: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--color-accent);
  font-size: 2.35rem;
  cursor: pointer;
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 60;
  transition: color .18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100vw;
  gap: 2px;
  margin-top: 38px;
  padding: 0 30px;
}
.mobile-nav a {
  color: var(--color-accent);
  background: transparent;
  font-size: 1.22rem;
  padding: 16px 0 16px 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 5px;
  transition: background .18s, color .12s;
  min-width: 180px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}


/* Hide main navigation and show burger on mobile */
@media (max-width: 991px) {
  header nav, header .button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Hero Sections & CTA */
.hero {
  background: var(--color-accent);
  border-radius: 14px;
  margin-bottom: 60px;
  box-shadow: 0 3px 22px var(--color-shadow);
}
.hero .container {
  flex-direction: column;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 36px;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}
.cta {
  background: var(--color-secondary);
  color: var(--color-accent);
  border-radius: 14px;
  margin-bottom: 60px;
  box-shadow: 0 4px 24px var(--color-shadow);
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 16px;
}
.cta h2, .cta p {
  color: var(--color-white);
}

/* Features/Services Section */
.features, .services, .services-overview, .analytics-services, .about-short {
  background: var(--color-white);
}
.features .content-wrapper,
.services .content-wrapper {
  gap: 32px;
  align-items: center;
}
.feature-grid, .service-cards, .benefit-grid, .benefit-cards, .team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div, .service-cards > div, .benefit-grid > div, .benefit-cards > div, .team-bios > div {
  background: var(--color-accent);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--color-shadow);
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 340px;
  padding: 34px 20px 22px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 20px;
  transition: box-shadow .20s, transform .13s;
}
.feature-grid > div:hover, .service-cards > div:hover, .benefit-grid > div:hover, .benefit-cards > div:hover, .team-bios > div:hover {
  box-shadow: 0 8px 28px rgba(42,157,143,0.08);
  transform: translateY(-2px) scale(1.021);
}
.feature-grid img,
.service-cards img,
.benefit-grid img,
.benefit-cards img,
.team-bios img {
  width: 40px; height: 40px; margin-bottom: 10px;
}
.feature-grid h3, .service-cards h3, .benefit-grid h4, .benefit-cards h4, .team-bios h3 {
  font-size: 1.125rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
}

/* About/Short Section Trust Badges */
.trust-badges {
  display: flex;
  gap: 16px;
  margin: 14px 0 4px 0;
}
.trust-badges img {
  width: 32px; height: 32px; opacity: 0.8;
}

/* Services Overview, Benefits, Awards, Partners, Case Study */
.weitere-services ul,
.expertise-areas ul,
.case-studies-overview ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.infographic {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.09rem;
  color: var(--color-secondary);
  margin: 18px 0 6px 0;
}
.infographic img {
  width: 25px; height: 25px;
}

.stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  color: var(--color-secondary);
  background: var(--color-accent);
  border-radius: 6px;
  padding: 10px 16px;
  margin-top: 18px;
}
.stats img {
  width: 17px; height: 17px;
}

/***** List Styles *****/
ul.steps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-left: 0;
  list-style: none;
  margin-bottom: 18px;
}
ul.steps-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  background: var(--color-accent);
  border-radius: 6px;
  padding: 12px 16px;
}
ul.steps-list img {
  width: 22px; height: 22px;
}

/***** Testimonial Cards *****/
.testimonials .content-wrapper {
  gap: 28px;
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  background: var(--color-accent);
  border-radius: 11px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 20px 24px;
  margin-bottom: 20px;
  max-width: 540px;
  color: var(--color-dark);
  position: relative;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: var(--color-primary);
  line-height: 1.6;
  margin-bottom: 6px;
}
.testimonial-card strong {
  color: var(--color-secondary);
}

/***** Cards, Card Containers, Content Grids *****/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-accent);
  border-radius: 9px;
  box-shadow: 0 2px 10px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 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;
}

/* Feature Item Pattern */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/***** Team Bios *****/
.team-bios {
  gap: 24px;
}
.team-member {
  background: var(--color-accent);
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 28px 18px 16px 18px;
  margin-bottom: 20px;
  min-width: 200px;
}

/***** Footer Styles *****/
footer {
  padding: 36px 0 18px 0;
  background: var(--color-accent);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 9px var(--color-shadow);
  margin-top: 65px;
}
footer .container {
  gap: 32px;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer nav a {
  color: var(--color-primary);
  opacity: 0.7;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: color .15s, opacity .13s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
.contact-footer {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.99rem;
  color: var(--color-primary);
}
.contact-footer img {
  width: 19px; height: 19px; margin-right: 6px; vertical-align: middle;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 13px;
}
.footer-social img {
  width: 26px; height: 26px; filter: grayscale(40%);
  opacity: 0.83;
  transition: opacity .15s, filter .2s;
}
.footer-social a:hover img {
  filter: grayscale(0%) brightness(1.08);
  opacity: 1;
}

/***** Cookie Consent Banner *****/
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  background: var(--color-accent);
  box-shadow: 0 -4px 24px var(--color-shadow);
  border-top: 1px solid var(--color-border);
  padding: 18px 20px 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  animation: fadeInCookie .7s;
}
@keyframes fadeInCookie {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner p {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-consent-actions {
  display: flex;
  gap: 12px;
}
.cookie-consent-banner .button {
  margin: 0;
  min-width: 110px;
  box-shadow: none;
}
.cookie-consent-banner .button.accept {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-consent-banner .button.reject {
  background: var(--color-primary);
  color: var(--color-white);
}
.cookie-consent-banner .button.settings {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.cookie-consent-banner .button.settings:hover,
.cookie-consent-banner .button.settings:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

/***** Cookie Preferences Modal *****/
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1020;
  background: rgba(38, 70, 83, 0.27);
  animation: fadeInModalBg .3s;
}
@keyframes fadeInModalBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -44%);
  z-index: 1050;
  background: var(--color-white);
  padding: 36px 26px 30px 26px;
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(38,70,83,.18);
  min-width: 300px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: scaleInModal .28s cubic-bezier(.64,.01,.01,1);
}
@keyframes scaleInModal {
  from { opacity: 0; transform: scale(.92) translate(-50%,-47%); }
  to   { opacity: 1; transform: scale(1) translate(-50%,-44%); }
}
.cookie-modal h3 {
  font-size: 1.18rem;
  color: var(--color-primary);
  margin-bottom: 9px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-dark);
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #e3e3e3;
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .17s;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-toggle:before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px; left: 4px;
  transition: left .17s;
  box-shadow: 0 1px 4px rgba(42,157,143,.08);
}
.cookie-toggle:checked:before {
  left: 18px;
}
.cookie-modal .button {
  margin-top: 10px;
  min-width: 100px;
}
.cookie-modal .essential-label {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 1rem;
}
.cookie-modal .essential-label:after {
  content: ' (immer aktiv)';
  color: #aaa;
  font-size: 0.93em;
  margin-left: 7px;
}
.cookie-modal-close {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  position: absolute;
  top: 13px;
  right: 14px;
  cursor: pointer;
  z-index: 2;
}

/***** Legal Section (Datenschutz, GDPR, Cookie-Richtlinie, Nutzungsbedingungen) *****/
.legal .content-wrapper {
  background: var(--color-accent);
  border-radius: 13px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 34px 24px;
  max-width: 850px;
  margin: 0 auto;
  gap: 16px;
}
.legal h1, .legal h2, .legal h3 {
  color: var(--color-primary);
}

/***** Contact Page Details *****/
.contact-details .contact-info {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.contact-details .contact-info div {
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
}
.contact-details .contact-info img {
  width: 22px; height: 22px;
}

/***** Confirmation (Thank You) *****/
.confirmation .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 22px;
}
.next-steps ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

/* Responsive Layouts */
@media (max-width: 1280px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 991px) {
  .feature-grid, .service-cards, .benefit-grid, .benefit-cards, .team-bios, .content-grid {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
  }
  .feature-grid>div, .service-cards>div, .benefit-grid>div, .benefit-cards>div, .team-bios>div {
    min-width: 170px;
    max-width: 100%;
    flex: 1 1 48%;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.35rem; }
  
  .feature-grid, .service-cards, .benefit-grid, .benefit-cards, .team-bios, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid>div, .service-cards>div, .benefit-grid>div, .benefit-cards>div, .team-bios>div {
    max-width: 100%;
    flex: 1 1 90%;
  }
  .container {
    padding: 0 9px;
  }
  header .container {
    padding: 0 8px;
  }
  .section, section {
    padding: 24px 7px;
  }
  .testimonial-card {
    padding: 14px 12px;
  }
  .trust-badges {
    gap: 9px;
    flex-wrap: wrap;
  }
  .hero .container,
  .cta .container {padding-top:20px;padding-bottom:20px;}
}
@media (max-width: 570px) {
  html { font-size: 14px; }
  h1, .h1 { font-size: 1.3rem; }
  h2, .h2 { font-size: 1.08rem; }
  .section, section {padding: 12px 0;}
  .container {padding: 0 3.5vw;}
  
  .footer-brand span {
    display: none;
  }
}

/* White space helpers */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 40px !important; }

/***** Micro-interactions/Transitions *****/
.button, .card, .team-member, .testimonial-card, .feature-grid>div, .service-cards>div, .benefit-grid>div, .benefit-cards>div {
  transition: box-shadow 0.17s, transform 0.12s, background 0.18s, color 0.13s;
}

/***** Utility Classes for Alignment *****/
.align-center {
  align-items: center;
}
.align-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}

/***** No Absolute for Cards, Sufficient Spacing *****/
.card, .testimonial-card, .team-member {
  margin-bottom: 20px;
}
section, .section {
  margin-bottom: 60px;
}

/***** Hide desktop nav on mobile, mobile nav on desktop handled above. *****/

/***** Ensure No Overlap and Z-index Issues *****/
header, .mobile-menu, .cookie-consent-banner, .cookie-modal, .cookie-modal-backdrop {
  z-index: 100 !important;
}

/***** Accessibility: Focus states for interactive elements *****/
a:focus, .button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-modal-close:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/***** End CSS *****/
