/* MosleCalma Renovierung – Style: Sophisticated Monochrome with Brand Accent */
/* CSS RESET & BASELINE ------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin: 0 0 1.2em 1.25em;
  padding: 0;
}
ul ul, ol ol {
  margin-bottom: 0;
}
a {
  color: #314447;
  text-decoration: underline;
  transition: color 0.2s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #F2B94B;
  text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #101010;
  margin-top: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.25rem; line-height: 1.15; margin-bottom: 22px; }
h2 { font-size: 1.7rem; line-height: 1.25; margin-bottom: 18px; }
h3 { font-size: 1.22rem; margin-bottom: 12px; }
h4, h5, h6 { margin-bottom: 8px; }
p { margin: 0 0 18px 0; }
strong { font-weight: 700; }
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section, .legal {
  font-size: 1.07rem;
  color: #7c6c6c;
}
.legal {
  background: #FAFAFA;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 2px 12px rgba(25,31,36,0.07);
}
ul {
  list-style: disc inside;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}

/* TYPOGRAPHY SCALE ----------------------------------- */
@media (min-width: 480px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2rem; }
}
@media (min-width: 768px) {
  h1 { font-size: 3.1rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.3rem; }
  body { font-size: 1.07rem; }
}

/* NAVIGATION ------------------------------------------ */
header {
  background: #fff;
  border-bottom: 1px solid #dedede;
  position: sticky;
  top: 0;
  z-index: 3000;
}
.main-nav, .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
  padding: 18px 0;
}
.main-nav a, .footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #222;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.18s;
  border-radius: 4px;
  position: relative;
}
.main-nav a:hover, .footer-nav a:hover,
.main-nav a:focus, .footer-nav a:focus {
  color: #314447;
  background: #F4F4F4;
}
.main-nav img {
  height: 38px;
  margin-right: 18px;
}
.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 36px;
  background: #fff;
  color: #314447;
  border: 2px solid #314447;
  box-shadow: 0 2px 10px rgba(17,17,17,0.06);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, border 0.19s, box-shadow 0.25s;
}
.cta.primary {
  background: #314447;
  color: #fff;
  border: 2px solid #314447;
  box-shadow: 0 3px 12px rgba(22,32,36,0.10);
}
.cta.primary:hover, .cta.primary:focus {
  background: #F2B94B;
  color: #101010;
  border-color: #F2B94B;
  box-shadow: 0 5px 16px rgba(25,31,36,0.15);
}
.cta:hover, .cta:focus {
  background: #E0E4E1;
  color: #101010;
  box-shadow: 0 5px 16px rgba(25,31,36,0.10);
  border-color: #101010;
}

