:root {
  --ink: #143331;
  --muted: #52605d;
  --line: #d5e0da;
  --paper: #f4fbf8;
  --surface: #ffffff;
  --field: #e7f3ee;
  --green: #0f766e;
  --green-dark: #134e4a;
  --blue: #0369a1;
  --brick: #b34e32;
  --shadow: 0 20px 50px rgba(20, 51, 49, 0.14);
  --shadow-soft: 0 10px 28px rgba(20, 51, 49, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid rgba(3, 105, 161, 0.38);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(244, 251, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 118px;
}

.brand-logo {
  width: 112px;
  height: auto;
  display: block;
  border-radius: 6px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.main-nav a:hover {
  color: var(--green);
  border-color: rgba(15, 118, 110, 0.35);
}

.header-call {
  justify-self: end;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(3, 105, 161, 0.2);
  font-weight: 700;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.header-call:hover {
  background: #075985;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 70px));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 45, 41, 0.88), rgba(13, 45, 41, 0.55) 48%, rgba(13, 45, 41, 0.12)),
    url("assets/hero-renovierung.jpg");
  background-position: center;
  background-size: cover;
}

.hero-content {
  position: relative;
  width: min(860px, 100%);
  padding: 112px clamp(20px, 6vw, 76px) 78px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.work-copy .eyebrow {
  color: #f0c2a9;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 5.6vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 6px;
  font-weight: 800;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.btn.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(3, 105, 161, 0.28);
}

.btn.primary:hover {
  background: #075985;
}

.btn.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.82);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-proof span {
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-band div {
  padding: 24px clamp(18px, 4vw, 56px);
  background: var(--surface);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band span {
  margin-top: 4px;
  color: var(--muted);
}

.section,
.split-section,
.contact-section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: end;
  max-width: 1160px;
  margin: 0 auto 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -22px;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(20, 51, 49, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: var(--shadow-soft);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  margin-bottom: 28px;
  color: var(--green-dark);
  background: var(--field);
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 800;
}

.service-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
}

.service-card a {
  align-self: flex-start;
  margin-top: 20px;
  color: var(--blue);
  font-weight: 800;
}

.service-card a:hover {
  color: var(--green-dark);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: var(--green-dark);
  color: #fff;
}

.work-photo {
  min-height: 520px;
  background:
    linear-gradient(0deg, rgba(24, 63, 52, 0.18), rgba(24, 63, 52, 0.18)),
    url("assets/werkzeug-boden.jpg");
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.work-copy {
  max-width: 560px;
}

.work-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--brick);
  border-radius: 3px;
}

.testimonial-section {
  background: #eef8f4;
}

.testimonial-carousel {
  max-width: 1160px;
  margin: 0 auto;
}

.testimonial-track {
  position: relative;
  min-height: 300px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(26px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.testimonial-card.is-active {
  opacity: 1;
  pointer-events: auto;
}

.testimonial-card span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  color: var(--green-dark);
  background: var(--field);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.testimonial-card blockquote {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3.4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
}

.testimonial-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.testimonial-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--green-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(20, 51, 49, 0.04);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.testimonial-btn:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.testimonial-btn:focus-visible,
.testimonial-dots button:focus-visible {
  outline: 3px solid rgba(3, 105, 161, 0.38);
  outline-offset: 4px;
}

.testimonial-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: #b8c9c2;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 180ms ease, width 180ms ease;
}

.testimonial-dots button.is-active {
  width: 26px;
  background: var(--green);
}

.compact {
  padding-bottom: 46px;
}

.area-box,
.notice,
.contact-panel {
  max-width: 1160px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.area-box {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
}

.area-box span {
  color: var(--muted);
}

.notice {
  padding: 28px clamp(18px, 4vw, 34px);
  border-left: 7px solid var(--brick);
}

.notice h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.notice p {
  max-width: 900px;
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.contact-section > div:first-child {
  max-width: 650px;
}

.contact-section p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.contact-link {
  display: grid;
  gap: 4px;
  padding: 24px;
  background: #fff;
  transition: background-color 180ms ease;
}

.contact-link:hover {
  background: var(--field);
}

.contact-link span,
.contact-note span {
  color: var(--muted);
}

.contact-link strong {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  overflow-wrap: anywhere;
}

.contact-note {
  display: grid;
  gap: 4px;
  padding: 24px;
  background: #f8fbfa;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #1e2421;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.legal-hero {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--green-dark);
  color: #fff;
}

.legal-hero-inner,
.legal-content {
  max-width: 980px;
  margin: 0 auto;
}

.legal-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.legal-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.legal-content {
  padding: clamp(48px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

.legal-card {
  padding: clamp(22px, 4vw, 34px);
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.legal-card h2 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.legal-card h3 {
  margin-top: 22px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.legal-card a {
  color: var(--blue);
  font-weight: 700;
}

.legal-list {
  margin: 0;
  padding-left: 20px;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
  }

  .header-call {
    grid-column: 2;
    grid-row: 1;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 8px;
    padding-top: 2px;
  }

  .main-nav a {
    flex: 1 1 140px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--green-dark);
    font-weight: 700;
  }

  .main-nav a:hover {
    background: var(--field);
    border-color: rgba(15, 118, 110, 0.38);
  }

  .hero {
    min-height: 640px;
  }

  .trust-band,
  .service-grid,
  .split-section,
  .contact-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .work-photo {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 72px;
  }

  .header-call {
    padding: 9px 10px;
    font-size: 0.86rem;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    padding-top: 0;
    font-size: 0.8rem;
  }

  .main-nav a {
    min-height: 34px;
    padding: 5px 6px;
    white-space: nowrap;
  }

  .hero {
    min-height: 620px;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-content {
    padding: 86px 20px 54px;
  }

  h1 {
    font-size: clamp(2.05rem, 12vw, 3.45rem);
  }

  h2 {
    font-size: clamp(1.65rem, 9vw, 2.35rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .btn,
  .hero-proof span {
    width: 100%;
  }

  .trust-band div {
    padding-block: 20px;
  }

  .section,
  .split-section,
  .contact-section {
    padding-block: 54px;
  }

  .section-heading {
    gap: 14px;
    margin-bottom: 24px;
  }

  .testimonial-track {
    min-height: 360px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .testimonial-card blockquote {
    font-size: clamp(1.35rem, 8vw, 2rem);
  }

  .testimonial-controls {
    gap: 12px;
  }

  .work-photo {
    min-height: 300px;
  }

  .area-box,
  .site-footer {
    flex-direction: column;
  }

  .area-box {
    display: grid;
  }

  .site-footer {
    display: grid;
  }

  .service-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
