/* Crimson Legend Wohndesign – Scandinavian Clean Style CSS */

/* 1. CSS Reset & Normalize */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #F7F8FA;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #22272D;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.008em;
}
img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #B80021;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #22272D;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #22272D;
  line-height: 1.14;
  margin-bottom: 16px;
  letter-spacing: 0.012em;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.33rem;
  font-weight: 600;
}
h4 {
  font-size: 1.125rem;
  font-weight: 600;
}
p {
  margin-bottom: 16px;
  color: #333840;
  font-size: 1rem;
}
strong {
  font-weight: 700;
  color: #22272D;
}

/* 2. Layout Containers – Flexbox only! */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section,
.hero,
.features,
.about,
.team-section,
.why-choose-us,
.testimonials,
.contact-cta,
.contact-section,
.map,
.services,
.process,
.project-showcase,
.curation-process,
.blog-overview,
.newsletter-signup,
.legal,
.thank-you {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(36,51,63,0.05);
  position: relative;
}

@media (max-width: 768px) {
  .section,
  .hero,
  .features,
  .about,
  .team-section,
  .why-choose-us,
  .testimonials,
  .contact-cta,
  .contact-section,
  .map,
  .services,
  .process,
  .project-showcase,
  .curation-process,
  .blog-overview,
  .newsletter-signup,
  .legal,
  .thank-you {
    padding: 28px 8px;
    margin-bottom: 38px;
    border-radius: 11px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* 3. Navigation */
header {
  background: #FFF;
  box-shadow: 0 2px 8px rgba(34, 39, 45, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 8px;
  padding-bottom: 8px;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.main-nav img {
  height: 48px;
  width: auto;
}
.main-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}
.main-nav li {
  margin-bottom: 0;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #22272D;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
  transition: color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #B80021;
  text-decoration: none;
}
.main-nav .cta-btn {
  margin-left: 28px;
}

/* Mobile Nav */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  padding: 6px 12px;
  color: #22272D;
  cursor: pointer;
  z-index: 82;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #B80021;
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(244,246,249, 0.98);
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.48,.2,.38,1);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #22272D;
  padding: 18px 18px 8px 14px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.22s;
  z-index: 101;
}
.mobile-menu-close:focus {
  outline: 2px solid #B80021;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 36px 28px 24px 28px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.28rem;
  color: #22272D;
  font-weight: 600;
  padding: 6px 0;
  width: 100%;
  text-align: left;
  border-radius: 7px;
  transition: background 0.13s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #E4E8ED;
  color: #B80021;
}

@media (max-width: 1024px) {
  .main-nav ul {
    display: none;
  }
  .main-nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .main-nav {
    padding: 0 8px;
  }
  .main-nav img {
    height: 38px;
  }
}


/* 4. Buttons & Calls to Action */
.cta-btn,
button.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #B80021;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(34,39,45,0.10);
  border: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  cursor: pointer;
  text-decoration: none;
  margin-top: 4px;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #22272D;
  color: #fff;
  box-shadow: 0 4px 14px rgba(184,0,33,0.12);
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
  outline: none;
}

/* Generic Button Styles */
button,
input[type="submit"] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* 5. Flex Layouts: Features, Cards, Grids */
.feature-grid,
.service-cards,
.card-container,
.content-grid,
.post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 10px;
  margin-bottom: 12px;
}
.feature-item,
.service-card,
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FAFAFA;
  border: 1px solid #E4E8ED;
  border-radius: 12px;
  padding: 28px 24px 24px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(34,39,45,0.048);
  min-width: 240px;
  max-width: 360px;
  flex: 1 1 270px;
  position: relative;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.12s;
}
.feature-item:hover,
.service-card:hover,
.card:hover {
  box-shadow: 0 7px 22px rgba(34,39,45,0.09);
  border-color: #B80021;
  transform: translateY(-3px) scale(1.025);
}
.feature-item img,
.service-card img {
  height: 48px;
  width: 48px;
  margin-bottom: 12px;
}
.price {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #B80021;
  background: #F4E3E7;
  padding: 3px 13px;
  border-radius: 10px;
  margin-top: 7px;
}

