/* ===================
   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, 
main, 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;
}
/* Set base font family and size */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1rem;
  color: #243B55;
  background: #fff;
  min-height: 100vh;
  letter-spacing: 0.01em;
  line-height: 1.7;
}
/* Typography Hierarchy */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #243B55;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #243B55;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #243B55;
}
h4, .h4, h5, .h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: #243B55;
  margin-bottom: 8px;
}
p, ul, ol, dl {
  margin-bottom: 16px;
  font-size: 1rem;
}
ul, ol {
  padding-left: 20px;
}
strong, b {
  font-weight: 600;
  color: #243B55;
}
a {
  color: #243B55;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #F1C232;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Layout containers */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
/* HERO Section */
.hero {
  background: #f8fafb;
  border-bottom: 1px solid #e7eaf0;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0 40px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1, .hero .h1 {
  color: #243B55;
  margin-bottom: 12px;
}
.hero p {
  color: #596377;
  font-size: 1.125rem;
}

/* NAV HEADER */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 8px rgba(36,59,85,0.03);
  position: sticky;
  top: 0;
  z-index: 120;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 76px;
  position: relative;
}
header img {
  height: 42px;
  margin-right: 32px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #243B55;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 6px;
  border-radius: 6px;
  transition: background .15s, color .2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F1C232;
  color: #243B55;
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  background: #243B55;
  color: #fff;
  font-weight: 600;
  border: none;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 30px;
  box-shadow: 0 2px 12px rgba(36,59,85,0.07);
  margin-left: 20px;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .3s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #F1C232;
  color: #243B55;
  box-shadow: 0 6px 20px rgba(36,59,85,.10);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #243B55;
  padding: 7px 12px;
  z-index: 201;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F1C232;
  color: #243B55;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,59,85,0.95);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.78,.01,.38,1.04);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #F1C232;
  padding: 18px 22px 10px 14px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 211;
  border-radius: 10px;
  transition: background 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #fff2c1;
  color: #243B55;
}
.mobile-nav {
  margin-top: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 14px 8px;
  border-radius: 8px;
  background: none;
  transition: background .17s, color .17s;
  width: 100%;
  box-sizing: border-box;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F1C232;
  color: #243B55;
}
@media (max-width: 1100px) {
  header .container {
    max-width: 100%;
    padding: 0 9px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
  }
  .cta-btn {
    margin-left: 9px;
  }
}
@media (max-width: 768px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    position: absolute;
    right: 22px; top: 14px;
  }
  .container {
    padding-left: 9px; padding-right: 9px;
  }
}
@media (max-width: 768px) {
  .mobile-menu {
    padding-top: 22px;
  }
}
/* END NAVIGATION */

