/* Evergreen Renovierung – style.css */

/* ==== 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 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F9F8F6;
  color: #35443C;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
}
a {
  color: #24563A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #38865a;
}

:root {
  --primary: #24563A;
  --secondary: #CBD2CC;
  --accent: #F9F8F6;
  --brand-bg: #F9F8F6;
  --brand-dark: #1b2e24;
  --card-shadow: 0 4px 20px rgba(36,86,58,0.06);
  --shadow-sm: 0 2px 6px rgba(36,86,58,0.08);
  --shadow-md: 0 6px 24px rgba(36,86,58,0.10);
  --rounded: 18px;
  --radius-btn: 8px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.subheadline {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: #35523c;
  margin-bottom: 20px;
}
p, li {
  font-family: var(--font-body);
  font-size: 1rem;
}
strong {
  font-weight: 600;
}

/* ==== SPACING & LAYOUT Patterns ==== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--rounded);
  box-shadow: var(--card-shadow);
  padding: 28px 24px;
  flex: 1 1 260px;
  min-width: 240px;
  transition: box-shadow 0.22s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 4px 28px 0 rgba(36,86,58,0.14);
  transform: translateY(-4px) scale(1.015);
}
.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;
  background: #fff;
  border-radius: var(--rounded);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border-left: 6px solid var(--primary);
  min-width: 240px;
  transition: box-shadow 0.21s, border-color 0.17s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #38865a;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== HEADER ==== */
header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}
header a img {
  height: 50px;
  border-radius: 0; /* logo remains square */
}
header nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
header nav a {
  padding: 8px 13px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 500;
  color: #35443C;
  transition: background 0.18s, color 0.18s;
}
header nav a.cta {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 700;
  margin-left: 6px;
  box-shadow: 0 2px 10px #24563a18;
  transition: background 0.18s, box-shadow 0.18s;
}
header nav a.cta:hover, header nav a.cta:focus {
  background: #38865a;
  box-shadow: 0 4px 12px #24563a20;
  color: #fff;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: #24563A;
}

.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 10px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.19s;
  box-shadow: 0 1px 5px #24563a16;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #38865a;
}

/* ==== MOBILE NAV ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,86,58,0.97);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.19,1,.22,1);
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 24px 10px 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #CBD2CC;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 30px 60px 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 11px 0;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #38865a40;
}

/* ==== HERO SECTIONS ==== */
.hero {
  background: linear-gradient(120deg, #F9F8F6 60%, #e3eee7 100%);
  padding: 56px 0 44px 0;
  margin-bottom: 60px;
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
  box-shadow: 0px 4px 64px 0 #24563a0d;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 18px;
}
.hero h1 {
  font-size: 2.7rem;
  color: var(--primary);
}
.hero p.subheadline {
  font-size: 1.22rem;
  color: #547460;
}

/* ==== FEATURE GRID ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 16px;
}
.feature-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: var(--rounded);
  box-shadow: var(--shadow-sm);
  padding: 32px 20px 25px 20px;
  flex: 1 1 270px;
  min-width: 220px;
  max-width: 340px;
  transition: box-shadow 0.22s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: var(--shadow-md);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.feature-grid h3 {
  font-size: 1.2rem;
  color: var(--primary);
}
.feature-grid p {
  color: #35443C;
  font-size: 1rem;
}

/* ==== TEXT SECTION ==== */
.text-section ul {
  margin: 12px 0 12px 19px;
  padding-left: 0;
}
.text-section li {
  list-style-type: disc;
  margin: 0 0 8px 0;
}

/* ==== TESTIMONIALS ==== */
.testimonials-preview, .testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonials-preview > .testimonial-card, 
.testimonials > .container > .content-wrapper > .testimonial-card {
  flex: 1 1 300px;
  min-width: 260px;
  background: #fff;
  color: #24563A;
  border-radius: var(--rounded);
  box-shadow: var(--card-shadow);
  padding: 28px 24px;
  border-left: 6px solid var(--primary);
  transition: box-shadow 0.22s, border-color 0.17s;
}
.testimonial-card p {
  font-family: var(--font-body);
  font-size: 1.13rem;
  color: #35443C;
  margin-bottom: 6px;
  line-height: 1.6;
}
.testimonial-card strong {
  color: #24563A;
  font-size: 1rem;
  display: block;
}

.stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 7px;
}
.stars img {
  width: 24px;
  height: 24px;
  border-radius: 0;
}

/* Ensure testimonials always dark text on light bg for accessibility */
.testimonial-card {
  background: #fff;
  color: #24563A;
}

