/* ========================================================== */
/* ========== CSS RESET & BASELINE NORMALIZATION ============ */
/* ========================================================== */
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #224577;
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
html {
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  margin-left: 24px;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .18s;
}

/* Remove Safari input shadowing */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

/* Hide outline for mouse, show for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #18A0AA;
  outline-offset: 2px;
}

/* ========================================================== */
/* ========== VARIABLES (with fallbacks) ==================== */
/* ========================================================== */
:root {
  --color-primary: #224577;
  --color-secondary: #F7F7F7;
  --color-accent: #18A0AA;
  --color-accent-alt: #11707a;
  --color-white: #fff;
  --color-black: #223247;
  --color-grey-light: #EAF0F4;
  --color-grey-mid: #A0AEC0;
  --color-shadow: rgba(34, 69, 119, 0.07);
  --border-radius: 10px;
}

/* Fallbacks for browsers not supporting custom properties */
body {
  background: #fff;
  color: #224577;
}

/* ========================================================== */
/* ========== TYPOGRAPHY ==================================== */
/* ========================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1rem; margin-bottom: 8px; font-weight: 500; }

p, li, address, cite {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #224577;
  line-height: 1.6;
}
p, ul, ol { margin-bottom: 14px; }
ul, ol { padding-left: 1em; }
blockquote {
  font-style: italic;
  color: var(--color-black);
  background: var(--color-grey-light);
  border-left: 4px solid var(--color-accent);
  margin: 0 0 12px 0;
  padding: 10px 18px;
}
cite {
  font-size: 0.95rem;
  color: var(--color-grey-mid);
  font-style: normal;
  display: block;
  margin-top: 6px;
}
strong, b {
  font-weight: 700;
}

/* Subheadline class (for index header) */
.subheadline {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  color: var(--color-grey-mid);
  margin-bottom: 22px;
}

/* ========================================================== */
/* ========== CONTAINERS & SECTIONS ========================= */
/* ========================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-secondary);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 16px var(--color-shadow);
}
/* Remove background color for first section/hero */
main section:first-of-type {
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* ========================================================== */
/* ========== HEADER & NAVIGATION =========================== */
/* ========================================================== */
header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-grey-light);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 20px;
}
header img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 0;
  transition: color 0.16s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
}

/* Active link underline styling on hover/focus */
.main-nav a::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--color-accent);
  width: 0;
  transition: width 0.21s;
  position: absolute;
  left: 0;
  bottom: -2px;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 80%;
}

.btn-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  cursor: pointer;
  box-shadow: 0 2px 6px var(--color-shadow);
  transition: background 0.18s, box-shadow 0.22s, transform 0.18s;
  display: inline-block;
  margin-left: 18px;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent-alt);
  box-shadow: 0 4px 18px 0 rgba(17, 112, 122, 0.09);
  transform: translateY(-2px) scale(1.025);
  color: #fff;
}

/* Hide hamburger on desktop */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  transition: color .18s;
}
.mobile-menu-toggle:focus {
  color: var(--color-accent);
}

/* ========================================================== */
/* ========== MOBILE NAVIGATION (BURGER MENU) =============== */
/* ========================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  z-index: 1002;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.62,0,.45,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  box-shadow: 0 32px 80px -32px rgba(34,69,119,0.12);
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 30px;
  background: transparent;
  border: none;
  font-size: 2.3rem;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 1003;
  transition: color .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 22px;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.24rem;
  color: var(--color-primary);
  padding: 8px 0;
  border-radius: 6px;
  width: 92%;
  transition: background .15s, color .17s;
  margin-right: 4vw;
  margin-left: 0;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-grey-light);
  color: var(--color-accent);
}

/* Main nav hide on mobile */
@media (max-width: 980px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 980px) {
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
}

/* ========================================================== */
/* ========== HERO/INTRO & CALLS TO ACTION ================== */
/* ========================================================== */
.hero {
  background: var(--color-secondary);
  padding: 52px 0 32px 0;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: none;
}
.hero .btn-primary {
  margin-top: 24px;
}

