/* =============================================================
   ImmoVisio Essen Style – Elegant Classic (Flexbox Only)
   ============================================================= */

/* =============================
   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;
}
body {
  line-height: 1.5;
  background: #F7F7F7;
  color: #183153;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ===============
    BRAND FONTS
   =============== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Crimson+Text:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

html {
  font-size: 16px;
}
body {
  font-family: 'Crimson Text', 'Georgia', serif;
  font-size: 1.125rem; /* 18px */
  letter-spacing: 0.02em;
  background: #F7F7F7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Crimson Text', serif;
  letter-spacing: 0.01em;
  color: #183153;
  font-weight: 700;
}
h1 {font-size: 2.5rem; margin-bottom: 24px;}
h2 {font-size: 2rem; margin-bottom: 18px;}
h3 {font-size: 1.4rem; margin-bottom: 12px;}
h4, h5, h6 {font-size: 1.1rem; margin-bottom: 8px;}

p, li, td, th, blockquote, cite {
  font-family: 'Crimson Text', 'Georgia', serif;
  font-size: 1.125rem;
  color: #26375c;
  line-height: 1.7;
}
blockquote {
  font-size: 1.25rem;
  font-style: italic;
  border-left: 4px solid #25897B;
  margin: 0 0 10px 0;
  padding: 0 0 0 18px;
  color: #183153;
}
cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  color: #25897B;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

strong, b {
  font-weight: 700;
}


/* =============================
    LAYOUT
   ============================= */

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ==================================
    HEADER, NAVIGATION, & BURGER MENU
   ================================== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(24,49,83,0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}
header img {
  height: 44px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Crimson Text', serif;
  color: #183153;
  font-size: 1.1rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #25897B;
}

.cta-btn {
  font-family: 'Montserrat', 'Crimson Text', serif;
  background: #25897B;
  color: #fff !important;
  padding: 12px 28px;
  min-width: 160px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 1.13rem;
  letter-spacing: 0.03em;
  outline: none;
  border: none;
  box-shadow: 0 2px 8px rgba(37,137,123,0.10);
  display: inline-block;
  transition: background 0.18s, transform 0.13s, box-shadow 0.19s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #183153;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 18px rgba(24,49,83,0.14);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #183153;
  cursor: pointer;
  transition: color 0.18s;
  margin-left: 6px;
  padding: 4px 12px;
  z-index: 1101;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #25897B;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 49, 83, 0.93);
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.57,.3,.21,1.02);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #fff;
  margin: 24px 36px 12px 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #25897B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
  width: 80vw;
  max-width: 350px;
  margin: 28px auto 0 auto;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Crimson Text', serif;
  font-size: 1.3rem;
  padding: 14px 0 14px 12px;
  border-radius: 4px;
  transition: background 0.16s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #25897B;
  background: rgba(247,247,247,0.08);
}


/* =============================
    HERO, CONTENT, SECTIONS
   ============================= */
.subheadline {
  font-size: 1.3rem;
  font-family: 'Crimson Text', 'Georgia', serif;
  color: #25897B;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 12px 0;
  padding: 0;
  align-items: flex-start;
}
.features-list li {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(24, 49, 83, 0.05);
  padding: 28px 24px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.23s, transform 0.16s;
}
.features-list li:hover {
  box-shadow: 0 6px 18px rgba(37,137,123,0.12);
  transform: translateY(-4px) scale(1.01);
}
.features-list img {
  width: 42px;
  height: 42px;
  filter: grayscale(0.2) contrast(1.1);
}
.features-list h3, .features-list h2 {
  font-size: 1.29rem;
  font-family: 'Montserrat', 'Crimson Text', serif;
  margin: 0 0 7px 0;
}
.service-highlight {
  background: #183153;
  color: #fff;
  border-radius: 14px;
  padding: 3px 14px;
  font-size: 0.98rem;
  font-family: 'Montserrat', 'Crimson Text', serif;
  margin-top: 8px;
  letter-spacing: 0.01em;
}

