/* =====================================================
   VerdureDome Immobilien Geometric Structured CSS
   (C) 2024 | Developed for premium luxury real estate
   ===================================================== */

/* ---- CSS 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;
  vertical-align: baseline;
  font: inherit;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #233642;
  background: #F7F7F7;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #233642;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.45,.05,.52,.95);
}
a:focus, a:hover {
  color: #B1A365;
  outline: none;
}
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}
ul li, ol li {
  margin-bottom: 0.6em;
}
img {
  max-width: 100%;
  display: block;
  appearance: none;
}
strong {
  font-weight: bold;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #233642;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  text-transform: uppercase;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  text-transform: uppercase;
}
h4 { font-size: 1.25rem; margin-bottom: 12px; }
h5 { font-size: 1.1rem; margin-bottom: 8px; }
h6 { font-size: 0.95rem; margin-bottom: 8px; }

p {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #233642;
}
.price {
  color: #B1A365;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  background: rgba(177,163,101,0.09);
  padding: 2px 8px;
  border-radius: 18px;
  margin-left: 5px;
}

/* ---- CONTAINER & LAYOUT PATTERNS ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 36px 0 rgba(35,54,66,0.08);
}
@media (max-width: 1000px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 40px;
    border-radius: 22px;
  }
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(35,54,66,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: 350px;
  flex: 1 1 300px;
  transition: transform 0.18s cubic-bezier(.47,.21,.69,.89),box-shadow 0.22s;
  border: 2.5px solid #F7F7F7;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(35,54,66,0.10);
  border-color: #B1A365;
  transform: translateY(-4px) scale(1.018) rotate(-1deg);
  z-index: 2;
}
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F7F7F7;
  border-left: 6px solid #B1A365;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 8px 0 rgba(35,54,66,0.08);
  font-size: 1.05rem;
  transition: box-shadow 0.18s, border-color 0.19s;
  color: #233642;
}
.testimonial-card:hover {
  box-shadow: 0 5px 22px rgba(35,54,66,0.13);
  border-color: #233642;
}
.testimonial-card p {
  flex: 1;
  color: #233642;
  margin-bottom: 0 !important;
}
.testimonial-card span {
  font-weight: 600;
  color: #B1A365;
  font-family: 'Montserrat',sans-serif;
  margin-left: 5px;
  font-size: 0.98em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- NAVIGATION ---- */
header {
  background: #fff;
  border-bottom: 1.5px solid #F7F7F7;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 1px 10px 0 rgba(35,54,66,0.04);
}
header .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
}
.logo img {
  height: 42px;
  width: auto;
  transition: filter 0.16s;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat',sans-serif;
  text-transform: uppercase;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.18s, background 0.15s;
}
header nav a:hover,
header nav a:focus {
  background: #B1A365;
  color: #fff;
}
header .btn-primary {
  margin-left: 24px;
}
header .mobile-menu-toggle {
  display: none;
}

/* ---- MOBILE NAV ---- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #233642;
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: 16px;
  z-index: 1202;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #B1A365;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: 2px 0 18px rgba(35,54,66,0.16);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.87,-.41,.19,1.44);
  z-index: 1200;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 18px; top: 16px;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #233642;
  cursor: pointer;
  z-index: 1203;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #B1A365;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 74px 32px 32px 32px;
  gap: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.18rem;
  padding: 14px 10px;
  border-radius: 0 18px 18px 0;
  color: #233642;
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #B1A365;
  color: #fff;
}

/* Responsive Nav Toggle */
@media (max-width: 990px) {
  header nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block !important;
  }
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ---- BUTTONS ---- */
.btn-primary {
  background: #B1A365;
  color: #fff !important;
  font-family: 'Montserrat',sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.03rem;
  padding: 13px 38px;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 2.5px 15px rgba(177,163,101,0.13);
  transition: background 0.19s, box-shadow 0.20s, transform 0.17s;
  letter-spacing: 0.08em;
  margin-top: 16px;
  display: inline-block;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #233642;
  color: #fff !important;
  transform: translateY(-2px) scale(1.025); 
  box-shadow: 0 6px 28px rgba(35,54,66,0.19);
}
.btn-secondary {
  background: #233642;
  color: #fff;
  font-family: 'Montserrat',sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1rem;
  padding: 11px 29px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.16s, color 0.13s;
  letter-spacing: 0.07em;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #B1A365;
  color: #fff;
}

