/* CSS RESET & NORMALIZATION */
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 {
  scroll-behavior: smooth;
  background: #F4F7FB;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #23395B;
  background: #F4F7FB;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #23395B;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem; /* 32px */
}
h3 {
  font-size: 1.375rem; /* 22px */
}
h4 {
  font-size: 1.125rem; /* 18px */
}
h5, h6 { font-size: 1rem; }

p, ul, ol, li, label {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #23395B;
  font-size: 1rem;
  margin-bottom: 14px;
}
strong, b {
  font-weight: 700;
}
a {
  color: #A08D3A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #474C23;
  text-decoration: underline;
}

/* CONTAINERS & LAYOUT */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  margin-bottom: 0;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 22px;
  box-shadow: 0 2px 12px rgba(80,91,75,0.06);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* GLOBAL SPACING & FLEX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #F8F8F5;
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(123, 149, 92, 0.07);
  padding: 28px 20px 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F4F7FB;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(35,57,91,0.06);
  margin-bottom: 20px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 10px;
}

/* FLEX ADJUSTMENTS FOR SPECIFIC BLOCKS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 260px;
  min-width: 220px;
  background: #F8F8F5;
  border-radius: 16px;
  padding: 28px 20px 24px 20px;
  margin-bottom: 0;
  box-shadow: 0 1px 8px rgba(123, 149, 92, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.3s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 28px rgba(123, 149, 92, 0.13);
}

.city-list, .property-listing-overview, .article-list, .testimonial-list, .city-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.city-list > div, .property-listing-overview > div, .article-list > div, .city-cards > div {
  flex: 1 1 266px;
  min-width: 220px;
  background: #F3F0E8;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(123, 149, 92, 0.04);
  padding: 22px 16px 20px 16px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  flex: 1 1 300px;
  background: #FFFFFF;
  border: 1px solid #E3E0D1;
  color: #23395B;
  margin-bottom: 20px;
  box-shadow: 0 1px 14px rgba(123, 149, 92, 0.08);
}
.testimonial-card p {
  font-style: italic;
  color: #323b2f;
  font-size: 1.05rem;
  margin-right: 0.7em;
  line-height: 1.5;
}
.testimonial-card strong {
  color: #668554;
  font-size: 1em;
  margin-left: auto;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 30px;
}
.contact-details > div {
  background: #F8F8F5;
  border-radius: 12px;
  padding: 16px 14px;
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.contact-details img {
  width: 22px;
  height: 22px;
}

/* HERO SECTION */
.hero {
  background: #E8EAE3;
  border-radius: 0 0 44px 44px;
  box-shadow: 0 8px 40px -10px rgba(35, 57, 91, 0.07);
  margin-bottom: 60px;
  padding: 56px 0 48px 0;
  position: relative;
}
.hero .container {
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero h1 {
  color: #304A30;
  text-shadow: 0 6px 0px #F4F7FB;
}
.hero .subheadline {
  font-size: 1.25rem;
  color: #596B3E;
  font-weight: 400;
  margin-bottom: 22px;
  text-align: center;
}

/* BUTTONS & INTERACTIVES */
.cta-btn, button.cta-btn, .cookie-banner button {
  display: inline-block;
  background: #A08D3A;
  color: #FFFFFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 14px 32px;
  cursor: pointer;
  box-shadow: 0 3px 16px rgba(185,192,120,0.14);
  transition: background 0.18s, box-shadow 0.21s, transform 0.15s;
  margin: 20px 0 0 0;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus, .cookie-banner button:hover {
  background: #8C7A26;
  color: #FFF;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 5px 24px rgba(160,141,58,0.25);
}
.cta-btn:active {
  background: #A08D3A;
}

/* HEADER & NAVIGATION */
header {
  background: #23395B;
  padding: 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 800;
  box-shadow: 0 3px 20px rgba(35,57,91,0.07);
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header img[alt='Storm Frontier Immobilien'] {
  height: 48px;
  width: auto;
  margin-right: 28px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}
header nav a {
  color: #F4F7FB;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 16px;
  border-radius: 20px;
  transition: background 0.18s, color 0.14s;
}
header nav a:hover, header nav a:focus {
  background: #A08D3A;
  color: #fff;
}
header .cta-btn {
  margin: 0 0 0 28px;
  box-shadow: 0 2px 8px rgba(160,141,58,0.14);
  white-space: nowrap;
}

/* FOOTER */
footer {
  background: #23395B;
  color: #F4F7FB;
  padding: 40px 0 18px 0;
  border-radius: 36px 36px 0 0;
  margin-top: 70px;
  box-shadow: 0 -2px 40px 0 rgba(160,141,58,0.10);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
}
.footer-brand img {
  width: 68px;
  height: auto;
  margin-top: 4px;
}
.footer-brand div {
  line-height: 1.7;
  color: #F8F8F5;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #ddddcb;
  font-size: 1rem;
  margin-bottom: 3px;
  transition: color 0.15s;
}
.footer-nav a:hover {
  color: #A08D3A;
}
footer a {
  color: #F8F8F5;
  text-decoration: underline dotted;
}
footer a:hover {
  color: #A08D3A;
  text-decoration: underline;
}
.social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.social-links a img {
  width: 32px; height: 32px; filter: grayscale(1) brightness(1.3); transition: filter 0.15s; border-radius: 50%; background: #F2EDD6; padding: 5px;
}
.social-links a:hover img {
  filter: none; background: #A08D3A;
}

/* MOBILE NAVIGATION (BURGER MENU) */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 1201;
  background: #A08D3A;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 10px;
  width: 48px;
  height: 48px;
  box-shadow: 0 3px 16px rgba(185,192,120,0.2);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.17s;
}
.mobile-menu-toggle:hover {
  background: #8C7A26;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: rgba(35,57,91,0.98);
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.78,.13,.15,.86);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 22px 0 0;
  background: none;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #A08D3A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 70px 0 0 32px;
}
.mobile-nav a {
  color: #F4F7FB;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  padding: 14px 6px;
  border-bottom: 1px solid #A08D3A;
  border-radius: 0;
  transition: background 0.16s, color 0.13s;
  margin-right: 32px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A08D3A;
  color: #fff;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1600;
  background: #304A30;
  color: #FFFFFF;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  box-shadow: 0 -7px 40px rgba(35,57,91,0.07);
  padding: 26px 12px 19px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: bottom 0.4s, opacity 0.27s;
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 340px;
  min-width: 0;
  line-height: 1.5;
  margin-right: 14px;
}
.cookie-banner button {
  margin: 0 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  background: #A08D3A;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.13s, color 0.13s;
}
.cookie-banner button.reject {
  background: #bab29d;
  color: #26331d;
}
.cookie-banner button.settings {
  background: #F8F8F5;
  color: #294820;
  border: 1px solid #A08D3A;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #8C7A26;
  color: #F8F8F5;
}
.cookie-banner button.settings:hover {
  background: #A08D3A;
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1700;
  background: rgba(44, 44, 28, 0.46);
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.open {
  display: flex;
}
.cookie-modal {
  background: #f7f6ef;
  color: #23395B;
  border-radius: 24px;
  max-width: 420px;
  padding: 34px 30px 26px 30px;
  box-shadow: 0 6px 40px rgba(35,57,91,0.19);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: appearCookieModal 0.38s cubic-bezier(.53,.03,.43,1.24);
}
@keyframes appearCookieModal {
  0% { transform: translateY(90px) scale(0.97); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  margin-bottom: 12px;
  color: #304A30;
  font-size: 1.25rem;
  font-weight: 700;
}
.cookie-modal .categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-modal label {
  font-weight: 600;
  font-size: 1rem;
  color: #23395B;
}
.cookie-modal input[type='checkbox'] {
  width: 20px; height: 20px;
  accent-color: #A08D3A;
  border-radius: 3px;
}
.cookie-modal .essential {
  opacity: 0.7;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  min-width: 120px;
  margin: 0;
}
.cookie-modal .close-modal {
  position: absolute; top: 8px; right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #36542a;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal .close-modal:hover {
  color: #A08D3A;
}

/* ORGANIC/NATURE DESIGN ELEMENTS */
.section, .card-container, .card, .feature-grid > div, .city-list > div, .property-listing-overview > div, .article-list > div, .city-cards > div, .testimonial-card {
  border-radius: 18px 34px 22px 30px/22px 22px 30px 28px;
}
.hero, footer {
  border-radius: 0 0 48px 48px/0 0 32px 32px;
}

.section {
  background-image: url('assets/textures/leaves_pattern_light.svg');
  background-repeat: repeat;
  background-size: 320px auto;
}
.card, .feature-grid > div, .city-list > div, .property-listing-overview > div, .article-list > div, .city-cards > div {
  background-image: url('assets/textures/paper_fiber.png');
  background-repeat: repeat;
  background-size: 220px auto;
}

/* LISTS */
ul, ol {
  margin-left: 1.45em;
  margin-bottom: 16px;
}
li {
  padding-left: 2px;
  margin-bottom: 7px;
  font-size: 1rem;
}
ul li::marker {
  color: #A08D3A;
  font-size: 1.15em;
}

/* MISC */
address {
  font-style: normal;
  color: #23395B;
  font-size: 1.07rem;
  margin: 10px 0 10px 0;
}

img {
  max-width: 100%;
  height: auto;
  border: none;
  vertical-align: middle;
}

/* ICONS */
img[alt^='Icon'], img[src*='icon-'] {
  width: 32px;
  height: 32px;
}

/* ORGANIC SHADOWS */
.card, .feature-grid > div, .city-list > div, .article-list > div, .testimonial-card {
  box-shadow: 0 4px 17px rgba(160,141,58,0.08);
  transition: box-shadow 0.21s;
}
.card:hover, .feature-grid > div:hover, .city-list > div:hover, .property-listing-overview > div:hover {
  box-shadow: 0 7px 32px rgba(185,192,120,0.16);
}

/* RESPONSIVE DESIGN & FLEX ADJUSTMENTS */
@media (max-width: 1024px) {
  .container {
    max-width: 95vw;
  }
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .city-list, .property-listing-overview, .article-list, .city-cards, .testimonial-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .feature-grid > div, .city-list > div, .property-listing-overview > div, .article-list > div, .city-cards > div, .testimonial-card {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
  }
  nav, header nav, header .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero {
    padding-top: 36px;
    padding-bottom: 26px;
  }
  .section {
    padding: 22px 6px;
  }
  .testimonial-card, .feature-grid > div, .city-list > div, .property-listing-overview > div, .article-list > div, .city-cards > div, .contact-details > div {
    padding: 16px 10px;
  }
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  footer .container {
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 560px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  h3 {
    font-size: 1.07rem;
  }
  .footer-brand img {
    width: 51px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    text-align: left;
    padding: 17px 5px 13px 6px;
  }
  .cookie-banner button {
    font-size: 0.92em;
    padding: 8px 14px;
  }
  .cookie-modal {
    max-width: 97vw;
    padding: 20px 8px 21px 8px;
  }
}

/* TRANSITIONS & INTERACTIONS */
.card, .feature-grid > div, .cta-btn, .mobile-menu, .cookie-modal {
  transition: box-shadow 0.2s, background 0.17s, transform 0.17s;
}
img, .social-links img {
  transition: filter 0.19s, box-shadow 0.16s;
}

/* NATURE/ORGANIC DECOR: WAVY DIVIDERS (optional usage in sections) */
.organic-divider {
  width: 100%;
  height: 36px;
  background: url('assets/textures/organic_wave.svg') repeat-x bottom;
  background-size: 460px 36px;
  margin: 0; padding: 0; border: none;
  display: block;
}

/* VISUAL HIERARCHY/ELEMENT SPACING (see required layouts) */
main > section {
  margin-bottom: 60px;
  padding: 0;
}
.section:not(:last-child), .card:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 20px;
}

/* FORM (if present in contact or cookie modals) */
input, textarea, select {
  border-radius: 8px;
  border: 1px solid #A08D3A;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 11px 13px;
  margin-bottom: 15px;
  font-size: 1rem;
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #304A30;
  outline: none;
}

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

/* Z-INDEX SAFETY */
header    { z-index: 800; }
.mobile-menu { z-index: 1200; }
.mobile-menu-toggle { z-index: 1201; }
.cookie-banner { z-index: 1600; }
.cookie-modal-backdrop { z-index: 1700; }

/* PRINT-FRIENDLY */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .mobile-menu-toggle { display: none !important; }
  main { padding: 0 !important; }
}
