/* --- CSS RESET & BASE STYLES --- */
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,
main, 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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: linear-gradient(135deg, #f2f4f8 0%, #e4eaf3 100%);
  color: #223155;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #223155;
}
h1 { font-size: 2.75rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol {
  font-size: 1rem;
  color: #34405e;
  margin-bottom: 14px;
}
a { color: #12766a; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #00796B; text-decoration: underline; }
strong { font-weight: 700; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }
blockquote {
  padding: 16px 22px;
  background: #f2f4f8;
  border-left: 4px solid #12766a;
  font-style: italic;
  color: #223155;
  margin-bottom: 14px;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1190px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(34,49,85,0.07);
  transition: box-shadow 0.2s;  
}
.card:hover {
  box-shadow: 0 12px 36px 0 rgba(18,118,106,0.17);
}
.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;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 20px 0 rgba(34,49,85,0.11);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 570px;
  color: #223155;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HEADER --- */
header {
  background: linear-gradient(90deg, #223155 65%, #12766A 100%);
  color: #fff;
  padding: 0;
  position: sticky;
  z-index: 20;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 22px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: #f2f4f8;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 4px 0;
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #fff;
}
.cta-btn {
  background: linear-gradient(90deg, #12766A, #00b8a9);
  color: #fff;
  border: none;
  outline: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  padding: 11px 32px;
  box-shadow: 0 2px 16px 0 rgba(18,118,106,0.23);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #00796B, #12766A);
  box-shadow: 0 4px 22px 0 rgba(18,118,106,0.18);
  transform: translateY(-2px) scale(1.030);
}

.mobile-menu-toggle {
  display: none;
  background: linear-gradient(135deg, #12766A 90%, #223155 100%);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 12px;
  padding: 5px 17px;
  cursor: pointer;
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 50;
  box-shadow: 0 2px 14px 0 rgba(18,118,106,0.14);
  transition: background 0.2s, transform 0.2s;
}
.mobile-menu-toggle:active {
  transform: scale(0.98);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #f2f4f8 70%, #12766A 100%);
  z-index: 100;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.66,.01,.3,.99), opacity 0.2s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  display: block;
  background: #fff;
  color: #223155;
  font-size: 2rem;
  border: none;
  border-radius: 12px;
  margin: 18px auto 18px 18px;
  padding: 7px 16px 5px 10px;
  align-self: flex-start;
  box-shadow: 0 0 15px rgba(34,49,85,0.07);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-left: 32px;
}
.mobile-nav a {
  color: #223155;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 6px 0;
  transition: color 0.15s, background 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #12766a;
  background: #e7f6f1;
  border-radius: 6px;
  padding-left: 10px;
}

/* --- HERO SECTIONS & MAJOR CALLS TO ACTION --- */
.hero-section {
  background: linear-gradient(105deg, #12766a 5%, #f2f4f8 90%);
  color: #223155;
  padding: 68px 0 60px 0;
  margin-bottom: 0;
}
.hero-section h1 {
  color: #223155;
  letter-spacing: 0.008em;
}
.hero-section p {
  font-size: 1.18rem;
  color: #34405e;
  margin-bottom: 18px;
}
.hero-section .cta-btn {
  margin-top: 18px;
}

/* --- FEATURES & ADVANTAGES --- */
.features-section {
  background: #fff;
  border-radius: 32px;
  margin: 32px 0 60px 0;
  box-shadow: 0 4px 26px 0 rgba(34,49,85,0.07);
}
.features-section h2 {
  color: #12766a;
  margin-bottom: 20px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin-top: 18px;
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f2f4f8;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(18,118,106,0.08);
  padding: 22px 20px 20px 20px;
  align-items: flex-start;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 220px;
  margin-bottom: 0 !important;
  transition: box-shadow 0.18s, transform 0.12s;
}
.feature-grid li strong {
  color: #223155;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.11rem;
  margin-bottom: 2px;
}
.feature-grid li:hover {
  box-shadow: 0 6px 20px 0 rgba(18,118,106,0.18);
  transform: translateY(-3px) scale(1.01);
}

/* --- PROPERTY CARDS --- */
.property-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
}
.property-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 13px 0 rgba(34,49,85,0.10);
  padding: 26px 28px 22px 28px;
  flex: 1 1 320px;
  max-width: 350px;
  min-width: 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: box-shadow 0.18s, transform 0.16s;
  position: relative;
}
.property-card h3 {
  color: #12766a;
}
.property-card ul {
  margin: 10px 0;
  color: #34405e;
}
.property-card a {
  align-self: flex-start;
  background: #12766a;
  color: #fff;
  border-radius: 21px;
  padding: 5px 18px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.20s;
  margin-top: 10px;
}
.property-card a:hover, .property-card a:focus {
  background: #00796B;
  color: #fff;
}
.property-card:hover {
  box-shadow: 0 10px 28px 0 rgba(34,49,85,0.17);
  transform: scale(1.014);
}

/* --- CITY OVERVIEW, CITY HIGHLIGHT --- */
.city-overview-section, .city-highlight-section {
  background: #f2f4f8;
  border-radius: 32px;
  margin: 34px 0 48px 0;
  box-shadow: 0 4px 18px 0 rgba(34,49,85,0.07);
}
.city-overview-section h2, .city-highlight-section h2 {
  color: #12766a;
  margin-bottom: 20px;
}
.city-overview-section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  font-size: 1.1rem;
  margin-top: 10px;
}
.city-highlight-section .text-section {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 8px rgba(34,49,85,0.08);
}

/* --- PROCESS, TRUST SIGNALS --- */
.process-section {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 2px 11px 0 rgba(34,49,85,0.08);
}
.process-section ol {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin: 12px 0 18px 0;
  list-style-position: inside;
}
.process-section ol li {
  background: #f2f4f8;
  border-radius: 13px;
  padding: 11px 16px;
  font-weight: 600;
  color: #00796B;
}
.trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  margin-top: 6px;
}
.trust-signals p {
  display: flex;
  align-items: center;
  background: #f2f4f8;
  color: #12766a;
  border-radius: 8px;
  padding: 7px 14px 7px 10px;
  font-size: 0.98rem;
  font-weight: 600;
}
.trust-signals img {
  margin-right: 8px;
  width: 23px; height: 23px;
}

/* --- TESTIMONIALS --- */
.testimonials-section {
  padding-bottom: 32px;
}
.testimonials-section h2 {
  color: #12766a;
  margin-bottom: 18px;
}
.testimonial-card blockquote {
  color: #223155;
  background: #f2f4f8;
  border-radius: 10px;
  margin-bottom: 6px;
  border-left: 5px solid #12766a;
  padding: 14px 20px;
  font-style: italic;
  font-size: 1.16rem;
  line-height: 1.6;
}
.testimonial-card p strong {
  color: #12766a;
  font-size: 1.03rem;
}

/* --- CTA SECTIONS / BANNERS --- */
.cta-section {
  background: linear-gradient(95deg, #12766a 8%, #223155 90%);
  border-radius: 26px;
  color: #fff;
  box-shadow: 0 3px 13px 0 rgba(34,49,85,0.10);
  margin: 42px 0 34px 0;
  padding: 32px 26px;
  text-align: center;
}
.cta-section .cta-btn {
  margin: 8px 0 0 0;
  color: #fff !important;
}

/* --- FOOTER --- */
footer {
  background: #223155;
  color: #fff;
  padding: 0;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid #38476b;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 185px;
}
.footer-nav a {
  color: #ebab5e;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #f2f4f8; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.97rem;
}
.footer-contact img {
  width: 19px; height: 19px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-cta-btn {
  background: linear-gradient(90deg, #12766A, #00b8a9);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 9px 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 14px 0 rgba(18,118,106,0.14);
  margin-top: 16px;
  display: inline-block;
  transition: background 0.2s, transform 0.1s;
}
.footer-cta-btn:hover, .footer-cta-btn:focus {
  background: linear-gradient(90deg, #00796B, #12766A);
  transform: translateY(-2px);
}
.copyright {
  text-align: center;
  font-size: 0.98rem;
  color: #d7e2f4;
  padding: 16px 0;
}

/* --- PAGINATION, QUICK LINKS, ARTICLE LISTS, FAQ --- */
.article-list {
  list-style: disc inside;
  margin-bottom: 22px;
}
.quick-links {
  display: flex;
  gap: 18px;
  list-style: none;
}
.quick-links a {
  color: #00796b;
  font-weight: 700;
  transition: color 0.18s;
}
.quick-links a:hover {
  color: #223155;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  list-style: none;
}
.faq-list li strong {
  color: #12766a;
  font-size: 1.07rem;
}

/* --- SERVICE LIST (LEISTUNGEN) --- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  list-style: none;
}
.service-list li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f2f4f8;
  border-radius: 18px;
  box-shadow: 0 1px 8px 0 rgba(34,49,85,0.08);
  padding: 22px 18px 20px 18px;
  align-items: flex-start;
  min-width: 210px;
  max-width: 320px;
  flex: 1 1 210px;
  margin-bottom: 0 !important;
  transition: box-shadow 0.15s, transform 0.09s;
}
.service-list li strong {
  color: #223155;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.10rem;
}
.service-list li:hover {
  box-shadow: 0 6px 20px 0 rgba(18,118,106,0.14);
  transform: translateY(-2px);
}
.service-list img {
  width: 42px; height: 42px;
}

/* --- CONTACT DETAILS --- */
.contact-details {
  background: #f2f4f8;
  border-radius: 13px;
  padding: 16px 24px;
  margin: 15px 0;
  color: #223155;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 1.03rem;
}
.contact-details img {
  width: 20px; height: 20px;
  margin-right: 9px;
  vertical-align: middle;
  display: inline-block;
}
.contact-details a {
  color: #12766a;
}
.contact-details a:hover { color: #00796b; }

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  background: #223155;
  color: #fff;
  padding: 24px 18px;
  border-radius: 15px 15px 0 0;
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 0;
  z-index: 120;
  box-shadow: 0 0 18px 0 rgba(34,49,85,0.23);
  font-size: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s, transform 0.25s;
  transform: translateY(80px);
}
.cookie-consent-banner.show {
  opacity: 1; pointer-events: all;
  transform: translateY(0);
}
.cookie-consent-banner .cookie-msg { flex: 1; }
.cookie-btn {
  background: #fff;
  color: #12766a;
  border: none;
  border-radius: 23px;
  padding: 8px 24px;
  margin-left: 7px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 12px 0 rgba(18,118,106,0.10);
  cursor: pointer;
  transition: background 0.18s, color 0.13s, transform 0.09s;
}
.cookie-btn.accept {
  background: linear-gradient(90deg, #12766a, #00796B);
  color: #fff;
  margin-left: 18px;
}
.cookie-btn.reject {
  background: #e9eeef;
  color: #223155;
}
.cookie-btn.settings {
  background: #f2f4f8;
  color: #00796b;
  margin-left: 0;
}
.cookie-btn:active { transform: scale(0.97); }
.cookie-btn:hover { filter: brightness(1.07); color: #12766a; }
.cookie-btn.accept:hover { color: #fff; }

/* COOKIE MODAL */
.cookie-pref-modal {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,110%);
  background: #fff;
  color: #223155;
  border-radius: 18px;
  box-shadow: 0 8px 42px 0 rgba(34,49,85,0.26);
  z-index: 200;
  min-width: 340px;
  max-width: 97vw;
  padding: 38px 30px 22px 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s, transform 0.21s;
}
.cookie-pref-modal.show {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%);
}
.cookie-pref-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cookie-pref-close {
  background: #f2f4f8;
  color: #12766a;
  border: none;
  font-size: 1.5rem;
  border-radius: 10px;
  padding: 5px 12px;
  cursor: pointer;
}
.cookie-pref-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  background: #f2f4f8;
  border-radius: 10px;
  padding: 13px 16px;
}
.cookie-category label {
  font-weight: 600;
}
.cookie-toggle {
  width: 42px; height: 24px;
  background: #e4eaf3;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.14s;
  margin-left: 18px;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  left: 3px; top: 3px;
  height: 18px; width: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px 0 rgba(18,118,106,0.22);
  transition: left 0.15s, background 0.11s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 21px;
  background: #12766a;
}
.cookie-category.essential .cookie-toggle {
  filter: grayscale(1) brightness(0.98);
}
.cookie-category.essential label::after {
  content: ' (immer aktiv)';
  color: #babfc2;
  font-weight: 400;
  font-size: 0.98em;
}


/* --- UTILITIES & ACCESSIBILITY --- */
.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
  .container { max-width: 99vw; }
  .property-cards, .feature-grid, .service-list { gap: 16px; }
  .footer-flex { gap: 24px; flex-wrap: wrap; }
}
@media (max-width: 992px) {
  .footer-flex { flex-direction: column; gap: 26px; align-items: flex-start; }
  .main-nav { gap: 14px; font-size: 0.98rem; }
  .article-list, .faq-list { font-size: 1rem; }
}
@media (max-width: 820px) {
  .header-flex {
    flex-direction: row;
    gap: 9px;
  }
  .property-cards, .feature-grid, .service-list {
    flex-wrap: wrap;
    gap: 13px;
  }
  .property-card, .feature-grid li, .service-list li {
    min-width: 180px;
    max-width: 99vw;
    padding-left: 13px; padding-right: 13px;
    font-size: 0.98rem;
  }
  .testimonial-card {
    max-width: 96vw;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.12rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .header-flex {
    flex-direction: row;
    gap: 7px;
    padding: 9px 0;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-flex {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 0 14px 0;
  }
  .cta-section {
    padding: 18px 12px;
    border-radius: 17px;
  }
  .hero-section {
    padding: 38px 0 24px 0;
  }
  .feature-grid, .property-cards, .service-list {
    flex-direction: column;
    gap: 14px;
  }
  .process-section ol {
    flex-direction: column;
    gap: 9px;
  }
  .testimonials-section {
    padding-bottom: 18px;
  }
  .testimonial-card {
    padding: 15px;
    font-size: 0.98rem;
  }
  .section {
    padding: 22px 8px;
    margin-bottom: 34px;
  }
  .content-wrapper {
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .city-overview-section ul {
    flex-direction: column;
    gap: 7px;
    margin-top: 0;
  }
}
@media (max-width: 490px) {
  html { font-size: 15px; }
  body { padding-bottom: 88px; }
  .container { padding: 0 2vw; }
  .footer-cta-btn, .cta-btn {
    width: 100%; box-sizing: border-box;
    padding-left: 0; padding-right: 0;
  }
  .cookie-consent-banner { left: 2vw; right: 2vw; padding: 13px 10px; flex-direction: column; gap: 10px; }
  .property-card, .feature-grid li, .service-list li {
    min-width: unset; max-width: unset;
    padding-left: 7px; padding-right: 7px;
  }
  .testimonial-card { padding: 11px; }
  .cookie-pref-modal { min-width: 99vw; padding: 18px 2vw 11px 2vw; }
}

/* --- ANIMATIONS --- */
@media (prefers-reduced-motion: no-preference) {
  .cta-btn, .footer-cta-btn { transition: background 0.22s, transform 0.13s, box-shadow 0.21s; }
  .card, .feature-grid li, .property-card, .service-list li {
    transition: box-shadow 0.2s, transform 0.13s;
  }
  .mobile-menu, .cookie-consent-banner, .cookie-pref-modal { transition: 0.32s cubic-bezier(.7,.3,.2,1); }
}
