/* RESET & BASE TYPOGRAPHY ------------------ */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  color: #1C2233;
  background: #F5F5F2;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; transition: color 0.15s; }
img { max-width: 100%; display: block; border-radius: 10px; }
ul, ol { list-style: none; }

/* ROOT COLOR & FONT VARS -------------------- */
:root {
  --color-primary: #1C2233;
  --color-secondary: #A89D8D;
  --color-accent: #F5F5F2;
  --color-warm1: #F9E9D2; /* warm beige */
  --color-warm2: #F7D9BC; /* soft accent */
  --color-warm-shadow: rgba(168, 157, 141, 0.07);
  --color-neutral: #eee4dc;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', Arial, Helvetica, sans-serif;

  --shadow-soft: 0 4px 24px var(--color-warm-shadow), 0 1.5px 7px #d5c6ac4a;
  --shadow-light: 0 1px 6px rgba(194, 167, 126, 0.11);
  --border-radius: 18px;
}

/* CONTAINER & LAYOUT ------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 900px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 30px 8px;
    margin-bottom: 40px;
  }
}
@media (max-width: 600px) {
  .section {
    padding: 20px 5px;
    margin-bottom: 32px;
  }
}

/* HEADER & NAVIGATION ----------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 24px var(--color-warm-shadow);
  position: sticky;
  top: 0;
  z-index: 48;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}
.logo img { height: 44px; width: auto; border-radius: 0; }

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 500;
  padding: 8px 6px;
  border-radius: 10px;
  transition: background 0.2s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-warm1);
  color: var(--color-secondary);
}

.cta.primary,
.cta.secondary {
  display: inline-block;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 22px;
  padding: 13px 30px;
  font-size: 17px;
  transition: background .18s, color .18s, box-shadow .23s;
  box-shadow: 0 1.5px 9px var(--color-warm-shadow);
  cursor: pointer;
}

.cta.primary {
  background: var(--color-secondary);
  color: #fff;
}
.cta.primary:hover, .cta.primary:focus {
  background: #8e8272;
  color: #fff;
  box-shadow: 0 4px 24px var(--color-warm-shadow), 0 1.5px 15px #c9b89d4d;
}
.cta.secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-warm1);
  color: var(--color-primary);
  border-color: var(--color-warm2);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-warm1);
  border: none;
  font-size: 2em;
  border-radius: 15px;
  padding: 7px 13px;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.18s;
  margin-left: 10px;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-warm2);
}

/* Hide nav/show burger on mobile */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .cta.primary { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* MOBILE MENU ------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 999;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.78,.1,.24,.96);
  box-shadow: 0 2px 24px var(--color-warm-shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-warm2);
  color: var(--color-primary);
  font-size: 2.3em;
  border: none;
  border-radius: 14px;
  margin: 25px 28px 10px 22px;
  align-self: flex-end;
  cursor: pointer;
  transition: background 0.17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-warm1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 32px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  padding: 14px 30px;
  width: 100%;
  text-align: center;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-primary);
  border-radius: 13px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-warm1);
  color: var(--color-secondary);
}

@media (max-width: 900px) {
  .mobile-menu {
    display: flex;
  }
}

/* HERO SECTION ----------------------------- */
.hero {
  background: linear-gradient(120deg, var(--color-warm1) 65%, #fff 100%);
  border-radius: var(--border-radius);
  padding: 48px 0 38px 0;
  margin-bottom: 52px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 28px;
  max-width: 650px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6em;
  color: var(--color-primary);
  margin-bottom: 5px;
  line-height: 1.13;
}
.hero p {
  font-size: 1.15em;
  color: var(--color-primary);
  margin-bottom: 8px;
  margin-top: 0;
}
.hero .cta.primary {
  margin-top: 15px;
}
@media (max-width: 650px){
  .hero{ padding: 30px 0; }
  .hero h1{font-size: 2.15em;}
}

/* SECTION HEADINGS AND TEXT ---------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
}
h1 { font-size: 2.2em; margin-bottom: 10px; }
h2 { font-size: 1.65em; margin-bottom: 15px; }
h3 { font-size: 1.17em; margin-bottom: 7px; }
p, li, span {
  font-family: var(--font-body);
  font-size: 1em;
  color: var(--color-primary);
}
p { margin-bottom: 10px; }
strong { font-weight: bold; color: var(--color-secondary); }

@media (max-width: 600px) {
  h1 { font-size: 1.55em; }
  h2 { font-size: 1.18em; }
  h3 { font-size: 1.07em; }
}

.text-section {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  padding: 26px 18px;
  margin-bottom: 20px;
}
@media (max-width: 700px) {
  .text-section { padding: 18px 8px; }
}

/* CARD / GRID COMPONENTS ------------------- */
.feature-grid,
.icon-grid,
.service-cards,
.property-types-grid,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.feature-grid li, .icon-grid li, .service-card, .property-type, .service-list li {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 28px 20px 22px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  min-width: 235px;
  flex: 1 1 245px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-grid li:hover, .icon-grid li:hover, .service-card:hover, .property-type:hover {
  box-shadow: 0 7px 32px var(--color-warm-shadow);
  transform: translateY(-2px) scale(1.023);
}

.feature-grid img, .icon-grid img, .service-card img, .property-type img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  border-radius: 9px;
  background: var(--color-accent);
  box-shadow: 0 1px 7px #eadfc84c;
}

.property-type h3, .service-card h3, .feature-grid h3 { margin-top: 6px; }
.service-card a {
  color: var(--color-secondary);
  font-weight: 500;
  text-decoration: underline;
  margin-top: auto;
  align-self: flex-start;
  transition: color 0.18s;
}
.service-card a:hover, .service-card a:focus {
  color: var(--color-primary);
  text-decoration: none;
}

/* FILTER TAGS (luxusimmobilien) ------------ */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 12px 0;
}
.filter-tags span {
  padding: 7px 18px;
  border-radius: 22px;
  background: var(--color-warm2);
  color: var(--color-primary);
  font-size: 15px;
  font-family: var(--font-body);
}

