/* ===== CSS RESET & NORMALIZE ===== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body { line-height: 1; background: #F4F4F2; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
table { border-collapse: collapse; border-spacing: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ===== BRAND & ROOT TYPOGRAPHY ===== */
:root {
  --primary: #223146;
  --secondary: #B4975A;
  --accent: #F4F4F2;
  --primary-font: 'Playfair Display', serif;
  --body-font: 'Open Sans', Arial, sans-serif;
  --heading-color: #223146;
  --body-color: #323642;
  --muted: #e2ded7;
  --white: #fff;
  --shadow: 0 3px 16px rgba(34,49,70,0.08), 0 1.5px 6px rgba(180,151,90,0.08);
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--body-color);
  background: var(--accent);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--primary-font);
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; letter-spacing: -1px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; }

p, ul, ol {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body-color);
}
strong { font-weight: 600; color: var(--primary); }
subheadline, .subheadline {
  font-family: var(--primary-font);
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 16px !important;
}

/* ===== Layout & Utility Classes ===== */
.container {
  width: 100%;
  max-width: 1172px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  .container {
    max-width: 930px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 10px;
  }
  .section {
    padding: 32px 8px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
}

/* ===== Header & Navigation ===== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--muted);
  box-shadow: 0 1.5px 6px rgba(34, 49, 70, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
header a img {
  height: 38px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  margin-left: 24px;
  margin-right: auto;
}
.main-nav a {
  color: var(--primary);
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  transition: color .2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
}
.main-nav a.active, .main-nav a[aria-current="page"] {
  color: var(--secondary);
  font-weight: 600;
}

.cta-btn {
  background: var(--secondary);
  color: var(--white);
  font-family: var(--primary-font);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 11px 32px;
  border: none;
  border-radius: 32px;
  box-shadow: 0 3px 12px rgba(180, 151, 90, 0.12);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  display: inline-block;
  margin-left: 18px;
  letter-spacing: 0.01em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #a78437;
  color: var(--white);
  box-shadow: 0 6px 24px rgba(180,151,90,0.16);
}

.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--white);
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 20px;
  transition: background 0.16s;
  z-index: 1011;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #a78437;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--primary);
  position: fixed;
  z-index: 1200;
  top: 0; left: 0; height: 100vh; width: 100vw;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.33s cubic-bezier(0.87, 0.09, 0.39, 1.08), opacity 0.22s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: var(--white);
  border: none;
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 26px 32px 0 0;
  padding: 0;
  cursor: pointer;
  transition: color .17s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 52px 32px 0 32px;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--white);
  font-family: var(--primary-font);
  font-size: 1.32rem;
  font-weight: 500;
  padding: 10px 0;
  width: 100%;
  transition: background .15s, color .18s;
}
.mobile-nav a:active, .mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(255,255,255,0.05);
}

@media (max-width: 1080px) {
  .main-nav { gap: 14px; margin-left: 12px; }
  .cta-btn { margin-left: 8px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 2vw; }
}
@media (max-width: 900px) {
  .header .container { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .main-nav, .cta-btn { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* ===== Hero & Section Styles ===== */
section {
  background: var(--white);
  border-radius: 16px;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
  padding: 40px 0;
}
@media (max-width: 768px) {
  section { padding: 28px 0; margin-bottom: 36px; }
}

/* ===== Content Grid & Card Containers - FLEXBOX ONLY ===== */
.card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card-container > *,.card-grid > * { flex: 1 1 250px; min-width: 250px; max-width: 49%; margin-bottom: 20px; box-sizing: border-box; }
.content-grid { gap: 20px; }
.card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 13px;
  margin-bottom: 20px;
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 36px rgba(34,49,70,0.16), 0 1.5px 12px rgba(180,151,90,0.16);
  transform: translateY(-4px) scale(1.015);
}

