/* RESET & BASE TYPOGRAPHY (Professional Corporate, Brand Montserrat/Roboto) */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F7FAFC;
  color: #17304D;
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #17304D;
  text-decoration: none;
  transition: color 0.22s;
}
a:hover, a:focus {
  color: #F7A900;
  outline: none;
}
strong, b { font-weight: 600; }
em, i { font-style: italic; }
ul, ol { padding-left: 20px; }
hr {border: none; border-top: 1px solid #DEE2E6; margin: 32px 0;}

/* CONTAINER & SECTIONS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px 0 20px;
  width: 100%;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/***********************************************
 * TYPOGRAPHY SCALE (Professional Corporate)
 **********************************************/
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  color: #17304D;
  line-height: 1.15;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #17304D;
  letter-spacing: -0.01em;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #17304D;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #17304D;
  margin-bottom: 8px;
}
p, ul, ol, address, .text-section {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #26384A;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 10px;
}
.text-section {
  margin-bottom: 16px;
}

/* LAYOUT UTILITIES */
.flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.flex-wrap {
  flex-wrap: wrap;
}
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(23,48,77,0.04);
  position: relative;
  z-index: 1001;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
header .container {
  padding-top: 8px; padding-bottom: 8px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 6px 0 6px 0;
  font-weight: 500;
  color: #17304D;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #F7A900;
  border-bottom: 2px solid #F7A900;
}
.main-nav .cta-btn {
  margin-left: 22px;
  padding: 10px 20px;
}

/* CTA BUTTON (Global) */
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: #F7A900;
  color: #17304D;
  padding: 12px 28px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(23,48,77,0.09);
  border: none;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.01em;
  transition: background 0.16s, color 0.16s, transform 0.19s, box-shadow 0.19s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #dc9400;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 18px rgba(23,48,77,0.16);
}

/* MOBILE MENU
-------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #17304D;
  cursor: pointer;
  z-index: 1201;
  padding: 8px 14px;
  margin-left: 16px;
  border-radius: 5px;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #eef2f6;
}

.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 18px 24px 24px;
  top: 0; left: 0;
  width: 305px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 32px 0 rgba(23,48,77,.17);
  z-index: 1101;
  transform: translateX(-110%);
  transition: transform 0.34s cubic-bezier(.77,.34,.17,.85);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: #17304D;
  cursor: pointer;
  margin-bottom: 14px;
  border-radius: 5px;
  padding: 8px 12px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #eef2f6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #17304D;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f6;
  transition: color 0.17s, background 0.16s;
  border-radius: 3px;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F7A900;
  background: #f8fafd;
}

/* Overlay for mobile menu when open */
.mobile-menu-bg {
  position: fixed;
  z-index: 1100;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,48,77,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.mobile-menu.active + .mobile-menu-bg {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 1050px) {
  .header-flex { gap: 8px; }
}
@media (max-width: 900px) {
  .header-flex, .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    height: auto;
  }
  .footer-flex { padding: 36px 0 10px 0; }
}
@media (max-width: 855px) {
  .main-nav { gap: 14px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .header-flex img { max-width: 130px; }
  .section, section { padding: 36px 7px 0 7px; }
}

/* HERO SECTION */
.hero-section {
  background: #17304D url('../assets/hero-bg-pattern.svg') top right repeat-x;
  color: #fff;
  padding: 68px 0 64px 0;
  min-height: 340px;
  margin-bottom: 60px;
}
.hero-section .content-wrapper {
  gap: 20px;
}
.hero-section h1, .hero-section p {
  color: #fff;
}
.hero-section .cta-btn {
  background: #F7A900;
  color: #17304D;
  box-shadow: 0 4px 18px rgba(255,255,255,0.08);
}
.hero-section .cta-btn:hover {
  background: #dc9400;
  color: #fff;
}

/* STÄRKEN/FEATURES */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
}
.feature-block {
  flex: 1 1 215px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1.6px 8px rgba(23,48,77,0.06);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 230px;
  min-height: 200px;
  transition: box-shadow 0.19s, transform 0.19s;
}
.feature-block img {
  width: 48px; height: 48px; margin-bottom: 8px;
}
.feature-block:hover {
  box-shadow: 0 7px 28px rgba(23,48,77,0.15);
  transform: translateY(-4px) scale(1.01);
}