/* MOBILE MENU ---------------------------------------- */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #314447;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin-left: auto;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 3200;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #E0E4E1;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #1a1a1a;
  color: #fff;
  z-index: 3500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 22px 22px 22px;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.85,-0.01,.18,1.01);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  margin-bottom: 18px;
  align-self: flex-end;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover { background: #232323; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 10px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.19rem;
  text-decoration: none;
  border-radius: 5px;
  padding: 11px 0 11px 6px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F2B94B;
  background: #232323;
}
@media (min-width: 900px) {
  .mobile-menu-toggle, .mobile-menu { display: none !important; }
  .main-nav { display: flex !important; }
}
@media (max-width: 899px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* HERO SECTION --------------------------------------- */
section:first-of-type {
  background: #101010;
  color: #fff;
  padding: 68px 0 64px 0;
}
section:first-of-type h1, section:first-of-type h2, section:first-of-type h3 {
  color: #fff;
}
section:first-of-type .cta.primary {
  margin-top: 20px;
}
@media (max-width: 768px) {
  section:first-of-type {
    padding: 50px 0 40px 0;
  }
}

/* FLEXBOX LAYOUTS ------------------------------------- */
.feature-grid, .service-list, .service-grid, .topic-grid, .testimonial-list, .step-by-step, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-item, .service-item, .category-item, .step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #858585;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(28,28,32,0.06);
  padding: 30px 22px 24px 22px;
  min-width: 240px;
  max-width: 355px;
  flex: 1 1 250px;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.22s;
}
.feature-item:hover, .service-item:hover, .category-item:hover, .step:hover {
  box-shadow: 0 6px 28px rgba(17,34,44,0.13);
  transform: translateY(-3px) scale(1.023);
}
.feature-item img, .service-item img, .category-item img, .step img {
  height: 44px;
  width: 44px;
  margin-bottom: 5px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(32,35,40,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.23s;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(38,48,64,0.18);
}

.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: 20px 26px 20px 20px;
  background: #FAFAFA;
  border-radius: 20px;
  margin-bottom: 20px;
  min-width: 235px;
  max-width: 375px;
  flex: 1 1 260px;
  box-shadow: 0 2px 14px rgba(28,28,32,0.09);
  border-left: 7px solid #314447;
  color: #131313;
  transition: box-shadow 0.2s, border-color 0.17s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 28px rgba(17,34,44,0.16);
  border-left: 7px solid #F2B94B;
}
.testimonial-card .stars {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.07em;
  color: #F2B94B;
  margin-top: -8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.step-by-step {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  background: #F5F6F7;
  border-radius: 11px;
  box-shadow: 0 1px 7px rgba(16,28,35,0.06);
  padding: 28px 18px 18px 18px;
  min-width: 214px;
  max-width: 295px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, border 0.18s;
}

/* RATINGS SUMMARY */
.ratings-summary {
  background: #3C3C3C;
  color: #fff;
  border-radius: 13px;
  padding: 18px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 18px;
  font-size: 1.17rem;
  box-shadow: 0 2px 14px rgba(21,23,25,0.14);
}

.confirmation {
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
  padding: 50px 20px 38px 20px;
  background: #FAFAFA;
  border-radius: 18px;
  margin-bottom: 38px;
}

/* PROJECT SUCCESS STORIES */
.project-success-stories, .timeline-description {
  background: #efefef;
  color: #222;
  border-radius: 12px;
  padding: 22px 20px;
  margin-top: 18px;
  font-size: 1.04rem;
  font-family: 'Roboto', Arial, sans-serif;
}

.map-embed {
  background: #F5F5F5;
  border-radius: 10px;
  padding: 18px 14px;
  margin-top: 10px;
  font-size: 1rem;
  color: #252525;
}
/* FOOTER --------------------------------------------- */
footer {
  background: #23272A;
  color: #fff;
  padding: 32px 0 16px 0;
  font-size: 1rem;
  margin-top: 60px;
}
.footer-nav {
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 15px;
}
.footer-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: underline;
  padding: 6px 0;
  transition: color 0.18s, background 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F2B94B;
  background: #232323;
}
.contact-footer {
  color: #B9BCD0;
  font-size: 0.97rem;
  margin-top: 7px;
  font-family: 'Roboto', Arial, sans-serif;
}
footer strong {
  color: #fff;
}

/* COOKIE CONSENT BANNER ----------------------------- */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #222;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 18px 24px;
  box-shadow: 0 -3px 18px rgba(21,22,22,0.13);
  z-index: 4000;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.99rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.4s, opacity 0.4s;
}
#cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(165px);
}
#cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  display: inline-block;
  border: none;
  border-radius: 20px;
  padding: 8px 22px;
  margin: 0 3px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: #101010;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(32,32,40,0.11);
  transition: background 0.14s, color 0.14s, box-shadow 0.15s;
}
.cookie-btn.accept {
  background: #F2B94B;
  color: #232323;
}
.cookie-btn.reject {
  background: #A2A2A2;
  color: #fff;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border: 1.7px solid #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #314447;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #232323;
  color: #F2B94B;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #555;
}

/* COOKIE MODAL -------------------------------------- */
#cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 95%;
  max-width: 430px;
  background: #fff;
  color: #232323;
  box-shadow: 0 8px 44px 0 rgba(17,21,34,.18);
  border-radius: 23px;
  transform: translate(-50%, -50%) scale(0.98);
  z-index: 5000;
  display: none;
  flex-direction: column;
  padding: 34px 34px 20px 34px;
  align-items: flex-start;
  animation: modal-in 0.38s cubic-bezier(.8,-0.01,.38,1.01);
}
#cookie-modal.open {
  display: flex;
}
@keyframes modal-in {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.93); }
  90% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
