:root {
  --background: #f7f8f4;
  --foreground: #111713;
  --muted: #5e6862;
  --line: rgba(17, 23, 19, 0.14);
  --surface: #ffffff;
  --surface-strong: #e8eee6;
  --teal: #017c73;
  --amber: #b56a2a;
  --ink: #07110e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(7, 17, 14, 0.9), rgba(7, 17, 14, 0.42) 45%, rgba(7, 17, 14, 0.2)),
    linear-gradient(0deg, rgba(7, 17, 14, 0.82), rgba(7, 17, 14, 0.1) 46%),
    url("assets/datenhaus-hero.png");
  background-position: center;
  background-size: cover;
}

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 800;
}

.nav nav {
  display: flex;
  gap: 10px;
}

.nav nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero__content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 118px;
}

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

.hero .eyebrow {
  color: #f1bd7d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(4rem, 13vw, 10rem);
  line-height: 0.86;
}

.hero__lead {
  max-width: 710px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  line-height: 1.35;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 800;
}

.button--primary {
  background: var(--teal);
  color: #ffffff;
}

.button--primary:hover {
  background: #026a62;
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.section__heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 40px;
}

.section__heading h2,
.contact h2 {
  max-width: 840px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.capability span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--teal), white 82%);
  box-shadow: inset 0 0 0 12px var(--surface);
}

.capability h3 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.08;
}

.projects {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: #ffffff;
}

.project-list {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.project {
  display: grid;
  grid-template-columns: 80px minmax(220px, 0.8fr) 1.2fr;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  background: var(--ink);
}

.project__index {
  color: #7fd1ca;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.project h3 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.7vw, 2.6rem);
  line-height: 1.03;
}

.project p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.project div p {
  margin-bottom: 8px;
  color: #f1bd7d;
  font-weight: 800;
}

.contact {
  padding: 96px max(20px, calc((100vw - 1180px) / 2));
  background: var(--surface-strong);
}

.contact__content {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) 1fr;
  gap: 56px;
  align-items: start;
}

address {
  margin: 24px 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.contact__links {
  display: grid;
  gap: 10px;
  font-weight: 800;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form__message,
.contact-form button,
.form-note {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfcf9;
  color: var(--foreground);
  padding: 13px 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(1, 124, 115, 0.14);
}

.form-note {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-note[data-state="success"] {
  color: var(--teal);
}

.form-note[data-state="error"] {
  color: #9d2c22;
}

@media (max-width: 820px) {
  .hero {
    min-height: 88svh;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero__content {
    padding-bottom: 78px;
  }

  .section__heading,
  .contact__content,
  .project {
    grid-template-columns: 1fr;
  }

  .capability-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .capability {
    min-height: 150px;
  }

  .project {
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .nav,
  .hero__content,
  .section {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(3.2rem, 21vw, 5.5rem);
  }

  .button {
    width: 100%;
  }

  .contact-form {
    padding: 18px;
  }
}
