/* =========================
   CSS RESET & NORMALIZATION
============================*/
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body, html {
  width: 100%;
  min-height: 100vh;
  background: #fff;
  color: #191919;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #164160;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #164160;
  outline-offset: 2px;
  color: #191919;
}
a:hover {
  color: #39A298;
}
ul, ol {
  list-style: inside disc;
  margin: 0 0 1.5em 1em;
  padding: 0;
}
ul ul, ol ol {
  margin-bottom: 0;
}
strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
@media (max-width: 600px) {
  section {
    padding: 32px 8px;
    margin-bottom: 36px;
  }
}

/* ================
  TYPOGRAPHY
==================*/
h1, h2, h3, h4, h5, h6 {
  color: #111;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  line-height: 1.18;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2.1rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #25292e;
}
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.1rem;
  }
}

/* =======================
   CONTAINER & LAYOUT
=========================*/
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* ===============
   HEADER & NAV
================*/
header {
  background: #fff;
  border-bottom: 1.5px solid #e3e3e3;
  position: sticky;
  top:0;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 78px;
}
header img[alt="FinanzWeitblick"] {
  max-height: 38px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #111;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}


.main-nav a:not(.cta-btn):after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: #164160;
  transition: width 0.2s;
  position: absolute;
  bottom: -4px; left:0;
}
.main-nav a:hover:not(.cta-btn):after,
.main-nav a:focus:not(.cta-btn):after {
  width: 80%;
}
.main-nav a.cta-btn {
  margin-left: 12px;
}

/* Mobile nav burger */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #111;
  cursor: pointer;
  display: none;
  z-index: 101;
  padding: 8px 10px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #ededed;
  border-radius: 7px;
}

@media (max-width: 1028px) {
  .main-nav {
    gap: 16px;
  }
  header .container {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  header .container {
    height: 64px;
    gap: 0;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===========================
   MOBILE MENU OVERLAY
=============================*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 10px 24px rgba(30,30,30,0.08);
  transform: translateX(-100%);
  transition: transform 0.42s cubic-bezier(.77,0,.18,1);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 0 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 2rem;
  border: none;
  background: none;
  color: #191919;
  cursor: pointer;
  z-index: 1011;
  padding: 7px 11px;
  transition: background 0.19s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #ededed;
  border-radius: 7px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 60px;
}
.mobile-nav a {
  font-size: 1.17rem;
  color: #191919;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 15px 2px 12px 0px;
  transition: color 0.19s, background 0.17s;
  border-radius: 8px;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: #164160;
  background: #ededed;
}
@media (min-width: 900px) {
  .mobile-menu, .mobile-menu-close {
    display: none !important;
  }
}
/* ===============
   HERO SECTIONS
================*/
section > .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero, .hero-section {
  background: #fff;
  padding-top: 55px;
  padding-bottom: 55px;
  border-radius: 0 0 30px 30px;
  box-shadow:  0 4px 54px 0 rgba(20,20,20,0.06);
}

/* ==================
   BUTTONS (CTA)
====================*/
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 12px 28px;
  background: #191919;
  color: #fff!important;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.22s, filter 0.14s, box-shadow 0.25s;
  box-shadow: 0 2px 20px rgba(30,30,30,0.09);
  text-shadow: 0 1px 0 #0001;
  margin-top: 8px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #164160;
  color: #fff;
  filter: brightness(1.04);
  box-shadow: 0 2px 28px rgba(22,60,96,0.12);
  outline: none;
}

/* ====================
   CARDS & FEATURES
======================*/
.feature-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div, .card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 32px 22px 22px 22px;
  box-shadow: 0 2px 22px rgba(30,30,30,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 220px;
  position: relative;
  transition: box-shadow 0.20s, border 0.2s, background 0.2s;
  border: 1px solid #e3e6ea;
}
.feature-grid > div:hover, .card:hover {
  box-shadow: 0 6px 28px rgba(30,30,30,0.12);
  border-color: #c8cbd1;
  background: #f1f2ee;
}
.feature-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  filter: grayscale(0.8) brightness(0.91);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px) {
  .feature-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

/* ================
   TESTIMONIALS
==================*/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 18px 0 rgba(30,30,30,0.08);
  border: 1px solid #e3e3e3;
  margin-bottom: 20px;
}
.testimonial-card strong {
  display: block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #164160;
  font-size: 1rem;
  margin-top: 8px;
}
.testimonial-card span {
  color: #191919;
  font-size: 1.1rem;
  margin-top: 0.5em;
  letter-spacing: 0.1em;
}
.testimonial-card p {
  color: #0f0f10;
  font-size: 1.1rem;
}
@media (max-width: 700px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }
}

