/* =====================================================
   CSS RESET & NORMALIZE for Scandinavian Clean Design
   Dandelion Wander Renovierungen | style.css
   ===================================================== */

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

html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F7F5ED;
  color: #253441;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}
a {
  color: #235175;
  text-decoration: none;
  transition: color .18s;
}
a:focus, a:hover {
  color: #B7B19B;
  outline: none;
}
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.3em;
}

/* ===============================
   TYPOGRAPHY
   =============================== */

h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #235175;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #235175;
  margin-bottom: 20px;
  line-height: 1.2;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #253441;
  margin-bottom: 12px;
  line-height: 1.25;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  color: #235175;
  font-weight: 500;
  margin-bottom: 10px;
}
p, .subheadline {
  font-size: 1rem;
  color: #253441;
  margin-bottom: 16px;
  font-family: 'Roboto', Arial, sans-serif;
}
.subheadline {
  font-size: 1.1rem;
  color: #235175;
  font-weight: 500;
  margin-bottom: 20px;
}

strong, .strong {
  font-weight: 600;
  color: #235175;
}
.text-section {
  max-width: 740px;
}
.text-section h2, .text-section h3, .text-section h4 {
  margin-top: 20px;
}

/* ===============================
   LAYOUT & CONTAINER PATTERNS
   =============================== */

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 20px;
}
section:not(:first-child) {
  /* Extra gap between sections */
  margin-top: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}


/* ===============================
   HEADER + NAVIGATION (Desktop)
   =============================== */
header {
  background: #fff;
  border-bottom: 1px solid #F2EFE2;
  box-shadow: 0 2px 12px 0 rgba(35,81,117,0.03);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  min-height: 80px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.logo img {
  height: 46px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  margin-left: 32px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #235175;
  padding: 8px 0;
  font-weight: 500;
  letter-spacing: 0;
  transition: color 0.15s;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #B7B19B;
  transition: width 0.18s;
  position: absolute;
  left: 0;
  bottom: 0;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}

.button.primary {
  background: #235175;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 32px;
  padding: 11px 28px;
  border: none;
  margin-left: 20px;
  box-shadow: 0 4px 15px rgba(35,81,117,0.08);
  cursor: pointer;
  transition: background .2s, box-shadow .2s, color .18s;
  outline: none;
  display: inline-block;
}
.button.primary:hover, .button.primary:focus {
  background: #B7B19B;
  color: #235175;
  box-shadow: 0 8px 20px rgba(35,81,117,0.10);
}
.button {
  background: #fff;
  color: #235175;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 32px;
  padding: 10px 24px;
  border: 1.5px solid #235175;
  font-weight: 600;
  margin-right: 8px;
  cursor: pointer;
  outline: none;
  transition: background .18s, color .18s, border-color .18s;
  display: inline-block;
}
.button:hover, .button:focus {
  background: #235175;
  color: #fff;
  border-color: #B7B19B;
}

/* Hide mobile header elements in desktop */
.mobile-menu-toggle {
  display: none;
}

/* ===============================
   HOMEPAGE: Features, Services, Testimonials
   =============================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 280px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(35,81,117,0.06);
  padding: 28px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.feature-item img {
  width: 38px;
  margin-bottom: 8px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 8px 18px rgba(35,81,117,0.10);
  transform: translateY(-3px);
}

.service-cards, .project-summaries {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  margin-top: 20px;
}
.service-card, .project-summary {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(35,81,117,0.04);
  padding: 26px 18px 20px 18px;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 285px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.13s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card:hover, .project-summary:hover {
  box-shadow: 0 10px 26px rgba(35,81,117,0.12);
  transform: translateY(-3px);
}

/* Testimonials / Kundenmeinungen */
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(35,81,117,0.10);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 468px;
  transition: box-shadow 0.14s, transform 0.13s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 22px rgba(35,81,117,0.17);
  transform: scale(1.02);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #253441;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #235175;
  font-weight: 600;
}