/* ===== Feature Grids, Filters, Topic Categories ===== */
.feature-grid, .property-filters, .topic-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 8px;
}
.feature-grid li, .property-filters li, .topic-categories ul li {
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(34,49,70,0.03);
  min-width: 200px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
  margin-right: 0;
  font-family: var(--body-font);
  transition: box-shadow 0.15s, background 0.16s;
}
.feature-grid li img,
.property-filters li img,
.topic-categories ul li img {
  width: 30px; height: 30px; margin-bottom: 6px;
}
.feature-grid li:hover, .property-filters li:hover, .topic-categories ul li:hover {
  background: var(--muted);
  box-shadow: 0 6px 24px rgba(180,151,90,0.10);
  color: var(--secondary);
}
@media (max-width: 900px) {
  .feature-grid, .property-filters, .topic-categories ul {
    gap: 12px;
  }
  .feature-grid li, .property-filters li, .topic-categories ul li {
    min-width: 150px;
    font-size: 0.98rem;
    padding: 17px 12px;
  }
}
@media (max-width: 600px) {
  .feature-grid, .property-filters, .topic-categories ul {
    flex-direction: column;
    gap: 10px;
  }
  .feature-grid li, .property-filters li, .topic-categories ul li { width: 100%; }
}

/* ===== Text-Image & Step Process Section (FLEXBOX) ===== */
.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 18px;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 18px; }
}

.step-process, .consulting-steps, .advantages-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

/* ===== Testimonials ===== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 36px;
  margin-bottom: 20px;
  background: var(--accent);
  border-radius: 16px;
  box-shadow: 0 2px 9px rgba(34,49,70,.08);
  transition: box-shadow 0.18s;
  font-family: var(--body-font);
}
.testimonial-card:hover { box-shadow: 0 6px 30px rgba(34,49,70,0.13); }
.testimonial-card blockquote {
  font-family: var(--primary-font);
  font-size: 1.1rem;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 4px;
}
.testimonial-card p {
  font-size: 0.98rem;
  color: var(--body-color);
  font-style: normal;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--secondary);
}
@media (max-width: 650px) {
  .testimonial-card { flex-direction: column; gap: 10px; padding: 16px 10px; }
}

/* ===== Card Flex Helpers ===== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

/* ===== Service/Consult Highlight Boxes ===== */
.service-highlights, .consulting-highlights, .faq-snippet, .personal-advisor-intro, .legal-disclaimer {
  background: var(--muted);
  border-radius: 10px;
  padding: 18px 18px 14px 18px;
  margin: 16px 0 8px 0;
  font-size: 1rem;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(180,151,90,0.05);
}
.faq-snippet h3, .personal-advisor-intro p, .legal-disclaimer h3 {
  margin-bottom: 8px;
  color: var(--secondary);
  font-family: var(--primary-font);
  font-size: 1.07rem;
}

/* ===== Buttons and Interactives ===== */
button, .button {
  font-family: var(--primary-font);
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 30px;
  padding: 9px 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(180,151,90,0.09);
  transition: background 0.17s, box-shadow 0.15s, color 0.14s;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: #a78437;
  color: var(--white);
  box-shadow: 0 6px 24px rgba(180,151,90,0.14);
}

/* ===== Links ===== */
a {
  color: var(--primary);
  transition: color 0.18s, border-bottom 0.12s;
}
a:hover, a:focus {
  color: var(--secondary);
  border-bottom: 1.5px solid var(--secondary);
}

