/* -----------------------------------------------------
   ImmoMeister Berlin – Vibrant Energetic Style CSS
   By: Senior CSS Developer & UI Designer
   -----------------------------------------------------

   - Modern, vibrant, energetic design
   - Uses ONLY flex layouts (no grid, no columns)
   - Consistent with brand guidelines
   - Responsive (mobile first)
   - All mandatory classes and patterns from briefing
   - Supports interactive: burger nav, cookie banner/modal
--------------------------------------------------------*/
/* ======= RESET & BASE ======= */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  min-height: 100vh;
  background: #F5F6FA;
  color: #182636;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F5F6FA;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
  vertical-align: middle;
}
a {
  color: #25405C;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.53,.21,.29,.99);
}
a:focus {
  outline: 2px solid #E4B061;
  outline-offset: 2px;
}

/* ======= TYPOGRAPHY ======= */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #25405C;
  letter-spacing: -0.5px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #182636;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #E4B061;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 4px;
}
p, ul, ol, li, details, summary {
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  letter-spacing: 0.1px;
  color: #182636;
}
p {
  margin-bottom: 18px;
}
strong {
  font-weight: 700;
  color: #25405C;
}

/* Typography utility for bold, energetic look */
.bold {
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ======= LAYOUT CONTAINERS ======= */
.container {
  width: 100%;
  max-width: 1240px;
  padding: 0 18px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.section,
main section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background:#fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(39,64,92,0.07);
}
/* Override for hero sections */
.hero {
  background: linear-gradient(90deg, #E4B061 0%, #C5C8CB 100%);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 24px rgba(44,94,176,0.10);
  margin-bottom: 60px;
  min-height: 300px;
  padding: 48px 0 42px 0;
  color: #25405C;
}
.hero .content-wrapper {
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}
.hero h1, .hero h1 span {
  color: #25405C;
}

/* ======= FLEX LAYOUT PATTERNS ======= */
/* Card container and grids */
.card-container,
.features-grid, .district-grid, .criteria-list, .step-timeline, .task-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0px 3px 14px 0px rgba(39,64,92,0.09);
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  min-width: 220px;
  flex: 1 1 260px;
  transition: transform .14s cubic-bezier(.53,.21,.29,.99), box-shadow .2s;
}
.card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 32px 0 rgba(44,94,176,0.15),0 1px 2px 0 rgba(228,176,97,0.20);
}
.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;
  margin-bottom: 32px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 28px 22px 28px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: #F9F9FB;
  box-shadow: 0px 4px 18px 0px rgba(39,64,92,0.09);
  border-left: 6px solid #E4B061;
  transition: box-shadow .14s cubic-bezier(.53,.21,.29,.99), border-color .18s;
}
.testimonial-card:hover {
  border-left: 6px solid #25405C;
  box-shadow: 0 8px 32px 0 rgba(44,94,176,0.12),0 1px 2px 0 rgba(228,176,97,0.17);
}
.testimonial-card p {
  color: #25405C;
  font-size: 1.07rem;
  font-style: italic;
  margin-bottom: 10px;
}
.testimonial-card span {
  color: #303A42;
  font-size: .99rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 14px;
  border-radius: 14px;
  background: #F3F5F9;
  margin-bottom: 16px;
}
/* Service list */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin-bottom: 32px;
}
.service-list li {
  padding: 18px 18px 18px 32px;
  border-radius: 10px;
  background: #F7F5F0;
  border-left: 4px solid #E4B061;
  position: relative;
  transition: box-shadow .13s cubic-bezier(.53,.21,.29,.99), border-color .18s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}
.service-list li span {
  color: #E4B061;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 8px;
  font-weight: 600;
}
.service-list li:hover {
  border-left: 4px solid #25405C;
  box-shadow: 0 8px 24px 0 rgba(39,64,92,0.07);
}
/* Step timeline */
.step-timeline {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.step-timeline li {
  background: #25405C;
  color: #fff;
  border-radius: 12px;
  padding: 12px 22px 12px 20px;
  font-weight: 600;
  min-width: 220px;
  flex: 1 1 210px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.1rem;
  margin-bottom: 0;
  transition: background .14s, color .18s;
}
.step-timeline li span {
  min-width: 36px;
  font-size: 1.5rem;
  color: #E4B061;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
}
/* ======= BRAND / VISUAL ======= */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #25405C;
  gap: 8px;
}
.brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.93rem;
}
.brand-info span {
  color: #A2AAB3;
}

