/* ========== CSS RESET & BASE ========== */
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 {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background-color: #fff;
  color: #20242e;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*::selection {
  background: #26324D;
  color: #fff;
}

/* =========== BRAND TYPE SCALE =========== */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  color: #111;
  letter-spacing: -0.03em;
  line-height: 1.19;
  margin-bottom: 20px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: #20242e;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: #26324D;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #26324D;
  font-weight: 500;
}
p, ul, ol, li, blockquote, pre {
  font-size: 1.02rem;
  color: #232323;
  margin-bottom: 12px;
}
blockquote {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1.22rem;
  color: #20242e;
  background: #F0F4F8;
  border-left: 4px solid #26324D;
  margin: 22px 0;
  padding: 18px 22px;
  border-radius: 8px;
}
a {
  color: #26324D;
  text-decoration: underline;
  transition: color .3s;
}
a:hover, a:focus {
  color: #111;
}

strong, b {
  color: #111;
  font-weight: 700;
}

/* Brand color palette */
:root {
  --primary: #26324D;
  --secondary: #7C92B4;
  --accent: #F0F4F8;
  --dark: #080808;
  --black: #111111;
  --gray: #cfd5df;
  --light-gray: #f6f7fa;
  --shadow: rgba(43, 51, 77, 0.07);
  --shadow-strong: rgba(43, 51, 77, 0.17);
}

/* ========== LAYOUT CONTAINERS ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 22px var(--shadow);
  border: 1px solid #ECEDED;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .25s, border-color .2s;
}
.card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 28px var(--shadow-strong);
  z-index: 2;
}
.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;
  padding: 22px 24px 18px 24px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #FAFBFD;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 14px var(--shadow);
  min-width: 230px;
  max-width: 530px;
}
.testimonial-card p {
  font-size: 1.08rem;
  line-height: 1.5;
  color: #232323;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #888;
  font-style: italic;
  margin-top: -2px;
  letter-spacing: 0.01em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Specifics for brand icon list layouts */
.features-list,
.services-list, 
.contact-info-overview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 14px;
  list-style: none;
}
.features-list li, 
.services-list li, 
.contact-info-overview li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  color: #26324D;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.features-list img, 
.services-list img, 
.contact-info-overview img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ========== HERO BANNERS ========== */
.hero {
  background: #232938;
  color: #fff;
  padding: 56px 0 48px 0;
  margin-bottom: 58px;
  box-shadow: 0 6px 36px var(--shadow-strong);
}
.hero h1, .hero h2, .hero h3 {
  color: #fff;
  margin-bottom: 8px;
}
.hero p {
  color: #dbe0ef;
  font-size: 1.28rem;
  margin-bottom: 26px;
}
.hero .cta-primary {
  margin-top: 16px;
}

/* ========== BUTTONS & LINKS ========== */
.cta-button, .cta-primary, .cta-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 6px;
  font-weight: 600;
  padding: 12px 32px;
  font-size: 1.08rem;
  border: none;
  outline: none;
  text-align: center;
  cursor: pointer;
  transition: background .21s, color .21s, box-shadow .22s;
  letter-spacing: 0.01em;
  margin-right: 10px;
}
.cta-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 16px var(--shadow-strong);
  border: 2px solid var(--primary);
}
.cta-primary:hover, .cta-primary:focus {
  background: #151C2D;
  color: #fff;
  box-shadow: 0 6px 24px var(--shadow-strong);
}
.cta-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 2px 10px var(--shadow);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--primary);
  color: #fff;
}
.cta-button {
  background: var(--secondary);
  color: #fff;
  border: 2px solid var(--secondary);
}
.cta-button:hover, .cta-button:focus {
  background: #26324D;
  color: #fff;
  border-color: #26324D;
}
button, [type='button'], [type='submit'] {
  font-family: inherit;
}

