/* ========================================================
   Scandinavian Clean CSS – Ripiovulga Immobilien
   Brand colors: #244A75 (primary), #8FC87E (secondary), #F5F2EC (accent)
   Fonts: Montserrat (display), Roboto (body)
   Responsive, flexbox-only, no CSS grid/columns
   ========================================================= */
/* ----- CSS RESET & BASE 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;
  background: #F5F2EC;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #244A75;
  background: #F5F2EC;
  font-size: 16px;
  min-height: 100vh;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: #244A75;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #8FC87E;
  text-decoration: underline;
  outline: none;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
  border-radius: 0;
  outline: none;
}
ul, ol {
  margin: 0 0 16px 20px;
  padding: 0;
}
li {
  margin-bottom: 8px;
}

/* ----- FONTS (FALLBACK) ----- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #244A75;
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: 2.7rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1.1rem; }
p, .text-section p, .subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  color: #244A75;
  line-height: 1.7;
  font-size: 16px;
}
.subheadline {
  font-size: 1.1rem;
  color: #466385;
  margin-bottom: 24px;
}
strong {
  font-weight: 600;
}

/* =============================================================
   LAYOUT & SPACING PATTERNS - SCANDINAVIAN CLEAN
   ============================================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(36,74,117,0.06);
}
@media (max-width: 900px) {
  .container { padding: 0 10px; }
  .section { padding: 32px 10px; }
}

/* ---- Flex Containers ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(36,74,117,0.07);
  padding: 24px 20px;
  transition: box-shadow 0.2s;
  flex: 1 1 320px;
  min-width: 0;
}
.card:hover {
  box-shadow: 0 4px 20px 0 rgba(36,74,117,0.12);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f8faf7;
  border-radius: 14px;
  box-shadow: 0 2px 9px 0 rgba(36,74,117,0.06);
  margin-bottom: 20px;
  color: #244A75;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 210px;
  background: #FFF;
  padding: 22px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(36,74,117,0.05);
  min-width: 180px;
}
.feature-item img {
  height: 38px;
  margin-bottom: 8px;
}

/* ---- Responsive Flex Direction ---- */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
    align-items: stretch;
  }
  .card-container, .content-grid, .feature-grid, .features-grid, .services-list, .property-cards, .property-list, .article-cards, .team-profiles, .service-cards {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .testimonial-list {
    flex-direction: column !important;
    gap: 18px !important;
  }
}

/* =============================================================
   HEADER, NAVIGATION & CTA BUTTONS
   ============================================================= */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 3px 8px 0 rgba(36,74,117,0.04);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: relative;
  z-index: 20;
}
.logo img {
  height: 46px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin-left: 36px;
}
.main-nav a {
  padding: 7px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #244A75;
  background: transparent;
  border-radius: 3px;
  transition: color 0.18s, background 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #fff;
  background: #8FC87E;
  outline: none;
}
.cta-btn {
  background: #244A75;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 11px 30px;
  border-radius: 23px;
  font-weight: 600;
  margin-left: 36px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px 0 rgba(36,74,117,0.08);
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  display: inline-block;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #8FC87E;
  color: #244A75;
  box-shadow: 0 4px 18px 0 rgba(36,74,117,0.15);
  outline: none;
  text-decoration: none;
}
/* Hamburger for mobile */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 19px;
  right: 22px;
  background: #244A75;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 2rem;
  padding: 7px 14px 7px 14px;
  cursor: pointer;
  z-index: 51;
  transition: background 0.18s;
  box-shadow: 0 2px 8px 0 rgba(36,74,117,0.10);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #8FC87E;
  color: #244A75;
  outline: none;
}
/* Hide main-nav and show burger on mobile */
@media (max-width: 900px) {
  .main-nav,
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header {
    padding: 12px 10px 12px 10px;
  }
}

/* ---- MOBILE BURGER MENU ---- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  background: #fff;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
  padding-left: 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.47,1.64,.41,.8);
  box-shadow: 9px 0 22px -9px rgba(36,74,117,0.12);
  width: 85vw;
  max-width: 370px;
  min-width: 220px;
  height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 20px 16px 0;
  font-size: 2rem;
  color: #244A75;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1003;
  transition: color 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #8FC87E;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: 0 28px 28px 28px;
}
.mobile-nav a {
  color: #244A75;
  font-size: 1.1rem;
  padding: 13px 0;
  border-bottom: 1px solid #F5F2EC;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #8FC87E;
  background: #F5F2EC;
  border-radius: 4px;
  outline: none;
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}
/* Dark fade overlay on menu open */
body.menu-open::before {
  content: "";
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(36,74,117,0.3);
  z-index: 1001;
  pointer-events: auto;
}
body.menu-open {
  overflow: hidden;
}

