/* 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,
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;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #23272e;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  color: #204C73;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #28647C;
  outline: none;
}
img {
  max-width: 100%;
  display: block;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  background: none;
  border: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #204C73;
  font-weight: 700;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 14px;
}
p, ul, ol, li {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #23272e;
  line-height: 1.7;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
}

strong, b {
  font-weight: 600;
}
.text-section h3 {
  margin-top: 24px;
}

/* BRAND COLORS */
:root {
  --primary: #204C73;
  --secondary: #28647C;
  --accent: #F2E9DC;
  --text: #23272e;
  --muted: #8c99a6;
  --white: #fff;
  --shadow: 0 2px 8px rgba(32,76,115,0.08);
}

/* GENERAL LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1160px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}


/***********************
 HEADER & NAVIGATION
***********************/
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: relative;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 70px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.18s;
  border: none;
}
header nav a:hover, header nav a.active {
  color: var(--secondary);
}
.cta.primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  border-radius: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(32,76,115,0.09);
  transition: background 0.22s, box-shadow 0.22s, transform 0.18s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--secondary);
  box-shadow: 0 4px 16px rgba(32, 76, 115, 0.12);
  transform: translateY(-2px) scale(1.035);
}
.cta {
  background: var(--accent);
  color: var(--primary);
  border-radius: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 26px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--accent);
  transition: background 0.19s, color 0.19s, box-shadow 0.18s, transform 0.16s;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 0 !important;
}
.cta:hover, .cta:focus {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(32,76,115,0.14);
  transform: translateY(-1px) scale(1.025);
}

/* Hamburger Mobile Menu Trigger */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  cursor: pointer;
  z-index: 1201;
  transition: box-shadow 0.2s;
  margin-left: 16px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  box-shadow: 0 2px 8px rgba(32,76,115,0.13);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 1200;
  box-shadow: -2px 0 16px rgba(32,76,115,0.07);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.36,1.07,.59,.95);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 36px 20px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border: none;
  align-items: center;
  justify-content: center;
  display: flex;
  margin-bottom: 24px;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid #F2E9DC;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
}


/* =============================== */
/* HERO SECTION */
/* =============================== */
.hero {
  background: var(--accent);
  padding: 60px 0 40px 0;
  margin-bottom: 60px;
}
.hero .container {
  align-items: flex-start;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: var(--primary);
}
.hero p {
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 2px;
}


/*******************/
/* SECTIONS & CARDS*/
/*******************/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.features, .feature-grid {
  margin-bottom: 60px;
  width: 100%;
}
.features .content-wrapper,
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: flex-start;
}
.feature-grid {
  margin-bottom: 0;
}
.feature-block {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(32,76,115,0.06);
  padding: 28px 20px 24px 20px;
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 357px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.18s, transform 0.22s;
  margin-bottom: 20px;
}
.feature-block:hover,
.feature-block:focus-within {
  box-shadow: 0 4px 24px rgba(32, 76, 115, 0.11);
  transform: translateY(-3px) scale(1.03);
}
.feature-block img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  filter: grayscale(10%);
  opacity: 0.97;
}
.feature-block h3 {
  color: var(--primary);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(32,76,115,0.07);
  padding: 24px 18px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.14s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 18px rgba(32,76,115,0.13);
  transform: translateY(-2px) scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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;
}

/********************************/
/* Testimonials & Lists
/********************************/
.testimonials, .testimonials-list {
  margin-bottom: 60px;
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(32,76,115,0.06);
  flex: 1 1 290px;
  min-width: 245px;
  max-width: 420px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.14s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 22px rgba(32,76,115,0.13);
  transform: translateY(-2px) scale(1.013);
}
.testimonial-card p {
  color: var(--text);
  font-size: 1.06rem;
}
.stars {
  display: flex;
  flex-direction: row;
  gap: 4px;
  margin-bottom: 4px;
}
.stars img {
  width: 22px;
  height: 22px;
}
.testimonial-card .client {
  color: var(--primary);
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 4px;
  font-weight: 500;
  opacity: 0.97;
}

/********************************/
/* ARTICLE GRID FOR BLOG
/********************************/
.article-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 0;
}
.article-teaser {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(32,76,115,0.06);
  padding: 24px 20px;
  flex: 1 1 290px;
  min-width: 240px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.14s, transform 0.17s;
}
.article-teaser:hover, .article-teaser:focus-within {
  box-shadow: 0 4px 16px rgba(32,76,115,0.12);
  transform: translateY(-2px) scale(1.018);
}
.article-teaser h3 {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 8px;
  font-weight: 700;
}
.tags {
  display: flex;
  gap: 8px;
}
.tag {
  background: var(--accent);
  color: var(--primary);
  font-size: 0.90rem;
  border-radius: 8px;
  padding: 3px 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.read-more {
  color: var(--primary);
  font-weight: 500;
  border-bottom: 1px solid var(--primary);
  font-size: 0.95rem;
  margin-top: 4px;
  transition: border 0.2s, color 0.17s;
}
.read-more:hover, .read-more:focus {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
}

/********************************/
/* Footer
/********************************/
footer {
  background: var(--accent);
  padding: 38px 0 24px 0;
  border-top: 1px solid #ede7dd;
  width: 100%;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
  justify-content: center;
}
footer nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  font-size: 1rem;
  color: var(--primary);
  font-family: 'Open Sans', Arial, sans-serif;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-legal {
  font-size: 0.93rem;
  color: #647284;
  margin-top: 5px;
}
footer img {
  height: 38px;
}

/********************/
/* FORM ELEMENTS
/********************/
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dee3eb;
  border-radius: 6px;
  background: #fafbfc;
  color: #23272e;
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border 0.16s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1px solid var(--primary);
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
  display: inline-block;
}
button, .button {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 24px;
  padding: 10px 26px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.17s, transform 0.14s;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: var(--secondary);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 2px 8px rgba(32,76,115,0.10);
}

