/* ---------------------------
   CSS RESET & BASELINE NORMALIZE
---------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
html, body {
  height: 100%;
}
body {
  background: #FFFFFF;
  color: #143560;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #2B9348;
  outline-offset: 1px;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
/* Set default headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.2;
  color: #143560;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
p, ul, ol { font-size: 1rem; margin-bottom: 16px; }
strong { font-weight: bold; }

::-webkit-input-placeholder { color: #9AAFC9; }
::-moz-placeholder { color: #9AAFC9; }
:-ms-input-placeholder { color: #9AAFC9; }
::placeholder { color: #9AAFC9; }

/* --------------------------------
   LAYOUT PATTERNS & CONTAINERS
----------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* gaps are defined in children */
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(20, 53, 96, 0.04);
  padding: 32px 24px;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(20, 53, 96, 0.10);
}
.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;
  background: #E8EFF8;
  color: #143560;
  box-shadow: 0 2px 8px rgba(20,53,96,0.04);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  flex-direction: column;
  min-width: 200px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Features on Startseite */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature {
  flex: 1 1 220px;
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(20, 53, 96, 0.07);
  padding: 28px 20px;
  min-width: 240px;
  max-width: 330px;
  transition: box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.feature img {
  width: 32px;
  height: 32px;
}
.feature:hover {
  box-shadow: 0 6px 26px rgba(20, 53, 96, 0.12);
}

/* --------------------------------
   HEADER
----------------------------------- */
header {
  background: #FFFFFF;
  border-bottom: 1px solid #E8EFF8;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 0;
}
.logo img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #143560;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #2B9348;
}
.cta-btn {
  background: #143560;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 7px;
  padding: 12px 30px;
  margin-left: 24px;
  box-shadow: 0 2px 8px rgba(20,53,96,0.07);
  transition: background 0.16s, box-shadow 0.17s, color 0.21s;
  border: none;
  display: inline-block;
  cursor: pointer;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #2B9348;
  color: #fff;
  box-shadow: 0 4px 16px rgba(43,147,72,0.14);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #143560;
  background: transparent;
  border: none;
  margin-left: 16px;
  transition: color 0.15s;
}
.mobile-menu-toggle:focus {
  color: #2B9348;
}

/*----------------------------------
 MOBILE MENU (SLIDE-IN OVERLAY)
----------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #FFFFFF;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.44s cubic-bezier(0.58,0,.43,1);
  box-shadow: 0 0 28px rgba(20,53,96,0.09);
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 32px 0 0;
  font-size: 2rem;
  color: #143560;
  background: transparent;
  border: none;
  padding: 0;
  transition: color 0.16s;
  z-index: 1200;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #2B9348;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin: 60px 0 0 40px;
}
.mobile-nav a {
  color: #143560;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 12px 0;
  transition: color 0.22s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #2B9348;
}

/*-------------------------------------
 HERO (Landing)
-------------------------------------*/
.hero {
  background: #E8EFF8;
  padding: 64px 0 48px 0;
  margin-bottom: 40px;
  min-height: 260px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  font-size: 2.7rem;
  color: #143560;
  margin-bottom: 0;
}
.hero p {
  font-size: 1.25rem;
  color: #184076;
  margin-bottom: 16px;
}

/*------------------------------------
  TESTIMONIALS & CARDS
------------------------------------*/
.testimonials {
  background: #F8FAFC;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonial-card {
  font-size: 1.03rem;
  color: #143560;
  background: #E8EFF8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(20,53,96,0.06);
  margin-bottom: 24px;
  padding: 26px 22px 20px 22px;
  min-width: 180px;
  max-width: 500px;
}
.testimonial-card p {
  margin-bottom: 10px;
  color: #143560;
}
.testimonial-card span {
  color: #184076;
  font-size: 0.98rem;
}

