/* ---------------- 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  background: #F8F7F2;
  color: #22364A;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* ---------------- Font Import (Google Fonts) ----------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  background: #F8F7F2;
  color: #22364A;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #22364A;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  margin-top: 8px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  margin-top: 8px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.15rem;
}
.subheadline {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  color: #5EA0C7;
  font-weight: 600;
  margin-bottom: 24px;
}

strong {
  font-weight: 700;
  color: #22364A;
}

/* ---------------- Layout Containers ----------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(34,54,74,0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

ul, ol {
  margin-left: 18px;
  margin-bottom: 0;
  padding-left: 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #22364A;
  list-style-position: outside;
}
ul {
  list-style-type: disc;
}
ol {
  list-style-type: decimal;
}

/* Feature Grid (Index) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.feature-grid > li {
  background: #F8F7F2;
  border: 1px solid #D9E2EC;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(34,54,74,0.07);
  flex: 1 1 240px;
  min-width: 230px;
  max-width: 320px;
  padding: 28px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
  position: relative;
  margin-bottom: 20px;
}
.feature-grid > li img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  filter: grayscale(0.3) brightness(0.92);
}
.feature-grid > li h3 {
  font-size: 1.20rem;
  color: #22364A;
  margin-bottom: 8px;
}
.feature-grid > li p {
  color: #22364A;
  font-size: 1rem;
  margin-bottom: 8px;
}
.price {
  color: #5EA0C7;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 6px;
}
.feature-grid > li:hover, .feature-grid > li:focus {
  border-color: #5EA0C7;
  box-shadow: 0 8px 28px 0 rgba(94,160,199,0.14), 0 2px 12px rgba(34,54,74,0.07);
  transform: translateY(-4px) scale(1.0125);
}

/* --------------- Buttons & CTAs ----------------- */
.cta {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  padding: 12px 32px;
  border-radius: 28px;
  border: none;
  background: #22364A;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(34,54,74,0.08);
  text-align: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.cta.primary {
  background: #22364A;
  color: #fff;
}
.cta.secondary {
  background: #5EA0C7;
  color: #fff;
}
.cta:focus,
.cta:hover {
  background: #5EA0C7;
  color: #fff;
  box-shadow: 0 4px 12px rgba(34,54,74,0.13);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}

/* -------------- Header & Navigation ---------------- */
header {
  background: #fff;
  border-bottom: 1px solid #D9E2EC;
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  min-height: 66px;
}
.main-nav {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 12px 20px;
  position: relative;
  flex-wrap: wrap;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22364A;
  font-size: 1.07rem;
  font-weight: 500;
  margin-right: 2px;
  padding: 8px 0 8px 0;
  transition: color 0.16s;
  border-radius: 4px;
  position: relative;
}
.main-nav > a.cta {
  margin-left: auto;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding: 10px 26px;
  background: #5EA0C7;
  color: #fff;
}
.main-nav > a:hover, .main-nav > a:focus {
  color: #5EA0C7;
  background: #EAF2F8;
  outline: none;
}
.main-nav img {
  height: 44px;
  margin-right: 22px;
  vertical-align: middle;
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: #22364A;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 6px;
  padding: 6px 18px 6px 11px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 10px;
  transition: background 0.2s;
  z-index: 101;
  box-shadow: 0 1px 6px rgba(34,54,74,0.07);
  height: 48px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #5EA0C7;
  color: #fff;
  outline: none;
}

/* Mobile Overlay Menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #22364A;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 100;
  padding: 0 0 0 0;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.68,-0.55,.27,1.55);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: #fff;
  font-size: 2.3rem;
  border: none;
  margin: 25px 30px 4px 0;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 102;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #5EA0C7;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
  width: 100%;
  padding-left: 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 10px 0;
  transition: color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #5EA0C7;
}

/* ------------- Footer ------------- */
footer {
  background: #22364A;
  color: #fff;
  width: 100%;
  padding: 36px 0 22px 0;
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.86;
  transition: color 0.16s, opacity 0.16s;
  text-decoration: underline;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #5EA0C7;
  opacity: 1;
  outline: none;
}
.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}
.footer-brand img {
  height: 38px;
  opacity: 0.90;
}

/* ------------- Testimonial Cards ------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #E7EFF5;
  box-shadow: 0 2px 14px rgba(34,54,74,0.07);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
  max-width: 630px;
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.11rem;
  color: #22364A;
  line-height: 1.7;
  quotes: "\201C" "\201D";
  margin-right: 18px;
  flex: 1;
}
.testimonial-card blockquote:before, .testimonial-card blockquote:after {
  color: #5EA0C7;
  font-size: 1.7rem;
  vertical-align: middle;
}
.testimonial-card blockquote:before {
  content: open-quote;
  margin-right: 5px;
}
.testimonial-card blockquote:after {
  content: close-quote;
  margin-left: 5px;
}
.testimonial-meta {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #5EA0C7;
  font-weight: 700;
  text-align: right;
  min-width: 90px;
}
.testimonial-card:hover,
.testimonial-card:focus {
  border-color: #5EA0C7;
  box-shadow: 0 8px 34px 0 rgba(94,160,199,0.13), 0 3px 16px rgba(34,54,74,0.07);
}

/* ----------- Card-container, content-grid ----------- */
.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(34,54,74,0.07);
  border: 1px solid #D9E2EC;
  margin-bottom: 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding: 32px 24px;
}