/* ======= NAVIGATION ======= */
header {
  background: #fff;
  box-shadow: 0px 2px 14px 0px rgba(228,176,97,0.07);
  padding: 0;
  z-index: 1090;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  min-height: 72px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
header nav a {
  color: #25405C;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: color .18s, background .14s, border .16s;
  padding: 6px 10px;
  border-radius: 6px;
}
header nav a:hover,
header nav a:focus {
  background: #E4B061;
  color: #25405C;
}
.cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: #E4B061;
  color: #25405C;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.08rem;
  border: none;
  border-radius: 28px;
  box-shadow: 0 3px 10px 0 rgba(228,176,97,0.07);
  transition: background .18s, color .12s, transform .11s;
  cursor: pointer;
  margin-left: 10px;
  text-shadow: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: #25405C;
  color: #fff;
  transform: scale(1.04);
}
/* ====== Mobile Menu Button ====== */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  background: #fff;
  color: #25405C;
  border: none;
  border-radius: 50%;
  padding: 6px 8px;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.17s, color 0.13s;
  z-index: 1202;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E4B061;
  color: #25405C;
}
/* Hide the mobile trigger on desktop */
@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* ======= MOBILE MENU OVERLAY ======= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37, 64, 92, 0.96);
  z-index: 1200;
  transform: translateX(-103vw);
  transition: transform 0.34s cubic-bezier(.67,-0.01,.32,1.01);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #E4B061;
  font-size: 2.1rem;
  padding: 30px 26px 20px 0;
  cursor: pointer;
  z-index: 1201;
  transition: color .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 38px 0 0 28px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 0 12px 0;
  border-radius: 8px;
  transition: color .13s, background .13s;
  min-width: 200px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E4B061;
  color: #25405C;
}
/* Hide desktop nav on mobile */
@media (max-width:1023px) {
  header nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
}
@media (min-width:1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ======= FOOTER ======= */
footer {
  background: #fff;
  box-shadow: 0px -2px 18px 0px rgba(228,176,97,0.07);
  font-size: 1.05rem;
  padding: 30px 0 8px 0;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
}
footer .logo {
  max-width: 168px;
}
footer nav {
  display: flex;
  gap: 14px;
}
footer nav a {
  color: #25405C;
  font-size: .99rem;
  padding: 6px 9px;
  border-radius: 4px;
  transition: background .13s, color .13s;
}
footer nav a:hover,
footer nav a:focus {
  background: #E4B061;
  color: #25405C;
}

/* ======= FAQ & DETAILS ======= */
.faq-block {
  background: #EEF3F8;
  border-radius: 12px;
  padding: 24px;
  margin-top: 18px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px 0 rgba(39,64,92,.05);
}
.faq-block h3 {
  color: #25405C;
  margin-bottom: 14px;
}
.faq-block details {
  margin-bottom: 16px;
}
.faq-block summary {
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  color: #25405C;
  margin-bottom: 6px;
  transition: color .12s;
}
.faq-block details[open] summary {
  color: #E4B061;
}
.faq-block details p {
  margin: 6px 0 0 10px;
  color: #303A42;
}

/* ======= SPECIFIC SECTION/LISTS ======= */
.district-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.district-grid > div {
  background: #F3F5F9;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(39,64,92,0.05);
  padding: 24px 22px 14px 22px;
  min-width: 210px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0px;
  transition: box-shadow .15s cubic-bezier(.53,.21,.29,.99), transform .18s;
}
.district-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(44,94,176,0.12),0 1.5px 3px 0 rgba(228,176,97,0.13);
  transform: translateY(-5px) scale(1.03);
}
.district-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}
.criteria-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
  list-style: disc inside;
}
.criteria-list li {
  background: #fff;
  border-radius: 10px;
  padding: 12px 18px;
  color: #25405C;
  font-weight: 600;
  min-width: 180px;
  flex: 1 1 200px;
  box-shadow: 0 2px 12px rgba(39,64,92,0.03);
}
.neighborhood-lifestyle {
  margin-top: 0;
  background: #F9F9FB;
  padding: 22px 18px;
  border-radius: 14px;
}
.address-block {
  background: #F3F5F9;
  border-radius: 10px;
  padding: 18px 16px;
  margin-bottom: 14px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.service-highlight {
  background: #C5C8CB;
  border-radius: 10px;
  color: #25405C;
  padding: 22px 22px;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.task-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
  list-style: disc inside;
}
.task-list li {
  min-width: 180px;
  flex: 1 1 200px;
  background: #fff;
  border-radius: 10px;
  padding: 8px 16px;
}

/* ======= BUTTONS & CTAS ======= */
button, .cta, .cta.primary,
input[type="submit"] {
  cursor: pointer;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  outline: none;
  transition: background .13s, color .12s, transform .11s;
  box-shadow: 0 1px 8px 0 rgba(228,176,97,0.06);
}
button:active, .cta:active, input[type="submit"]:active {
  transform: scale(0.98);
}
.cta {
  display: inline-block;
  background: #fff;
  color: #25405C;
  padding: 11px 22px;
  border-radius: 22px;
  border: 2px solid #25405C;
  font-size: 1rem;
  text-align: center;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 1px 4px 0 rgba(228,176,97,0.03);
  transition: background .13s, color .12s, border-color .16s;
}
.cta:hover, .cta:focus {
  background: #25405C;
  color: #fff;
  border-color: #E4B061;
}
button[disabled], .cta[disabled] {
  opacity: 0.7;
  pointer-events: none;
}

/* ======= COOKIE CONSENT BANNER ======= */
#cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 10vw;
  width: 80vw;
  max-width: 560px;
  background: #fff;
  color: #25405C;
  box-shadow: 0px -2px 24px 0px rgba(39,64,92,0.15);
  border-radius: 20px 20px 0 0;
  padding: 28px 28px 22px 28px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.45s cubic-bezier(.57,.12,.24,1.02), transform 0.38s cubic-bezier(.43,.21,.44,1.02);
}
#cookie-consent-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#cookie-consent-banner .banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
#cookie-consent-banner button {
  padding: 10px 20px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  transition: background .14s, color .11s;
  margin-right: 2px;
}
#cookie-accept {
  background: #E4B061;
  color: #25405C;
}
#cookie-accept:hover, #cookie-accept:focus {
  background: #25405C;
  color: #fff;
}
#cookie-reject {
  background: #fff;
  color: #E24A37;
  border: 2px solid #E24A37;
}
#cookie-reject:hover, #cookie-reject:focus {
  background: #E24A37;
  color: #fff;
}
#cookie-settings {
  background: #25405C;
  color: #fff;
}
#cookie-settings:hover, #cookie-settings:focus {
  background: #E4B061;
  color: #25405C;
}
/* Cookie settings modal */
#cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 96vw;
  max-width: 420px;
  background: #fff;
  color: #25405C;
  border-radius: 22px;
  box-shadow: 0 12px 48px 0 rgba(39,64,92,0.16);
  z-index: 1302;
  padding: 34px 32px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-44%) scale(0.97);
  transition: opacity .32s cubic-bezier(.49,.12,.52,1.05), transform .32s cubic-bezier(.45,.18,.39,1);
}
#cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
#cookie-modal h3 {
  color: #25405C;
  margin-bottom: 14px;
  font-size: 1.15rem;
}
#cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-bottom: 10px;
}
#cookie-modal .category label {
  font-weight: 600;
  font-size: 1rem;
}
#cookie-modal .category input[type="checkbox"]:disabled + label {
  color: #aaa;
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 12px;
}
#cookie-modal .modal-close {
  position: absolute;
  top: 16px; right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #25405C;
  cursor: pointer;
  z-index: 1303;
}
#cookie-modal .modal-close:hover, #cookie-modal .modal-close:focus {
  color: #E4B061;
}

