/* ==== CSS RESET & NORMALIZATION ==== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #174472;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: #174472; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 3px solid #B1813C; outline-offset: 2px; }
a:hover, a:active { color: #B1813C; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}
button { cursor: pointer; background: none; border: none; }

/* Font Imports & Variables (Fallbacks) */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
:root {
  --primary: #174472;
  --secondary: #F4EBD0;
  --accent: #B1813C;
  --neutral: #FFFFFF;
  --dark: #131E2E;
  --error: #B01334;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --text-lg: 2.25rem;   /* 36px */
  --text-xl: 3rem;      /* 48px */
  --text-md: 1.35rem;   /* 22px */
  --text-default: 1rem; /* 16px */
  --text-sm: 0.875rem;  /* 14px */
  --shadow-card: 0 4px 24px 0 rgba(23,68,114,0.08);
  --radius-card: 22px;
  --radius-btn: 8px;
}

/* ===========================================================
   LAYOUT Utility/Epic Structure
=========================================================== */
.container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

/* ===========================================================
   HEADER + NAVIGATION
=========================================================== */
header {
  background: var(--secondary);
  box-shadow: 0 3px 18px 0 rgba(23,68,114,0.06);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1002;
}
header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 72px;
  justify-content: flex-start;
  padding-left: 0;
}
header nav img {
  height: 58px;
  width: auto;
  margin-right: 20px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-default);
  letter-spacing: 0.03em;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 6px;
  transition: background .18s, color .18s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: #fff;
}
header nav .cta-btn {
  margin-left: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-btn);
  font-size: var(--text-md);
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 2px 10px 0 rgba(23,68,114,0.11);
  letter-spacing: 0.05em;
  padding: 10px 30px;
  border: none;
  transition: background .2s, transform .17s;
  position: relative;
  display: inline-block;
}
header nav .cta-btn:hover, header nav .cta-btn:focus {
  background: var(--accent);
  color: var(--neutral);
  transform: translateY(-2px) scale(1.04);
}

/* Burger Menu Button */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 13px;
  z-index: 1100;
  background: var(--primary);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 1.8rem;
  box-shadow: 0 2px 12px rgba(23,68,114,0.14);
  border: none;
  transition: background .18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
}

/* ------------------------------
  MOBILE NAVIGATION OVERLAY
------------------------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 375px;
  height: 100vh;
  background: var(--secondary);
  box-shadow: -4px 0 24px 0 rgba(23,68,114,0.18);
  z-index: 3000;
  transform: translateX(100%);
  transition: transform .33s cubic-bezier(.79,.19,.44,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 18px 0 0;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  padding: 7px 10px;
  border-radius: 6px;
  border: none;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--accent);
}

.mobile-menu .mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 40px 30px 0 30px;
}
.mobile-menu .mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.18rem;
  padding: 8px 6px;
  color: var(--primary);
  border-radius: 4px;
  transition: background .18s, color .18s;
  width: 100%;
}
.mobile-menu .mobile-nav a:focus, .mobile-menu .mobile-nav a:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 1100px) {
  header nav {
    gap: 12px;
  }
  header nav .cta-btn {
    font-size: var(--text-default);
    padding: 8px 18px;
    margin-left: 14px;
  }
}
@media (max-width: 900px) {
  header nav{
    gap: 7px;
    padding-left: 2px;
  }
  header nav .cta-btn {
    font-size: var(--text-sm);
    padding: 7px 12px;
  }
}
@media (max-width: 800px) {
  header nav {
    gap: 0;
    font-size: var(--text-sm);
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===========================================================
   SECTIONS, PAGES, CONTAINERS (MANDATORY SPACING)
=========================================================== */
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--neutral);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 34px 26px;
  min-width: 270px;
  max-width: 500px;
  transition: transform .2s, box-shadow .23s;
}
.card:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 8px 40px 2px rgba(23,68,114,0.13);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.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 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
  border-left: 6px solid var(--accent);
  max-width: 680px;
  color: #222;
}
blockquote {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.5;
  color: var(--primary);
  padding-left: 6px;
}
.testimonial-card p {
  font-weight: 700;
  color: var(--accent);
  font-style: normal;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  padding: 22px 16px;
  background: var(--secondary);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 12px 0 rgba(23,68,114,0.08);
  margin-bottom: 24px;
}