/* Cards grid responsive behaviour */
@media (max-width: 900px) {
  .feature-grid, .service-cards, .card-container, .content-grid, .post-list {
    gap: 16px;
  }
  .feature-item, .service-card, .card {
    min-width: 180px;
    flex: 1 1 230px;
    padding: 18px 13px 16px 13px;
  }
}
@media (max-width: 600px) {
  .feature-grid, .service-cards, .card-container, .content-grid, .post-list {
    flex-direction: column;
    gap: 12px;
  }
  .feature-item, .service-card, .card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 14px 9px 13px 9px;
    margin-bottom: 13px;
  }
}


/* 6. Text-Image/Section Flex */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width:900px) {
  .text-image-section {
    gap: 16px;
  }
}
@media (max-width:768px) {
  .text-image-section {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

/* 7. Testimonials */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F7F8FA;
  border: 1px solid #E4E8ED;
  border-radius: 13px;
  box-shadow: 0 3px 10px rgba(34,39,45,0.048);
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, border-color 0.14s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 19px rgba(184,0,33,0.12);
  border-color: #B80021;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  color: #22272D;
  font-weight: 500;
  background: none;
  border-left: 3px solid #B80021;
  padding-left: 15px;
  margin-right: 8px;
}
.testimonial-card .client {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  color: #666D75;
  font-weight: 400;
  min-width: 140px;
  margin-top: 0;
}

/* Testimonial contrast on light background */
.testimonials {
  background: #F8F9FB;
}

/* 8. Tables (for leistungen.html) */
.services-table {
  margin: 36px 0;
  overflow-x: auto;
}
.services-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFF;
  border-radius: 9px;
  overflow: hidden;
}
.services-table th, .services-table td {
  text-align: left;
  font-size: 1rem;
  padding: 14px 16px;
  border-bottom: 1px solid #E4E8ED;
}
.services-table th {
  background: #F7F8FA;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #22272D;
  font-weight: 700;
  letter-spacing: 0.006em;
}
.services-table tr:last-child td {
  border-bottom: none;
}
.services-table td {
  color: #35394A;
  vertical-align: top;
}

/* 9. Process Steps & Timelines */
.process-steps ol {
  margin-left: 1.2em;
  margin-bottom: 16px;
  font-size: 1rem;
  color: #333840;
}
.timeline {
  background: #F4F6F6;
  border-radius: 8px;
  padding: 15px 20px;
  margin-top: 23px;
  font-size: 1rem;
  color: #22272D;
}

/* 10. Hero Section */
.hero {
  background: #F7F8FA;
  box-shadow: 0 2px 8px rgba(228,232,237,0.12);
  border-radius: 19px;
  padding-top: 48px;
  padding-bottom: 48px;
  text-align: left;
}
.hero h1 {
  font-size: 2.7rem;
  font-weight: 700;
  color: #22272D;
  margin-bottom: 9px;
}
.hero .subheadline {
  font-size: 1.23rem;
  color: #6A7079;
  font-family: 'Open Sans', Arial,Helvetica,sans-serif;
  margin-bottom: 18px;
  font-weight: 400;
}
@media (max-width: 860px) {
  .hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.42rem;
  }
}