/* ======= UTILITIES ======= */
.mt-0 { margin-top:0!important; }
.mb-0 { margin-bottom:0!important; }
.mt-40 { margin-top:40px; }
.mb-40 { margin-bottom:40px; }
.centered {
  align-items: center;
  justify-content: center;
}
.text-center {
  text-align: center;
}

/* ======= SPACING & RESPONSIVE =========== */
.section, main section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .features-grid, .district-grid, .criteria-list, .step-timeline, .content-grid {
  gap: 24px;
  margin-bottom: 0;
}
.card {
  margin-bottom: 20px;
}
.text-image-section {
  gap: 30px;
}
@media (max-width:1023px) {
  .district-grid, .features-grid, .step-timeline, .criteria-list, .card-container, .task-list {
    flex-direction: column;
    gap: 20px;
  }
  .service-list {
    gap: 12px;
  }
  .card {
    min-width: unset;
    width: 100%;
    flex: 1 1 100%;
  }
  .testimonial-card {
    width: 100%;
    padding: 18px 14px 14px 14px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 6px;
  }
  .content-wrapper, .footer .content-wrapper {
    gap: 18px;
  }
  .section, main section {
    padding: 30px 5px;
    margin-bottom: 38px;
  }
  .hero {
    padding: 36px 0 28px 0;
    min-height: 180px;
    border-radius: 0 0 18px 18px;
    margin-bottom: 38px;
  }
  .hero .content-wrapper {
    gap: 14px;
  }
  .card-container, .features-grid, .district-grid, .criteria-list, .step-timeline, .content-grid, .task-list {
    flex-direction: column;
    gap: 14px;
  }
  .card, .district-grid>div {
    min-width: unset;
    width: 100%;
    flex: 1 1 100%;
    padding: 16px 8px;
  }
  .testimonial-card {
    padding: 14px 7px 11px 11px;
    border-radius: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 13px;
  }
  footer {
    padding: 18px 0 3px 0;
  }
  .brand-info {
    font-size: .92rem;
  }
  #cookie-consent-banner {
    left: 0; width: 100vw; min-width: unset; max-width: 100vw;
    font-size: 1rem;
    padding: 14px 7px 10px 9px;
  }
  #cookie-modal {
    padding: 18px 8px 12px 10px;
    left: 50%;
    top: 50%;
    border-radius: 12px;
    font-size: 1rem;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.62rem; }
  h2 { font-size: 1.24rem; }
  h3 { font-size: 1.01rem; }
}