/* / Feature Grid */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  width: 100%;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 250px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 2px solid var(--secondary);
  transition: box-shadow .18s, border .18s, transform .17s;
}
.feature-grid > div img {
  height: 38px;
  margin-bottom: 5px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 40px 2px rgba(23,68,114,0.14);
  border: 2px solid var(--accent);
  transform: scale(1.033);
}

/* Immobilienangebote grid override */
.property-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.property-grid .text-section {
  flex: 1 1 300px;
  margin-bottom: 0;
}
.filter-options {
  margin-top: 18px;
  font-weight: 700;
}
.filter-options strong {
  color: var(--primary);
  margin-right: 8px;
}
.filter-options ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 9px;
}
.filter-options li {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  background: var(--secondary);
  color: var(--primary);
  border-radius: 6px;
  padding: 5px 13px;
  border: 1.5px solid var(--primary);
  font-weight: 700;
  letter-spacing: .01em;
}

/* ===========================================================
   TYPOGRAPHY (STRONG, BOLD, MODERN)
=========================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--primary);
}
h1 {
  font-size: var(--text-xl);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h2 {
  font-size: var(--text-lg);
  margin-bottom: 8px;
  letter-spacing: 0em;
}
h3 {
  font-size: 1.35rem;
  color: var(--accent);
  letter-spacing: .01em;
  margin-bottom: 6px;
  font-weight: 900;
}
h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.subheadline {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 15px;
  color: var(--primary);
}
p {
  font-family: var(--font-body);
  font-size: var(--text-default);
  color: #222;
  margin-bottom: 7px;
  line-height: 1.7;
  font-weight: 400;
}
strong, b {
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-display);
  letter-spacing: .002em;
}
ul, ol {
  margin-top: 7px;
  margin-bottom: 7px;
  padding-left: 20px;
  list-style: disc inside;
}
ul li, ol li {
  margin-bottom: 6px;
  font-size: var(--text-default);
  font-family: var(--font-body);
  color: var(--primary);
  font-weight: 500;
}

/* =========================================================================
   BUTTONS, CTA
============================================================================ */
.cta-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 900;
  letter-spacing: .01em;
  padding: 13px 34px;
  border-radius: var(--radius-btn);
  text-transform: uppercase;
  margin-top: 7px;
  margin-bottom: 7px;
  box-shadow: 0 4px 18px 0 rgba(139, 129, 60, 0.10);
  border: none;
  cursor: pointer;
  transition: background .22s, color .18s, box-shadow .19s, transform .18s;
  z-index: 2;
}
.cta-btn:hover, .cta-btn:focus, .btn:hover, .btn:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px 0 rgba(23,68,114,0.13);
}

/* Table and input basics (for forms, even if not present) */
table { width: 100%; border-collapse: collapse; margin: 18px 0; }
th, td { padding: 9px 13px; border-bottom: 1px solid #ddd; }
input, textarea, select {
  background: #FAFAFA;
  border: 1.5px solid var(--primary);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 13px;
  transition: border .18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

/* ===========================================================
   FOOTER
=========================================================== */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 38px 0 20px 0;
  width: 100%;
}
footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
footer img {
  height: 46px;
  filter: brightness(1.2);
}
footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 14px;
}
footer nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--text-default);
  font-weight: 800;
  letter-spacing: .01em;
  transition: color .2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 1px;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  border-bottom: 2px solid #fff;
}
footer p, footer address {
  color: var(--secondary);
  font-size: var(--text-sm);
  font-family: var(--font-body);
}