/* ==== CTA BUTTONS ==== */
.cta, a.cta, button.cta {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff !important;
  padding: 14px 30px 14px 30px;
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 700;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px #24563a12;
  transition: background 0.18s, box-shadow 0.16s, transform 0.11s;
  text-align: center;
  text-decoration: none;
  margin-top: 8px;
  gap: 11px;
}
.cta:hover, .cta:focus {
  background: #38865a;
  box-shadow: 0 8px 32px #24563a24;
  transform: translateY(-2px) scale(1.03);
  color: #fff !important;
}

/* ==== CTA SECTION ==== */
.cta-section {
  background: #24563A11;
  border-radius: var(--rounded);
  margin: 40px 0 0 0;
  text-align: center;
  padding: 44px 20px;
}
.cta-section .content-wrapper {
  align-items: center;
  gap: 18px;
}
.cta-section h2 {
  color: var(--primary);
}

/* ==== CARDS & USP ==== */
.usp ul {
  padding-left: 24px;
}
.usp li {
  margin-bottom: 7px;
}

/* ==== PROJECT & FAQ ==== */
.project-list ul, .faq-list ul {
  padding-left: 24px;
}
.project-list li, .faq-list li {
  margin-bottom: 9px;
}
.faq-item {
  background: #fff;
  border-radius: var(--rounded);
  margin-bottom: 20px;
  padding: 26px 22px 21px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.17s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item h3 {
  font-size: 1.1rem;
  color: var(--primary);
}
.faq-item p {
  font-size: 1rem;
  color: #35443C;
}

/* ==== CONTACT INFO ==== */
.contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
}
.contact-info li,
.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-info img {
  width: 24px;
  height: 24px;
  border-radius: 0;
}
.map-snippet {
  background: #CBD2CC55;
  border: 1px dashed #24563A33;
  border-radius: 12px;
  padding: 20px 10px;
  color: #24563A;
  margin-top: 18px;
  text-align: center;
}

/* ==== LEGAL SECTIONS ==== */
.legal-section {
  background: #fff;
  border-radius: var(--rounded);
  margin: 40px 0;
  padding: 40px 20px;
  box-shadow: var(--card-shadow);
}
.legal-section .text-section h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 24px;
}
.legal-section .text-section ul {
  padding-left: 18px;
  margin: 8px 0 12px 0;
}
.legal-section .text-section ul li {
  list-style-type: disc;
  margin-bottom: 7px;
}

/* ==== THANK YOU PAGE ==== */
.thank-you-section {
  margin-top: 48px;
  margin-bottom: 60px;
  background: #fff;
  border-radius: var(--rounded);
  box-shadow: var(--card-shadow);
  padding: 48px 20px;
}
.thank-you-section ul {
  margin: 16px 0 16px 24px;
}

/* ==== FOOTER ==== */
footer {
  background: #24563A;
  color: #fff;
  padding: 38px 0 20px 0;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  box-shadow: 0 -4px 32px #24563a24;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #CBD2CC;
  font-size: 1.04rem;
  margin-bottom: 3px;
  border-radius: 7px;
  padding: 4px 7px;
  transition: background 0.16s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  background: #24563a44;
}
.brand-tagline {
  font-family: var(--font-display);
  font-size: 1.13rem;
  margin-top: 16px;
  color: #fff;
  opacity: 0.96;
}
.legal-info {
  font-size: 0.98rem;
  color: #CBD2CC;
  margin-top: 10px;
  opacity: 0.83;
}

