/* ----------------- 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 {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  min-height: 100vh;
  background: #F4F6F8;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2B3A55;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 16px;
}
a {
  color: #2B3A55;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #19407c;
  text-decoration: underline;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
  outline: none;
  box-sizing: border-box;
}

/* ----------------- BRAND TYPOGRAPHY ----------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  color: #2B3A55;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
p, ul li, ol li {
  font-size: 1rem;
  color: #2B3A55;
  margin-bottom: 12px;
}
strong {
  font-weight: 600;
}

/* ----------------- SPACING & LAYOUT ----------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(43, 58, 85, 0.07);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 12px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(43, 58, 85, 0.07);
  background: #fff;
  padding: 28px 24px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
  padding: 20px;
  background: #F4F6F8;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(43, 58, 85, 0.07);
  margin-bottom: 20px;
  border-left: 4px solid #2B3A55;
  min-width: 260px;
}
.testimonial-card p {
  color: #222a3a;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #2B3A55;
  font-weight: 600;
  opacity: 0.92;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.client-logos {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}
.features-grid, .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 18px;
  justify-content: flex-start;
}
.feature, .service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px 24px 28px 24px;
  background: #F4F6F8;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(43, 58, 85, 0.05);
  min-width: 240px;
  max-width: 350px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s;
}
.feature:hover, .service-card:hover {
  box-shadow: 0 4px 18px rgba(43, 58, 85, 0.13);
  background: #e9f1fa;
}
.feature img, .service-card img {
  height: 48px;
  width: 48px;
  object-fit: cover;
}

/* ----------------- HEADER & NAVIGATION ----------------- */
header {
  width: 100%;
  background: #2B3A55;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 10px 20px 10px 20px;
}
header img {
  height: 48px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.03rem;
  padding: 6px 10px;
  border-radius: 7px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #2B3A55;
  background: #F9C846;
}
.cta-btn {
  margin-left: auto;
  background: #F9C846;
  color: #2B3A55 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(43,58,85,.13);
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #2B3A55;
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(43, 58, 85, 0.19);
}

/* ----------------- MOBILE NAVIGATION ----------------- */
.mobile-menu-toggle {
  display: none;
  background: #F9C846;
  color: #2B3A55;
  font-size: 2rem;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1201;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #ffe28e;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #2B3A55;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 36px;
  padding-left: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.4,1,.6,1), opacity 0.2s;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  position: absolute;
  top: 22px;
  right: 28px;
  border: none;
  cursor: pointer;
  z-index: 1400;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #F9C846;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 82px 32px 36px 32px;
  font-size: 1.25rem;
  width: 100vw;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 10px 0;
  transition: color 0.16s;
  border-left: 4px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F9C846;
  border-left: 4px solid #F9C846;
  background: rgba(249, 200, 70, 0.09);
}

/* Hide normal nav, show mobile toggle on small screens */
@media (max-width: 1024px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ----------------- HERO & FEATURES ----------------- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  justify-content: flex-start;
}
/* ----------------- FOOTER ----------------- */
footer {
  width: 100%;
  background: #2B3A55;
  color: #fff;
  padding: 0;
  font-size: 1rem;
  margin-top: 80px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 20px 12px 20px;
}
.footer-brand img {
  height: 38px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.footer-menu a {
  color: #F9C846;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.16s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #ffe28e;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
  max-width: 300px;
}
.footer-contact p {
  color: #fff;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact a {
  color: #F9C846;
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
}
.footer-social a img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.90;
  transition: opacity 0.18s;
}
.footer-social a:hover img {
  opacity: 1;
  filter: drop-shadow(0 2px 6px #F9C84666);
}
footer p {
  margin-top: 32px;
  color: #d0d5e0;
  font-size: 0.93rem;
  width: 100%;
}

/* ----------------- CONTACT DETAILS & HIGHLIGHTS ----------------- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2B3A55;
  font-size: 1rem;
}

/* ----------------- RESPONSIVE LAYOUTS ----------------- */
@media (max-width: 899px) {
  .container {
    padding: 0 12px;
  }
  .features-grid, .service-cards, .testimonial-slider, .card-container, .content-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.25rem; }
  .section {
    margin-bottom: 36px;
    padding: 20px 10px;
  }
  .container,
  footer .container {
    flex-direction: column;
    gap: 22px;
    padding: 18px 6px;
  }
  .features-grid, .service-cards, .testimonial-slider, .client-logos, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .mobile-menu {
    padding-top: 15px;
    padding-left: 0;
  }
}
@media (max-width: 550px) {
  html { font-size: 15px; }
  .section {
    padding: 12px 1px;
    border-radius: 0;
  }
  .testimonial-card, .feature, .service-card, .card {
    border-radius: 6px;
    padding: 16px 8px;
  }
  footer {
    font-size: 0.93rem;
  }
  .footer-brand img, header img {
    height: 28px;
  }
  .mobile-menu-toggle, .mobile-menu-close {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }
}

/* ----------------- LISTS & LINKS ----------------- */
ul, ol {
  padding-left: 1.3em;
}
ul li, ol li {
  margin-bottom: 7px;
  font-size: 1rem;
  color: #314061;
}
ul li a {
  color: #2B3A55;
  text-decoration: underline;
  transition: color 0.15s;
}
ul li a:hover, ul li a:focus {
  color: #F9C846;
}

