/* --------------------------------------------------
   FondsMosaik Smart Vergleich - style.css
   Vibrant, Energetic, Modern, and Responsive Design
---------------------------------------------------*/

/* 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7FAFE;
  color: #06213A;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ----------------------------------------------
   CUSTOM PROPERTIES
----------------------------------------------- */
:root {
  --color-primary: #06213A;
  --color-secondary: #5DA799;
  --color-accent: #FFFFFF;
  --color-electric1: #24D6FF;
  --color-electric2: #FF2A70;
  --color-electric3: #FCEE21;
  --color-card-bg: #FFFFFF;
  --color-hero-bg: #24D6FF;
  --color-footer-bg: #06213A;
  --color-input-bg: #F0F6FB;
  --shadow-subtle: 0 2px 8px 0 rgba(40,56,68,0.06);
  --shadow-md: 0 4px 16px 0 rgba(40,56,68,0.09);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.22s cubic-bezier(.45,1.24,.44,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* Fall-back font-face if webfonts not available */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800|Roboto:400,500,700&display=swap');

body {
  font-family: var(--font-body);
  background-color: #F7FAFE;
  min-height: 100vh;
}

/* --------------------------------------------------
    LAYOUT CONTAINERS
--------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px) scale(1.01);
}

.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;
  background: #FCEE21;
  color: #06213A;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 20px;
  font-size: 1.15rem;
  position: relative;
}
.testimonial-card blockquote {
  font-weight: 700;
  font-style: italic;
}
.testimonial-card cite {
  display: block;
  margin-top: 8px;
  font-size: 0.98em;
  font-style: normal;
  color: #5DA799;
  font-weight: 600;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-subtle);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-item img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 4px #FF2A70);
}
.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #06213A;
  letter-spacing: 0.02em;
}
.feature-item:hover {
  box-shadow: 0 6px 24px rgba(93, 167, 153, 0.13);
  transform: translateY(-6px) scale(1.03);
}

/* Tip Grid (for ratgeber) */
.tip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.tip-item {
  background: #24D6FF;
  color: #06213A;
  border-radius: var(--radius-sm);
  flex: 1 1 220px;
  min-width: 220px;
  box-shadow: var(--shadow-subtle);
  padding: 24px 18px;
  margin-bottom: 20px;
  font-weight: 500;
  transition: background 0.22s;
}
.tip-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.13rem;
  color: #FF2A70;
}
.tip-item:hover {
  background: #FCEE21;
  color: #06213A;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

/* FAQ LIST */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.faq-item {
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  box-shadow: var(--shadow-subtle);
}
.faq-item h2 {
  font-size: 1.22rem;
  color: #06213A;
  font-family: var(--font-display);
  margin-bottom: 8px;
}

/* --------------------------------------------------
    HERO SECTION
--------------------------------------------------- */
.hero {
  background: var(--color-hero-bg);
  color: #06213A;
  padding: 60px 0 40px 0;
  position: relative;
  margin-bottom: 60px;
  box-shadow: 0 8px 36px 0 rgba(36, 214, 255, 0.12);
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.hero .container {
  justify-content: center;
  align-items: flex-start;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 32px;
  max-width: 650px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.375rem;
  line-height: 1.18;
  color: #FF2A70;
  margin-bottom: 16px;
  text-shadow: 2px 4px #FCEE21;
  letter-spacing: 0.02em;
}
.hero p {
  font-size: 1.24rem;
  color: #06213A;
  font-weight: 500;
  margin-bottom: 16px;
}

/* --------------------------------------------------
    TYPOGRAPHY
--------------------------------------------------- */
h1, h2, h3, h4 {
  color: #06213A;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  line-height: 1.14;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.18rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p, li, input, blockquote {
  font-size: 1.01rem;
  font-family: var(--font-body);
  color: #254468;
}
strong { color: #06213A; font-weight: 700; }
em { color: #5DA799; }

/* --------------------------------------------------
   NAVIGATION & HEADER
--------------------------------------------------- */
header {
  width: 100%;
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 52;
  box-shadow: 0px 6px 24px 0 rgba(6,33,58,0.07);
  padding: 0 0 0 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 80px;
}
header a[href="/"] img {
  width: 175px;
  height: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  color: #06213A;
  padding: 7px 13px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: #24D6FF;
  color: #FF2A70;
}
.cta-btn {
  display: inline-block;
  background: #FF2A70;
  color: #FFFFFF;
  border: none;
  border-radius: 32px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  padding: 13px 38px;
  box-shadow: 0 2px 10px #FF2A7044;
  letter-spacing: 0.02em;
  margin-left: 8px;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition), transform 0.15s;
  position: relative;
}
.cta-btn:focus, .cta-btn:hover {
  background: #FCEE21;
  color: #06213A;
  box-shadow: 0 8px 20px #24D6FF55;
  transform: translateY(-2px) scale(1.03);
}

/* -------------------------
Mobile Menu Styles
-------------------------- */
.mobile-menu-toggle {
  display: none;
  background: #24D6FF;
  color: #06213A;
  border: none;
  border-radius: 40px;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 120;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #FF2A70;
  color: #FCEE21;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #06213A;
  color: #FFF;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 230;
  padding: 30px 0 0 0;
  transform: translateX(100vw);
  transition: transform .36s cubic-bezier(.79,.39,0,1.14);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FCEE21;
  font-size: 2.2rem;
  margin-left: 85vw;
  margin-bottom: 1.8rem;
  cursor: pointer;
  z-index: 240;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 40px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #FCEE21;
  padding: 12px 5px;
  border-radius: 10px;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #24D6FF;
  color: #FF2A70;
}

/* ----------------------------------------------
    FOOTER
----------------------------------------------- */
footer {
  background: var(--color-footer-bg);
  color: #FFF;
  padding: 48px 0 18px 0;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -6px 36px 0 rgba(6,33,58,0.13);
  margin-top: 48px;
}
footer .container {
  flex-direction: column;
  gap: 22px;
  justify-content: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 9px;
  justify-content: center;
}
.footer-nav a {
  color: #24D6FF;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #24D6FF;
  color: #06213A;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  font-size: 0.99rem;
  margin-bottom: 8px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5DA799;
}
.footer-contact img {
  width: 22px;
  height: 22px;
}
footer p {
  color: #FCEE21;
  font-size: 0.99rem;
  text-align: center;
  margin-top: 10px;
}

/* ----------------------------------------------
   BUTTONS & INTERACTIVES
----------------------------------------------- */
button, .cta-btn, input[type="submit"] {
  transition: var(--transition);
}
input[type="search"] {
  width: 100%;
  background: var(--color-input-bg);
  border: 2px solid #5DA799;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #06213A;
  outline: none;
  font-family: var(--font-body);
  box-shadow: 0 0 0 transparent;
  transition: border var(--transition), box-shadow var(--transition);
}
input[type="search"]:focus {
  border: 2px solid #24D6FF;
  box-shadow: 0 2px 18px #24D6FF55;
}

/* -------------------------
 CONTACT DETAILS & MAP
-------------------------- */
.contact-details {
  background: #5DA799;
  color: #FFF;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-subtle);
  padding: 20px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-details a { color: #FCEE21; word-break: break-all; }
.contact-details a:hover { color: #FF2A70; }
.map-snippet {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #24D6FF;
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  margin-bottom: 14px;
}
.map-snippet img { width: 56px; height: 56px; }
.map-snippet em { font-size: 0.99rem; color: #254468; }

/* ----------------------------------------------
   UTILITY
----------------------------------------------- */
ul {
  padding-left: 24px;
  margin-bottom: 8px;
}
ol {
  padding-left: 28px;
  margin-bottom: 8px;
}
ul li, ol li {
  padding-bottom: 5px;
  color: #254468;
  position: relative;
}
ul li::before {
  content: '\2022';
  color: #24D6FF;
  font-weight: bold;
  display: inline-block;
  width: 1.5em;
  margin-left: -1.5em;
  font-size: 1.25em;
  line-height: 1;
}
ol li {
  color: #254468;
}
blockquote {
  border-left: 4px solid #FF2A70;
  padding-left: 18px;
}

/* ----------------------------------------------
   RESPONSIVE DESIGN
----------------------------------------------- */
@media (max-width: 980px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .content-wrapper { gap: 18px; }
  .footer-contact { gap: 10px; }
}
@media (max-width: 768px) {
  .container { max-width: 99vw; }
  header .container {
    flex-direction: row;
    gap: 12px;
    min-height: 64px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
  }
  .cta-btn {
    padding: 12px 18px;
    font-size: 1.07rem;
  }
  .footer-nav { gap: 12px; }
  .footer-contact { gap: 8px; font-size: 0.93rem; }
  .hero { padding: 38px 0 24px; min-height: 190px; }
  .hero .container { padding-top: 0; }
  .card-container, .feature-grid, .content-grid, .tip-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card { font-size: 1rem; gap: 10px; padding: 16px; }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .cta-row { gap: 13px; margin-top: 16px; }
}
@media (max-width: 480px) {
  body { font-size: 0.97rem; }
  h1 { font-size: 1.44rem; }
  h2 { font-size: 1.19rem; }
  .hero h1 { font-size: 1.44rem; }
  .feature-item, .tip-item, .card { padding: 17px 10px; }
  .faq-item { padding: 13px 8px; }
  .card-container, .feature-grid, .content-grid, .tip-grid {
    gap: 8px;
  }
}

/* ----------------------------------------------
   COOKIE BANNER & MODAL
----------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FF2A70;
  color: #FFF;
  z-index: 3500;
  box-shadow: 0 -6px 24px rgba(255,42,112,0.15);
  padding: 20px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: var(--font-body);
  font-size: 1.08rem;
  transition: transform .3s cubic-bezier(.45,1.24,.44,1);
}
.cookie-banner.hide { transform: translateY(110%); }
.cookie-banner .cookie-text {
  color: #FFF;
  flex: 1 1 240px;
  max-width: 550px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  border: none;
  border-radius: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  padding: 10px 30px;
  box-shadow: 0 2px 8px #FCEE2177;
  background: #24D6FF;
  color: #06213A;
  margin-bottom: 0;
  transition: background var(--transition), color var(--transition);
}
.cookie-btn.accept {
  background: #5DA799;
  color: #FFF;
}
.cookie-btn.settings {
  background: #FCEE21;
  color: #06213A;
}
.cookie-btn.reject {
  background: #FF2A70;
  color: #FFF;
  border: 2px solid #FCEE21;
}
.cookie-btn:hover, .cookie-btn:focus { filter: brightness(1.1) saturate(1.25); }

@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; gap: 12px; padding: 20px 5px; font-size: 1rem; }
  .cookie-banner .cookie-actions { flex-direction: row; gap: 11px; justify-content: center; }
}

/* ----------------------
 COOKIE MODAL
----------------------- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(6,33,58,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #FFF;
  color: #06213A;
  border-radius: var(--radius);
  box-shadow: 0 8px 36px rgba(36, 214, 255,0.16);
  padding: 42px 30px 30px 30px;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cookiePop 0.52s cubic-bezier(.45,1.24,.44,1);
}
@keyframes cookiePop {
  0% { transform: translateY(40px) scale(0.96); opacity: 0; }
  80% { transform: translateY(-5px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: #24D6FF;
  color: #FF2A70;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  width: 34px; height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-content h2 {
  font-size: 1.29rem;
  color: #24D6FF;
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.cookie-modal-content .cookie-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #06213A;
}
.cookie-toggle {
  width: 46px;
  height: 25px;
  background: #F0F6FB;
  border: 1.5px solid #5DA799;
  border-radius: 17px;
  position: relative;
  cursor: pointer;
  transition: background .22s;
}
.cookie-toggle[aria-checked="true"] {
  background: #24D6FF;
  border: 1.5px solid #24D6FF;
}
.cookie-toggle .toggle-knob {
  display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 19px; height: 19px;
  background: #FFF;
  border-radius: 50%;
  transition: left .18s cubic-bezier(.45,1.24,.44,1), background .22s;
  box-shadow: 0 2px 6px #06213A22;
}
.cookie-toggle[aria-checked="true"] .toggle-knob {
  background: #5DA799;
  left: 24px;
}
.cookie-modal-footer {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
}

@media (max-width: 560px) {
  .cookie-modal-content { max-width: 97vw; padding: 22px 6vw 22px 6vw; }
}

/* -----------------------------------------------
   ACCESSIBILITY & FOCUS
------------------------------------------------ */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .cookie-modal-close:focus, input:focus {
  outline: 2px solid #FF2A70;
  outline-offset: 2px;
  z-index: 6;
}

/* -----------------------------------------------
   MISC.
------------------------------------------------ */
::-webkit-input-placeholder { color: #254468; }
::-moz-placeholder { color: #254468; }
:-ms-input-placeholder { color: #254468; }
::placeholder { color: #254468; }

hr {
  border: none;
  border-top: 2px solid #24D6FF;
  margin: 32px 0;
}

/* -----------------------------------------------
   REMOVE GRID AND ABSOLUTE FROM CONTENT!
------------------------------------------------ */
/* No display: grid, col-*, grid-template, break-inside, position: absolute (for content cards)! All layout = flexbox! */
