/* WohnWert Sanierungen NRW — Design System (Luminous Integrity) */

:root {
  --deep-forest: #013B2D;
  --deep-forest-dark: #00231A;
  --energy-green: #37CA37;
  --energy-green-dark: #1F8A4C;
  --clean-white: #FFFFFF;
  --background: #F8F9FA;
  --on-surface: #191C1D;
  --on-surface-variant: #404945;
  --surface-grey: #636363;
  --outline-variant: #C0C9C3;
  --outline: #E9ECEF;
  --surface-container-low: #F3F4F5;
  --surface-container: #EDEEEF;
  --surface-container-high: #E7E8E9;
  --fresh-blue: #00468C;
  --mustard-yellow: #E1AD01;
  --mustard-yellow-dark: #B78900;
  --mustard-green: #6B7226;
  --mustard-green-dark: #54591E;

  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  --container-max: 1280px;
  --gutter: 24px;
  --margin-mobile: 16px;
  --margin-desktop: 64px;

  --font-head: "Montserrat", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --shadow-soft: 0 2px 8px rgba(1, 59, 46, 0.06);
  --shadow-hover: 0 12px 32px rgba(1, 59, 46, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--on-surface);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0 0 16px;
  color: var(--deep-forest);
  line-height: 1.2;
}
p { margin: 0 0 16px; line-height: 1.6; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}
@media (min-width: 1024px) {
  .container { padding: 0 var(--margin-desktop); }
}

section { padding: 64px 0; }
@media (min-width: 1024px) {
  section { padding: 96px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--energy-green-dark);
  margin-bottom: 12px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--on-surface-variant); font-size: 17px; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--energy-green-dark); color: var(--clean-white); }
.btn-primary:hover { background: var(--deep-forest); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--deep-forest); color: var(--clean-white); }
.btn-secondary:hover { background: var(--deep-forest-dark); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--deep-forest); }
.btn-outline:hover { background: var(--deep-forest); color: var(--clean-white); }
.btn-outline-light { background: transparent; border-color: var(--clean-white); color: var(--clean-white); }
.btn-outline-light:hover { background: var(--clean-white); color: var(--deep-forest); }
.btn-mustard { background: var(--mustard-yellow); color: var(--deep-forest-dark); }
.btn-mustard:hover { background: var(--mustard-yellow-dark); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.btn-mustard-green { background: var(--mustard-green); color: var(--clean-white); }
.btn-mustard-green:hover { background: var(--mustard-green-dark); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.main-nav { display: none; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--on-surface-variant);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--deep-forest); border-color: var(--energy-green); }
.header-cta { display: none; }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  color: var(--deep-forest);
}
.nav-toggle svg { width: 26px; height: 26px; }
@media (min-width: 960px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--clean-white);
  padding: 8px var(--margin-mobile) 24px;
  border-top: 1px solid var(--outline);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 4px;
  font-weight: 600;
  color: var(--on-surface);
  border-bottom: 1px solid var(--outline);
}
.mobile-nav a[aria-current="page"] { color: var(--energy-green-dark); }
.mobile-nav .btn { margin-top: 12px; }
@media (min-width: 960px) { .mobile-nav { display: none !important; } }

/* ---------- Hero (dark retro-grid) ---------- */
.hero {
  position: relative;
  background: var(--deep-forest-dark);
  color: var(--clean-white);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  max-width: 140%;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(55,202,55,0.22), transparent 70%);
  pointer-events: none;
}
.hero-grid-wrap { position: absolute; inset: 0; overflow: hidden; perspective: 200px; pointer-events: none; }
.hero-grid-plane {
  position: absolute;
  inset: -50% -100%;
  width: 300%;
  height: 200%;
  transform: rotateX(65deg);
  transform-origin: 50% 0 0;
  background-image:
    linear-gradient(to right, rgba(55,202,55,0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(55,202,55,0.18) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: hero-grid-move 8s linear infinite;
}
@keyframes hero-grid-move { from { background-position: 0 0; } to { background-position: 0 56px; } }
.hero-grid-fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--deep-forest-dark) 5%, transparent 60%); }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 112px var(--margin-mobile) 0;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  margin-bottom: 24px;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 {
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--energy-green) 0%, #9FE870 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 28px; }