/* ========== NAVIGATION BAR ========== */
header {
  background: #fff;
  box-shadow: 0 2px 18px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 910;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 0;
}
header img {
  height: 44px;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 0px 24px;
  flex-wrap: wrap;
}
.main-nav a {
  color: #151C2D;
  font-size: 1.04rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 6px 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  background: none;
}
.main-nav .cta-button {
  margin-left: 26px;
  margin-right: 0;
}
/* Mobile menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #26324D;
  font-size: 2.1rem;
  margin-left: 18px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.18s;
  z-index: 950;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F0F4F8;
  color: #111;
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 2px 32px var(--shadow-strong);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.69,-0.07,.24,1.18);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--primary);
  background: none;
  border: none;
  align-self: flex-end;
  margin: 20px 24px 8px 0;
  cursor: pointer;
  transition: color .21s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #151C2D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 18px 38px 0 38px;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  text-decoration: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.32rem;
  padding: 8px 0;
  border-bottom: 1px solid #ECEDED;
  transition: color .18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #151C2D;
}

/* HIDE DESKTOP NAV ON MOBILE */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========== FOOTER ========== */
footer {
  background: #232938;
  color: #fff;
  padding: 38px 0 30px 0;
  margin-top: 48px;
}
footer .container {
  flex-direction: row;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a {
  color: #E9EEF5;
  font-size: 1.02rem;
  text-decoration: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color .18s;
}
.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.99rem;
  color: #dbe0ef;
}
.footer-contact img {
  -webkit-filter: grayscale(1) brightness(6.5);
          filter: grayscale(1) brightness(6.5);
  height: 36px;
  width: auto;
  margin-bottom: 3px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-top: 0;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  transition: filter .18s, opacity .18s;
  opacity: .80;
  filter: grayscale(1) brightness(2.1);
}
.footer-social a:hover img, .footer-social a:focus img {
  opacity: 1;
  filter: brightness(7) grayscale(0);
}

/* ========== CASE STUDY CARD ========== */
.case-story {
  background: #f6f7fa;
  border-radius: 10px;
  box-shadow: 0 2px 14px var(--shadow);
  padding: 28px 28px 22px 28px;
  margin-bottom: 20px;
  border-left: 3px solid var(--secondary);
}
.case-story h3 {
  color: var(--primary);
  margin-bottom: 8px;
}
.case-story p {
  color: #232323;
  font-size: 1.02rem;
}

/* ========== CALLOUT (Process) ========== */
.callout {
  background: #FAFBFD;
  border-left: 4px solid var(--secondary);
  border-radius: 7px;
  padding: 16px 22px;
  color: #26324D;
  margin-top: 18px;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.09rem;
}

/* ========== LISTS / UL / OL ========== */
ul, ol {
  margin-bottom: 14px;
  margin-left: 22px;
}
ul li, ol li {
  padding-left: 5px;
}
ol {
  list-style-type: decimal;
  margin-left: 28px;
}

/* ========== MAP SNIPPET ========== */
.map-snippet {
  background: #F0F4F8;
  border: 1px solid #dbe0ef;
  border-radius: 8px;
  padding: 17px 22px;
  color: #26324D;
  font-size: 1.03rem;
  margin: 20px 0 0 0;
}

/* ========== SECTION VARIANTS ========== */
.testimonials, .eigentuemer-testimonials, .kaufberatung-testimonials, .referenzen-testimonials {
  background: #F6F7FA;
  border-top: 2px solid #ECEDED;
  padding-bottom: 48px;
}

/* ========== THANK YOU SECTION ========== */
.thank-you-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 360px;
  text-align: center;
  background: #F0F4F8;
  border-radius: 12px;
  box-shadow: 0 4px 28px var(--shadow);
  margin-top: 40px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 900px) {
  .footer-contact {
    font-size: 0.98rem;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}
@media (max-width: 780px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.42rem; }
  .hero { padding: 36px 0 36px 0; }
  .card { padding: 20px 11px; }
  .section { padding: 22px 7px; margin-bottom: 38px; }
  .testimonial-card { min-width: unset; max-width: unset; }
}
@media (max-width: 768px) {
  .container { padding-left: 7px; padding-right: 7px; }
  .content-grid { flex-direction: column; gap: 17px; }
  .text-image-section { flex-direction: column; gap: 19px; }
  .hero, .section {
    margin-bottom: 28px;
  }
  .footer-social {
    margin-top: 18px;
  }
}
@media (max-width: 576px) {
  .testimonial-card, .card { padding: 16px 7px; }
  .footer-contact span {
    font-size: 0.945rem;
  }
  .main-nav .cta-button {
    margin-left: 10px;
    font-size: 1rem;
    padding: 8px 14px;
  }
}