.trust-symbols {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
}
.trust-symbols span {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', 'Crimson Text', serif;
  color: #25897B;
  font-weight: 700;
  font-size: 1.01rem;
  gap: 9px;
}
.trust-symbols img {
  width: 28px;
  height: 28px;
}

.CAT {
  align-items: center !important;
  text-align: center;
}

/* CTA section */
.CTA {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 30px;
  padding: 40px 28px;
  margin: 24px auto 0 auto;
  box-shadow: 0 3px 27px 0 rgba(24,49,83,0.05);
  gap: 18px;
}

/* Cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(24,49,83,0.07);
  padding: 34px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  flex: 1 1 270px;
  transition: box-shadow 0.23s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 6px 16px rgba(24,49,83,0.14);
  transform: translateY(-2px) scale(1.01);
}

/* Content grid */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ===========================
   TESTIMONIAL CARDS & HIGHLIGHTED SECTIONS
   =========================== */
.testimonial-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  gap: 20px;
  padding: 20px 30px;
  margin-bottom: 24px;
  box-shadow: 0 2px 13px rgba(24,49,83,0.13);
  border-left: 5px solid #25897B;
  position: relative;
  transition: box-shadow 0.23s, transform 0.14s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(37,137,123,0.12);
  transform: translateY(-2px) scale(1.02);
}
.testimonial-card blockquote {
  color: #183153;
  font-size: 1.17rem;
}
.testimonial-card cite {
  color: #25897B;
  font-size: 1rem;
  margin-left: 26px;
}

/* ================
  Feature item
  ================ */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

/* ================
  Tables
  ================ */
table {
  width: 100%;
  margin: 18px 0 27px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(24,49,83,0.07);
  font-size: 1.09rem;
}
thead tr {
  background: #25897B;
  color: #fff;
  font-family: 'Montserrat', serif;
  text-align: left;
}
th, td {
  padding: 14px 18px;
}
th {
  font-weight: 700;
}
tbody tr:nth-child(even) {
  background: #F2F7F6;
}
tbody td {
  color: #183153;
}


/* ===================
   Footer
  =================== */
