/* ===================================================
   CSS RESET & NORMALIZE
=================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Georgia', Times, 'Times New Roman', serif;
  background: #F4EFE6;
  color: #223144;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #223144;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #5386A6;
}
ul, ol {
  padding-left: 1.4rem;
  margin-bottom: 24px;
}
li {
  margin-bottom: 8px;
}
input, button, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: none;
  border: none;
}
button:focus, input:focus {
  outline: 2px solid #5386A6;
  outline-offset: 2px;
}

/* ===================================================
   BRAND VARIABLES (use as fallbacks for CSS custom props)
=================================================== */
:root {
  --primary: #223144;
  --secondary: #5386A6;
  --accent: #F4EFE6;
  --white: #fff;
  --black: #181818;
  --neutral-light: #F4EFE6;
  --neutral-mid: #ddd8cf;
  --neutral-dark: #a0a0a0;
  --radius: 12px;
  --shadow: 0 2px 12px 0 rgba(34,49,68,0.07);
}

/* ===================================================
   TYPOGRAPHY (Elegant/Classic)
=================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', Times, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #223144;
  line-height: 1.15;
  margin-bottom: 24px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
body, p, li, span, label {
  font-family: 'Roboto', Arial, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #223144;
}
p {
  margin-bottom: 20px;
}
strong, b {
  font-weight: 600;
}

/* ===================================================
   LAYOUT UTILITY CLASSES
=================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius);
}

/* Pattern-specific container layouts */
.card-container, .property-grid, .guide-list, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1px solid #ede6de;
}
.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 32px 0 rgba(34,49,68,0.10);
}
.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;
}
.testimonial-card {
  background: #fff;
  color: #223144;
  box-shadow: var(--shadow);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  border: 1px solid #ede6de;
  max-width: 520px;
  transition: box-shadow 0.18s, border 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(83,134,166,0.13);
  border-color: #d4cec5;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: #223144;
}
.testimonial-card span {
  color: #5386A6;
  font-family: 'Georgia', serif;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px 24px 20px;
  border: 1px solid #ede6de;
  min-width: 220px;
  flex-basis: 270px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.feature-item:hover {
  box-shadow: 0 6px 20px rgba(83,134,166,0.13);
  transform: scale(1.015);
}
.property-teaser-card {
  background: var(--white);
  border: 1px solid #ede6de;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 340px;
  transition: box-shadow 0.18s, border 0.18s;
}
.property-teaser-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.property-teaser-card ul {
  margin-bottom: 14px;
}
.property-badge {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  background: var(--secondary);
  color: #fff;
  border-radius: 6px;
  padding: 3px 14px;
  font-size: 1rem;
  position: absolute;
  bottom: 23px;
  right: 24px;
  letter-spacing: 0.03em;
}
.guide-card {
  background: var(--white);
  border: 1px solid #ede6de;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px 20px 24px;
  margin-bottom: 20px;
  min-width: 220px;
  flex-basis: 260px;
  transition: box-shadow 0.18s, border 0.18s;
}
.guide-card:hover {
  box-shadow: 0 7px 24px rgba(83,134,166,0.12);
  border-color: #d4cec5;
}
.faq-item {
  background: #fff;
  border: 1px solid #ede6de;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.13s, border 0.13s;
}
.faq-item:hover {
  box-shadow: 0 5px 16px rgba(83,134,166,0.12);
  border-color: #d4cec5;
}
/* Special list alignments */
.search-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}
.search-filter label {
  font-family: 'Roboto', serif;
  color: #223144;
  font-size: 1rem;
  margin-bottom: 0;
  font-weight: bold;
}
.search-filter input[type='text'] {
  border: 1px solid #d4cec5;
  background: #fff;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 1rem;
  color: #223144;
  min-width: 100px;
  max-width: 160px;
}
.search-filter button {
  min-width: 110px;
}

.company-map {
  display: flex;
  gap: 25px;
  align-items: center;
}

.contact-details, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details img, .footer-contact img {
  width: 17px;
  height: 17px;
  vertical-align: middle;
  margin-right: 6px;
}
.info-text {
  margin-top: 18px;
}

/* ===================================================
   BUTTONS
=================================================== */
.primary-btn, .secondary-btn {
  font-family: 'Montserrat', 'Georgia', serif;
  border-radius: 34px;
  padding: 12px 32px;
  font-size: 1.13rem;
  letter-spacing: 0.01em;
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
  margin: 6px 0 0 0;
  display: inline-block;
  transition: background 0.18s, color 0.12s, box-shadow 0.18s, transform 0.14s;
  box-shadow: 0 2px 8px rgba(34,49,68,0.05);
  text-align: center;
}
.primary-btn {
  background: var(--primary);
  color: #fff;
}
.primary-btn:hover,
.primary-btn:focus {
  background: #2d4362;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 28px rgba(34,49,68,0.14);
}
.secondary-btn {
  background: var(--secondary);
  color: #fff;
}
.secondary-btn:hover, .secondary-btn:focus {
  background: #34576b;
  color: #fff;
  transform: translateY(-1.5px) scale(1.02);
}

/* ===================================================
   HEADER & NAVIGATION
=================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(34,49,68,0.04);
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 20px 16px 20px;
  font-size: 1.07rem;
}
.main-nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  color: var(--primary);
  font-weight: 500;
  border-radius: 4px;
  padding: 5px 10px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.main-nav img {
  width: 160px;
  height: auto;
  margin-right: 22px;
  margin-bottom: -10px;
}
.main-nav .primary-btn {
  margin-left: auto;
  margin-right: 0;
}
/* MOBILE NAVIGATION BUTTON */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2.6rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 145;
  transition: background 0.2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--secondary);
}