/* ========== HOVER/INTERACTION & MICRO EFFECTS ========== */
.card, .testimonial-card, .case-story, .map-snippet, .callout {
  transition: box-shadow 0.22s, border-color 0.22s, background 0.17s;
}
.card:hover, .case-story:hover, .testimonial-card:hover {
  box-shadow: 0 8px 28px var(--shadow-strong);
  border-left-color: var(--primary);
  z-index: 2;
}
button:active, .cta-primary:active, .cta-secondary:active {
  transform: translateY(1px);
}
a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========== CUSTOM FORMS (for possible contact forms) ========== */
input, textarea, select {
  border: 1px solid #BEC8DF;
  border-radius: 5px;
  padding: 11px 12px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  background: #fff;
  color: #161616;
  margin-top: 6px;
  margin-bottom: 18px;
  width: 100%;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  outline: none;
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #232938;
  font-size: 1.01rem;
  font-weight: 500;
}

/* ============= COOKIE CONSENT BANNER ============= */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 999999;
  background: #fff;
  color: #232938;
  box-shadow: 0 -2px 18px var(--shadow-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 21px;
  padding: 17px 38px 17px 22px;
  font-size: 1.02rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  opacity: 1;
  transition: opacity .4s cubic-bezier(.44,-0.07,.06,1.02);
}
#cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
#cookie-banner .cookie-buttons {
  display: flex;
  gap: 17px;
  align-items: center;
}
.cookie-btn {
  padding: 8px 30px;
  border-radius: 5px;
  border: none;
  font-size: 1.04rem;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background 0.19s, color .17s, box-shadow .21s;
  margin: 0;
}
.cookie-btn.accept {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #fff;
  margin-right: 7px;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #111;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
  margin-right: 7px;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #232938;
  color: #fff;
}
.cookie-btn.settings {
  background: var(--secondary);
  border: 2px solid var(--secondary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #26324D;
}

/* ========== COOKIE MODAL ========== */
#cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 1000000;
  background: rgba(38, 50, 77, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s cubic-bezier(.69,-0.07,.24,1.18);
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
#cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 48px var(--shadow-strong);
  padding: 38px 34px 24px 34px;
  max-width: 410px;
  width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.cookie-modal-header h3 {
  font-size: 1.3rem;
  color: #151c2d;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #26324D;
  font-size: 2rem;
  cursor: pointer;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-category input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}
.cookie-category label {
  font-size: 1.089rem;
  color: #232938;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
}
.cookie-description {
  color: #7C92B4;
  font-size: 1rem;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}
@media (max-width: 440px) {
  #cookie-banner { flex-direction: column; padding: 13px 6vw; gap: 13px; }
  #cookie-modal .cookie-modal-content { padding: 17px 4vw 13px 4vw; }
}

/* ========== MONOCHROME SOPHISTICATED UTILS ========== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; border: 0; padding: 0; margin: 0; }

/* Typography for sophistication */
body, p, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #232323;
}
h1, h2, h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #111;
}

/* DRAMATIC CONTRASTS FOR MONOCHROME SECTIONS */
.hero, .footer, .main-nav .cta-button {
  box-shadow: 0 6px 28px var(--shadow-strong);
}

/* FOCUS OUTLINE FOR ACCESSIBILITY */
*:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 1px;
}

/* Prevent element overlap with adequate spacing */
.card, .testimonial-card, .case-story, .section, .map-snippet, .callout {
  margin-bottom: 24px;
}

/* ========== END CSS ========== */