/* =======================================================
   HERO SECTIONS
   ======================================================= */
.hero {
  background: #F5F2EC;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 50px 0 30px 0;
}
.hero .container {
  padding-top: 0;
}
.hero h1 {
  font-size: 2.3rem;
  color: #244A75;
  margin-bottom: 12px;
}
@media (max-width: 700px) {
  .hero {
    padding: 34px 0 18px 0;
    min-height: 160px;
  }
  .hero h1 {
    font-size: 1.45rem;
    margin-bottom: 12px;
  }
}

/* =======================================================
   FEATURES + SERVICES FLEX
   ======================================================= */
.features, .features-grid, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.services-list, .service-cards, .article-cards, .property-cards, .property-list, .testimonial-list, .team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.service-item, .service-card, .article-card, .property-card, .team-member {
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(36,74,117,0.06);
  padding: 22px 18px;
  min-width: 0;
  transition: box-shadow 0.2s;
}
.property-card {
  flex: 1 1 250px;
  min-width: 200px;
  margin-bottom: 20px;
}
.service-item img, .service-card img {
  height: 34px;
  margin-bottom: 7px;
}
.service-item h3, .service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.service-item p, .service-card p {
  color: #466385;
  font-size: 15px;
}
.service-item:hover, .service-card:hover, .property-card:hover, .team-member:hover, .article-card:hover {
  box-shadow: 0 4px 20px 0 rgba(36,74,117,0.12);
}
@media (max-width: 720px) {
  .feature-grid, .features-grid, .service-cards, .services-list, .property-cards, .property-list, .article-cards, .team-profiles {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .feature-item, .service-item, .service-card, .property-card, .team-member, .article-card {
    min-width: 0 !important;
  }
}

/* ===========================================================
   TESTIMONIALS
   =========================================================== */
.testimonials {
  background: #f4faf4;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonials h2 {
  color: #244A75;
  margin-bottom: 22px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 26px;
}
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(36,74,117,0.08);
  padding: 22px 22px 18px 22px;
  color: #244A75;
  font-size: 1rem;
  width: 100%;
  max-width: 380px;
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #244A75;
  margin-bottom: 7px;
}
.testimonial-card span {
  font-size: 15px;
  color: #466385;
  font-family: 'Roboto', Arial, sans-serif;
}
/* Trust signals */
.trust-signals ul {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex-wrap: wrap;
}
.trust-signals li {
  display: flex;
  align-items: center;
  gap:7px;
  font-size: 15px;
  color: #466385;
}
.trust-signals img {
  height: 22px;
}
@media (max-width: 700px) {
  .testimonial-list {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .testimonial-card {
    max-width: none;
    min-width: 0;
    width: 100%;
  }
}

/* ===========================================================
   CTA BANNER
   =========================================================== */
.cta-banner {
  background: #8FC87E;
  color: #244A75;
  border-radius: 24px;
  padding: 46px 20px 42px 20px;
  margin-bottom: 64px;
  text-align: center;
}
.cta-banner h2 {
  color: #244A75;
  margin-bottom: 14px;
  font-size: 1.7rem;
}
.cta-banner p {
  color: #244A75;
  font-size: 1.05rem;
  margin-bottom: 22px;
}
.cta-banner .cta-btn {
  background: #244A75;
  color: #fff;
}
.cta-banner .cta-btn:hover, 
.cta-banner .cta-btn:focus {
  background: #fff;
  color: #244A75;
  border: 1px solid #244A75;
}
@media (max-width: 600px) {
  .cta-banner {
    padding: 24px 8px 20px 8px;
    border-radius: 14px;
    margin-bottom: 38px;
  }
}

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  background: #fff;
  border-top: 1px solid #E8E8E0;
  color: #244A75;
  padding: 36px 0 16px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #244A75;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 4px 7px;
  border-radius: 3px;
  transition: color 0.16s, background 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  background: #8FC87E;
  outline: none;
}
.footer-info {
  font-size: 15px;
  color: #466385;
  margin-bottom: 13px;
  line-height: 1.7;
}
.footer-copy {
  font-size: 14px;
  color: #7994b4;
  margin-top: 8px;
}
@media (max-width: 700px) {
  .footer-nav {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }
  footer {
    padding: 22px 0 8px 0;
  }
}