/* ---- FOOTER ---- */
footer {
  background: #233642;
  color: #fff;
  padding: 34px 0 20px 0;
  width: 100%;
  border-top: 2px solid #B1A365;
  margin-top: 64px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
footer nav a {
  color: #fff;
  opacity: 0.88;
  font-family: 'Montserrat',sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}
footer nav a:hover,
footer nav a:focus {
  color: #B1A365;
  background: none;
}
.brand-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat',sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  opacity: 0.93;
}
.brand-footer img {
  height: 32px;
  width: 32px;
}

/* ---- SECTIONS & LISTS ---- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  width: 100%;
}
ul, ol {
  font-size: 1rem;
  margin-bottom: 0;
}
ul li, ol li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Leistungsliste mit Icons */
/* Only if icons exist */
ul li img {
  width: 34px; height: 34px; margin-right: 10px; margin-bottom: -9px;
  vertical-align: middle;
  background: #F7F7F7;
  padding: 5px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(35,54,66,0.08);
}
ul li strong {
  display: block;
  color: #233642;
  font-size: 1.08em;
  font-family: 'Montserrat',sans-serif;
  margin-top: 0.8em;
  margin-bottom: 0.5em;
}

ol {
  counter-reset: step;
}
ol li {
  position: relative;
  padding-left: 38px;
  list-style: none;
  margin-bottom: 16px;
}
ol li::before {
  counter-increment: step;
  content: counter(step) ". ";
  position: absolute;
  left: 0; top: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #B1A365;
  font-size: 1.18em;
  background: #233642;
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 990px) {
  .container { padding-left: 10px; padding-right: 10px; }
  section { padding: 28px 6px; margin-bottom: 38px; }
  .section      { padding: 24px 6px; }
  .content-grid { gap: 14px; }
}
@media (max-width: 768px) {
  .container { padding: 0 4vw; }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card { flex-direction: column; gap: 10px; padding: 14px; font-size: 1rem; }
  footer .container { gap: 8px; flex-direction: column; align-items: flex-start; }
  nav, footer nav { gap: 10px; flex-wrap: wrap; }
  .brand-footer { flex-direction: row; align-items: center; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
}
@media (max-width: 470px) {
  .container, section { padding-left: 2vw; padding-right: 2vw; }
  .section { padding: 12px 2vw; }
  .btn-primary, .btn-secondary {
    width: 100%; min-width: unset;
    text-align: center;
  }
  .mobile-nav { padding-left: 8px; padding-right: 8px; }
}

/* ---- MODALS & OVERLAYS ---- */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,54,66,0.22);
  z-index: 2004;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(.27,.65,.47,1);
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.85);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 48px rgba(35,54,66,0.33);
  padding: 38px 28px 28px 28px;
  z-index: 2006;
  min-width: 330px;
  max-width: 98vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s cubic-bezier(.38,.64,.24,1), transform 0.23s cubic-bezier(.38,.64,.24,1);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2, .cookie-modal h3 {
  color: #233642;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.03rem;
  margin: 0 0 11px 0;
}
.cookie-modal .category .toggle {
  background: #F7F7F7;
  border-radius: 18px;
  width: 44px; min-width:44px; height: 24px;
  position: relative;
  border: 2px solid #B1A365;
  cursor: pointer;
  transition: background 0.17s, border-color 0.12s;
}
.cookie-modal .category .toggle[data-checked="true"] {
  background: #B1A365;
  border-color: #B1A365;
}
.cookie-modal .category .toggle:before {
  content: '';
  display: block;
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(35,54,66,.08);
  transform: translateX(0);
  transition: transform 0.17s;
}
.cookie-modal .category .toggle[data-checked="true"]:before {
  transform: translateX(20px);
}