.hero-cta-glow { position: relative; border-radius: var(--radius-full); padding: 1.5px; overflow: hidden; }
.hero-cta-glow::before {
  content: "";
  position: absolute;
  inset: -200%;
  background: conic-gradient(from 90deg at 50% 50%, rgba(55,202,55,0.9) 0%, rgba(1,59,46,0.9) 50%, rgba(55,202,55,0.9) 100%);
  animation: hero-cta-spin 2.5s linear infinite;
}
@keyframes hero-cta-spin { to { transform: rotate(360deg); } }
.hero-cta-glow .btn { position: relative; background: var(--mustard-green); border-color: transparent; }
.hero-cta-glow .btn:hover { background: var(--mustard-green-dark); }

.hero-shot { position: relative; z-index: 1; max-width: 1000px; margin: 64px auto 0; padding: 0 var(--margin-mobile); }
.hero-shot .frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.hero-shot img { width: 100%; height: 320px; object-fit: cover; display: block; }

@media (min-width: 768px) {
  .hero-inner { padding-top: 148px; }
  .hero h1 { font-size: 58px; }
  .hero-shot { margin-top: 88px; padding-bottom: 96px; }
  .hero-shot img { height: 520px; }
}
@media (max-width: 767px) {
  .hero-shot { padding-bottom: 64px; }
}

.page-hero {
  background: var(--deep-forest);
  color: var(--clean-white);
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero h1 { color: var(--clean-white); font-size: 32px; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 640px; margin: 0 auto; font-size: 17px; }
@media (min-width: 768px) { .page-hero h1 { font-size: 42px; } }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clean-white);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.service-card .img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.service-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .img-wrap img { transform: scale(1.06); }
.service-card .img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(1,35,26,0.75), rgba(1,35,26,0) 55%);
}
.service-icon {
  position: absolute; bottom: 16px; left: 16px; z-index: 2;
  width: 56px; height: 56px; border-radius: var(--radius-full);
  background: var(--energy-green-dark); color: var(--clean-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-hover);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card .body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-card h3 { font-size: 20px; margin: 0; }
.service-card p { color: var(--on-surface-variant); font-size: 15px; margin: 0; }
.service-card .link-row { margin-top: auto; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--deep-forest); }
.service-card .link-row svg { width: 16px; height: 16px; transition: transform 0.2s; }
.service-card:hover .link-row svg { transform: translateX(4px); }