/* ================
   FAQ STYLES
==================*/
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 26px;
}
.faq-item {
  background: #f7f7f7;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 22px 22px 12px 22px;
  min-width: 220px;
  flex: 1 1 280px;
  transition: box-shadow 0.20s;
  margin-bottom: 20px;
}
.faq-item:hover {
  box-shadow: 0 4px 24px 0 rgba(22,65,96,0.06);
}
.faq-item h3 {
  font-size: 1.11rem;
  color: #191919;
  margin-bottom: 10px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.faq-item p {
  font-size: 0.98rem;
  color: #383939;
}

/* ================
   TEXT-IMAGE SECTIONS
==================*/
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ================
   CONTENT GRID
==================*/
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ================
   FORM / ADDRESS
==================*/
address {
  font-style: normal;
  font-size: 1rem;
  color: #222;
  line-height: 1.7;
  margin-bottom: 18px;
}

/* ========================
   FOOTER
==========================*/
footer {
  background: #191919;
  color: #ededed;
  padding-top: 40px;
  padding-bottom: 14px;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: row
}
footer img[alt="FinanzWeitblick"] {
  filter: grayscale(1) brightness(1.4);
  margin-bottom: 10px;
  max-width: 120px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 110px;
}
.footer-menu a {
  color: #ededed;
  font-size: 0.97rem;
  transition: color 0.16s;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #39A298;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a {
  background: #111;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex;
  align-items: center; justify-content: center;
  transition: background 0.17s;
}
.footer-social a:hover {
  background: #39A298;
}
.footer-social img { width: 22px; height: 22px; filter: grayscale(1) brightness(1.3); }

.small-contacts {
  text-align: left;
  margin-top: 18px;
  color: #bdbdbd;
  font-size: 0.88rem;
}
@media (max-width: 800px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}

/* =======================
   COOKIE CONSENT BANNER
========================*/
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #191919ee;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 36px 18px 22px;
  z-index: 2150;
  font-size: 1rem;
  box-shadow: 0 -2px 22px 0 rgba(18,18,18, 0.09);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.32s, visibility 0.32s;
}
.cookie-consent-banner.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.cookie-consent-banner span {
  font-size: 1rem;
}
.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 18px;
  border: none;
  border-radius: 20px;
  background: #164160;
  color: #fff;
  cursor: pointer;
  transition: background 0.19s, color 0.14s, box-shadow 0.20s;
  box-shadow: 0 2px 10px rgba(22,65,96,0.09);
}
.cookie-btn.reject {
  background: #e3e3e3;
  color: #191919;
}
.cookie-btn.settings {
  background: #fff;
  color: #164160;
  border: 1px solid #164160;
  padding: 9px 16px;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #39A298;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #d0d0d0;
  color: #191919;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #164160;
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 23px 12px 12px 12px;
    gap: 12px;
    font-size: 0.98rem;
  }
  .cookie-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* Cookie Modal Styles */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,30,30,0.70);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #191919;
  border-radius: 18px;
  box-shadow: 0 10px 48px 0 rgba(48,48,50, 0.21);
  width: 95vw;
  max-width: 380px;
  padding: 38px 28px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 1.3rem;
  background: none;
  border: none;
  color: #191919;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.11s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #f6f6f6;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #164160;
  width: 18px;
  height: 18px;
}
.cookie-category .category-label {
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #191919;
}
.cookie-category .always-on {
  color: #999;
  font-size: 0.95rem;
  margin-left: 4px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
/* =======================
   MISC ELEMENTS
========================*/
hr {
  border: none;
  border-top: 1px solid #d5d8db;
  margin: 32px 0;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  font-size: 1rem;
}
th, td {
  border: 1px solid #343a40;
  padding: 10px 14px;
}
th {
  background: #191919;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
/* =========================
   RESPONSIVE MEDIA QUERIES
===========================*/
@media (max-width: 700px) {
  .container {
    max-width: 99vw;
    padding-left: 4px;
    padding-right: 4px;
  }
  .footer-social {
    gap: 9px;
  }
  .feature-grid > div, .card {
    padding: 22px 10px 12px 10px;
  }
}

/* ========================
   MONOCHROME + SOPHISTICATION
=============================*/
body, section, .feature-grid > div, .card, .testimonial-card, .faq-item, .cookie-modal {
  background: #fff;
}
h1, h2, h3, h4, h5, h6, .cta-btn, .cookie-btn {
  color: #191919;
}
hr {
  border-color: #c9c9c9;
}
section {
  box-shadow: 0 1px 16px 0 rgba(20,20,20,0.04);
}

/* ================
   MICRO-INTERACTIONS
==================*/
.cta-btn, .cookie-btn {
  transition: box-shadow 0.21s, background 0.18s, color 0.14s, transform 0.14s;
}
.cta-btn:hover, .cta-btn:focus, .cookie-btn:active {
  box-shadow: 0 4px 22px 0 rgba(30,80,80,0.12);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid > div, .card, .testimonial-card, .faq-item {
  transition: box-shadow 0.23s;
}

/* Focus ring style */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #164160;
  outline-offset: 2px;
}

/* ===== SCROLLBAR (Chrome, Edge) ===== */
::-webkit-scrollbar {
  width: 10px;
  background: #ededed;
}
::-webkit-scrollbar-thumb {
  background: #c0c0c4;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #164160;
}

/* ===== VISUAL HIERARCHY/WHITESPACE ===== */
section > .container, .feature-grid, .testimonial-card, .faq-list, .card {
  margin-bottom: 12px;
}
.card, .feature-grid > div, .testimonial-card, .faq-item {
  margin-bottom: 22px;
}

/* ================
   UTILITIES
==================*/
.text-center {
  text-align: center;
}
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.pt-24 { padding-top: 24px; }
.pb-24 { padding-bottom: 24px; }

/* Hide visually but keep accessible (for accessibility) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}
