/* ===== CSS RESET / NORMALIZE ===== */
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,main,footer,header,section,article,nav,figure,figcaption,input,button,hr {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F8F5F0;
  color: #203554;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.18s;
}
img {
  max-width: 100%;
  display: block;
  border: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}
button {
  cursor: pointer;
}

/* ===== VARIABLE COLORS & TYPOGRAPHY ===== */
:root {
  --brand-primary: #203554; /* deep blue-navy */
  --brand-secondary: #E6F0F6; /* fresh, natural bright */
  --brand-accent: #C4A15A;
  --green-accent: #6CA376;
  --earth-brown: #9F8266;
  --nature-beige: #F8F5F0;
  --nature-card: #F2ECE3;
  --organic-shadow: 0 4px 16px rgba(60,85,60,0.08);
  --organic-radius: 18px;
  --display-font: 'Montserrat', Arial, Helvetica, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
  --heading-weight: 600;
  --normal-weight: 400;
  --footer-bg: #203554;
  --footer-text: #F8F5F0;
  --card-border: #D8D2C4;
}

/* ===== GLOBAL CONTAINERS & SPACING ===== */
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--organic-radius);
}

@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 38px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper {
    gap: 18px;
  }
}

/* ===== HEADER ===== */
header {
  background: var(--nature-beige);
  box-shadow: 0 2px 12px rgba(60,85,60,0.04);
  width: 100%;
}
header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  padding-bottom: 20px;
}
header img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--display-font);
  font-weight: 500;
  color: var(--brand-primary);
  font-size: 16px;
  padding: 5px 0;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--green-accent);
  background: var(--brand-secondary);
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 13px 36px;
  border-radius: 30px;
  font-family: var(--display-font);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border: none;
  box-shadow: 0 2px 10px rgba(32,53,84,0.06);
  transition: background 0.2s, color 0.2s, box-shadow 0.23s;
  margin-left: 16px;
}
.btn-primary {
  background: linear-gradient(90deg,#6CA376 60%,#C4A15A 100%);
  color: #fff;
  letter-spacing: 0.01em;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg,#54835C 60%,#A88641 100%);
  color: #fff;
  box-shadow: 0 6px 26px 0 rgba(60,85,60,0.14);
}
.btn-secondary {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-accent);
  font-weight: 500;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--green-accent);
  color: #fff;
  border-color: var(--green-accent);
}

@media (max-width: 900px) {
  .main-nav {
    gap: 18px;
  }
  .btn-primary, .btn-secondary {
    margin-left: 8px;
  }
}

/* ===== MOBILE BURGER MENU ===== */
.mobile-menu-toggle {
  display: none;
  background: var(--green-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 28px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  margin-left: 12px;
  transition: background 0.18s;
  z-index: 102;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--brand-accent);
  color: #fff;
}

@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .btn-primary {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32, 53, 84, 0.85);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100vw);
  transition: opacity 0.28s cubic-bezier(.4,.0,.2,1), transform 0.33s cubic-bezier(.4,.0,.2,1);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 28px;
  color: #fff;
  background: transparent;
  border: none;
  align-self: flex-end;
  margin: 22px 28px 8px 0;
  cursor: pointer;
  z-index: 4100;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100vw;
  padding: 38px 28px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-size: 22px;
  font-family: var(--display-font);
  padding: 8px 0;
  border-radius: 10px;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--green-accent);
  color: #fff;
}

/* ===== HERO & SECTION TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  color: var(--brand-primary);
  font-weight: var(--heading-weight);
  line-height: 1.13;
}
h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.44rem;
  font-weight: 600;
}
h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.52rem;
  }
  h3 {
    font-size: 1.15rem;
  }
}
p, ul, li, a, span {
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: var(--normal-weight);
  color: var(--brand-primary);
  letter-spacing: 0.01em;
}
strong, b {
  font-weight: 600;
}
.subheadline {
  font-size: 1.22rem;
  color: var(--green-accent);
}

/* ===== FLEXBOX STRUCTURE ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--nature-card);
  border-radius: var(--organic-radius);
  box-shadow: var(--organic-shadow);
  margin-bottom: 20px;
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1.5px solid var(--card-border);
}
.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, .content-grid, .feature-grid, .city-highlights, .city-grid, .service-list, .article-list, .property-summaries {
    flex-direction: column !important;
    gap: 20px;
  }
}

/* ===== FEATURE ITEMS ===== */
.feature-grid, .city-highlights, .city-grid, .service-list, .article-list, .property-summaries {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 22px;
  background: #faf8f3;
  border-radius: var(--organic-radius);
  box-shadow: var(--organic-shadow);
  border: 1.5px solid var(--card-border);
  min-width: 235px;
  flex: 1 1 265px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, border-color 0.18s;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 8px 28px rgba(47,89,65,0.13);
  border-color: var(--green-accent);
}