.trust-symbols ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
}
.trust-symbols li {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border-radius: 14px;
  padding: 7px 16px;
  font-size: 1rem;
  color: #253441;
  font-weight: 500;
  margin-bottom: 0;
}
.trust-symbols img {
  height: 28px;
  width: auto;
}

/* ===============================
   FOOTER
   =============================== */
footer {
  background: #fff;
  margin-top: 60px;
  padding: 40px 0 30px 0;
  border-top: 1px solid #EDE7D6;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-logo img {
  height: 48px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #235175;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 7px 0;
  transition: color .17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #B7B19B;
}
.footer-contact p {
  font-size: 1rem;
  color: #4B535C;
  margin-bottom: 6px;
}

/* ===============================
   RESPONSIVE DESIGN: Mobile First
   =============================== */
@media (max-width: 980px) {
  .feature-grid, .service-cards, .testimonial-cards, .project-summaries, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .main-nav {
    gap: 24px;
    margin-left: 16px;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: start;
  }
  .footer-logo {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.65rem; }
  .section {
    padding: 30px 6px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 7px;
  }
  .main-nav, .button.primary {
    display: none;
  }
  .logo img {
    height: 38px;
  }
  header .container {
    min-height: 58px;
    gap: 10px;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 12px;
    right: 18px;
    z-index: 505;
    background: #235175;
    color: #fff;
    border-radius: 8px;
    border: none;
    width: 46px;
    height: 46px;
    font-size: 2rem;
    box-shadow: 0 2px 12px rgba(35,81,117,0.13);
    cursor: pointer;
    transition: background 0.18s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #B7B19B;
    color: #235175;
  }
  .mobile-menu {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(247,245,237,0.97);
    box-shadow: 0 8px 48px rgba(35,81,117,0.22);
    z-index: 999;
    transform: translateX(-100vw);
    transition: transform 0.32s cubic-bezier(.62,.01,.39,1);
    padding: 24px 0 14px 0;
    overflow-y: auto;
  }
  .mobile-menu.active {
    transform: translateX(0);
  }
  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 2.1rem;
    color: #235175;
    position: absolute;
    top: 20px;
    right: 22px;
    cursor: pointer;
    z-index: 1001;
    border-radius: 12px;
    transition: background 0.15s;
    padding: 8px 10px;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    background: #EDE7D6;
    color: #B7B19B;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 58px;
    padding-left: 30px;
    width: 100vw;
  }
  .mobile-nav a {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1.16rem;
    color: #235175;
    font-weight: 600;
    padding: 7px 2px;
    border-radius: 8px;
    width: 90vw;
    transition: background 0.15s, color 0.13s;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: #EDE7D6;
    color: #B7B19B;
  }
  .button.primary, .button {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    margin-bottom: 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .testimonial-cards, .feature-grid, .service-cards, .card-container, .project-summaries {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
  }
  .footer-logo img {
    height: 40px;
  }
}

@media (max-width: 540px) {
  h1, .h1 { font-size: 1.38rem; }
  h2, .h2 { font-size: 1.15rem; }
  .section {
    padding: 18px 4px;
    margin-bottom: 24px;
  }
}

/* ===============================
   CARDS, FAQ, CTA & UTILITY ELEMENTS
   =============================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.faq-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(35,81,117,0.07);
  padding: 20px 18px;
  margin-bottom: 10px;
}
.faq-item h2 {
  font-size: 1.15rem;
  color: #235175;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 1rem;
}
.contact-prompt, .contact-cta {
  margin: 20px 0 8px 0;
  padding: 14px 28px;
  background: #EDE7D6;
  border-radius: 14px;
  font-size: 1rem;
  color: #235175;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: center;
}
.contact-info-short {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 19px;
  margin-top: 14px;
  font-size: 1.13rem;
  color: #253441;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.contact-info-short img {
  width: 24px;
}

.company-contact ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 0;
}
.company-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.company-contact img {
  width: 23px;
  height: 23px;
}
.location-map, .immediate-support {
  margin-top: 11px;
  margin-bottom: 12px;
}

.timeline-graphic ul {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  margin: 14px 0 14px 0;
}
.timeline-graphic li {
  padding: 8px 14px;
  border-radius: 16px;
  background: #EDE7D6;
  color: #235175;
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ===============================
   MICRO-INTERACTIONS & HOVERS
   =============================== */
