/* ===== Celestial Glade Immobilien – style.css ===== */
/* --- 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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  box-sizing: border-box;
  vertical-align: baseline;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: #F9F6F2;
  color: #264653;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #264653;
  text-decoration: none;
  transition: color .2s;
}
ul, ol {
  padding-left: 24px;
}
ul {
  list-style: square inside;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal;
  font-weight: 700;
  color: #264653;
  letter-spacing: 0.025em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul, ol {
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
}

/* --- STRUCTURED CONTAINER AND SECTION LAYOUT --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(38,70,83,0.08);
  position: relative;
  overflow: visible;
}

main > section:not(:last-child) {
  margin-bottom: 60px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}
.text-section {
  max-width: 720px;
}

/* --- GEOMETRIC & STRUCTURED UI ELEMENTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(38,70,83,0.08);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: box-shadow .2s;
  border: 2px solid #F9F6F2;
}
.card:hover {
  box-shadow: 0 4px 28px rgba(38,70,83,0.11);
  border-color: #A2C3B8;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F9F6F2;
  padding: 20px;
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(38,70,83,0.05);
  font-size: 1rem;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background-color: #F9F6F2;
  border-left: 7px solid #264653;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 3px 18px rgba(38,70,83,0.07);
  font-size: 1.07rem;
  color: #264653;
}
.testimonial-card p {
  color: #264653;
  font-family: 'Open Sans', Arial, sans-serif;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card strong {
  color: #264653;
  font-weight: 700;
  font-size: 1rem;
}

/* ------- HEADER & NAVIGATION -------- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 2px solid #A2C3B8;
  position: relative;
  z-index: 11;
  box-shadow: 0 2px 12px 0 rgba(38,70,83,0.05);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-left: 32px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 7px 9px;
  border-radius: 7px;
  transition: background .2s, color .2s;
  color: #264653;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #A2C3B8;
  color: #fff;
}

.btn-primary {
  background: #264653;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 12px 29px;
  border: none;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(38,70,83,0.09);
  transition: background .21s, box-shadow .21s, transform .08s;
  cursor: pointer;
  outline: none;
  margin-left: 20px;
  letter-spacing: 0.02em;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #A2C3B8;
  color: #264653 !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 38px rgba(38,70,83,0.15);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #264653;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  margin-left: 16px;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #264653;
  color: #fff;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 24px;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.52,1.7,.51,1.15);
  pointer-events: none;
  opacity: 0.99;
  /* hidden by default */
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color .2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #A2C3B8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 12px 2px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A2C3B8;
  color: #264653;
}