.icon-tile {
  padding: 32px 24px;
  background: var(--clean-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.icon-tile .icon-circle {
  width: 56px; height: 56px; border-radius: var(--radius-full);
  background: var(--surface-container-low); color: var(--deep-forest);
  display: flex; align-items: center; justify-content: center;
}
.icon-tile .icon-circle svg { width: 28px; height: 28px; }
.icon-tile h3 { font-size: 19px; margin: 0; }
.icon-tile p { color: var(--on-surface-variant); font-size: 15px; margin: 0; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  background: var(--clean-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 700px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-strip .stat { text-align: center; }
.stat-strip .stat .num { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--deep-forest); }
.stat-strip .stat .label { font-size: 13px; color: var(--surface-grey); margin-top: 4px; }

/* ---------- Before/After slider ---------- */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--surface-container);
  user-select: none;
  -webkit-user-select: none;
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider .ba-after { z-index: 0; }
.ba-slider .ba-before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; z-index: 1; border-right: 2px solid var(--energy-green); }
.ba-slider .ba-before-wrap img { position: absolute; top: 0; left: 0; width: 200%; max-width: none; height: 100%; }
.ba-slider .ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 40px; margin-left: -20px;
  display: flex; align-items: center; justify-content: center; z-index: 2; cursor: ew-resize; touch-action: none;
}
.ba-slider .ba-handle .grip {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--energy-green-dark); color: var(--clean-white);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-hover);
}
.ba-slider .ba-handle .grip svg { width: 18px; height: 18px; }
.ba-tag {
  position: absolute; top: 12px; z-index: 3;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.ba-tag.before { left: 12px; background: rgba(255,255,255,0.92); color: var(--on-surface); }
.ba-tag.after { right: 12px; background: rgba(1,35,26,0.88); color: var(--clean-white); }

.project-card h3 { font-size: 18px; margin: 16px 0 4px; }
.project-card p { color: var(--surface-grey); font-size: 14px; margin: 0; }

.category-head { display: flex; align-items: center; gap: 16px; margin: 64px 0 32px; }
.category-head:first-of-type { margin-top: 0; }
.category-head h2 { font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0; white-space: nowrap; }
.category-head .rule { flex: 1; height: 1px; background: var(--outline-variant); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--deep-forest);
  color: var(--clean-white);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
}
.cta-band h2 { color: var(--clean-white); }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Founder / About ---------- */
.founder-card {
  display: grid;
  gap: 32px;
  background: var(--clean-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
@media (min-width: 800px) { .founder-card { grid-template-columns: 320px 1fr; } }
.founder-card .photo { background: var(--surface-container); min-height: 260px; display: flex; align-items: center; justify-content: center; color: var(--deep-forest); }
.founder-card .photo svg { width: 96px; height: 96px; opacity: 0.5; }
.founder-card .content { padding: 32px; }
.founder-card blockquote { margin: 0 0 16px; font-size: 17px; font-style: italic; color: var(--on-surface); border-left: 3px solid var(--energy-green); padding-left: 16px; }
.founder-card .name { font-weight: 700; color: var(--deep-forest); }
.founder-card .role { font-size: 14px; color: var(--surface-grey); }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline .step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding-bottom: 32px; position: relative; }
.timeline .step:not(:last-child)::before {
  content: ""; position: absolute; left: 35px; top: 40px; bottom: 0; width: 2px; background: var(--outline-variant);
}
.timeline .year { font-family: var(--font-head); font-weight: 700; color: var(--deep-forest); font-size: 15px; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--energy-green-dark); margin-top: 6px; position: relative; z-index: 1; }
.timeline .step h4 { margin: 0 0 6px; font-size: 17px; }
.timeline .step p { margin: 0; color: var(--on-surface-variant); font-size: 15px; }

.value-list { display: grid; gap: 20px; }
@media (min-width: 700px) { .value-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--on-surface-variant); }
.field .optional { font-weight: 400; color: var(--surface-grey); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  background: var(--clean-white);
  color: var(--on-surface);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--energy-green-dark);
  outline-offset: 1px;
  border-color: var(--energy-green-dark);
}
.field textarea { resize: vertical; min-height: 110px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--on-surface-variant); }
.checkbox-row input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.checkbox-row a { color: var(--deep-forest); text-decoration: underline; }

.contact-info-card {
  background: var(--deep-forest);
  color: var(--clean-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info-card .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-card .item svg { width: 22px; height: 22px; color: var(--energy-green); flex: none; margin-top: 2px; }
.contact-info-card .item a, .contact-info-card .item span { color: rgba(255,255,255,0.9); font-size: 15px; line-height: 1.6; }
.contact-info-card .item strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--energy-green); margin-bottom: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-forest-dark); color: rgba(255,255,255,0.85); padding: 72px 0 32px; }
.footer-grid { display: grid; gap: 40px; margin-bottom: 56px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer .brand-col p { color: rgba(255,255,255,0.65); font-size: 14px; }
.site-footer .brand img { height: 40px; }
.site-footer h4 { color: var(--clean-white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; font-size: 14px; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--energy-green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.55);
}
.footer-bottom .legal-links { display: flex; gap: 20px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.note {
  font-size: 13px; color: var(--surface-grey); background: var(--surface-container-low);
  border-radius: var(--radius-sm); padding: 12px 16px; border: 1px solid var(--outline-variant);
}
.legal-page h2 { font-size: 20px; margin-top: 40px; }
.legal-page p, .legal-page li { color: var(--on-surface-variant); font-size: 15px; }
.legal-page li { margin-bottom: 8px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal-page td { padding: 10px 12px; border-bottom: 1px solid var(--outline); font-size: 14px; vertical-align: top; }
.legal-page td:first-child { color: var(--surface-grey); width: 220px; }
.placeholder-flag { color: #B45309; background: #FFFBEB; border: 1px solid #FDE68A; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
