/* =====================================================================
   FinanzMechanik – Creative Artistic CSS
   ---------------------------------------------------------------------
   UX/Brand: Vibrant, creative, artistic, modern, visually engaging
   Flexbox only. No Grid or Columns. Mobile-first responsive.
   ===================================================================== */

/* Reset & Box-Sizing ----------------------------------------------- */
html,
body,
div,
section,
main,
header,
footer,
nav,
ul,
li,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
img,
blockquote,
figure,
button,
input,
select,
textarea {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
}
html { font-size: 16px; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F5F5;
  color: #223048;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #25A18E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1f7d70;
  text-decoration: underline;
}
ul { list-style: none; }
button,
input[type="button"],
input[type="submit"] {
  cursor: pointer;
  background: none;
  border: none;
}

/* Selection --------------------------------------------------------- */
::selection {
  background: #25A18E;
  color: #fff;
}

/* Typography -------------------------------------------------------- */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #223048;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 2px 4px 10px #25A18E22;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #25A18E;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #223048;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #25A18E;
}
p, ul li, ol li {
  font-size: 1rem;
  margin-bottom: 10px;
}
blockquote {
  border-left: 4px solid #25A18E;
  margin: 24px 0;
  padding: 12px 24px;
  background: #fff;
}
strong { font-weight: bold; }

/* Container --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* General Section, Card & Spacing Patterns -------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px #1f7d7022;
  position: relative;
  z-index: 1;
}
.charts img, .explanation img, .news-feed img, .tips img {
  width: 100px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #F5F5F5;
  border-radius: 16px;
  box-shadow: 0 2px 8px #22304811;
  padding: 24px;
  transition: transform 0.17s cubic-bezier(0.5,1,.89,1), box-shadow 0.17s;
}
.card:hover, .card:focus {
  transform: translateY(-4px) scale(1.02) rotate(-1deg);
  box-shadow: 0 6px 20px #25A18E33;
}
.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: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 36px #22304811;
  border-left: 6px solid #25A18E;
  transition: box-shadow 0.17s, transform 0.12s;
  color: #223048;
}
.testimonial-card:hover {
  transform: translateY(-5px) scale(1.01) rotate(1deg);
  box-shadow: 0 10px 32px #25A18E22;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  color: #223048;
}
.testimonial-card footer {
  font-weight: 700;
  color: #25A18E;
  font-size: 0.98rem;
  align-self: flex-end;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Hero Section ------------------------------------------------------ */
.hero {
  background: linear-gradient(98deg, #25A18E 0%, #F5F5F5 90%);
  padding: 80px 0 40px 0;
  clip-path: polygon(0 0,100% 0,100% 85%,0 100%);
  border-bottom-left-radius: 48px 32px;
  border-bottom-right-radius: 100px 60px;
  box-shadow: 0 8px 64px #25A18E33;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  color: #fff;
  font-size: 2.7rem;
  margin-bottom: 12px;
  text-shadow: 3px 8px 30px #22304855;
  letter-spacing: -1.5px;
}
.hero p {
  color: #f1faee;
  font-size: 1.3rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 26px;
  max-width: 600px;
}
.hero .cta-primary {
  margin-top: 12px;
}

/* Artistic Icons & List items --------------------------------------- */
ul li, .card ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 1rem;
  border-bottom: 1px dashed #25A18E22;
}
ul li:last-child { border-bottom: none; }
ul li img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 6px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #25A18E22;
  box-shadow: 0 1px 4px #22304817;
}

/* Call to Action Buttons -------------------------------------------- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  margin-top: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.16rem;
  background: #25A18E;
  color: #fff;
  font-weight: 700;
  border-radius: 28px 16px 32px 16px;
  box-shadow: 0 2px 16px #25A18E22;
  letter-spacing: 0.5px;
  border: 0;
  transition: background 0.22s,cubic-bezier(0.62,0.13,0.63,0.92), box-shadow 0.17s, transform 0.14s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #223048;
  box-shadow: 0 5px 26px #22304855;
  transform: scale(1.03) rotate(-2deg);
}

/* Artistic Section Headings ----------------------------------------- */
.section h2, .about-preview h2 {
  position: relative;
  z-index: 1;
}
.section h2::after, .about-preview h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 8px;
  background: #25A18E;
  border-radius: 6px;
  opacity: 0.7;
}