.feature-item img {
  height: 36px;
  width: 36px;
  margin-bottom: 4px;
}

/* ===== CITY CARDS & TILES ===== */
.city-card, .city-tile {
  background: var(--brand-secondary);
  border-radius: var(--organic-radius);
  box-shadow: var(--organic-shadow);
  padding: 26px 22px;
  margin-bottom: 20px;
  flex: 1 1 280px;
  border: 1.5px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.19s, border-color 0.18s;
}
.city-card:hover, .city-tile:hover {
  box-shadow: 0 10px 36px rgba(32,53,84,0.13);
  border-color: var(--green-accent);
}

/* ===== ARTICLE, PROPERTY, SERVICE CARDS ===== */
.article-item, .property-summary, .service-item {
  background: #faf8f3;
  border-radius: var(--organic-radius);
  padding: 28px 22px;
  box-shadow: var(--organic-shadow);
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1.5px solid var(--card-border);
  margin-bottom: 20px;
  transition: box-shadow 0.22s, border-color 0.18s;
}
.article-item:hover, .property-summary:hover, .service-item:hover {
  box-shadow: 0 8px 28px rgba(60,85,60,0.12);
  border-color: var(--green-accent);
}

.service-item img {
  height: 32px;
  width: 32px;
  margin-bottom: 5px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--organic-radius);
  box-shadow: 0 6px 26px 0 rgba(60,85,60,0.12);
  border: 1.5px solid var(--card-border);
  max-width: 380px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.19s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 42px 0 rgba(47,89,65,0.21);
  border-color: var(--green-accent);
}
.testimonial-card p {
  font-size: 16px;
  color: #262B21;
  font-style: italic;
  text-align: center;
}
.testimonial-person {
  color: var(--green-accent);
  font-size: 15px;
  font-weight: 600;
}
.testimonial-rating img {
  display: inline-block;
  height: 18px;
  width: 18px;
  margin-right: 1.5px;
  vertical-align: middle;
}

/* ===== INPUTS & FORMS ===== */
input[type="text"], input[type="number"], select {
  border-radius: 8px;
  background: #faf8f3;
  border: 1.5px solid var(--green-accent);
  padding: 12px 15px;
  margin: 8px 0 0 0;
  font-size: 16px;
  transition: border-color 0.18s, box-shadow 0.17s;
}
input[type="text"]:hover, input[type="number"]:hover,
input[type="text"]:focus, input[type="number"]:focus {
  border-color: var(--brand-accent);
  outline: none;
}
.property-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.property-search input[type="text"] {
  flex: 1 1 215px;
  min-width: 165px;
}
.property-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 10px;
}
.property-filter label {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-family: var(--display-font);
  color: var(--brand-primary);
}

/* ===== LISTS, ICON-LISTS, TIMELINE, STEPS ===== */
.icon-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 0;
}
.icon-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 500;
}
.icon-list img {
  height: 22px;
  width: 22px;
}
.step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timeline {
  margin-top: 10px;
  padding: 13px 22px;
  background: #f3ede8;
  border-left: 4px solid var(--brand-accent);
  border-radius: 10px;
  font-size: 15px;
}

/* ===== FAQ ACCORDION ===== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--nature-card);
  border-radius: 13px;
  padding: 20px 18px;
  box-shadow: 0 2px 12px rgba(60,85,60,0.04);
  border: 1.5px solid var(--card-border);
}
.faq-item h4 {
  margin-bottom: 8px;
  font-size: 17px;
  color: var(--green-accent);
}

/* ===== CATEGORIES FILTER (Ratgeber) ===== */
.categories-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 500;
  margin-top: 14px;
  margin-bottom: 4px;
}
.categories-filter a {
  color: var(--brand-primary);
  background: #e6f0f6;
  padding: 4px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.18s, color 0.17s;
}
.categories-filter a:hover {
  background: var(--green-accent);
  color: #fff;
}

/* ===== CONTACT SECTIONS ===== */
.contact-details ul, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-primary);
  font-size: 16px;
}
.contact-details a {
  color: var(--green-accent);
  font-weight: 600;
}
.contact-map {
  margin-top: 14px;
}
.hours-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15.5px;
}

/* ===== THANK YOU MESSAGE ===== */
.thank-you-message {
  background: var(--brand-secondary);
  border-radius: var(--organic-radius);
  box-shadow: var(--organic-shadow);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1.5px solid var(--card-border);
}