/* --- FOOTER --- */
footer {
  width: 100%;
  background: #264653;
  color: #fff;
  font-size: 1rem;
  padding: 38px 0 14px;
  box-shadow: 0 -2px 18px rgba(38,70,83,0.07);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 60px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 18px;
}
.footer-nav a {
  color: #A2C3B8;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: color .2s;
  font-size: 1rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
footer address {
  font-style: normal;
  margin-bottom: 12px;
  color: #A2C3B8;
  font-size: 1rem;
}
footer address a {
  color: #A2C3B8;
  margin-left: 3px;
  font-size: 1rem;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
footer address a:hover { color: #fff; }
footer span {
  color: #A2C3B8;
  font-size: 0.98rem;
  margin-top: 8px;
  display: block;
}

/* --- ICONS INLINE in lists and address --- */
ul li img, address img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}

/* --- CTA Style --- */
main section .btn-primary {
  margin: 10px 0 0 0;
}

/* --- FORM ELEMENTS (if needed) --- */
input, textarea, select, button {
  font-family: 'Open Sans', Arial, sans-serif;
}

/* --- SPACING FOR FEATURES/USPs/ABOUT --- */
ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
li {
  font-size: 1.08rem;
  line-height: 1.56;
  margin-bottom: 0;
}


/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #264653;
  color: #fff;
  padding: 26px 16px 20px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 100;
  box-shadow: 0 -6px 38px rgba(38,70,83,.12);
  font-size: 1.07rem;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  animation: cookieAppear .44s cubic-bezier(0.48,1.23,0.34,1.01);
}
@keyframes cookieAppear {
  0% { transform: translateY(110%); opacity: 0; }
 100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.cookie-banner button {
  padding: 10px 23px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  background: #A2C3B8;
  color: #264653;
  margin-left:0;
  transition: background .16s, color .13s, box-shadow .13s;
  box-shadow: 0 2px 8px rgba(38,70,83,0.07);
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #fff;
  color: #264653;
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: #A2C3B8;
  border: 1.5px solid #A2C3B8;
  padding: 9px 19px;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #A2C3B8;
  color: #264653;
}

/* --- Cookie Modal Popup --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38,70,83,0.75);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  animation: fadeInModal .27s cubic-bezier(0.55,1.32,0.59,0.95);
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #264653;
  border-radius: 18px;
  max-width: 410px;
  width: 96%;
  padding: 36px 24px 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 8px 32px rgba(38,70,83,0.17);
  font-size: 1.05rem;
  position: relative;
  z-index: 125;
  animation: modalSlide .23s cubic-bezier(0.62,1.51,0.66,1.01);
}
@keyframes modalSlide {
  0% { transform: scale(0.93) translateY(38px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal label {
  font-size: 1.03rem;
  font-family: 'Open Sans', Arial, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #A2C3B8;
  width: 20px; height: 20px;
  border-radius: 5px;
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  gap: 16px;
  margin-top: 5px;
}
.cookie-modal button {
  padding: 10px 24px;
  border-radius: 8px;
  background: #A2C3B8;
  color: #264653;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .14s, color .13s;
}
.cookie-modal button.secondary {
  background: transparent;
  color: #264653;
  border: 1.5px solid #A2C3B8;
}
.cookie-modal button.secondary:hover,
.cookie-modal button.secondary:focus {
  background: #A2C3B8;
}
.cookie-modal .modal-close-btn {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #264653;
  cursor: pointer;
  transition: color .18s;
}
.cookie-modal .modal-close-btn:hover {
  color: #A2C3B8;
}
.cookie-modal .modal-section {
  border-top: 1.5px solid #A2C3B8;
  padding-top: 13px;
  margin-top: 9px;
  font-size: 0.97rem;
}

/* --- HEADINGS, TYPOGRAPHY, AND VISUAL HIERARCHY --- */
/* (Font sizes, weights, spacing set above using geometric fonts) */

/* --- MICRO-INTERACTIONS & HOVER EFFECTS --- */
a, .btn-primary, .mobile-menu-close, .main-nav a, .footer-nav a {
  transition: color .18s, background .18s, box-shadow .18s, transform .12s;
}
li, .card, .feature-item, .testimonial-card {
  transition: box-shadow .18s, border-color .18s;
}
li:hover {
  background: rgba(162,195,184,0.07);
  border-radius: 6px;
  padding-left: 8px;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 7vw;
  }
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 26px 5vw;
  }
  .footer-nav {
    flex-direction: row;
    gap: 22px;
    margin: 22px 0 16px 0;
  }
  footer .container {
    gap: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  html { font-size: 99%; }
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
  }
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-nav {
    flex-direction: column;
    margin: 0 0 17px 0;
    gap: 10px;
  }
  .section, main > section {
    margin-bottom: 36px;
    padding: 20px 7px;
    border-radius: 10px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.16rem; }
  .testimonial-card { padding: 15px 9px; border-radius: 10px; }
  .card { padding: 18px 11px; border-radius: 8px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 24px 7px; }
  .cookie-modal { max-width: 98vw; padding: 18px 7px 14px 7px; }
  .content-wrapper, .text-section {
    align-items: flex-start;
    max-width: 100%;
  }
  ul { gap: 13px; }
}

@media (max-width: 520px) {
  .container {
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .section {
    padding: 8px 2vw;
  }
  .btn-primary {
    font-size: 0.99rem;
    padding: 10px 16px;
  }
  h1 { font-size: 1.44rem; }
  h2 { font-size: 1.10rem; }
}

@media (max-width: 399px) {
  .cookie-modal-overlay, .cookie-modal {
    padding: 4px 0;
  }
}

/* --- FLEXBOX LAYOUT/ALIGNMENT ENFORCEMENT (NEVER GRID) --- */
/* Already ensured above. All layout containers use display:flex and flex-wrap where relevant. */

/* --- FOCUS/ACCESSIBILITY --- */
a:focus, button:focus, input:focus, .btn-primary:focus {
  outline: 2.5px dashed #A2C3B8;
  outline-offset: 3px;
}

/* --- GEOMETRIC DESIGN EXTRAS --- */
.section::before {
  content: '';
  display: block;
  position: absolute;
  top: -34px; left: -34px;
  width: 52px; height: 52px;
  background: #A2C3B8;
  opacity: 0.09;
  border-radius: 13px 0 34px 0;
  z-index: 0;
  pointer-events: none;
}
.section::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -20px; right: -30px;
  width: 38px; height: 38px;
  background: #A2C3B8;
  opacity: 0.13;
  border-radius: 0 8px 8px 36px;
  z-index: 0;
  pointer-events: none;
}

.section, .card, .feature-item, .testimonial-card, .cookie-modal, .cookie-banner {
  position: relative;
  z-index: 1;
}

/* --- END --- */