/* ========================================================== */
/* ========== FLEX PATTERNS / LAYOUTS ======================= */
/* ========================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  min-width: 240px;
  max-width: 360px;
  flex: 1 1 360px;
  transition: box-shadow .18s, transform .16s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 var(--color-shadow);
  transform: translateY(-2px) scale(1.015);
}

.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 {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 420px;
  flex: 1 1 360px;
}
.testimonial-card blockquote {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 0;
  color: var(--color-black);
  font-size: 1.05rem;
  font-style: italic;
}
.testimonial-card cite {
  color: var(--color-accent-alt);
  font-size: 0.98rem;
  margin-top: 6px;
}
.testimonial-card img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-secondary);
  border: 2px solid var(--color-grey-light);
  margin-right: 8px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 24px 22px;
  margin-bottom: 20px;
}

/* Feature Grid (Index, Leistungen) */
.feature-grid, .service-tabs, .step-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: 16px;
  justify-content: flex-start;
}
.feature-grid > div, .service-tabs > div, .step-list > div {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 24px 18px 20px 18px;
  min-width: 210px;
  flex: 1 1 230px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .14s, transform .12s;
  margin-bottom: 20px;
}
.feature-grid > div:hover, .service-tabs > div:hover, .step-list > div:hover {
  box-shadow: 0 8px 36px 0 var(--color-shadow);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img, .service-tabs img, .step-list img {
  width: 54px;
  margin-bottom: 8px;
  object-fit: contain;
}

/**** Testimonial Slider ****/
.testimonial-slider, .testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.quote-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/**** Client Logos, Certification Badges, Trust Badges ****/
.trust-badges, .usp-icons, .certification-badges, .value-icons, .client-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}
.client-logos img {
  height: 46px;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter .13s, opacity .16s;
}
.client-logos img:hover {
  filter: none;
  opacity: 1;
}

.client-brands-list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.client-brands-list li {
  list-style: none;
  background: var(--color-grey-light);
  border-radius: 7px;
  padding: 7px 16px;
  font-size: 1rem;
  margin-bottom: 6px;
}

.case-study-summaries {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.case-study-summaries > div {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 24px 16px 18px;
  min-width: 210px;
  flex: 1 1 320px;
  max-width: 360px;
  margin-bottom: 20px;
}

.guarantee-statement {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.guarantee-statement img {
  width: 44px;
}

.next-steps-info {
  background: var(--color-grey-light);
  border-radius: 7px;
  padding: 10px 18px;
  margin-top: 18px;
}

/* Pricing Table */
.pricing-table {
  overflow-x: auto;
  margin-bottom: 24px;
}
.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 1px 8px var(--color-shadow);
}
.pricing-table th, .pricing-table td {
  padding: 14px 10px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-grey-light);
}
.pricing-table th {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-secondary);
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/**** Accordion (for FAQ) ****/
.accordion-faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 20px;
}
.accordion-faq-list > div {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 1px 7px var(--color-shadow);
  padding: 18px 18px 14px 18px;
}
.accordion-faq-list h3 {
  margin-bottom: 8px;
}

/**** Contact Snippet ****/
.contact-snippet {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.contact-snippet img {
  width: 22px;
  margin-right: 4px;
}
.contact-snippet a {
  color: var(--color-accent-alt);
  font-weight: 500;
  transition: text-decoration .11s, color .16s;
  text-decoration: underline solid 1.5px transparent;
}
.contact-snippet a:hover {
  text-decoration: underline solid 1.5px var(--color-accent-alt);
  color: var(--color-accent);
}

/**** Misc. Lists, Text Blocks ****/
.text-section {
  margin-bottom: 14px;
}
.text-section ul {
  margin-bottom: 0;
}

/**** Footer ****/
footer {
  background: var(--color-secondary);
  border-top: 1px solid var(--color-grey-light);
  padding: 40px 0 28px 0;
}
footer .container {
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row;
  gap: 30px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
}
.footer-nav a {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--color-grey-mid);
  font-size: 0.97rem;
  transition: color .14s;text-decoration:none;
  padding: 4px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent-alt);
  text-decoration: underline dashed;
}
footer address {
  font-size: 0.98rem;
  color: var(--color-grey-mid);
  font-style: normal;
  line-height: 1.6;
  margin-top: 8px;
  max-width: 340px;
}
footer img {
  height: 38px;
  margin-bottom: 12px;
}