.button, .button.primary {
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow .17s, transform .16s;
}
.button:active, .button.primary:active {
  transform: scale(0.98);
}
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #B7B19B;
  font-size: 1rem;
  margin-bottom: 14px;
  transition: border-color 0.12s, box-shadow 0.14s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: #235175;
  box-shadow: 0 0 6px 0 rgba(35,81,117,0.07);
}

/* ===============================
   COOKIE CONSENT BANNER & MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 16px;
  z-index: 3000;
  background: #fff;
  color: #253441;
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(35,81,117,0.10);
  padding: 25px 30px 21px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
  border: 1.5px solid #B7B19B;
  animation: fadeInUp 0.38s cubic-bezier(.43,.12,.29,1.11);
}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  margin-top: 2px;
}
.cookie-banner .cookie-btn {
  border-radius: 16px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 9px 24px;
  margin-bottom: 0;
  margin-right: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.13s;
}
.cookie-btn.accept {
  background: #235175;
  color: #fff;
  box-shadow: 0 2px 8px rgba(35,81,117,0.06);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #B7B19B;
  color: #235175;
}
.cookie-btn.reject {
  background: #fff;
  color: #235175;
  border: 1.3px solid #B7B19B;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #B7B19B;
  color: #fff;
}
.cookie-btn.settings {
  background: none;
  color: #235175;
  border: 1.2px solid #235175;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #235175;
  color: #fff;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(35px); }
  100% { opacity: 1; transform: translateY(0); }
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;right:0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,81,117,0.22);
  z-index: 3100;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.21s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(35,81,117,0.13);
  max-width: 96vw;
  width: 380px;
  padding: 34px 28px 24px 28px;
  color: #253441;
  position: relative;
  animation: fadeInUp 0.29s cubic-bezier(.43,.12,.29,1.11);
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  color: #235175;
  margin-bottom: 14px;
}
.cookie-modal .cookie-cat {
  background: #EDE7D6;
  border-radius: 10px;
  padding: 9px 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal label {
  font-size: 0.98rem;
  color: #253441;
}
.cookie-modal .cookie-toggle {
  width: 36px; height: 20px;
  position: relative;
  display: inline-block;
}
.cookie-modal .cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0;right: 0; bottom: 0;
  background: #B7B19B;
  border-radius: 13px;
  transition: background .17s;
}
.cookie-modal .cookie-toggle input:checked + .slider {
  background: #235175;
}
.cookie-modal .slider:before {
  position: absolute;
  content: '';
  left: 3px;
  bottom: 2.5px;
  height: 15px; width: 15px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s;
}
.cookie-modal .cookie-toggle input:checked + .slider:before {
  transform: translateX(15px);
}
.cookie-modal .cat-essential label {
  color: #235175;
  font-weight: 600;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 17px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #235175;
  cursor: pointer;
  border-radius: 9px;
  transition: background 0.12s;
  padding: 5px 7px;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #EDE7D6;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 22px;
}

@media (max-width: 650px) {
  .cookie-banner {
    padding: 17px 7px 17px 10px;
    left: 0; right: 0;
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 24px 7px 18px 7px;
    width: 96vw;
    min-width: 0;
  }
}

/* ===============================
   UTILS & COMMON CLASSES
   =============================== */
.hide, .sr-only {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.mt-16 { margin-top: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.pb-40 { padding-bottom: 40px !important; }

/* ===============================
   PRINT STYLES
   =============================== */
@media print {
  * { background: none !important; color: #111 !important; box-shadow: none !important; }
  .button, header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
