/* ---------------------------
   CSS RESET & NORMALIZATION
----------------------------*/
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 {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F2F5FA;
}
body {
  color: #1D2736;
  background: #F2F5FA;
  font-family: 'Roboto', Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}
ul, ol {
  list-style: none;
}
a {
  color: #136F94;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1D2736;
  text-decoration: underline;
}
button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}
:focus {
  outline: 2px solid #136F94;
  outline-offset: 2px;
}

/* -----------------------------------
   BRAND TYPOGRAPHY & ELEGANT SETTING
--------------------------------------*/
h1, h2, h3, h4 {
  font-family: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #1D2736;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #1D2736;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #136F94;
}
h4 {
  font-size: 1.1rem;
  color: #1D2736;
}
p, ul, ol, li, blockquote {
  font-size: 1rem;
  font-family: 'Roboto', Georgia, 'Times New Roman', Times, serif;
  color: #273044;
  margin-bottom: 12px;
}
blockquote {
  font-style: italic;
  color: #1D2736;
  border-left: 3px solid #136F94;
  padding-left: 18px;
  margin: 0;
}
.subheadline {
  font-size: 1.25rem;
  color: #314764;
  margin-bottom: 28px;
  line-height: 1.5;
  font-family: 'Roboto', Georgia, 'Times New Roman', Times, serif;
}
strong {
  font-weight: 600;
}

/* ---------------------------
   LAYOUT CONTAINERS & FLEX
----------------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(29, 39, 54, 0.06);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.content-grid, .features, .card-grid, .service-teasers, .city-overview, .services-grid, .properties-grid, .property-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(29, 39, 54, 0.07);
  border-radius: 16px;
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 30px 0 rgba(29,39,54,0.13);
}

@media (max-width: 900px) {
  .content-grid, .features, .card-grid, .service-teasers, .city-overview, .services-grid, .properties-grid, .property-summary-list {
    flex-direction: column;
    gap: 18px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f7f8fc;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(29, 39, 54, 0.08);
  margin-bottom: 20px;
}

/* Ensure testimonials are highly readable */
.testimonial-card blockquote,
.testimonial-card p {
  color: #212937;
}

/* Extra breathing room between all cards/sections */
.service-teasers > div,
.city-overview > div,
.services-grid > div,
.properties-grid > div,
.property-summary-list > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 10px 0 rgba(29,39,54,0.04);
  padding: 24px 18px;
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s;
}
.service-teasers > div:hover, .city-overview > div:hover, .services-grid > div:hover, .properties-grid > div:hover, .property-summary-list > div:hover {
  box-shadow: 0 4px 18px 0 rgba(29,39,54,0.14);
}

/* Filters Bar */
.search-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #E6EBF3;
  border-radius: 12px;
  padding: 13px 18px;
  margin: 18px 0 28px 0;
  font-size: 1rem;
  color: #43526a;
}