/* ----------------- BUTTONS ----------------- */
button, .cta-btn {
  outline: none;
  border: none;
  cursor: pointer;
}
button:active,
.cta-btn:active {
  transform: translateY(1px);
}

/* ----------------- MISCELLANEOUS ----------------- */
::-webkit-input-placeholder { color: #8ca2c1; }
::-moz-placeholder { color: #8ca2c1; }
:-ms-input-placeholder { color: #8ca2c1; }
::placeholder { color: #8ca2c1; }

hr {
  border: 0;
  border-top: 1px solid #e8eaf1;
  margin: 32px 0;
}

/* For card borders/shadows */
.project-highlights {
  background: #F4F6F8;
  border-left: 6px solid #2B3A55;
  padding: 20px 18px;
  border-radius: 10px;
  margin: 24px 0;
  box-shadow: 0 1px 7px rgba(43,58,85,0.09);
}
.feature-icons {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 18px 0 8px 0;
}
.feature-icons img {
  background: #fff;
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 1px 7px rgba(43,58,85,0.09);
  height: 46px;
  width: 46px;
}

/****** COOKIE CONSENT BANNER ******/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #2B3A55;
  color: #fff;
  padding: 24px 16px;
  box-shadow: 0 -2px 16px rgba(43,58,85,0.09);
  z-index: 2400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s cubic-bezier(.4,1,.6,1), opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(105%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: #fff;
  margin-bottom: 0;
  font-size: 1rem;
}
.cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 2px;
}
.cookie-btn,
.cookie-settings-btn,
.cookie-accept-btn,
.cookie-reject-btn {
  background: #F9C846;
  color: #2B3A55;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 22px;
  box-shadow: 0 2px 5px rgba(43,58,85,.10);
  transition: background 0.14s, color 0.14s;
  cursor: pointer;
  border: none;
}
.cookie-settings-btn {
  background: #fff;
  color: #2B3A55;
  border: 1px solid #e9ebf1;
  margin-right: 2px;
}
.cookie-btn:hover, .cookie-settings-btn:hover {
  background: #ffe28e;
  color: #2B3A55;
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 96vw;
  max-width: 390px;
  background: #fff;
  color: #2B3A55;
  border-radius: 14px;
  box-shadow: 0 2px 25px rgba(43,58,85,0.17);
  padding: 32px 24px 24px 24px;
  z-index: 2500;
  transform: translate(-50%, -50%) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.20s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  margin-bottom: 12px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.cookie-modal-category label {
  font-size: 1.07rem;
  color: #2B3A55;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #c7cfdb;
  position: relative;
  cursor: pointer;
  transition: background 0.14s;
  margin-left: 7px;
}
.cookie-toggle[aria-checked="true"] {
  background: #2B3A55;
}
.cookie-toggle-knob {
  position: absolute;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  background: #fff;
  box-shadow: 0 1px 4px #bbb;
  transition: left 0.16s, background 0.16s;
}
.cookie-toggle[aria-checked="true"] .cookie-toggle-knob {
  left: 22px;
  background: #F9C846;
}
.cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

/* Overlay for cookie modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0;left: 0;right: 0;bottom: 0;
  z-index: 2450;
  background: rgba(43,58,85,0.3);
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.hide { opacity: 0; pointer-events: none; }

@media (max-width: 475px) {
  .cookie-modal {
    padding: 18px 4px 12px 8px;
  }
  .cookie-banner {
    padding: 15px 4px;
  }
}

/******* MICRO-INTERACTIONS & BUTTON ANIMATION ******/
.cta-btn, .feature, .service-card, .testimonial-card, .cookie-btn, .cookie-settings-btn, .cookie-accept-btn, .cookie-reject-btn {
  transition: box-shadow 0.20s, transform 0.13s, background 0.13s, color 0.15s;
}
.cta-btn:active, .feature:active, .service-card:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* Focus styles for accessibility */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .cookie-settings-btn:focus {
  outline: 2px solid #F9C846;
  outline-offset: 2px;
}

/*---------------- CUSTOM SCROLLBAR FOR DESKTOP ------------------*/
@media (min-width: 900px) {
  ::-webkit-scrollbar {
    width: 12px;
    background: #ecf1f8;
  }
  ::-webkit-scrollbar-thumb {
    background: #bfcadd;
    border-radius: 8px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #2B3A55;
  }
}

/* ----------- Hide unwanted content overlap on mobile ----------- */
main > section, .section {
  position: relative;
  z-index: 1;
}

/* ---------- Z-INDEX CONTROL (banner, modals, header, nav) ------ */
header { z-index: 1001; }
footer { z-index: 10; }
.mobile-menu { z-index: 1200; }
.mobile-menu-close { z-index: 1400; }
.cookie-banner { z-index: 2400; }
.cookie-modal { z-index: 2500; }
.cookie-modal-overlay { z-index: 2450; }

/* ------------- Utility: visually hide, show class --------------- */
.visually-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----------- END CSS FOR FLARETORQUE BERATUNG ------------------ */