/* Navigation -------------------------------------------------------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 3px 18px #22304810;
  position: sticky;
  top: 0;
  z-index: 60;
}
header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 0 18px;
  min-height: 68px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #223048;
  padding: 7px 12px;
  margin: 8px 0;
  border-radius: 20px;
  position: relative;
  transition: background 0.2s, color 0.2s, box-shadow 0.17s;
}
header nav a.cta-primary {
  margin-left: auto;
  background: #25A18E;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.8px;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #25A18E11;
  color: #25A18E;
}
header nav a.cta-primary:hover, header nav a.cta-primary:focus {
  background: #223048;
  color: #fff;
}
header nav img {
  height: 36px;
  width: auto;
  margin-right: 10px;
  border-radius: 10px;
}

/* Mobile Nav Hamburger Button --------------------------------------- */
.mobile-menu-toggle {
  display: block;
  position: absolute;
  top: 15px;
  right: 24px;
  background: #25A18E;
  border: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  z-index: 101;
  box-shadow: 0 2px 16px #25A18E33;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #223048;
}
@media (min-width: 1100px) {
  .mobile-menu-toggle { display: none; }
}

/* Mobile Menu Overlay ---------------------------------------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: #223048ee;
  z-index: 110;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.51,1.26,.14,.91);
  box-shadow: 8px 0 32px #25A18E44;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #25A18E;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.8rem;
  position: absolute;
  right: 20px;
  top: 18px;
  z-index: 130;
  box-shadow: 0 3px 18px #25A18E22;
  transition: background 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #1f7d70;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 82px;
  width: 100%;
  padding: 0 34px;
  flex-wrap: nowrap;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.19rem;
  color: #fff;
  padding: 17px 0 9px 0;
  border-bottom: 1px dashed #25A18E66;
  background: none;
  transition: color 0.2s, background 0.22s;
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #25A18E;
  background: #f5f5f51c;
  border-radius: 7px;
  padding-left: 10px;
}
@media (min-width: 1100px) {
  .mobile-menu { display: none !important; }
}

/* Hide Desktop Nav on Mobile, Show Hamburger ------------------------ */
@media (max-width: 1100px) {
  header nav {
    display: none;
  }
}

/* Main Sections: Creative/Artistic Accents -------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 2px 28px #22304810;
}
.about-preview, .about, .team, .contact, .faq, .features, .news-feed, .tips, .resources, .confirmation, .trust {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 2px 38px #2230480a;
}
.trust {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  background: #25A18E11;
  border-left: 6px solid #25A18E;
  color: #223048;
}
.trust img {
  width: 48px;
  height: 48px;
  margin-right: 12px;
}
.trust span {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 600;
}
.contact-info {
  margin-top: 12px;
  font-size: 0.98rem;
  background: #25A18E09;
  border-radius: 10px;
  padding: 10px 18px;
  line-height: 1.7;
}
.contact-info img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 4px;
}

/* News Feed Filter -------------------------------------------------- */
.news-feed label {
  font-size: 1rem;
  font-weight: 700;
  margin-right: 12px;
  color: #25A18E;
  font-family: 'Montserrat', Arial, sans-serif;
}
.news-feed select {
  font-size: 1rem;
  padding: 7px 20px 7px 7px;
  border-radius: 8px;
  border: 1px solid #25A18E66;
  margin-bottom: 18px;
  color: #223048;
  background: #fff;
}
.news-feed ul {
  margin: 18px 0 24px 0;
  padding-left: 10px;
}
.news-feed ul li {
  margin-bottom: 14px;
  font-size: 1.09rem;
  background: #F5F5F5;
  padding: 12px 20px;
  border-radius: 10px;
  border-left: 4px solid #25A18E99;
}