/* -------------
   HERO SECTION
-------------- */
.hero {
  background: linear-gradient(115deg, #F2F5FA 60%, #E6EBF3 100%);
  padding: 64px 0 52px 0;
  margin-bottom: 52px;
  border-radius: 0 0 32px 32px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.3rem;
  line-height: 1.18;
  color: #1D2736;
  margin-bottom: 18px;
}
@media (max-width: 600px) {
  .hero {
    padding: 36px 0 24px 0;
    margin-bottom: 34px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
}

/* -------------
   CTA BUTTONS
-------------- */
.cta-button {
  display: inline-block;
  background: #136F94;
  color: #fff!important;
  font-family: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  padding: 13px 32px;
  border-radius: 50px;
  box-shadow: 0 2px 14px 0 rgba(19,111,148,0.06);
  transition: background 0.17s, box-shadow 0.18s, color 0.13s;
  margin-top: 12px;
  font-weight: 600;
  text-align: center;
}
.cta-button:hover, .cta-button:focus {
  background: #1D2736;
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(19,111,148,0.13);
  text-decoration: none;
}

/* -----------
   HEADER
-------------*/
header {
  background: #fff;
  border-bottom: 1px solid #e5e9ef;
  box-shadow: 0 2px 8px 0 rgba(29,39,54,0.03);
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 44px;
  margin-right: 32px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #1D2736;
  padding: 7px 15px;
  border-radius: 20px;
  transition: background 0.19s, color 0.19s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E6EBF3;
  color: #136F94;
}

/* Hide mobile menu button on desktop */
.mobile-menu-toggle {
  display: none;
  background: #136F94;
  color: #fff;
  font-size: 2.1rem;
  padding: 5px 14px 6px 14px;
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 1102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #1D2736;
}

/* MOBILE MENU LOGIC */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 32px 0 rgba(29,39,54,0.12);
  z-index: 2000;
  padding: 36px 28px 24px 28px;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.39,.47,.56,1.03);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  background: #E6EBF3;
  color: #1D2736;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #136F94;
  color: #fff;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  padding: 14px 7px 14px 0;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.35rem;
  border-radius: 8px;
  color: #1D2736;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #E6EBF3;
  color: #136F94;
}
@media (max-width: 900px) {
  header .container {
    gap: 14px;
  }
  header img {
    height: 37px;
    margin-right: 18px;
  }
}
@media (max-width: 600px) {
  .mobile-menu {
    padding: 18px 6vw 18px 6vw;
  }
  .mobile-menu-close {
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }
}

/* ----------
   FOOTER
------------*/
footer {
  background: #b3b3b3;
  color: #fff;
  padding: 38px 0 18px 0;
  margin-top: 64px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #d7e1ef;
  font-size: 1.05rem;
  font-family: 'Montserrat', Georgia, serif;
  transition: color 0.17s;
  border-radius: 6px;
  padding: 4px 9px;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #136F94;
  color: #fff;
}
.footer-contact {
  color: #eef2fa;
  font-size: 1rem;
  font-family: 'Roboto', Georgia, serif;
}
.footer-contact a {
  color: #ffffff;
  text-decoration: underline;
}
.copyright {
  color: #8791a4;
  font-size: 0.95rem;
  margin-top: 6px;
}
@media (max-width: 800px) {
  footer .container {
    gap: 8px;
  }
  .footer-nav {
    gap: 16px;
  }
}

/* ------------
   CARD LAYOUTS
---------------*/

/* Immobilien cards/sections */
.properties-grid > div, .property-summary-list > div {
  min-width: 220px;
  font-size: 1.05rem;
}

/* Overlap/spacing guards */
.section:not(:last-child) {
  margin-bottom: 64px;
}

/* ----------
   TABLES
------------*/
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 20px 0;
}
thead th {
  background: #E6EBF3;
  color: #1D2736;
  padding: 14px;
  font-family: 'Montserrat', serif;
  text-align: left;
}
tbody td {
  padding: 11px 14px;
  border-top: 1px solid #e5e9ef;
}

/* -----------
   LIST STYLES
-------------*/
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 20px;
}
ul li::marker, ol li::marker {
  color: #136F94;
  font-weight: 600;
}
ul li, ol li {
  margin-bottom: 7px;
  font-size: 1rem;
}

/* Custom check icons for benefit lists */
ul li::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #136F94;
  margin-right: 10px;
  vertical-align: middle;
}
ul li {
  position: relative;
  padding-left: 0.5em;
}
ul li[style*='✓']::before, ul li:has(> strong)::before {
  content: '\2713';
  background: none;
  color: #136F94;
  font-size: 1.1em;
  font-weight: 600;
  margin-right: 10px;
  vertical-align: middle;
}

/* -------------------------
   MODALS/BANNERS/ANIMATION
---------------------------*/

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 2100;
  background: #fff;
  border-top: 1px solid #e5e9ef;
  box-shadow: 0 -3px 18px 0 rgba(19,111,148,0.08);
  font-size: 1rem;
  padding: 22px 14px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: transform 0.38s, opacity 0.38s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(80px);
  pointer-events: none;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}