/*------------------------------------
   FOOTER
------------------------------------*/
footer {
  background: #FFFFFF;
  border-top: 1px solid #E8EFF8;
  padding: 0 0 24px 0;
  font-size: 0.98rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 32px;
  align-items: flex-start;
  margin-top: 24px;
  margin-bottom: 40px;
  justify-content: space-between;
}
.footer-top .logo {
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #184076;
  opacity: 0.88;
  transition: color 0.16s;
  font-weight: 500;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #2B9348;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact img {
  width: 19px;
  margin-right: 7px;
  vertical-align: bottom;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a {
  opacity: 0.65;
  border-radius: 50%;
  transition: opacity 0.14s, box-shadow 0.13s;
}
.footer-social a:hover,
.footer-social a:focus {
  opacity: 1;
  box-shadow: 0 2px 8px rgba(20,53,96,0.10);
}
.footer-bottom {
  border-top: 1px solid #E8EFF8;
  margin-top: 18px;
  padding-top: 12px;
  color: #7B8EA8;
  text-align: center;
}

/*------------------------
     CONTACT AREAS
------------------------*/
.contact-details, .contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-details img, .contact-info img {
  width: 20px;
  margin-right: 7px;
  vertical-align: middle;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 18px 0 10px 0;
  background: #E8EFF8;
  border-radius: 12px;
  padding: 12px 18px;
  color: #143560;
  font-size: 1.1rem;
}

/*-------------------------
  BLOG ARTICLES TEASERS
-------------------------*/
.article-teaser {
  background: #F8FAFC;
  padding: 18px 18px 14px 18px;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(20,53,96,0.04);
  margin-bottom: 20px;
  transition: box-shadow 0.14s;
}
.article-teaser:hover {
  box-shadow: 0 4px 20px rgba(20,53,96,0.10);
}

/*-------------------------
  FAQ presentation
-------------------------*/
.faq .content-wrapper { gap: 24px; }
.faq .text-section h3 {
  font-size: 1.12rem;
  color: #143560;
  margin-top: 14px;
  margin-bottom: 7px;
}
.faq .text-section p {
  color: #184076;
}

/*-------------------------
  LEGAL, NEWSLETTER, ETC
-------------------------*/
.legal .text-section,
.newsletter .text-section {
  gap: 13px;
}
.confirmation .cta-btn {
  margin-top: 18px;
}

/*-------------------------
  BUTTONS/STATES/GLOBAL
-------------------------*/
button, .cta-btn {
  outline: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.13s, border-color 0.14s;
}

/*--------------------------------------
   COOKIE BANNER + COOKIE MODAL DESIGN
---------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #143560;
  color: #fff;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  box-shadow: 0 -2px 24px rgba(20,53,96,0.17);
  flex-wrap: wrap;
  transition: transform 0.34s cubic-bezier(0.62,.02,.36,1);
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner .cookie-message {
  font-size: 1.02rem;
  max-width: 680px;
  line-height: 1.5;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  border-radius: 6px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.99rem;
  min-width: 110px;
}
.cookie-banner .accept {
  background: #2B9348;
  color: #fff;
}
.cookie-banner .reject {
  background: #fff;
  color: #143560;
  border: 1.5px solid #9AAFC9;
}
.cookie-banner .settings {
  background: #E8EFF8;
  color: #184076;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  box-shadow: 0 3px 14px rgba(43,147,72,0.18);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 53, 96, 0.27);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.26s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 420px;
  width: 88vw;
  box-shadow: 0 8px 32px rgba(20,53,96,0.15);
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  animation: pop-in 0.44s cubic-bezier(.49,.2,.19,.98);
}
@keyframes pop-in {
  from { transform: scale(0.85) translateY(24px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal .modal-header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #143560;
  margin-bottom: 8px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #143560;
  cursor: pointer;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-modal .category-label {
  font-weight: 600;
}
.cookie-modal .category-toggle[type=checkbox] {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  accent-color: #2B9348;
  outline: none;
}
.cookie-modal .category-description {
  flex: 1;
  color: #184076;
  font-size: 0.98rem;
}
.cookie-modal .category-essential {
  opacity: 0.56;
}

/*--------------------
 RESPONSIVE DESIGN
---------------------*/
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .footer-top { flex-direction: column; gap: 24px; }
  .main-nav { gap: 14px; }
  .features-grid { gap: 18px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 12px; }
  .content-grid,
  .features-grid,
  .card-container,
  .footer-top {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .section { padding: 30px 6px; }
  .hero { padding: 46px 0 24px 0; }
  .card {
    padding: 18px 12px;
    min-width: unset;
  }
  .feature { padding: 18px 12px; max-width: 100%; }
  .testimonial-card { padding: 16px 10px 12px 10px; }
  .map-placeholder { font-size: 1rem; padding: 7px 9px; }
  /* Header changes */
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn { margin-left: 0; padding: 10px 16px; font-size: 1rem; }
  .footer-social { gap: 8px; }
  .footer-contact img, .contact-details img, .contact-info img {
    width: 16px;
    margin-right: 4px;
  }
  /* Flex-wrap for testimonials */
  .testimonial-card { min-width: 0; max-width: 100%; }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  .hero p { font-size: 1rem; }
  .cookie-banner { flex-direction: column; gap: 16px; padding: 16px 4px; }
  .cookie-banner .cookie-message { max-width: 98vw; }
}
/* Text-image sections responsive */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/*----------------------
   SCROLLBAR (SUBTLE)
-----------------------*/
::-webkit-scrollbar {
  width: 10px;
  background: #E8EFF8;
}
::-webkit-scrollbar-thumb {
  background: #dbe6f3;
  border-radius: 6px;
}

/*----------------------------
 ANIMATIONS & MICROINTERACTIONS
-----------------------------*/
.cta-btn, .main-nav a, .mobile-nav a, .footer-nav a {
  transition: color 0.13s, background 0.13s, box-shadow 0.13s;
}
.card, .feature, .article-teaser, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.13s;
}
.card:hover,
.feature:hover,
.article-teaser:hover,
.testimonial-card:hover {
  transform: translateY(-3px) scale(1.01);
}

/*-------------------------
  UTILITIES & ACCESSIBILITY
---------------------------*/
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/*---------------------------------------
  OVERRIDES & FINAL TOUCHES
---------------------------------------*/
ul, ol { margin-left: 20px; }
ul li, ol li { margin-bottom: 8px; }
h2 + ul, h2 + ol, h3 + ul, h3 + ol { margin-top: 0; margin-bottom: 0; }

/* Space between all sections/cards */
section:not(:last-child),
.card:not(:last-child),
.testimonial-card:not(:last-child) {
  margin-bottom: 24px;
}

/* Hide outline except keyboard users */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid #2B9348;
  outline-offset: 1px;
}

/*------------------------------
  END STYLES - FLEXBOX ONLY!
-------------------------------*/