/* ====== SUBTLE ENERGETIC ANIMATIONS ====== */
.testimonial-card, .district-grid>div, .card {
  transition: box-shadow .18s, border-color .18s, transform .16s;
}
.cta.primary, .cta {
  box-shadow: 0 4px 24px 0 rgba(44,94,176,0.13);
  transition: box-shadow .19s, background .14s, color .14s, transform .12s;
}
.cta.primary:active, .cta:active {
  transform: scale(0.98);
}
@media (hover: hover) {
  .cta.primary:hover, .cta:hover,
  .card:hover, .district-grid>div:hover,
  .testimonial-card:hover {
    filter: brightness(1.02) saturate(1.09);
  }
}

/* ====== ACCESSIBILITY & FOCUS ====== */
button:focus-visible, .cta:focus-visible, a:focus-visible {
  outline: 2.5px solid #E4B061;
  outline-offset: 2.5px;
}

/* ====== PRINT UTIL ====== */
@media print {
  .mobile-menu, .mobile-menu-toggle, #cookie-consent-banner, #cookie-modal {
    display: none !important;
  }
}

/* ====== CUSTOM SCROLLBAR (webkit) ====== */
::-webkit-scrollbar { width: 9px; background: #f7f7f7; }
::-webkit-scrollbar-thumb { background: #C5C8CB; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #E4B061; }
