/* -------------------- 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 {
  height: 100%;
}
body {
  min-height: 100vh;
  background: #F4F2ED;
  color: #292929;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
button {
  outline: none;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* -------------------- BRAND FONTS -------------------- */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #1A2A39;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.25rem; line-height: 1.2; margin-bottom: 16px; }
h2 { font-size: 1.65rem; line-height: 1.25; margin-bottom: 14px; }
h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 10px; }
p, ul, ol, li, span, strong {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #292929;
}
strong { font-weight: 700; }

/* ------------------ GENERAL LAYOUT ------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px 0 rgba(191, 167, 122, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 900px) {
  .section { padding: 30px 8px; margin-bottom: 40px; }
  .container { padding: 0 8px; }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.text-section {
  padding: 32px 20px;
  background: #F4F2ED;
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 rgba(191, 167, 122, 0.06);
  margin-bottom: 20px;
  gap: 16px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 12px 0 rgba(191,167,122,0.09);
  padding: 28px 20px 22px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 3px 14px 0 rgba(191,167,122,0.14);
  background: #fff;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 240px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------------- HERO SECTION -------------- */
.hero {
  background: linear-gradient(92deg,#FFE5B5 0%, #FAF7F1 100%);
  padding: 68px 0 42px 0;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 6px 36px 0 rgba(191,167,122,0.13);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
  max-width: 640px;
}
.hero h1 {
  color: #1A2A39;
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.15rem;
  color: #614d27;
  margin-bottom: 18px;
}

/* ------------------- NAVIGATION ---------------- */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(191,167,122,0.08);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 78px;
}
.logo img {
  height: 46px;
  border-radius: 12px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1A2A39;
  padding: 9px 12px;
  border-radius: 9px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a.active {
  background: #BFA77A13;
  color: #BFA77A;
}

.cta.primary {
  background: #BFA77A;
  color: #fff;
  border-radius: 28px;
  padding: 11px 26px;
  font-size: 1rem;
  font-weight: 700;
  margin-left: 14px;
  box-shadow: 0 2px 10px 0 rgba(191,167,122,0.12);
  transition: background 0.18s, box-shadow 0.18s;
  border: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: #a18d60;
  box-shadow: 0 4px 20px 0 rgba(191,167,122,0.19);
}
.cta.secondary {
  background: #fffbf2;
  color: #BFA77A;
  border-radius: 28px;
  border: 2px solid #BFA77A;
  padding: 10px 24px;
  font-weight: 700;
  transition: background 0.18s, color 0.18s;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #BFA77A;
  color: #fff;
}
.cta.outline {
  background: transparent;
  color: #1A2A39;
  border: 2px solid #BFA77A;
  border-radius: 28px;
  padding: 10px 24px;
  font-weight: 500;
  transition: background 0.17s, color 0.17s;
}
.cta.outline:hover, .cta.outline:focus {
  background: #fffbf2;
  color: #BFA77A;
}
.cta.link {
  color: #BFA77A;
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  border-radius: 0;
  font-size: 1rem;
}
.cta.link:hover, .cta.link:focus { color: #1A2A39; text-decoration: underline; }

button.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #BFA77A;
  background: none;
  border-radius: 8px;
  padding: 6px 10px;
  margin-left: 8px;
  transition: background 0.16s;
}
button.mobile-menu-toggle:hover { background: #F4F2ED; }

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: #fff;
  box-shadow: 0 0 22px 0 rgba(191,167,122,0.08);
  z-index: 1900;
  transform: translateX(-100%);
  transition: transform 0.42s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
button.mobile-menu-close {
  font-size: 2.4rem;
  color: #BFA77A;
  border-radius: 8px;
  margin: 28px 22px 8px 18px;
  background: none;
  align-self: flex-end;
  transition: background 0.16s;
}
button.mobile-menu-close:hover { background: #F4F2ED; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 38px 28px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.13rem;
  color: #1A2A39;
  padding: 12px 4px;
  border-radius: 9px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover {
  background: #BFA77A15;
  color: #BFA77A;
}

@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  button.mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 538px) {
  .container {
    padding: 0 4px;
  }
  .hero h1 {
    font-size: 1.45rem;
  }
  .cta.primary, .cta.secondary, .cta.outline {
    padding: 9px 10px;
    font-size: .97rem;
  }
}

/* ------------- FOOTER --------------- */
footer {
  background: #fff;
  border-top: 2px solid #F4F2ED;
  padding: 32px 0 20px 0;
  margin-top: 40px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #BFA77A;
  font-size: 0.97rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 5px 9px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover {
  background: #BFA77A18;
  color: #1A2A39;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 0.89rem;
  color: #8C8169;
}
.footer-brand img {
  height: 34px;
  border-radius: 8px;
}

/* ----------------- FEATURE & CARD GRIDS ----------------- */
.feature-grid, .unique-selling-points-grid, .property-listing-grid, .feature-icons.service-highlights, .city-snapshot-cards, .testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.feature-grid li, .unique-selling-points-grid > div, .property-listing-grid > div,
.feature-icons > div, .city-snapshot-cards > div, .testimonial-card {
  flex: 1 1 225px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(191,167,122,0.09);
  padding: 18px 14px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 210px;
  transition: box-shadow 0.17s, transform 0.17s;
  margin-bottom: 0;
  border: 1px solid #F2E9D5;
}
.feature-grid li:hover, .unique-selling-points-grid > div:hover, .feature-icons > div:hover, .city-snapshot-cards > div:hover {
  box-shadow: 0 4px 28px 0 rgba(191,167,122,0.21);
  transform: translateY(-2px) scale(1.02);
}

.property-listing-grid > div h3 {
  font-size: 1.13rem;
  color: #1A2A39;
  margin-bottom: 4px;
}
.property-listing-grid > div ul {
  padding-left: 0;
  font-size: .97rem;
  color: #614d27;
}

.testimonial-slider {
  gap: 22px;
}

.city-list-short {
  display: flex;
  flex-direction: row;
  gap: 32px;
}
.city-list-short ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.03rem;
  font-weight: 500;
  color: #BFA77A;
}
.city-list-short div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.03rem;
}

@media (max-width: 900px) {
  .feature-grid, .unique-selling-points-grid, .property-listing-grid, .feature-icons.service-highlights, .city-snapshot-cards, .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
  .city-list-short {
    flex-direction: column;
    gap: 18px;
  }
}

/* --------------- TESTIMONIALS CARD/SLIDER ------------- */
.testimonial-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 14px 0 rgba(191,167,122,0.13);
  color: #1A2A39;
  min-width: 220px;
  flex: 1 1 320px;
  font-size: 1.06rem;
  transition: box-shadow 0.20s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(191,167,122,0.26);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.07rem;
  color: #1A2A39;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: #BFA77A;
  font-weight: 700;
  font-size: .98rem;
}
.review-highlight {
  background: #F4F2ED;
  border-radius: 13px;
  padding: 18px 16px;
  margin-top: 20px;
  font-size: 1.07rem;
  color: #1A2A39;
  box-shadow: 0 2px 7px 0 rgba(191,167,122,0.10);
}

