/* =======================
   ELEGANT_CLASSIC RESET & BASE
   ======================= */
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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Georgia', Times, 'Times New Roman', serif;
  background: #F9F6F2;
  color: #2C3E50;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
  line-height: 1.65;
}
img, svg {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}
a {
  color: #2C3E50;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8DB600;
  outline: none;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1.5em;
}
strong { font-weight: 600; color: #2C3E50; }
hr {
  border: 0; border-top: 1px solid #E5E1DB; margin: 32px 0;
}

/* =======================
   TYPOGRAPHY
   ======================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: #2C3E50;
  letter-spacing: 0.02em;
  font-weight: 700;
  margin-bottom: 0.8em;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.18; }
h3 { font-size: 1.45rem; line-height: 1.25; }
h4 { font-size: 1.2rem; }
.subtitle {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  color: #566372;
  margin-bottom: 1.2em;
  letter-spacing: 0.03em;
}
@media (max-width: 992px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1rem; }
}

/* =======================
   CONTAINER & SPACING
   ======================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(44,62,80,0.06);
  transition: box-shadow 0.2s;
}
@media (max-width: 600px) {
  .section {
    padding: 24px 6px;
    margin-bottom: 32px;
  }
}

/* =======================
   FLEXBOX LAYOUT CLASSES
   ======================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(44,62,80,0.04);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 275px;
  transition: box-shadow 0.2s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(44,62,80,0.10);
  transform: translateY(-4px);
}
.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) {
  .text-image-section, .content-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FCFBFA;
  border-left: 5px solid #8DB600;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(44,62,80,0.07);
  margin-bottom: 20px;
  color: #23272E;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  color: #292E33;
  font-style: italic;
  flex: 1;
}
.testimonial-card span {
  margin-left: 12px;
  color: #424C56;
  font-weight: 500;
}
.testimonial-card img {
  width: 22px;
  height: 22px;
  margin-right: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =======================
   BUTTONS & CTAs
   ======================= */
.cta-primary, .mobile-nav a.cta-primary {
  display: inline-flex;
  align-items: center;
  background: #2C3E50;
  color: #fff !important;
  border: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.13rem;
  border-radius: 7px;
  padding: 14px 32px;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.25s;
}
.cta-primary:hover, .cta-primary:focus, .mobile-nav a.cta-primary:hover {
  background: #8DB600;
  color: #23272E !important;
  box-shadow: 0 5px 24px rgba(141,182,0,0.15);
  transform: translateY(-2px);
}
button, .btn, input[type="submit"] {
  font-family: inherit;
  cursor: pointer;
  outline: none;
  border: none;
  border-radius: 7px;
  padding: 10px 22px;
  font-size: 1rem;
  background: #8DB600;
  color: #23272e;
  margin-right: 10px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
button:hover, .btn:hover, input[type="submit"]:hover, button:focus {
  background: #2C3E50;
  color: #fff;
  box-shadow: 0 3px 10px rgba(44,62,80,0.11);
}
.btn-secondary {
  background: #fff;
  color: #2C3E50;
  border: 1px solid #8DB600;
}
.btn-secondary:hover {
  background: #8DB600;
  color: #fff;
}

/* =======================
   HEADER & NAVIGATION
   ======================= */
header {
  background: #fff;
  border-bottom: 1px solid #EAE7DF;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1010;
  box-shadow: 0 1px 12px rgba(44,62,80,0.035);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
}
header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  color: #2C3E50;
  padding: 6px 8px;
  position: relative;
  transition: color 0.2s;
}
header nav a.cta-primary {
  margin-left: 18px;
  font-size: 1.08rem;
  padding: 10px 20px;
  background: #8DB600;
  color: #23272E !important;
}
header nav a.cta-primary:hover {
  background: #2C3E50;
  color: #fff !important;
}
header nav a.active, header nav a:focus {
  border-bottom: 2px solid #8DB600;
  color: #8DB600;
}
header img[alt*='Serene Reach Berlin'] {
  height: 42px;
}

/* ========== MOBILE NAV ========== */
.mobile-menu-toggle {
  display: none;
  background: #8DB600;
  color: #fff;
  border: none;
  font-size: 1.95rem;
  border-radius: 8px;
  padding: 6px 14px 8px 14px;
  margin-left: 18px;
  cursor: pointer;
  z-index: 1201;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #2C3E50;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44, 62, 80, 0.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.8, .09, .39, 1.16);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  box-shadow: 1px 0 26px rgba(44,62,80,0.18);
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  color: #8DB600;
  border: none;
  margin: 18px 0 0 24px;
  align-self: flex-start;
  cursor: pointer;
}
.mobile-nav {
  margin-top: 48px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding-left: 42px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-family: 'Georgia', serif;
  padding: 10px 0;
  border-bottom: none;
  width: 100%;
  transition: color 0.18s, background 0.25s;
  border-radius: 6px;
}
.mobile-nav a.cta-primary {
  margin-top: 16px;
  padding: 12px 28px;
  font-size: 1.19rem;
  background: #8DB600;
  color: #23272E !important;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8DB600;
  color: #23272E;
}

@media (max-width: 1060px) {
  header nav {
    gap: 15px;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 9px;
  }
  header img[alt*='Serene Reach Berlin'] {
    height: 36px;
  }
}
@media (max-width: 820px) {
  header .container {
    padding: 10px 6px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 821px) {
  .mobile-menu { display: none !important; }
}

/* =======================
   MAIN & SECTIONS
   ======================= */
main {
  min-height: 60vh;
}
section {
  margin-bottom: 60px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
section .container {
  padding: 0;
}
section .content-wrapper {
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 600px) {
  section {
    margin-bottom: 32px;
  }
}

/* =======================
   FOOTER
   ======================= */
footer {
  background: #f4f4ef;
  border-top: 1px solid #EAE7DF;
  padding: 30px 0 6px 0;
  color: #323232;
  margin-top: 32px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}
footer nav {
  margin-bottom: 12px;
  font-size: 0.97rem;
  color: #353A3E;
}
footer nav a {
  color: #2C3E50;
  margin: 0 4px;
  font-family: 'Georgia', serif;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #8DB600;
}
.footer-contact {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #333;
  font-family: 'Georgia', serif;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 6px;
  vertical-align: middle;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  align-items: center;
}
.footer-social img {
  height: 23px;
  width: 23px;
  opacity: 0.82;
  transition: opacity 0.2s;
}
.footer-social img:hover {
  opacity: 1;
}
.footer-copy {
  margin-top: 10px;
  color: #606366;
  font-size: 0.95rem;
  font-family: 'Georgia', serif;
}
@media (max-width: 1020px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  footer {
    font-size: 0.96rem;
    padding: 16px 0 2px 0;
  }
}

/* =======================
   FAQ, ACCORDION, RESOURCES
   ======================= */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-accordion details {
  border: 1px solid #EAE7DF;
  border-radius: 9px;
  background: #FAFAF8;
  padding: 16px 24px;
  transition: box-shadow 0.22s;
  box-shadow: 0 2px 10px rgba(44,62,80,0.04);
}
.faq-accordion details[open] {
  box-shadow: 0 4px 24px rgba(44,62,80,0.11);
  border-color: #8DB600;
}
.faq-accordion summary {
  font-family: 'Georgia',serif;
  font-size: 1.08rem;
  font-weight: bold;
  color: #2C3E50;
  cursor: pointer;
  outline: none;
}
.faq-accordion summary:focus {
  color: #8DB600;
}
.resource-links {
  margin: 24px 0;
}
.resource-links ul {
  list-style-type: none;
  padding: 0;
  gap: 10px;
  display: flex;
  flex-direction: column;
}
.resource-links a {
  font-family: 'Georgia',serif;
  font-size: 1rem;
  color: #2C3E50;
  border-bottom: 1px dotted #8DB600;
}
.resource-links a:hover {
  color: #8DB600;
}
.mortgage-calc-teaser {
  background: #EDE9DF;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.05);
  font-size: 1.07rem;
  margin-top: 18px;
}

/* =======================
   LISTS & ICONS
   ======================= */
ul li, ol li {
  margin-bottom: 0.6em;
  color: #3D4042;
  font-family: 'Georgia', serif;
  line-height: 1.55;
  font-size: 1.09rem;
}
ul li img, ol li img {
  height: 21px;
  width: 21px;
  margin-right: 10px;
  vertical-align: middle;
}

/* =======================
   MODALS & OVERLAYS
   ======================= */
.modal {
  position: fixed;
  z-index: 2020;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(44,62,80,0.54);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: #fff;
  padding: 40px 28px 28px 28px;
  border-radius: 18px;
  max-width: 400px;
  width: 95vw;
  box-shadow: 0 10px 40px rgba(44,62,80,0.22);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.7em;
  background: none;
  border: none;
  color: #8DB600;
  cursor: pointer;
}
.modal-content h3 {
  margin-top: 0;
  font-size: 1.21rem;
  margin-bottom: 10px;
  font-family: 'Playfair Display', 'Georgia', serif;
}

.cookie-category {
  display: flex;
  align-items: center;
  margin: 8px 0;
  gap: 12px;
}
.cookie-category input[type='checkbox'] {
  width: 20px; height: 20px;
  accent-color: #8DB600;
  border-radius: 4px;
  border: 1.5px solid #8DB600;
  outline: none;
  cursor: pointer;
}
.cookie-category label {
  font-family: 'Georgia',serif;
  font-size: 1.04rem;
  color: #2C3E50;
}

/* =======================
   COOKIE CONSENT BANNER
   ======================= */
.cookie-consent-banner {
  position: fixed;
  z-index: 2100;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1.5px solid #8DB600;
  box-shadow: 0 -2px 24px rgba(44,62,80,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 14px 22px 14px;
  transition: transform 0.32s, opacity 0.24s;
  gap: 22px;
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-consent-banner .cookie-text {
  flex: 1 1 250px;
  font-family: 'Georgia', serif;
  color: #26272A;
  font-size: 1rem;
  margin-right: 10px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}
.cookie-consent-banner button {
  min-width: 128px;
}

@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 8px 15px 8px;
    gap: 14px;
  }
  .cookie-consent-banner .cookie-actions {
    gap: 8px;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-consent-banner .cookie-text {
    margin-right: 0;
    margin-bottom: 3px;
    font-size: 0.96rem;
  }
}

/* =======================
   UTILITIES
   ======================= */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.rounded {
  border-radius: 10px;
}
.shadow {
  box-shadow: 0 2px 12px rgba(44,62,80,.09);
}
.text-center {
  text-align: center;
}
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-column {
  display: flex;
  flex-direction: column;
}
.gap-20 {
  gap: 20px;
}

/* ========== ANIMATIONS ========= */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section, .card, .testimonial-card, .modal-content {
  animation: fade-in-up 0.6s cubic-bezier(.3,.89,.59,1) both;
}

/* ========== RESPONSIVE FLEX ADJUSTMENTS ========== */
@media (max-width: 900px) {
  .container {
    padding: 0 5vw;
  }
  .card-container, .content-grid {
    gap: 15px;
  }
}
@media (max-width: 600px) {
  .content-wrapper {
    gap: 10px;
  }
  .card {
    min-width: 70vw;
    padding: 14px 8px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 13px 6px;
  }
}

/* ===== END ===== */