/* ===== Footer ===== */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 30px 0 0 0;
  border-top: 1px solid var(--muted);
}
footer .container { flex-direction: column; gap: 22px; }
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 25px;
  margin-bottom: 14px;
}
.footer-nav a {
  color: var(--accent);
  font-family: var(--primary-font);
  font-size: 1.04rem;
  padding-bottom: 1.5px;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
.footer-contact p, .footer-contact a {
  font-size: 0.96rem;
  color: var(--accent);
}
.footer-contact a {
  border-bottom: 1px dashed var(--secondary);
}
.footer-contact a:hover { color: var(--secondary); border-bottom: 1.5px solid var(--secondary); }
@media (max-width: 700px) {
  .footer-nav { flex-wrap: wrap; gap: 12px; }
}

/* ===== ARTICLE/BLOG ===== */
.featured-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.featured-posts .text-section {
  flex: 1 1 300px;
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(34,49,70,0.065);
  padding: 18px 16px 15px 22px;
  margin-bottom: 10px;
}
.featured-posts .text-section a {
  display: inline-block;
  margin-top: 7px;
  color: var(--secondary);
  font-family: var(--primary-font);
  font-weight: 600;
  border-bottom: 1px dotted var(--secondary);
  transition: border 0.13s;
}
.featured-posts .text-section a:hover,
.featured-posts .text-section a:focus { border-bottom: 1.5px solid var(--secondary); }
@media (max-width: 900px) {
  .featured-posts { flex-direction: column; gap: 13px; }
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; width: 100vw; z-index: 1400;
  background: #fffdfa;
  border-top: 1.5px solid var(--secondary);
  box-shadow: 0 -2px 20px rgba(34,49,70,0.14);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding: 18px 12vw 18px 12vw;
  font-size: 1rem;
  flex-wrap: wrap;
  transition: transform 0.3s, opacity 0.16s;
}
.cookie-banner.closed { transform: translateY(120%); opacity: 0; pointer-events: none; }
.cookie-banner p { margin: 0 0 6px 0; color: var(--primary); font-size: 1rem; }
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-left: 10px;
}
.cookie-banner .cookie-btn {
  font-family: var(--primary-font);
  border-radius: 24px;
  font-size: 0.98rem;
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 7px 26px 7px 26px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 0px;
  margin-right: 0px;
  box-shadow: 0 1.5px 8px rgba(180,151,90,0.09);
  transition: background .16s;
}
.cookie-banner .cookie-btn.settings {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--secondary);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #a78437;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: var(--secondary);
  color: var(--white);
}
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; gap: 10px; padding: 18px 1vw; }
  .cookie-banner .cookie-buttons { flex-direction: column; gap: 10px; margin-left: 0; }
}

/* ===== Cookie Modal ===== */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,49,70,0.30);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fffdfa;
  border-radius: 18px;
  max-width: 420px;
  width: 94%;
  box-shadow: 0 8px 60px rgba(34,49,70,0.14);
  padding: 28px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.42rem;
  font-family: var(--primary-font);
  color: var(--secondary);
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 11px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px; height: 18px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--body-color);
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--secondary);
  cursor: pointer;
  z-index: 2;
}
.cookie-modal-close:hover { color: var(--primary); }
.cookie-modal-actions { display: flex; gap: 20px; justify-content: flex-end; margin-top: 8px; }

/* ===== Fluid Responsive Adjustments ===== */
@media (max-width:570px) {
  .cookie-modal-content { max-width: 98vw; padding: 18px 7px; }
}

/* ===== Misc HEADINGS & Dividers ===== */
h2 {
  border-left: 5px solid var(--secondary);
  padding-left: 13px;
}
h3, h4 {
  color: var(--primary);
}
@media (max-width:570px) {
  h2 { padding-left: 7px; font-size: 1.07rem; }
}

/* ===== Images in Text-Section / Kontakte ===== */
.text-section img {
  display: inline-block;
  width: 22px; height: 22px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== Responsive Utilities ===== */
@media (max-width: 768px) {
  .content-wrapper, .footer-nav {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  header .container { flex-direction: row; flex-wrap: wrap; }
}

/* ===== Animations / Micro-interactions ===== */
.cta-btn, .cookie-btn, button, .card, .testimonial-card,
.feature-grid li, .property-filters li {
  transition: box-shadow .18s, transform .19s, background .17s, color .15s;
}

.card:active, .testimonial-card:active, .feature-grid li:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(180,151,90,0.09);
}

input[type="checkbox"]:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
}

/* ===== Accessibility ===== */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1.5px;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1.5px;
}

/* ===== Hide Scrollbar for Mobile Menu ===== */
.mobile-menu { scrollbar-width: none; }
.mobile-menu::-webkit-scrollbar { display: none; width: 0; }

/* ===== Scrollbar Styling ===== */
body {
  scrollbar-color: var(--secondary) var(--accent);
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 8px; background: var(--accent); }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* ===== PRINT STYLES ===== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, .container, body { background: #fff !important; color: #222 !important; }
}

/* END OF CSS */