.cookie-modal .actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 2px;
}

.cookie-modal .actions .btn-primary, .cookie-modal .actions .btn-secondary {
  margin: 0;
  min-width: 130px;
}

.cookie-modal .close-modal {
  background: none;
  border: none;
  position: absolute;
  top: 14px; right: 16px;
  font-size: 2.0rem;
  color: #233642;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #B1A365;
}

@media (max-width: 520px) {
  .cookie-modal { padding: 22px 5vw 17px 5vw; min-width: unset; }
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #233642;
  color: #fff;
  padding: 24px 18px 20px 18px;
  box-shadow: 0 -3px 36px rgba(35,54,66,0.17);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 2001;
  font-size: 1.02rem;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: opacity 0.26s, transform 0.26s cubic-bezier(.31,1.56,.68,0.54);
}
.cookie-consent-banner.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-consent-banner__text {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  margin-right: 18px;
}
.cookie-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-consent-banner .btn-primary {
  padding: 10px 22px;
  background: #B1A365;
  color: #233642;
  font-weight: 700;
  border-radius: 14px;
  font-size: 0.94em;
}
.cookie-consent-banner .btn-primary:hover {
  background: #fff;
  color: #B1A365 !important;
}
.cookie-consent-banner .btn-secondary {
  background: #fff;
  color: #233642;
  border-radius: 14px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.94em;
}
.cookie-consent-banner .btn-secondary:hover {
  background: #B1A365;
  color: #fff;
}

@media (max-width: 690px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 7px 14px 7px;
  }
  .cookie-consent-banner__text { margin-right: 0; }
  .cookie-consent-banner__actions { gap: 10px; }
}

/* ---- GEOMETRIC / DECORATIVE DESIGN HIGHLIGHTS ---- */
section, .section {
  position: relative;
  overflow: visible;
}
.section:before {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  right: -38px;
  top: -38px;
  width: 96px; height: 96px;
  background: rgba(177,163,101,0.09);
  border-radius: 16px;
  transform: rotate(13deg);
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -24px;
  left: -32px;
  width: 64px; height: 64px;
  background: rgba(35,54,66,0.050);
  border-radius: 15px 16px 30px 10px;
  transform: rotate(-8deg);
}
@media (max-width: 700px) {
  .section:before, .section:after { display: none; }
}

/* ---- MICRO-INTERACTIONS + TRANSITIONS ---- */
.card, .btn-primary, .btn-secondary,
header nav a, footer nav a, .mobile-nav a, .testimonial-card, .cookie-consent-banner, .cookie-modal {
  will-change: transform, box-shadow, background;
  transition: background 0.15s, box-shadow 0.18s, border 0.19s, color 0.16s, transform 0.16s;
}
:focus {
  outline: 2px solid #B1A365;
  outline-offset: 2px;
}

/* ---- ACCESSIBILITY ENSURED FOR CONTRAST in TESTIMONIALS ---- */
.testimonial-card,
.cookie-consent-banner,
.cookie-modal {
  color: #233642;
  background: #F7F7F7;
}
.testimonial-card p, .testimonial-card span {
  color: #233642;
}

/* ---- MISC CLASSES & UTILITIES ---- */
.muted-text {
  color: #7C8A94;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-uppercase {
  text-transform: uppercase;
}
.rounded {
  border-radius: 16px !important;
}
.shadow {
  box-shadow: 0 2px 16px rgba(35,54,66,0.12) !important;
}
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-40 { margin-top: 40px !important; }

/* ---- PRINT OPTIMIZATION ---- */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal, .modal-backdrop {
    display: none !important;
  }
  section, .section { box-shadow: none; border: none; background: #fff; }
}

/* ------------ END ------------- */