footer {
  background: #fff;
  border-top: 1.5px solid #E0E4EA;
  padding: 36px 0 20px 0;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #183153;
  font-size: 1.05rem;
  font-family: 'Montserrat', 'Crimson Text', serif;
  opacity: 0.81;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #25897B;
  text-decoration: underline;
  opacity: 1;
}
footer p {
  color: #669;
  font-size: 0.95rem;
  opacity: 0.8;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ==========
  Cookie banner
  ========== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1400;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: none;
  pointer-events: none;
}
.cookie-consent-inner {
  pointer-events: all;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -2px 18px rgba(24,49,83,0.12);
  padding: 24px 32px 22px 32px;
  margin: 0 0 0 0;
  min-width: 280px;
  width: 90vw;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  animation: cookieBannerSlideIn 0.7s cubic-bezier(.26,1.14,.65,.97);
}
@keyframes cookieBannerSlideIn {
  from {transform: translateY(80px); opacity:0;}
  to {transform: translateY(0); opacity:1;}
}
.cookie-consent-inner p {
  color: #183153;
  font-family: 'Crimson Text', serif;
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.cookie-btn {
  font-family: 'Montserrat', serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 9px 22px;
  border-radius: 17px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.15s;
  outline: none;
  background: #25897B;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,137,123,0.15);
}
.cookie-btn.secondary {
  background: #183153;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  border: 1.5px solid #25897B;
  color: #25897B;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #3dcfb8;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,137,123,0.19);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #25897B;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1850;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(24,49,83, 0.60);
  justify-content: center;
  align-items: center;
  animation: cookieModalFadeIn 0.32s both;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes cookieModalFadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-modal {
  background: #fff;
  padding: 36px 28px 24px 28px;
  border-radius: 22px;
  max-width: 420px;
  width: 92vw;
  box-shadow: 0 4px 34px rgba(24,49,83,0.13);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #183153;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1.06rem;
  cursor: pointer;
}
.cookie-toggle {
  appearance: none;
  width: 32px;
  height: 18px;
  background: #ccc;
  border-radius: 13px;
  position: relative;
  transition: background 0.13s;
  outline: none;
  border: none;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #25897B;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.13s;
}
.cookie-toggle:checked::before {
  left: 17px;
}
.cookie-modal-footer {
  margin-top: 12px;
  display: flex;
  gap: 14px;
}
.cookie-modal .cookie-btn {
  min-width: 88px;
}


/* ===============
   Typography overrides for generic element spacing
   =============== */
.text-section p,
.text-section ul, .text-section ol,
section p, section ul, section ol {
  margin-bottom: 12px;
}
section ul, section ol {
  padding-left: 18px;
  margin-bottom: 16px;
}

section ul li, section ol li {
  margin-bottom: 11px;
  position: relative;
}
section ul li::before {
  content: '\2022';
  position: absolute;
  left: -15px;
  color: #25897B;
  font-size: 1.02em;
  line-height: 1;
  top: 0.5em;
}
section ol {
  counter-reset: ol;
}
section ol li {
  counter-increment: ol;
}
section ol li::before {
  content: counter(ol) ".";
  position: absolute;
  left: -22px;
  color: #25897B;
  font-weight: bold;
}

.text-section img {
  vertical-align: middle;
  margin-right: 7px;
  width: 1.2em;
  height: 1.2em;
  object-fit: contain;
  display: inline-block;
}

/* =================================================
   RESPONSIVE DESIGN (Mobile First approach)
   ================================================= */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
}

@media (max-width: 900px) {
  .features-list {
    gap: 16px;
  }
  .testimonial-card {
    padding: 18px 12px;
  }
}

@media (max-width: 768px) {

  header .container {
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: initial;
  }
  .cta-btn {
    padding: 10px 18px;
    font-size: 1rem;
    min-width: 120px;
  }
  .features-list {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 18px 8px;
  }
  .trust-symbols {
    gap: 12px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .container {
    padding: 0 9px;
  }
  .CTA {
    padding: 28px 7px;
    border-radius: 20px;
  }
  .section {
    padding: 28px 5px;
    margin-bottom: 34px;
  }
  table {
    font-size: 0.97rem;
  }
}

@media (max-width: 540px) {
  h1 {font-size: 1.8rem;}
  h2 {font-size: 1.3rem;}
  .footer-nav {
    flex-direction: column;
    gap: 7px;
    margin-bottom: 6px;
  }
  .cookie-consent-inner {
    padding: 22px 10px 19px 10px;
    min-width: 160px;
    max-width: 99vw;
  }
}

/* ===========================
   MICRO-INTERACTIONS / ANIMATIONS
   =========================== */

.card, .testimonial-card, .features-list li, .CTA, .cookie-consent-inner, .cookie-modal {
  transition: box-shadow 0.19s, transform 0.18s, background 0.18s;
}
a, .main-nav a, .footer-nav a, .cta-btn, .cookie-btn {
  transition: color 0.14s, background 0.16s, transform 0.17s, box-shadow 0.15s;
}

/* ================
   COMMON FLEX LAYOUT UTILITY
   ================ */
.flex {
  display: flex !important;
}
.flex-center {
  justify-content: center !important;
  align-items: center !important;
}
.flex-col {
  flex-direction: column !important;
}
.flex-row {
  flex-direction: row !important;
}
.gap-20 { gap: 20px !important; }
.gap-28 { gap: 28px !important; }

/* ================
   Accessibility
   ================ */
:focus {
  outline: 2px solid #25897B;
  outline-offset: 1px;
}

::-webkit-input-placeholder {color: #8D9EB8;}
::-moz-placeholder {color: #8D9EB8;}
:-ms-input-placeholder {color: #8D9EB8;}
::placeholder {color: #8D9EB8;}

/* ==========================
    Print style simplification
   ========================== */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner {display: none !important;}
  .container {max-width: 100vw; padding: 0;}
}

/* ================
   Hide mobile menu overlay by default
   ================ */
.mobile-menu {
  display: flex;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
}

/* =============================
   END ImmoVisio Essen CSS
   ============================= */
