/* --- CSS RESET & MONOCHROME SOPHISTICATION --- */
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;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section{
  display:block;
}
body {
  line-height:1.5;
  background: #fff;
  color: #181818;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border: 0; }
table { border-collapse: collapse; border-spacing: 0; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #101114;
  font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; letter-spacing: -1px; }
h2 { font-size: 2rem; line-height: 1.22; margin-bottom: 20px; letter-spacing: -0.5px; }
h3 { font-size: 1.35rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.08rem; }
p, ul, ol, address, li, span {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #232323;
}
strong { color: #181818; font-weight: 600; font-family: 'Montserrat', Arial, Helvetica, sans-serif; }

/* --- CONTAINER & SPACING SYSTEM --- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(20, 22, 27, 0.08);
  position: relative;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
    border-radius: 12px;
  }
}

/* --- HEADER --- */
header {
  width: 100%;
  background: #181a1c;
  color: #fff;
  z-index: 202;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  min-height: 64px;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo img {
  height: 38px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.main-nav a {
  color: #f7f7f7;
  padding: 8px 0;
  font-size: 1rem;
  transition: color .16s cubic-bezier(.4,0,.2,1);
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #fff;
  border-bottom: 2px solid #a4b494;
}
.main-nav .btn-primary {
  margin-left: 18px;
}

@media (max-width: 1023px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 14px;
  }
  .logo img { height: 30px; }
}
@media (max-width: 768px) {
  header .container {
    padding-top: 0;
    padding-bottom: 0;
  }
  .main-nav { display: none; }
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  position: absolute;
  top: 19px;
  right: 24px;
  z-index: 303;
  transition: color .2s;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(24, 26, 28, 0.97);
  color: #fff;
  z-index: 501;
  transform: translateX(-100vw);
  transition: transform .38s cubic-bezier(.85,0,.25,1);
  box-shadow: 4px 0 40px rgba(0,0,0,0.16);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 0 16px 24px;
  align-self: flex-start;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.9rem;
  cursor: pointer;
  transition: color .2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #a4b494;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  line-height: 1.7;
  padding: 10px 0;
  border-bottom: 1px solid rgba(254,254,254,0.06);
  transition: color .18s;
  touch-action: manipulation;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: #a4b494;
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* --- HERO & MAJOR SECTIONS --- */
.hero {
  background: #f5f6f8;
  color: #101114;
  min-height: 350px;
  display: flex;
  align-items: center;
}
.hero .container, .hero .content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}
.hero h1,
.hero p {
  color: #101114;
}
.hero .btn-primary {
  margin-top: 16px;
}

@media (max-width: 700px) {
  .hero { min-height: 220px; }
  .hero h1 { font-size: 2rem; }
}

/* --- FLEXBOX PATTERNS FOR CONTENT --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 12px rgba(30,34,40,0.09);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  min-width: 230px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 28px rgba(30,34,40,0.13), 0 1.5px 8px rgba(85,85,105,0.07);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: #f7f7f7;
  border-radius: 20px;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonials h2 { color: #222; }
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(40,36,36,0.085);
  margin-bottom: 20px;
  max-width: 500px;
  border-left: 5px solid #30475e;
  transition: box-shadow .18s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px rgba(27,34,44,0.14);
  border-left-color: #a4b494;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #181818;
  font-style: italic;
}
.testimonial-card span {
  font-size: 1rem;
  color: #444;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-style: normal;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 16px;
    max-width: 100%;
  }
}

/* --- BUTTONS & INTERACTIVE ELEMENTS --- */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 1.10rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all .13s cubic-bezier(.48,.06,.62,1.38);
  box-shadow: 0 2px 8px rgba(48,71,94,0.04);
  min-width: 120px;
}
.btn-primary {
  background: #181818;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #30475e;
  color: #fff;
  box-shadow: 0 4px 18px rgba(31,50,70,0.11);
  outline: none;
}
.btn-secondary {
  background: #fff;
  color: #181818;
  border: 2px solid #30475e;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #30475e;
  color: #fff;
  border-color: #212933;
  outline: none;
}

/* --- FORMS & INPUTS --- */
input[type="text"],
select,
button,
.property-search-bar input[type="text"] {
  appearance: none;
  border-radius: 7px;
  border: 1.5px solid #d3d6d8;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: #181818;
  background: #fafbfb;
  margin-right: 5px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus,
select:focus {
  border-color: #30475e;
  box-shadow: 0 0 0 2px #a4b49425;
}
.property-search-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px 0;
}
.property-search-bar button {
  padding: 10px 22px;
  background: #30475e;
  color: #fff;
  border-radius: 7px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s;
}
.property-search-bar button:hover, .property-search-bar button:focus {
  background: #181818;
}
.property-filter {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin: 10px 0 24px 0;
}
@media (max-width: 600px) {
  .property-search-bar, .property-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* --- FEATURE & SERVICES LISTS --- */
.features, .services, .about-preview, .services-preview, .property-listings, .posts-list, .categories, .team, .faq, .process {
  background: #fff;
}
.features .content-wrapper ul, .services .content-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}
.features .content-wrapper ul li,
.services .content-wrapper ul li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.08rem;
  background: #fafbfb;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(48,71,94,0.07);
  padding: 16px 20px;
  margin-bottom: 0;
  color: #181818;
  min-width: 210px;
}
.features .content-wrapper ul img,
.services .content-wrapper ul img {
  width: 28px;
  height: 28px;
  filter: grayscale(1) contrast(1.1);
}
@media (max-width: 700px) {
  .features .content-wrapper ul,
  .services .content-wrapper ul {
    gap: 12px;
    flex-direction: column;
  }
}
.about-preview ul, .services-preview ul, .about-preview li, .services-preview li { margin-bottom: 6px; }
.property-listings ul, .categories ul, .posts-list ul, .team ul, .faq ul, .process ul, .process ol { margin-bottom: 0; padding-left: 0; }
.property-listings ul li, .posts-list ul li, .categories ul li, .team ul li, .faq ul li, .process ul li, .process ol li {
  margin-bottom: 10px;
  line-height: 1.7;
  padding-left: 0;
}

/* --- ADDRESS/CONTACT STYLES --- */
address {
  font-style: normal;
  color: #222;
  background: #f3f4f6;
  border-radius: 9px;
  padding: 14px 20px;
  font-size: 1rem;
  margin: 12px 0 0 0;
  letter-spacing: 0.1px;
  box-shadow: 0 1.5px 8px rgba(55,58,66,0.05);
}
address strong { font-size: 1.06rem; color: #181818; }
address img {
  width: 18px; height: 18px; filter: grayscale(1) contrast(1.2); vertical-align: middle; margin-right: 4px;
}
@media (max-width: 600px) {
  address {
    padding: 10px 8px;
    font-size: 0.97rem;
    border-radius: 6px;
  }
}

/* --- MAP PLACEHOLDER --- */
.map-placeholder {
  width: 100%;
  min-height: 160px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  border: 1px solid #e2e2e2;
  margin-bottom: 16px;
}

.team-placeholder {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: #fafbfc;
  border-radius: 100%;
  border: 1.5px solid #e5e8ef;
}

/* --- CONFIRMATION / THANK-YOU / CTA --- */
.confirmation, .cta, .contact-teaser {
  background: #f7f7f7;
  border-radius: 18px;
  padding: 38px 20px;
  box-shadow: 0 2px 12px rgba(48,57,70,0.05);
  margin-bottom: 56px;
  text-align: center;
}
@media (max-width: 600px) {
  .confirmation, .cta, .contact-teaser {
    padding: 22px 6px;
  }
}
.next-steps ul {
  margin-top: 14px;
}

/* --- FOOTER --- */
footer {
  background: #101114;
  color: #f7f7f7;
  padding-top: 40px;
  padding-bottom: 0;
  width: 100%;
}
.footer-main {
  display: flex;
  flex-direction: row;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid #222325;
  flex-wrap: wrap;
}
.footer-main > * {
  flex: 1 0 180px;
}
.footer-main .footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-main .footer-links nav a {
  color: #f7f7f7;
  opacity: 0.9;
  font-size: 1rem;
  margin-bottom: 2px;
  transition: color .15s;
}
.footer-main .footer-links nav a:hover,
.footer-main .footer-links nav a:focus {
  color: #a4b494;
  outline: none;
}
.footer-main address {
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  color: #d5d6df;
  font-size: 0.98rem;
}
.footer-main img {
  width: 52px;
  margin-bottom: 8px;
}
.footer-bottom {
  color: #888e98;
  font-size: 0.95rem;
  padding: 13px 0 11px 0;
  text-align: center;
}
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .footer-main > * { flex: unset; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #222328;
  color: #f7f7f7;
  padding: 22px 20px 20px 20px;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  box-shadow: 0 -3px 14px rgba(50,54,72,0.13);
  transition: transform 0.42s cubic-bezier(.51,.18,.4,1.1);
  transform: translateY(0);
}
.cookie-banner.hidden {
  transform: translateY(130%);
  pointer-events: none;
}
.cookie-banner__message {
  flex: 2;
  font-size: 1.01rem;
  color: #e3e3e3;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner__button, .cookie-modal__button {
  padding: 10px 22px;
  border: none;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cookie-banner__button.accept {
  background: #30475e;
  color: #fff;
}
.cookie-banner__button.accept:hover { background: #222933; }
.cookie-banner__button.reject {
  background: #fff;
  color: #101114;
  border: 1.5px solid #384857;
}
.cookie-banner__button.reject:hover { background: #eaeaea; }
.cookie-banner__button.settings {
  background: transparent;
  color: #a4b494;
  border: 1.5px solid #a4b494;
}
.cookie-banner__button.settings:hover {
  background: #a4b494;
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    align-items: stretch;
    padding: 20px 10px 18px 10px;
  }
  .cookie-banner__actions { flex-direction: column; gap: 10px; }
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 12000;
  background: rgba(48, 51, 56, 0.76);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.24s cubic-bezier(.6,0,.4,1.05);
}
.cookie-modal.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__content {
  background: #f7f7f7;
  color: #101114;
  border-radius: 14px;
  max-width: 410px;
  width: 98vw;
  box-shadow: 0 8px 36px rgba(41,45,55,.19);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #30475e;
  cursor: pointer;
  transition: color .2s;
}
.cookie-modal__close:hover { color: #a4b494 }
.cookie-modal__title {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0px;
}
.cookie-modal__desc {
  font-size: 1.02rem; color: #222;
}
.cookie-modal__options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 16px 0;
}
.cookie-modal__option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  background: #eff1f1;
  padding: 11px 16px;
  border-radius: 9px;
}
.cookie-modal__option--essential label {
  font-weight: 600; color: #181818;
}
.cookie-modal__option input[type='checkbox'] {
  accent-color: #30475e;
  width: 18px; height: 18px;
  cursor: pointer;
}
.cookie-modal__option--essential input[type='checkbox'] {
  display: none;
}
.cookie-modal__option--essential:after {
  content: 'Immer aktiviert';
  font-size: 0.98rem;
  color: #7a7a7a;
  margin-left: 10px;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal__button {
  margin-top: 0;
  background: #30475e;
  color: #fff;
  min-width: 120px;
  margin-right: 0px;
  border: none;
}
.cookie-modal__button:last-child {
  background: #fff;
  color: #222;
  border: 1px solid #d5d6df;
}
.cookie-modal__button:hover, .cookie-modal__button:focus {
  background: #a4b494;
  color: #fff;
}
.cookie-modal__button:last-child:hover {
  background: #f2f2f2;
  color: #222;
}
@media (max-width: 500px) {
  .cookie-modal__content {
    padding: 18px 5vw;
    max-width: 98vw;
  }
}

/* --- MICRO-INTERACTIONS (TRANSITION) --- */
a, button, input, .btn-primary, .btn-secondary {
  transition: background .18s, color .15s, box-shadow .13s, border-color .12s;
}

/* --- ACCESSIBILITY / FOCUS STATES --- */
:focus {
  outline: 2px dashed #a4b494;
  outline-offset: 2px;
}

.btn-primary:focus, .btn-secondary:focus { outline: 2.5px solid #a4b494; }

/* --- SELECTED / ACTIVE STATES --- */
select:active, button:active {
  filter: brightness(0.97);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
  background: #f7f7f7;
}
::-webkit-scrollbar-thumb {
  background: #c1c4cc;
  border-radius: 7px;
}

/* --- MISCELLANEOUS --- */
.section, .testimonials, .card, .confirmation, .cta, .contact-teaser {
  margin-bottom: 60px;
}
.card, .testimonial-card, .features .content-wrapper ul li, .services .content-wrapper ul li {
  margin-right: 0;
  margin-left: 0;
}

/* --- RESPONSIVE FLEXBOX LAYOUTS --- */
@media (max-width: 900px) {
  .footer-main { gap: 22px; }
}
@media (max-width: 600px) {
  .footer-main { gap: 14px; padding-bottom: 18px; }
}
@media (max-width: 450px) {
  .card, .testimonial-card { padding: 10px; }
  .section, .contact-teaser, .confirmation, .cta, .testimonials {
    padding: 12px 0px;
    border-radius: 8px;
  }
  .about-preview ul, .about-preview li { font-size: 0.99rem; }
}

/* --- PRINT FRIENDLY --- */
@media print {
  header, .main-nav, .mobile-menu, .footer-main, .footer-bottom, .cookie-banner, .cookie-modal {
      display: none !important;
  }
  section, .content-wrapper, .container { box-shadow: none !important; background: #fff !important; }
}