/* SERVICE LIST (dienstleistungen) ---------- */
.service-list li {
  flex: 1 1 270px;
  gap: 10px;
  border-left: 5px solid var(--color-warm2);
  min-width: 215px;
}
.service-list h3 { margin-bottom: 0; }
.service-list span {
  background: var(--color-warm2);
  color: var(--color-primary);
  border-radius: 12px;
  padding: 4px 13px;
  font-size: 14px;
  font-weight: 500;
}

/* OL/STEP COMPONENTS (investment, bewertung) */
ol.step-by-step, .investment-consulting-steps ol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  margin-top: 18px;
  padding-left: 0;
}
ol.step-by-step li, .investment-consulting-steps ol li {
  background: var(--color-warm1);
  padding: 12px 16px;
  border-radius: 13px;
  font-size: 1em;
  color: var(--color-primary);
}

/* TESTIMONIALS ----------------------------- */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius);
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  min-width: 230px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  transition: box-shadow 0.24s, transform 0.21s;
  align-items: center;
}
.testimonial-card:hover {
  box-shadow: 0 11px 36px #a89d8d33, 0 1.5px 16px #d5c6ac40;
  transform: translateY(-2px) scale(1.018);
}
.testimonial-card p {
  font-size: 1.14em;
  font-style: italic;
  color: var(--color-primary);
  line-height: 1.5;
  text-align: left;
}
.testimonial-card span {
  color: var(--color-secondary);
  font-size: 1em;
  margin-top: 4px;
  font-weight: 500;
  text-align: right;
  align-self: flex-end;
}

/* MAP EMBED/CONTACT DETAILS --------------- */
.map-embed {
  border-radius: var(--border-radius);
  background: var(--color-neutral);
  justify-content: center;
  align-items: center;
  font-family: var(--font-body);
  color: #444;
  font-size: 1.1em;
  min-height: 140px;
}

.contact-details .content-wrapper {
  gap: 30px;
}
.cta-bar { margin-top: 2em; }

/* THANK YOU PAGE --------------------------- */
.thank-you-confirmation .content-wrapper {
  align-items: center;
  gap: 18px;
}
.thank-you-confirmation img {
  margin-bottom: 10px;
  border-radius: 0;
}
.next-steps h2 {
  margin-top: 24px;
  font-size: 1.18em;
  margin-bottom: 14px;
}
.next-steps ul {
  margin-bottom: 10px;
}

/* FOOTER ----------------------------------- */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 44px 0 0 0;
  box-shadow: 0 -2px 18px var(--color-warm-shadow);
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0;
}
.logo-footer img {
  width: 44px; height: 44px;
  border-radius: 12px;
  margin-bottom: 9px;
}
.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-links a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  opacity: .9;
  transition: color 0.21s, opacity 0.13s;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
.company-info {
  font-family: var(--font-body);
  font-size: 14px;
  opacity: .82;
  margin-bottom: 24px;
}
@media (max-width:900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
}

/* RESPONSIVE FLEX CONTAINERS --------------- */
@media (max-width: 900px) {
  .feature-grid,
  .icon-grid,
  .service-cards,
  .property-types-grid,
  .service-list,
  .testimonials {
    flex-direction: column;
    gap: 20px;
  }
}