/* ===========================================================
   RESPONSIVE MEDIA QUERIES
=========================================================== */
@media (max-width: 1140px) {
  .feature-grid, .property-grid, .content-grid { gap: 14px; }
}
@media (max-width: 980px) {
  .feature-grid > div, .property-grid .text-section { min-width: 220px; }
  .container { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .subheadline { font-size: 1rem; }

  .content-wrapper { gap: 19px; }
  .feature-grid, .property-grid, .content-grid {
    flex-direction: column;
    gap: 17px;
    align-items: stretch;
  }
  .feature-grid > div, .property-grid .text-section, .text-section {
    min-width: 0;
    width: 100%;
  }
  .testimonial-card { max-width: 100%; }
  .text-image-section { flex-direction: column; align-items: stretch; gap: 18px; }
}
@media (max-width: 560px) {
  .container { padding-left: 4px; padding-right: 4px; }
  h1 { font-size: 1.33rem; }
  h2 { font-size: 1.1rem; }
  section, .section { padding: 22px 4px; }
  .feature-grid > div, .property-grid .text-section, .text-section {
    padding: 15px 7px;
  }
}

/* ===========================================================
   COOKIE CONSENT BANNER (FIXED BOTTOM, MODAL)
=========================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: #fff;
  width: 100%;
  z-index: 4002;
  font-size: 1rem;
  padding: 24px 12px 19px 12px;
  box-shadow: 0 -2px 24px 0 rgba(23,68,114,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  animation: slideUpBanner .7s cubic-bezier(.7,0,.59,1);
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  margin-left: 0;
  margin-right: 14px;
  padding: 9px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background .15s;
  border: none;
  outline: none;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #fff;
  color: var(--primary);
}
.cookie-banner .btn-reject {
  background: var(--error);
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: #fff; color: var(--error);
}
.cookie-banner .btn-settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-banner-btn-group {
  display: flex;
  gap: 14px;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(23,68,114,0.38);
  z-index: 4010;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal .23s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--secondary);
  color: var(--primary);
  width: 97vw; max-width: 440px;
  border-radius: 23px;
  box-shadow: 0 9px 36px 0 rgba(23,68,114,0.22);
  padding: 36px 32px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 4015;
  animation: popInModal .39s cubic-bezier(.43,1.24,.85,1);
}
@keyframes popInModal {
  from { transform: scale(.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2, .cookie-modal h3 {
  color: var(--primary);
  margin-bottom: 2px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 9px 0;
  background: #fff;
  border-radius: 9px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px 0 rgba(23,68,114,0.07);
  font-size: 1.05rem;
  font-weight: 700;
}
.cookie-modal .cookie-category .toggle {
  display: inline-flex;
  align-items: center;
}
.cookie-modal .cookie-category input[type=checkbox] {
  accent-color: var(--primary);
  transform: scale(1.25);
  margin-left: 9px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 17px; right: 25px;
  font-size: 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  padding: 2px 13px;
  border: none;
}
.cookie-modal .close-cookie-modal:hover,
.cookie-modal .close-cookie-modal:focus { background: var(--accent); color: #fff; }
.cookie-modal-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.cookie-category-essential label {
  color: #aaa;
  font-style: italic;
  font-size: 1rem;
}

/* Hide cookie banner/modal initially */
.cookie-banner[hidden], .cookie-modal-backdrop[hidden] { display: none !important; }

/* ===========================================================
   ACCESSIBILITY & MISC UTILITIES
=========================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===========================================================
   MICRO-INTERACTIONS
=========================================================== */
.card, .testimonial-card, .feature-grid > div, .cta-btn, .btn, .cookie-banner, .cookie-modal {
  transition: box-shadow .18s, transform .16s, background .17s, color .17s;
}
blockquote {
  position: relative;
}
blockquote:before {
  content: '“';
  font-size: 2.28rem;
  vertical-align: top;
  color: var(--accent);
  position: absolute;
  left: -16px;
  top: -12px;
  line-height: 1;
  opacity: 0.19;
}

/* =======================================================
   DECORATIVE GEOMETRIC SHAPES (for strong modern look)
========================================================= */
.section-accent {
  background: var(--accent);
  color: #fff;
  border-radius: 0 42px 0 42px;
  padding-left: 35px !important;
}

/* ===========================================================
   PRINT STYLE BASIC
=========================================================== */
@media print {
  body { color: #000; background: #fff; }
  header, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  footer { color: #111; background: #fff; }
}
