/* ===== 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;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #EFEFE9;
  color: #283057;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
*, *:before, *:after { box-sizing: inherit; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s; cursor: pointer; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border-radius: 0;
  border: none;
  background: none;
  color: inherit;
}

/* ===== BRAND COLOR VARIABLES ===== */
:root {
  --primary: #283057;
  --secondary: #BDA577;
  --accent: #EFEFE9;
  --primary-hover: #1d2440;
  --gold: #BDA577;
  --gold-light: #D6C6A7;
  --danger: #a53b3b;
  --success: #207045;
  --shadow-color: rgba(40,48,87,0.08);
  --border-radius: 14px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Roboto:wght@400;500;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.12;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1.14rem;
  margin-bottom: 8px;
}
p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: #2A2F3D;
  margin-bottom: 14px;
}
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
a:hover,
a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* ===== GENERAL LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
main {
  flex: 1 0 auto;
  margin-bottom: 90px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== NAVIGATION & HEADER ===== */
header {
  width: 100%;
  background: var(--accent);
  box-shadow: 0 2px 16px var(--shadow-color);
  z-index: 30;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 0;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 7px;
  position: relative;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover,
header nav a:focus {
  background: var(--secondary);
  color: #fff;
}
header a img {
  height: 44px;
  width: auto;
  margin-right: 16px;
}
.btn-primary {
  background: var(--secondary);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 14px rgba(189,165,119,0.09);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
  margin-left: 18px;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--gold-light);
  color: var(--primary);
  box-shadow: 0 6px 32px rgba(189,165,119,0.21);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  background: var(--primary);
  color: var(--secondary);
  font-size: 2rem;
  padding: 5px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-left: 16px;
  transition: background var(--transition), color var(--transition);
  display: none;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(40,48,87,0.98);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 0 0 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.65,.05,.36,1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  padding: 0 20px 0 0;
  margin-bottom: 15px;
  cursor: pointer;
  z-index: 1010;
  transition: color 0.25s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.19rem;
  font-family: 'Playfair Display', serif;
  background: none;
  border-radius: 7px;
  padding: 11px 0;
  transition: color 0.22s, background 0.22s;
  min-width: 180px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(189,165,119,0.08);
}
@media (max-width: 1100px) {
  header .container {
    flex-direction: row;
    padding: 16px 12px 16px 12px;
  }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .btn-primary {
    margin-left: 8px;
    padding: 10px 20px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  header .container {
    padding: 14px 5px;
  }
}

/* ===== HERO & CTA ===== */
.hero, .cta {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 48px var(--shadow-color);
  margin-bottom: 60px;
  padding: 36px 0;
}
.hero h1, .cta h1, .cta h2 {
  color: var(--primary);
}
.hero p, .cta p {
  font-size: 1.07rem;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .hero, .cta {
    padding: 28px 0;
  }
}

/* ===== FEATURES GRID (PAGES: index, luxusimmobilien, marktanalysen) ===== */
.features {
  margin-bottom: 60px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border: 1.5px solid var(--accent);
  border-radius: var(--border-radius);
  padding: 26px 20px 23px 20px;
  box-shadow: 0 3px 20px var(--shadow-color);
  flex: 1 1 200px;
  min-width: 245px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.feature-grid > div:hover {
  border-color: var(--secondary);
  box-shadow: 0 12px 32px rgba(189,165,119,0.15);
  z-index: 10;
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  filter: none;
}
.feature-grid h3 {
  font-size: 1.18rem;
  margin-bottom: 2px;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  margin-bottom: 60px;
  background: var(--accent);
  border-radius: var(--border-radius);
  padding: 40px 0;
}
.testimonials .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.testimonial-card {
  background: #fff;
  color: #22243a;
  border-radius: calc(var(--border-radius) - 4px);
  box-shadow: 0 3px 24px rgba(40,48,87,0.07);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 280px;
  max-width: 380px;
  margin-bottom: 20px;
  border: 1.5px solid #ece6db;
  position: relative;
  transition: box-shadow var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 9px 48px 0 rgba(189,165,119,0.08);
  border-color: var(--gold-light);
  z-index: 8;
}
.testimonial-card .stars {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--primary);
  opacity: 0.81;
  font-style: italic;
}
.testimonial-card blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  color: var(--primary);
  padding-left: 10px;
  border-left: 3px solid var(--gold-light);
  margin-bottom: 0;
  background: none;
}

/* ===== OTHER SECTIONS ===== */
.section, 
.services, 
.about-short, 
.about-values,
.about-values .content-wrapper,
.team {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.text-section,
.contact-section .text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section ul, .text-section ol {
  margin-left: 20px;
}
.text-section li {
  margin-bottom: 10px;
  padding-left: 2px;
  line-height: 1.7;
}

/* Cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 24px rgba(40,48,87,0.07);
  margin-bottom: 20px;
  padding: 24px 20px;
  position: relative;
  border: 1.4px solid #ece6db;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow var(--transition);
}
.card:hover {
  box-shadow: 0 10px 40px rgba(189,165,119,0.13);
  border-color: var(--secondary);
}

/* Grid Layout for content *!
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Text-Image Section */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

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

/* Confirmation Section (thanks.php) */
.confirmation {
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 50px 0 30px 0;
}
.confirmation h1 { color: var(--secondary); margin-bottom: 6px; }
.confirmation .btn-primary { margin-top: 18px; }

/* ===== CONTACT & FOOTER ===== */
.contact-section, .contact-info {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 24px rgba(40,48,87,0.08);
  padding: 32px 0;
  margin-bottom: 50px;
}
.contact-section a, .contact-info a {
  font-weight: 500;
  color: var(--primary);
  border-bottom: 1px solid var(--gold-light);
  transition: color 0.2s, border-color 0.2s;
  padding-bottom: 1.5px;
}
.contact-section a:hover, .contact-info a:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}
.contact-info ul {
  margin-top: 12px;
  padding-left: 10px;
}
.contact-info li { margin-bottom: 7px; }
footer {
  background: var(--primary);
  color: #fff;
  padding: 34px 0 22px 0;
  width: 100%;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
footer nav a {
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  text-decoration: underline dotted #BDA577 1.5px;
  text-underline-offset: 2.5px;
  padding: 2px 6px;
  border-radius: 5px;
  transition: background 0.25s, color 0.25s;
}
footer nav a:hover {
  color: var(--gold);
  background: rgba(189,165,119,0.08);
}
footer img {
  width: 44px;
  height: auto;
}
footer > .container > div:last-child {
  font-size: 0.98rem;
  color: #d6d7e0;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: var(--primary);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 32px rgba(40,48,87,0.11);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 6vw 18px 6vw;
  gap: 20px;
  font-size: 1.07rem;
  animation: banner-slide-up 0.5s;
}
@keyframes banner-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner .cookie-text { max-width: 480px; line-height: 1.6; }
.cookie-banner button {
  margin-left: 11px;
  padding: 8px 22px;
  border-radius: 28px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  cursor: pointer;
  border: none;
  margin-right: 4px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 6px rgba(40,48,87,0.10);
  font-weight: 600;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: var(--gold-light);
  color: var(--primary);
}
.cookie-banner .reject {
  background: #efefef;
  color: var(--danger);
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #f4e6e6;
  color: var(--danger);
}
.cookie-banner .settings {
  background: var(--accent);
  color: var(--primary);
  font-weight: 500;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #f7f3ea;
  color: var(--primary);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0; right: 0; bottom: 0;
  background: rgba(40,48,87,0.36);
  z-index: 4000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.3s;
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: 15px 15px 0 0;
  padding: 38px 24px 28px 24px;
  box-shadow: 0 12px 60px rgba(40,48,87,0.15);
  width: 96vw;
  max-width: 458px;
  animation: modal-slide-up 0.38s;
}
@keyframes modal-slide-up {
  from { transform: translateY(60%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.19rem;
  margin-bottom: 13px;
}
.cookie-modal .categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 22px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  font-size: 1.07rem;
}
.cookie-category label {
  flex: 1;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
}
.cookie-category input[type=checkbox]:disabled + label {
  opacity: 0.6;
  color: #888;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal button {
  padding: 8px 23px;
  background: var(--secondary);
  color: #fff;
  border-radius: 7px;
  font-size: 1rem;
  border: none;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.cookie-modal button.secondary {
  background: #f8f8f8;
  color: var(--primary);
  border: 1px solid #e7e3de;
}
.cookie-modal button.secondary:hover,
.cookie-modal button.secondary:focus {
  background: #ece7dd;
}
.cookie-modal .modal-close {
  background: none;
  color: #aaa;
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 1.38rem;
  cursor: pointer;
  border: none;
  padding: 3px 7px;
  border-radius: 8px;
}
.cookie-modal .modal-close:hover { color: var(--danger); }

/* ===== RESPONSIVENESS ===== */
@media (max-width: 970px) {
  .feature-grid > div {
    min-width: 180px;
    max-width: 48%;
    padding: 18px 10px 16px 16px;
  }
  .testimonial-card { max-width: 98vw; }
}
@media (max-width: 850px) {
  .features .content-wrapper,
  .testimonials .content-wrapper,
  .feature-grid,
  .card-container,
  .content-grid,
  footer .container {
    flex-direction: column;
    gap: 24px;
  }
  .footer nav {
    margin-top: 10px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 22px 0 18px 0;
  }
  .content-wrapper {
    gap: 17px;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .section, .services, .about-short, .about-values, .team {
    padding: 26px 0 20px 0;
  }
  .testimonial-card { min-width: 98vw; padding: 18px 10px 18px 16px;}
  .content-wrapper.confirmation {
    padding: 32px 0 20px 0;
  }
  .mobile-menu .mobile-nav { padding-left: 18px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.78rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.11rem; }
  .cookie-modal .modal-content {
    padding: 24px 9px 17px 14px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.99rem;
    padding: 10px 5vw 10px 5vw;
  }
  .cookie-modal .categories { gap: 8px; }
}

/* ===== MICRO-INTERACTIONS ===== */
.btn-primary, .cookie-banner button, .cookie-modal button {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color 0.2s;
}
.btn-primary:active,
.cookie-banner button:active, .cookie-modal button:active {
  transform: scale(0.98);
}
.testimonial-card {
  transition: box-shadow var(--transition), border-color var(--transition), transform 0.2s;
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.021);
}
.feature-grid > div:active {
  transform: translateY(2px) scale(0.99);
}

/* ===== FANCY GOLD ACCENT LINES (for section headers) ===== */
h2, h1 {
  position: relative;
}
h2:after, h1:after {
  content: '';
  display: block;
  width: 56px;
  height: 3.5px;
  background: var(--gold);
  border-radius: 8px;
  margin-top: 9px;
  margin-bottom: 4px;
}

/* Remove accent for section header in hero/cta */
.hero h1:after, .cta h1:after, .confirmation h1:after { display: none; }

/* ===== FORMATTED LIST STYLES ===== */
.text-section ul,
.text-section ol {
  padding-left: 19px;
  margin-bottom: 6px;
}
.text-section ul li::before {
  content: '•';
  color: var(--secondary);
  margin-right: 7px;
  vertical-align: middle;
  font-size: 1.1em;
  font-weight: 700;
}
.text-section ol {
  list-style: decimal;
}
.text-section ol li {
  margin-bottom: 8px;
  padding-left: 3px;
}

/* ===== Z-INDEX FIXES (banner, modal, menu) ===== */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 1100; }
.mobile-menu { z-index: 2000; }
.cookie-modal { z-index: 4000; }

/* ===== PREVENT CONTENT OVERLAPPING ===== */
.section, .card, .card-container > *, .feature-grid > *, .testimonial-card, .cookie-modal .modal-content {
  margin-bottom: 20px;
}

/* ===== UTILITY CLASSES ===== */
.hidden { display: none !important; }

/* ===== END OF CSS ===== */