/* -------------- CONTACT CTA SECTION -------------- */
.contact-cta {
  background: linear-gradient(98deg, #FFF7E2 0%, #FFF9F2 100%);
  border-radius: 24px;
  box-shadow: 0 2px 14px 0 rgba(191,167,122,0.11);
  padding: 38px 20px 44px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 60px;
  gap: 22px;
}

.contact-cta h2 {
  color: #1A2A39;
  margin-bottom: 10px;
}
.contact-cta p {
  color: #614d27;
  margin-bottom: 14px;
}
.contact-details ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #1A2A39;
}
.contact-details img {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: #fffbf2;
}

/* -------------- FAQ + Ratgeber ---------------- */
.faq-list h3 {
  font-size: 1.13rem;
  margin-top: 12px;
  color: #1A2A39;
}
.faq-list p {
  font-size: .99rem;
  color: #614d27;
  margin-bottom: 2px;
}
.guide-categories ul, .featured-guides ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.guide-categories li, .featured-guides li {
  background: #fff;
  border-radius: 13px;
  padding: 8px 18px;
  color: #BFA77A;
  font-weight: 600;
  box-shadow: 0 2px 7px 0 rgba(191,167,122,0.08);
  font-size: .98rem;
}
@media (max-width: 640px) {
  .content-wrapper, .card-container, .content-grid, .text-image-section, .testimonial-slider, .testimonial-list, .feature-grid, .unique-selling-points-grid, .feature-icons, .city-snapshot-cards {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .container {
    padding: 0 4px;
  }
  .hero, .section, .contact-cta {
    padding: 20px 2px !important;
  }
}

/* ------------------ SIDEBARS & FILTERS ------------------ */
.property-search-filter, .city-filters, .market-trends-overview, .city-comparison {
  background: #FFFCF6;
  border-radius: 12px;
  padding: 13px 16px 13px 14px;
  margin-bottom: 14px;
  box-shadow: 0 1px 5px 0 rgba(191,167,122,0.06);
}
.property-search-filter h2, .city-filters strong, .market-trends-overview h3, .city-comparison h3 {
  color: #BFA77A;
  margin-bottom: 4px;
  font-size: 1.06rem;
}
.property-search-filter ul, .city-filters ul, .market-trends-overview ul, .city-comparison ul {
  margin-left: 0 !important;
  gap: 10px;
  color: #614d27;
  font-size: .97rem;
  display: flex;
  flex-direction: column;
}

/* -------------------- MODAL & OVERLAY BASE ------------------- */
.modal-overlay {
  position: fixed;
  z-index: 3000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(26,42,57,0.29);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open {
  opacity:1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 36px 0 rgba(191,167,122,.14);
  max-width: 410px;
  width: 92%;
  padding: 26px 22px 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 4000;
  position: relative;
}
.modal h2 {
  color: #BFA77A;
  font-size: 1.4rem;
  margin-bottom: 9px;
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 2rem;
  color: #BFA77A;
  padding: 8px 8px;
  background: none;
  border-radius: 8px;
  transition: background 0.13s;
}
.modal-close:hover { background: #F4F2ED; }

/* ------------------ COOKIE CONSENT BAR --------------------- */
.cookie-consent-banner {
  position: fixed;
  z-index: 3000;
  left: 0; right: 0; bottom: 0;
  background: #fffbe8;
  border-top: 2px solid #BFA77A40;
  box-shadow: 0 -3px 22px 0 rgba(191,167,122,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 22px clamp(8px, 4vw, 40px);
  gap: 14px;
  font-size: 1rem;
  transition: transform .38s;
  transform: translateY(0);
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
}
.cookie-consent-banner__text {
  color: #1A2A39;
  font-size: 1rem;
  flex: 1 1 200px;
}
.cookie-consent-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 17px;
}
.cookie-consent-banner button {
  border-radius: 22px;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.13s, color 0.13s;
  border: none;
  margin: 0;
}
.cookie-consent-accept {
  background: #BFA77A;
  color: #fff;
}
.cookie-consent-accept:hover {
  background: #a18d60;
}
.cookie-consent-reject {
  background: #fff;
  color: #BFA77A;
  border: 2px solid #BFA77A;
}
.cookie-consent-reject:hover {
  background: #F4F2ED;
  color: #a18d60;
}
.cookie-consent-settings {
  background: #fff;
  color: #1A2A39;
  border: 2px solid #BFA77A44;
}
.cookie-consent-settings:hover {
  background: #BFA77A18;
  color: #BFA77A;
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .cookie-consent-banner__actions {
    width: 100%;
    gap: 10px;
    justify-content: flex-start;
  }
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-category {
  background: #FFFCF6;
  border-radius: 11px;
  padding: 11px 14px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  color: #1A2A39;
  justify-content: space-between;
}
.cookie-modal-category.essential {
  background: #F4F3ED;
  color: #777;
  font-style: italic;
}
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-block;
}
.toggle-switch input {
  width: 0;
  height: 0;
  opacity: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #DDD6C7;
  border-radius: 16px;
  transition: background .2s;
}
.toggle-switch input:checked + .slider {
  background: #BFA77A;
}
.slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px 0 rgba(191,167,122,0.08);
  transition: transform .2s;
}
.toggle-switch input:checked + .slider:before {
  transform: translateX(18px);
}

/* --------------------- ANIMATIONS --------------------- */
.cta.primary, .cta.secondary, .cta.outline, .cta.link, .main-nav a, .footer-nav a, .card, .feature-grid li, .city-snapshot-cards > div, .feature-icons > div, .unique-selling-points-grid > div, .testimonial-card {
  transition: box-shadow 0.16s, background 0.16s, color 0.14s, transform 0.12s;
}

/* MICRO-INTERACTIONS: hover, focus */
a:focus,
button:focus,
.cta:focus,
.main-nav a:focus,
.footer-nav a:focus {
  outline: 2px solid #BFA77A;
  outline-offset: 2px;
}

.card:active, .feature-grid li:active, .unique-selling-points-grid > div:active, .city-snapshot-cards > div:active, .feature-icons > div:active {
  transform: scale(0.98);
}

/* ------------------- RESPONSIVE RULES ------------------- */
@media (max-width: 900px) {
  .content-wrapper, .section, .contact-cta {
    padding: 24px 8px;
  }
  .card, .testimonial-card, .feature-grid li, .unique-selling-points-grid > div, .property-listing-grid > div, .feature-icons > div, .city-snapshot-cards > div {
    min-width: 90vw;
    gap: 10px;
    padding: 17px 7px;
  }
  .hero, .section {
    padding: 28px 2px !important;
  }
}
@media (max-width: 660px) {
  header .container {
    gap: 8px;
    height: 60px;
  }
  .logo img { height: 28px; }
  .cta.primary { margin-left: 4px; padding: 7px 14px; }
}

/* ------------- VISUAL HIERARCHY SPACING --------------- */
.section, .contact-cta {
  margin-top: 30px;
}
.content-wrapper > *:not(:last-child), .contact-cta > *:not(:last-child) {
  margin-bottom: 12px;
}
.card-container > * { margin-bottom: 0 !important; }
.feature-grid li + li {
  margin-left: 0;
}

/* -------------- ACCESSIBILITY + STATE --------------- */
::-webkit-input-placeholder { color: #9f9a87; }
::-moz-placeholder { color: #9f9a87; }
:-ms-input-placeholder { color: #9f9a87; }
::placeholder { color: #9f9a87; }

/* ---- HELPER CLASSES (for vertical/horizontal alignment, if needed) ---- */
.align-center { align-items: center !important; justify-content: center !important; }
.align-top { align-items: flex-start !important; }

/* Ensure no content overlaps -- guarantee with margin and gap in all layout classes */

/* ----------- END CSS ------------ */