/* ===================
   GENERIC FLEX LAYOUTS
   =================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(36,59,85,0.06);
  padding: 26px 26px 22px 26px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(36,59,85,0.13);
  transform: translateY(-2px) scale(1.02);
}
.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;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}
/* ===============
  FEATURE GRID
================ */
.feature-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 16px;
  padding-left: 0;
}
.feature-grid li {
  flex: 0 1 calc(50% - 16px);
  background: #fff;
  border-radius: 12px;
  padding: 22px 26px 19px 26px;
  min-width: 230px;
  box-shadow: 0 1px 10px rgba(36,59,85,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow .2s, transform .18s;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 6px 20px rgba(36,59,85,0.10);
  transform: translateY(-2px) scale(1.017);
}
.feature-grid img {
  height: 34px;
  margin-bottom: 7px;
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid li {
    min-width: 90px;
    width: 100%;
  }
}
/* ===============
  SERVICE GRID (Dienstleistungen)
================ */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.service-grid .text-section {
  flex: 1 1 270px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 10px rgba(36,59,85,0.05);
  padding: 18px 24px 18px 22px;
  margin-bottom: 6px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .15s, transform .13s;
}
.service-grid .text-section:hover {
  box-shadow: 0 8px 28px rgba(36,59,85,0.11);
  transform: scale(1.012);
}
@media (max-width: 768px) {
  .service-grid {
    flex-direction: column;
    gap: 16px;
  }
  .service-grid .text-section {
    min-width: 90px;
    width: 100%;
  }
}
/*
================
PROPERTY CARDS (immobilien)
================
*/
.property-listing-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.property-card {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 8px rgba(36,59,85,0.06);
  padding: 20px 20px 15px 22px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .17s, transform .11s;
}
.property-card:hover, .property-card:focus-within {
  box-shadow: 0 7px 20px rgba(36,59,85,0.11);
  transform: translateY(-1.5px) scale(1.011);
}
.property-card h3 {
  font-size: 1.2rem;
  margin-bottom: 7px;
}
.property-card ul {
  padding-left: 17px;
  color: #596377;
}
@media (max-width: 900px) {
  .property-listing-preview {
    flex-direction: column;
    gap: 14px;
  }
}

/* ===============
  TESTIMONIAL CARDS
  =============== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 11px rgba(36,59,85,0.08);
  padding: 20px;
  margin-bottom: 24px;
  transition: box-shadow .19s, transform .13s;
}
.testimonial-card p {
  color: #243B55;
  font-style: italic;
  font-size: 1.09rem;
  margin-bottom: 6px;
}
.testimonial-card strong {
  color: #243B55 !important;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(36,59,85,0.13);
  transform: translateY(-2px) scale(1.011);
}
@media (max-width: 700px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }
}

/* ===============
  FOOTER
================ */
footer {
  background: #f8fafb;
  border-top: 1px solid #e7eaf0;
  margin-top: 60px;
  padding: 40px 0 28px 0;
  font-size: 0.97rem;
  color: #596377;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 42px;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer img {
  height: 34px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #243B55;
  font-size: 1rem;
  opacity: .95;
  margin-bottom: 2px;
  transition: color .18s, opacity .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F1C232;
  opacity: 1;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #243B55;
}
.contact-details img {
  height: 17px;
  margin-right: 7px;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
/* ===============
  ADDRESS-MAP (kontakt)
================ */
.address-map {
  background: #f6f4fa;
  border-radius: 10px;
  padding: 16px 22px;
  margin: 20px 0 14px 0;
  color: #243B55;
  font-size: 1.08rem;
  box-shadow: 0 1px 4px rgba(36,59,85,0.05);
}
/* ===============
  BUTTONS & CTA
================ */
button, .cta-btn {
  outline: none;
}
button:focus-visible, .cta-btn:focus-visible {
  outline: 2px dashed #243B55;
  outline-offset: 2px;
}
/* ===============
  PAGINATION
================ */
.pagination {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  margin: 20px 0 5px 0;
}
.pagination a {
  padding: 5px 13px;
  border-radius: 14px;
  color: #243B55;
  font-weight: 500;
  background: #f6f7fa;
  border: 1px solid #ececec;
  transition: background .18s, color .14s;
}
.pagination a:hover, .pagination a:focus {
  background: #F1C232;
  color: #243B55;
  border: 1px solid #fbedc8;
}

/* ===============
  DL, OL for FAQs (investieren)
================ */
dt {
  font-weight: 600;
  margin-bottom: 2px;
  color: #243B55;
}
dd {
  margin-bottom: 14px;
  margin-left: 0;
  color: #596377;
}
ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
/* ===============
  MICROINTERACTIONS, EFFECTS
================ */
details[open] summary:after {
  content: "▲";
  float: right;
}
details summary:after {
  content: "▼";
  float: right;
}
summary:focus-visible {
  outline: 2px dashed #243B55;
}
/* ===============
  COOKIE CONSENT BANNER
================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #243B55;
  color: #fff;
  padding: 24px 14px 16px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  z-index: 300;
  box-shadow: 0 -2px 26px rgba(36,59,85,.17);
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity .36s cubic-bezier(.6,0,.3,1), transform .3s cubic-bezier(.7,0,.3,1);
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-text {
  flex: 1;
  color: #fff;
  font-size: 1.02rem;
  margin-right: 12px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-btn, .cookie-btn-settings {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 0;
  transition: background .19s, color .18s, box-shadow .22s;
}
.cookie-btn.accept {
  background: #F1C232;
  color: #243B55;
}
.cookie-btn.reject {
  background: #fff2c1;
  color: #243B55;
}
.cookie-btn-settings {
  background: #fff;
  color: #243B55;
  border: 1px solid #ececec;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-btn-settings:hover, .cookie-btn-settings:focus {
  box-shadow: 0 2px 11px rgba(36,59,85,.08);
}
/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 301;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(36,59,85,.4);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.cookie-modal-backdrop.show {
  display: flex;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #243B55;
  border-radius: 13px;
  padding: 34px 30px 24px 30px;
  max-width: 400px;
  width: 95vw;
  min-width: 280px;
  box-shadow: 0 10px 44px rgba(36,59,85,0.16);
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: cookieIn .45s cubic-bezier(.67,0,.44,1.08);
  position: relative;
  font-size: 1.08rem;
}
@keyframes cookieIn {
  from {transform: scale(.89) translateY(80px); opacity: 0;}
  to {transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 13px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1rem;
  min-width: 108px;
}
.cookie-toggle {
  appearance: none;
  background-color: #e7eaf0;
  width: 40px;
  height: 22px;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .21s;
}
.cookie-toggle:checked {
  background: #F1C232;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px; top: 2.5px;
  height: 17px; width: 17px;
  border-radius: 50%;
  background: #fff;
  transition: left .24s cubic-bezier(0.6,0,.3,1);
  box-shadow: 0 1px 3px rgba(36,59,85,.07);
}
.cookie-toggle:checked::before {
  left: 20px;
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 7px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 18px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #243B55;
  cursor: pointer;
  padding: 5px;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: #f8fafb;
  border-radius: 50%;
}
@media (max-width: 650px) {
  .cookie-modal {
    padding: 17px 7vw 17px 7vw;
  }
}
@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 20px 8px 12px 8px;
    font-size: 0.99rem;
  }
}
/* ===================
   RESPONSIVENESS FOR LAYOUTS
   =================== */
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
    max-width: 100vw;
  }
  .content-wrapper {
    padding: 0;
    max-width: 100vw;
  }
  .section {
    padding: 24px 7px;
    margin-bottom: 42px;
  }
  .hero {
    padding: 32px 0 24px 0;
    min-height: 128px;
  }
  h1, .h1 {
    font-size: 1.7rem;
  }
  h2, .h2 {
    font-size: 1.28rem;
  }
  h3, .h3 {
    font-size: 1.09rem;
  }
}
@media (max-width: 450px) {
  .footer-nav a { font-size: .93rem; }
  .cookie-banner .cookie-buttons { gap: 7px; }
}

/* ===============
  MISC CLASSES
================ */
.text-section {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: 750px;
}
.text-section ul, .text-section ol {
  margin-bottom: 0;
}
.text-section:last-child {
  margin-bottom: 0;
}

/* Spacing helpers for utility */
.mb-4 { margin-bottom: 32px; }
.mb-3 { margin-bottom: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-1 { margin-bottom: 8px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* ===================
   SCROLLBAR
   =================== */
::-webkit-scrollbar {
  width: 9px;
  background: #f0f2f5;
}
::-webkit-scrollbar-thumb {
  background: #ececec;
  border-radius: 9px;
}
body {
  scrollbar-color: #ececec #f0f2f5;
}

/* ===============
  END OF FILE
================ */