.cookie-banner button,
.cookie-banner .cookie-preferences-btn {
  background: #E6EBF3;
  color: #1D2736;
  font-family: 'Montserrat', serif;
  border-radius: 24px;
  border: none;
  padding: 10px 24px;
  margin: 0 3px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner button.accept {
  background: #136F94;
  color: #fff;
}
.cookie-banner button.reject {
  background: #f6dee2;
  color: #1D2736;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #1D2736;
  color: #fff;
}

.cookie-preferences-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  z-index: 2500;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 0 40px 0 rgba(19,111,148,0.23);
  max-width: 95vw;
  width: 420px;
  padding: 36px 26px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
  transition: opacity 0.32s, transform 0.33s;
}
.cookie-preferences-modal.hide {
  opacity: 0;
  transform: translate(-50%,-40%) scale(0.93);
  pointer-events: none;
}
.cookie-preferences-modal h2 {
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: #136F94;
  width: 17px;
  height: 17px;
  margin-right: 2px;
}
.cookie-category.essential label {
  color: #1D2736;
  font-weight: 600;
}
.cookie-category.essential input {
  display: none!important;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}
.cookie-modal-actions button {
  background: #E6EBF3;
  color: #1D2736;
  font-family: 'Montserrat', serif;
  border-radius: 24px;
  font-size: 1rem;
  padding: 10px 22px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal-actions button.accept {
  background: #136F94;
  color: #fff;
}
.cookie-modal-actions button.reject {
  background: #f6dee2;
  color: #1D2736;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #1D2736;
  color: #fff;
}

/* Overlay for cookie modal */
.cookie-backdrop {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(19,34,43, 0.27);
  z-index: 2490;
  transition: opacity 0.22s;
  opacity: 1;
}
.cookie-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}


/* -------------
   MEDIA QUERIES
--------------- */
@media (max-width: 700px) {
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .section{
    padding: 19px 6px;
    margin-bottom: 34px;
    border-radius: 12px;
  }
  .card,
  .service-teasers > div,
  .city-overview > div,
  .services-grid > div,
  .properties-grid > div,
  .property-summary-list > div {
    padding: 15px 7px;
    border-radius: 9px;
    min-width: 140px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 5px;
  }
  .search-filter-bar {
    font-size: 0.95rem;
    padding: 8px 9px;
  }
  .container {
    padding: 0 4vw;
  }
  .footer-contact {
    font-size: 0.89rem;
  }
  .hero .container {
    padding-left: 4vw; padding-right: 4vw;
  }
}

/* ---------------
   MICROINTERACTIONS, HOVER & TRANSITIONS
-----------------*/
.card, .testimonial-card, .service-teasers > div, .city-overview > div, .services-grid > div, .properties-grid > div, .property-summary-list > div {
  transition: box-shadow 0.2s, transform 0.13s;
}
.card:hover, .testimonial-card:hover, .service-teasers > div:hover, .city-overview > div:hover, .services-grid > div:hover, .properties-grid > div:hover, .property-summary-list > div:hover {
  box-shadow: 0 8px 26px 0 rgba(19,111,148,0.14);
  transform: translateY(-2px) scale(1.015);
}

.cta-button:active {
  background: #314764;
}

::-webkit-input-placeholder { color: #8791a4; }
::-moz-placeholder { color: #8791a4; }
:-ms-input-placeholder { color: #8791a4; }
::placeholder { color: #8791a4; }

/* ---------------
   Z-INDEX GUARDS
-----------------*/
header {z-index: 1001;}
.mobile-menu {z-index: 2000;}
.cookie-banner {z-index: 2100;}
.cookie-preferences-modal {z-index: 2500;}
.cookie-backdrop {z-index: 2490;}

/* ---------------
   GENERAL UTILITIES
-----------------*/
.d-none {display: none !important;}
.text-center {text-align: center;}
.gap-20 {gap: 20px !important;}
@media (max-width: 600px) {
  .gap-20 {gap: 12px !important;}
}