/* ===========================================================
   MISCELLANEOUS UI COMPONENTS
   =========================================================== */
input[type="text"], input[type="search"], input[type="email"], input[type="tel"], textarea {
  background: #F5F2EC;
  border: 1px solid #d3d5cf;
  color: #244A75;
  border-radius: 5px;
  margin-bottom: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  transition: border-color 0.19s;
  width: 100%;
  max-width: 450px;
  box-sizing: border-box;
}
input[type="text"]:focus, input[type="search"]:focus,
input[type="email"]:focus, textarea:focus {
  border-color: #8FC87E;
  outline: none;
}
button[type="submit"], form button {
  background: #244A75;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 22px;
  border-radius: 19px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  margin-top: 5px;
}
button[type="submit"]:hover, button[type="submit"]:focus, form button:hover, form button:focus {
  background: #8FC87E;
  color: #244A75;
  outline: none;
}

.filter-form {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-bottom: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-form input[type="text"] {
  flex: 2 1 160px;
  min-width: 120px;
  margin-bottom: 0;
}
.filter-form button {
  flex: 0 0 auto;
}
@media (max-width: 540px) {
  .filter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
}

/* Map & Contact blocks */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.map-embed {
  background: #F5F2EC;
  border-radius: 10px;
  padding: 18px 16px;
  color: #466385;
}
.team-member-short, .team-member {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(36,74,117,0.05);
  padding: 20px 15px;
  min-width: 190px;
  margin-bottom: 20px;
}
.team-member-short h3, .team-member h3 {
  font-size: 1.14rem;
  color: #244A75;
  margin-bottom: 5px;
}
.team-member-short p, .team-member span {
  color: #466385;
  font-size: 15px;
}
.contact-methods {
  margin-top: 8px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-methods li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
}

/* ===========================================================
   ACCORDION FAQS (basic open/close, rest via JS)
   =========================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.faq-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px 0 rgba(36,74,117,0.05);
  padding: 16px 18px;
  cursor: pointer;
  transition: box-shadow 0.18s;
}
.faq-item h3 {
  font-size: 1.05rem;
  color: #244A75;
  margin-bottom: 7px;
}
.faq-item > div {
  color: #466385;
  font-size: 15px;
  display: block; /* For JS show/hide effect */
}
.faq-item.open {
  box-shadow: 0 4px 14px 0 rgba(36,74,117,0.10);
}

/* Timeline + Steps */
.timeline ul,
.selling-process ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 25px;
}
.selling-process ol li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.selling-process img {
  height: 26px;
  margin-right: 4px;
  flex-shrink:0;
  margin-top: 4px;
}

