/*============
Infliartic Finanztipps - style.css 2024
Geometric Structured Design, Flexbox Only
============*/
/* 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #215273;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
ull, ol {
  margin-left: 24px;
  margin-bottom: 24px;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #215273;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 28px;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}
a {
  color: #215273;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #F4AB32;
  outline: none;
}
button, .primary-cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  background: #215273;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 36px;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  box-shadow: 0 2px 12px rgba(33,82,115,0.07);
  display: inline-block;
  letter-spacing: 1.2px;
  margin-top: 12px;
  margin-bottom: 8px;
}
.primary-cta {
  background: #F4AB32;
  color: #215273;
  border-radius: 12px;
  font-weight: bold;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
button:hover, .primary-cta:hover, 
button:focus, .primary-cta:focus {
  background: #215273;
  color: #F4AB32;
  box-shadow: 0 4px 18px rgba(33,82,115,0.15);
}
/*==========
Layout
==========*/
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
main {
  padding-top: 80px;
  padding-bottom: 40px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(33,82,115,0.06);
}
.content-wrapper {
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: #F6F6F6;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(33,82,115,0.06);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 270px;
  min-width: 270px;
  max-width: 100%;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.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: #F6F6F6;
  border-left: 8px solid #215273;
  border-radius: 16px;
  color: #215273;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 10px rgba(33,82,115,0.10);
  font-size: 1.15rem;
  transition: box-shadow 0.18s;
  min-width: 0;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(33,82,115,0.18);
  border-left-color: #F4AB32;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin: 20px 0 8px 0;
}
.feature-grid > div {
  background: #F6F6F6;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(33,82,115,0.06);
  padding: 30px 24px 24px 24px;
  flex: 1 1 250px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-top: 5px solid #F4AB32;
  transition: box-shadow 0.24s, border-top-color 0.22s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 28px rgba(33,82,115,0.14);
  border-top-color: #215273;
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  filter: grayscale(0.12) brightness(1);
}
.filter {
  background: #F4AB32;
  border-radius: 8px;
  color: #215273;
  padding: 3px 13px;
  font-size: 1rem;
  margin: 0 5px;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filter:hover {
  background: #215273;
  color: #fff;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/*==========
Header & Nav
==========*/
header {
  width: 100%;
  background: #F6F6F6;
  box-shadow: 0 2px 8px rgba(33,82,115,0.07);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  min-height: 62px;
  transition: box-shadow 0.20s;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px 12px 15px;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  color: #215273;
  padding: 6px 7px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
}
.main-nav > a:not(.primary-cta):hover {
  color: #F4AB32;
  background: #E7F0F5;
}
.main-nav img {
  width: 52px;
  height: auto;
  margin-right: 12px;
  vertical-align: middle;
}
/* Hamburger (mobile menu toggle) */
.mobile-menu-toggle {
  display: none;
  background: #F4AB32;
  color: #215273;
  font-size: 2.2rem;
  border: none;
  border-radius: 9px;
  width: 52px;
  height: 52px;
  position: absolute;
  top: 12px;
  right: 22px;
  z-index: 2002;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.15s;
  box-shadow: 0 1px 8px rgba(33,82,115,0.14);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #215273;
  color: #fff;
}
/* Mobile Menu Overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #F6F6F6;
  box-shadow: 0 2px 22px rgba(33,82,115,0.18);
  z-index: 3000;
  padding-top: 32px;
  padding-left: 0;
  transform: translateX(-120vw);
  transition: transform 0.46s cubic-bezier(0.76,0,0.24,1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #215273;
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin: 0 26px 18px 0;
  cursor: pointer;
  transition: color 0.22s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #F4AB32;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: #215273;
  padding: 10px 0;
  border-bottom: 1px solid #E7F0F5;
  transition: color 0.13s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover {
  color: #F4AB32;
}
/* Hide main nav/Show burger for mobile */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}
/*==========
Footer
==========*/
footer {
  background: #F6F6F6;
  color: #215273;
  margin-top: 52px;
  padding: 42px 0 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
  border-top: 4px solid #F4AB32;
}
.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.footer-nav a {
  color: #215273;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.footer-nav a:hover {
  background: #F4AB32;
  color: #fff;
}
.footer-contact {
  margin-bottom: 10px;
  line-height: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-contact img {
  width: 20px;
  margin-right: 6px;
  vertical-align: middle;
}
.footer-social {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
}
.footer-social img {
  width: 29px;
  height: 29px;
  border-radius: 6px;
  background: #E7F0F5;
  padding: 3px;
  transition: background 0.2s;
  cursor: pointer;
}
.footer-social img:hover {
  background: #F4AB32;
}
.copyright {
  font-size: 0.93rem;
  color: #648ab8;
  margin-top: 14px;
  text-align: center;
}
/*==========
Cookie Consent Banner
==========*/
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 4px solid #F4AB32;
  box-shadow: 0 -3px 22px rgba(33,82,115,0.10);
  z-index: 4900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 18px 18px 18px;
  transition: transform 0.3s cubic-bezier(0.76,0,0.24,1), opacity 0.2s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent.hide {
  opacity: 0;
  transform: translateY(180px);
  pointer-events: none;
}
.cookie-consent .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 7px;
}
.cookie-consent button {
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 9px;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  color: #fff;
  background: #215273;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-consent button.accept {
  background: #F4AB32;
  color: #215273;
}
.cookie-consent button.settings {
  background: #fff;
  color: #215273;
  border: 2px solid #215273;
}
.cookie-consent button.reject {
  background: #E95151;
  color: #fff;
}
.cookie-consent button:hover,
.cookie-consent button:focus {
  background: #215273;
  color: #F4AB32;
  outline: none;
}
/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 5000;
  background: rgba(33,82,115, 0.37);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s;
}
.cookie-modal .modal-content {
  background: #fff;
  color: #215273;
  padding: 38px 30px 30px 30px;
  border-radius: 18px;
  min-width: 310px;
  max-width: 95vw;
  box-shadow: 0 8px 48px rgba(33,82,115,0.22);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  animation: modal-pop-in 0.26s cubic-bezier(0.76,0,0.24,1);
}
@keyframes modal-pop-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  margin-top: 0;
  margin-bottom: 13px;
  font-size: 1.32rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 9px;
}
.cookie-modal .category-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  border-radius: 10px;
  background: #E7F0F5;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal .category-toggle:checked {
  background: #F4AB32;
}
.cookie-modal .category-toggle:before {
  content: "";
  display: block;
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(33,82,115,0.13);
  transition: transform 0.2s;
}
.cookie-modal .category-toggle:checked:before {
  transform: translateX(18px);
}
.cookie-modal .essential-label {
  font-weight: bold;
  color: #aaaaaa;
}
.cookie-modal .close-modal {
  background: none;
  color: #215273;
  border: none;
  font-size: 1.6rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: -15px;
  margin-top: -20px;
  transition: color 0.22s;
}
.cookie-modal .close-modal:hover {
  color: #F4AB32;
}
.cookie-modal .modal-actions {
  margin-top: 8px;
  display: flex;
  gap: 16px;
}
.cookie-modal .modal-actions button {
  padding: 10px 26px;
  border-radius: 8px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: #F4AB32;
  color: #215273;
}
.cookie-modal .modal-actions button.save {
  background: #215273;
  color: #fff;
}