/**** Responsive Alignment, Spacing, and Flex Direction  ****/
@media (max-width: 768px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-grid, .card-container, .feature-grid, .service-tabs, .step-list, .testimonial-slider, .quote-slider, .testimonial-cards, .case-study-summaries {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

@media (max-width: 500px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  .btn-primary { font-size: 0.97rem; padding: 9px 20px; }
  .section { padding: 20px 6px; }
}

/* Always maintain min spacing between cards/sections */
.section + .section {
  margin-top: 20px;
}

/**** Remove outline on mouse, show on keyboard navigation ****/
button:focus:not(:focus-visible), a:focus:not(:focus-visible) {
  outline: none;
}

/**** Smooth micro-interactions for all major interactive elements ****/
button, .btn-primary, .main-nav a, .mobile-nav a, .footer-nav a, .card, .feature-grid > div, .step-list > div, .testimonial-card {
  transition: background 0.18s, color 0.17s, box-shadow 0.18s, transform 0.13s;
}

/* ========================================================== */
/* ========== COOKIE CONSENT BANNER ========================= */
/* ========================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 -4px 18px -8px var(--color-shadow);
  z-index: 1100;
  padding: 24px 16px 18px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition: opacity .34s, transform .34s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner-message {
  flex: 1 1 62vw;
  max-width: 550px;
  font-size: 1rem;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-btn {
  border: none;
  background: var(--color-accent-alt);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 18px;
  padding: 8px 23px;
  margin-right: 0;
  box-shadow: 0 1px 7px var(--color-shadow);
  cursor: pointer;
  transition: background .16s, color .16s, box-shadow .20s, transform .13s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 3px 19px 0 rgba(24,160,170,.10);
  transform: translateY(-1px) scale(1.01);
}
.cookie-btn-reject {
  background: var(--color-grey-light);
  color: var(--color-accent-alt);
  border: 1px solid var(--color-accent-alt);
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.cookie-btn-settings {
  background: transparent;
  color: var(--color-accent-alt);
  border: 1px solid var(--color-accent);
  margin-left: 6px;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--color-grey-light);
  color: var(--color-accent-alt);
}

@media (max-width: 620px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 8px;
  }
  .cookie-banner-message {
    max-width: 100vw;
    font-size: 0.97rem;
  }
  .cookie-banner-actions {
    gap: 8px;
    width: 100%;
    justify-content: flex-end;
  }
}

/**** Cookie Modal Popup ****/
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 1150;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,69,119,.15);
  align-items: center;
  justify-content: center;
}
.cookie-modal.visible {
  display: flex;
  animation: fadeInBg .22s;
}
@keyframes fadeInBg {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-inner {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 30px 28px 18px 28px;
  box-shadow: 0 12px 64px 0 var(--color-shadow);
  width: 94vw;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: modalSlideIn .28s cubic-bezier(.62,.09,.72,1.1);
}
@keyframes modalSlideIn {
  from { transform: translateY(30px) scale(.93); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-modal-inner h2 {
  font-size: 1.18rem;
}
.cookie-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 18px 0;
}
.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-grey-light);
  border-radius: 6px;
  padding: 12px 10px;
  font-size: 1rem;
}
.cookie-option input[type=checkbox] {
  accent-color: var(--color-accent-alt);
  transform: scale(1.17);
}
.cookie-option.disabled label, .cookie-option.disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 13px;
}
.cookie-modal-close {
  position: absolute;
  right: 12vw;
  top: 14vh;
  background: transparent;
  border: none;
  color: var(--color-accent-alt);
  font-size: 2rem;
  cursor: pointer;
}
.cookie-modal-close:hover {
  color: var(--color-accent);
}
@media (max-width: 620px) {
  .cookie-modal-inner {
    padding: 18px 4vw 12px 4vw;
    max-width: 99vw;
    font-size: .98rem;
  }
}
/* ====================================================== */
/* ========== END OF STYLES ============================ */
/* ====================================================== */