.service-list {
  margin: 20px 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.07rem;
  color: #26384A;
}
.service-list li em {
  color: #F7A900; font-style: normal;
  font-weight: 600;
}

/* SERVICE BLOCK/DETAILS */
.service-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 18px 0 16px 0;
}
.service-block {
  flex: 1 1 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1.6px 10px rgba(23,48,77,0.06);
  padding: 22px 20px 20px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.service-block h2 {
  font-size: 1.12rem;
  color: #17304D;
  font-weight: 600;
}
.service-block ul {
  margin-top: 10px; margin-bottom: 4px;
}
.service-block:hover {
  box-shadow: 0 7px 24px rgba(23,48,77,0.16);
  transform: translateY(-3px) scale(1.01);
}


/* CASE STUDIES */
.case-studies {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.case-study-block {
  flex: 1 1 275px;
  background: #fff;
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: 0 1px 7px rgba(23,48,77,0.07);
  min-width: 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.case-study-block:hover {
  box-shadow: 0 6px 20px rgba(23,48,77,0.14);
  transform: translateY(-2px) scale(1.01);
}

/* FAQ & PROCESS */
.process-timeline ol, .text-section ol {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 22px;
}
.process-timeline li {
  font-weight: 500;
  color: #17304D;
  margin-bottom: 4px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-item h3 {
  font-size: 1.1rem;
  color: #17304D;
  font-weight: 600;
}
.faq-item p {
  margin-top: 4px;
}

/* TESTIMONIALS */
.testimonial-block {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  margin: 18px 0 0 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 26px;
  background: #EEF2F6;
  border-radius: 9px;
  box-shadow: 0 2px 12px rgba(23,48,77,0.08);
  min-width: 240px;
  max-width: 385px;
  margin-bottom: 12px;
  font-size: 1.03rem;
}
.testimonial-card p {
  color: #17304D;
  font-size: 1.09rem;
  font-style: italic;
}
.testimonial-card span {
  color: #26384A;
  font-size: 0.98rem;
}

/* CTA SECTION */
.cta-section .content-wrapper {
  align-items: center;
  justify-content: center;
}
.cta-section {
  text-align: center;
  background: #17304D;
  border-radius: 13px;
  box-shadow: 0 6px 32px rgba(23,48,77,0.09);
  margin: 48px 0 48px 0;
  padding: 52px 8px 52px 8px !important;
}
.cta-section .cta-btn {
  background: #F7A900;
  color: #17304D;
  min-width: 220px;
  font-size: 1.15rem;
}
.cta-section .cta-btn:hover {
  background: #dc9400;
  color: #fff;
}
.cta-section h2, .cta-section p {
  color: #fff;
}

/* CARDS (Generic styles for universal card container) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1.6px 9px rgba(23,48,77,0.06);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(23,48,77,0.18);
  transform: translateY(-3px) scale(1.01);
}

/* FOOTER */
footer {
  background: #17304D;
  color: #fff;
  padding: 0 0 0 0;
  margin-top: 84px;
  box-shadow: 0 -4px 28px rgba(23,48,77,0.09);
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 56px 0 22px 0;
}
.footer-col img {
  width: 70px;
  margin-bottom: 17px;
}
.footer-col address {
  font-style: normal;
  font-size: 1rem;
  color: #EEF2F6;
}
.footer-col h4 {
  color: #F7A900;
  font-size: 1.03rem;
  margin-bottom: 8px;
}
.footer-nav,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a,
.footer-legal a {
  color: #eef2f6;
  font-size: 1rem;
  transition: color 0.14s;
  border-bottom: 1px solid transparent;
  width: fit-content;
}
.footer-nav a:hover,
.footer-legal a:hover {
  color: #F7A900;
  border-bottom: 1px solid #F7A900;
}
.copyright {
  text-align: left;
  padding: 16px 0 7px 0;
  color: #b3c1d7;
  font-size: 0.93rem;
}

/* Thank You message */
.thank-you-message {
  padding: 22px 0;
  font-size: 1.15rem;
  color: #17304D;
}

/* Map snippet (Kontakt) */
.map-snippet {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #EEF2F6;
  border-radius: 7px;
  padding: 18px 14px;
  margin: 14px 0 10px 0;
  font-weight: 500;
  color: #17304D;
  font-size: 1.07rem;
}

/* Cookie Consent Banner (fixed bottom bar) */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #17304D;
  color: #fff;
  padding: 20px 14px 20px 14px;
  box-shadow: 0 -3px 24px rgba(23,48,77,0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  animation: fadeInBanner 0.45s cubic-bezier(.57,.17,.39,.95);
}
@keyframes fadeInBanner {
  from {opacity: 0; transform: translateY(28px);}
  to {opacity: 1; transform: translateY(0);}
}
.cookie-banner-message {
  flex: 1 1 200px;
  font-size: 1rem;
  line-height: 1.6;
  color: #EEF2F6;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: 5px;
  border: none;
  background: #F7A900;
  color: #17304D;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.13s, color 0.13s, box-shadow .13s;
  box-shadow: 0 1.8px 7px rgba(247,169,0,0.12);
  cursor: pointer;
  margin-right: 5px;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fff;
  color: #17304D;
  box-shadow: 0 4px 16px rgba(23,48,77,0.16);
}
.cookie-btn.settings {
  background: #EEF2F6;
  color: #17304D;
  padding: 9px 18px;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fff;
}

/* Cookie Preference Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(23,48,77,0.2);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBanner 0.37s;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 32px 28px 23px 28px;
  box-shadow: 0 10px 40px rgba(23,48,77,0.22);
  color: #17304D;
  min-width: 275px;
  max-width: 95vw;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: relative;
  animation: modalIn 0.39s;
}
@keyframes modalIn {
  from {opacity: 0; transform: scale(0.93) translateY(60px);}
  to {opacity: 1; transform: scale(1) translateY(0);}
}
.cookie-modal-content h2 {
  font-size: 1.27rem;
  margin-bottom: 16px;
  color: #17304D;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category label {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.cookie-toggle {
  width: 36px; height: 20px;
  background: #e5eaf2;
  border-radius: 11px;
  position: relative;
  margin-left: 8px;
  cursor: pointer;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-toggle span {
  display: block;
  width: 17px; height: 17px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 1.5px;
  box-shadow: 0 0.8px 3.5px rgba(23,48,77,0.11);
  transition: left 0.19s;
}
.cookie-toggle input:checked + span {
  left: 16px;
  background: #F7A900;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  top: 11px;
  right: 13px;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #26384A;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.cookie-modal .close-modal-btn:hover { background: #f3f7fb; }

/* Hide modal by default */
.cookie-modal[aria-hidden="true"] { display: none; }

/******************
  RESPONSIVE OVERRIDES
******************/
@media (max-width: 1100px) {
  .container {
    max-width: 97vw;
  }
  .feature-grid, .service-detail-list, .testimonial-block, .case-studies { gap: 18px; }
}
@media (max-width: 900px) {
  .feature-block, .service-block, .case-study-block {
    min-width: 212px;
    padding: 19px 12px;
  }
  .feature-grid, .service-detail-list, .testimonial-block, .case-studies {
    gap: 13px;
  }
}
@media (max-width: 768px) {
  .footer-flex, .main-nav, .feature-grid, .service-detail-list, .testimonial-block, .case-studies {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch;
  }
  .feature-block, .service-block, .case-study-block, .testimonial-card, .card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
  }
  .hero-section { padding: 33px 0 30px 0; min-height: 160px; }
  .cta-section { margin: 30px 0 28px 0; padding: 33px 2px 33px 2px !important; border-radius: 8px; }
  .section, section { padding: 20px 4px 0 4px; margin-bottom: 42px; }
  .footer-flex { padding: 27px 0 4px 0; gap: 23px; }
  .footer-col img { width: 45px; margin-bottom: 14px; }
  h1, .h1 {font-size: 1.7rem; margin-bottom: 14px;}
  h2, .h2 {font-size: 1.14rem;}
}
@media (max-width: 500px) {
  .container {
    padding: 0 6px;
  }
  .hero-section { padding: 16px 0 14px 0; }
  .footer-col {width: 100%;}
  .cookie-banner { flex-direction: column; gap: 12px; align-items: flex-start; justify-content: flex-start;}
}

/******** Misc for accessibility ********/
:focus-visible { outline: 2px solid #F7A900; outline-offset: 2px; }

/***** Card/Section/Misc Alignment & Spacing *****/
.card-container, .feature-grid, .service-detail-list, .testimonial-block, .case-studies {
  gap: 24px;
  margin-bottom: 30px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px 0 20px;
}
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/***** END OF CSS *****/