/* FAQ Accordions (simple) ------------------------------------------- */
.faq h3 {
  margin-top: 18px;
  font-size: 1.17rem;
  color: #25A18E;
  cursor: pointer;
}
.faq p {
  margin-bottom: 18px;
}

/* Artistic Features ------------------------------------------------- */
.features .content-wrapper > div {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 14px;
}
.features h3 {
  color: #223048;
  margin-bottom: 6px;
}
.features ul {
  margin-bottom: 16px;
  padding-left: 16px;
}
.features ul li {
  border: none;
  background: #F5F5F5;
  border-radius: 9px;
  padding: 9px 18px;
}

/* Map + Artistic Cards --------------------------------------------- */
.map img {
  width: 100%;
  height: auto;
  max-width: 420px;
  margin: 24px auto;
  border-radius: 16px;
  background: #25A18E11;
  box-shadow: 0 2px 18px #25A18E22;
}

/* Footer ------------------------------------------------------------ */
footer {
  width: 100%;
  background: #223048;
  color: #fff;
  padding: 48px 0 30px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
}
footer nav a {
  color: #25A18E;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  background: none;
  border-radius: 8px;
  padding: 2px 7px;
  transition: color 0.16s, background 0.16s;
}
footer nav a:hover {
  color: #fff;
  background: #25A18E44;
}
footer p {
  font-size: 1.01rem;
  line-height: 1.5;
  text-align: center;
}
footer img {
  height: 30px;
  vertical-align: middle;
  margin-right: 7px;
}
footer .contact-info {
  background: #fff1;
  color: #F5F5F5;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.96rem;
}
footer .contact-info img {
  filter: grayscale(0) invert(1) brightness(1.5);
}