/* ==== COOKIE CONSENT ==== */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 24px;
  z-index: 3000;
  background: #fff;
  color: #24563A;
  box-shadow: 0 6px 28px #24563a33;
  border-radius: var(--rounded);
  padding: 25px 30px 25px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  font-size: 1.08rem;
  max-width: 430px;
  transition: opacity 0.22s, transform 0.21s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
}
.cookie-banner strong {
  font-size: 1.15rem;
  color: #24563A;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 19px;
  border-radius: 21px;
  border: none;
  cursor: pointer;
  background: var(--secondary);
  color: #24563A;
  margin: 0;
  transition: background 0.17s, color 0.14s;
}
.cookie-banner button.accept {
  background: #38865a;
  color: #fff;
}
.cookie-banner button.accept:hover,
.cookie-banner button.accept:focus {
  background: #24563A;
  color: #fff;
}
.cookie-banner button.reject {
  background: #D97D57;
  color: #fff;
}
.cookie-banner button.reject:hover,
.cookie-banner button.reject:focus {
  background: #c03300;
}
.cookie-banner button.settings {
  background: var(--secondary);
  color: #24563A;
}
.cookie-banner button.settings:hover,
.cookie-banner button.settings:focus {
  background: #e2e5e1;
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36,86,58,0.45);
  z-index: 3010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #24563a;
  border-radius: var(--rounded);
  box-shadow: 0 12px 44px #24563a22;
  padding: 36px 30px;
  max-width: 430px;
  width: 98%;
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.cookie-modal h2 {
  margin-top: 0;
  font-size: 1.45rem;
  color: #24563a;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 13px;
}
.cookie-category label {
  font-size: 1.08rem;
  color: #24563A;
}
.cookie-category input[type="checkbox"] {
  accent-color: #24563A;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  margin: 0 9px 0 0;
}
.cookie-category input[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 20px;
}
.cookie-modal button {
  font-family: var(--font-display);
  padding: 10px 22px;
  border-radius: 17px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  background: var(--secondary);
  color: #24563a;
  transition: background 0.13s;
}
.cookie-modal button.save {
  background: #38865a;
  color: #fff;
}
.cookie-modal button.save:hover {
  background: #24563a;
}
.cookie-modal button.close {
  background: #eee;
  color: #24563a;
}
.cookie-modal button.close:hover {
  background: #e2e7e0;
  color: #24563a;
}

/* ==== ANIMATIONS ==== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);     }
}
.hero, .cta-section, .card, .testimonial-card, .cookie-banner, .cookie-modal {
  animation: fadeInUp 0.47s ease-out;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .content-grid, .feature-grid, .testimonials-preview {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 10px;
  }
  .feature-grid > div, .card {
    min-width: 190px;
    max-width: 98vw;
    padding: 22px 14px 18px 14px;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 22px;
  }
  .hero {
    padding: 36px 0 24px 0;
    border-radius: 0 0 32px 32px;
  }
  .section, .legal-section {
    margin-bottom: 44px;
    padding: 28px 8px;
    border-radius: 16px;
  }
  .cta-section {
    padding: 28px 10px;
    margin: 10px 0 0 0;
    border-radius: 15px;
  }
  .feature-grid, .content-grid, .testimonials-preview {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .card {
    width: 100%;
    min-width: 160px;
    max-width: 100%;
    margin-bottom: 16px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card {
    min-width: 160px;
    padding: 18px 12px;
  }
  .thank-you-section {
    padding: 24px 7px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header nav {
    display: none;
  }
}
@media (max-width: 568px) {
  .hero .content-wrapper h1 {
    font-size: 2.06rem;
  }
  .subheadline {
    font-size: 1.07rem;
  }
  .cta, a.cta, button.cta {
    padding: 12px 18px;
    font-size: 1.005rem;
  }
  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    padding: 15px 8px;
    max-width: none;
  }
  .cookie-modal {
    padding: 16px 4px;
  }
}
@media (max-width: 480px) {
  .hero {
    border-radius: 0 0 13px 13px;
    padding: 14px 0 14px 0;
  }
  .section, .legal-section {
    padding: 13px 4px;
    margin-bottom: 22px;
    border-radius: 7px;
  }
  .cta-section {
    border-radius: 7px;
    padding: 15px 0;
  }
}

/* ==== VISUAL MICROINTERACTIONS ==== */
.card:active, .feature-grid > div:active {
  box-shadow: 0 2px 6px #24563a23 !important;
  transform: scale(0.98);
}
.testimonial-card:active {
  box-shadow: 0 2px 6px #24563a30 !important;
}
.cta:active {
  background: #1b2e24;
  transform: scale(0.96);
}
.mobile-menu {
  will-change: transform;
}

/* ==== CUSTOM SCROLLBAR ==== */
::-webkit-scrollbar {
  width: 10px;
  background: #F3F5F3;
}
::-webkit-scrollbar-thumb {
  background: #CBD2CC;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b1bebb;
}

/* ==== ACCESSIBILITY ==== */
:focus {
  outline: 2px solid #38865a;
  outline-offset: 2px;
}

/* ==== HIDE NAV ON MOBILE, SHOW BURGER ==== */
@media (max-width: 768px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* ==== SHOW NAV ON DESKTOP, HIDE BURGER ==== */
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ==== UTILITY CLASSES ==== */
.text-center { text-align: center; }
.rounded { border-radius: var(--rounded); }
.bg-brand { background: var(--primary); color: #fff; }
.bg-light { background: var(--accent); }
.shadow { box-shadow: var(--card-shadow); }
.gap-20 { gap: 20px; }

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