#cookie-modal h3 {
  margin-top: 0;
  color: #101010;
}
.cookie-categories-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-bottom: 24px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #F5F5F7;
  border-radius: 10px;
  padding: 13px 15px 11px 15px;
  font-size: 1rem;
}
.cookie-category-toggle[aria-disabled='true'] {
  opacity: 0.4;
  pointer-events: none;
}
.cookie-toggle {
  appearance: none;
  width: 42px;
  height: 24px;
  background: #E0E4E1;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: #314447;
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-toggle:checked::after {
  left: 20px;
}
#cookie-modal .modal-buttons {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  align-self: flex-end;
}
#cookie-modal .modal-close {
  background: none;
  border: none;
  color: #232323;
  font-size: 1.6rem;
  position: absolute;
  top: 19px;
  right: 25px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 8px;
  transition: background 0.13s;
}
#cookie-modal .modal-close:hover { background: #F4F4F4; }

/* RESPONSIVE LAYOUTS --------------------------------- */
@media (max-width: 1100px) {
  .feature-grid, .service-list, .service-grid, .topic-grid, .testimonial-list, .step-by-step, .content-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .service-grid, .topic-grid, .testimonial-list, .step-by-step, .content-grid {
    gap: 18px;
    justify-content: center;
  }
  .feature-item, .service-item, .category-item, .step, .testimonial-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding-left: 7px;
    padding-right: 7px;
  }
  .content-wrapper, .feature-grid, .service-list, .service-grid, .testimonial-list, .topic-grid, .content-grid, .step-by-step {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .testimonial-card, .feature-item, .service-item, .category-item, .step {
    max-width: 100%;
    min-width: 0;
  }
  .section {
    padding: 26px 5px;
    margin-bottom: 40px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
  }
  .confirmation {
    padding: 32px 5px 22px 5px;
  }
  footer {
    padding: 21px 0 11px 0;
    font-size: 0.93rem;
  }
  .footer-nav {
    gap: 7px;
  }
  #cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px 7px 16px 12px;
    gap: 11px;
    font-size: 0.98rem;
  }
  #cookie-modal {
    padding: 19px 9vw 14px 9vw;
    min-width: 0;
    max-width: 97vw;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.08rem; }
  .confirmation { font-size: 0.99rem; }
}

/* MICRO-INTERACTIONS & EFFECTS ---------------------- */
.card, .feature-item, .testimonial-card, .step, .service-item, .category-item {
  transition: box-shadow 0.17s, transform 0.2s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover, .step:hover, .service-item:hover, .category-item:hover {
  box-shadow: 0 6px 32px rgba(22,30,40,0.17) !important;
  transform: translateY(-3px) scale(1.0102);
}
.cta, .cookie-btn {
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.22s;
}

/* ACCESSIBILITY & FOCUS ----------------------------- */
:focus-visible {
  outline: 3px solid #F2B94B;
  outline-offset: 1.5px;
}

/* MINIMAL PRINT SUPPORT ----------------------------- */
@media print {
  header, footer, #cookie-consent-banner, #cookie-modal { display: none !important; }
  section, .container, .content-wrapper { padding: 0 !important; margin: 0 !important; }
  body { background: #fff !important; color: #111; }
}

/* OVERRIDES FOR NESTED ELEMENTS --------------------- */
h1 strong, h2 strong, h3 strong { color: #F2B94B; }
.testimonial-card strong { color: #314447; font-size: 1rem; }
h3, h2, h1 { text-shadow: 0 1px 1px rgba(0,0,0,0.04); }

/* ADDITIONAL FORMATTING FOR LIST INSIDE PARAGRAPH */
p ul {
  margin: 0 0 18px 1.25em;
}

/* BUTTON & LINK - HIGH CONTRAST ON DARK BG ----------- */
section:first-of-type .cta.primary {
  background: #F2B94B;
  color: #131313;
  border-color: #F2B94B;
}
section:first-of-type .cta.primary:hover,
section:first-of-type .cta.primary:focus {
  background: #fff;
  color: #314447;
  border-color: #fff;
}
/* MINIMUM SPACE BETWEEN ALL CARDS AND SECTIONS */
.card, .feature-item, .testimonial-card, .service-item, .category-item, .step {
  margin-bottom: 20px;
}
.section:not(:last-child) {
  margin-bottom: 60px;
}
/* Prevent content overlap & stacking issues */
.section, .card, .testimonial-card, .feature-item, .service-item {
  z-index: 1;
}

/* STYLE FOR BLOG FEATURED POSTS LIST ----------------- */
.featured-posts-list {
  margin: 0 0 19px 0;
  padding: 0;
  list-style: disc inside;
  font-size: 1.06rem;
}
.featured-posts-list li {
  margin-bottom: 8px;
}

/* END OF CSS */