/* Cookie Consent Banner --------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #223048ea;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 8888;
  box-shadow: 0 -3px 22px #22304899;
  padding: 22px 12px 16px 12px;
  font-size: 1.09rem;
  align-items: center;
  transition: transform 0.38s cubic-bezier(.51,1.26,.14,.91), opacity 0.19s;
}
.cookie-banner.hidden { display: none; }
.cookie-banner-content {
  max-width: 650px;
  width: 100%;
  text-align: center;
  margin-bottom: 12px;
  font-size: 1.03rem;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
}
.cookie-banner button {
  padding: 10px 26px;
  border-radius: 18px;
  border: none;
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0 0;
  transition: background 0.16s, color 0.16s;
  margin-bottom: 0;
}
.cookie-banner .accept {
  background: #25A18E;
  color: #fff;
}
.cookie-banner .accept:hover {
  background: #1f7d70;
}
.cookie-banner .reject {
  background: #fff;
  color: #223048;
}
.cookie-banner .reject:hover {
  background: #25A18E66;
  color: #fff;
}
.cookie-banner .settings {
  background: none;
  color: #25A18E;
  text-decoration: underline;
}
.cookie-banner .settings:hover {
  color: #fff;
  background: #25A18E55;
}

/* Cookie Preferences Modal ---------------------------------------- */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: #223048dd;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn .19s;
}
@keyframes fadeIn {from {opacity:.3;} to {opacity:1;}}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-dialog {
  background: #fff;
  color: #223048;
  border-radius: 24px 8px 24px 8px;
  max-width: 440px;
  min-width: 260px;
  padding: 42px 28px 28px 28px;
  position: relative;
  box-shadow: 0 10px 60px #25A18E22;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-close {
  position: absolute;
  right: 15px;
  top: 13px;
  background: #25A18E;
  color: #fff;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  transition: background 0.15s;
}
.cookie-modal-close:hover {
  background: #223048;
}
.cookie-modal h3 {
  color: #25A18E;
  margin-top: 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #25A18E22;
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category label {
  font-weight: 600;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #25A18E;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal .cookie-actions button {
  padding: 9px 22px;
  border-radius: 15px;
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.cookie-modal .cookie-actions .accept {
  background: #25A18E;
  color: #fff;
}
.cookie-modal .cookie-actions .accept:hover {
  background: #1f7d70;
}
.cookie-modal .cookie-actions .reject {
  background: #fff;
  color: #223048;
  border: 1px solid #25A18E33;
}
.cookie-modal .cookie-actions .reject:hover {
  background: #25A18E22;
  color: #25A18E;
}

/* Responsive: Mobile-first, then tablet/desktop --------------------- */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { max-width: 98vw; padding: 0 6px; }
  .content-wrapper, .about-preview .content-wrapper, .about .content-wrapper,
  .team .content-wrapper, .section .content-wrapper {
    gap: 16px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card, .testimonial-card, section, .about-preview, .about, .team, .contact, .faq, .features, .news-feed, .tips, .resources, .confirmation, .trust {
    padding: 22px 7px;
    border-radius: 13px;
    margin-bottom: 38px;
  }
  .hero {
    padding: 60px 0 26px 0;
    border-bottom-left-radius: 33px 16px;
    border-bottom-right-radius: 50px 25px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .contact-info {
    padding: 10px 9px;
    font-size: 0.96rem;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 1100px;
    padding: 0 18px;
  }
  .content-wrapper {
    gap: 24px;
  }
  .text-image-section {
    flex-direction: row;
    gap: 30px;
    align-items: center;
  }
  .card-container, .content-grid {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
  }
  .card {
    min-width: 280px;
    max-width: 360px;
  }
}
/* Hide cookie banner after consent */
.cookie-banner.hidden { display: none; }

/* Subtle Animation for Card/Section --------------------------------- */
@media (hover: hover) {
  .card:not(:active):hover,
  .testimonial-card:not(:active):hover,
  .cta-primary:not(:active):hover {
    filter: brightness(1.04) saturate(1.14) hue-rotate(-4deg);
  }
}

/* Artistic Accents (paint splashes, shape shadows, etc) ------------ */
.section, .card, .testimonial-card {
  position: relative;
  overflow: visible;
}
.section::before,
.card::before,
.testimonial-card::before {
  content: '';
  position: absolute;
  left: -18px; top: -18px;
  width: 38px;
  height: 38px;
  background: #25A18E44;
  border-radius: 70% 49% 40% 68%;
  z-index: 0;
  filter: blur(14px);
  opacity: 0.23;
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute;
  right: -10px; bottom: -12px;
  width: 32px;
  height: 25px;
  background: #22304822;
  border-radius: 59% 56% 62% 80%;
  filter: blur(9px);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
/* Only decor, never for real layout! */

/* Inputs/Forms ------------------------------------------------------ */
input, select, textarea {
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #25A18E33;
  padding: 10px 14px;
  transition: border 0.16s;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid #25A18E;
}

/* Miscellaneous ----------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px; background: #F5F5F5;
}
::-webkit-scrollbar-thumb {
  background: #25A18E88; border-radius: 6px;
}

/* Responsive Font Sizes & Spacing ---------------------------------- */
@media (max-width:480px) {
  h1, .hero h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }
  .cta-primary, .cookie-banner button, .cookie-modal .cookie-actions button { font-size: 0.9rem; }
}

/* Ensure min spacing between all cards/sections --------------------- */
section + section,
.section + .section,
.card-container > *,
.content-grid > *,
.card + .card,
.testimonial-card + .testimonial-card { margin-top: 20px !important; }

/* Animation for mobile menu ----------------------------------------- */
@media (max-width: 1100px) {
  .mobile-menu {
    transition: transform 0.33s cubic-bezier(.62,1.13,.22,.85);
  }
}

/* Artistic Fontface (Google Fonts Example) -------------------------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat'),local('Montserrat-Bold'),url('https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm45xW5rygbi49c.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'),local('Roboto-Regular'),url('https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxM.woff2') format('woff2');
}

/* Hide elements visually but not for screen readers --------------- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap !important;
  border: 0 !important;
}