/* 11. Blog Teaser Cards */
.post-list {
  margin-bottom: 20px;
  gap: 24px;
}
.post-teaser {
  background: #FAFAFA;
  border: 1px solid #E4E8ED;
  border-radius: 10px;
  padding: 22px 19px 19px 19px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 380px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.14s;
}
.post-teaser:hover {
  border-color: #B80021;
  box-shadow: 0 4px 18px rgba(184,0,33,0.09);
}
.featured-article {
  background: #FFF;
  border: 1.5px solid #B80021;
  border-radius: 13px;
  box-shadow: 0 0 18px rgba(184,0,33,0.035);
  padding: 24px 22px 20px 22px;
  margin-top: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 12. Footer & Legal Nav */
footer {
  background: #F7F8FA;
  padding: 36px 20px 16px 20px;
  border-top: 2px solid #E4E8ED;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 48px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.footer-nav a {
  color: #60646A;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.13s;
  padding-right: 7px;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #B80021;
  text-decoration: underline;
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #22272D;
  font-size: 1.02rem;
  padding-top: 9px;
}
.footer-brand img {
  height: 28px;
  width: auto;
}

@media (max-width: 600px) {
  footer {
    gap: 10px;
    padding: 16px 8px 12px 8px;
    margin-top: 29px;
  }
  .footer-brand img {
    height: 19px;
  }
}

/* 13. Cookie Consent Banner & Modal */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FFF;
  color: #22272D;
  box-shadow: 0px -3px 18px rgba(34,39,45,0.09);
  z-index: 200;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  justify-content: space-between;
  padding: 24px 32px;
  border-top: 2px solid #E4E8ED;
  font-size: 1rem;
  transition: transform 0.35s;
  flex-wrap: wrap;
}
.cookie-banner .cookie-text {
  flex: 2 1 240px;
  max-width: 750px;
  margin-bottom: 4px;
  line-height: 1.5;
  color: #22272D;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button {
  background: #E4E8ED;
  color: #22272D;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 20px;
  margin-right: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(34,39,45,0.03);
  transition: background 0.14s, color 0.14s, box-shadow 0.11s;
}
.cookie-banner button.accept {
  background: #B80021;
  color: #fff;
}
.cookie-banner button.accept:hover {
  background: #22272D;
}
.cookie-banner button.settings {
  background: #22272D;
  color: #fff;
}
.cookie-banner button.settings:hover {
  background: #B80021;
}
.cookie-banner button.reject {
  background: #E4E8ED;
  color: #22272D;
  border: 1px solid #B80021;
}
.cookie-banner button.reject:hover {
  background: #F6E6EB;
  color: #B80021;
}

@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    padding: 18px 15px;
    gap: 13px;
    font-size: 0.96rem;
  }
}
@media (max-width:500px){
  .cookie-banner {
    padding: 11px 5px;
    font-size: 0.90rem;
  }
}

.cookie-modal {
  position: fixed;
  left: 0; right:0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(228,232,237,0.80);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 201;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s linear;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(34,39,45,0.15);
  min-width: 312px;
  max-width: 95vw;
  padding: 44px 42px 30px 42px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.24rem;
  color: #B80021;
  margin-bottom: 10px;
}
.cookie-modal-content .modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-modal-content .close-modal {
  position: absolute;
  top: 20px;
  right: 21px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #22272D;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1.01rem;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #E4E8ED;
  border-radius: 16px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
  border: none;
}
.cookie-toggle:checked {
  background: #B80021;
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #FFF;
  border-radius: 50%;
  position: absolute;
  left: 3px;
  top: 3px;
  transition: transform 0.13s;
  box-shadow: 0 2px 6px rgba(34,39,45,0.03);
}
.cookie-toggle:checked::before {
  transform: translateX(16px);
}
.cookie-modal-content .category-description {
  font-size: 0.99rem;
  color: #444951;
  margin-bottom: 8px;
}

@media (max-width:600px){
  .cookie-modal-content {
    padding: 16px 8px 10px 8px;
  }
}

/* 14. Responsive Font Sizes */
@media (max-width:600px){
  h1 { font-size: 1.28rem; }
  h2 { font-size: 1.09rem; }
  h3 { font-size: 1rem; }
}

/* 15. Miscellaneous / Utilities */
blockquote {
  quotes: "\201C" "\201D" "\2018" "\2019";
}
blockquote:before {
  content: open-quote;
  color: #B80021;
  font-size: 2rem;
}
blockquote:after {
  content: close-quote;
  color: #B80021;
  font-size: 2rem;
}

hr {
  border: none;
  border-top: 1.5px solid #E4E8ED;
  margin: 32px 0 26px 0;
}

/* 16. Accessibility Focus Styles */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid #B80021;
  outline-offset: 2px;
}

/* 17. Decorative (No content overlap, proper z-index layering) */

/* CRITICAL: Prevent cards/content overlap */
.card-container > *,
.content-grid > *,
.feature-grid > *,
.service-cards > *,
.post-list > * {
  z-index: 2;
  margin-bottom: 0;
}


/* 18. Thank You page tweak */
.thank-you h1 {
  color: #B80021;
}

/* 19. Hide elements utility */
.hidden {
  display: none !important;
}