/********************/
/* MISC & HELPERS
/********************/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.map-embed-placeholder {
  background: #f9f6f3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  color: #929ba8;
  font-size: 0.95rem;
  margin-top: 12px;
}

/********************/
/* COOKIE CONSENT BANNER
/********************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--accent);
  box-shadow: 0 -2px 12px rgba(32,76,115,0.11);
  padding: 18px 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: transform 0.32s cubic-bezier(.28,1.15,.64,1.07);
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner p {
  font-size: 1rem;
  color: #204C73;
  margin-bottom: 6px;
  text-align: center;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  justify-content: center;
}
.cookie-actions button {
  font-size: 1rem;
  border-radius: 28px;
  padding: 8px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.17s, color 0.17s, transform 0.16s, box-shadow 0.15s;
  border: none;
  box-shadow: 0 1px 4px rgba(32,76,115,0.05);
  margin: 0;
}
.cookie-accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--secondary);
}
.cookie-reject {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: var(--primary);
  color: var(--white);
}
.cookie-settings {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--primary);
  color: var(--white);
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,60,90,0.28);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s cubic-bezier(.36,1.07,.59,.95);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: var(--white);
  box-shadow: 0 8px 38px rgba(32,76,115,0.14);
  border-radius: 18px;
  padding: 38px 24px 30px 24px;
  max-width: 420px;
  width: 93vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  transition: transform 0.27s cubic-bezier(.36,1.07,.59,.95);
  transform: translateY(64px);
}
.cookie-modal-overlay.open .cookie-modal {
  transform: translateY(0);
}
.cookie-modal .modal-close {
  position: absolute;
  top:10px; right: 10px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  width: 38px; height: 38px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: var(--primary);
  color: var(--white);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}
.cookie-category input[disabled] {
  accent-color: #c1c4ca;
  cursor: not-allowed;
}

/************************************************/
/* RESPONSIVE DESIGN - MOBILE FIRST
/************************************************/
/* Mobile styles default */

.container,
.content-wrapper,
.feature-grid,
.card-container,
.testimonial-grid,
.article-grid,
.footer-contact {
  flex-direction: column;
  gap: 20px;
}
footer nav {
  flex-wrap: wrap;
  gap: 12px;
}
.feature-grid, .testimonial-grid,
.article-grid {
  gap: 20px;
}

/* Mobile menu visibility */
@media (max-width: 1024px) {
  header .container {
    gap: 20px;
  }
  .feature-block, .article-teaser, .testimonial-card {
    max-width: 100%;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 900px) {
  .feature-grid, .testimonial-grid, .article-grid {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 98%;
  }
  .section,
  .features,
  .testimonials,
  .testimonials-list,
  .services-overview,
  .about,
  .privacy-policy,
  .cookie-policy,
  .gdpr-policy,
  .terms-of-use,
  .thank-you-section {
    margin-bottom: 40px;
    padding: 28px 8px;
    border-radius: 13px;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  header nav,
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    width: 94vw;
    padding: 25px 18px 16px 18px;
  }
  .mobile-menu-close {
    width: 38px; height: 38px; font-size: 1.6rem;
  }
  .hero {
    padding: 30px 0 20px 0;
    margin-bottom: 34px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  h3 {
    font-size: 1.13rem;
  }
  .feature-grid {
    gap: 16px;
  }
  .feature-block, .testimonial-card, .article-teaser {
    padding: 19px 10px 18px 10px;
    border-radius: 10px;
    min-width: unset;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.32rem;
  }
  h2 {
    font-size: 1.01rem;
  }
  .section {
    padding: 11px 4px;
    margin-bottom: 22px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(32,76,115,.05);
  }
  .feature-block, .testimonial-card, .article-teaser {
    box-shadow: 0 1px 4px rgba(32,76,115,0.07);
    padding: 11px 5px 11px 5px;
  }
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  footer {
    padding: 14px 0 10px 0;
  }
  .cookie-modal {
    padding: 21px 6px 16px 6px;
    border-radius: 7px;
    max-width: 99vw;
  }
}
@media (max-width: 490px) {
  .footer-contact {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }
  .cookie-banner {
    padding: 10px 1px;
  }
}
@media (max-width: 600px) {
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* Hide mobile menu on desktop */
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  header nav, header .cta.primary {
    display: flex !important;
  }
}

/* Accessibility focus ring for all links & buttons */
a:focus, button:focus, .cta:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1.5px;
  z-index: 1;
}

/* Prevent content overlapping for all flex containers */
.section, .features, .feature-grid, .testimonial-grid, .article-grid, .card-container, .content-grid {
  gap: 20px;
}

/********************************/
/* VISUAL MICRO-INTERACTIONS
/********************************/
.cta, .cta.primary, button, .button, .feature-block, .testimonial-card, .article-teaser, .card {
  transition: box-shadow 0.18s cubic-bezier(.36,1.07,.59,.95), transform 0.2s cubic-bezier(.36,1.07,.59,.95), background 0.19s;
}

/********************************/
/* Z-INDEX CONTROLS
/********************************/
header {
  z-index: 1000;
}
.mobile-menu {
  z-index: 1200;
}
.cookie-banner {
  z-index: 2000;
}
.cookie-modal-overlay {
  z-index: 2100;
}

/********************************/
/* PRINT STYLES
/********************************/
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  header, footer {
    box-shadow: none;
  }
  body {
    background: #fff;
    color: #23272e;
  }
}

/* END OF MINIMALIST RESPONSIVE FLEXBOX CSS FOR HEIMWÄRTS IMMOBILIEN */