/* ===== FOOTER ===== */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  width: 100%;
  padding: 36px 0 20px 0;
  box-shadow: 0 -3px 22px #687E6009;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  justify-content: center;
}
.footer-nav a {
  color: var(--footer-text);
  font-size: 15px;
  font-family: var(--display-font);
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.footer-nav a:focus, .footer-nav a:hover {
  background: var(--green-accent);
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--footer-text);
  font-size: 14.5px;
}
.footer-contact img {
  height: 17px;
  width: 17px;
  margin-bottom: -2px;
}
footer p {
  color: var(--footer-text);
  font-size: 13.5px;
  margin-top: 7px;
}
.footer-contact a {
  color: var(--brand-accent);
  font-weight: 500;
}
@media (max-width: 650px) {
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .footer-nav {
    gap: 12px;
  }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #faf8f3;
  border-top: 2px solid var(--green-accent);
  box-shadow: 0 -4px 22px 0 rgba(64,107,72,0.09);
  z-index: 5000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  transition: transform 0.34s cubic-bezier(.4,.0,.2,1), opacity 0.23s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner__text {
  color: #312e24;
  font-size: 14.5px;
  line-height: 1.7;
  flex: 1 1 225px;
  margin-right: 14px;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner .btn-cookie {
  padding: 8px 24px;
  border-radius: 18px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  outline: none;
  transition: background 0.21s, color 0.14s;
  margin: 0;
}
.cookie-banner .btn-accept {
  background: var(--green-accent);
  color: #fff;
}
.cookie-banner .btn-accept:hover,.cookie-banner .btn-accept:focus { background: #54835C; }
.cookie-banner .btn-reject {
  background: #f3ede8;
  color: var(--brand-primary);
  border: 1.3px solid var(--brand-accent);
}
.cookie-banner .btn-reject:hover,.cookie-banner .btn-reject:focus { background: var(--brand-accent); color: #fff; }
.cookie-banner .btn-settings {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border: 1.1px solid var(--brand-primary);
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: var(--green-accent);
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 12px;
    gap: 10px;
  }
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 98vw;
  max-width: 410px;
  background: #fff;
  border-radius: var(--organic-radius);
  box-shadow: 0 12px 44px rgba(60,85,60,0.12);
  border: 1.5px solid var(--card-border);
  transform: translate(-50%, -50%) scale(1);
  z-index: 5300;
  padding: 28px 28px 16px 28px;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.22s, transform 0.23s;
}
.cookie-modal.hide {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  pointer-events: none;
}
.cookie-modal__header {
  font-family: var(--display-font);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal__close {
  font-size: 20px;
  color: var(--brand-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal__close:focus, .cookie-modal__close:hover {
  color: var(--green-accent);
}
.cookie-modal__body {
  margin: 8px 0 14px 0;
  font-size: 15px;
  color: #353240;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 11px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--green-accent);
  width: 18px;
  height: 18px;
  margin: 0;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-category .cookie-checked {
  color: var(--green-accent);
  margin-left: 6px;
  font-size: 14px;
}
.cookie-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal .btn-cookie {
  padding: 7px 22px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
}

/* ===== UTILITY CLASSES ===== */
.hide {
  display: none;
}
.flex {
  display: flex !important;
}
.flex-wrap {
  flex-wrap: wrap !important;
}
.align-center {
  align-items: center !important;
}
.align-start {
  align-items: flex-start !important;
}
.justify-between {
  justify-content: space-between !important;
}
.gap-20 { gap: 20px !important; }

/* ===== ORGANIC / NATURE MICRO-EFFECTS ===== */
.card, .feature-item, .city-card, .city-tile, .testimonial-card {
  transition: box-shadow 0.22s, border-color 0.18s, transform 0.18s;
}
.card:hover, .feature-item:hover, .city-card:hover, .city-tile:hover, .testimonial-card:hover {
  transform: translateY(-2px) scale(1.01);
}

/* Organic shapes for sections */
.section {
  background: linear-gradient(120deg, #F8F5F0 84%, #E9EFE0 100%);
  border-radius: 65px 30px 90px 26px/40px 75px 38px 80px;
}

/* Adjust certain pages for visual hierarchy */
main > section:first-child {
  background: linear-gradient(100deg, #E6F0F6 80%, #D9E2D4 100%);
  box-shadow: 0 10px 34px rgba(108,163,118,0.09);
  border-radius: 60px 30px 100px 18px/55px 65px 38px 88px;
}
@media (max-width: 650px) {
  .section, main > section:first-child {
    border-radius: 26px 35px 35px 26px/30px 27px 38px 24px;
  }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 860px) {
  .feature-grid, .city-highlights, .city-grid, .service-list, .property-summaries {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item, .city-card, .city-tile, .service-item, .property-summary {
    min-width: unset;
    flex: 1 1 95%;
  }
  .testimonials {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 530px) {
  .btn-primary, .btn-secondary {
    font-size: 15px;
    padding: 10px 18px;
  }
}

/* =====  FOCUS STATES & A11Y ===== */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2.5px dashed var(--green-accent);
  outline-offset: 2.5px;
}

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