/* SLIDE MOBILE MENU */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 200;
  box-shadow: 0 0 80px 0 rgba(34, 49, 68, 0.08);
  padding: 24px 28px 0 28px;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(.4,0,.2,1), opacity 0.23s ease;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #5386A6;
  font-size: 2.4rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 22px;
  transition: color 0.13s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #223144;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-family: 'Montserrat', 'Georgia', serif;
  color: #223144;
  font-weight: 500;
  border-radius: 6px;
  padding: 13px 0 13px 10px;
  transition: background 0.15s, color 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F4EFE6;
  color: #5386A6;
}

/* Show burger and mobile-only menu styles below 992px */
@media (max-width: 991px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ===================================================
   FOOTER
=================================================== */
footer {
  background: #223144;
  color: #fff;
  margin-top: 60px;
  padding: 38px 0 20px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  justify-content: flex-start;
  align-items: center;
}
.footer-nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #fff;
  opacity: 0.91;
  font-size: 1rem;
  transition: color 0.13s, opacity 0.13s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #F4EFE6;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: 'Roboto', serif;
  color: #F4EFE6;
  font-size: 1rem;
  align-items: flex-start;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-contact img {
  filter: grayscale(0.16) brightness(0.88);
}

/* ===================================================
   COOKIE CONSENT BANNER & MODAL
=================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 26px rgba(34,49,68,0.09);
  border-top: 2px solid #5386A6;
  padding: 20px 28px;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  transition: transform 0.28s cubic-bezier(.51,.23,.34,.9), opacity 0.21s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent-banner.hide {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-consent-message {
  font-size: 1.08rem;
  color: #223144;
  flex: 1 1 0;
  margin-right: 16px;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-consent-btn {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 27px;
  padding: 9px 22px;
  border: none;
  color: #fff;
  background: #5386A6;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, box-shadow 0.17s;
  box-shadow: 0 2px 6px rgba(34,49,68,0.09);
}
.cookie-consent-btn.accept {
  background: #5386A6;
}
.cookie-consent-btn.accept:hover,
.cookie-consent-btn.accept:focus {
  background: #223144;
}
.cookie-consent-btn.reject {
  background: #ed685a;
}
.cookie-consent-btn.reject:hover,
.cookie-consent-btn.reject:focus {
  background: #ae3423;
}
.cookie-consent-btn.settings {
  background: #F4EFE6;
  color: #223144;
  border: 1px solid #5386A6;
}
.cookie-consent-btn.settings:hover,
.cookie-consent-btn.settings:focus {
  background: #d4cec5;
  color: #223144;
}
/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  z-index: 10010;
  background: rgba(34,49,68,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.24s ease;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(34,49,68,0.13);
  padding: 36px 32px 28px 32px;
  min-width: 340px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  color: #223144;
  border: none;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover {
  color: #5386A6;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #223144;
  font-size: 1.05rem;
}
.cookie-category input[type='checkbox'] {
  width: 22px;
  height: 22px;
  border: 1px solid #5386A6;
  border-radius: 3px;
  accent-color: #5386A6;
}
.cookie-category input[type='checkbox']:disabled {
  background: #eee;
}
.cookie-category .desc {
  font-size: 0.98rem;
  color: #777;
  margin-left: 4px;
}

/* ===================================================
   MISCELLANEOUS ELEMENTS
=================================================== */
.text-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 29px 24px;
  margin-bottom: 20px;
  border: 1px solid #ede6de;
  color: #223144;
}
ol, ul {
  margin-bottom: 24px;
}

.company-map img {
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(83,134,166,0.11);
  width: 160px;
  min-width: 120px;
}

/* Hide empty img alt placeholder UI (accessibility) */
img[alt=''] { display: none; }


/* ===================================================
   RESPONSIVE: MOBILE-FIRST, ENHANCE FOR LARGER SCREENS
=================================================== */
@media (max-width: 991px) {
  .container { padding: 0 14px; }
  .content-wrapper { gap: 18px; }
  .section { padding: 32px 10px; }
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.13rem; }
  .main-nav {
    font-size: 1.03rem;
    flex-wrap: wrap;
  }
  .property-grid, .card-container, .guide-list, .faq-list {
    flex-direction: column;
  }
  .feature-item, .property-teaser-card, .guide-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column; gap: 16px;
    align-items: flex-start;
  }
  .company-map {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .footer-nav { gap: 15px; font-size: 0.97rem; }
  .footer-contact { font-size: 0.96rem; gap: 4px; }
}
@media (max-width: 650px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
  body { font-size: 1rem; }
  .card, .feature-item, .property-teaser-card, .guide-card, .text-section {
    padding: 17px 11px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 8px;
  }
  .cookie-consent-message { margin-right: 0; font-size: 0.97rem; }
  .cookie-modal { padding: 19px 11px 18px 11px; min-width: 0; }
}

/* ===================================================
   PRINT SUPPORT (clean, white background)
=================================================== */
@media print {
  header, .mobile-menu, .mobile-menu-toggle, footer, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff !important; color: #000; }
  .container, .content-wrapper, .section { padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
}

/* END Mondlicht Immobilien Elegant Classic Theme */