/**** Categories List ****/
.categories-list {
  margin-top: 14px;
}
.categories-list ul {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.categories-list li {
  background: #F5F2EC;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: #244A75;
}
@media (max-width: 600px) {
  .categories-list ul {
    flex-direction: column;
    gap: 6px;
  }
}

/* ===========================================================
   LEGAL PAGES TYPOGRAPHY
   =========================================================== */
.legal {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.legal h1 {
  font-size: 2rem;
  color: #244A75;
  margin-bottom: 20px;
}
.legal h2 {
  font-size: 1.22rem;
  color: #244A75;
  margin-top: 22px;
}
.legal .text-section p {
  color: #466385;
  margin-bottom: 15px;
}
.legal ul {
  margin-bottom: 20px;
}
.legal li {
  color: #466385;
}

/* ===========================================================
   CONFIRMATION PAGE
   =========================================================== */
.confirmation {
  background: #f4faf4;
  border-radius: 17px;
  padding: 38px 20px 38px 20px;
  margin-bottom: 54px;
}
.confirmation h1,
.confirmation .cta-btn {
  text-align: center;
}
.confirmation .cta-btn {
  margin-top: 26px;
}
.confirmation .text-section ul {
  margin-bottom: 15px;
  margin-top: 6px;
}

/* ===========================================================
   COOKIE CONSENT BANNER + MODAL
   =========================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #244A75;
  color: #fff;
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  box-shadow: 0 -2px 26px 0 rgba(36,74,117,0.10);
  font-size: 1rem;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-consent-banner button {
  padding: 8px 22px;
  border-radius: 23px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  background: #8FC87E;
  color: #244A75;
}
.cookie-consent-banner button:hover,
.cookie-consent-banner button:focus {
  background: #fff;
  color: #244A75;
  outline:none;
}
.cookie-consent-banner .cookie-settings-btn {
  background: #fff;
  color: #244A75;
  border: 1px solid #8FC87E;
}
.cookie-consent-banner .cookie-settings-btn:hover {
  color: #244A75;
  background: #F5F2EC;
  border-color: #244A75;
}
@media (max-width: 750px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 8px 15px 8px;
    gap: 12px;
    font-size: 0.98rem;
  }
  .cookie-consent-banner .cookie-actions {
    justify-content: flex-start;
    gap: 8px;
  }
}

/* COOKIE MODAL (pref modal) */
.cookie-modal-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 3500;
  background: rgba(36,74,117,0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeinModal 0.35s;
}
@keyframes fadeinModal { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px 0 rgba(36,74,117,0.14);
  width: 95vw;
  max-width: 420px;
  padding: 34px 30px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 19px;
  animation: popinModal 0.25s cubic-bezier(.39,1.57,.58,1);
}
@keyframes popinModal {from{transform: scale(0.96); opacity: 0;} to{transform: scale(1); opacity:1;}}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #244A75;
  text-align: left;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.cookie-category label {
  font-size: 1rem;
  color: #244A75;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 21px;
}
.cookie-switch input { display: none; }
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right:0; bottom: 0;
  background: #d3d5cf;
  border-radius: 20px;
  transition: background 0.18s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #8FC87E;
}
.cookie-slider::before {
  content: "";
  position: absolute;
  left: 2px; top: 2px;
  width: 17px; height: 17px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-switch input:checked + .cookie-slider::before {
  transform: translateX(17px);
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 11px;
  justify-content: flex-end;
}
.cookie-modal .cookie-save-btn {
  background: #8FC87E;
  color: #244A75;
  border: none;
  padding: 8px 20px;
  border-radius: 19px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-modal .cookie-save-btn:hover {
  background: #244A75;
  color: #fff;
}
.cookie-modal .cookie-cancel-btn {
  background: #fff;
  color: #244A75;
  border: 1px solid #8FC87E;
  border-radius: 19px;
  padding: 8px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.cookie-modal .cookie-cancel-btn:hover {
  background: #F5F2EC;
}

/* Always enabled badge for essential cookies */
.cookie-essential-badge {
  background: #8FC87E;
  color: #244A75;
  font-size: 13px;
  border-radius: 8px;
  padding: 3px 10px;
  margin-left: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* =======================
   ANIMATIONS & HOVER FX
   ======================= */
a, .cta-btn, .service-item, .service-card, .article-card, .feature-item, .property-card, .team-member, .card, .faq-item, .testimonial-card, button, input[type="submit"], .cookie-consent-banner button {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.feature-item:hover { box-shadow: 0 4px 18px 0 rgba(36,74,117,0.10); }
.service-item:hover, .service-card:hover, .article-card:hover, .team-member:hover, .property-card:hover {
  box-shadow: 0 5px 25px 0 rgba(36,74,117,0.14) !important;
}

/* =======================
   UTILITY CLASSES
   ======================= */
.mt-40 { margin-top: 40px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* =======================
   SPACING BETWEEN MAJOR SECTIONS
   ======================= */
section + section {
  margin-top: 48px;
}
@media (max-width: 750px) {
  section + section {
    margin-top: 30px;
  }
}

/* =======================
   BRAND COLOR OVERRIDES
   ======================= */
.bg-brand-primary { background: #244A75 !important; color: #fff !important; }
.bg-brand-secondary { background: #8FC87E !important; color: #244A75 !important; }
.bg-brand-accent { background: #F5F2EC !important; color: #244A75 !important; }
.text-brand-primary { color: #244A75 !important; }
.text-brand-secondary { color: #8FC87E !important; }
.text-brand-accent { color: #F5F2EC !important; }

/* =======================
   ENSURE FLEXBOX USAGE ONLY
   (No "display: grid" or columns anywhere!)
   ======================= */

/* END OF SCANDINAVIAN_CLEAN CSS FOR RIPIOVULGA IMMOBILIEN */