/* FLEX CONTENT RULES (MANDATORY CLASSES) ---- */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--border-radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 24px 22px;
}
.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 { flex-direction: column; align-items: flex-start; }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* SPACING, CARDS & GAPS -------------------- */
.card, .card-container > * {
  margin-bottom: 20px;
  min-width: 240px;
}
@media (max-width:600px) {
  .card, .feature-grid li, .service-card, .property-type, .service-list li, .testimonial-card {
    min-width: 0;
    width: 100%;
  }
}

/* HOVER EFFECTS & INTERACTIONS ------------- */
button, .cta.primary, .cta.secondary, .main-nav a, .mobile-nav a, .service-card a,
.footer-links a, .cookie-banner .cookie-btn {
  cursor: pointer;
  transition: color 0.14s, background 0.19s, box-shadow 0.18s, transform 0.18s;
}
button:focus, .cta:focus, a:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* COOKIES: FIXED BANNER & MODAL ------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -3px 22px #a89d8d55;
  z-index: 1200;
  padding: 18px 24px 18px 18px;
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px 18px 0 0;
  font-family: var(--font-body);
  min-height: 52px;
  animation: cookieBannerIn 0.7s cubic-bezier(.68,.13,.32,1.11);
}
@keyframes cookieBannerIn {
  0% { transform: translateY(120px); opacity: 0; }
  100% { transform: translateY(0px); opacity: 1; }
}
.cookie-banner p {
  font-size: 1em;
  color: var(--color-primary);
  margin-right: auto;
  padding-right: 8px;
}
.cookie-btn {
  border: none;
  border-radius: 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1em;
  margin-left: 10px;
  padding: 9px 19px;
  background: var(--color-warm2);
  color: var(--color-primary);
  transition: background 0.17s, color 0.17s;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #8e8272;
}
.cookie-btn.reject {
  background: #eee9df;
  color: var(--color-secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #facfb3;
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-secondary);
  border: 1.2px solid var(--color-secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-warm1);
  color: var(--color-primary);
  border-color: var(--color-warm2);
}
@media (max-width:700px){
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 14px 9px 18px 9px;
  }
  .cookie-btn { margin-left: 0; margin-top: 8px; }
}

/* COOKIE MODAL ----------------------------- */
.cookie-modal {
  position: fixed;
  z-index: 1300;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28,34,51,0.26);
  animation: modalIn 0.38s cubic-bezier(.65,.1,.25,1.05);
}
@keyframes modalIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 410px;
  min-width: 270px;
  box-shadow: 0 8px 40px rgba(168,157,141, 0.13);
  padding: 30px 26px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cookie-modal-header h3 {
  margin: 0;
  font-size: 1.23em;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 2em;
  color: var(--color-secondary);
  cursor: pointer;
  border-radius: 12px;
  padding: 2px 8px;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { background: var(--color-warm1); }

.cookie-cat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 6px;
  border-radius: 10px;
  background: #f8f6f3;
}
.cookie-cat-label {
  flex-grow: 1;
  font-size: 1em;
}
.cookie-cat-switch {
  min-width: 36px;
  min-height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-cat-switch input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-warm2);
  border-radius: 13px;
  transition: background 0.2s;
}
.cookie-cat-switch input:checked + .cookie-slider {
  background: var(--color-secondary);
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 2px;
  background: #fff;
  border-radius: 10px;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px #a89d8d30;
}
.cookie-cat-switch input:checked + .cookie-slider:before {
  transform: translateX(14px);
}
.cookie-cat-desc {
  color: #938b84;
  font-size: 14px;
  margin-left: 6px;
}
@media (max-width:500px){
  .cookie-modal-content { max-width: 97vw; min-width: 0; padding: 14px 5vw 8px 5vw; }
}


/* SCROLLBAR STYLES (warm rounded) ---------- */
::-webkit-scrollbar {
  width: 11px;
  background: var(--color-accent);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #dfd6cb;
  border-radius:10px;
}

/* UTILITY & HELPER CLASSES ----------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex-row { display: flex; flex-direction: row; gap: 20px; }
.flex-col { display: flex; flex-direction: column; gap: 20px; }

/* MEDIA QUERIES FOR RESPONSIVE FLEX -------- */
@media (max-width: 1200px) {
  .container { max-width: 100vw; }
}
@media (max-width: 768px) {
  .content-grid, .feature-grid, .icon-grid, .service-cards, .property-types-grid, .service-list, .testimonials {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper {
    gap: 16px;
  }
}

/* PRINT (PREVENT BG) ----------------------- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
}

/* GOOGLE FONTS ----------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@700;900&display=swap');