/*==========
GENERAL CLASSES
==========*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.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;
}
/* Proper spacing for ul if followed by .feature-grid */
ul + .feature-grid {
  margin-top: 24px;
}
/*==========
RESPONSIVE
==========*/
@media (max-width: 1020px) {
  .container {
    max-width: 96vw;
    padding: 0 6vw;
  }
  .main-nav {
    gap: 23px;
    padding: 12px 10px 12px 7px;
  }
}
@media (max-width: 890px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .container { max-width: 99vw; }
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .section { padding: 34px 6vw; }
}
@media (max-width: 768px) {
  main { padding-top: 67px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.14rem; }
  .container { padding: 0 2vw; }
  .content-wrapper, .text-section, .card-content {
    gap: 13px;
    padding: 18px 0;
  }
  .text-image-section, .feature-grid {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 15px;
    padding: 16px;
    font-size: 1rem;
  }
  .footer-nav, .footer-contact, .footer-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .footer-nav {
    gap: 14px;
  }
  .copyright { font-size: 0.91rem; }
  .cookie-modal .modal-content {
    padding: 21px 6vw;
    min-width: 5vw;
  }
}
/* Mobile adjustments for action buttons */
@media (max-width: 520px) {
  .primary-cta { font-size: 0.97rem; padding: 12px 12vw; }
  .cookie-consent .cookie-actions { flex-direction: column; gap: 9px; }
}
@media (max-width: 380px) {
  .cookie-modal .modal-actions {
    flex-direction: column;
    gap: 8px;
  }
}
/*==========
UTILITIES
==========*/
::-webkit-input-placeholder { color: #9BB6C7; }
::-moz-placeholder { color: #9BB6C7; }
:-ms-input-placeholder { color: #9BB6C7; }
::placeholder { color: #9BB6C7; }

/* No overlapping (always left 20px+ between cards/sections) */
.card:not(:last-child), .testimonial-card:not(:last-child), .feature-grid > div:not(:last-child) {
  margin-right: 20px;
}
.card:last-child, .testimonial-card:last-child, .feature-grid > div:last-child {
  margin-right: 0;
}

/* Minor styling for focus accessibility */
button:focus, a:focus-visible {
  outline: 2px solid #F4AB32;
  outline-offset: 2px;
}

/* Angular geometric shapes for decoration (optional) */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -30px;
  left: 22px;
  width: 52px;
  height: 52px;
  background: #F4AB32;
  opacity: 0.13;
  border-radius: 18% 56% 31% 54%/54% 51% 37% 35%;
  z-index: 1;
  pointer-events: none;
}
.section {
  position: relative;
  z-index: 2;
}
/* Don't show the pseudo for mobile to keep clear */
@media (max-width: 700px){
  .section:before{display: none;}
}
/* Typography improvements for .feature-grid */
.feature-grid h3 {
  font-size: 1.17rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  color: #215273;
}
.feature-grid p {
  font-size: 0.99rem;
  color: #415b72;
}
/* Style icon lists nicely */
ul li img {
  margin-right: 9px;
  position: relative;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  top: 4px;
}
/*===============*/
/* End of CSS */
/*===============*/