/* ------------- Feature List ------------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------- Text-Image Section for future use ----------- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
/* ------------- Generic Spacing ------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

/* ------------- Forms and Inputs (Kontakt) ------------- */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #D9E2EC;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: #fff;
  color: #22364A;
  outline: none;
  transition: border .16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #5EA0C7;
  box-shadow: 0 2px 8px #EAF2F8;
}
button {
  cursor: pointer;
}

label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 7px;
  color: #22364A;
  display: block;
}

/* ------------- Link Styles ------------- */
a {
  color: #22364A;
  transition: color 0.16s, text-decoration 0.16s;
}
a:hover, a:focus {
  color: #5EA0C7;
  text-decoration: underline;
  outline: none;
}

/* ------------- Tables and Simple List Reset ----------- */
table { border-collapse: collapse; }
th, td { padding: 8px 12px; }

/* ------------- Placeholder ------------- */
::placeholder {
  color: #A2BAC5;
  opacity: 1;
}

/* ------------- Cookie Consent Banner ------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #22364A;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 10px 18px 10px;
  box-shadow: 0 -3px 14px rgba(34,54,74,0.09);
  z-index: 9999;
  font-size: 1rem;
  transition: transform 0.24s cubic-bezier(.77,0,.175,1);
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-text {
  line-height: 1.6;
  color: #fff;
  text-align: center;
}
.cookie-banner-buttons {
  display: flex;
  gap: 18px;
  margin-top: 6px;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 25px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  background: #fff;
  color: #22364A;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(34,54,74,0.09);
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: #5EA0C7;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #22364A;
}
.cookie-btn.settings {
  background: none;
  color: #5EA0C7;
  border: 1.5px solid #5EA0C7;
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: #5EA0C7;
  color: #fff;
  outline: none;
  box-shadow: 0 3px 12px #A7D6F4;
}
.cookie-btn.settings:focus,
.cookie-btn.settings:hover {
  background: #22364A;
  color: #fff;
  border-color: #22364A;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 95vw;
  max-width: 410px;
  background: #fff;
  color: #22364A;
  border-radius: 18px;
  box-shadow: 0 10px 54px 0 rgba(34,54,74,0.33);
  transform: translate(-50%, 80%);
  opacity: 0;
  pointer-events: none;
  z-index: 10001;
  padding: 32px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.36s cubic-bezier(.77,0,.175,1), opacity 0.26s;
}
.cookie-modal.open {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: all;
}
.cookie-modal h2 {
  font-size: 1.45rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22364A;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 16px; top: 12px;
  background: none;
  border: none;
  color: #22364A;
  font-size: 1.40rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s;
}
.cookie-modal .cookie-modal-close:focus, .cookie-modal .cookie-modal-close:hover {
  color: #5EA0C7;
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 8px 0;
}
.cookie-modal .category-label {
  font-size: 1.05rem;
  font-family: 'Open Sans';
  font-weight: 600;
}
.cookie-modal .cookie-toggle {
  width: 46px;
  height: 24px;
  border-radius: 16px;
  background: #D9E2EC;
  position: relative;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: background .2s;
}
.cookie-modal .cookie-toggle:checked {
  background: #5EA0C7;
}
.cookie-modal .cookie-toggle::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(34,54,74,0.07);
  transition: left .2s;
}
.cookie-modal .cookie-toggle:checked::before {
  left: 25px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* Block scroll when modal open */
body.cookie-modal-open {
  overflow: hidden;
}

/* ------------ Responsive Design – Mobile First ------------- */
@media (max-width: 1024px) {
  .container { max-width: 95vw; }
  .feature-grid > li { max-width: 44vw; }
}
@media (max-width: 768px) {
  header {
    min-height: 54px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    max-width: 100vw;
    padding: 0 6vw;
  }
  .section,
  section {
    margin-bottom: 38px;
    padding: 27px 0;
  }
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > li {
    min-width: 95vw;
    max-width: 98vw;
    align-items: flex-start;
    padding: 18px 13px 17px 13px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: 99vw;
    padding: 17px 13px 11px 13px;
  }
  .footer-nav {
    gap: 12px;
    flex-direction: column;
    align-items: center;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 530px) {
  h1 { font-size: 1.52rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.02rem; }
  .cta, .cta.primary, .cta.secondary {
    font-size: 0.99rem;
    padding: 8px 14px;
  }
  .testimonial-meta {
    font-size: 0.97rem;
    min-width: 66px;
  }
}

/* ------------- Animations & Transitions ------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section, .testimonial-card, .feature-grid > li, .cookie-banner, .cookie-modal {
  animation: fadeInUp 0.66s cubic-bezier(.1,.8,.35,1) 0.10s both;
}

/* --------------- Z-Index Management --------------- */
/* Ensure overlays (menus, modals, banners) always above content */
header { z-index: 90; }
.mobile-menu { z-index: 100; }
.cookie-banner { z-index: 9999; }
.cookie-modal { z-index: 10001; }

/* ------------ Custom Scrollbar for Desktop ----------- */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 10px;
    background: #E7EFF5;
  }
  ::-webkit-scrollbar-thumb {
    background: #C6DAE8;
    border-radius: 7px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #5EA0C7;
  }
}

/* -------------- Utility Classes -------------- */
.hide { display: none !important; }
.flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }
.align-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.gap-20 { gap: 20px !important; }
.m-b-20 { margin-bottom: 20px !important; }

/* -------- Color Accessible Inline Link for Testimonials --------- */
.testimonial-card a {
  color: #5EA0C7;
  text-decoration: underline;
}
.testimonial-card a:hover, .testimonial-card a:focus {
  color: #22364A;
}

/* --------------- End of CSS --------------- */
